@mixedbread/sdk 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/README.md +31 -0
- package/bin/migration-config.json +4 -0
- package/client.d.mts +8 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -6
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +10 -16
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +10 -16
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/internal/request-options.d.mts +42 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +42 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/data-sources/connectors.d.mts +5 -106
- package/resources/data-sources/connectors.d.mts.map +1 -1
- package/resources/data-sources/connectors.d.ts +5 -106
- package/resources/data-sources/connectors.d.ts.map +1 -1
- package/resources/data-sources/connectors.js +2 -1
- package/resources/data-sources/connectors.js.map +1 -1
- package/resources/data-sources/connectors.mjs +2 -1
- package/resources/data-sources/connectors.mjs.map +1 -1
- package/resources/data-sources/data-sources.d.mts +7 -108
- package/resources/data-sources/data-sources.d.mts.map +1 -1
- package/resources/data-sources/data-sources.d.ts +7 -108
- package/resources/data-sources/data-sources.d.ts.map +1 -1
- package/resources/data-sources/data-sources.js +2 -1
- package/resources/data-sources/data-sources.js.map +1 -1
- package/resources/data-sources/data-sources.mjs +2 -1
- package/resources/data-sources/data-sources.mjs.map +1 -1
- package/resources/data-sources/index.d.mts +2 -2
- package/resources/data-sources/index.d.mts.map +1 -1
- package/resources/data-sources/index.d.ts +2 -2
- package/resources/data-sources/index.d.ts.map +1 -1
- package/resources/embeddings.d.mts +1 -1
- package/resources/embeddings.d.mts.map +1 -1
- package/resources/embeddings.d.ts +1 -1
- package/resources/embeddings.d.ts.map +1 -1
- package/resources/files.d.mts +5 -103
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +5 -103
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +2 -1
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +2 -1
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/parsing/index.d.mts +1 -1
- package/resources/parsing/index.d.mts.map +1 -1
- package/resources/parsing/index.d.ts +1 -1
- package/resources/parsing/index.d.ts.map +1 -1
- package/resources/parsing/index.js.map +1 -1
- package/resources/parsing/index.mjs.map +1 -1
- package/resources/parsing/jobs.d.mts +33 -134
- package/resources/parsing/jobs.d.mts.map +1 -1
- package/resources/parsing/jobs.d.ts +33 -134
- package/resources/parsing/jobs.d.ts.map +1 -1
- package/resources/parsing/jobs.js +2 -1
- package/resources/parsing/jobs.js.map +1 -1
- package/resources/parsing/jobs.mjs +2 -1
- package/resources/parsing/jobs.mjs.map +1 -1
- package/resources/parsing/parsing.d.mts +2 -2
- package/resources/parsing/parsing.d.mts.map +1 -1
- package/resources/parsing/parsing.d.ts +2 -2
- package/resources/parsing/parsing.d.ts.map +1 -1
- package/resources/parsing/parsing.js.map +1 -1
- package/resources/parsing/parsing.mjs.map +1 -1
- package/resources/vector-stores/files.d.mts +135 -95
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts +135 -95
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +7 -3
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +7 -3
- package/resources/vector-stores/files.mjs.map +1 -1
- package/resources/vector-stores/index.d.mts +2 -2
- package/resources/vector-stores/index.d.mts.map +1 -1
- package/resources/vector-stores/index.d.ts +2 -2
- package/resources/vector-stores/index.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.d.mts +23 -117
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +23 -117
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js +2 -1
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +2 -1
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/src/client.ts +8 -6
- package/src/core/pagination.ts +10 -18
- package/src/internal/request-options.ts +53 -0
- package/src/resources/data-sources/connectors.ts +11 -118
- package/src/resources/data-sources/data-sources.ts +9 -120
- package/src/resources/data-sources/index.ts +2 -2
- package/src/resources/embeddings.ts +2 -1
- package/src/resources/files.ts +7 -115
- package/src/resources/index.ts +3 -3
- package/src/resources/parsing/index.ts +1 -0
- package/src/resources/parsing/jobs.ts +38 -145
- package/src/resources/parsing/parsing.ts +2 -0
- package/src/resources/vector-stores/files.ts +167 -103
- package/src/resources/vector-stores/index.ts +2 -2
- package/src/resources/vector-stores/vector-stores.ts +29 -132
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
@@ -7,17 +7,59 @@ export type FinalRequestOptions = RequestOptions & {
|
|
7
7
|
path: string;
|
8
8
|
};
|
9
9
|
export type RequestOptions = {
|
10
|
+
/**
|
11
|
+
* The HTTP method for the request (e.g., 'get', 'post', 'put', 'delete').
|
12
|
+
*/
|
10
13
|
method?: HTTPMethod;
|
14
|
+
/**
|
15
|
+
* The URL path for the request.
|
16
|
+
*
|
17
|
+
* @example "/v1/foo"
|
18
|
+
*/
|
11
19
|
path?: string;
|
20
|
+
/**
|
21
|
+
* Query parameters to include in the request URL.
|
22
|
+
*/
|
12
23
|
query?: object | undefined | null;
|
24
|
+
/**
|
25
|
+
* The request body. Can be a string, JSON object, FormData, or other supported types.
|
26
|
+
*/
|
13
27
|
body?: unknown;
|
28
|
+
/**
|
29
|
+
* HTTP headers to include with the request. Can be a Headers object, plain object, or array of tuples.
|
30
|
+
*/
|
14
31
|
headers?: HeadersLike;
|
32
|
+
/**
|
33
|
+
* The maximum number of times that the client will retry a request in case of a
|
34
|
+
* temporary failure, like a network error or a 5XX error from the server.
|
35
|
+
*
|
36
|
+
* @default 2
|
37
|
+
*/
|
15
38
|
maxRetries?: number;
|
16
39
|
stream?: boolean | undefined;
|
40
|
+
/**
|
41
|
+
* The maximum amount of time (in milliseconds) that the client should wait for a response
|
42
|
+
* from the server before timing out a single request.
|
43
|
+
*
|
44
|
+
* @unit milliseconds
|
45
|
+
*/
|
17
46
|
timeout?: number;
|
47
|
+
/**
|
48
|
+
* Additional `RequestInit` options to be passed to the underlying `fetch` call.
|
49
|
+
* These options will be merged with the client's default fetch options.
|
50
|
+
*/
|
18
51
|
fetchOptions?: MergedRequestInit;
|
52
|
+
/**
|
53
|
+
* An AbortSignal that can be used to cancel the request.
|
54
|
+
*/
|
19
55
|
signal?: AbortSignal | undefined | null;
|
56
|
+
/**
|
57
|
+
* A unique key for this request to enable idempotency.
|
58
|
+
*/
|
20
59
|
idempotencyKey?: string;
|
60
|
+
/**
|
61
|
+
* Override the default base URL for this specific request.
|
62
|
+
*/
|
21
63
|
defaultBaseURL?: string | undefined;
|
22
64
|
__binaryResponse?: boolean | undefined;
|
23
65
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"request-options.d.mts","sourceRoot":"","sources":["../src/internal/request-options.ts"],"names":[],"mappings":"OAEO,EAAE,eAAe,EAAE;OAEnB,KAAK,EAAE,QAAQ,EAAE;OACjB,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE;OACtC,EAAE,KAAK,WAAW,EAAE;AAE3B,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAAG;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAExF,MAAM,MAAM,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C;AAC1E,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE;IAAE,OAAO,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,KAAK,cAAc,CAAC;AAEtG,eAAO,MAAM,eAAe,EAAE,cAO7B,CAAC"}
|
@@ -7,17 +7,59 @@ export type FinalRequestOptions = RequestOptions & {
|
|
7
7
|
path: string;
|
8
8
|
};
|
9
9
|
export type RequestOptions = {
|
10
|
+
/**
|
11
|
+
* The HTTP method for the request (e.g., 'get', 'post', 'put', 'delete').
|
12
|
+
*/
|
10
13
|
method?: HTTPMethod;
|
14
|
+
/**
|
15
|
+
* The URL path for the request.
|
16
|
+
*
|
17
|
+
* @example "/v1/foo"
|
18
|
+
*/
|
11
19
|
path?: string;
|
20
|
+
/**
|
21
|
+
* Query parameters to include in the request URL.
|
22
|
+
*/
|
12
23
|
query?: object | undefined | null;
|
24
|
+
/**
|
25
|
+
* The request body. Can be a string, JSON object, FormData, or other supported types.
|
26
|
+
*/
|
13
27
|
body?: unknown;
|
28
|
+
/**
|
29
|
+
* HTTP headers to include with the request. Can be a Headers object, plain object, or array of tuples.
|
30
|
+
*/
|
14
31
|
headers?: HeadersLike;
|
32
|
+
/**
|
33
|
+
* The maximum number of times that the client will retry a request in case of a
|
34
|
+
* temporary failure, like a network error or a 5XX error from the server.
|
35
|
+
*
|
36
|
+
* @default 2
|
37
|
+
*/
|
15
38
|
maxRetries?: number;
|
16
39
|
stream?: boolean | undefined;
|
40
|
+
/**
|
41
|
+
* The maximum amount of time (in milliseconds) that the client should wait for a response
|
42
|
+
* from the server before timing out a single request.
|
43
|
+
*
|
44
|
+
* @unit milliseconds
|
45
|
+
*/
|
17
46
|
timeout?: number;
|
47
|
+
/**
|
48
|
+
* Additional `RequestInit` options to be passed to the underlying `fetch` call.
|
49
|
+
* These options will be merged with the client's default fetch options.
|
50
|
+
*/
|
18
51
|
fetchOptions?: MergedRequestInit;
|
52
|
+
/**
|
53
|
+
* An AbortSignal that can be used to cancel the request.
|
54
|
+
*/
|
19
55
|
signal?: AbortSignal | undefined | null;
|
56
|
+
/**
|
57
|
+
* A unique key for this request to enable idempotency.
|
58
|
+
*/
|
20
59
|
idempotencyKey?: string;
|
60
|
+
/**
|
61
|
+
* Override the default base URL for this specific request.
|
62
|
+
*/
|
21
63
|
defaultBaseURL?: string | undefined;
|
22
64
|
__binaryResponse?: boolean | undefined;
|
23
65
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"request-options.d.ts","sourceRoot":"","sources":["../src/internal/request-options.ts"],"names":[],"mappings":"OAEO,EAAE,eAAe,EAAE;OAEnB,KAAK,EAAE,QAAQ,EAAE;OACjB,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE;OACtC,EAAE,KAAK,WAAW,EAAE;AAE3B,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAAG;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAExF,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,CAAC,EAAE,UAAU,CAAC;
|
1
|
+
{"version":3,"file":"request-options.d.ts","sourceRoot":"","sources":["../src/internal/request-options.ts"],"names":[],"mappings":"OAEO,EAAE,eAAe,EAAE;OAEnB,KAAK,EAAE,QAAQ,EAAE;OACjB,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE;OACtC,EAAE,KAAK,WAAW,EAAE;AAE3B,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAAG;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAExF,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;IAElC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAE7B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;IAEjC;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEpC,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC;AAC1E,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE;IAAE,OAAO,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,KAAK,cAAc,CAAC;AAEtG,eAAO,MAAM,eAAe,EAAE,cAO7B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"request-options.js","sourceRoot":"","sources":["../src/internal/request-options.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;
|
1
|
+
{"version":3,"file":"request-options.js","sourceRoot":"","sources":["../src/internal/request-options.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAmF/E,MAAM,eAAe,GAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;IACnE,OAAO;QACL,WAAW,EAAE;YACX,cAAc,EAAE,kBAAkB;SACnC;QACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;KAC3B,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,eAAe,mBAO1B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"request-options.mjs","sourceRoot":"","sources":["../src/internal/request-options.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
1
|
+
{"version":3,"file":"request-options.mjs","sourceRoot":"","sources":["../src/internal/request-options.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAmFtF,MAAM,CAAC,MAAM,eAAe,GAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;IACnE,OAAO;QACL,WAAW,EAAE;YACX,cAAc,EAAE,kBAAkB;SACnC;QACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;KAC3B,CAAC;AACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
2
2
|
import { APIPromise } from "../../core/api-promise.mjs";
|
3
|
+
import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.mjs";
|
3
4
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
4
5
|
export declare class Connectors extends APIResource {
|
5
6
|
/**
|
@@ -38,7 +39,7 @@ export declare class Connectors extends APIResource {
|
|
38
39
|
*
|
39
40
|
* Returns: The list of connectors.
|
40
41
|
*/
|
41
|
-
list(dataSourceID: string, query?: ConnectorListParams | null | undefined, options?: RequestOptions):
|
42
|
+
list(dataSourceID: string, query?: ConnectorListParams | null | undefined, options?: RequestOptions): PagePromise<DataSourceConnectorsCursor, DataSourceConnector>;
|
42
43
|
/**
|
43
44
|
* Delete a connector.
|
44
45
|
*
|
@@ -49,6 +50,7 @@ export declare class Connectors extends APIResource {
|
|
49
50
|
*/
|
50
51
|
delete(connectorID: string, params: ConnectorDeleteParams, options?: RequestOptions): APIPromise<ConnectorDeleteResponse>;
|
51
52
|
}
|
53
|
+
export type DataSourceConnectorsCursor = Cursor<DataSourceConnector>;
|
52
54
|
/**
|
53
55
|
* Service-level representation of a connector.
|
54
56
|
*/
|
@@ -112,91 +114,6 @@ export interface DataSourceConnector {
|
|
112
114
|
*/
|
113
115
|
object?: 'data_source.connector';
|
114
116
|
}
|
115
|
-
/**
|
116
|
-
* A list of connectors with pagination.
|
117
|
-
*/
|
118
|
-
export interface ConnectorListResponse {
|
119
|
-
/**
|
120
|
-
* Response model for cursor-based pagination.
|
121
|
-
*
|
122
|
-
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
123
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
124
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
125
|
-
*
|
126
|
-
* Final page response:
|
127
|
-
* {
|
128
|
-
* "has_more": false,
|
129
|
-
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
130
|
-
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
131
|
-
* "total": 42
|
132
|
-
* }
|
133
|
-
*
|
134
|
-
* Empty results:
|
135
|
-
* {
|
136
|
-
* "has_more": false,
|
137
|
-
* "first_cursor": null,
|
138
|
-
* "last_cursor": null,
|
139
|
-
* "total": 0
|
140
|
-
* }
|
141
|
-
*/
|
142
|
-
pagination: ConnectorListResponse.Pagination;
|
143
|
-
/**
|
144
|
-
* The list of connectors
|
145
|
-
*/
|
146
|
-
data: Array<DataSourceConnector>;
|
147
|
-
/**
|
148
|
-
* The object type of the response
|
149
|
-
*/
|
150
|
-
object?: 'list';
|
151
|
-
}
|
152
|
-
export declare namespace ConnectorListResponse {
|
153
|
-
/**
|
154
|
-
* Response model for cursor-based pagination.
|
155
|
-
*
|
156
|
-
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
157
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
158
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
159
|
-
*
|
160
|
-
* Final page response:
|
161
|
-
* {
|
162
|
-
* "has_more": false,
|
163
|
-
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
164
|
-
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
165
|
-
* "total": 42
|
166
|
-
* }
|
167
|
-
*
|
168
|
-
* Empty results:
|
169
|
-
* {
|
170
|
-
* "has_more": false,
|
171
|
-
* "first_cursor": null,
|
172
|
-
* "last_cursor": null,
|
173
|
-
* "total": 0
|
174
|
-
* }
|
175
|
-
*/
|
176
|
-
interface Pagination {
|
177
|
-
/**
|
178
|
-
* Contextual direction-aware flag: True if more items exist in the requested
|
179
|
-
* pagination direction. For 'after': more items after this page. For 'before':
|
180
|
-
* more items before this page.
|
181
|
-
*/
|
182
|
-
has_more: boolean;
|
183
|
-
/**
|
184
|
-
* Cursor of the first item in this page. Use for backward pagination. None if page
|
185
|
-
* is empty.
|
186
|
-
*/
|
187
|
-
first_cursor: string | null;
|
188
|
-
/**
|
189
|
-
* Cursor of the last item in this page. Use for forward pagination. None if page
|
190
|
-
* is empty.
|
191
|
-
*/
|
192
|
-
last_cursor: string | null;
|
193
|
-
/**
|
194
|
-
* Total number of items available across all pages. Only included when
|
195
|
-
* include_total=true was requested. Expensive operation - use sparingly.
|
196
|
-
*/
|
197
|
-
total?: number | null;
|
198
|
-
}
|
199
|
-
}
|
200
117
|
/**
|
201
118
|
* Deleted connector.
|
202
119
|
*/
|
@@ -276,25 +193,7 @@ export interface ConnectorUpdateParams {
|
|
276
193
|
*/
|
277
194
|
polling_interval?: number | string | null;
|
278
195
|
}
|
279
|
-
export interface ConnectorListParams {
|
280
|
-
/**
|
281
|
-
* Maximum number of items to return per page (1-100)
|
282
|
-
*/
|
283
|
-
limit?: number;
|
284
|
-
/**
|
285
|
-
* Cursor for forward pagination - get items after this position. Use last_cursor
|
286
|
-
* from previous response.
|
287
|
-
*/
|
288
|
-
after?: string | null;
|
289
|
-
/**
|
290
|
-
* Cursor for backward pagination - get items before this position. Use
|
291
|
-
* first_cursor from previous response.
|
292
|
-
*/
|
293
|
-
before?: string | null;
|
294
|
-
/**
|
295
|
-
* Whether to include total count in response (expensive operation)
|
296
|
-
*/
|
297
|
-
include_total?: boolean;
|
196
|
+
export interface ConnectorListParams extends CursorParams {
|
298
197
|
}
|
299
198
|
export interface ConnectorDeleteParams {
|
300
199
|
/**
|
@@ -303,6 +202,6 @@ export interface ConnectorDeleteParams {
|
|
303
202
|
data_source_id: string;
|
304
203
|
}
|
305
204
|
export declare namespace Connectors {
|
306
|
-
export { type DataSourceConnector as DataSourceConnector, type
|
205
|
+
export { type DataSourceConnector as DataSourceConnector, type ConnectorDeleteResponse as ConnectorDeleteResponse, type DataSourceConnectorsCursor as DataSourceConnectorsCursor, type ConnectorCreateParams as ConnectorCreateParams, type ConnectorRetrieveParams as ConnectorRetrieveParams, type ConnectorUpdateParams as ConnectorUpdateParams, type ConnectorListParams as ConnectorListParams, type ConnectorDeleteParams as ConnectorDeleteParams, };
|
307
206
|
}
|
308
207
|
//# sourceMappingURL=connectors.d.mts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"connectors.d.mts","sourceRoot":"","sources":["../../src/resources/data-sources/connectors.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;OAOG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,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,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
2
2
|
import { APIPromise } from "../../core/api-promise.js";
|
3
|
+
import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.js";
|
3
4
|
import { RequestOptions } from "../../internal/request-options.js";
|
4
5
|
export declare class Connectors extends APIResource {
|
5
6
|
/**
|
@@ -38,7 +39,7 @@ export declare class Connectors extends APIResource {
|
|
38
39
|
*
|
39
40
|
* Returns: The list of connectors.
|
40
41
|
*/
|
41
|
-
list(dataSourceID: string, query?: ConnectorListParams | null | undefined, options?: RequestOptions):
|
42
|
+
list(dataSourceID: string, query?: ConnectorListParams | null | undefined, options?: RequestOptions): PagePromise<DataSourceConnectorsCursor, DataSourceConnector>;
|
42
43
|
/**
|
43
44
|
* Delete a connector.
|
44
45
|
*
|
@@ -49,6 +50,7 @@ export declare class Connectors extends APIResource {
|
|
49
50
|
*/
|
50
51
|
delete(connectorID: string, params: ConnectorDeleteParams, options?: RequestOptions): APIPromise<ConnectorDeleteResponse>;
|
51
52
|
}
|
53
|
+
export type DataSourceConnectorsCursor = Cursor<DataSourceConnector>;
|
52
54
|
/**
|
53
55
|
* Service-level representation of a connector.
|
54
56
|
*/
|
@@ -112,91 +114,6 @@ export interface DataSourceConnector {
|
|
112
114
|
*/
|
113
115
|
object?: 'data_source.connector';
|
114
116
|
}
|
115
|
-
/**
|
116
|
-
* A list of connectors with pagination.
|
117
|
-
*/
|
118
|
-
export interface ConnectorListResponse {
|
119
|
-
/**
|
120
|
-
* Response model for cursor-based pagination.
|
121
|
-
*
|
122
|
-
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
123
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
124
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
125
|
-
*
|
126
|
-
* Final page response:
|
127
|
-
* {
|
128
|
-
* "has_more": false,
|
129
|
-
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
130
|
-
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
131
|
-
* "total": 42
|
132
|
-
* }
|
133
|
-
*
|
134
|
-
* Empty results:
|
135
|
-
* {
|
136
|
-
* "has_more": false,
|
137
|
-
* "first_cursor": null,
|
138
|
-
* "last_cursor": null,
|
139
|
-
* "total": 0
|
140
|
-
* }
|
141
|
-
*/
|
142
|
-
pagination: ConnectorListResponse.Pagination;
|
143
|
-
/**
|
144
|
-
* The list of connectors
|
145
|
-
*/
|
146
|
-
data: Array<DataSourceConnector>;
|
147
|
-
/**
|
148
|
-
* The object type of the response
|
149
|
-
*/
|
150
|
-
object?: 'list';
|
151
|
-
}
|
152
|
-
export declare namespace ConnectorListResponse {
|
153
|
-
/**
|
154
|
-
* Response model for cursor-based pagination.
|
155
|
-
*
|
156
|
-
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
157
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
158
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
159
|
-
*
|
160
|
-
* Final page response:
|
161
|
-
* {
|
162
|
-
* "has_more": false,
|
163
|
-
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
164
|
-
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
165
|
-
* "total": 42
|
166
|
-
* }
|
167
|
-
*
|
168
|
-
* Empty results:
|
169
|
-
* {
|
170
|
-
* "has_more": false,
|
171
|
-
* "first_cursor": null,
|
172
|
-
* "last_cursor": null,
|
173
|
-
* "total": 0
|
174
|
-
* }
|
175
|
-
*/
|
176
|
-
interface Pagination {
|
177
|
-
/**
|
178
|
-
* Contextual direction-aware flag: True if more items exist in the requested
|
179
|
-
* pagination direction. For 'after': more items after this page. For 'before':
|
180
|
-
* more items before this page.
|
181
|
-
*/
|
182
|
-
has_more: boolean;
|
183
|
-
/**
|
184
|
-
* Cursor of the first item in this page. Use for backward pagination. None if page
|
185
|
-
* is empty.
|
186
|
-
*/
|
187
|
-
first_cursor: string | null;
|
188
|
-
/**
|
189
|
-
* Cursor of the last item in this page. Use for forward pagination. None if page
|
190
|
-
* is empty.
|
191
|
-
*/
|
192
|
-
last_cursor: string | null;
|
193
|
-
/**
|
194
|
-
* Total number of items available across all pages. Only included when
|
195
|
-
* include_total=true was requested. Expensive operation - use sparingly.
|
196
|
-
*/
|
197
|
-
total?: number | null;
|
198
|
-
}
|
199
|
-
}
|
200
117
|
/**
|
201
118
|
* Deleted connector.
|
202
119
|
*/
|
@@ -276,25 +193,7 @@ export interface ConnectorUpdateParams {
|
|
276
193
|
*/
|
277
194
|
polling_interval?: number | string | null;
|
278
195
|
}
|
279
|
-
export interface ConnectorListParams {
|
280
|
-
/**
|
281
|
-
* Maximum number of items to return per page (1-100)
|
282
|
-
*/
|
283
|
-
limit?: number;
|
284
|
-
/**
|
285
|
-
* Cursor for forward pagination - get items after this position. Use last_cursor
|
286
|
-
* from previous response.
|
287
|
-
*/
|
288
|
-
after?: string | null;
|
289
|
-
/**
|
290
|
-
* Cursor for backward pagination - get items before this position. Use
|
291
|
-
* first_cursor from previous response.
|
292
|
-
*/
|
293
|
-
before?: string | null;
|
294
|
-
/**
|
295
|
-
* Whether to include total count in response (expensive operation)
|
296
|
-
*/
|
297
|
-
include_total?: boolean;
|
196
|
+
export interface ConnectorListParams extends CursorParams {
|
298
197
|
}
|
299
198
|
export interface ConnectorDeleteParams {
|
300
199
|
/**
|
@@ -303,6 +202,6 @@ export interface ConnectorDeleteParams {
|
|
303
202
|
data_source_id: string;
|
304
203
|
}
|
305
204
|
export declare namespace Connectors {
|
306
|
-
export { type DataSourceConnector as DataSourceConnector, type
|
205
|
+
export { type DataSourceConnector as DataSourceConnector, type ConnectorDeleteResponse as ConnectorDeleteResponse, type DataSourceConnectorsCursor as DataSourceConnectorsCursor, type ConnectorCreateParams as ConnectorCreateParams, type ConnectorRetrieveParams as ConnectorRetrieveParams, type ConnectorUpdateParams as ConnectorUpdateParams, type ConnectorListParams as ConnectorListParams, type ConnectorDeleteParams as ConnectorDeleteParams, };
|
307
206
|
}
|
308
207
|
//# sourceMappingURL=connectors.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"connectors.d.ts","sourceRoot":"","sources":["../../src/resources/data-sources/connectors.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;OAOG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;;;;;;OAOG;IACH,QAAQ,CACN,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAKlC;;;;;;;;OAQG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,qBAAqB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAQlC;;;;;;;OAOG;IACH,IAAI,CACF,YAAY,EAAE,MAAM,EACpB,KAAK,GAAE,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AM,WAAW,uBAAuB;IACtC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAE7C;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE9B;;;;;;;OAOG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CAC3C;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY;CAAG;AAE5D,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
@@ -3,6 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
4
|
exports.Connectors = void 0;
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
6
|
+
const pagination_1 = require("../../core/pagination.js");
|
6
7
|
const path_1 = require("../../internal/utils/path.js");
|
7
8
|
class Connectors extends resource_1.APIResource {
|
8
9
|
/**
|
@@ -53,7 +54,7 @@ class Connectors extends resource_1.APIResource {
|
|
53
54
|
* Returns: The list of connectors.
|
54
55
|
*/
|
55
56
|
list(dataSourceID, query = {}, options) {
|
56
|
-
return this._client.
|
57
|
+
return this._client.getAPIList((0, path_1.path) `/v1/data_sources/${dataSourceID}/connectors`, (pagination_1.Cursor), { query, ...options });
|
57
58
|
}
|
58
59
|
/**
|
59
60
|
* Delete a connector.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"connectors.js","sourceRoot":"","sources":["../../src/resources/data-sources/connectors.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;
|
1
|
+
{"version":3,"file":"connectors.js","sourceRoot":"","sources":["../../src/resources/data-sources/connectors.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA+E;AAE/E,uDAAiD;AAEjD,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;OAOG;IACH,MAAM,CACJ,YAAoB,EACpB,IAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oBAAoB,YAAY,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CACN,WAAmB,EACnB,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,cAAc,eAAe,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACvG,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CACJ,WAAmB,EACnB,MAA6B,EAC7B,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,cAAc,eAAe,WAAW,EAAE,EAAE;YAC1F,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,YAAoB,EACpB,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,oBAAoB,YAAY,aAAa,EACjD,CAAA,mBAA2B,CAAA,EAC3B,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,WAAmB,EACnB,MAA6B,EAC7B,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,oBAAoB,cAAc,eAAe,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1G,CAAC;CACF;AA3FD,gCA2FC"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
3
|
+
import { Cursor } from "../../core/pagination.mjs";
|
3
4
|
import { path } from "../../internal/utils/path.mjs";
|
4
5
|
export class Connectors extends APIResource {
|
5
6
|
/**
|
@@ -50,7 +51,7 @@ export class Connectors extends APIResource {
|
|
50
51
|
* Returns: The list of connectors.
|
51
52
|
*/
|
52
53
|
list(dataSourceID, query = {}, options) {
|
53
|
-
return this._client.
|
54
|
+
return this._client.getAPIList(path `/v1/data_sources/${dataSourceID}/connectors`, (Cursor), { query, ...options });
|
54
55
|
}
|
55
56
|
/**
|
56
57
|
* Delete a connector.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"connectors.mjs","sourceRoot":"","sources":["../../src/resources/data-sources/connectors.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
1
|
+
{"version":3,"file":"connectors.mjs","sourceR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