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