@llamaindex/llama-cloud 0.14.1 → 0.15.3

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 (140) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/client.d.mts +9 -13
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +9 -13
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/core/pagination.d.mts +8 -50
  9. package/core/pagination.d.mts.map +1 -1
  10. package/core/pagination.d.ts +8 -50
  11. package/core/pagination.d.ts.map +1 -1
  12. package/core/pagination.js +5 -53
  13. package/core/pagination.js.map +1 -1
  14. package/core/pagination.mjs +2 -48
  15. package/core/pagination.mjs.map +1 -1
  16. package/package.json +1 -1
  17. package/resources/beta/agent-data.d.mts +18 -73
  18. package/resources/beta/agent-data.d.mts.map +1 -1
  19. package/resources/beta/agent-data.d.ts +18 -73
  20. package/resources/beta/agent-data.d.ts.map +1 -1
  21. package/resources/beta/agent-data.js +4 -6
  22. package/resources/beta/agent-data.js.map +1 -1
  23. package/resources/beta/agent-data.mjs +4 -6
  24. package/resources/beta/agent-data.mjs.map +1 -1
  25. package/resources/beta/beta.d.mts +10 -10
  26. package/resources/beta/beta.d.mts.map +1 -1
  27. package/resources/beta/beta.d.ts +10 -10
  28. package/resources/beta/beta.d.ts.map +1 -1
  29. package/resources/beta/beta.js.map +1 -1
  30. package/resources/beta/beta.mjs.map +1 -1
  31. package/resources/beta/directories/directories.d.mts +7 -7
  32. package/resources/beta/directories/directories.d.mts.map +1 -1
  33. package/resources/beta/directories/directories.d.ts +7 -7
  34. package/resources/beta/directories/directories.d.ts.map +1 -1
  35. package/resources/beta/directories/directories.js +1 -1
  36. package/resources/beta/directories/directories.js.map +1 -1
  37. package/resources/beta/directories/directories.mjs +2 -2
  38. package/resources/beta/directories/directories.mjs.map +1 -1
  39. package/resources/beta/directories/files.d.mts +5 -5
  40. package/resources/beta/directories/files.d.mts.map +1 -1
  41. package/resources/beta/directories/files.d.ts +5 -5
  42. package/resources/beta/directories/files.d.ts.map +1 -1
  43. package/resources/beta/directories/files.js +1 -1
  44. package/resources/beta/directories/files.js.map +1 -1
  45. package/resources/beta/directories/files.mjs +2 -2
  46. package/resources/beta/directories/files.mjs.map +1 -1
  47. package/resources/beta/directories/index.d.mts +2 -2
  48. package/resources/beta/directories/index.d.mts.map +1 -1
  49. package/resources/beta/directories/index.d.ts +2 -2
  50. package/resources/beta/directories/index.d.ts.map +1 -1
  51. package/resources/beta/index.d.mts +5 -5
  52. package/resources/beta/index.d.mts.map +1 -1
  53. package/resources/beta/index.d.ts +5 -5
  54. package/resources/beta/index.d.ts.map +1 -1
  55. package/resources/beta/index.js.map +1 -1
  56. package/resources/beta/index.mjs.map +1 -1
  57. package/resources/beta/parse-configurations.d.mts +54 -54
  58. package/resources/beta/parse-configurations.d.mts.map +1 -1
  59. package/resources/beta/parse-configurations.d.ts +54 -54
  60. package/resources/beta/parse-configurations.d.ts.map +1 -1
  61. package/resources/beta/parse-configurations.js +33 -29
  62. package/resources/beta/parse-configurations.js.map +1 -1
  63. package/resources/beta/parse-configurations.mjs +33 -29
  64. package/resources/beta/parse-configurations.mjs.map +1 -1
  65. package/resources/beta/sheets.d.mts +5 -5
  66. package/resources/beta/sheets.d.mts.map +1 -1
  67. package/resources/beta/sheets.d.ts +5 -5
  68. package/resources/beta/sheets.d.ts.map +1 -1
  69. package/resources/beta/sheets.js +1 -1
  70. package/resources/beta/sheets.js.map +1 -1
  71. package/resources/beta/sheets.mjs +2 -2
  72. package/resources/beta/sheets.mjs.map +1 -1
  73. package/resources/beta/split.d.mts +5 -5
  74. package/resources/beta/split.d.mts.map +1 -1
  75. package/resources/beta/split.d.ts +5 -5
  76. package/resources/beta/split.d.ts.map +1 -1
  77. package/resources/beta/split.js +1 -1
  78. package/resources/beta/split.js.map +1 -1
  79. package/resources/beta/split.mjs +2 -2
  80. package/resources/beta/split.mjs.map +1 -1
  81. package/resources/classifier/classifier.d.mts +2 -2
  82. package/resources/classifier/classifier.d.mts.map +1 -1
  83. package/resources/classifier/classifier.d.ts +2 -2
  84. package/resources/classifier/classifier.d.ts.map +1 -1
  85. package/resources/classifier/index.d.mts +1 -1
  86. package/resources/classifier/index.d.mts.map +1 -1
  87. package/resources/classifier/index.d.ts +1 -1
  88. package/resources/classifier/index.d.ts.map +1 -1
  89. package/resources/classifier/jobs.d.mts +5 -5
  90. package/resources/classifier/jobs.d.mts.map +1 -1
  91. package/resources/classifier/jobs.d.ts +5 -5
  92. package/resources/classifier/jobs.d.ts.map +1 -1
  93. package/resources/classifier/jobs.js +1 -1
  94. package/resources/classifier/jobs.js.map +1 -1
  95. package/resources/classifier/jobs.mjs +2 -2
  96. package/resources/classifier/jobs.mjs.map +1 -1
  97. package/resources/files.d.mts +67 -2
  98. package/resources/files.d.mts.map +1 -1
  99. package/resources/files.d.ts +67 -2
  100. package/resources/files.d.ts.map +1 -1
  101. package/resources/files.js +14 -1
  102. package/resources/files.js.map +1 -1
  103. package/resources/files.mjs +14 -1
  104. package/resources/files.mjs.map +1 -1
  105. package/resources/index.d.mts +2 -2
  106. package/resources/index.d.mts.map +1 -1
  107. package/resources/index.d.ts +2 -2
  108. package/resources/index.d.ts.map +1 -1
  109. package/resources/index.js.map +1 -1
  110. package/resources/index.mjs.map +1 -1
  111. package/resources/parsing.d.mts +5 -5
  112. package/resources/parsing.d.mts.map +1 -1
  113. package/resources/parsing.d.ts +5 -5
  114. package/resources/parsing.d.ts.map +1 -1
  115. package/resources/parsing.js +1 -1
  116. package/resources/parsing.js.map +1 -1
  117. package/resources/parsing.mjs +2 -2
  118. package/resources/parsing.mjs.map +1 -1
  119. package/src/client.ts +18 -28
  120. package/src/core/pagination.ts +9 -128
  121. package/src/resources/beta/agent-data.ts +27 -85
  122. package/src/resources/beta/beta.ts +16 -12
  123. package/src/resources/beta/directories/directories.ts +8 -12
  124. package/src/resources/beta/directories/files.ts +6 -10
  125. package/src/resources/beta/directories/index.ts +2 -2
  126. package/src/resources/beta/index.ts +8 -6
  127. package/src/resources/beta/parse-configurations.ts +86 -86
  128. package/src/resources/beta/sheets.ts +6 -6
  129. package/src/resources/beta/split.ts +6 -6
  130. package/src/resources/classifier/classifier.ts +2 -2
  131. package/src/resources/classifier/index.ts +1 -1
  132. package/src/resources/classifier/jobs.ts +6 -6
  133. package/src/resources/files.ts +93 -1
  134. package/src/resources/index.ts +4 -1
  135. package/src/resources/parsing.ts +6 -6
  136. package/src/version.ts +1 -1
  137. package/version.d.mts +1 -1
  138. package/version.d.ts +1 -1
  139. package/version.js +1 -1
  140. package/version.mjs +1 -1
@@ -10,7 +10,7 @@ import {
10
10
  FileGetResponse,
11
11
  FileListParams,
12
12
  FileListResponse,
13
- FileListResponsesPaginatedClassifyJobs,
13
+ FileListResponsesPaginatedCursor,
14
14
  FileUpdateParams,
15
15
  FileUpdateResponse,
16
16
  FileUploadParams,
@@ -18,11 +18,7 @@ import {
18
18
  Files,
19
19
  } from './files';
20
20
  import { APIPromise } from '../../../core/api-promise';
21
- import {
22
- PagePromise,
23
- PaginatedClassifyJobs,
24
- type PaginatedClassifyJobsParams,
25
- } from '../../../core/pagination';
21
+ import { PagePromise, PaginatedCursor, type PaginatedCursorParams } from '../../../core/pagination';
26
22
  import { buildHeaders } from '../../../internal/headers';
27
23
  import { RequestOptions } from '../../../internal/request-options';
28
24
  import { path } from '../../../internal/utils/path';
@@ -67,8 +63,8 @@ export class Directories extends APIResource {
67
63
  list(
68
64
  query: DirectoryListParams | null | undefined = {},
69
65
  options?: RequestOptions,
70
- ): PagePromise<DirectoryListResponsesPaginatedClassifyJobs, DirectoryListResponse> {
71
- return this._client.getAPIList('/api/v1/beta/directories', PaginatedClassifyJobs<DirectoryListResponse>, {
66
+ ): PagePromise<DirectoryListResponsesPaginatedCursor, DirectoryListResponse> {
67
+ return this._client.getAPIList('/api/v1/beta/directories', PaginatedCursor<DirectoryListResponse>, {
72
68
  query,
73
69
  ...options,
74
70
  });
@@ -102,7 +98,7 @@ export class Directories extends APIResource {
102
98
  }
103
99
  }
104
100
 
105
- export type DirectoryListResponsesPaginatedClassifyJobs = PaginatedClassifyJobs<DirectoryListResponse>;
101
+ export type DirectoryListResponsesPaginatedCursor = PaginatedCursor<DirectoryListResponse>;
106
102
 
107
103
  /**
108
104
  * API response schema for a directory.
@@ -333,7 +329,7 @@ export interface DirectoryUpdateParams {
333
329
  name?: string | null;
334
330
  }
335
331
 
336
- export interface DirectoryListParams extends PaginatedClassifyJobsParams {
332
+ export interface DirectoryListParams extends PaginatedCursorParams {
337
333
  data_source_id?: string | null;
338
334
 
339
335
  include_deleted?: boolean;
@@ -365,7 +361,7 @@ export declare namespace Directories {
365
361
  type DirectoryUpdateResponse as DirectoryUpdateResponse,
366
362
  type DirectoryListResponse as DirectoryListResponse,
367
363
  type DirectoryGetResponse as DirectoryGetResponse,
368
- type DirectoryListResponsesPaginatedClassifyJobs as DirectoryListResponsesPaginatedClassifyJobs,
364
+ type DirectoryListResponsesPaginatedCursor as DirectoryListResponsesPaginatedCursor,
369
365
  type DirectoryCreateParams as DirectoryCreateParams,
370
366
  type DirectoryUpdateParams as DirectoryUpdateParams,
371
367
  type DirectoryListParams as DirectoryListParams,
@@ -380,7 +376,7 @@ export declare namespace Directories {
380
376
  type FileAddResponse as FileAddResponse,
381
377
  type FileGetResponse as FileGetResponse,
382
378
  type FileUploadResponse as FileUploadResponse,
383
- type FileListResponsesPaginatedClassifyJobs as FileListResponsesPaginatedClassifyJobs,
379
+ type FileListResponsesPaginatedCursor as FileListResponsesPaginatedCursor,
384
380
  type FileUpdateParams as FileUpdateParams,
385
381
  type FileListParams as FileListParams,
386
382
  type FileDeleteParams as FileDeleteParams,
@@ -2,11 +2,7 @@
2
2
 
3
3
  import { APIResource } from '../../../core/resource';
4
4
  import { APIPromise } from '../../../core/api-promise';
5
- import {
6
- PagePromise,
7
- PaginatedClassifyJobs,
8
- type PaginatedClassifyJobsParams,
9
- } from '../../../core/pagination';
5
+ import { PagePromise, PaginatedCursor, type PaginatedCursorParams } from '../../../core/pagination';
10
6
  import { type Uploadable } from '../../../core/uploads';
11
7
  import { buildHeaders } from '../../../internal/headers';
12
8
  import { RequestOptions } from '../../../internal/request-options';
@@ -44,10 +40,10 @@ export class Files extends APIResource {
44
40
  directoryID: string,
45
41
  query: FileListParams | null | undefined = {},
46
42
  options?: RequestOptions,
47
- ): PagePromise<FileListResponsesPaginatedClassifyJobs, FileListResponse> {
43
+ ): PagePromise<FileListResponsesPaginatedCursor, FileListResponse> {
48
44
  return this._client.getAPIList(
49
45
  path`/api/v1/beta/directories/${directoryID}/files`,
50
- PaginatedClassifyJobs<FileListResponse>,
46
+ PaginatedCursor<FileListResponse>,
51
47
  { query, ...options },
52
48
  );
53
49
  }
@@ -116,7 +112,7 @@ export class Files extends APIResource {
116
112
  }
117
113
  }
118
114
 
119
- export type FileListResponsesPaginatedClassifyJobs = PaginatedClassifyJobs<FileListResponse>;
115
+ export type FileListResponsesPaginatedCursor = PaginatedCursor<FileListResponse>;
120
116
 
121
117
  /**
122
118
  * API response schema for a directory file.
@@ -425,7 +421,7 @@ export interface FileUpdateParams {
425
421
  unique_id?: string | null;
426
422
  }
427
423
 
428
- export interface FileListParams extends PaginatedClassifyJobsParams {
424
+ export interface FileListParams extends PaginatedCursorParams {
429
425
  display_name?: string | null;
430
426
 
431
427
  display_name_contains?: string | null;
@@ -543,7 +539,7 @@ export declare namespace Files {
543
539
  type FileAddResponse as FileAddResponse,
544
540
  type FileGetResponse as FileGetResponse,
545
541
  type FileUploadResponse as FileUploadResponse,
546
- type FileListResponsesPaginatedClassifyJobs as FileListResponsesPaginatedClassifyJobs,
542
+ type FileListResponsesPaginatedCursor as FileListResponsesPaginatedCursor,
547
543
  type FileUpdateParams as FileUpdateParams,
548
544
  type FileListParams as FileListParams,
549
545
  type FileDeleteParams as FileDeleteParams,
@@ -11,7 +11,7 @@ export {
11
11
  type DirectoryListParams,
12
12
  type DirectoryDeleteParams,
13
13
  type DirectoryGetParams,
14
- type DirectoryListResponsesPaginatedClassifyJobs,
14
+ type DirectoryListResponsesPaginatedCursor,
15
15
  } from './directories';
16
16
  export {
17
17
  Files,
@@ -26,5 +26,5 @@ export {
26
26
  type FileAddParams,
27
27
  type FileGetParams,
28
28
  type FileUploadParams,
29
- type FileListResponsesPaginatedClassifyJobs,
29
+ type FileListResponsesPaginatedCursor,
30
30
  } from './files';
@@ -5,7 +5,6 @@ export {
5
5
  type AgentDataDeleteResponse,
6
6
  type AgentDataAggregateResponse,
7
7
  type AgentDataDeleteByQueryResponse,
8
- type AgentDataSearchResponse,
9
8
  type AgentDataUpdateParams,
10
9
  type AgentDataDeleteParams,
11
10
  type AgentDataAgentDataParams,
@@ -13,6 +12,8 @@ export {
13
12
  type AgentDataDeleteByQueryParams,
14
13
  type AgentDataGetParams,
15
14
  type AgentDataSearchParams,
15
+ type AgentDataAggregateResponsesPaginatedCursorPost,
16
+ type AgentDataPaginatedCursorPost,
16
17
  } from './agent-data';
17
18
  export {
18
19
  Batch,
@@ -38,18 +39,19 @@ export {
38
39
  type DirectoryListParams,
39
40
  type DirectoryDeleteParams,
40
41
  type DirectoryGetParams,
41
- type DirectoryListResponsesPaginatedClassifyJobs,
42
+ type DirectoryListResponsesPaginatedCursor,
42
43
  } from './directories/index';
43
44
  export {
44
45
  ParseConfigurations,
45
46
  type ParseConfiguration,
46
47
  type ParseConfigurationCreate,
47
48
  type ParseConfigurationQueryResponse,
49
+ type ParseConfigurationCreateParams,
48
50
  type ParseConfigurationUpdateParams,
51
+ type ParseConfigurationListParams,
49
52
  type ParseConfigurationDeleteParams,
50
53
  type ParseConfigurationGetParams,
51
- type ParseConfigurationGetParseConfigurationsParams,
52
- type ParseConfigurationParseConfigurationsParams,
54
+ type ParseConfigurationsPaginatedCursor,
53
55
  } from './parse-configurations';
54
56
  export {
55
57
  Sheets,
@@ -61,7 +63,7 @@ export {
61
63
  type SheetDeleteJobParams,
62
64
  type SheetGetParams,
63
65
  type SheetGetResultTableParams,
64
- type SheetsJobsPaginatedClassifyJobs,
66
+ type SheetsJobsPaginatedCursor,
65
67
  } from './sheets';
66
68
  export {
67
69
  Split,
@@ -75,5 +77,5 @@ export {
75
77
  type SplitCreateParams,
76
78
  type SplitListParams,
77
79
  type SplitGetParams,
78
- type SplitListResponsesPaginatedClassifyJobs,
80
+ type SplitListResponsesPaginatedCursor,
79
81
  } from './split';
@@ -3,11 +3,29 @@
3
3
  import { APIResource } from '../../core/resource';
4
4
  import * as PipelinesAPI from '../pipelines/pipelines';
5
5
  import { APIPromise } from '../../core/api-promise';
6
+ import { PagePromise, PaginatedCursor, type PaginatedCursorParams } from '../../core/pagination';
6
7
  import { buildHeaders } from '../../internal/headers';
7
8
  import { RequestOptions } from '../../internal/request-options';
8
9
  import { path } from '../../internal/utils/path';
9
10
 
10
11
  export class ParseConfigurations extends APIResource {
12
+ /**
13
+ * Create a new parse configuration.
14
+ *
15
+ * Args: config_create: Parse configuration creation data project: Validated
16
+ * project from dependency user: Current user db: Database session
17
+ *
18
+ * Returns: The created parse configuration
19
+ */
20
+ create(params: ParseConfigurationCreateParams, options?: RequestOptions): APIPromise<ParseConfiguration> {
21
+ const { organization_id, project_id, ...body } = params;
22
+ return this._client.post('/api/v1/beta/parse-configurations', {
23
+ query: { organization_id, project_id },
24
+ body,
25
+ ...options,
26
+ });
27
+ }
28
+
11
29
  /**
12
30
  * Update a parse configuration.
13
31
  *
@@ -30,6 +48,26 @@ export class ParseConfigurations extends APIResource {
30
48
  });
31
49
  }
32
50
 
51
+ /**
52
+ * List parse configurations for the current project.
53
+ *
54
+ * Args: project: Validated project from dependency user: Current user db: Database
55
+ * session page_size: Number of items per page page_token: Token for pagination
56
+ * name: Filter by configuration name creator: Filter by creator version: Filter by
57
+ * version
58
+ *
59
+ * Returns: Paginated response with parse configurations
60
+ */
61
+ list(
62
+ query: ParseConfigurationListParams | null | undefined = {},
63
+ options?: RequestOptions,
64
+ ): PagePromise<ParseConfigurationsPaginatedCursor, ParseConfiguration> {
65
+ return this._client.getAPIList('/api/v1/beta/parse-configurations', PaginatedCursor<ParseConfiguration>, {
66
+ query,
67
+ ...options,
68
+ });
69
+ }
70
+
33
71
  /**
34
72
  * Delete a parse configuration.
35
73
  *
@@ -64,45 +102,10 @@ export class ParseConfigurations extends APIResource {
64
102
  ): APIPromise<ParseConfiguration> {
65
103
  return this._client.get(path`/api/v1/beta/parse-configurations/${configID}`, { query, ...options });
66
104
  }
67
-
68
- /**
69
- * List parse configurations for the current project.
70
- *
71
- * Args: project: Validated project from dependency user: Current user db: Database
72
- * session page_size: Number of items per page page_token: Token for pagination
73
- * name: Filter by configuration name creator: Filter by creator version: Filter by
74
- * version
75
- *
76
- * Returns: Paginated response with parse configurations
77
- */
78
- getParseConfigurations(
79
- query: ParseConfigurationGetParseConfigurationsParams | null | undefined = {},
80
- options?: RequestOptions,
81
- ): APIPromise<ParseConfigurationQueryResponse> {
82
- return this._client.get('/api/v1/beta/parse-configurations', { query, ...options });
83
- }
84
-
85
- /**
86
- * Create a new parse configuration.
87
- *
88
- * Args: config_create: Parse configuration creation data project: Validated
89
- * project from dependency user: Current user db: Database session
90
- *
91
- * Returns: The created parse configuration
92
- */
93
- parseConfigurations(
94
- params: ParseConfigurationParseConfigurationsParams,
95
- options?: RequestOptions,
96
- ): APIPromise<ParseConfiguration> {
97
- const { organization_id, project_id, ...body } = params;
98
- return this._client.post('/api/v1/beta/parse-configurations', {
99
- query: { organization_id, project_id },
100
- body,
101
- ...options,
102
- });
103
- }
104
105
  }
105
106
 
107
+ export type ParseConfigurationsPaginatedCursor = PaginatedCursor<ParseConfiguration>;
108
+
106
109
  /**
107
110
  * Parse configuration schema.
108
111
  */
@@ -211,53 +214,7 @@ export interface ParseConfigurationQueryResponse {
211
214
  total_size?: number | null;
212
215
  }
213
216
 
214
- export interface ParseConfigurationUpdateParams {
215
- /**
216
- * Query param
217
- */
218
- organization_id?: string | null;
219
-
220
- /**
221
- * Query param
222
- */
223
- project_id?: string | null;
224
-
225
- /**
226
- * Body param: Settings that can be configured for how to use LlamaParse to parse
227
- * files within a LlamaCloud pipeline.
228
- */
229
- parameters?: PipelinesAPI.LlamaParseParameters | null;
230
- }
231
-
232
- export interface ParseConfigurationDeleteParams {
233
- organization_id?: string | null;
234
-
235
- project_id?: string | null;
236
- }
237
-
238
- export interface ParseConfigurationGetParams {
239
- organization_id?: string | null;
240
-
241
- project_id?: string | null;
242
- }
243
-
244
- export interface ParseConfigurationGetParseConfigurationsParams {
245
- creator?: string | null;
246
-
247
- name?: string | null;
248
-
249
- organization_id?: string | null;
250
-
251
- page_size?: number | null;
252
-
253
- page_token?: string | null;
254
-
255
- project_id?: string | null;
256
-
257
- version?: string | null;
258
- }
259
-
260
- export interface ParseConfigurationParseConfigurationsParams {
217
+ export interface ParseConfigurationCreateParams {
261
218
  /**
262
219
  * Body param: Name of the parse configuration
263
220
  */
@@ -299,15 +256,58 @@ export interface ParseConfigurationParseConfigurationsParams {
299
256
  source_type?: string | null;
300
257
  }
301
258
 
259
+ export interface ParseConfigurationUpdateParams {
260
+ /**
261
+ * Query param
262
+ */
263
+ organization_id?: string | null;
264
+
265
+ /**
266
+ * Query param
267
+ */
268
+ project_id?: string | null;
269
+
270
+ /**
271
+ * Body param: Settings that can be configured for how to use LlamaParse to parse
272
+ * files within a LlamaCloud pipeline.
273
+ */
274
+ parameters?: PipelinesAPI.LlamaParseParameters | null;
275
+ }
276
+
277
+ export interface ParseConfigurationListParams extends PaginatedCursorParams {
278
+ creator?: string | null;
279
+
280
+ name?: string | null;
281
+
282
+ organization_id?: string | null;
283
+
284
+ project_id?: string | null;
285
+
286
+ version?: string | null;
287
+ }
288
+
289
+ export interface ParseConfigurationDeleteParams {
290
+ organization_id?: string | null;
291
+
292
+ project_id?: string | null;
293
+ }
294
+
295
+ export interface ParseConfigurationGetParams {
296
+ organization_id?: string | null;
297
+
298
+ project_id?: string | null;
299
+ }
300
+
302
301
  export declare namespace ParseConfigurations {
303
302
  export {
304
303
  type ParseConfiguration as ParseConfiguration,
305
304
  type ParseConfigurationCreate as ParseConfigurationCreate,
306
305
  type ParseConfigurationQueryResponse as ParseConfigurationQueryResponse,
306
+ type ParseConfigurationsPaginatedCursor as ParseConfigurationsPaginatedCursor,
307
+ type ParseConfigurationCreateParams as ParseConfigurationCreateParams,
307
308
  type ParseConfigurationUpdateParams as ParseConfigurationUpdateParams,
309
+ type ParseConfigurationListParams as ParseConfigurationListParams,
308
310
  type ParseConfigurationDeleteParams as ParseConfigurationDeleteParams,
309
311
  type ParseConfigurationGetParams as ParseConfigurationGetParams,
310
- type ParseConfigurationGetParseConfigurationsParams as ParseConfigurationGetParseConfigurationsParams,
311
- type ParseConfigurationParseConfigurationsParams as ParseConfigurationParseConfigurationsParams,
312
312
  };
313
313
  }
@@ -4,7 +4,7 @@ import { APIResource } from '../../core/resource';
4
4
  import * as FilesAPI from '../files';
5
5
  import * as ParsingAPI from '../parsing';
6
6
  import { APIPromise } from '../../core/api-promise';
7
- import { PagePromise, PaginatedClassifyJobs, type PaginatedClassifyJobsParams } from '../../core/pagination';
7
+ import { PagePromise, PaginatedCursor, type PaginatedCursorParams } from '../../core/pagination';
8
8
  import { RequestOptions } from '../../internal/request-options';
9
9
  import { path } from '../../internal/utils/path';
10
10
  import { pollUntilComplete, PollingOptions } from '../../core/polling';
@@ -30,8 +30,8 @@ export class Sheets extends APIResource {
30
30
  list(
31
31
  query: SheetListParams | null | undefined = {},
32
32
  options?: RequestOptions,
33
- ): PagePromise<SheetsJobsPaginatedClassifyJobs, SheetsJob> {
34
- return this._client.getAPIList('/api/v1/beta/sheets/jobs', PaginatedClassifyJobs<SheetsJob>, {
33
+ ): PagePromise<SheetsJobsPaginatedCursor, SheetsJob> {
34
+ return this._client.getAPIList('/api/v1/beta/sheets/jobs', PaginatedCursor<SheetsJob>, {
35
35
  query,
36
36
  ...options,
37
37
  });
@@ -210,7 +210,7 @@ export class Sheets extends APIResource {
210
210
  }
211
211
  }
212
212
 
213
- export type SheetsJobsPaginatedClassifyJobs = PaginatedClassifyJobs<SheetsJob>;
213
+ export type SheetsJobsPaginatedCursor = PaginatedCursor<SheetsJob>;
214
214
 
215
215
  /**
216
216
  * A spreadsheet parsing job
@@ -409,7 +409,7 @@ export interface SheetCreateParams {
409
409
  config?: SheetsParsingConfig;
410
410
  }
411
411
 
412
- export interface SheetListParams extends PaginatedClassifyJobsParams {
412
+ export interface SheetListParams extends PaginatedCursorParams {
413
413
  include_results?: boolean;
414
414
 
415
415
  organization_id?: string | null;
@@ -473,7 +473,7 @@ export declare namespace Sheets {
473
473
  type SheetsJob as SheetsJob,
474
474
  type SheetsParsingConfig as SheetsParsingConfig,
475
475
  type SheetDeleteJobResponse as SheetDeleteJobResponse,
476
- type SheetsJobsPaginatedClassifyJobs as SheetsJobsPaginatedClassifyJobs,
476
+ type SheetsJobsPaginatedCursor as SheetsJobsPaginatedCursor,
477
477
  type SheetCreateParams as SheetCreateParams,
478
478
  type SheetListParams as SheetListParams,
479
479
  type SheetDeleteJobParams as SheetDeleteJobParams,
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
4
  import { APIPromise } from '../../core/api-promise';
5
- import { PagePromise, PaginatedClassifyJobs, type PaginatedClassifyJobsParams } from '../../core/pagination';
5
+ import { PagePromise, PaginatedCursor, type PaginatedCursorParams } from '../../core/pagination';
6
6
  import { RequestOptions } from '../../internal/request-options';
7
7
  import { path } from '../../internal/utils/path';
8
8
  import { pollUntilComplete, PollingOptions } from '../../core/polling';
@@ -28,8 +28,8 @@ export class Split extends APIResource {
28
28
  list(
29
29
  query: SplitListParams | null | undefined = {},
30
30
  options?: RequestOptions,
31
- ): PagePromise<SplitListResponsesPaginatedClassifyJobs, SplitListResponse> {
32
- return this._client.getAPIList('/api/v1/beta/split/jobs', PaginatedClassifyJobs<SplitListResponse>, {
31
+ ): PagePromise<SplitListResponsesPaginatedCursor, SplitListResponse> {
32
+ return this._client.getAPIList('/api/v1/beta/split/jobs', PaginatedCursor<SplitListResponse>, {
33
33
  query,
34
34
  ...options,
35
35
  });
@@ -191,7 +191,7 @@ export class Split extends APIResource {
191
191
  }
192
192
  }
193
193
 
194
- export type SplitListResponsesPaginatedClassifyJobs = PaginatedClassifyJobs<SplitListResponse>;
194
+ export type SplitListResponsesPaginatedCursor = PaginatedCursor<SplitListResponse>;
195
195
 
196
196
  /**
197
197
  * Category definition for document splitting.
@@ -461,7 +461,7 @@ export namespace SplitCreateParams {
461
461
  }
462
462
  }
463
463
 
464
- export interface SplitListParams extends PaginatedClassifyJobsParams {
464
+ export interface SplitListParams extends PaginatedCursorParams {
465
465
  organization_id?: string | null;
466
466
 
467
467
  project_id?: string | null;
@@ -490,7 +490,7 @@ export declare namespace Split {
490
490
  type SplitCreateResponse as SplitCreateResponse,
491
491
  type SplitListResponse as SplitListResponse,
492
492
  type SplitGetResponse as SplitGetResponse,
493
- type SplitListResponsesPaginatedClassifyJobs as SplitListResponsesPaginatedClassifyJobs,
493
+ type SplitListResponsesPaginatedCursor as SplitListResponsesPaginatedCursor,
494
494
  type SplitCreateParams as SplitCreateParams,
495
495
  type SplitListParams as SplitListParams,
496
496
  type SplitGetParams as SplitGetParams,
@@ -7,7 +7,7 @@ import * as JobsAPI from './jobs';
7
7
  import {
8
8
  ClassifierRule,
9
9
  ClassifyJob,
10
- ClassifyJobsPaginatedClassifyJobs,
10
+ ClassifyJobsPaginatedCursor,
11
11
  ClassifyParsingConfiguration,
12
12
  JobCreateParams,
13
13
  JobGetParams,
@@ -83,7 +83,7 @@ export declare namespace Classifier {
83
83
  type ClassifyJob as ClassifyJob,
84
84
  type ClassifyParsingConfiguration as ClassifyParsingConfiguration,
85
85
  type JobGetResultsResponse as JobGetResultsResponse,
86
- type ClassifyJobsPaginatedClassifyJobs as ClassifyJobsPaginatedClassifyJobs,
86
+ type ClassifyJobsPaginatedCursor as ClassifyJobsPaginatedCursor,
87
87
  type JobCreateParams as JobCreateParams,
88
88
  type JobListParams as JobListParams,
89
89
  type JobGetParams as JobGetParams,
@@ -11,5 +11,5 @@ export {
11
11
  type JobListParams,
12
12
  type JobGetParams,
13
13
  type JobGetResultsParams,
14
- type ClassifyJobsPaginatedClassifyJobs,
14
+ type ClassifyJobsPaginatedCursor,
15
15
  } from './jobs';
@@ -3,7 +3,7 @@
3
3
  import { APIResource } from '../../core/resource';
4
4
  import * as ParsingAPI from '../parsing';
5
5
  import { APIPromise } from '../../core/api-promise';
6
- import { PagePromise, PaginatedClassifyJobs, type PaginatedClassifyJobsParams } from '../../core/pagination';
6
+ import { PagePromise, PaginatedCursor, type PaginatedCursorParams } from '../../core/pagination';
7
7
  import { RequestOptions } from '../../internal/request-options';
8
8
  import { path } from '../../internal/utils/path';
9
9
  import { pollUntilComplete, PollingOptions } from '../../core/polling';
@@ -29,8 +29,8 @@ export class Jobs extends APIResource {
29
29
  list(
30
30
  query: JobListParams | null | undefined = {},
31
31
  options?: RequestOptions,
32
- ): PagePromise<ClassifyJobsPaginatedClassifyJobs, ClassifyJob> {
33
- return this._client.getAPIList('/api/v1/classifier/jobs', PaginatedClassifyJobs<ClassifyJob>, {
32
+ ): PagePromise<ClassifyJobsPaginatedCursor, ClassifyJob> {
33
+ return this._client.getAPIList('/api/v1/classifier/jobs', PaginatedCursor<ClassifyJob>, {
34
34
  query,
35
35
  ...options,
36
36
  });
@@ -134,7 +134,7 @@ export class Jobs extends APIResource {
134
134
  }
135
135
  }
136
136
 
137
- export type ClassifyJobsPaginatedClassifyJobs = PaginatedClassifyJobs<ClassifyJob>;
137
+ export type ClassifyJobsPaginatedCursor = PaginatedCursor<ClassifyJob>;
138
138
 
139
139
  /**
140
140
  * A rule for classifying documents - v0 simplified version.
@@ -353,7 +353,7 @@ export interface JobCreateParams {
353
353
  parsing_configuration?: ClassifyParsingConfiguration;
354
354
  }
355
355
 
356
- export interface JobListParams extends PaginatedClassifyJobsParams {
356
+ export interface JobListParams extends PaginatedCursorParams {
357
357
  organization_id?: string | null;
358
358
 
359
359
  project_id?: string | null;
@@ -377,7 +377,7 @@ export declare namespace Jobs {
377
377
  type ClassifyJob as ClassifyJob,
378
378
  type ClassifyParsingConfiguration as ClassifyParsingConfiguration,
379
379
  type JobGetResultsResponse as JobGetResultsResponse,
380
- type ClassifyJobsPaginatedClassifyJobs as ClassifyJobsPaginatedClassifyJobs,
380
+ type ClassifyJobsPaginatedCursor as ClassifyJobsPaginatedCursor,
381
381
  type JobCreateParams as JobCreateParams,
382
382
  type JobListParams as JobListParams,
383
383
  type JobGetParams as JobGetParams,