@llamaindex/llama-cloud 2.8.0 → 2.9.1
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 +51 -0
- package/client.d.mts +11 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +11 -8
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/batches.d.mts +24 -25
- package/resources/batches.d.mts.map +1 -1
- package/resources/batches.d.ts +24 -25
- package/resources/batches.d.ts.map +1 -1
- package/resources/batches.js +1 -2
- package/resources/batches.js.map +1 -1
- package/resources/batches.mjs +1 -2
- package/resources/batches.mjs.map +1 -1
- package/resources/beta/agent-data.d.mts +94 -94
- package/resources/beta/agent-data.d.mts.map +1 -1
- package/resources/beta/agent-data.d.ts +94 -94
- package/resources/beta/agent-data.d.ts.map +1 -1
- package/resources/beta/agent-data.js +41 -41
- package/resources/beta/agent-data.js.map +1 -1
- package/resources/beta/agent-data.mjs +41 -41
- package/resources/beta/agent-data.mjs.map +1 -1
- package/resources/beta/batch/batch.d.mts +29 -29
- package/resources/beta/batch/batch.d.mts.map +1 -1
- package/resources/beta/batch/batch.d.ts +29 -29
- package/resources/beta/batch/batch.d.ts.map +1 -1
- package/resources/beta/batch/batch.js +16 -16
- package/resources/beta/batch/batch.js.map +1 -1
- package/resources/beta/batch/batch.mjs +16 -16
- package/resources/beta/batch/batch.mjs.map +1 -1
- package/resources/beta/batch/index.d.mts +1 -1
- package/resources/beta/batch/index.d.mts.map +1 -1
- package/resources/beta/batch/index.d.ts +1 -1
- package/resources/beta/batch/index.d.ts.map +1 -1
- package/resources/beta/batch/job-items.d.mts +7 -7
- package/resources/beta/batch/job-items.d.mts.map +1 -1
- package/resources/beta/batch/job-items.d.ts +7 -7
- package/resources/beta/batch/job-items.d.ts.map +1 -1
- package/resources/beta/beta.d.mts +6 -6
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +6 -6
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/chat.d.mts +39 -39
- package/resources/beta/chat.d.mts.map +1 -1
- package/resources/beta/chat.d.ts +39 -39
- package/resources/beta/chat.d.ts.map +1 -1
- package/resources/beta/chat.js +14 -14
- package/resources/beta/chat.js.map +1 -1
- package/resources/beta/chat.mjs +14 -14
- package/resources/beta/chat.mjs.map +1 -1
- package/resources/beta/directories/directories.d.mts +48 -35
- package/resources/beta/directories/directories.d.mts.map +1 -1
- package/resources/beta/directories/directories.d.ts +48 -35
- package/resources/beta/directories/directories.d.ts.map +1 -1
- package/resources/beta/directories/directories.js +30 -30
- package/resources/beta/directories/directories.js.map +1 -1
- package/resources/beta/directories/directories.mjs +30 -30
- package/resources/beta/directories/directories.mjs.map +1 -1
- package/resources/beta/directories/files.d.mts +54 -54
- package/resources/beta/directories/files.d.mts.map +1 -1
- package/resources/beta/directories/files.d.ts +54 -54
- package/resources/beta/directories/files.d.ts.map +1 -1
- package/resources/beta/directories/files.js +32 -32
- package/resources/beta/directories/files.js.map +1 -1
- package/resources/beta/directories/files.mjs +32 -32
- package/resources/beta/directories/files.mjs.map +1 -1
- package/resources/beta/directories/index.d.mts +2 -2
- package/resources/beta/directories/index.d.mts.map +1 -1
- package/resources/beta/directories/index.d.ts +2 -2
- package/resources/beta/directories/index.d.ts.map +1 -1
- package/resources/beta/index.d.mts +6 -6
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +6 -6
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/indexes.d.mts +32 -32
- package/resources/beta/indexes.d.mts.map +1 -1
- package/resources/beta/indexes.d.ts +32 -32
- package/resources/beta/indexes.d.ts.map +1 -1
- package/resources/beta/indexes.js +28 -28
- package/resources/beta/indexes.js.map +1 -1
- package/resources/beta/indexes.mjs +28 -28
- package/resources/beta/indexes.mjs.map +1 -1
- package/resources/beta/retrieval.d.mts +4 -4
- package/resources/beta/retrieval.d.mts.map +1 -1
- package/resources/beta/retrieval.d.ts +4 -4
- package/resources/beta/retrieval.d.ts.map +1 -1
- package/resources/beta/sheets.d.mts +134 -60
- package/resources/beta/sheets.d.mts.map +1 -1
- package/resources/beta/sheets.d.ts +134 -60
- package/resources/beta/sheets.d.ts.map +1 -1
- package/resources/beta/sheets.js +25 -52
- package/resources/beta/sheets.js.map +1 -1
- package/resources/beta/sheets.mjs +25 -52
- package/resources/beta/sheets.mjs.map +1 -1
- package/resources/beta/split.d.mts +2 -2
- package/resources/beta/split.d.mts.map +1 -1
- package/resources/beta/split.d.ts +2 -2
- package/resources/beta/split.d.ts.map +1 -1
- package/resources/classifier/jobs.d.mts +8 -2
- package/resources/classifier/jobs.d.mts.map +1 -1
- package/resources/classifier/jobs.d.ts +8 -2
- package/resources/classifier/jobs.d.ts.map +1 -1
- package/resources/classify.d.mts +71 -9
- package/resources/classify.d.mts.map +1 -1
- package/resources/classify.d.ts +71 -9
- package/resources/classify.d.ts.map +1 -1
- package/resources/configurations.d.mts +101 -46
- package/resources/configurations.d.mts.map +1 -1
- package/resources/configurations.d.ts +101 -46
- package/resources/configurations.d.ts.map +1 -1
- package/resources/configurations.js +9 -9
- package/resources/configurations.js.map +1 -1
- package/resources/configurations.mjs +9 -9
- package/resources/configurations.mjs.map +1 -1
- package/resources/data-sinks.d.mts +16 -16
- package/resources/data-sinks.d.mts.map +1 -1
- package/resources/data-sinks.d.ts +16 -16
- package/resources/data-sinks.d.ts.map +1 -1
- package/resources/data-sinks.js +12 -12
- package/resources/data-sinks.js.map +1 -1
- package/resources/data-sinks.mjs +12 -12
- package/resources/data-sinks.mjs.map +1 -1
- package/resources/data-sources.d.mts +17 -17
- package/resources/data-sources.d.mts.map +1 -1
- package/resources/data-sources.d.ts +17 -17
- package/resources/data-sources.d.ts.map +1 -1
- package/resources/data-sources.js +13 -13
- package/resources/data-sources.js.map +1 -1
- package/resources/data-sources.mjs +13 -13
- package/resources/data-sources.mjs.map +1 -1
- package/resources/extract.d.mts +52 -50
- package/resources/extract.d.mts.map +1 -1
- package/resources/extract.d.ts +52 -50
- package/resources/extract.d.ts.map +1 -1
- package/resources/extract.js +33 -33
- package/resources/extract.js.map +1 -1
- package/resources/extract.mjs +33 -33
- package/resources/extract.mjs.map +1 -1
- package/resources/files.d.mts +41 -41
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +41 -41
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +13 -13
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +13 -13
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +9 -8
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/parsing.d.mts +108 -50
- package/resources/parsing.d.mts.map +1 -1
- package/resources/parsing.d.ts +108 -50
- package/resources/parsing.d.ts.map +1 -1
- package/resources/parsing.js +12 -12
- package/resources/parsing.js.map +1 -1
- package/resources/parsing.mjs +12 -12
- package/resources/parsing.mjs.map +1 -1
- package/resources/pipelines/data-sources.d.mts +40 -30
- package/resources/pipelines/data-sources.d.mts.map +1 -1
- package/resources/pipelines/data-sources.d.ts +40 -30
- package/resources/pipelines/data-sources.d.ts.map +1 -1
- package/resources/pipelines/data-sources.js +23 -13
- package/resources/pipelines/data-sources.js.map +1 -1
- package/resources/pipelines/data-sources.mjs +23 -13
- package/resources/pipelines/data-sources.mjs.map +1 -1
- package/resources/pipelines/documents.d.mts +28 -12
- package/resources/pipelines/documents.d.mts.map +1 -1
- package/resources/pipelines/documents.d.ts +28 -12
- package/resources/pipelines/documents.d.ts.map +1 -1
- package/resources/pipelines/documents.js +30 -14
- package/resources/pipelines/documents.js.map +1 -1
- package/resources/pipelines/documents.mjs +30 -14
- package/resources/pipelines/documents.mjs.map +1 -1
- package/resources/pipelines/files.d.mts +34 -24
- package/resources/pipelines/files.d.mts.map +1 -1
- package/resources/pipelines/files.d.ts +34 -24
- package/resources/pipelines/files.d.ts.map +1 -1
- package/resources/pipelines/files.js +27 -17
- package/resources/pipelines/files.js.map +1 -1
- package/resources/pipelines/files.mjs +27 -17
- package/resources/pipelines/files.mjs.map +1 -1
- package/resources/pipelines/images.d.mts +17 -17
- package/resources/pipelines/images.d.mts.map +1 -1
- package/resources/pipelines/images.d.ts +17 -17
- package/resources/pipelines/images.d.ts.map +1 -1
- package/resources/pipelines/images.js +13 -13
- package/resources/pipelines/images.js.map +1 -1
- package/resources/pipelines/images.mjs +13 -13
- package/resources/pipelines/images.mjs.map +1 -1
- package/resources/pipelines/index.d.mts +5 -5
- package/resources/pipelines/index.d.mts.map +1 -1
- package/resources/pipelines/index.d.ts +5 -5
- package/resources/pipelines/index.d.ts.map +1 -1
- package/resources/pipelines/metadata.d.mts +4 -0
- package/resources/pipelines/metadata.d.mts.map +1 -1
- package/resources/pipelines/metadata.d.ts +4 -0
- package/resources/pipelines/metadata.d.ts.map +1 -1
- package/resources/pipelines/metadata.js +4 -0
- package/resources/pipelines/metadata.js.map +1 -1
- package/resources/pipelines/metadata.mjs +4 -0
- package/resources/pipelines/metadata.mjs.map +1 -1
- package/resources/pipelines/pipelines.d.mts +142 -126
- package/resources/pipelines/pipelines.d.mts.map +1 -1
- package/resources/pipelines/pipelines.d.ts +142 -126
- package/resources/pipelines/pipelines.d.ts.map +1 -1
- package/resources/pipelines/pipelines.js +39 -23
- package/resources/pipelines/pipelines.js.map +1 -1
- package/resources/pipelines/pipelines.mjs +39 -23
- package/resources/pipelines/pipelines.mjs.map +1 -1
- package/resources/pipelines/sync.d.mts +4 -0
- package/resources/pipelines/sync.d.mts.map +1 -1
- package/resources/pipelines/sync.d.ts +4 -0
- package/resources/pipelines/sync.d.ts.map +1 -1
- package/resources/pipelines/sync.js +4 -0
- package/resources/pipelines/sync.js.map +1 -1
- package/resources/pipelines/sync.mjs +4 -0
- package/resources/pipelines/sync.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/retrievers.d.mts +39 -39
- package/resources/retrievers/retrievers.d.mts.map +1 -1
- package/resources/retrievers/retrievers.d.ts +39 -39
- package/resources/retrievers/retrievers.d.ts.map +1 -1
- package/resources/retrievers/retrievers.js +20 -20
- package/resources/retrievers/retrievers.js.map +1 -1
- package/resources/retrievers/retrievers.mjs +20 -20
- package/resources/retrievers/retrievers.mjs.map +1 -1
- package/resources/shared.d.mts +12 -4
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +12 -4
- package/resources/shared.d.ts.map +1 -1
- package/resources/sheets.d.mts +199 -0
- package/resources/sheets.d.mts.map +1 -0
- package/resources/sheets.d.ts +199 -0
- package/resources/sheets.d.ts.map +1 -0
- package/resources/sheets.js +101 -0
- package/resources/sheets.js.map +1 -0
- package/resources/sheets.mjs +97 -0
- package/resources/sheets.mjs.map +1 -0
- package/src/client.ts +33 -12
- package/src/resources/batches.ts +24 -25
- package/src/resources/beta/agent-data.ts +131 -131
- package/src/resources/beta/batch/batch.ts +61 -50
- package/src/resources/beta/batch/index.ts +1 -1
- package/src/resources/beta/batch/job-items.ts +28 -17
- package/src/resources/beta/beta.ts +12 -12
- package/src/resources/beta/chat.ts +57 -57
- package/src/resources/beta/directories/directories.ts +80 -66
- package/src/resources/beta/directories/files.ts +73 -73
- package/src/resources/beta/directories/index.ts +5 -5
- package/src/resources/beta/index.ts +12 -12
- package/src/resources/beta/indexes.ts +53 -53
- package/src/resources/beta/retrieval.ts +4 -4
- package/src/resources/beta/sheets.ts +217 -73
- package/src/resources/beta/split.ts +2 -2
- package/src/resources/classifier/jobs.ts +9 -2
- package/src/resources/classify.ts +135 -9
- package/src/resources/configurations.ts +126 -67
- package/src/resources/data-sinks.ts +26 -26
- package/src/resources/data-sources.ts +43 -43
- package/src/resources/extract.ts +118 -94
- package/src/resources/files.ts +61 -61
- package/src/resources/index.ts +21 -12
- package/src/resources/parsing.ts +266 -203
- package/src/resources/pipelines/data-sources.ts +59 -49
- package/src/resources/pipelines/documents.ts +42 -26
- package/src/resources/pipelines/files.ts +62 -52
- package/src/resources/pipelines/images.ts +36 -36
- package/src/resources/pipelines/index.ts +10 -10
- package/src/resources/pipelines/metadata.ts +4 -0
- package/src/resources/pipelines/pipelines.ts +230 -203
- package/src/resources/pipelines/sync.ts +4 -0
- package/src/resources/retrievers/index.ts +3 -3
- package/src/resources/retrievers/retrievers.ts +64 -64
- package/src/resources/shared.ts +13 -4
- package/src/resources/sheets.ts +314 -0
- 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
|
@@ -8,23 +8,21 @@ import { path } from '../../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class AgentData extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Get agent data by ID.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```ts
|
|
15
|
-
* const agentData = await client.beta.agentData.
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* });
|
|
15
|
+
* const agentData = await client.beta.agentData.get(
|
|
16
|
+
* 'item_id',
|
|
17
|
+
* );
|
|
19
18
|
* ```
|
|
20
19
|
*/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
});
|
|
20
|
+
get(
|
|
21
|
+
itemID: string,
|
|
22
|
+
query: AgentDataGetParams | null | undefined = {},
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): APIPromise<AgentData> {
|
|
25
|
+
return this._client.get(path`/api/v1/beta/agent-data/${itemID}`, { query, ...options });
|
|
28
26
|
}
|
|
29
27
|
|
|
30
28
|
/**
|
|
@@ -79,101 +77,103 @@ export class AgentData extends APIResource {
|
|
|
79
77
|
}
|
|
80
78
|
|
|
81
79
|
/**
|
|
82
|
-
*
|
|
80
|
+
* Create new agent data.
|
|
83
81
|
*
|
|
84
82
|
* @example
|
|
85
83
|
* ```ts
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
* )
|
|
90
|
-
* // ...
|
|
91
|
-
* }
|
|
84
|
+
* const agentData = await client.beta.agentData.create({
|
|
85
|
+
* data: { foo: 'bar' },
|
|
86
|
+
* deployment_name: 'deployment_name',
|
|
87
|
+
* });
|
|
92
88
|
* ```
|
|
93
89
|
*/
|
|
94
|
-
|
|
95
|
-
params: AgentDataAggregateParams,
|
|
96
|
-
options?: RequestOptions,
|
|
97
|
-
): PagePromise<AgentDataAggregateResponsesPaginatedCursorPost, AgentDataAggregateResponse> {
|
|
90
|
+
create(params: AgentDataCreateParams, options?: RequestOptions): APIPromise<AgentData> {
|
|
98
91
|
const { organization_id, project_id, ...body } = params;
|
|
99
|
-
return this._client.
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
);
|
|
92
|
+
return this._client.post('/api/v1/beta/agent-data', {
|
|
93
|
+
query: { organization_id, project_id },
|
|
94
|
+
body,
|
|
95
|
+
...options,
|
|
96
|
+
});
|
|
104
97
|
}
|
|
105
98
|
|
|
106
99
|
/**
|
|
107
|
-
*
|
|
100
|
+
* Search agent data with filtering, sorting, and pagination.
|
|
108
101
|
*
|
|
109
102
|
* @example
|
|
110
103
|
* ```ts
|
|
111
|
-
*
|
|
104
|
+
* // Automatically fetches more pages as needed.
|
|
105
|
+
* for await (const agentData of client.beta.agentData.search({
|
|
112
106
|
* deployment_name: 'deployment_name',
|
|
113
|
-
* })
|
|
107
|
+
* })) {
|
|
108
|
+
* // ...
|
|
109
|
+
* }
|
|
114
110
|
* ```
|
|
115
111
|
*/
|
|
116
|
-
|
|
117
|
-
params:
|
|
112
|
+
search(
|
|
113
|
+
params: AgentDataSearchParams,
|
|
118
114
|
options?: RequestOptions,
|
|
119
|
-
):
|
|
115
|
+
): PagePromise<AgentDataPaginatedCursorPost, AgentData> {
|
|
120
116
|
const { organization_id, project_id, ...body } = params;
|
|
121
|
-
return this._client.
|
|
117
|
+
return this._client.getAPIList('/api/v1/beta/agent-data/:search', PaginatedCursorPost<AgentData>, {
|
|
122
118
|
query: { organization_id, project_id },
|
|
123
119
|
body,
|
|
120
|
+
method: 'post',
|
|
124
121
|
...options,
|
|
125
122
|
});
|
|
126
123
|
}
|
|
127
124
|
|
|
128
125
|
/**
|
|
129
|
-
*
|
|
126
|
+
* Aggregate agent data with grouping and optional counting/first item retrieval.
|
|
130
127
|
*
|
|
131
128
|
* @example
|
|
132
129
|
* ```ts
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
130
|
+
* // Automatically fetches more pages as needed.
|
|
131
|
+
* for await (const agentDataAggregateResponse of client.beta.agentData.aggregate(
|
|
132
|
+
* { deployment_name: 'deployment_name' },
|
|
133
|
+
* )) {
|
|
134
|
+
* // ...
|
|
135
|
+
* }
|
|
136
136
|
* ```
|
|
137
137
|
*/
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
query: AgentDataGetParams | null | undefined = {},
|
|
138
|
+
aggregate(
|
|
139
|
+
params: AgentDataAggregateParams,
|
|
141
140
|
options?: RequestOptions,
|
|
142
|
-
):
|
|
143
|
-
|
|
141
|
+
): PagePromise<AgentDataAggregateResponsesPaginatedCursorPost, AgentDataAggregateResponse> {
|
|
142
|
+
const { organization_id, project_id, ...body } = params;
|
|
143
|
+
return this._client.getAPIList(
|
|
144
|
+
'/api/v1/beta/agent-data/:aggregate',
|
|
145
|
+
PaginatedCursorPost<AgentDataAggregateResponse>,
|
|
146
|
+
{ query: { organization_id, project_id }, body, method: 'post', ...options },
|
|
147
|
+
);
|
|
144
148
|
}
|
|
145
149
|
|
|
146
150
|
/**
|
|
147
|
-
*
|
|
151
|
+
* Bulk delete agent data by query (deployment_name, collection, optional filters).
|
|
148
152
|
*
|
|
149
153
|
* @example
|
|
150
154
|
* ```ts
|
|
151
|
-
*
|
|
152
|
-
* for await (const agentData of client.beta.agentData.search({
|
|
155
|
+
* const response = await client.beta.agentData.deleteByQuery({
|
|
153
156
|
* deployment_name: 'deployment_name',
|
|
154
|
-
* })
|
|
155
|
-
* // ...
|
|
156
|
-
* }
|
|
157
|
+
* });
|
|
157
158
|
* ```
|
|
158
159
|
*/
|
|
159
|
-
|
|
160
|
-
params:
|
|
160
|
+
deleteByQuery(
|
|
161
|
+
params: AgentDataDeleteByQueryParams,
|
|
161
162
|
options?: RequestOptions,
|
|
162
|
-
):
|
|
163
|
+
): APIPromise<AgentDataDeleteByQueryResponse> {
|
|
163
164
|
const { organization_id, project_id, ...body } = params;
|
|
164
|
-
return this._client.
|
|
165
|
+
return this._client.post('/api/v1/beta/agent-data/:delete', {
|
|
165
166
|
query: { organization_id, project_id },
|
|
166
167
|
body,
|
|
167
|
-
method: 'post',
|
|
168
168
|
...options,
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
export type AgentDataAggregateResponsesPaginatedCursorPost = PaginatedCursorPost<AgentDataAggregateResponse>;
|
|
174
|
-
|
|
175
173
|
export type AgentDataPaginatedCursorPost = PaginatedCursorPost<AgentData>;
|
|
176
174
|
|
|
175
|
+
export type AgentDataAggregateResponsesPaginatedCursorPost = PaginatedCursorPost<AgentDataAggregateResponse>;
|
|
176
|
+
|
|
177
177
|
/**
|
|
178
178
|
* API Result for a single agent data item
|
|
179
179
|
*/
|
|
@@ -213,16 +213,17 @@ export interface AgentDataDeleteByQueryResponse {
|
|
|
213
213
|
deleted_count: number;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
-
export interface
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
216
|
+
export interface AgentDataGetParams {
|
|
217
|
+
organization_id?: string | null;
|
|
218
|
+
|
|
219
|
+
project_id?: string | null;
|
|
220
|
+
}
|
|
221
221
|
|
|
222
|
+
export interface AgentDataUpdateParams {
|
|
222
223
|
/**
|
|
223
224
|
* Body param
|
|
224
225
|
*/
|
|
225
|
-
|
|
226
|
+
data: { [key: string]: unknown };
|
|
226
227
|
|
|
227
228
|
/**
|
|
228
229
|
* Query param
|
|
@@ -233,18 +234,24 @@ export interface AgentDataCreateParams {
|
|
|
233
234
|
* Query param
|
|
234
235
|
*/
|
|
235
236
|
project_id?: string | null;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export interface AgentDataDeleteParams {
|
|
240
|
+
organization_id?: string | null;
|
|
241
|
+
|
|
242
|
+
project_id?: string | null;
|
|
243
|
+
}
|
|
236
244
|
|
|
245
|
+
export interface AgentDataCreateParams {
|
|
237
246
|
/**
|
|
238
247
|
* Body param
|
|
239
248
|
*/
|
|
240
|
-
|
|
241
|
-
}
|
|
249
|
+
data: { [key: string]: unknown };
|
|
242
250
|
|
|
243
|
-
export interface AgentDataUpdateParams {
|
|
244
251
|
/**
|
|
245
252
|
* Body param
|
|
246
253
|
*/
|
|
247
|
-
|
|
254
|
+
deployment_name: string;
|
|
248
255
|
|
|
249
256
|
/**
|
|
250
257
|
* Query param
|
|
@@ -255,17 +262,16 @@ export interface AgentDataUpdateParams {
|
|
|
255
262
|
* Query param
|
|
256
263
|
*/
|
|
257
264
|
project_id?: string | null;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
export interface AgentDataDeleteParams {
|
|
261
|
-
organization_id?: string | null;
|
|
262
265
|
|
|
263
|
-
|
|
266
|
+
/**
|
|
267
|
+
* Body param
|
|
268
|
+
*/
|
|
269
|
+
collection?: string;
|
|
264
270
|
}
|
|
265
271
|
|
|
266
|
-
export interface
|
|
272
|
+
export interface AgentDataSearchParams extends PaginatedCursorPostParams {
|
|
267
273
|
/**
|
|
268
|
-
* Body param: The agent deployment's name to
|
|
274
|
+
* Body param: The agent deployment's name to search within
|
|
269
275
|
*/
|
|
270
276
|
deployment_name: string;
|
|
271
277
|
|
|
@@ -280,32 +286,20 @@ export interface AgentDataAggregateParams extends PaginatedCursorPostParams {
|
|
|
280
286
|
project_id?: string | null;
|
|
281
287
|
|
|
282
288
|
/**
|
|
283
|
-
* Body param: The logical agent data collection to
|
|
289
|
+
* Body param: The logical agent data collection to search within
|
|
284
290
|
*/
|
|
285
291
|
collection?: string;
|
|
286
292
|
|
|
287
|
-
/**
|
|
288
|
-
* Body param: Whether to count the number of items in each group
|
|
289
|
-
*/
|
|
290
|
-
count?: boolean | null;
|
|
291
|
-
|
|
292
293
|
/**
|
|
293
294
|
* Body param: A filter object or expression that filters resources listed in the
|
|
294
295
|
* response.
|
|
295
296
|
*/
|
|
296
|
-
filter?: { [key: string]:
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* Body param: Whether to return the first item in each group (Sorted by
|
|
300
|
-
* created_at)
|
|
301
|
-
*/
|
|
302
|
-
first?: boolean | null;
|
|
297
|
+
filter?: { [key: string]: AgentDataSearchParams.Filter } | null;
|
|
303
298
|
|
|
304
299
|
/**
|
|
305
|
-
* Body param:
|
|
306
|
-
* e.g. if left out, can be used for simple count operations
|
|
300
|
+
* Body param: Whether to include the total number of items in the response
|
|
307
301
|
*/
|
|
308
|
-
|
|
302
|
+
include_total?: boolean;
|
|
309
303
|
|
|
310
304
|
/**
|
|
311
305
|
* Body param: The offset to start from. If not provided, the first page is
|
|
@@ -320,7 +314,7 @@ export interface AgentDataAggregateParams extends PaginatedCursorPostParams {
|
|
|
320
314
|
order_by?: string | null;
|
|
321
315
|
}
|
|
322
316
|
|
|
323
|
-
export namespace
|
|
317
|
+
export namespace AgentDataSearchParams {
|
|
324
318
|
/**
|
|
325
319
|
* API request model for a filter comparison operation.
|
|
326
320
|
*/
|
|
@@ -343,9 +337,9 @@ export namespace AgentDataAggregateParams {
|
|
|
343
337
|
}
|
|
344
338
|
}
|
|
345
339
|
|
|
346
|
-
export interface
|
|
340
|
+
export interface AgentDataAggregateParams extends PaginatedCursorPostParams {
|
|
347
341
|
/**
|
|
348
|
-
* Body param: The agent deployment's name to
|
|
342
|
+
* Body param: The agent deployment's name to aggregate data for
|
|
349
343
|
*/
|
|
350
344
|
deployment_name: string;
|
|
351
345
|
|
|
@@ -360,17 +354,47 @@ export interface AgentDataDeleteByQueryParams {
|
|
|
360
354
|
project_id?: string | null;
|
|
361
355
|
|
|
362
356
|
/**
|
|
363
|
-
* Body param: The logical agent data collection to
|
|
357
|
+
* Body param: The logical agent data collection to aggregate data for
|
|
364
358
|
*/
|
|
365
359
|
collection?: string;
|
|
366
360
|
|
|
367
361
|
/**
|
|
368
|
-
* Body param:
|
|
362
|
+
* Body param: Whether to count the number of items in each group
|
|
369
363
|
*/
|
|
370
|
-
|
|
364
|
+
count?: boolean | null;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Body param: A filter object or expression that filters resources listed in the
|
|
368
|
+
* response.
|
|
369
|
+
*/
|
|
370
|
+
filter?: { [key: string]: AgentDataAggregateParams.Filter } | null;
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Body param: Whether to return the first item in each group (Sorted by
|
|
374
|
+
* created_at)
|
|
375
|
+
*/
|
|
376
|
+
first?: boolean | null;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Body param: The fields to group by. If empty, the entire dataset is grouped on.
|
|
380
|
+
* e.g. if left out, can be used for simple count operations
|
|
381
|
+
*/
|
|
382
|
+
group_by?: Array<string> | null;
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Body param: The offset to start from. If not provided, the first page is
|
|
386
|
+
* returned
|
|
387
|
+
*/
|
|
388
|
+
offset?: number | null;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Body param: A comma-separated list of fields to order by, sorted in ascending
|
|
392
|
+
* order. Use 'field_name desc' to specify descending order.
|
|
393
|
+
*/
|
|
394
|
+
order_by?: string | null;
|
|
371
395
|
}
|
|
372
396
|
|
|
373
|
-
export namespace
|
|
397
|
+
export namespace AgentDataAggregateParams {
|
|
374
398
|
/**
|
|
375
399
|
* API request model for a filter comparison operation.
|
|
376
400
|
*/
|
|
@@ -393,15 +417,9 @@ export namespace AgentDataDeleteByQueryParams {
|
|
|
393
417
|
}
|
|
394
418
|
}
|
|
395
419
|
|
|
396
|
-
export interface
|
|
397
|
-
organization_id?: string | null;
|
|
398
|
-
|
|
399
|
-
project_id?: string | null;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
export interface AgentDataSearchParams extends PaginatedCursorPostParams {
|
|
420
|
+
export interface AgentDataDeleteByQueryParams {
|
|
403
421
|
/**
|
|
404
|
-
* Body param: The agent deployment's name to
|
|
422
|
+
* Body param: The agent deployment's name to delete data for
|
|
405
423
|
*/
|
|
406
424
|
deployment_name: string;
|
|
407
425
|
|
|
@@ -416,35 +434,17 @@ export interface AgentDataSearchParams extends PaginatedCursorPostParams {
|
|
|
416
434
|
project_id?: string | null;
|
|
417
435
|
|
|
418
436
|
/**
|
|
419
|
-
* Body param: The logical agent data collection to
|
|
437
|
+
* Body param: The logical agent data collection to delete from
|
|
420
438
|
*/
|
|
421
439
|
collection?: string;
|
|
422
440
|
|
|
423
441
|
/**
|
|
424
|
-
* Body param:
|
|
425
|
-
* response.
|
|
426
|
-
*/
|
|
427
|
-
filter?: { [key: string]: AgentDataSearchParams.Filter } | null;
|
|
428
|
-
|
|
429
|
-
/**
|
|
430
|
-
* Body param: Whether to include the total number of items in the response
|
|
431
|
-
*/
|
|
432
|
-
include_total?: boolean;
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
* Body param: The offset to start from. If not provided, the first page is
|
|
436
|
-
* returned
|
|
437
|
-
*/
|
|
438
|
-
offset?: number | null;
|
|
439
|
-
|
|
440
|
-
/**
|
|
441
|
-
* Body param: A comma-separated list of fields to order by, sorted in ascending
|
|
442
|
-
* order. Use 'field_name desc' to specify descending order.
|
|
442
|
+
* Body param: Optional filters to select which items to delete
|
|
443
443
|
*/
|
|
444
|
-
|
|
444
|
+
filter?: { [key: string]: AgentDataDeleteByQueryParams.Filter } | null;
|
|
445
445
|
}
|
|
446
446
|
|
|
447
|
-
export namespace
|
|
447
|
+
export namespace AgentDataDeleteByQueryParams {
|
|
448
448
|
/**
|
|
449
449
|
* API request model for a filter comparison operation.
|
|
450
450
|
*/
|
|
@@ -473,14 +473,14 @@ export declare namespace AgentData {
|
|
|
473
473
|
type AgentDataDeleteResponse as AgentDataDeleteResponse,
|
|
474
474
|
type AgentDataAggregateResponse as AgentDataAggregateResponse,
|
|
475
475
|
type AgentDataDeleteByQueryResponse as AgentDataDeleteByQueryResponse,
|
|
476
|
-
type AgentDataAggregateResponsesPaginatedCursorPost as AgentDataAggregateResponsesPaginatedCursorPost,
|
|
477
476
|
type AgentDataPaginatedCursorPost as AgentDataPaginatedCursorPost,
|
|
478
|
-
type
|
|
477
|
+
type AgentDataAggregateResponsesPaginatedCursorPost as AgentDataAggregateResponsesPaginatedCursorPost,
|
|
478
|
+
type AgentDataGetParams as AgentDataGetParams,
|
|
479
479
|
type AgentDataUpdateParams as AgentDataUpdateParams,
|
|
480
480
|
type AgentDataDeleteParams as AgentDataDeleteParams,
|
|
481
|
+
type AgentDataCreateParams as AgentDataCreateParams,
|
|
482
|
+
type AgentDataSearchParams as AgentDataSearchParams,
|
|
481
483
|
type AgentDataAggregateParams as AgentDataAggregateParams,
|
|
482
484
|
type AgentDataDeleteByQueryParams as AgentDataDeleteByQueryParams,
|
|
483
|
-
type AgentDataGetParams as AgentDataGetParams,
|
|
484
|
-
type AgentDataSearchParams as AgentDataSearchParams,
|
|
485
485
|
};
|
|
486
486
|
}
|
|
@@ -75,6 +75,27 @@ export class Batch extends APIResource {
|
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
/**
|
|
79
|
+
* Get detailed status of a batch processing job.
|
|
80
|
+
*
|
|
81
|
+
* Returns current progress percentage, file counts (total, processed, failed,
|
|
82
|
+
* skipped), and timestamps.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```ts
|
|
86
|
+
* const response = await client.beta.batch.getStatus(
|
|
87
|
+
* 'job_id',
|
|
88
|
+
* );
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
getStatus(
|
|
92
|
+
jobID: string,
|
|
93
|
+
query: BatchGetStatusParams | null | undefined = {},
|
|
94
|
+
options?: RequestOptions,
|
|
95
|
+
): APIPromise<BatchGetStatusResponse> {
|
|
96
|
+
return this._client.get(path`/api/v1/beta/batch-processing/${jobID}`, { query, ...options });
|
|
97
|
+
}
|
|
98
|
+
|
|
78
99
|
/**
|
|
79
100
|
* Cancel a running batch processing job.
|
|
80
101
|
*
|
|
@@ -102,27 +123,6 @@ export class Batch extends APIResource {
|
|
|
102
123
|
]),
|
|
103
124
|
});
|
|
104
125
|
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Get detailed status of a batch processing job.
|
|
108
|
-
*
|
|
109
|
-
* Returns current progress percentage, file counts (total, processed, failed,
|
|
110
|
-
* skipped), and timestamps.
|
|
111
|
-
*
|
|
112
|
-
* @example
|
|
113
|
-
* ```ts
|
|
114
|
-
* const response = await client.beta.batch.getStatus(
|
|
115
|
-
* 'job_id',
|
|
116
|
-
* );
|
|
117
|
-
* ```
|
|
118
|
-
*/
|
|
119
|
-
getStatus(
|
|
120
|
-
jobID: string,
|
|
121
|
-
query: BatchGetStatusParams | null | undefined = {},
|
|
122
|
-
options?: RequestOptions,
|
|
123
|
-
): APIPromise<BatchGetStatusResponse> {
|
|
124
|
-
return this._client.get(path`/api/v1/beta/batch-processing/${jobID}`, { query, ...options });
|
|
125
|
-
}
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
export type BatchListResponsesPaginatedBatchItems = PaginatedBatchItems<BatchListResponse>;
|
|
@@ -139,7 +139,7 @@ export interface BatchCreateResponse {
|
|
|
139
139
|
/**
|
|
140
140
|
* Type of processing operation (parse or classify)
|
|
141
141
|
*/
|
|
142
|
-
job_type: '
|
|
142
|
+
job_type: 'classify' | 'extract' | 'parse';
|
|
143
143
|
|
|
144
144
|
/**
|
|
145
145
|
* Project this job belongs to
|
|
@@ -149,7 +149,7 @@ export interface BatchCreateResponse {
|
|
|
149
149
|
/**
|
|
150
150
|
* Current job status
|
|
151
151
|
*/
|
|
152
|
-
status: '
|
|
152
|
+
status: 'cancelled' | 'completed' | 'dispatched' | 'failed' | 'pending' | 'running';
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
155
|
* Total number of items in the job
|
|
@@ -226,7 +226,7 @@ export interface BatchListResponse {
|
|
|
226
226
|
/**
|
|
227
227
|
* Type of processing operation (parse or classify)
|
|
228
228
|
*/
|
|
229
|
-
job_type: '
|
|
229
|
+
job_type: 'classify' | 'extract' | 'parse';
|
|
230
230
|
|
|
231
231
|
/**
|
|
232
232
|
* Project this job belongs to
|
|
@@ -236,7 +236,7 @@ export interface BatchListResponse {
|
|
|
236
236
|
/**
|
|
237
237
|
* Current job status
|
|
238
238
|
*/
|
|
239
|
-
status: '
|
|
239
|
+
status: 'cancelled' | 'completed' | 'dispatched' | 'failed' | 'pending' | 'running';
|
|
240
240
|
|
|
241
241
|
/**
|
|
242
242
|
* Total number of items in the job
|
|
@@ -323,7 +323,7 @@ export interface BatchCancelResponse {
|
|
|
323
323
|
/**
|
|
324
324
|
* New status (should be 'cancelled')
|
|
325
325
|
*/
|
|
326
|
-
status: '
|
|
326
|
+
status: 'cancelled' | 'completed' | 'dispatched' | 'failed' | 'pending' | 'running';
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
/**
|
|
@@ -354,7 +354,7 @@ export namespace BatchGetStatusResponse {
|
|
|
354
354
|
/**
|
|
355
355
|
* Type of processing operation (parse or classify)
|
|
356
356
|
*/
|
|
357
|
-
job_type: '
|
|
357
|
+
job_type: 'classify' | 'extract' | 'parse';
|
|
358
358
|
|
|
359
359
|
/**
|
|
360
360
|
* Project this job belongs to
|
|
@@ -364,7 +364,7 @@ export namespace BatchGetStatusResponse {
|
|
|
364
364
|
/**
|
|
365
365
|
* Current job status
|
|
366
366
|
*/
|
|
367
|
-
status: '
|
|
367
|
+
status: 'cancelled' | 'completed' | 'dispatched' | 'failed' | 'pending' | 'running';
|
|
368
368
|
|
|
369
369
|
/**
|
|
370
370
|
* Total number of items in the job
|
|
@@ -650,7 +650,7 @@ export namespace BatchCreateParams {
|
|
|
650
650
|
|
|
651
651
|
ignore_document_elements_for_layout_detection?: boolean | null;
|
|
652
652
|
|
|
653
|
-
images_to_save?: Array<'
|
|
653
|
+
images_to_save?: Array<'embedded' | 'layout' | 'screenshot'> | null;
|
|
654
654
|
|
|
655
655
|
inline_images_in_markdown?: boolean | null;
|
|
656
656
|
|
|
@@ -764,7 +764,7 @@ export namespace BatchCreateParams {
|
|
|
764
764
|
* The priority for the request. This field may be ignored or overwritten depending
|
|
765
765
|
* on the organization tier.
|
|
766
766
|
*/
|
|
767
|
-
priority?: '
|
|
767
|
+
priority?: 'critical' | 'high' | 'low' | 'medium' | null;
|
|
768
768
|
|
|
769
769
|
project_id?: string | null;
|
|
770
770
|
|
|
@@ -856,22 +856,33 @@ export namespace BatchCreateParams {
|
|
|
856
856
|
* events are delivered.
|
|
857
857
|
*/
|
|
858
858
|
webhook_events?: Array<
|
|
859
|
-
| '
|
|
860
|
-
| '
|
|
859
|
+
| 'classify.cancelled'
|
|
860
|
+
| 'classify.error'
|
|
861
|
+
| 'classify.partial_success'
|
|
862
|
+
| 'classify.pending'
|
|
863
|
+
| 'classify.running'
|
|
864
|
+
| 'classify.success'
|
|
865
|
+
| 'extract.cancelled'
|
|
861
866
|
| 'extract.error'
|
|
862
867
|
| 'extract.partial_success'
|
|
863
|
-
| 'extract.
|
|
868
|
+
| 'extract.pending'
|
|
869
|
+
| 'extract.success'
|
|
870
|
+
| 'parse.cancelled'
|
|
871
|
+
| 'parse.error'
|
|
872
|
+
| 'parse.partial_success'
|
|
864
873
|
| 'parse.pending'
|
|
865
874
|
| 'parse.running'
|
|
866
875
|
| 'parse.success'
|
|
867
|
-
| '
|
|
868
|
-
| '
|
|
869
|
-
| '
|
|
870
|
-
| '
|
|
871
|
-
| '
|
|
872
|
-
| '
|
|
873
|
-
| '
|
|
874
|
-
| '
|
|
876
|
+
| 'sheets.cancelled'
|
|
877
|
+
| 'sheets.error'
|
|
878
|
+
| 'sheets.partial_success'
|
|
879
|
+
| 'sheets.pending'
|
|
880
|
+
| 'sheets.success'
|
|
881
|
+
| 'split.cancelled'
|
|
882
|
+
| 'split.error'
|
|
883
|
+
| 'split.pending'
|
|
884
|
+
| 'split.processing'
|
|
885
|
+
| 'split.success'
|
|
875
886
|
| 'unmapped_event'
|
|
876
887
|
> | null;
|
|
877
888
|
|
|
@@ -903,7 +914,7 @@ export interface BatchListParams extends PaginatedBatchItemsParams {
|
|
|
903
914
|
/**
|
|
904
915
|
* Filter by job type (PARSE, EXTRACT, CLASSIFY)
|
|
905
916
|
*/
|
|
906
|
-
job_type?: '
|
|
917
|
+
job_type?: 'classify' | 'extract' | 'parse' | null;
|
|
907
918
|
|
|
908
919
|
organization_id?: string | null;
|
|
909
920
|
|
|
@@ -912,7 +923,13 @@ export interface BatchListParams extends PaginatedBatchItemsParams {
|
|
|
912
923
|
/**
|
|
913
924
|
* Filter by job status (PENDING, RUNNING, COMPLETED, FAILED, CANCELLED)
|
|
914
925
|
*/
|
|
915
|
-
status?: '
|
|
926
|
+
status?: 'cancelled' | 'completed' | 'dispatched' | 'failed' | 'pending' | 'running' | null;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
export interface BatchGetStatusParams {
|
|
930
|
+
organization_id?: string | null;
|
|
931
|
+
|
|
932
|
+
project_id?: string | null;
|
|
916
933
|
}
|
|
917
934
|
|
|
918
935
|
export interface BatchCancelParams {
|
|
@@ -937,12 +954,6 @@ export interface BatchCancelParams {
|
|
|
937
954
|
'temporal-namespace'?: string;
|
|
938
955
|
}
|
|
939
956
|
|
|
940
|
-
export interface BatchGetStatusParams {
|
|
941
|
-
organization_id?: string | null;
|
|
942
|
-
|
|
943
|
-
project_id?: string | null;
|
|
944
|
-
}
|
|
945
|
-
|
|
946
957
|
Batch.JobItems = JobItems;
|
|
947
958
|
|
|
948
959
|
export declare namespace Batch {
|
|
@@ -954,8 +965,8 @@ export declare namespace Batch {
|
|
|
954
965
|
type BatchListResponsesPaginatedBatchItems as BatchListResponsesPaginatedBatchItems,
|
|
955
966
|
type BatchCreateParams as BatchCreateParams,
|
|
956
967
|
type BatchListParams as BatchListParams,
|
|
957
|
-
type BatchCancelParams as BatchCancelParams,
|
|
958
968
|
type BatchGetStatusParams as BatchGetStatusParams,
|
|
969
|
+
type BatchCancelParams as BatchCancelParams,
|
|
959
970
|
};
|
|
960
971
|
|
|
961
972
|
export {
|