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