-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvals.ts
32 lines (27 loc) · 888 Bytes
/
vals.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
import * as Core from '../../core';
import * as Shared from '../shared';
import { BasicValsPageCursorURL } from '../shared';
import { type PageCursorURLParams } from '../../pagination';
export class Vals extends APIResource {
/**
* Search for vals across the platform
*/
list(
query: ValListParams,
options?: Core.RequestOptions,
): Core.PagePromise<BasicValsPageCursorURL, Shared.BasicVal> {
return this._client.getAPIList('/v1/search/vals', BasicValsPageCursorURL, { query, ...options });
}
}
export interface ValListParams extends PageCursorURLParams {
/**
* Search query
*/
query: string;
}
export declare namespace Vals {
export { type ValListParams as ValListParams };
}
export { BasicValsPageCursorURL };