@mixedbread/sdk 0.11.0 → 0.12.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.
Files changed (102) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +0 -52
  3. package/client.d.mts +6 -6
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +6 -6
  6. package/client.d.ts.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/internal/types.d.mts +8 -6
  9. package/internal/types.d.mts.map +1 -1
  10. package/internal/types.d.ts +8 -6
  11. package/internal/types.d.ts.map +1 -1
  12. package/package.json +1 -1
  13. package/resources/data-sources/connectors.d.mts +106 -5
  14. package/resources/data-sources/connectors.d.mts.map +1 -1
  15. package/resources/data-sources/connectors.d.ts +106 -5
  16. package/resources/data-sources/connectors.d.ts.map +1 -1
  17. package/resources/data-sources/connectors.js +1 -2
  18. package/resources/data-sources/connectors.js.map +1 -1
  19. package/resources/data-sources/connectors.mjs +1 -2
  20. package/resources/data-sources/connectors.mjs.map +1 -1
  21. package/resources/data-sources/data-sources.d.mts +108 -7
  22. package/resources/data-sources/data-sources.d.mts.map +1 -1
  23. package/resources/data-sources/data-sources.d.ts +108 -7
  24. package/resources/data-sources/data-sources.d.ts.map +1 -1
  25. package/resources/data-sources/data-sources.js +1 -2
  26. package/resources/data-sources/data-sources.js.map +1 -1
  27. package/resources/data-sources/data-sources.mjs +1 -2
  28. package/resources/data-sources/data-sources.mjs.map +1 -1
  29. package/resources/data-sources/index.d.mts +2 -2
  30. package/resources/data-sources/index.d.mts.map +1 -1
  31. package/resources/data-sources/index.d.ts +2 -2
  32. package/resources/data-sources/index.d.ts.map +1 -1
  33. package/resources/files.d.mts +107 -5
  34. package/resources/files.d.mts.map +1 -1
  35. package/resources/files.d.ts +107 -5
  36. package/resources/files.d.ts.map +1 -1
  37. package/resources/files.js +1 -2
  38. package/resources/files.js.map +1 -1
  39. package/resources/files.mjs +1 -2
  40. package/resources/files.mjs.map +1 -1
  41. package/resources/index.d.mts +3 -3
  42. package/resources/index.d.mts.map +1 -1
  43. package/resources/index.d.ts +3 -3
  44. package/resources/index.d.ts.map +1 -1
  45. package/resources/parsing/index.d.mts +1 -1
  46. package/resources/parsing/index.d.mts.map +1 -1
  47. package/resources/parsing/index.d.ts +1 -1
  48. package/resources/parsing/index.d.ts.map +1 -1
  49. package/resources/parsing/index.js.map +1 -1
  50. package/resources/parsing/index.mjs.map +1 -1
  51. package/resources/parsing/jobs.d.mts +134 -29
  52. package/resources/parsing/jobs.d.mts.map +1 -1
  53. package/resources/parsing/jobs.d.ts +134 -29
  54. package/resources/parsing/jobs.d.ts.map +1 -1
  55. package/resources/parsing/jobs.js +1 -2
  56. package/resources/parsing/jobs.js.map +1 -1
  57. package/resources/parsing/jobs.mjs +1 -2
  58. package/resources/parsing/jobs.mjs.map +1 -1
  59. package/resources/parsing/parsing.d.mts +2 -2
  60. package/resources/parsing/parsing.d.mts.map +1 -1
  61. package/resources/parsing/parsing.d.ts +2 -2
  62. package/resources/parsing/parsing.d.ts.map +1 -1
  63. package/resources/parsing/parsing.js.map +1 -1
  64. package/resources/parsing/parsing.mjs.map +1 -1
  65. package/resources/vector-stores/files.d.mts +103 -5
  66. package/resources/vector-stores/files.d.mts.map +1 -1
  67. package/resources/vector-stores/files.d.ts +103 -5
  68. package/resources/vector-stores/files.d.ts.map +1 -1
  69. package/resources/vector-stores/files.js +1 -2
  70. package/resources/vector-stores/files.js.map +1 -1
  71. package/resources/vector-stores/files.mjs +1 -2
  72. package/resources/vector-stores/files.mjs.map +1 -1
  73. package/resources/vector-stores/index.d.mts +2 -2
  74. package/resources/vector-stores/index.d.mts.map +1 -1
  75. package/resources/vector-stores/index.d.ts +2 -2
  76. package/resources/vector-stores/index.d.ts.map +1 -1
  77. package/resources/vector-stores/vector-stores.d.mts +105 -7
  78. package/resources/vector-stores/vector-stores.d.mts.map +1 -1
  79. package/resources/vector-stores/vector-stores.d.ts +105 -7
  80. package/resources/vector-stores/vector-stores.d.ts.map +1 -1
  81. package/resources/vector-stores/vector-stores.js +1 -2
  82. package/resources/vector-stores/vector-stores.js.map +1 -1
  83. package/resources/vector-stores/vector-stores.mjs +1 -2
  84. package/resources/vector-stores/vector-stores.mjs.map +1 -1
  85. package/src/client.ts +6 -6
  86. package/src/internal/types.ts +9 -6
  87. package/src/resources/data-sources/connectors.ts +118 -11
  88. package/src/resources/data-sources/data-sources.ts +120 -9
  89. package/src/resources/data-sources/index.ts +2 -2
  90. package/src/resources/files.ts +120 -7
  91. package/src/resources/index.ts +3 -3
  92. package/src/resources/parsing/index.ts +0 -1
  93. package/src/resources/parsing/jobs.ts +146 -34
  94. package/src/resources/parsing/parsing.ts +0 -2
  95. package/src/resources/vector-stores/files.ts +115 -11
  96. package/src/resources/vector-stores/index.ts +2 -2
  97. package/src/resources/vector-stores/vector-stores.ts +117 -9
  98. package/src/version.ts +1 -1
  99. package/version.d.mts +1 -1
  100. package/version.d.ts +1 -1
  101. package/version.js +1 -1
  102. package/version.mjs +1 -1
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
4
  import { APIPromise } from '../../core/api-promise';
5
- import { Cursor, type CursorParams, PagePromise } from '../../core/pagination';
6
5
  import { RequestOptions } from '../../internal/request-options';
7
6
  import { path } from '../../internal/utils/path';
8
7
 
@@ -73,12 +72,8 @@ export class Connectors extends APIResource {
73
72
  dataSourceID: string,
74
73
  query: ConnectorListParams | null | undefined = {},
75
74
  options?: RequestOptions,
76
- ): PagePromise<DataSourceConnectorsCursor, DataSourceConnector> {
77
- return this._client.getAPIList(
78
- path`/v1/data_sources/${dataSourceID}/connectors`,
79
- Cursor<DataSourceConnector>,
80
- { query, ...options },
81
- );
75
+ ): APIPromise<ConnectorListResponse> {
76
+ return this._client.get(path`/v1/data_sources/${dataSourceID}/connectors`, { query, ...options });
82
77
  }
83
78
 
84
79
  /**
@@ -99,8 +94,6 @@ export class Connectors extends APIResource {
99
94
  }
100
95
  }
101
96
 
102
- export type DataSourceConnectorsCursor = Cursor<DataSourceConnector>;
103
-
104
97
  /**
105
98
  * Service-level representation of a connector.
106
99
  */
@@ -176,6 +169,98 @@ export interface DataSourceConnector {
176
169
  object?: 'data_source.connector';
177
170
  }
178
171
 
172
+ /**
173
+ * A list of connectors with pagination.
174
+ */
175
+ export interface ConnectorListResponse {
176
+ /**
177
+ * Response model for cursor-based pagination.
178
+ *
179
+ * Examples: Forward pagination response: { "has_more": true, "first_cursor":
180
+ * "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
181
+ * "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
182
+ *
183
+ * Final page response:
184
+ * {
185
+ * "has_more": false,
186
+ * "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
187
+ * "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
188
+ * "total": 42
189
+ * }
190
+ *
191
+ * Empty results:
192
+ * {
193
+ * "has_more": false,
194
+ * "first_cursor": null,
195
+ * "last_cursor": null,
196
+ * "total": 0
197
+ * }
198
+ */
199
+ pagination: ConnectorListResponse.Pagination;
200
+
201
+ /**
202
+ * The list of connectors
203
+ */
204
+ data: Array<DataSourceConnector>;
205
+
206
+ /**
207
+ * The object type of the response
208
+ */
209
+ object?: 'list';
210
+ }
211
+
212
+ export namespace ConnectorListResponse {
213
+ /**
214
+ * Response model for cursor-based pagination.
215
+ *
216
+ * Examples: Forward pagination response: { "has_more": true, "first_cursor":
217
+ * "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
218
+ * "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
219
+ *
220
+ * Final page response:
221
+ * {
222
+ * "has_more": false,
223
+ * "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
224
+ * "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
225
+ * "total": 42
226
+ * }
227
+ *
228
+ * Empty results:
229
+ * {
230
+ * "has_more": false,
231
+ * "first_cursor": null,
232
+ * "last_cursor": null,
233
+ * "total": 0
234
+ * }
235
+ */
236
+ export interface Pagination {
237
+ /**
238
+ * Contextual direction-aware flag: True if more items exist in the requested
239
+ * pagination direction. For 'after': more items after this page. For 'before':
240
+ * more items before this page.
241
+ */
242
+ has_more: boolean;
243
+
244
+ /**
245
+ * Cursor of the first item in this page. Use for backward pagination. None if page
246
+ * is empty.
247
+ */
248
+ first_cursor: string | null;
249
+
250
+ /**
251
+ * Cursor of the last item in this page. Use for forward pagination. None if page
252
+ * is empty.
253
+ */
254
+ last_cursor: string | null;
255
+
256
+ /**
257
+ * Total number of items available across all pages. Only included when
258
+ * include_total=true was requested. Expensive operation - use sparingly.
259
+ */
260
+ total?: number | null;
261
+ }
262
+ }
263
+
179
264
  /**
180
265
  * Deleted connector.
181
266
  */
@@ -267,7 +352,29 @@ export interface ConnectorUpdateParams {
267
352
  polling_interval?: number | string | null;
268
353
  }
269
354
 
270
- export interface ConnectorListParams extends CursorParams {}
355
+ export interface ConnectorListParams {
356
+ /**
357
+ * Maximum number of items to return per page (1-100)
358
+ */
359
+ limit?: number;
360
+
361
+ /**
362
+ * Cursor for forward pagination - get items after this position. Use last_cursor
363
+ * from previous response.
364
+ */
365
+ after?: string | null;
366
+
367
+ /**
368
+ * Cursor for backward pagination - get items before this position. Use
369
+ * first_cursor from previous response.
370
+ */
371
+ before?: string | null;
372
+
373
+ /**
374
+ * Whether to include total count in response (expensive operation)
375
+ */
376
+ include_total?: boolean;
377
+ }
271
378
 
272
379
  export interface ConnectorDeleteParams {
273
380
  /**
@@ -279,8 +386,8 @@ export interface ConnectorDeleteParams {
279
386
  export declare namespace Connectors {
280
387
  export {
281
388
  type DataSourceConnector as DataSourceConnector,
389
+ type ConnectorListResponse as ConnectorListResponse,
282
390
  type ConnectorDeleteResponse as ConnectorDeleteResponse,
283
- type DataSourceConnectorsCursor as DataSourceConnectorsCursor,
284
391
  type ConnectorCreateParams as ConnectorCreateParams,
285
392
  type ConnectorRetrieveParams as ConnectorRetrieveParams,
286
393
  type ConnectorUpdateParams as ConnectorUpdateParams,
@@ -7,14 +7,13 @@ import {
7
7
  ConnectorDeleteParams,
8
8
  ConnectorDeleteResponse,
9
9
  ConnectorListParams,
10
+ ConnectorListResponse,
10
11
  ConnectorRetrieveParams,
11
12
  ConnectorUpdateParams,
12
13
  Connectors,
13
14
  DataSourceConnector,
14
- DataSourceConnectorsCursor,
15
15
  } from './connectors';
16
16
  import { APIPromise } from '../../core/api-promise';
17
- import { Cursor, type CursorParams, PagePromise } from '../../core/pagination';
18
17
  import { RequestOptions } from '../../internal/request-options';
19
18
  import { path } from '../../internal/utils/path';
20
19
 
@@ -67,8 +66,8 @@ export class DataSources extends APIResource {
67
66
  list(
68
67
  query: DataSourceListParams | null | undefined = {},
69
68
  options?: RequestOptions,
70
- ): PagePromise<DataSourcesCursor, DataSource> {
71
- return this._client.getAPIList('/v1/data_sources/', Cursor<DataSource>, { query, ...options });
69
+ ): APIPromise<DataSourceListResponse> {
70
+ return this._client.get('/v1/data_sources/', { query, ...options });
72
71
  }
73
72
 
74
73
  /**
@@ -81,8 +80,6 @@ export class DataSources extends APIResource {
81
80
  }
82
81
  }
83
82
 
84
- export type DataSourcesCursor = Cursor<DataSource>;
85
-
86
83
  /**
87
84
  * Service-level representation of a data source.
88
85
  */
@@ -258,6 +255,98 @@ export interface Oauth2Params {
258
255
  type?: 'oauth2';
259
256
  }
260
257
 
258
+ /**
259
+ * A list of data sources with pagination.
260
+ */
261
+ export interface DataSourceListResponse {
262
+ /**
263
+ * Response model for cursor-based pagination.
264
+ *
265
+ * Examples: Forward pagination response: { "has_more": true, "first_cursor":
266
+ * "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
267
+ * "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
268
+ *
269
+ * Final page response:
270
+ * {
271
+ * "has_more": false,
272
+ * "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
273
+ * "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
274
+ * "total": 42
275
+ * }
276
+ *
277
+ * Empty results:
278
+ * {
279
+ * "has_more": false,
280
+ * "first_cursor": null,
281
+ * "last_cursor": null,
282
+ * "total": 0
283
+ * }
284
+ */
285
+ pagination: DataSourceListResponse.Pagination;
286
+
287
+ /**
288
+ * The list of data sources
289
+ */
290
+ data: Array<DataSource>;
291
+
292
+ /**
293
+ * The object type of the response
294
+ */
295
+ object?: 'list';
296
+ }
297
+
298
+ export namespace DataSourceListResponse {
299
+ /**
300
+ * Response model for cursor-based pagination.
301
+ *
302
+ * Examples: Forward pagination response: { "has_more": true, "first_cursor":
303
+ * "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
304
+ * "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
305
+ *
306
+ * Final page response:
307
+ * {
308
+ * "has_more": false,
309
+ * "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
310
+ * "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
311
+ * "total": 42
312
+ * }
313
+ *
314
+ * Empty results:
315
+ * {
316
+ * "has_more": false,
317
+ * "first_cursor": null,
318
+ * "last_cursor": null,
319
+ * "total": 0
320
+ * }
321
+ */
322
+ export interface Pagination {
323
+ /**
324
+ * Contextual direction-aware flag: True if more items exist in the requested
325
+ * pagination direction. For 'after': more items after this page. For 'before':
326
+ * more items before this page.
327
+ */
328
+ has_more: boolean;
329
+
330
+ /**
331
+ * Cursor of the first item in this page. Use for backward pagination. None if page
332
+ * is empty.
333
+ */
334
+ first_cursor: string | null;
335
+
336
+ /**
337
+ * Cursor of the last item in this page. Use for forward pagination. None if page
338
+ * is empty.
339
+ */
340
+ last_cursor: string | null;
341
+
342
+ /**
343
+ * Total number of items available across all pages. Only included when
344
+ * include_total=true was requested. Expensive operation - use sparingly.
345
+ */
346
+ total?: number | null;
347
+ }
348
+ }
349
+
261
350
  /**
262
351
  * Deleted data source.
263
352
  */
@@ -408,7 +497,29 @@ export declare namespace DataSourceUpdateParams {
408
497
  }
409
498
  }
410
499
 
411
- export interface DataSourceListParams extends CursorParams {}
500
+ export interface DataSourceListParams {
501
+ /**
502
+ * Maximum number of items to return per page (1-100)
503
+ */
504
+ limit?: number;
505
+
506
+ /**
507
+ * Cursor for forward pagination - get items after this position. Use last_cursor
508
+ * from previous response.
509
+ */
510
+ after?: string | null;
511
+
512
+ /**
513
+ * Cursor for backward pagination - get items before this position. Use
514
+ * first_cursor from previous response.
515
+ */
516
+ before?: string | null;
517
+
518
+ /**
519
+ * Whether to include total count in response (expensive operation)
520
+ */
521
+ include_total?: boolean;
522
+ }
412
523
 
413
524
  DataSources.Connectors = Connectors;
414
525
 
@@ -420,8 +531,8 @@ export declare namespace DataSources {
420
531
  type LinearDataSource as LinearDataSource,
421
532
  type NotionDataSource as NotionDataSource,
422
533
  type Oauth2Params as Oauth2Params,
534
+ type DataSourceListResponse as DataSourceListResponse,
423
535
  type DataSourceDeleteResponse as DataSourceDeleteResponse,
424
- type DataSourcesCursor as DataSourcesCursor,
425
536
  type DataSourceCreateParams as DataSourceCreateParams,
426
537
  type DataSourceUpdateParams as DataSourceUpdateParams,
427
538
  type DataSourceListParams as DataSourceListParams,
@@ -430,8 +541,8 @@ export declare namespace DataSources {
430
541
  export {
431
542
  Connectors as Connectors,
432
543
  type DataSourceConnector as DataSourceConnector,
544
+ type ConnectorListResponse as ConnectorListResponse,
433
545
  type ConnectorDeleteResponse as ConnectorDeleteResponse,
434
- type DataSourceConnectorsCursor as DataSourceConnectorsCursor,
435
546
  type ConnectorCreateParams as ConnectorCreateParams,
436
547
  type ConnectorRetrieveParams as ConnectorRetrieveParams,
437
548
  type ConnectorUpdateParams as ConnectorUpdateParams,
@@ -3,13 +3,13 @@
3
3
  export {
4
4
  Connectors,
5
5
  type DataSourceConnector,
6
+ type ConnectorListResponse,
6
7
  type ConnectorDeleteResponse,
7
8
  type ConnectorCreateParams,
8
9
  type ConnectorRetrieveParams,
9
10
  type ConnectorUpdateParams,
10
11
  type ConnectorListParams,
11
12
  type ConnectorDeleteParams,
12
- type DataSourceConnectorsCursor,
13
13
  } from './connectors';
14
14
  export {
15
15
  DataSources,
@@ -19,9 +19,9 @@ export {
19
19
  type LinearDataSource,
20
20
  type NotionDataSource,
21
21
  type Oauth2Params,
22
+ type DataSourceListResponse,
22
23
  type DataSourceDeleteResponse,
23
24
  type DataSourceCreateParams,
24
25
  type DataSourceUpdateParams,
25
26
  type DataSourceListParams,
26
- type DataSourcesCursor,
27
27
  } from './data-sources';
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { APIResource } from '../core/resource';
4
4
  import { APIPromise } from '../core/api-promise';
5
- import { Cursor, type CursorParams, PagePromise } from '../core/pagination';
6
5
  import { type Uploadable } from '../core/uploads';
7
6
  import { buildHeaders } from '../internal/headers';
8
7
  import { RequestOptions } from '../internal/request-options';
@@ -56,8 +55,8 @@ export class Files extends APIResource {
56
55
  list(
57
56
  query: FileListParams | null | undefined = {},
58
57
  options?: RequestOptions,
59
- ): PagePromise<FileObjectsCursor, FileObject> {
60
- return this._client.getAPIList('/v1/files', Cursor<FileObject>, { query, ...options });
58
+ ): APIPromise<FileListResponse> {
59
+ return this._client.get('/v1/files', { query, ...options });
61
60
  }
62
61
 
63
62
  /**
@@ -87,8 +86,6 @@ export class Files extends APIResource {
87
86
  }
88
87
  }
89
88
 
90
- export type FileObjectsCursor = Cursor<FileObject>;
91
-
92
89
  /**
93
90
  * A model representing a file object in the system.
94
91
  *
@@ -152,6 +149,95 @@ export interface PaginationWithTotal {
152
149
  total?: number;
153
150
  }
154
151
 
152
+ export interface FileListResponse {
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
+ pagination: FileListResponse.Pagination;
177
+
178
+ /**
179
+ * The object type of the response
180
+ */
181
+ object?: 'list';
182
+
183
+ /**
184
+ * The list of files
185
+ */
186
+ data: Array<FileObject>;
187
+ }
188
+
189
+ export namespace FileListResponse {
190
+ /**
191
+ * Response model for cursor-based pagination.
192
+ *
193
+ * Examples: Forward pagination response: { "has_more": true, "first_cursor":
194
+ * "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
195
+ * "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
196
+ *
197
+ * Final page response:
198
+ * {
199
+ * "has_more": false,
200
+ * "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
201
+ * "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
202
+ * "total": 42
203
+ * }
204
+ *
205
+ * Empty results:
206
+ * {
207
+ * "has_more": false,
208
+ * "first_cursor": null,
209
+ * "last_cursor": null,
210
+ * "total": 0
211
+ * }
212
+ */
213
+ export interface Pagination {
214
+ /**
215
+ * Contextual direction-aware flag: True if more items exist in the requested
216
+ * pagination direction. For 'after': more items after this page. For 'before':
217
+ * more items before this page.
218
+ */
219
+ has_more: boolean;
220
+
221
+ /**
222
+ * Cursor of the first item in this page. Use for backward pagination. None if page
223
+ * is empty.
224
+ */
225
+ first_cursor: string | null;
226
+
227
+ /**
228
+ * Cursor of the last item in this page. Use for forward pagination. None if page
229
+ * is empty.
230
+ */
231
+ last_cursor: string | null;
232
+
233
+ /**
234
+ * Total number of items available across all pages. Only included when
235
+ * include_total=true was requested. Expensive operation - use sparingly.
236
+ */
237
+ total?: number | null;
238
+ }
239
+ }
240
+
155
241
  export interface FileDeleteResponse {
156
242
  /**
157
243
  * The ID of the deleted file
@@ -183,14 +269,41 @@ export interface FileUpdateParams {
183
269
  file: Uploadable;
184
270
  }
185
271
 
186
- export interface FileListParams extends CursorParams {}
272
+ export interface FileListParams {
273
+ /**
274
+ * Maximum number of items to return per page (1-100)
275
+ */
276
+ limit?: number;
277
+
278
+ /**
279
+ * Cursor for forward pagination - get items after this position. Use last_cursor
280
+ * from previous response.
281
+ */
282
+ after?: string | null;
283
+
284
+ /**
285
+ * Cursor for backward pagination - get items before this position. Use
286
+ * first_cursor from previous response.
287
+ */
288
+ before?: string | null;
289
+
290
+ /**
291
+ * Whether to include total count in response (expensive operation)
292
+ */
293
+ include_total?: boolean;
294
+
295
+ /**
296
+ * Search query for fuzzy matching over name and description fields
297
+ */
298
+ q?: string | null;
299
+ }
187
300
 
188
301
  export declare namespace Files {
189
302
  export {
190
303
  type FileObject as FileObject,
191
304
  type PaginationWithTotal as PaginationWithTotal,
305
+ type FileListResponse as FileListResponse,
192
306
  type FileDeleteResponse as FileDeleteResponse,
193
- type FileObjectsCursor as FileObjectsCursor,
194
307
  type FileCreateParams as FileCreateParams,
195
308
  type FileUpdateParams as FileUpdateParams,
196
309
  type FileListParams as FileListParams,
@@ -19,11 +19,11 @@ export {
19
19
  type LinearDataSource,
20
20
  type NotionDataSource,
21
21
  type Oauth2Params,
22
+ type DataSourceListResponse,
22
23
  type DataSourceDeleteResponse,
23
24
  type DataSourceCreateParams,
24
25
  type DataSourceUpdateParams,
25
26
  type DataSourceListParams,
26
- type DataSourcesCursor,
27
27
  } from './data-sources/data-sources';
28
28
  export { Embeddings, type EncodingFormat, type ObjectType, type EmbeddingCreateParams } from './embeddings';
29
29
  export { Extractions } from './extractions/extractions';
@@ -31,11 +31,11 @@ export {
31
31
  Files,
32
32
  type FileObject,
33
33
  type PaginationWithTotal,
34
+ type FileListResponse,
34
35
  type FileDeleteResponse,
35
36
  type FileCreateParams,
36
37
  type FileUpdateParams,
37
38
  type FileListParams,
38
- type FileObjectsCursor,
39
39
  } from './files';
40
40
  export { Parsing } from './parsing/parsing';
41
41
  export {
@@ -47,6 +47,7 @@ export {
47
47
  type ScoredVideoURLInputChunk,
48
48
  type VectorStore,
49
49
  type VectorStoreChunkSearchOptions,
50
+ type VectorStoreListResponse,
50
51
  type VectorStoreDeleteResponse,
51
52
  type VectorStoreQuestionAnsweringResponse,
52
53
  type VectorStoreSearchResponse,
@@ -55,7 +56,6 @@ export {
55
56
  type VectorStoreListParams,
56
57
  type VectorStoreQuestionAnsweringParams,
57
58
  type VectorStoreSearchParams,
58
- type VectorStoresCursor,
59
59
  } from './vector-stores/vector-stores';
60
60
  export {
61
61
  type Embedding,
@@ -11,6 +11,5 @@ export {
11
11
  type JobDeleteResponse,
12
12
  type JobCreateParams,
13
13
  type JobListParams,
14
- type JobListResponsesCursor,
15
14
  } from './jobs';
16
15
  export { Parsing } from './parsing';