@llamaindex/llama-cloud-mcp 1.4.0 → 1.5.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/code-tool.d.mts +4 -1
- package/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts +4 -1
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +14 -1
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +14 -1
- package/code-tool.mjs.map +1 -1
- package/http.d.mts.map +1 -1
- package/http.d.ts.map +1 -1
- package/http.js +5 -1
- package/http.js.map +1 -1
- package/http.mjs +5 -1
- package/http.mjs.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/methods.d.mts +10 -0
- package/methods.d.mts.map +1 -0
- package/methods.d.ts +10 -0
- package/methods.d.ts.map +1 -0
- package/methods.js +790 -0
- package/methods.js.map +1 -0
- package/methods.mjs +786 -0
- package/methods.mjs.map +1 -0
- package/options.d.mts +3 -0
- package/options.d.mts.map +1 -1
- package/options.d.ts +3 -0
- package/options.d.ts.map +1 -1
- package/options.js +17 -0
- package/options.js.map +1 -1
- package/options.mjs +17 -0
- package/options.mjs.map +1 -1
- package/package.json +12 -2
- package/server.d.mts.map +1 -1
- package/server.d.ts.map +1 -1
- package/server.js +11 -6
- package/server.js.map +1 -1
- package/server.mjs +11 -6
- package/server.mjs.map +1 -1
- package/src/code-tool.ts +20 -1
- package/src/http.ts +6 -0
- package/src/index.ts +1 -1
- package/src/methods.ts +810 -0
- package/src/options.ts +23 -0
- package/src/server.ts +11 -6
- package/src/stdio.ts +3 -2
- package/stdio.d.mts +2 -1
- package/stdio.d.mts.map +1 -1
- package/stdio.d.ts +2 -1
- package/stdio.d.ts.map +1 -1
- package/stdio.js +2 -2
- package/stdio.js.map +1 -1
- package/stdio.mjs +2 -2
- package/stdio.mjs.map +1 -1
package/methods.js
ADDED
|
@@ -0,0 +1,790 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sdkMethods = void 0;
|
|
4
|
+
exports.blockedMethodsForCodeTool = blockedMethodsForCodeTool;
|
|
5
|
+
exports.sdkMethods = [
|
|
6
|
+
{
|
|
7
|
+
clientCallName: 'client.files.create',
|
|
8
|
+
fullyQualifiedName: 'files.create',
|
|
9
|
+
httpMethod: 'post',
|
|
10
|
+
httpPath: '/api/v1/beta/files',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
clientCallName: 'client.files.list',
|
|
14
|
+
fullyQualifiedName: 'files.list',
|
|
15
|
+
httpMethod: 'get',
|
|
16
|
+
httpPath: '/api/v1/beta/files',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
clientCallName: 'client.files.delete',
|
|
20
|
+
fullyQualifiedName: 'files.delete',
|
|
21
|
+
httpMethod: 'delete',
|
|
22
|
+
httpPath: '/api/v1/beta/files/{file_id}',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
clientCallName: 'client.files.get',
|
|
26
|
+
fullyQualifiedName: 'files.get',
|
|
27
|
+
httpMethod: 'get',
|
|
28
|
+
httpPath: '/api/v1/beta/files/{file_id}/content',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
clientCallName: 'client.files.query',
|
|
32
|
+
fullyQualifiedName: 'files.query',
|
|
33
|
+
httpMethod: 'post',
|
|
34
|
+
httpPath: '/api/v1/beta/files/query',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
clientCallName: 'client.parsing.create',
|
|
38
|
+
fullyQualifiedName: 'parsing.create',
|
|
39
|
+
httpMethod: 'post',
|
|
40
|
+
httpPath: '/api/v2/parse',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
clientCallName: 'client.parsing.list',
|
|
44
|
+
fullyQualifiedName: 'parsing.list',
|
|
45
|
+
httpMethod: 'get',
|
|
46
|
+
httpPath: '/api/v2/parse',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
clientCallName: 'client.parsing.get',
|
|
50
|
+
fullyQualifiedName: 'parsing.get',
|
|
51
|
+
httpMethod: 'get',
|
|
52
|
+
httpPath: '/api/v2/parse/{job_id}',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
clientCallName: 'client.extraction.run',
|
|
56
|
+
fullyQualifiedName: 'extraction.run',
|
|
57
|
+
httpMethod: 'post',
|
|
58
|
+
httpPath: '/api/v1/extraction/run',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
clientCallName: 'client.extraction.jobs.create',
|
|
62
|
+
fullyQualifiedName: 'extraction.jobs.create',
|
|
63
|
+
httpMethod: 'post',
|
|
64
|
+
httpPath: '/api/v1/extraction/jobs',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
clientCallName: 'client.extraction.jobs.list',
|
|
68
|
+
fullyQualifiedName: 'extraction.jobs.list',
|
|
69
|
+
httpMethod: 'get',
|
|
70
|
+
httpPath: '/api/v1/extraction/jobs',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
clientCallName: 'client.extraction.jobs.file',
|
|
74
|
+
fullyQualifiedName: 'extraction.jobs.file',
|
|
75
|
+
httpMethod: 'post',
|
|
76
|
+
httpPath: '/api/v1/extraction/jobs/file',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
clientCallName: 'client.extraction.jobs.get',
|
|
80
|
+
fullyQualifiedName: 'extraction.jobs.get',
|
|
81
|
+
httpMethod: 'get',
|
|
82
|
+
httpPath: '/api/v1/extraction/jobs/{job_id}',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
clientCallName: 'client.extraction.jobs.getResult',
|
|
86
|
+
fullyQualifiedName: 'extraction.jobs.getResult',
|
|
87
|
+
httpMethod: 'get',
|
|
88
|
+
httpPath: '/api/v1/extraction/jobs/{job_id}/result',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
clientCallName: 'client.extraction.runs.list',
|
|
92
|
+
fullyQualifiedName: 'extraction.runs.list',
|
|
93
|
+
httpMethod: 'get',
|
|
94
|
+
httpPath: '/api/v1/extraction/runs',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
clientCallName: 'client.extraction.runs.delete',
|
|
98
|
+
fullyQualifiedName: 'extraction.runs.delete',
|
|
99
|
+
httpMethod: 'delete',
|
|
100
|
+
httpPath: '/api/v1/extraction/runs/{run_id}',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
clientCallName: 'client.extraction.runs.get',
|
|
104
|
+
fullyQualifiedName: 'extraction.runs.get',
|
|
105
|
+
httpMethod: 'get',
|
|
106
|
+
httpPath: '/api/v1/extraction/runs/{run_id}',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
clientCallName: 'client.extraction.runs.getByJob',
|
|
110
|
+
fullyQualifiedName: 'extraction.runs.getByJob',
|
|
111
|
+
httpMethod: 'get',
|
|
112
|
+
httpPath: '/api/v1/extraction/runs/by-job/{job_id}',
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
clientCallName: 'client.extraction.extractionAgents.create',
|
|
116
|
+
fullyQualifiedName: 'extraction.extractionAgents.create',
|
|
117
|
+
httpMethod: 'post',
|
|
118
|
+
httpPath: '/api/v1/extraction/extraction-agents',
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
clientCallName: 'client.extraction.extractionAgents.update',
|
|
122
|
+
fullyQualifiedName: 'extraction.extractionAgents.update',
|
|
123
|
+
httpMethod: 'put',
|
|
124
|
+
httpPath: '/api/v1/extraction/extraction-agents/{extraction_agent_id}',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
clientCallName: 'client.extraction.extractionAgents.list',
|
|
128
|
+
fullyQualifiedName: 'extraction.extractionAgents.list',
|
|
129
|
+
httpMethod: 'get',
|
|
130
|
+
httpPath: '/api/v1/extraction/extraction-agents',
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
clientCallName: 'client.extraction.extractionAgents.delete',
|
|
134
|
+
fullyQualifiedName: 'extraction.extractionAgents.delete',
|
|
135
|
+
httpMethod: 'delete',
|
|
136
|
+
httpPath: '/api/v1/extraction/extraction-agents/{extraction_agent_id}',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
clientCallName: 'client.extraction.extractionAgents.get',
|
|
140
|
+
fullyQualifiedName: 'extraction.extractionAgents.get',
|
|
141
|
+
httpMethod: 'get',
|
|
142
|
+
httpPath: '/api/v1/extraction/extraction-agents/{extraction_agent_id}',
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
clientCallName: 'client.extraction.extractionAgents.schema.generateSchema',
|
|
146
|
+
fullyQualifiedName: 'extraction.extractionAgents.schema.generateSchema',
|
|
147
|
+
httpMethod: 'post',
|
|
148
|
+
httpPath: '/api/v1/extraction/extraction-agents/schema/generate',
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
clientCallName: 'client.extraction.extractionAgents.schema.validateSchema',
|
|
152
|
+
fullyQualifiedName: 'extraction.extractionAgents.schema.validateSchema',
|
|
153
|
+
httpMethod: 'post',
|
|
154
|
+
httpPath: '/api/v1/extraction/extraction-agents/schema/validation',
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
clientCallName: 'client.classifier.jobs.create',
|
|
158
|
+
fullyQualifiedName: 'classifier.jobs.create',
|
|
159
|
+
httpMethod: 'post',
|
|
160
|
+
httpPath: '/api/v1/classifier/jobs',
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
clientCallName: 'client.classifier.jobs.list',
|
|
164
|
+
fullyQualifiedName: 'classifier.jobs.list',
|
|
165
|
+
httpMethod: 'get',
|
|
166
|
+
httpPath: '/api/v1/classifier/jobs',
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
clientCallName: 'client.classifier.jobs.get',
|
|
170
|
+
fullyQualifiedName: 'classifier.jobs.get',
|
|
171
|
+
httpMethod: 'get',
|
|
172
|
+
httpPath: '/api/v1/classifier/jobs/{classify_job_id}',
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
clientCallName: 'client.classifier.jobs.getResults',
|
|
176
|
+
fullyQualifiedName: 'classifier.jobs.getResults',
|
|
177
|
+
httpMethod: 'get',
|
|
178
|
+
httpPath: '/api/v1/classifier/jobs/{classify_job_id}/results',
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
clientCallName: 'client.projects.list',
|
|
182
|
+
fullyQualifiedName: 'projects.list',
|
|
183
|
+
httpMethod: 'get',
|
|
184
|
+
httpPath: '/api/v1/projects',
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
clientCallName: 'client.projects.get',
|
|
188
|
+
fullyQualifiedName: 'projects.get',
|
|
189
|
+
httpMethod: 'get',
|
|
190
|
+
httpPath: '/api/v1/projects/{project_id}',
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
clientCallName: 'client.dataSinks.create',
|
|
194
|
+
fullyQualifiedName: 'dataSinks.create',
|
|
195
|
+
httpMethod: 'post',
|
|
196
|
+
httpPath: '/api/v1/data-sinks',
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
clientCallName: 'client.dataSinks.update',
|
|
200
|
+
fullyQualifiedName: 'dataSinks.update',
|
|
201
|
+
httpMethod: 'put',
|
|
202
|
+
httpPath: '/api/v1/data-sinks/{data_sink_id}',
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
clientCallName: 'client.dataSinks.list',
|
|
206
|
+
fullyQualifiedName: 'dataSinks.list',
|
|
207
|
+
httpMethod: 'get',
|
|
208
|
+
httpPath: '/api/v1/data-sinks',
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
clientCallName: 'client.dataSinks.delete',
|
|
212
|
+
fullyQualifiedName: 'dataSinks.delete',
|
|
213
|
+
httpMethod: 'delete',
|
|
214
|
+
httpPath: '/api/v1/data-sinks/{data_sink_id}',
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
clientCallName: 'client.dataSinks.get',
|
|
218
|
+
fullyQualifiedName: 'dataSinks.get',
|
|
219
|
+
httpMethod: 'get',
|
|
220
|
+
httpPath: '/api/v1/data-sinks/{data_sink_id}',
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
clientCallName: 'client.dataSources.create',
|
|
224
|
+
fullyQualifiedName: 'dataSources.create',
|
|
225
|
+
httpMethod: 'post',
|
|
226
|
+
httpPath: '/api/v1/data-sources',
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
clientCallName: 'client.dataSources.update',
|
|
230
|
+
fullyQualifiedName: 'dataSources.update',
|
|
231
|
+
httpMethod: 'put',
|
|
232
|
+
httpPath: '/api/v1/data-sources/{data_source_id}',
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
clientCallName: 'client.dataSources.list',
|
|
236
|
+
fullyQualifiedName: 'dataSources.list',
|
|
237
|
+
httpMethod: 'get',
|
|
238
|
+
httpPath: '/api/v1/data-sources',
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
clientCallName: 'client.dataSources.delete',
|
|
242
|
+
fullyQualifiedName: 'dataSources.delete',
|
|
243
|
+
httpMethod: 'delete',
|
|
244
|
+
httpPath: '/api/v1/data-sources/{data_source_id}',
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
clientCallName: 'client.dataSources.get',
|
|
248
|
+
fullyQualifiedName: 'dataSources.get',
|
|
249
|
+
httpMethod: 'get',
|
|
250
|
+
httpPath: '/api/v1/data-sources/{data_source_id}',
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
clientCallName: 'client.pipelines.create',
|
|
254
|
+
fullyQualifiedName: 'pipelines.create',
|
|
255
|
+
httpMethod: 'post',
|
|
256
|
+
httpPath: '/api/v1/pipelines',
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
clientCallName: 'client.pipelines.retrieve',
|
|
260
|
+
fullyQualifiedName: 'pipelines.retrieve',
|
|
261
|
+
httpMethod: 'post',
|
|
262
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/retrieve',
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
clientCallName: 'client.pipelines.update',
|
|
266
|
+
fullyQualifiedName: 'pipelines.update',
|
|
267
|
+
httpMethod: 'put',
|
|
268
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}',
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
clientCallName: 'client.pipelines.list',
|
|
272
|
+
fullyQualifiedName: 'pipelines.list',
|
|
273
|
+
httpMethod: 'get',
|
|
274
|
+
httpPath: '/api/v1/pipelines',
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
clientCallName: 'client.pipelines.delete',
|
|
278
|
+
fullyQualifiedName: 'pipelines.delete',
|
|
279
|
+
httpMethod: 'delete',
|
|
280
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}',
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
clientCallName: 'client.pipelines.get',
|
|
284
|
+
fullyQualifiedName: 'pipelines.get',
|
|
285
|
+
httpMethod: 'get',
|
|
286
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}',
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
clientCallName: 'client.pipelines.getStatus',
|
|
290
|
+
fullyQualifiedName: 'pipelines.getStatus',
|
|
291
|
+
httpMethod: 'get',
|
|
292
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/status',
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
clientCallName: 'client.pipelines.upsert',
|
|
296
|
+
fullyQualifiedName: 'pipelines.upsert',
|
|
297
|
+
httpMethod: 'put',
|
|
298
|
+
httpPath: '/api/v1/pipelines',
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
clientCallName: 'client.pipelines.sync.create',
|
|
302
|
+
fullyQualifiedName: 'pipelines.sync.create',
|
|
303
|
+
httpMethod: 'post',
|
|
304
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/sync',
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
clientCallName: 'client.pipelines.sync.cancel',
|
|
308
|
+
fullyQualifiedName: 'pipelines.sync.cancel',
|
|
309
|
+
httpMethod: 'post',
|
|
310
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/sync/cancel',
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
clientCallName: 'client.pipelines.dataSources.update',
|
|
314
|
+
fullyQualifiedName: 'pipelines.dataSources.update',
|
|
315
|
+
httpMethod: 'put',
|
|
316
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/data-sources/{data_source_id}',
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
clientCallName: 'client.pipelines.dataSources.getDataSources',
|
|
320
|
+
fullyQualifiedName: 'pipelines.dataSources.getDataSources',
|
|
321
|
+
httpMethod: 'get',
|
|
322
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/data-sources',
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
clientCallName: 'client.pipelines.dataSources.getStatus',
|
|
326
|
+
fullyQualifiedName: 'pipelines.dataSources.getStatus',
|
|
327
|
+
httpMethod: 'get',
|
|
328
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/data-sources/{data_source_id}/status',
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
clientCallName: 'client.pipelines.dataSources.sync',
|
|
332
|
+
fullyQualifiedName: 'pipelines.dataSources.sync',
|
|
333
|
+
httpMethod: 'post',
|
|
334
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/data-sources/{data_source_id}/sync',
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
clientCallName: 'client.pipelines.dataSources.updateDataSources',
|
|
338
|
+
fullyQualifiedName: 'pipelines.dataSources.updateDataSources',
|
|
339
|
+
httpMethod: 'put',
|
|
340
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/data-sources',
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
clientCallName: 'client.pipelines.images.getPageFigure',
|
|
344
|
+
fullyQualifiedName: 'pipelines.images.getPageFigure',
|
|
345
|
+
httpMethod: 'get',
|
|
346
|
+
httpPath: '/api/v1/files/{id}/page-figures/{page_index}/{figure_name}',
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
clientCallName: 'client.pipelines.images.getPageScreenshot',
|
|
350
|
+
fullyQualifiedName: 'pipelines.images.getPageScreenshot',
|
|
351
|
+
httpMethod: 'get',
|
|
352
|
+
httpPath: '/api/v1/files/{id}/page_screenshots/{page_index}',
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
clientCallName: 'client.pipelines.images.listPageFigures',
|
|
356
|
+
fullyQualifiedName: 'pipelines.images.listPageFigures',
|
|
357
|
+
httpMethod: 'get',
|
|
358
|
+
httpPath: '/api/v1/files/{id}/page-figures',
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
clientCallName: 'client.pipelines.images.listPageScreenshots',
|
|
362
|
+
fullyQualifiedName: 'pipelines.images.listPageScreenshots',
|
|
363
|
+
httpMethod: 'get',
|
|
364
|
+
httpPath: '/api/v1/files/{id}/page_screenshots',
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
clientCallName: 'client.pipelines.files.create',
|
|
368
|
+
fullyQualifiedName: 'pipelines.files.create',
|
|
369
|
+
httpMethod: 'put',
|
|
370
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/files',
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
clientCallName: 'client.pipelines.files.update',
|
|
374
|
+
fullyQualifiedName: 'pipelines.files.update',
|
|
375
|
+
httpMethod: 'put',
|
|
376
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/files/{file_id}',
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
clientCallName: 'client.pipelines.files.list',
|
|
380
|
+
fullyQualifiedName: 'pipelines.files.list',
|
|
381
|
+
httpMethod: 'get',
|
|
382
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/files2',
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
clientCallName: 'client.pipelines.files.delete',
|
|
386
|
+
fullyQualifiedName: 'pipelines.files.delete',
|
|
387
|
+
httpMethod: 'delete',
|
|
388
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/files/{file_id}',
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
clientCallName: 'client.pipelines.files.getStatus',
|
|
392
|
+
fullyQualifiedName: 'pipelines.files.getStatus',
|
|
393
|
+
httpMethod: 'get',
|
|
394
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/files/{file_id}/status',
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
clientCallName: 'client.pipelines.files.getStatusCounts',
|
|
398
|
+
fullyQualifiedName: 'pipelines.files.getStatusCounts',
|
|
399
|
+
httpMethod: 'get',
|
|
400
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/files/status-counts',
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
clientCallName: 'client.pipelines.metadata.create',
|
|
404
|
+
fullyQualifiedName: 'pipelines.metadata.create',
|
|
405
|
+
httpMethod: 'put',
|
|
406
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/metadata',
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
clientCallName: 'client.pipelines.metadata.deleteAll',
|
|
410
|
+
fullyQualifiedName: 'pipelines.metadata.deleteAll',
|
|
411
|
+
httpMethod: 'delete',
|
|
412
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/metadata',
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
clientCallName: 'client.pipelines.documents.create',
|
|
416
|
+
fullyQualifiedName: 'pipelines.documents.create',
|
|
417
|
+
httpMethod: 'post',
|
|
418
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/documents',
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
clientCallName: 'client.pipelines.documents.list',
|
|
422
|
+
fullyQualifiedName: 'pipelines.documents.list',
|
|
423
|
+
httpMethod: 'get',
|
|
424
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/documents/paginated',
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
clientCallName: 'client.pipelines.documents.delete',
|
|
428
|
+
fullyQualifiedName: 'pipelines.documents.delete',
|
|
429
|
+
httpMethod: 'delete',
|
|
430
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/documents/{document_id}',
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
clientCallName: 'client.pipelines.documents.get',
|
|
434
|
+
fullyQualifiedName: 'pipelines.documents.get',
|
|
435
|
+
httpMethod: 'get',
|
|
436
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/documents/{document_id}',
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
clientCallName: 'client.pipelines.documents.getChunks',
|
|
440
|
+
fullyQualifiedName: 'pipelines.documents.getChunks',
|
|
441
|
+
httpMethod: 'get',
|
|
442
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/documents/{document_id}/chunks',
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
clientCallName: 'client.pipelines.documents.getStatus',
|
|
446
|
+
fullyQualifiedName: 'pipelines.documents.getStatus',
|
|
447
|
+
httpMethod: 'get',
|
|
448
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/documents/{document_id}/status',
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
clientCallName: 'client.pipelines.documents.sync',
|
|
452
|
+
fullyQualifiedName: 'pipelines.documents.sync',
|
|
453
|
+
httpMethod: 'post',
|
|
454
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/documents/{document_id}/sync',
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
clientCallName: 'client.pipelines.documents.upsert',
|
|
458
|
+
fullyQualifiedName: 'pipelines.documents.upsert',
|
|
459
|
+
httpMethod: 'put',
|
|
460
|
+
httpPath: '/api/v1/pipelines/{pipeline_id}/documents',
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
clientCallName: 'client.retrievers.create',
|
|
464
|
+
fullyQualifiedName: 'retrievers.create',
|
|
465
|
+
httpMethod: 'post',
|
|
466
|
+
httpPath: '/api/v1/retrievers',
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
clientCallName: 'client.retrievers.update',
|
|
470
|
+
fullyQualifiedName: 'retrievers.update',
|
|
471
|
+
httpMethod: 'put',
|
|
472
|
+
httpPath: '/api/v1/retrievers/{retriever_id}',
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
clientCallName: 'client.retrievers.list',
|
|
476
|
+
fullyQualifiedName: 'retrievers.list',
|
|
477
|
+
httpMethod: 'get',
|
|
478
|
+
httpPath: '/api/v1/retrievers',
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
clientCallName: 'client.retrievers.delete',
|
|
482
|
+
fullyQualifiedName: 'retrievers.delete',
|
|
483
|
+
httpMethod: 'delete',
|
|
484
|
+
httpPath: '/api/v1/retrievers/{retriever_id}',
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
clientCallName: 'client.retrievers.get',
|
|
488
|
+
fullyQualifiedName: 'retrievers.get',
|
|
489
|
+
httpMethod: 'get',
|
|
490
|
+
httpPath: '/api/v1/retrievers/{retriever_id}',
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
clientCallName: 'client.retrievers.search',
|
|
494
|
+
fullyQualifiedName: 'retrievers.search',
|
|
495
|
+
httpMethod: 'post',
|
|
496
|
+
httpPath: '/api/v1/retrievers/retrieve',
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
clientCallName: 'client.retrievers.upsert',
|
|
500
|
+
fullyQualifiedName: 'retrievers.upsert',
|
|
501
|
+
httpMethod: 'put',
|
|
502
|
+
httpPath: '/api/v1/retrievers',
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
clientCallName: 'client.retrievers.retriever.search',
|
|
506
|
+
fullyQualifiedName: 'retrievers.retriever.search',
|
|
507
|
+
httpMethod: 'post',
|
|
508
|
+
httpPath: '/api/v1/retrievers/{retriever_id}/retrieve',
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
clientCallName: 'client.beta.agentData.update',
|
|
512
|
+
fullyQualifiedName: 'beta.agentData.update',
|
|
513
|
+
httpMethod: 'put',
|
|
514
|
+
httpPath: '/api/v1/beta/agent-data/{item_id}',
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
clientCallName: 'client.beta.agentData.delete',
|
|
518
|
+
fullyQualifiedName: 'beta.agentData.delete',
|
|
519
|
+
httpMethod: 'delete',
|
|
520
|
+
httpPath: '/api/v1/beta/agent-data/{item_id}',
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
clientCallName: 'client.beta.agentData.agentData',
|
|
524
|
+
fullyQualifiedName: 'beta.agentData.agentData',
|
|
525
|
+
httpMethod: 'post',
|
|
526
|
+
httpPath: '/api/v1/beta/agent-data',
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
clientCallName: 'client.beta.agentData.aggregate',
|
|
530
|
+
fullyQualifiedName: 'beta.agentData.aggregate',
|
|
531
|
+
httpMethod: 'post',
|
|
532
|
+
httpPath: '/api/v1/beta/agent-data/:aggregate',
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
clientCallName: 'client.beta.agentData.deleteByQuery',
|
|
536
|
+
fullyQualifiedName: 'beta.agentData.deleteByQuery',
|
|
537
|
+
httpMethod: 'post',
|
|
538
|
+
httpPath: '/api/v1/beta/agent-data/:delete',
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
clientCallName: 'client.beta.agentData.get',
|
|
542
|
+
fullyQualifiedName: 'beta.agentData.get',
|
|
543
|
+
httpMethod: 'get',
|
|
544
|
+
httpPath: '/api/v1/beta/agent-data/{item_id}',
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
clientCallName: 'client.beta.agentData.search',
|
|
548
|
+
fullyQualifiedName: 'beta.agentData.search',
|
|
549
|
+
httpMethod: 'post',
|
|
550
|
+
httpPath: '/api/v1/beta/agent-data/:search',
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
clientCallName: 'client.beta.parseConfigurations.create',
|
|
554
|
+
fullyQualifiedName: 'beta.parseConfigurations.create',
|
|
555
|
+
httpMethod: 'post',
|
|
556
|
+
httpPath: '/api/v1/beta/parse-configurations',
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
clientCallName: 'client.beta.parseConfigurations.update',
|
|
560
|
+
fullyQualifiedName: 'beta.parseConfigurations.update',
|
|
561
|
+
httpMethod: 'put',
|
|
562
|
+
httpPath: '/api/v1/beta/parse-configurations/{config_id}',
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
clientCallName: 'client.beta.parseConfigurations.list',
|
|
566
|
+
fullyQualifiedName: 'beta.parseConfigurations.list',
|
|
567
|
+
httpMethod: 'get',
|
|
568
|
+
httpPath: '/api/v1/beta/parse-configurations',
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
clientCallName: 'client.beta.parseConfigurations.delete',
|
|
572
|
+
fullyQualifiedName: 'beta.parseConfigurations.delete',
|
|
573
|
+
httpMethod: 'delete',
|
|
574
|
+
httpPath: '/api/v1/beta/parse-configurations/{config_id}',
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
clientCallName: 'client.beta.parseConfigurations.get',
|
|
578
|
+
fullyQualifiedName: 'beta.parseConfigurations.get',
|
|
579
|
+
httpMethod: 'get',
|
|
580
|
+
httpPath: '/api/v1/beta/parse-configurations/{config_id}',
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
clientCallName: 'client.beta.sheets.create',
|
|
584
|
+
fullyQualifiedName: 'beta.sheets.create',
|
|
585
|
+
httpMethod: 'post',
|
|
586
|
+
httpPath: '/api/v1/beta/sheets/jobs',
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
clientCallName: 'client.beta.sheets.list',
|
|
590
|
+
fullyQualifiedName: 'beta.sheets.list',
|
|
591
|
+
httpMethod: 'get',
|
|
592
|
+
httpPath: '/api/v1/beta/sheets/jobs',
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
clientCallName: 'client.beta.sheets.deleteJob',
|
|
596
|
+
fullyQualifiedName: 'beta.sheets.deleteJob',
|
|
597
|
+
httpMethod: 'delete',
|
|
598
|
+
httpPath: '/api/v1/beta/sheets/jobs/{spreadsheet_job_id}',
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
clientCallName: 'client.beta.sheets.get',
|
|
602
|
+
fullyQualifiedName: 'beta.sheets.get',
|
|
603
|
+
httpMethod: 'get',
|
|
604
|
+
httpPath: '/api/v1/beta/sheets/jobs/{spreadsheet_job_id}',
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
clientCallName: 'client.beta.sheets.getResultTable',
|
|
608
|
+
fullyQualifiedName: 'beta.sheets.getResultTable',
|
|
609
|
+
httpMethod: 'get',
|
|
610
|
+
httpPath: '/api/v1/beta/sheets/jobs/{spreadsheet_job_id}/regions/{region_id}/result/{region_type}',
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
clientCallName: 'client.beta.directories.create',
|
|
614
|
+
fullyQualifiedName: 'beta.directories.create',
|
|
615
|
+
httpMethod: 'post',
|
|
616
|
+
httpPath: '/api/v1/beta/directories',
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
clientCallName: 'client.beta.directories.update',
|
|
620
|
+
fullyQualifiedName: 'beta.directories.update',
|
|
621
|
+
httpMethod: 'patch',
|
|
622
|
+
httpPath: '/api/v1/beta/directories/{directory_id}',
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
clientCallName: 'client.beta.directories.list',
|
|
626
|
+
fullyQualifiedName: 'beta.directories.list',
|
|
627
|
+
httpMethod: 'get',
|
|
628
|
+
httpPath: '/api/v1/beta/directories',
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
clientCallName: 'client.beta.directories.delete',
|
|
632
|
+
fullyQualifiedName: 'beta.directories.delete',
|
|
633
|
+
httpMethod: 'delete',
|
|
634
|
+
httpPath: '/api/v1/beta/directories/{directory_id}',
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
clientCallName: 'client.beta.directories.get',
|
|
638
|
+
fullyQualifiedName: 'beta.directories.get',
|
|
639
|
+
httpMethod: 'get',
|
|
640
|
+
httpPath: '/api/v1/beta/directories/{directory_id}',
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
clientCallName: 'client.beta.directories.files.update',
|
|
644
|
+
fullyQualifiedName: 'beta.directories.files.update',
|
|
645
|
+
httpMethod: 'patch',
|
|
646
|
+
httpPath: '/api/v1/beta/directories/{directory_id}/files/{directory_file_id}',
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
clientCallName: 'client.beta.directories.files.list',
|
|
650
|
+
fullyQualifiedName: 'beta.directories.files.list',
|
|
651
|
+
httpMethod: 'get',
|
|
652
|
+
httpPath: '/api/v1/beta/directories/{directory_id}/files',
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
clientCallName: 'client.beta.directories.files.delete',
|
|
656
|
+
fullyQualifiedName: 'beta.directories.files.delete',
|
|
657
|
+
httpMethod: 'delete',
|
|
658
|
+
httpPath: '/api/v1/beta/directories/{directory_id}/files/{directory_file_id}',
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
clientCallName: 'client.beta.directories.files.add',
|
|
662
|
+
fullyQualifiedName: 'beta.directories.files.add',
|
|
663
|
+
httpMethod: 'post',
|
|
664
|
+
httpPath: '/api/v1/beta/directories/{directory_id}/files',
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
clientCallName: 'client.beta.directories.files.get',
|
|
668
|
+
fullyQualifiedName: 'beta.directories.files.get',
|
|
669
|
+
httpMethod: 'get',
|
|
670
|
+
httpPath: '/api/v1/beta/directories/{directory_id}/files/{directory_file_id}',
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
clientCallName: 'client.beta.directories.files.upload',
|
|
674
|
+
fullyQualifiedName: 'beta.directories.files.upload',
|
|
675
|
+
httpMethod: 'post',
|
|
676
|
+
httpPath: '/api/v1/beta/directories/{directory_id}/files/upload',
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
clientCallName: 'client.beta.batch.create',
|
|
680
|
+
fullyQualifiedName: 'beta.batch.create',
|
|
681
|
+
httpMethod: 'post',
|
|
682
|
+
httpPath: '/api/v1/beta/batch-processing',
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
clientCallName: 'client.beta.batch.list',
|
|
686
|
+
fullyQualifiedName: 'beta.batch.list',
|
|
687
|
+
httpMethod: 'get',
|
|
688
|
+
httpPath: '/api/v1/beta/batch-processing',
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
clientCallName: 'client.beta.batch.cancel',
|
|
692
|
+
fullyQualifiedName: 'beta.batch.cancel',
|
|
693
|
+
httpMethod: 'post',
|
|
694
|
+
httpPath: '/api/v1/beta/batch-processing/{job_id}/cancel',
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
clientCallName: 'client.beta.batch.getStatus',
|
|
698
|
+
fullyQualifiedName: 'beta.batch.getStatus',
|
|
699
|
+
httpMethod: 'get',
|
|
700
|
+
httpPath: '/api/v1/beta/batch-processing/{job_id}',
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
clientCallName: 'client.beta.batch.jobItems.list',
|
|
704
|
+
fullyQualifiedName: 'beta.batch.jobItems.list',
|
|
705
|
+
httpMethod: 'get',
|
|
706
|
+
httpPath: '/api/v1/beta/batch-processing/{job_id}/items',
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
clientCallName: 'client.beta.batch.jobItems.getProcessingResults',
|
|
710
|
+
fullyQualifiedName: 'beta.batch.jobItems.getProcessingResults',
|
|
711
|
+
httpMethod: 'get',
|
|
712
|
+
httpPath: '/api/v1/beta/batch-processing/items/{item_id}/processing-results',
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
clientCallName: 'client.beta.split.create',
|
|
716
|
+
fullyQualifiedName: 'beta.split.create',
|
|
717
|
+
httpMethod: 'post',
|
|
718
|
+
httpPath: '/api/v1/beta/split/jobs',
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
clientCallName: 'client.beta.split.list',
|
|
722
|
+
fullyQualifiedName: 'beta.split.list',
|
|
723
|
+
httpMethod: 'get',
|
|
724
|
+
httpPath: '/api/v1/beta/split/jobs',
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
clientCallName: 'client.beta.split.get',
|
|
728
|
+
fullyQualifiedName: 'beta.split.get',
|
|
729
|
+
httpMethod: 'get',
|
|
730
|
+
httpPath: '/api/v1/beta/split/jobs/{split_job_id}',
|
|
731
|
+
},
|
|
732
|
+
];
|
|
733
|
+
function allowedMethodsForCodeTool(options) {
|
|
734
|
+
if (!options) {
|
|
735
|
+
return undefined;
|
|
736
|
+
}
|
|
737
|
+
let allowedMethods;
|
|
738
|
+
if (options.codeAllowHttpGets || options.codeAllowedMethods) {
|
|
739
|
+
// Start with nothing allowed and then add into it from options
|
|
740
|
+
let allowedMethodsSet = new Set();
|
|
741
|
+
if (options.codeAllowHttpGets) {
|
|
742
|
+
// Add all methods that map to an HTTP GET
|
|
743
|
+
exports.sdkMethods
|
|
744
|
+
.filter((method) => method.httpMethod === 'get')
|
|
745
|
+
.forEach((method) => allowedMethodsSet.add(method));
|
|
746
|
+
}
|
|
747
|
+
if (options.codeAllowedMethods) {
|
|
748
|
+
// Add all methods that match any of the allowed regexps
|
|
749
|
+
const allowedRegexps = options.codeAllowedMethods.map((pattern) => {
|
|
750
|
+
try {
|
|
751
|
+
return new RegExp(pattern);
|
|
752
|
+
}
|
|
753
|
+
catch (e) {
|
|
754
|
+
throw new Error(`Invalid regex pattern for allowed method: "${pattern}": ${e instanceof Error ? e.message : e}`);
|
|
755
|
+
}
|
|
756
|
+
});
|
|
757
|
+
exports.sdkMethods
|
|
758
|
+
.filter((method) => allowedRegexps.some((regexp) => regexp.test(method.fullyQualifiedName)))
|
|
759
|
+
.forEach((method) => allowedMethodsSet.add(method));
|
|
760
|
+
}
|
|
761
|
+
allowedMethods = Array.from(allowedMethodsSet);
|
|
762
|
+
}
|
|
763
|
+
else {
|
|
764
|
+
// Start with everything allowed
|
|
765
|
+
allowedMethods = [...exports.sdkMethods];
|
|
766
|
+
}
|
|
767
|
+
if (options.codeBlockedMethods) {
|
|
768
|
+
// Filter down based on blocked regexps
|
|
769
|
+
const blockedRegexps = options.codeBlockedMethods.map((pattern) => {
|
|
770
|
+
try {
|
|
771
|
+
return new RegExp(pattern);
|
|
772
|
+
}
|
|
773
|
+
catch (e) {
|
|
774
|
+
throw new Error(`Invalid regex pattern for blocked method: "${pattern}": ${e instanceof Error ? e.message : e}`);
|
|
775
|
+
}
|
|
776
|
+
});
|
|
777
|
+
allowedMethods = allowedMethods.filter((method) => !blockedRegexps.some((regexp) => regexp.test(method.fullyQualifiedName)));
|
|
778
|
+
}
|
|
779
|
+
return allowedMethods;
|
|
780
|
+
}
|
|
781
|
+
function blockedMethodsForCodeTool(options) {
|
|
782
|
+
const allowedMethods = allowedMethodsForCodeTool(options);
|
|
783
|
+
if (!allowedMethods) {
|
|
784
|
+
return undefined;
|
|
785
|
+
}
|
|
786
|
+
const allowedSet = new Set(allowedMethods.map((method) => method.fullyQualifiedName));
|
|
787
|
+
// Return any methods that are not explicitly allowed
|
|
788
|
+
return exports.sdkMethods.filter((method) => !allowedSet.has(method.fullyQualifiedName));
|
|
789
|
+
}
|
|
790
|
+
//# sourceMappingURL=methods.js.map
|