@mixedbread/sdk 0.15.0 → 0.16.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 (104) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +31 -0
  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/core/pagination.d.mts +10 -16
  9. package/core/pagination.d.mts.map +1 -1
  10. package/core/pagination.d.ts +10 -16
  11. package/core/pagination.d.ts.map +1 -1
  12. package/core/pagination.js.map +1 -1
  13. package/core/pagination.mjs.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/data-sources/connectors.d.mts +5 -106
  16. package/resources/data-sources/connectors.d.mts.map +1 -1
  17. package/resources/data-sources/connectors.d.ts +5 -106
  18. package/resources/data-sources/connectors.d.ts.map +1 -1
  19. package/resources/data-sources/connectors.js +2 -1
  20. package/resources/data-sources/connectors.js.map +1 -1
  21. package/resources/data-sources/connectors.mjs +2 -1
  22. package/resources/data-sources/connectors.mjs.map +1 -1
  23. package/resources/data-sources/data-sources.d.mts +7 -108
  24. package/resources/data-sources/data-sources.d.mts.map +1 -1
  25. package/resources/data-sources/data-sources.d.ts +7 -108
  26. package/resources/data-sources/data-sources.d.ts.map +1 -1
  27. package/resources/data-sources/data-sources.js +2 -1
  28. package/resources/data-sources/data-sources.js.map +1 -1
  29. package/resources/data-sources/data-sources.mjs +2 -1
  30. package/resources/data-sources/data-sources.mjs.map +1 -1
  31. package/resources/data-sources/index.d.mts +2 -2
  32. package/resources/data-sources/index.d.mts.map +1 -1
  33. package/resources/data-sources/index.d.ts +2 -2
  34. package/resources/data-sources/index.d.ts.map +1 -1
  35. package/resources/files.d.mts +5 -103
  36. package/resources/files.d.mts.map +1 -1
  37. package/resources/files.d.ts +5 -103
  38. package/resources/files.d.ts.map +1 -1
  39. package/resources/files.js +2 -1
  40. package/resources/files.js.map +1 -1
  41. package/resources/files.mjs +2 -1
  42. package/resources/files.mjs.map +1 -1
  43. package/resources/index.d.mts +3 -3
  44. package/resources/index.d.mts.map +1 -1
  45. package/resources/index.d.ts +3 -3
  46. package/resources/index.d.ts.map +1 -1
  47. package/resources/parsing/index.d.mts +1 -1
  48. package/resources/parsing/index.d.mts.map +1 -1
  49. package/resources/parsing/index.d.ts +1 -1
  50. package/resources/parsing/index.d.ts.map +1 -1
  51. package/resources/parsing/index.js.map +1 -1
  52. package/resources/parsing/index.mjs.map +1 -1
  53. package/resources/parsing/jobs.d.mts +33 -134
  54. package/resources/parsing/jobs.d.mts.map +1 -1
  55. package/resources/parsing/jobs.d.ts +33 -134
  56. package/resources/parsing/jobs.d.ts.map +1 -1
  57. package/resources/parsing/jobs.js +2 -1
  58. package/resources/parsing/jobs.js.map +1 -1
  59. package/resources/parsing/jobs.mjs +2 -1
  60. package/resources/parsing/jobs.mjs.map +1 -1
  61. package/resources/parsing/parsing.d.mts +2 -2
  62. package/resources/parsing/parsing.d.mts.map +1 -1
  63. package/resources/parsing/parsing.d.ts +2 -2
  64. package/resources/parsing/parsing.d.ts.map +1 -1
  65. package/resources/parsing/parsing.js.map +1 -1
  66. package/resources/parsing/parsing.mjs.map +1 -1
  67. package/resources/vector-stores/files.d.mts +5 -103
  68. package/resources/vector-stores/files.d.mts.map +1 -1
  69. package/resources/vector-stores/files.d.ts +5 -103
  70. package/resources/vector-stores/files.d.ts.map +1 -1
  71. package/resources/vector-stores/files.js +2 -1
  72. package/resources/vector-stores/files.js.map +1 -1
  73. package/resources/vector-stores/files.mjs +2 -1
  74. package/resources/vector-stores/files.mjs.map +1 -1
  75. package/resources/vector-stores/index.d.mts +2 -2
  76. package/resources/vector-stores/index.d.mts.map +1 -1
  77. package/resources/vector-stores/index.d.ts +2 -2
  78. package/resources/vector-stores/index.d.ts.map +1 -1
  79. package/resources/vector-stores/vector-stores.d.mts +7 -105
  80. package/resources/vector-stores/vector-stores.d.mts.map +1 -1
  81. package/resources/vector-stores/vector-stores.d.ts +7 -105
  82. package/resources/vector-stores/vector-stores.d.ts.map +1 -1
  83. package/resources/vector-stores/vector-stores.js +2 -1
  84. package/resources/vector-stores/vector-stores.js.map +1 -1
  85. package/resources/vector-stores/vector-stores.mjs +2 -1
  86. package/resources/vector-stores/vector-stores.mjs.map +1 -1
  87. package/src/client.ts +6 -6
  88. package/src/core/pagination.ts +10 -18
  89. package/src/resources/data-sources/connectors.ts +11 -118
  90. package/src/resources/data-sources/data-sources.ts +9 -120
  91. package/src/resources/data-sources/index.ts +2 -2
  92. package/src/resources/files.ts +7 -115
  93. package/src/resources/index.ts +3 -3
  94. package/src/resources/parsing/index.ts +1 -0
  95. package/src/resources/parsing/jobs.ts +38 -145
  96. package/src/resources/parsing/parsing.ts +2 -0
  97. package/src/resources/vector-stores/files.ts +11 -115
  98. package/src/resources/vector-stores/index.ts +2 -2
  99. package/src/resources/vector-stores/vector-stores.ts +9 -117
  100. package/src/version.ts +1 -1
  101. package/version.d.mts +1 -1
  102. package/version.d.ts +1 -1
  103. package/version.js +1 -1
  104. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"data-sources.mjs","sourceRoot":"","sources":["../../src/resources/data-sources/data-sources.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAQL,UAAU,GAEX;OAGM,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAA5C;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA4DpF,CAAC;IA1DC;;;;;;OAMG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;OA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,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,YAAoB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,YAAoB,EACpB,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;OAIG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,MAAkB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,YAAoB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,oBAAoB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;CACF;AA2UD,WAAW,CAAC,UAAU,GAAG,UAAU,CAAC"}
@@ -1,3 +1,3 @@
1
- export { Connectors, type DataSourceConnector, type ConnectorListResponse, type ConnectorDeleteResponse, type ConnectorCreateParams, type ConnectorRetrieveParams, type ConnectorUpdateParams, type ConnectorListParams, type ConnectorDeleteParams, } from "./connectors.mjs";
2
- export { DataSources, type DataSource, type DataSourceOauth2Params, type DataSourceType, type LinearDataSource, type NotionDataSource, type Oauth2Params, type DataSourceListResponse, type DataSourceDeleteResponse, type DataSourceCreateParams, type DataSourceUpdateParams, type DataSourceListParams, } from "./data-sources.mjs";
1
+ export { Connectors, type DataSourceConnector, type ConnectorDeleteResponse, type ConnectorCreateParams, type ConnectorRetrieveParams, type ConnectorUpdateParams, type ConnectorListParams, type ConnectorDeleteParams, type DataSourceConnectorsCursor, } from "./connectors.mjs";
2
+ export { DataSources, type DataSource, type DataSourceOauth2Params, type DataSourceType, type LinearDataSource, type NotionDataSource, type Oauth2Params, type DataSourceDeleteResponse, type DataSourceCreateParams, type DataSourceUpdateParams, type DataSourceListParams, type DataSourcesCursor, } from "./data-sources.mjs";
3
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/data-sources/index.ts"],"names":[],"mappings":"OAEO,EACL,UAAU,EACV,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,GAC3B;OACM,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/data-sources/index.ts"],"names":[],"mappings":"OAEO,EACL,UAAU,EACV,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,GAChC;OACM,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB"}
@@ -1,3 +1,3 @@
1
- export { Connectors, type DataSourceConnector, type ConnectorListResponse, type ConnectorDeleteResponse, type ConnectorCreateParams, type ConnectorRetrieveParams, type ConnectorUpdateParams, type ConnectorListParams, type ConnectorDeleteParams, } from "./connectors.js";
2
- export { DataSources, type DataSource, type DataSourceOauth2Params, type DataSourceType, type LinearDataSource, type NotionDataSource, type Oauth2Params, type DataSourceListResponse, type DataSourceDeleteResponse, type DataSourceCreateParams, type DataSourceUpdateParams, type DataSourceListParams, } from "./data-sources.js";
1
+ export { Connectors, type DataSourceConnector, type ConnectorDeleteResponse, type ConnectorCreateParams, type ConnectorRetrieveParams, type ConnectorUpdateParams, type ConnectorListParams, type ConnectorDeleteParams, type DataSourceConnectorsCursor, } from "./connectors.js";
2
+ export { DataSources, type DataSource, type DataSourceOauth2Params, type DataSourceType, type LinearDataSource, type NotionDataSource, type Oauth2Params, type DataSourceDeleteResponse, type DataSourceCreateParams, type DataSourceUpdateParams, type DataSourceListParams, type DataSourcesCursor, } from "./data-sources.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/data-sources/index.ts"],"names":[],"mappings":"OAEO,EACL,UAAU,EACV,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,GAC3B;OACM,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/data-sources/index.ts"],"names":[],"mappings":"OAEO,EACL,UAAU,EACV,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,GAChC;OACM,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB"}
@@ -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 { type Uploadable } from "../core/uploads.mjs";
4
5
  import { RequestOptions } from "../internal/request-options.mjs";
5
6
  export declare class Files extends APIResource {
@@ -34,7 +35,7 @@ export declare class Files extends APIResource {
34
35
  *
35
36
  * Returns: A list of files belonging to the user.
36
37
  */
37
- list(query?: FileListParams | null | undefined, options?: RequestOptions): APIPromise<FileListResponse>;
38
+ list(query?: FileListParams | null | undefined, options?: RequestOptions): PagePromise<FileObjectsCursor, FileObject>;
38
39
  /**
39
40
  * Delete a specific file by its ID.
40
41
  *
@@ -52,6 +53,7 @@ export declare class Files extends APIResource {
52
53
  */
53
54
  content(fileID: string, options?: RequestOptions): APIPromise<Response>;
54
55
  }
56
+ export type FileObjectsCursor = Cursor<FileObject>;
55
57
  /**
56
58
  * A model representing a file object in the system.
57
59
  *
@@ -105,88 +107,6 @@ export interface PaginationWithTotal {
105
107
  */
106
108
  total?: number;
107
109
  }
108
- export interface FileListResponse {
109
- /**
110
- * Response model for cursor-based pagination.
111
- *
112
- * Examples: Forward pagination response: { "has_more": true, "first_cursor":
113
- * "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
114
- * "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
115
- *
116
- * Final page response:
117
- * {
118
- * "has_more": false,
119
- * "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
120
- * "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
121
- * "total": 42
122
- * }
123
- *
124
- * Empty results:
125
- * {
126
- * "has_more": false,
127
- * "first_cursor": null,
128
- * "last_cursor": null,
129
- * "total": 0
130
- * }
131
- */
132
- pagination: FileListResponse.Pagination;
133
- /**
134
- * The object type of the response
135
- */
136
- object?: 'list';
137
- /**
138
- * The list of files
139
- */
140
- data: Array<FileObject>;
141
- }
142
- export declare namespace FileListResponse {
143
- /**
144
- * Response model for cursor-based pagination.
145
- *
146
- * Examples: Forward pagination response: { "has_more": true, "first_cursor":
147
- * "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
148
- * "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
149
- *
150
- * Final page response:
151
- * {
152
- * "has_more": false,
153
- * "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
154
- * "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
155
- * "total": 42
156
- * }
157
- *
158
- * Empty results:
159
- * {
160
- * "has_more": false,
161
- * "first_cursor": null,
162
- * "last_cursor": null,
163
- * "total": 0
164
- * }
165
- */
166
- interface Pagination {
167
- /**
168
- * Contextual direction-aware flag: True if more items exist in the requested
169
- * pagination direction. For 'after': more items after this page. For 'before':
170
- * more items before this page.
171
- */
172
- has_more: boolean;
173
- /**
174
- * Cursor of the first item in this page. Use for backward pagination. None if page
175
- * is empty.
176
- */
177
- first_cursor: string | null;
178
- /**
179
- * Cursor of the last item in this page. Use for forward pagination. None if page
180
- * is empty.
181
- */
182
- last_cursor: string | null;
183
- /**
184
- * Total number of items available across all pages. Only included when
185
- * include_total=true was requested. Expensive operation - use sparingly.
186
- */
187
- total?: number | null;
188
- }
189
- }
190
110
  export interface FileDeleteResponse {
191
111
  /**
192
112
  * The ID of the deleted file
@@ -213,31 +133,13 @@ export interface FileUpdateParams {
213
133
  */
214
134
  file: Uploadable;
215
135
  }
216
- export interface FileListParams {
217
- /**
218
- * Maximum number of items to return per page (1-100)
219
- */
220
- limit?: number;
221
- /**
222
- * Cursor for forward pagination - get items after this position. Use last_cursor
223
- * from previous response.
224
- */
225
- after?: string | null;
226
- /**
227
- * Cursor for backward pagination - get items before this position. Use
228
- * first_cursor from previous response.
229
- */
230
- before?: string | null;
231
- /**
232
- * Whether to include total count in response (expensive operation)
233
- */
234
- include_total?: boolean;
136
+ export interface FileListParams extends CursorParams {
235
137
  /**
236
138
  * Search query for fuzzy matching over name and description fields
237
139
  */
238
140
  q?: string | null;
239
141
  }
240
142
  export declare namespace Files {
241
- export { type FileObject as FileObject, type PaginationWithTotal as PaginationWithTotal, type FileListResponse as FileListResponse, type FileDeleteResponse as FileDeleteResponse, type FileCreateParams as FileCreateParams, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, };
143
+ export { type FileObject as FileObject, type PaginationWithTotal as PaginationWithTotal, type FileDeleteResponse as FileDeleteResponse, type FileObjectsCursor as FileObjectsCursor, type FileCreateParams as FileCreateParams, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, };
242
144
  }
243
145
  //# sourceMappingURL=files.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"files.d.mts","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OAEnB,EAAE,cAAc,EAAE;AAIzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;OAMG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAIhF;;;;;;OAMG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAI1E;;;;;;OAMG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAOhG;;;;;;OAMG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAI/B;;;;;;OAMG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAIhF;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;CAOxE;AAED;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,MAAM,C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UAAU,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,cAAe,SAAQ,YAAY;IAClD;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,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 { type Uploadable } from "../core/uploads.js";
4
5
  import { RequestOptions } from "../internal/request-options.js";
5
6
  export declare class Files extends APIResource {
@@ -34,7 +35,7 @@ export declare class Files extends APIResource {
34
35
  *
35
36
  * Returns: A list of files belonging to the user.
36
37
  */
37
- list(query?: FileListParams | null | undefined, options?: RequestOptions): APIPromise<FileListResponse>;
38
+ list(query?: FileListParams | null | undefined, options?: RequestOptions): PagePromise<FileObjectsCursor, FileObject>;
38
39
  /**
39
40
  * Delete a specific file by its ID.
40
41
  *
@@ -52,6 +53,7 @@ export declare class Files extends APIResource {
52
53
  */
53
54
  content(fileID: string, options?: RequestOptions): APIPromise<Response>;
54
55
  }
56
+ export type FileObjectsCursor = Cursor<FileObject>;
55
57
  /**
56
58
  * A model representing a file object in the system.
57
59
  *
@@ -105,88 +107,6 @@ export interface PaginationWithTotal {
105
107
  */
106
108
  total?: number;
107
109
  }
108
- export interface FileListResponse {
109
- /**
110
- * Response model for cursor-based pagination.
111
- *
112
- * Examples: Forward pagination response: { "has_more": true, "first_cursor":
113
- * "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
114
- * "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
115
- *
116
- * Final page response:
117
- * {
118
- * "has_more": false,
119
- * "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
120
- * "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
121
- * "total": 42
122
- * }
123
- *
124
- * Empty results:
125
- * {
126
- * "has_more": false,
127
- * "first_cursor": null,
128
- * "last_cursor": null,
129
- * "total": 0
130
- * }
131
- */
132
- pagination: FileListResponse.Pagination;
133
- /**
134
- * The object type of the response
135
- */
136
- object?: 'list';
137
- /**
138
- * The list of files
139
- */
140
- data: Array<FileObject>;
141
- }
142
- export declare namespace FileListResponse {
143
- /**
144
- * Response model for cursor-based pagination.
145
- *
146
- * Examples: Forward pagination response: { "has_more": true, "first_cursor":
147
- * "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
148
- * "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
149
- *
150
- * Final page response:
151
- * {
152
- * "has_more": false,
153
- * "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
154
- * "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
155
- * "total": 42
156
- * }
157
- *
158
- * Empty results:
159
- * {
160
- * "has_more": false,
161
- * "first_cursor": null,
162
- * "last_cursor": null,
163
- * "total": 0
164
- * }
165
- */
166
- interface Pagination {
167
- /**
168
- * Contextual direction-aware flag: True if more items exist in the requested
169
- * pagination direction. For 'after': more items after this page. For 'before':
170
- * more items before this page.
171
- */
172
- has_more: boolean;
173
- /**
174
- * Cursor of the first item in this page. Use for backward pagination. None if page
175
- * is empty.
176
- */
177
- first_cursor: string | null;
178
- /**
179
- * Cursor of the last item in this page. Use for forward pagination. None if page
180
- * is empty.
181
- */
182
- last_cursor: string | null;
183
- /**
184
- * Total number of items available across all pages. Only included when
185
- * include_total=true was requested. Expensive operation - use sparingly.
186
- */
187
- total?: number | null;
188
- }
189
- }
190
110
  export interface FileDeleteResponse {
191
111
  /**
192
112
  * The ID of the deleted file
@@ -213,31 +133,13 @@ export interface FileUpdateParams {
213
133
  */
214
134
  file: Uploadable;
215
135
  }
216
- export interface FileListParams {
217
- /**
218
- * Maximum number of items to return per page (1-100)
219
- */
220
- limit?: number;
221
- /**
222
- * Cursor for forward pagination - get items after this position. Use last_cursor
223
- * from previous response.
224
- */
225
- after?: string | null;
226
- /**
227
- * Cursor for backward pagination - get items before this position. Use
228
- * first_cursor from previous response.
229
- */
230
- before?: string | null;
231
- /**
232
- * Whether to include total count in response (expensive operation)
233
- */
234
- include_total?: boolean;
136
+ export interface FileListParams extends CursorParams {
235
137
  /**
236
138
  * Search query for fuzzy matching over name and description fields
237
139
  */
238
140
  q?: string | null;
239
141
  }
240
142
  export declare namespace Files {
241
- export { type FileObject as FileObject, type PaginationWithTotal as PaginationWithTotal, type FileListResponse as FileListResponse, type FileDeleteResponse as FileDeleteResponse, type FileCreateParams as FileCreateParams, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, };
143
+ export { type FileObject as FileObject, type PaginationWithTotal as PaginationWithTotal, type FileDeleteResponse as FileDeleteResponse, type FileObjectsCursor as FileObjectsCursor, type FileCreateParams as FileCreateParams, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, };
242
144
  }
243
145
  //# sourceMappingURL=files.d.ts.map
@@ -1 +1 @@
1
- {"version":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AAY;IAClD;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Files = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
+ const pagination_1 = require("../core/pagination.js");
6
7
  const headers_1 = require("../internal/headers.js");
7
8
  const uploads_1 = require("../internal/uploads.js");
8
9
  const path_1 = require("../internal/utils/path.js");
@@ -45,7 +46,7 @@ class Files extends resource_1.APIResource {
45
46
  * Returns: A list of files belonging to the user.
46
47
  */
47
48
  list(query = {}, options) {
48
- return this._client.get('/v1/files', { query, ...options });
49
+ return this._client.getAPIList('/v1/files', (pagination_1.Cursor), { query, ...options });
49
50
  }
50
51
  /**
51
52
  * Delete a specific file by its ID.
@@ -1 +1 @@
1
- {"version":3,"file":"files.js","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAAmD;AAEnD,oDAAkE;AAClE,oDAA8C;AAE9C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;OAMG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACzG,CAAC;I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I,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,UAAU,EAAE;YACzD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACjF,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF;AA5ED,sBA4EC"}
@@ -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 { buildHeaders } from "../internal/headers.mjs";
4
5
  import { multipartFormRequestOptions } from "../internal/uploads.mjs";
5
6
  import { path } from "../internal/utils/path.mjs";
@@ -42,7 +43,7 @@ export class Files extends APIResource {
42
43
  * Returns: A list of files belonging to the user.
43
44
  */
44
45
  list(query = {}, options) {
45
- return this._client.get('/v1/files', { query, ...options });
46
+ return this._client.getAPIList('/v1/files', (Cursor), { query, ...options });
46
47
  }
47
48
  /**
48
49
  * Delete a specific file by its ID.
@@ -1 +1 @@
1
- {"version":3,"file":"files.mjs","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,YAAY,EAAE;OAEhB,EAAE,2BAA2B,EAAE;OAC/B,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;OAMG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACzG,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,O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,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACjF,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,11 +1,11 @@
1
1
  export * from "./shared.mjs";
2
2
  export { APIKeys, type APIKey, type APIKeyCreated, type APIKeyDeleteResponse, type APIKeyCreateParams, type APIKeyListParams, type APIKeysLimitOffset, } from "./api-keys.mjs";
3
3
  export { Chat, type ChatCreateCompletionResponse } from "./chat.mjs";
4
- export { DataSources, type DataSource, type DataSourceOauth2Params, type DataSourceType, type LinearDataSource, type NotionDataSource, type Oauth2Params, type DataSourceListResponse, type DataSourceDeleteResponse, type DataSourceCreateParams, type DataSourceUpdateParams, type DataSourceListParams, } from "./data-sources/data-sources.mjs";
4
+ export { DataSources, type DataSource, type DataSourceOauth2Params, type DataSourceType, type LinearDataSource, type NotionDataSource, type Oauth2Params, type DataSourceDeleteResponse, type DataSourceCreateParams, type DataSourceUpdateParams, type DataSourceListParams, type DataSourcesCursor, } from "./data-sources/data-sources.mjs";
5
5
  export { Embeddings, type EncodingFormat, type ObjectType, type EmbeddingCreateParams } from "./embeddings.mjs";
6
6
  export { Extractions } from "./extractions/extractions.mjs";
7
- export { Files, type FileObject, type PaginationWithTotal, type FileListResponse, type FileDeleteResponse, type FileCreateParams, type FileUpdateParams, type FileListParams, } from "./files.mjs";
7
+ export { Files, type FileObject, type PaginationWithTotal, type FileDeleteResponse, type FileCreateParams, type FileUpdateParams, type FileListParams, type FileObjectsCursor, } from "./files.mjs";
8
8
  export { Parsing } from "./parsing/parsing.mjs";
9
- export { VectorStores, type ExpiresAfter, type ScoredAudioURLInputChunk, type ScoredImageURLInputChunk, type ScoredTextInputChunk, type ScoredVideoURLInputChunk, type VectorStore, type VectorStoreChunkSearchOptions, type VectorStoreListResponse, type VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams, } from "./vector-stores/vector-stores.mjs";
9
+ export { VectorStores, type ExpiresAfter, type ScoredAudioURLInputChunk, type ScoredImageURLInputChunk, type ScoredTextInputChunk, type ScoredVideoURLInputChunk, type VectorStore, type VectorStoreChunkSearchOptions, type VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams, type VectorStoresCursor, } from "./vector-stores/vector-stores.mjs";
10
10
  export { type Embedding, type EmbeddingCreateResponse, type MultiEncodingEmbedding, type InfoResponse, type RerankResponse, type EmbedParams, type RerankParams, } from "./top-level.mjs";
11
11
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,GACxB;OACM,EAAE,IAAI,EAAE,KAAK,4BAA4B,EAAE;OAC3C,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B;OACM,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,KAAK,qBAAqB,EAAE;OAChF,EAAE,WAAW,EAAE;OACf,EACL,KAAK,EACL,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB;OACM,EAAE,OAAO,EAAE;OACX,EACL,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,oCAAoC,EACzC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,GAC7B;OACM,EACL,KAAK,SAAS,EACd,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,YAAY,GAClB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,GACxB;OACM,EAAE,IAAI,EAAE,KAAK,4BAA4B,EAAE;OAC3C,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB;OACM,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,KAAK,qBAAqB,EAAE;OAChF,EAAE,WAAW,EAAE;OACf,EACL,KAAK,EACL,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB;OACM,EAAE,OAAO,EAAE;OACX,EACL,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,oCAAoC,EACzC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,GACxB;OACM,EACL,KAAK,SAAS,EACd,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,YAAY,GAClB"}
@@ -1,11 +1,11 @@
1
1
  export * from "./shared.js";
2
2
  export { APIKeys, type APIKey, type APIKeyCreated, type APIKeyDeleteResponse, type APIKeyCreateParams, type APIKeyListParams, type APIKeysLimitOffset, } from "./api-keys.js";
3
3
  export { Chat, type ChatCreateCompletionResponse } from "./chat.js";
4
- export { DataSources, type DataSource, type DataSourceOauth2Params, type DataSourceType, type LinearDataSource, type NotionDataSource, type Oauth2Params, type DataSourceListResponse, type DataSourceDeleteResponse, type DataSourceCreateParams, type DataSourceUpdateParams, type DataSourceListParams, } from "./data-sources/data-sources.js";
4
+ export { DataSources, type DataSource, type DataSourceOauth2Params, type DataSourceType, type LinearDataSource, type NotionDataSource, type Oauth2Params, type DataSourceDeleteResponse, type DataSourceCreateParams, type DataSourceUpdateParams, type DataSourceListParams, type DataSourcesCursor, } from "./data-sources/data-sources.js";
5
5
  export { Embeddings, type EncodingFormat, type ObjectType, type EmbeddingCreateParams } from "./embeddings.js";
6
6
  export { Extractions } from "./extractions/extractions.js";
7
- export { Files, type FileObject, type PaginationWithTotal, type FileListResponse, type FileDeleteResponse, type FileCreateParams, type FileUpdateParams, type FileListParams, } from "./files.js";
7
+ export { Files, type FileObject, type PaginationWithTotal, type FileDeleteResponse, type FileCreateParams, type FileUpdateParams, type FileListParams, type FileObjectsCursor, } from "./files.js";
8
8
  export { Parsing } from "./parsing/parsing.js";
9
- export { VectorStores, type ExpiresAfter, type ScoredAudioURLInputChunk, type ScoredImageURLInputChunk, type ScoredTextInputChunk, type ScoredVideoURLInputChunk, type VectorStore, type VectorStoreChunkSearchOptions, type VectorStoreListResponse, type VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams, } from "./vector-stores/vector-stores.js";
9
+ export { VectorStores, type ExpiresAfter, type ScoredAudioURLInputChunk, type ScoredImageURLInputChunk, type ScoredTextInputChunk, type ScoredVideoURLInputChunk, type VectorStore, type VectorStoreChunkSearchOptions, type VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams, type VectorStoresCursor, } from "./vector-stores/vector-stores.js";
10
10
  export { type Embedding, type EmbeddingCreateResponse, type MultiEncodingEmbedding, type InfoResponse, type RerankResponse, type EmbedParams, type RerankParams, } from "./top-level.js";
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,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B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,GACxB;OACM,EAAE,IAAI,EAAE,KAAK,4BAA4B,EAAE;OAC3C,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB;OACM,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,KAAK,qBAAqB,EAAE;OAChF,EAAE,WAAW,EAAE;OACf,EACL,KAAK,EACL,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB;OACM,EAAE,OAAO,EAAE;OACX,EACL,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,oCAAoC,EACzC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,GACxB;OACM,EACL,KAAK,SAAS,EACd,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,YAAY,GAClB"}
@@ -1,3 +1,3 @@
1
- export { Jobs, type ChunkingStrategy, type ElementType, type ParsingJobStatus, type ParsingJob, type ReturnFormat, type JobListResponse, type JobDeleteResponse, type JobCreateParams, type JobListParams, } from "./jobs.mjs";
1
+ export { Jobs, type ChunkingStrategy, type ElementType, type ParsingJobStatus, type ParsingJob, type ReturnFormat, type JobListResponse, type JobDeleteResponse, type JobCreateParams, type JobListParams, type JobListResponsesCursor, } from "./jobs.mjs";
2
2
  export { Parsing } from "./parsing.mjs";
3
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/parsing/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB;OACM,EAAE,OAAO,EAAE"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/parsing/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,sBAAsB,GAC5B;OACM,EAAE,OAAO,EAAE"}
@@ -1,3 +1,3 @@
1
- export { Jobs, type ChunkingStrategy, type ElementType, type ParsingJobStatus, type ParsingJob, type ReturnFormat, type JobListResponse, type JobDeleteResponse, type JobCreateParams, type JobListParams, } from "./jobs.js";
1
+ export { Jobs, type ChunkingStrategy, type ElementType, type ParsingJobStatus, type ParsingJob, type ReturnFormat, type JobListResponse, type JobDeleteResponse, type JobCreateParams, type JobListParams, type JobListResponsesCursor, } from "./jobs.js";
2
2
  export { Parsing } from "./parsing.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/parsing/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB;OACM,EAAE,OAAO,EAAE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/parsing/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,sBAAsB,GAC5B;OACM,EAAE,OAAO,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/parsing/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAWgB;AAVd,4FAAA,IAAI,OAAA;AAWN,wCAAoC;AAA3B,kGAAA,OAAO,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/parsing/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAYgB;AAXd,4FAAA,IAAI,OAAA;AAYN,wCAAoC;AAA3B,kGAAA,OAAO,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/parsing/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,IAAI,GAUL;OACM,EAAE,OAAO,EAAE"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/parsing/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,IAAI,GAWL;OACM,EAAE,OAAO,EAAE"}