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