@llamaindex/llama-cloud 2.2.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/agent-data.d.mts +57 -0
- package/resources/beta/agent-data.d.mts.map +1 -1
- package/resources/beta/agent-data.d.ts +57 -0
- package/resources/beta/agent-data.d.ts.map +1 -1
- package/resources/beta/agent-data.js +57 -0
- package/resources/beta/agent-data.js.map +1 -1
- package/resources/beta/agent-data.mjs +57 -0
- package/resources/beta/agent-data.mjs.map +1 -1
- package/resources/beta/batch/batch.d.mts +27 -0
- package/resources/beta/batch/batch.d.mts.map +1 -1
- package/resources/beta/batch/batch.d.ts +27 -0
- package/resources/beta/batch/batch.d.ts.map +1 -1
- package/resources/beta/batch/batch.js +27 -0
- package/resources/beta/batch/batch.js.map +1 -1
- package/resources/beta/batch/batch.mjs +27 -0
- package/resources/beta/batch/batch.mjs.map +1 -1
- package/resources/beta/batch/job-items.d.mts +18 -0
- package/resources/beta/batch/job-items.d.mts.map +1 -1
- package/resources/beta/batch/job-items.d.ts +18 -0
- package/resources/beta/batch/job-items.d.ts.map +1 -1
- package/resources/beta/batch/job-items.js +18 -0
- package/resources/beta/batch/job-items.js.map +1 -1
- package/resources/beta/batch/job-items.mjs +18 -0
- package/resources/beta/batch/job-items.mjs.map +1 -1
- package/resources/beta/beta.d.mts +0 -4
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +0 -4
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js +0 -4
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +0 -4
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/directories/directories.d.mts +34 -0
- package/resources/beta/directories/directories.d.mts.map +1 -1
- package/resources/beta/directories/directories.d.ts +34 -0
- package/resources/beta/directories/directories.d.ts.map +1 -1
- package/resources/beta/directories/directories.js +34 -0
- package/resources/beta/directories/directories.js.map +1 -1
- package/resources/beta/directories/directories.mjs +34 -0
- package/resources/beta/directories/directories.mjs.map +1 -1
- package/resources/beta/directories/files.d.mts +93 -0
- package/resources/beta/directories/files.d.mts.map +1 -1
- package/resources/beta/directories/files.d.ts +93 -0
- package/resources/beta/directories/files.d.ts.map +1 -1
- package/resources/beta/directories/files.js +50 -0
- package/resources/beta/directories/files.js.map +1 -1
- package/resources/beta/directories/files.mjs +50 -0
- package/resources/beta/directories/files.mjs.map +1 -1
- package/resources/beta/index.d.mts +0 -1
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +0 -1
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js +1 -3
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs +0 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/sheets.d.mts +38 -0
- package/resources/beta/sheets.d.mts.map +1 -1
- package/resources/beta/sheets.d.ts +38 -0
- package/resources/beta/sheets.d.ts.map +1 -1
- package/resources/beta/sheets.js +38 -0
- package/resources/beta/sheets.js.map +1 -1
- package/resources/beta/sheets.mjs +38 -0
- package/resources/beta/sheets.mjs.map +1 -1
- package/resources/beta/split.d.mts +25 -10
- package/resources/beta/split.d.mts.map +1 -1
- package/resources/beta/split.d.ts +25 -10
- package/resources/beta/split.d.ts.map +1 -1
- package/resources/beta/split.js +21 -6
- package/resources/beta/split.js.map +1 -1
- package/resources/beta/split.mjs +21 -6
- package/resources/beta/split.mjs.map +1 -1
- package/resources/classify.d.mts +70 -0
- package/resources/classify.d.mts.map +1 -1
- package/resources/classify.d.ts +70 -0
- package/resources/classify.d.ts.map +1 -1
- package/resources/classify.js +113 -0
- package/resources/classify.js.map +1 -1
- package/resources/classify.mjs +113 -0
- package/resources/classify.mjs.map +1 -1
- package/resources/configurations.d.mts +214 -13
- package/resources/configurations.d.mts.map +1 -1
- package/resources/configurations.d.ts +214 -13
- package/resources/configurations.d.ts.map +1 -1
- package/resources/extract.d.mts +16 -6
- package/resources/extract.d.mts.map +1 -1
- package/resources/extract.d.ts +16 -6
- package/resources/extract.d.ts.map +1 -1
- package/resources/extract.js +14 -1
- package/resources/extract.js.map +1 -1
- package/resources/extract.mjs +14 -1
- package/resources/extract.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/parsing.d.mts +5 -4
- package/resources/parsing.d.mts.map +1 -1
- package/resources/parsing.d.ts +5 -4
- package/resources/parsing.d.ts.map +1 -1
- package/resources/pipelines/documents.d.mts +0 -3
- package/resources/pipelines/documents.d.mts.map +1 -1
- package/resources/pipelines/documents.d.ts +0 -3
- package/resources/pipelines/documents.d.ts.map +1 -1
- package/resources/pipelines/pipelines.d.mts +0 -7
- package/resources/pipelines/pipelines.d.mts.map +1 -1
- package/resources/pipelines/pipelines.d.ts +0 -7
- package/resources/pipelines/pipelines.d.ts.map +1 -1
- package/resources/pipelines/pipelines.js.map +1 -1
- package/resources/pipelines/pipelines.mjs.map +1 -1
- package/resources/retrievers/index.d.mts +1 -1
- package/resources/retrievers/index.d.mts.map +1 -1
- package/resources/retrievers/index.d.ts +1 -1
- package/resources/retrievers/index.d.ts.map +1 -1
- package/resources/retrievers/index.js.map +1 -1
- package/resources/retrievers/index.mjs.map +1 -1
- package/resources/retrievers/retrievers.d.mts +17 -5
- package/resources/retrievers/retrievers.d.mts.map +1 -1
- package/resources/retrievers/retrievers.d.ts +17 -5
- package/resources/retrievers/retrievers.d.ts.map +1 -1
- package/resources/retrievers/retrievers.js +10 -3
- package/resources/retrievers/retrievers.js.map +1 -1
- package/resources/retrievers/retrievers.mjs +10 -3
- package/resources/retrievers/retrievers.mjs.map +1 -1
- package/src/client.ts +2 -0
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/beta/agent-data.ts +57 -0
- package/src/resources/beta/batch/batch.ts +27 -0
- package/src/resources/beta/batch/job-items.ts +18 -0
- package/src/resources/beta/beta.ts +0 -29
- package/src/resources/beta/directories/directories.ts +34 -0
- package/src/resources/beta/directories/files.ts +86 -0
- package/src/resources/beta/index.ts +0 -12
- package/src/resources/beta/sheets.ts +38 -0
- package/src/resources/beta/split.ts +25 -10
- package/src/resources/classify.ts +130 -0
- package/src/resources/configurations.ts +256 -8
- package/src/resources/extract.ts +16 -7
- package/src/resources/index.ts +1 -0
- package/src/resources/parsing.ts +9 -2
- package/src/resources/pipelines/documents.ts +0 -3
- package/src/resources/pipelines/pipelines.ts +0 -7
- package/src/resources/retrievers/index.ts +1 -0
- package/src/resources/retrievers/retrievers.ts +37 -5
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/beta/parse-configurations.d.mts +0 -210
- package/resources/beta/parse-configurations.d.mts.map +0 -1
- package/resources/beta/parse-configurations.d.ts +0 -210
- package/resources/beta/parse-configurations.d.ts.map +0 -1
- package/resources/beta/parse-configurations.js +0 -84
- package/resources/beta/parse-configurations.js.map +0 -1
- package/resources/beta/parse-configurations.mjs +0 -80
- package/resources/beta/parse-configurations.mjs.map +0 -1
- package/src/resources/beta/parse-configurations.ts +0 -311
|
@@ -653,10 +653,6 @@ export interface HuggingFaceInferenceAPIEmbeddingConfig {
|
|
|
653
653
|
type?: 'HUGGINGFACE_API_EMBEDDING';
|
|
654
654
|
}
|
|
655
655
|
|
|
656
|
-
/**
|
|
657
|
-
* Settings that can be configured for how to use LlamaParse to parse files within
|
|
658
|
-
* a LlamaCloud pipeline.
|
|
659
|
-
*/
|
|
660
656
|
export interface LlamaParseParameters {
|
|
661
657
|
adaptive_long_table?: boolean | null;
|
|
662
658
|
|
|
@@ -1789,9 +1785,6 @@ export namespace PipelineRetrieveResponse {
|
|
|
1789
1785
|
export interface RetrievalNode {
|
|
1790
1786
|
/**
|
|
1791
1787
|
* Provided for backward compatibility.
|
|
1792
|
-
*
|
|
1793
|
-
* Note: we keep the field with the typo "seperator" to maintain backward
|
|
1794
|
-
* compatibility for serialized objects.
|
|
1795
1788
|
*/
|
|
1796
1789
|
node: DocumentsAPI.TextNode;
|
|
1797
1790
|
|
|
@@ -26,8 +26,17 @@ export class Retrievers extends APIResource {
|
|
|
26
26
|
/**
|
|
27
27
|
* Update an existing Retriever.
|
|
28
28
|
*/
|
|
29
|
-
update(
|
|
30
|
-
|
|
29
|
+
update(
|
|
30
|
+
retrieverID: string,
|
|
31
|
+
params: RetrieverUpdateParams,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): APIPromise<Retriever> {
|
|
34
|
+
const { organization_id, project_id, ...body } = params;
|
|
35
|
+
return this._client.put(path`/api/v1/retrievers/${retrieverID}`, {
|
|
36
|
+
query: { organization_id, project_id },
|
|
37
|
+
body,
|
|
38
|
+
...options,
|
|
39
|
+
});
|
|
31
40
|
}
|
|
32
41
|
|
|
33
42
|
/**
|
|
@@ -43,8 +52,14 @@ export class Retrievers extends APIResource {
|
|
|
43
52
|
/**
|
|
44
53
|
* Delete a Retriever by ID.
|
|
45
54
|
*/
|
|
46
|
-
delete(
|
|
55
|
+
delete(
|
|
56
|
+
retrieverID: string,
|
|
57
|
+
params: RetrieverDeleteParams | null | undefined = {},
|
|
58
|
+
options?: RequestOptions,
|
|
59
|
+
): APIPromise<void> {
|
|
60
|
+
const { organization_id, project_id } = params ?? {};
|
|
47
61
|
return this._client.delete(path`/api/v1/retrievers/${retrieverID}`, {
|
|
62
|
+
query: { organization_id, project_id },
|
|
48
63
|
...options,
|
|
49
64
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
50
65
|
});
|
|
@@ -275,12 +290,22 @@ export interface RetrieverCreateParams {
|
|
|
275
290
|
|
|
276
291
|
export interface RetrieverUpdateParams {
|
|
277
292
|
/**
|
|
278
|
-
* The pipelines this retriever uses.
|
|
293
|
+
* Body param: The pipelines this retriever uses.
|
|
279
294
|
*/
|
|
280
295
|
pipelines: Array<RetrieverPipeline> | null;
|
|
281
296
|
|
|
282
297
|
/**
|
|
283
|
-
*
|
|
298
|
+
* Query param
|
|
299
|
+
*/
|
|
300
|
+
organization_id?: string | null;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Query param
|
|
304
|
+
*/
|
|
305
|
+
project_id?: string | null;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Body param: A name for the retriever.
|
|
284
309
|
*/
|
|
285
310
|
name?: string | null;
|
|
286
311
|
}
|
|
@@ -293,6 +318,12 @@ export interface RetrieverListParams {
|
|
|
293
318
|
project_id?: string | null;
|
|
294
319
|
}
|
|
295
320
|
|
|
321
|
+
export interface RetrieverDeleteParams {
|
|
322
|
+
organization_id?: string | null;
|
|
323
|
+
|
|
324
|
+
project_id?: string | null;
|
|
325
|
+
}
|
|
326
|
+
|
|
296
327
|
export interface RetrieverGetParams {
|
|
297
328
|
organization_id?: string | null;
|
|
298
329
|
|
|
@@ -372,6 +403,7 @@ export declare namespace Retrievers {
|
|
|
372
403
|
type RetrieverCreateParams as RetrieverCreateParams,
|
|
373
404
|
type RetrieverUpdateParams as RetrieverUpdateParams,
|
|
374
405
|
type RetrieverListParams as RetrieverListParams,
|
|
406
|
+
type RetrieverDeleteParams as RetrieverDeleteParams,
|
|
375
407
|
type RetrieverGetParams as RetrieverGetParams,
|
|
376
408
|
type RetrieverSearchParams as RetrieverSearchParams,
|
|
377
409
|
type RetrieverUpsertParams as RetrieverUpsertParams,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.4.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.4.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.4.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.4.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as PipelinesAPI from "../pipelines/pipelines.mjs";
|
|
3
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
4
|
-
import { PagePromise, PaginatedCursor, type PaginatedCursorParams } from "../../core/pagination.mjs";
|
|
5
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
|
-
export declare class ParseConfigurations extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Create a new parse configuration.
|
|
9
|
-
*
|
|
10
|
-
* Args: config_create: Parse configuration creation data project: Validated
|
|
11
|
-
* project from dependency user: Current user
|
|
12
|
-
*
|
|
13
|
-
* Returns: The created parse configuration
|
|
14
|
-
*/
|
|
15
|
-
create(params: ParseConfigurationCreateParams, options?: RequestOptions): APIPromise<ParseConfiguration>;
|
|
16
|
-
/**
|
|
17
|
-
* Update a parse configuration.
|
|
18
|
-
*
|
|
19
|
-
* Args: config_id: The ID of the parse configuration to update config_update:
|
|
20
|
-
* Update data project: Validated project from dependency user: Current user
|
|
21
|
-
*
|
|
22
|
-
* Returns: The updated parse configuration
|
|
23
|
-
*/
|
|
24
|
-
update(configID: string, params: ParseConfigurationUpdateParams, options?: RequestOptions): APIPromise<ParseConfiguration>;
|
|
25
|
-
/**
|
|
26
|
-
* List parse configurations for the current project.
|
|
27
|
-
*
|
|
28
|
-
* Args: project: Validated project from dependency user: Current user page_size:
|
|
29
|
-
* Number of items per page page_token: Token for pagination name: Filter by
|
|
30
|
-
* configuration name creator: Filter by creator version: Filter by version
|
|
31
|
-
*
|
|
32
|
-
* Returns: Paginated response with parse configurations
|
|
33
|
-
*/
|
|
34
|
-
list(query?: ParseConfigurationListParams | null | undefined, options?: RequestOptions): PagePromise<ParseConfigurationsPaginatedCursor, ParseConfiguration>;
|
|
35
|
-
/**
|
|
36
|
-
* Delete a parse configuration.
|
|
37
|
-
*
|
|
38
|
-
* Args: config_id: The ID of the parse configuration to delete project: Validated
|
|
39
|
-
* project from dependency user: Current user
|
|
40
|
-
*/
|
|
41
|
-
delete(configID: string, params?: ParseConfigurationDeleteParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
42
|
-
/**
|
|
43
|
-
* Get a parse configuration by ID.
|
|
44
|
-
*
|
|
45
|
-
* Args: config_id: The ID of the parse configuration project: Validated project
|
|
46
|
-
* from dependency user: Current user
|
|
47
|
-
*
|
|
48
|
-
* Returns: The parse configuration
|
|
49
|
-
*/
|
|
50
|
-
get(configID: string, query?: ParseConfigurationGetParams | null | undefined, options?: RequestOptions): APIPromise<ParseConfiguration>;
|
|
51
|
-
}
|
|
52
|
-
export type ParseConfigurationsPaginatedCursor = PaginatedCursor<ParseConfiguration>;
|
|
53
|
-
/**
|
|
54
|
-
* Parse configuration schema.
|
|
55
|
-
*/
|
|
56
|
-
export interface ParseConfiguration {
|
|
57
|
-
/**
|
|
58
|
-
* Unique identifier for the parse configuration
|
|
59
|
-
*/
|
|
60
|
-
id: string;
|
|
61
|
-
/**
|
|
62
|
-
* Creation timestamp
|
|
63
|
-
*/
|
|
64
|
-
created_at: string;
|
|
65
|
-
/**
|
|
66
|
-
* Name of the parse configuration
|
|
67
|
-
*/
|
|
68
|
-
name: string;
|
|
69
|
-
/**
|
|
70
|
-
* LlamaParseParameters configuration
|
|
71
|
-
*/
|
|
72
|
-
parameters: PipelinesAPI.LlamaParseParameters;
|
|
73
|
-
/**
|
|
74
|
-
* ID of the source
|
|
75
|
-
*/
|
|
76
|
-
source_id: string;
|
|
77
|
-
/**
|
|
78
|
-
* Type of the source (e.g., 'project')
|
|
79
|
-
*/
|
|
80
|
-
source_type: string;
|
|
81
|
-
/**
|
|
82
|
-
* Last update timestamp
|
|
83
|
-
*/
|
|
84
|
-
updated_at: string;
|
|
85
|
-
/**
|
|
86
|
-
* Version of the configuration
|
|
87
|
-
*/
|
|
88
|
-
version: string;
|
|
89
|
-
/**
|
|
90
|
-
* Creator of the configuration
|
|
91
|
-
*/
|
|
92
|
-
creator?: string | null;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Schema for creating a new parse configuration (API boundary).
|
|
96
|
-
*/
|
|
97
|
-
export interface ParseConfigurationCreate {
|
|
98
|
-
/**
|
|
99
|
-
* Name of the parse configuration
|
|
100
|
-
*/
|
|
101
|
-
name: string;
|
|
102
|
-
/**
|
|
103
|
-
* LlamaParseParameters configuration
|
|
104
|
-
*/
|
|
105
|
-
parameters: PipelinesAPI.LlamaParseParameters;
|
|
106
|
-
/**
|
|
107
|
-
* Version of the configuration
|
|
108
|
-
*/
|
|
109
|
-
version: string;
|
|
110
|
-
/**
|
|
111
|
-
* Creator of the configuration
|
|
112
|
-
*/
|
|
113
|
-
creator?: string | null;
|
|
114
|
-
/**
|
|
115
|
-
* ID of the source
|
|
116
|
-
*/
|
|
117
|
-
source_id?: string | null;
|
|
118
|
-
/**
|
|
119
|
-
* Type of the source (e.g., 'project')
|
|
120
|
-
*/
|
|
121
|
-
source_type?: string | null;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Response schema for paginated parse configuration queries.
|
|
125
|
-
*/
|
|
126
|
-
export interface ParseConfigurationQueryResponse {
|
|
127
|
-
/**
|
|
128
|
-
* The list of items.
|
|
129
|
-
*/
|
|
130
|
-
items: Array<ParseConfiguration>;
|
|
131
|
-
/**
|
|
132
|
-
* A token, which can be sent as page_token to retrieve the next page. If this
|
|
133
|
-
* field is omitted, there are no subsequent pages.
|
|
134
|
-
*/
|
|
135
|
-
next_page_token?: string | null;
|
|
136
|
-
/**
|
|
137
|
-
* The total number of items available. This is only populated when specifically
|
|
138
|
-
* requested. The value may be an estimate and can be used for display purposes
|
|
139
|
-
* only.
|
|
140
|
-
*/
|
|
141
|
-
total_size?: number | null;
|
|
142
|
-
}
|
|
143
|
-
export interface ParseConfigurationCreateParams {
|
|
144
|
-
/**
|
|
145
|
-
* Body param: Name of the parse configuration
|
|
146
|
-
*/
|
|
147
|
-
name: string;
|
|
148
|
-
/**
|
|
149
|
-
* Body param: LlamaParseParameters configuration
|
|
150
|
-
*/
|
|
151
|
-
parameters: PipelinesAPI.LlamaParseParameters;
|
|
152
|
-
/**
|
|
153
|
-
* Body param: Version of the configuration
|
|
154
|
-
*/
|
|
155
|
-
version: string;
|
|
156
|
-
/**
|
|
157
|
-
* Query param
|
|
158
|
-
*/
|
|
159
|
-
organization_id?: string | null;
|
|
160
|
-
/**
|
|
161
|
-
* Query param
|
|
162
|
-
*/
|
|
163
|
-
project_id?: string | null;
|
|
164
|
-
/**
|
|
165
|
-
* Body param: Creator of the configuration
|
|
166
|
-
*/
|
|
167
|
-
creator?: string | null;
|
|
168
|
-
/**
|
|
169
|
-
* Body param: ID of the source
|
|
170
|
-
*/
|
|
171
|
-
source_id?: string | null;
|
|
172
|
-
/**
|
|
173
|
-
* Body param: Type of the source (e.g., 'project')
|
|
174
|
-
*/
|
|
175
|
-
source_type?: string | null;
|
|
176
|
-
}
|
|
177
|
-
export interface ParseConfigurationUpdateParams {
|
|
178
|
-
/**
|
|
179
|
-
* Query param
|
|
180
|
-
*/
|
|
181
|
-
organization_id?: string | null;
|
|
182
|
-
/**
|
|
183
|
-
* Query param
|
|
184
|
-
*/
|
|
185
|
-
project_id?: string | null;
|
|
186
|
-
/**
|
|
187
|
-
* Body param: Settings that can be configured for how to use LlamaParse to parse
|
|
188
|
-
* files within a LlamaCloud pipeline.
|
|
189
|
-
*/
|
|
190
|
-
parameters?: PipelinesAPI.LlamaParseParameters | null;
|
|
191
|
-
}
|
|
192
|
-
export interface ParseConfigurationListParams extends PaginatedCursorParams {
|
|
193
|
-
creator?: string | null;
|
|
194
|
-
name?: string | null;
|
|
195
|
-
organization_id?: string | null;
|
|
196
|
-
project_id?: string | null;
|
|
197
|
-
version?: string | null;
|
|
198
|
-
}
|
|
199
|
-
export interface ParseConfigurationDeleteParams {
|
|
200
|
-
organization_id?: string | null;
|
|
201
|
-
project_id?: string | null;
|
|
202
|
-
}
|
|
203
|
-
export interface ParseConfigurationGetParams {
|
|
204
|
-
organization_id?: string | null;
|
|
205
|
-
project_id?: string | null;
|
|
206
|
-
}
|
|
207
|
-
export declare namespace ParseConfigurations {
|
|
208
|
-
export { type ParseConfiguration as ParseConfiguration, type ParseConfigurationCreate as ParseConfigurationCreate, type ParseConfigurationQueryResponse as ParseConfigurationQueryResponse, type ParseConfigurationsPaginatedCursor as ParseConfigurationsPaginatedCursor, type ParseConfigurationCreateParams as ParseConfigurationCreateParams, type ParseConfigurationUpdateParams as ParseConfigurationUpdateParams, type ParseConfigurationListParams as ParseConfigurationListParams, type ParseConfigurationDeleteParams as ParseConfigurationDeleteParams, type ParseConfigurationGetParams as ParseConfigurationGetParams, };
|
|
209
|
-
}
|
|
210
|
-
//# sourceMappingURL=parse-configurations.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parse-configurations.d.mts","sourceRoot":"","sources":["../../src/resources/beta/parse-configurations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,qBAAqB,EAAE;OAE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../pipelines/pipelines.js";
|
|
3
|
-
import { APIPromise } from "../../core/api-promise.js";
|
|
4
|
-
import { PagePromise, PaginatedCursor, type PaginatedCursorParams } from "../../core/pagination.js";
|
|
5
|
-
import { RequestOptions } from "../../internal/request-options.js";
|
|
6
|
-
export declare class ParseConfigurations extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Create a new parse configuration.
|
|
9
|
-
*
|
|
10
|
-
* Args: config_create: Parse configuration creation data project: Validated
|
|
11
|
-
* project from dependency user: Current user
|
|
12
|
-
*
|
|
13
|
-
* Returns: The created parse configuration
|
|
14
|
-
*/
|
|
15
|
-
create(params: ParseConfigurationCreateParams, options?: RequestOptions): APIPromise<ParseConfiguration>;
|
|
16
|
-
/**
|
|
17
|
-
* Update a parse configuration.
|
|
18
|
-
*
|
|
19
|
-
* Args: config_id: The ID of the parse configuration to update config_update:
|
|
20
|
-
* Update data project: Validated project from dependency user: Current user
|
|
21
|
-
*
|
|
22
|
-
* Returns: The updated parse configuration
|
|
23
|
-
*/
|
|
24
|
-
update(configID: string, params: ParseConfigurationUpdateParams, options?: RequestOptions): APIPromise<ParseConfiguration>;
|
|
25
|
-
/**
|
|
26
|
-
* List parse configurations for the current project.
|
|
27
|
-
*
|
|
28
|
-
* Args: project: Validated project from dependency user: Current user page_size:
|
|
29
|
-
* Number of items per page page_token: Token for pagination name: Filter by
|
|
30
|
-
* configuration name creator: Filter by creator version: Filter by version
|
|
31
|
-
*
|
|
32
|
-
* Returns: Paginated response with parse configurations
|
|
33
|
-
*/
|
|
34
|
-
list(query?: ParseConfigurationListParams | null | undefined, options?: RequestOptions): PagePromise<ParseConfigurationsPaginatedCursor, ParseConfiguration>;
|
|
35
|
-
/**
|
|
36
|
-
* Delete a parse configuration.
|
|
37
|
-
*
|
|
38
|
-
* Args: config_id: The ID of the parse configuration to delete project: Validated
|
|
39
|
-
* project from dependency user: Current user
|
|
40
|
-
*/
|
|
41
|
-
delete(configID: string, params?: ParseConfigurationDeleteParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
42
|
-
/**
|
|
43
|
-
* Get a parse configuration by ID.
|
|
44
|
-
*
|
|
45
|
-
* Args: config_id: The ID of the parse configuration project: Validated project
|
|
46
|
-
* from dependency user: Current user
|
|
47
|
-
*
|
|
48
|
-
* Returns: The parse configuration
|
|
49
|
-
*/
|
|
50
|
-
get(configID: string, query?: ParseConfigurationGetParams | null | undefined, options?: RequestOptions): APIPromise<ParseConfiguration>;
|
|
51
|
-
}
|
|
52
|
-
export type ParseConfigurationsPaginatedCursor = PaginatedCursor<ParseConfiguration>;
|
|
53
|
-
/**
|
|
54
|
-
* Parse configuration schema.
|
|
55
|
-
*/
|
|
56
|
-
export interface ParseConfiguration {
|
|
57
|
-
/**
|
|
58
|
-
* Unique identifier for the parse configuration
|
|
59
|
-
*/
|
|
60
|
-
id: string;
|
|
61
|
-
/**
|
|
62
|
-
* Creation timestamp
|
|
63
|
-
*/
|
|
64
|
-
created_at: string;
|
|
65
|
-
/**
|
|
66
|
-
* Name of the parse configuration
|
|
67
|
-
*/
|
|
68
|
-
name: string;
|
|
69
|
-
/**
|
|
70
|
-
* LlamaParseParameters configuration
|
|
71
|
-
*/
|
|
72
|
-
parameters: PipelinesAPI.LlamaParseParameters;
|
|
73
|
-
/**
|
|
74
|
-
* ID of the source
|
|
75
|
-
*/
|
|
76
|
-
source_id: string;
|
|
77
|
-
/**
|
|
78
|
-
* Type of the source (e.g., 'project')
|
|
79
|
-
*/
|
|
80
|
-
source_type: string;
|
|
81
|
-
/**
|
|
82
|
-
* Last update timestamp
|
|
83
|
-
*/
|
|
84
|
-
updated_at: string;
|
|
85
|
-
/**
|
|
86
|
-
* Version of the configuration
|
|
87
|
-
*/
|
|
88
|
-
version: string;
|
|
89
|
-
/**
|
|
90
|
-
* Creator of the configuration
|
|
91
|
-
*/
|
|
92
|
-
creator?: string | null;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Schema for creating a new parse configuration (API boundary).
|
|
96
|
-
*/
|
|
97
|
-
export interface ParseConfigurationCreate {
|
|
98
|
-
/**
|
|
99
|
-
* Name of the parse configuration
|
|
100
|
-
*/
|
|
101
|
-
name: string;
|
|
102
|
-
/**
|
|
103
|
-
* LlamaParseParameters configuration
|
|
104
|
-
*/
|
|
105
|
-
parameters: PipelinesAPI.LlamaParseParameters;
|
|
106
|
-
/**
|
|
107
|
-
* Version of the configuration
|
|
108
|
-
*/
|
|
109
|
-
version: string;
|
|
110
|
-
/**
|
|
111
|
-
* Creator of the configuration
|
|
112
|
-
*/
|
|
113
|
-
creator?: string | null;
|
|
114
|
-
/**
|
|
115
|
-
* ID of the source
|
|
116
|
-
*/
|
|
117
|
-
source_id?: string | null;
|
|
118
|
-
/**
|
|
119
|
-
* Type of the source (e.g., 'project')
|
|
120
|
-
*/
|
|
121
|
-
source_type?: string | null;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Response schema for paginated parse configuration queries.
|
|
125
|
-
*/
|
|
126
|
-
export interface ParseConfigurationQueryResponse {
|
|
127
|
-
/**
|
|
128
|
-
* The list of items.
|
|
129
|
-
*/
|
|
130
|
-
items: Array<ParseConfiguration>;
|
|
131
|
-
/**
|
|
132
|
-
* A token, which can be sent as page_token to retrieve the next page. If this
|
|
133
|
-
* field is omitted, there are no subsequent pages.
|
|
134
|
-
*/
|
|
135
|
-
next_page_token?: string | null;
|
|
136
|
-
/**
|
|
137
|
-
* The total number of items available. This is only populated when specifically
|
|
138
|
-
* requested. The value may be an estimate and can be used for display purposes
|
|
139
|
-
* only.
|
|
140
|
-
*/
|
|
141
|
-
total_size?: number | null;
|
|
142
|
-
}
|
|
143
|
-
export interface ParseConfigurationCreateParams {
|
|
144
|
-
/**
|
|
145
|
-
* Body param: Name of the parse configuration
|
|
146
|
-
*/
|
|
147
|
-
name: string;
|
|
148
|
-
/**
|
|
149
|
-
* Body param: LlamaParseParameters configuration
|
|
150
|
-
*/
|
|
151
|
-
parameters: PipelinesAPI.LlamaParseParameters;
|
|
152
|
-
/**
|
|
153
|
-
* Body param: Version of the configuration
|
|
154
|
-
*/
|
|
155
|
-
version: string;
|
|
156
|
-
/**
|
|
157
|
-
* Query param
|
|
158
|
-
*/
|
|
159
|
-
organization_id?: string | null;
|
|
160
|
-
/**
|
|
161
|
-
* Query param
|
|
162
|
-
*/
|
|
163
|
-
project_id?: string | null;
|
|
164
|
-
/**
|
|
165
|
-
* Body param: Creator of the configuration
|
|
166
|
-
*/
|
|
167
|
-
creator?: string | null;
|
|
168
|
-
/**
|
|
169
|
-
* Body param: ID of the source
|
|
170
|
-
*/
|
|
171
|
-
source_id?: string | null;
|
|
172
|
-
/**
|
|
173
|
-
* Body param: Type of the source (e.g., 'project')
|
|
174
|
-
*/
|
|
175
|
-
source_type?: string | null;
|
|
176
|
-
}
|
|
177
|
-
export interface ParseConfigurationUpdateParams {
|
|
178
|
-
/**
|
|
179
|
-
* Query param
|
|
180
|
-
*/
|
|
181
|
-
organization_id?: string | null;
|
|
182
|
-
/**
|
|
183
|
-
* Query param
|
|
184
|
-
*/
|
|
185
|
-
project_id?: string | null;
|
|
186
|
-
/**
|
|
187
|
-
* Body param: Settings that can be configured for how to use LlamaParse to parse
|
|
188
|
-
* files within a LlamaCloud pipeline.
|
|
189
|
-
*/
|
|
190
|
-
parameters?: PipelinesAPI.LlamaParseParameters | null;
|
|
191
|
-
}
|
|
192
|
-
export interface ParseConfigurationListParams extends PaginatedCursorParams {
|
|
193
|
-
creator?: string | null;
|
|
194
|
-
name?: string | null;
|
|
195
|
-
organization_id?: string | null;
|
|
196
|
-
project_id?: string | null;
|
|
197
|
-
version?: string | null;
|
|
198
|
-
}
|
|
199
|
-
export interface ParseConfigurationDeleteParams {
|
|
200
|
-
organization_id?: string | null;
|
|
201
|
-
project_id?: string | null;
|
|
202
|
-
}
|
|
203
|
-
export interface ParseConfigurationGetParams {
|
|
204
|
-
organization_id?: string | null;
|
|
205
|
-
project_id?: string | null;
|
|
206
|
-
}
|
|
207
|
-
export declare namespace ParseConfigurations {
|
|
208
|
-
export { type ParseConfiguration as ParseConfiguration, type ParseConfigurationCreate as ParseConfigurationCreate, type ParseConfigurationQueryResponse as ParseConfigurationQueryResponse, type ParseConfigurationsPaginatedCursor as ParseConfigurationsPaginatedCursor, type ParseConfigurationCreateParams as ParseConfigurationCreateParams, type ParseConfigurationUpdateParams as ParseConfigurationUpdateParams, type ParseConfigurationListParams as ParseConfigurationListParams, type ParseConfigurationDeleteParams as ParseConfigurationDeleteParams, type ParseConfigurationGetParams as ParseConfigurationGetParams, };
|
|
209
|
-
}
|
|
210
|
-
//# sourceMappingURL=parse-configurations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parse-configurations.d.ts","sourceRoot":"","sources":["../../src/resources/beta/parse-configurations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,qBAAqB,EAAE;OAE5D,EAAE,cAAc,EAAE;AAGzB,qBAAa,mBAAoB,SAAQ,WAAW;IAClD;;;;;;;OAOG;IACH,MAAM,CAAC,MAAM,EAAE,8BAA8B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IASxG;;;;;;;OAOG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,8BAA8B,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IASjC;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAE,4BAA4B,GAAG,IAAI,GAAG,SAAc,EAC3D,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,kCAAkC,EAAE,kBAAkB,CAAC;IAOtE;;;;;OAKG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,8BAA8B,GAAG,IAAI,GAAG,SAAc,EAC9D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AAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,2BAA2B;IAC1C,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.ParseConfigurations = void 0;
|
|
5
|
-
const resource_1 = require("../../core/resource.js");
|
|
6
|
-
const pagination_1 = require("../../core/pagination.js");
|
|
7
|
-
const headers_1 = require("../../internal/headers.js");
|
|
8
|
-
const path_1 = require("../../internal/utils/path.js");
|
|
9
|
-
class ParseConfigurations extends resource_1.APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Create a new parse configuration.
|
|
12
|
-
*
|
|
13
|
-
* Args: config_create: Parse configuration creation data project: Validated
|
|
14
|
-
* project from dependency user: Current user
|
|
15
|
-
*
|
|
16
|
-
* Returns: The created parse configuration
|
|
17
|
-
*/
|
|
18
|
-
create(params, options) {
|
|
19
|
-
const { organization_id, project_id, ...body } = params;
|
|
20
|
-
return this._client.post('/api/v1/beta/parse-configurations', {
|
|
21
|
-
query: { organization_id, project_id },
|
|
22
|
-
body,
|
|
23
|
-
...options,
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Update a parse configuration.
|
|
28
|
-
*
|
|
29
|
-
* Args: config_id: The ID of the parse configuration to update config_update:
|
|
30
|
-
* Update data project: Validated project from dependency user: Current user
|
|
31
|
-
*
|
|
32
|
-
* Returns: The updated parse configuration
|
|
33
|
-
*/
|
|
34
|
-
update(configID, params, options) {
|
|
35
|
-
const { organization_id, project_id, ...body } = params;
|
|
36
|
-
return this._client.put((0, path_1.path) `/api/v1/beta/parse-configurations/${configID}`, {
|
|
37
|
-
query: { organization_id, project_id },
|
|
38
|
-
body,
|
|
39
|
-
...options,
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* List parse configurations for the current project.
|
|
44
|
-
*
|
|
45
|
-
* Args: project: Validated project from dependency user: Current user page_size:
|
|
46
|
-
* Number of items per page page_token: Token for pagination name: Filter by
|
|
47
|
-
* configuration name creator: Filter by creator version: Filter by version
|
|
48
|
-
*
|
|
49
|
-
* Returns: Paginated response with parse configurations
|
|
50
|
-
*/
|
|
51
|
-
list(query = {}, options) {
|
|
52
|
-
return this._client.getAPIList('/api/v1/beta/parse-configurations', (pagination_1.PaginatedCursor), {
|
|
53
|
-
query,
|
|
54
|
-
...options,
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Delete a parse configuration.
|
|
59
|
-
*
|
|
60
|
-
* Args: config_id: The ID of the parse configuration to delete project: Validated
|
|
61
|
-
* project from dependency user: Current user
|
|
62
|
-
*/
|
|
63
|
-
delete(configID, params = {}, options) {
|
|
64
|
-
const { organization_id, project_id } = params ?? {};
|
|
65
|
-
return this._client.delete((0, path_1.path) `/api/v1/beta/parse-configurations/${configID}`, {
|
|
66
|
-
query: { organization_id, project_id },
|
|
67
|
-
...options,
|
|
68
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Get a parse configuration by ID.
|
|
73
|
-
*
|
|
74
|
-
* Args: config_id: The ID of the parse configuration project: Validated project
|
|
75
|
-
* from dependency user: Current user
|
|
76
|
-
*
|
|
77
|
-
* Returns: The parse configuration
|
|
78
|
-
*/
|
|
79
|
-
get(configID, query = {}, options) {
|
|
80
|
-
return this._client.get((0, path_1.path) `/api/v1/beta/parse-configurations/${configID}`, { query, ...options });
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
exports.ParseConfigurations = ParseConfigurations;
|
|
84
|
-
//# sourceMappingURL=parse-configurations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parse-configurations.js","sourceRoot":"","sources":["../../src/resources/beta/parse-configurations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,yDAAiG;AACjG,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,mBAAoB,SAAQ,sBAAW;IAClD;;;;;;;OAOG;IACH,MAAM,CAAC,MAAsC,EAAE,OAAwB;QACrE,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE;YAC5D,KAAK,EAAE,EAAE,eAAe,EAAE,UAAU,EAAE;YACtC,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,QAAgB,EAChB,MAAsC,EACtC,OAAwB;QAExB,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qCAAqC,QAAQ,EAAE,EAAE;YAC3E,KAAK,EAAE,EAAE,eAAe,EAAE,UAAU,EAAE;YACtC,IAAI;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