@epam/ai-dial-typescript-sdk 0.1.0-dev.7 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -41,9 +41,10 @@ var import_openapi_fetch = __toESM(require("openapi-fetch"), 1);
41
41
  var acceptUserConsentUrl = (deployment_id) => {
42
42
  return `/v1/consent/${deployment_id}`;
43
43
  };
44
+ var applyConfigManifestsUrl = "/v1/admin/apply";
44
45
  var approvePublicationUrl = "/v1/ops/publication/approve";
45
- var callToolSetUrl = (toolset_name) => {
46
- return `/v1/toolset/${toolset_name}/mcp`;
46
+ var cancelResponseItemUrl = (response_id) => {
47
+ return `/openai/v1/responses/${response_id}/cancel`;
47
48
  };
48
49
  var closeSessionUrl = "/v1/ops/code_interpreter/close_session";
49
50
  var configurationDeploymentUrl = (deployment_name) => {
@@ -51,42 +52,130 @@ var configurationDeploymentUrl = (deployment_name) => {
51
52
  };
52
53
  var copyResourceUrl = "/v1/ops/resource/copy";
53
54
  var copySharedResourcesUrl = "/v1/ops/resource/share/copy";
55
+ var countAnthropicMessageTokensUrl = "/anthropic/v1/messages/count_tokens";
56
+ var createAnthropicMessageUrl = "/anthropic/v1/messages";
57
+ var createCompletionUrl = (deployment_name) => {
58
+ return `/openai/deployments/${deployment_name}/completions`;
59
+ };
60
+ var createEmbeddingUrl = (deployment_name) => {
61
+ return `/openai/deployments/${deployment_name}/embeddings`;
62
+ };
54
63
  var createPublicationUrl = "/v1/ops/publication/create";
64
+ var createResponseUrl = "/openai/v1/responses";
65
+ var createSkillGroupingFolderUrl = (bucket, path) => {
66
+ return `/v2/skills/${bucket}/${path}/`;
67
+ };
68
+ var deleteCatalogSchemaResourceUrl = (bucket, path) => {
69
+ return `/v1/catalog_schemas/${bucket}/${path}`;
70
+ };
55
71
  var deleteConversationUrl = (bucket, conversation_path) => {
56
72
  return `/v1/conversations/${bucket}/${conversation_path}`;
57
73
  };
58
74
  var deleteCustomApplicationUrl = (bucket, application_path) => {
59
75
  return `/v1/applications/${bucket}/${application_path}`;
60
76
  };
77
+ var deleteExternalServiceUrl = (appid, id) => {
78
+ return `/v1/applications/${appid}/external-services/${id}`;
79
+ };
61
80
  var deleteFileUrl = (bucket, file_path) => {
62
81
  return `/v1/files/${bucket}/${file_path}`;
63
82
  };
83
+ var deleteGlobalSettingsUrl = (bucket, path) => {
84
+ return `/v1/settings/${bucket}/${path}`;
85
+ };
86
+ var deleteInterceptorUrl = (bucket, path) => {
87
+ return `/v1/interceptors/${bucket}/${path}`;
88
+ };
64
89
  var deleteInvitationUrl = (invitation_id) => {
65
90
  return `/v1/invitations/${invitation_id}`;
66
91
  };
92
+ var deleteKeyUrl = (bucket, path) => {
93
+ return `/v1/keys/${bucket}/${path}`;
94
+ };
95
+ var deleteModelUrl = (bucket, path) => {
96
+ return `/v1/models/${bucket}/${path}`;
97
+ };
67
98
  var deleteNotificationsUrl = "/v1/ops/notification/delete";
99
+ var deletePlatformApplicationUrl = (path) => {
100
+ return `/v1/applications/platform/${path}`;
101
+ };
102
+ var deletePlatformToolSetUrl = (path) => {
103
+ return `/v1/toolsets/platform/${path}`;
104
+ };
68
105
  var deletePromptUrl = (bucket, prompt_path) => {
69
106
  return `/v1/prompts/${bucket}/${prompt_path}`;
70
107
  };
71
108
  var deletePublicationUrl = "/v1/ops/publication/delete";
109
+ var deleteResponseItemUrl = (response_id) => {
110
+ return `/openai/v1/responses/${response_id}`;
111
+ };
112
+ var deleteRoleUrl = (bucket, path) => {
113
+ return `/v1/roles/${bucket}/${path}`;
114
+ };
115
+ var deleteRouteUrl = (bucket, path) => {
116
+ return `/v1/routes/${bucket}/${path}`;
117
+ };
118
+ var deleteSchemaUrl = (bucket, path) => {
119
+ return `/v1/schemas/${bucket}/${path}`;
120
+ };
121
+ var deleteSkillFileUrl = (bucket, path, filepath) => {
122
+ return `/v2/skills/${bucket}/${path}/files/${filepath}`;
123
+ };
124
+ var deleteSkillFolderUrl = (bucket, path) => {
125
+ return `/v2/skills/${bucket}/${path}`;
126
+ };
127
+ var deleteSkillGroupingFolderUrl = (bucket, path) => {
128
+ return `/v2/skills/${bucket}/${path}/`;
129
+ };
72
130
  var deleteToolSetUrl = (bucket, toolset_path) => {
73
131
  return `/v1/toolsets/${bucket}/${toolset_path}`;
74
132
  };
133
+ var deleteToolSetMcpUrl = (toolset_name) => {
134
+ return `/v1/toolset/${toolset_name}/mcp`;
135
+ };
75
136
  var deployApplicationUrl = "/v1/ops/application/deploy";
76
137
  var discardSharedResourcesUrl = "/v1/ops/resource/share/discard";
77
138
  var downloadFileUrl = (bucket, file_path) => {
78
139
  return `/v1/files/${bucket}/${file_path}`;
79
140
  };
80
141
  var downloadFileFromCodeInterpreterUrl = "/v1/ops/code_interpreter/download_file";
142
+ var downloadSkillFileUrl = (bucket, path, filepath) => {
143
+ return `/v2/skills/${bucket}/${path}/files/${filepath}`;
144
+ };
145
+ var downloadSkillFolderUrl = (bucket, path) => {
146
+ return `/v2/skills/${bucket}/${path}`;
147
+ };
148
+ var downloadSkillGroupingFolderUrl = (bucket, path) => {
149
+ return `/v2/skills/${bucket}/${path}/`;
150
+ };
81
151
  var executeCodeUrl = "/v1/ops/code_interpreter/execute_code";
152
+ var externalServiceGetCredentialsUrl = "/v1/ops/external-service/credentials";
153
+ var externalServiceGetOboCredentialsUrl = "/v1/ops/external-service/obo-credentials";
154
+ var externalServiceSignInUrl = "/v1/ops/external-service/signin";
155
+ var externalServiceSignOutUrl = "/v1/ops/external-service/signout";
156
+ var getAnthropicModelUrl = (model_name) => {
157
+ return `/anthropic/v1/models/${model_name}`;
158
+ };
159
+ var getAnthropicModelsUrl = "/anthropic/v1/models";
82
160
  var getApplicationUrl = (application_name) => {
83
161
  return `/openai/applications/${application_name}`;
84
162
  };
85
163
  var getApplicationLogsUrl = "/v1/ops/application/logs";
164
+ var getApplicationMcpResourcesUrl = (deployment_name) => {
165
+ return `/v1/deployments/${deployment_name}/mcp/resources`;
166
+ };
86
167
  var getApplicationMetadataUrl = (bucket, path) => {
87
168
  return `/v1/metadata/applications/${bucket}/${path}`;
88
169
  };
89
170
  var getApplicationsUrl = "/openai/applications";
171
+ var getCatalogSchemaUrl = "/v1/catalog_schemas/schema";
172
+ var getCatalogSchemaMetadataUrl = (bucket, path) => {
173
+ return `/v1/metadata/catalog_schemas/${bucket}/${path}`;
174
+ };
175
+ var getCatalogSchemaResourceUrl = (bucket, path) => {
176
+ return `/v1/catalog_schemas/${bucket}/${path}`;
177
+ };
178
+ var getConfigHealthUrl = "/v1/admin/health/config";
90
179
  var getConversationUrl = (bucket, conversation_path) => {
91
180
  return `/v1/conversations/${bucket}/${conversation_path}`;
92
181
  };
@@ -107,20 +196,91 @@ var getDeploymentLimitsUrl = (deployment_name) => {
107
196
  return `/v1/deployments/${deployment_name}/limits`;
108
197
  };
109
198
  var getDeploymentsUrl = "/openai/deployments";
199
+ var getExternalServiceUrl = (appid, id) => {
200
+ return `/v1/applications/${appid}/external-services/${id}`;
201
+ };
202
+ var getFileConfigApplicationUrl = (name) => {
203
+ return `/v1/admin/config/file/applications/${name}`;
204
+ };
205
+ var getFileConfigCatalogSchemaUrl = (name) => {
206
+ return `/v1/admin/config/file/catalog_schemas/${name}`;
207
+ };
208
+ var getFileConfigInterceptorUrl = (name) => {
209
+ return `/v1/admin/config/file/interceptors/${name}`;
210
+ };
211
+ var getFileConfigKeyUrl = (name) => {
212
+ return `/v1/admin/config/file/keys/${name}`;
213
+ };
214
+ var getFileConfigModelUrl = (name) => {
215
+ return `/v1/admin/config/file/models/${name}`;
216
+ };
217
+ var getFileConfigRoleUrl = (name) => {
218
+ return `/v1/admin/config/file/roles/${name}`;
219
+ };
220
+ var getFileConfigRouteUrl = (name) => {
221
+ return `/v1/admin/config/file/routes/${name}`;
222
+ };
223
+ var getFileConfigSchemaUrl = (name) => {
224
+ return `/v1/admin/config/file/schemas/${name}`;
225
+ };
226
+ var getFileConfigSettingsUrl = (name) => {
227
+ return `/v1/admin/config/file/settings/${name}`;
228
+ };
229
+ var getFileConfigToolsetUrl = (name) => {
230
+ return `/v1/admin/config/file/toolsets/${name}`;
231
+ };
110
232
  var getFileMetadataUrl = (bucket, path) => {
111
233
  return `/v1/metadata/files/${bucket}/${path}`;
112
234
  };
235
+ var getGlobalSettingsUrl = (bucket, path) => {
236
+ return `/v1/settings/${bucket}/${path}`;
237
+ };
238
+ var getGlobalSettingsMetadataUrl = (bucket, path) => {
239
+ return `/v1/metadata/settings/${bucket}/${path}`;
240
+ };
241
+ var getInterceptorUrl = (bucket, path) => {
242
+ return `/v1/interceptors/${bucket}/${path}`;
243
+ };
244
+ var getInterceptorMetadataUrl = (bucket, path) => {
245
+ return `/v1/metadata/interceptors/${bucket}/${path}`;
246
+ };
113
247
  var getInvitationUrl = (invitation_id) => {
114
248
  return `/v1/invitations/${invitation_id}`;
115
249
  };
116
250
  var getInvitationsUrl = "/v1/invitations";
251
+ var getKeyUrl = (bucket, path) => {
252
+ return `/v1/keys/${bucket}/${path}`;
253
+ };
254
+ var getKeyMetadataUrl = (bucket, path) => {
255
+ return `/v1/metadata/keys/${bucket}/${path}`;
256
+ };
257
+ var getMetaSchemaOfCatalogSchemaUrl = "/v1/catalog_schemas/meta_schema";
117
258
  var getMetaSchemaOfCustomApplicationSchemaUrl = "/v1/application_type_schemas/meta_schema";
118
259
  var getModelUrl = (model_name) => {
119
260
  return `/openai/models/${model_name}`;
120
261
  };
262
+ var getModelByPathUrl = (bucket, path) => {
263
+ return `/v1/models/${bucket}/${path}`;
264
+ };
265
+ var getModelMetadataUrl = (bucket, path) => {
266
+ return `/v1/metadata/models/${bucket}/${path}`;
267
+ };
121
268
  var getModelsUrl = "/openai/models";
122
269
  var getNotificationsUrl = "/v1/ops/notification/list";
270
+ var getOfflineCredentialsUrl = "/v1/user/offline-credentials";
123
271
  var getPerRequestPermissionsUrl = "/v1/ops/resource/per-request-permissions/list";
272
+ var getPlatformApplicationUrl = (path) => {
273
+ return `/v1/applications/platform/${path}`;
274
+ };
275
+ var getPlatformApplicationMetadataUrl = (path) => {
276
+ return `/v1/metadata/applications/platform/${path}`;
277
+ };
278
+ var getPlatformToolSetUrl = (path) => {
279
+ return `/v1/toolsets/platform/${path}`;
280
+ };
281
+ var getPlatformToolSetMetadataUrl = (path) => {
282
+ return `/v1/metadata/toolsets/platform/${path}`;
283
+ };
124
284
  var getPromptUrl = (bucket, prompt_path) => {
125
285
  return `/v1/prompts/${bucket}/${prompt_path}`;
126
286
  };
@@ -130,63 +290,182 @@ var getPromptMetadataUrl = (bucket, path) => {
130
290
  var getPublicationUrl = "/v1/ops/publication/get";
131
291
  var getPublicationRulesUrl = "/v1/ops/publication/rule/list";
132
292
  var getPublicationsUrl = "/v1/ops/publication/list";
293
+ var getResponseItemUrl = (response_id) => {
294
+ return `/openai/v1/responses/${response_id}`;
295
+ };
296
+ var getRoleUrl = (bucket, path) => {
297
+ return `/v1/roles/${bucket}/${path}`;
298
+ };
299
+ var getRoleMetadataUrl = (bucket, path) => {
300
+ return `/v1/metadata/roles/${bucket}/${path}`;
301
+ };
302
+ var getRouteUrl = (bucket, path) => {
303
+ return `/v1/routes/${bucket}/${path}`;
304
+ };
305
+ var getRouteMetadataUrl = (bucket, path) => {
306
+ return `/v1/metadata/routes/${bucket}/${path}`;
307
+ };
308
+ var getSchemaUrl = (bucket, path) => {
309
+ return `/v1/schemas/${bucket}/${path}`;
310
+ };
311
+ var getSchemaMetadataUrl = (bucket, path) => {
312
+ return `/v1/metadata/schemas/${bucket}/${path}`;
313
+ };
133
314
  var getSessionUrl = "/v1/ops/code_interpreter/get_session";
134
315
  var getSharedResourcesUrl = "/v1/ops/resource/share/list";
316
+ var getToolSetAllowedToolsUrl = (toolset_name) => {
317
+ return `/v1/toolset/${toolset_name}/allowed-tools`;
318
+ };
319
+ var getToolSetMcpUrl = (toolset_name) => {
320
+ return `/v1/toolset/${toolset_name}/mcp`;
321
+ };
135
322
  var getToolSetMetadataUrl = (bucket, path) => {
136
323
  return `/v1/metadata/toolsets/${bucket}/${path}`;
137
324
  };
325
+ var getToolSetToolsUrl = (toolset_name) => {
326
+ return `/v1/toolset/${toolset_name}/tools`;
327
+ };
138
328
  var getToolSetsUrl = "/openai/toolsets";
139
329
  var getToolsetUrl = (toolset_name) => {
140
330
  return `/openai/toolsets/${toolset_name}`;
141
331
  };
142
332
  var getUserBucketUrl = "/v1/bucket";
143
333
  var getUserInfoUrl = "/v1/user/info";
334
+ var getUserLimitsUrl = "/v1/user/limits";
335
+ var getUserUsageUrl = "/v1/user/usage";
336
+ var grantExternalServiceConsentUrl = (appid, id) => {
337
+ return `/v1/applications/${appid}/external-services/${id}/consent`;
338
+ };
144
339
  var grantPerRequestPermissionsUrl = "/v1/ops/resource/per-request-permissions/grant";
340
+ var interactClientChannelUrl = "/v1/ops/client-channel/interact";
341
+ var listCatalogSchemasUrl = "/v1/catalog_schemas/schemas";
145
342
  var listCustomApplicationSchemasUrl = "/v1/application_type_schemas/schemas";
343
+ var listDeploymentsUrl = "/v1/deployments";
344
+ var listExternalServicesUrl = (appid) => {
345
+ return `/v1/applications/${appid}/external-services`;
346
+ };
347
+ var listFileConfigApplicationsUrl = "/v1/admin/config/file/applications";
348
+ var listFileConfigCatalogSchemasUrl = "/v1/admin/config/file/catalog_schemas";
349
+ var listFileConfigInterceptorsUrl = "/v1/admin/config/file/interceptors";
350
+ var listFileConfigKeysUrl = "/v1/admin/config/file/keys";
351
+ var listFileConfigModelsUrl = "/v1/admin/config/file/models";
352
+ var listFileConfigRolesUrl = "/v1/admin/config/file/roles";
353
+ var listFileConfigRoutesUrl = "/v1/admin/config/file/routes";
354
+ var listFileConfigSchemasUrl = "/v1/admin/config/file/schemas";
355
+ var listFileConfigSettingsUrl = "/v1/admin/config/file/settings";
356
+ var listFileConfigToolsetsUrl = "/v1/admin/config/file/toolsets";
146
357
  var listFilesFromCodeInterpreterUrl = "/v1/ops/code_interpreter/list_files";
358
+ var listPublishedResourcesUrl = "/v1/ops/publication/resource/list";
359
+ var listSkillFileMetadataUrl = (bucket, path, filepath) => {
360
+ return `/v2/metadata/skills/${bucket}/${path}/files/${filepath}`;
361
+ };
362
+ var listSkillMetadataUrl = (bucket, path) => {
363
+ return `/v2/metadata/skills/${bucket}/${path}`;
364
+ };
365
+ var migrateFileConfigUrl = "/v1/admin/config/file/migrate";
147
366
  var moveResourceUrl = "/v1/ops/resource/move";
367
+ var offlineCredentialsSignInUrl = "/v1/user/offline-credentials/signin";
368
+ var offlineCredentialsSignOutUrl = "/v1/user/offline-credentials/signout";
148
369
  var openSessionUrl = "/v1/ops/code_interpreter/open_session";
370
+ var postApplicationMcpUrl = (deployment_name) => {
371
+ return `/v1/deployments/${deployment_name}/mcp`;
372
+ };
373
+ var postToolSetMcpUrl = (toolset_name) => {
374
+ return `/v1/toolset/${toolset_name}/mcp`;
375
+ };
376
+ var putExternalServiceUrl = (appid, id) => {
377
+ return `/v1/applications/${appid}/external-services/${id}`;
378
+ };
149
379
  var rateDeploymentUrl = (deployment_name) => {
150
380
  return `/v1/${deployment_name}/rate`;
151
381
  };
152
382
  var redeployApplicationUrl = "/v1/ops/application/redeploy";
153
383
  var rejectPublicationUrl = "/v1/ops/publication/reject";
154
384
  var reloadConfigUrl = "/v1/ops/config/reload";
385
+ var repairToolSetUrl = (bucket, path) => {
386
+ return `/v1/ops/toolset/${bucket}/${path}/repair`;
387
+ };
388
+ var reportClientChannelUrl = "/v1/ops/client-channel/report";
155
389
  var requestUserConsentUrl = (deployment_id) => {
156
390
  return `/v1/consent/${deployment_id}`;
157
391
  };
158
392
  var revokePerRequestPermissionsUrl = "/v1/ops/resource/per-request-permissions/revoke";
159
393
  var revokeSharedResourcesUrl = "/v1/ops/resource/share/revoke";
394
+ var saveCatalogSchemaResourceUrl = (bucket, path) => {
395
+ return `/v1/catalog_schemas/${bucket}/${path}`;
396
+ };
160
397
  var saveConversationUrl = (bucket, conversation_path) => {
161
398
  return `/v1/conversations/${bucket}/${conversation_path}`;
162
399
  };
163
400
  var saveCustomApplicationUrl = (bucket, application_path) => {
164
401
  return `/v1/applications/${bucket}/${application_path}`;
165
402
  };
403
+ var saveGlobalSettingsUrl = (bucket, path) => {
404
+ return `/v1/settings/${bucket}/${path}`;
405
+ };
406
+ var saveInterceptorUrl = (bucket, path) => {
407
+ return `/v1/interceptors/${bucket}/${path}`;
408
+ };
409
+ var saveKeyUrl = (bucket, path) => {
410
+ return `/v1/keys/${bucket}/${path}`;
411
+ };
412
+ var saveModelUrl = (bucket, path) => {
413
+ return `/v1/models/${bucket}/${path}`;
414
+ };
415
+ var savePlatformApplicationUrl = (path) => {
416
+ return `/v1/applications/platform/${path}`;
417
+ };
418
+ var savePlatformToolSetUrl = (path) => {
419
+ return `/v1/toolsets/platform/${path}`;
420
+ };
166
421
  var savePromptUrl = (bucket, prompt_path) => {
167
422
  return `/v1/prompts/${bucket}/${prompt_path}`;
168
423
  };
424
+ var saveRoleUrl = (bucket, path) => {
425
+ return `/v1/roles/${bucket}/${path}`;
426
+ };
427
+ var saveRouteUrl = (bucket, path) => {
428
+ return `/v1/routes/${bucket}/${path}`;
429
+ };
430
+ var saveSchemaUrl = (bucket, path) => {
431
+ return `/v1/schemas/${bucket}/${path}`;
432
+ };
169
433
  var saveToolSetUrl = (bucket, toolset_path) => {
170
434
  return `/v1/toolsets/${bucket}/${toolset_path}`;
171
435
  };
172
436
  var sendChatCompletionRequestUrl = (deployment_name) => {
173
437
  return `/openai/deployments/${deployment_name}/chat/completions`;
174
438
  };
175
- var sendEmbeddingsRequestUrl = (deployment_name) => {
176
- return `/openai/deployments/${deployment_name}/embeddings`;
177
- };
178
439
  var shareResourceUrl = "/v1/ops/resource/share/create";
440
+ var subscribeClientChannelUrl = "/v1/ops/client-channel/subscribe";
179
441
  var subscribeToResourcesUrl = "/v1/ops/resource/subscribe";
442
+ var tokenizeUrl = (deployment_name) => {
443
+ return `/v1/deployments/${deployment_name}/tokenize`;
444
+ };
180
445
  var toolSetSignoutUrl = "/v1/ops/toolset/signout";
181
446
  var toolsetSigninUrl = "/v1/ops/toolset/signin";
182
447
  var transferInputFileUrl = "/v1/ops/code_interpreter/transfer_input_file";
183
448
  var transferOutputFileUrl = "/v1/ops/code_interpreter/transfer_output_file";
449
+ var truncatePromptUrl = (deployment_name) => {
450
+ return `/v1/deployments/${deployment_name}/truncate_prompt`;
451
+ };
184
452
  var undeployApplicationUrl = "/v1/ops/application/undeploy";
453
+ var unsubscribeClientChannelUrl = "/v1/ops/client-channel/unsubscribe";
185
454
  var updatePublicationUrl = "/v1/ops/publication/update";
186
455
  var uploadFileUrl = (bucket, file_path) => {
187
456
  return `/v1/files/${bucket}/${file_path}`;
188
457
  };
189
458
  var uploadFileToCodeInterpreterUrl = "/v1/ops/code_interpreter/upload_file";
459
+ var uploadSkillFileUrl = (bucket, path, filepath) => {
460
+ return `/v2/skills/${bucket}/${path}/files/${filepath}`;
461
+ };
462
+ var uploadSkillFolderUrl = (bucket, path) => {
463
+ return `/v2/skills/${bucket}/${path}`;
464
+ };
465
+ var validateConfigManifestsUrl = "/v1/admin/validate";
466
+ var withdrawExternalServiceConsentUrl = (appid, id) => {
467
+ return `/v1/applications/${appid}/external-services/${id}/consent`;
468
+ };
190
469
 
191
470
  // src/client.ts
192
471
  function createSDK(opts) {
@@ -204,9 +483,10 @@ function createSDK(opts) {
204
483
  acceptUserConsentUrl(deployment_id),
205
484
  init
206
485
  ),
486
+ applyConfigManifests: (init) => client.POST(applyConfigManifestsUrl, init),
207
487
  approvePublication: (init) => client.POST(approvePublicationUrl, init),
208
- callToolSet: (toolset_name, init) => client.POST(
209
- callToolSetUrl(toolset_name),
488
+ cancelResponseItem: (response_id, init) => client.POST(
489
+ cancelResponseItemUrl(response_id),
210
490
  init
211
491
  ),
212
492
  closeSession: (init) => client.POST(closeSessionUrl, init),
@@ -216,7 +496,26 @@ function createSDK(opts) {
216
496
  ),
217
497
  copyResource: (init) => client.POST(copyResourceUrl, init),
218
498
  copySharedResources: (init) => client.POST(copySharedResourcesUrl, init),
499
+ countAnthropicMessageTokens: (init) => client.POST(countAnthropicMessageTokensUrl, init),
500
+ createAnthropicMessage: (init) => client.POST(createAnthropicMessageUrl, init),
501
+ createCompletion: (deployment_name, init) => client.POST(
502
+ createCompletionUrl(deployment_name),
503
+ init
504
+ ),
505
+ createEmbedding: (deployment_name, init) => client.POST(
506
+ createEmbeddingUrl(deployment_name),
507
+ init
508
+ ),
219
509
  createPublication: (init) => client.POST(createPublicationUrl, init),
510
+ createResponse: (init) => client.POST(createResponseUrl, init),
511
+ createSkillGroupingFolder: (bucket, path, init) => client.PUT(
512
+ createSkillGroupingFolderUrl(bucket, path),
513
+ init
514
+ ),
515
+ deleteCatalogSchemaResource: (bucket, path, init) => client.DELETE(
516
+ deleteCatalogSchemaResourceUrl(bucket, path),
517
+ init
518
+ ),
220
519
  deleteConversation: (bucket, conversation_path, init) => client.DELETE(
221
520
  deleteConversationUrl(bucket, conversation_path),
222
521
  init
@@ -225,24 +524,84 @@ function createSDK(opts) {
225
524
  deleteCustomApplicationUrl(bucket, application_path),
226
525
  init
227
526
  ),
527
+ deleteExternalService: (appid, id, init) => client.DELETE(
528
+ deleteExternalServiceUrl(appid, id),
529
+ init
530
+ ),
228
531
  deleteFile: (bucket, file_path, init) => client.DELETE(
229
532
  deleteFileUrl(bucket, file_path),
230
533
  init
231
534
  ),
535
+ deleteGlobalSettings: (bucket, path, init) => client.DELETE(
536
+ deleteGlobalSettingsUrl(bucket, path),
537
+ init
538
+ ),
539
+ deleteInterceptor: (bucket, path, init) => client.DELETE(
540
+ deleteInterceptorUrl(bucket, path),
541
+ init
542
+ ),
232
543
  deleteInvitation: (invitation_id, init) => client.DELETE(
233
544
  deleteInvitationUrl(invitation_id),
234
545
  init
235
546
  ),
547
+ deleteKey: (bucket, path, init) => client.DELETE(
548
+ deleteKeyUrl(bucket, path),
549
+ init
550
+ ),
551
+ deleteModel: (bucket, path, init) => client.DELETE(
552
+ deleteModelUrl(bucket, path),
553
+ init
554
+ ),
236
555
  deleteNotifications: (init) => client.POST(deleteNotificationsUrl, init),
556
+ deletePlatformApplication: (path, init) => client.DELETE(
557
+ deletePlatformApplicationUrl(path),
558
+ init
559
+ ),
560
+ deletePlatformToolSet: (path, init) => client.DELETE(
561
+ deletePlatformToolSetUrl(path),
562
+ init
563
+ ),
237
564
  deletePrompt: (bucket, prompt_path, init) => client.DELETE(
238
565
  deletePromptUrl(bucket, prompt_path),
239
566
  init
240
567
  ),
241
568
  deletePublication: (init) => client.POST(deletePublicationUrl, init),
569
+ deleteResponseItem: (response_id, init) => client.DELETE(
570
+ deleteResponseItemUrl(response_id),
571
+ init
572
+ ),
573
+ deleteRole: (bucket, path, init) => client.DELETE(
574
+ deleteRoleUrl(bucket, path),
575
+ init
576
+ ),
577
+ deleteRoute: (bucket, path, init) => client.DELETE(
578
+ deleteRouteUrl(bucket, path),
579
+ init
580
+ ),
581
+ deleteSchema: (bucket, path, init) => client.DELETE(
582
+ deleteSchemaUrl(bucket, path),
583
+ init
584
+ ),
585
+ deleteSkillFile: (bucket, path, filepath, init) => client.DELETE(
586
+ deleteSkillFileUrl(bucket, path, filepath),
587
+ init
588
+ ),
589
+ deleteSkillFolder: (bucket, path, init) => client.DELETE(
590
+ deleteSkillFolderUrl(bucket, path),
591
+ init
592
+ ),
593
+ deleteSkillGroupingFolder: (bucket, path, init) => client.DELETE(
594
+ deleteSkillGroupingFolderUrl(bucket, path),
595
+ init
596
+ ),
242
597
  deleteToolSet: (bucket, toolset_path, init) => client.DELETE(
243
598
  deleteToolSetUrl(bucket, toolset_path),
244
599
  init
245
600
  ),
601
+ deleteToolSetMcp: (toolset_name, init) => client.DELETE(
602
+ deleteToolSetMcpUrl(toolset_name),
603
+ init
604
+ ),
246
605
  deployApplication: (init) => client.POST(deployApplicationUrl, init),
247
606
  discardSharedResources: (init) => client.POST(discardSharedResourcesUrl, init),
248
607
  downloadFile: (bucket, file_path, init) => client.GET(
@@ -250,17 +609,55 @@ function createSDK(opts) {
250
609
  init
251
610
  ),
252
611
  downloadFileFromCodeInterpreter: (init) => client.POST(downloadFileFromCodeInterpreterUrl, init),
612
+ downloadSkillFile: (bucket, path, filepath, init) => client.GET(
613
+ downloadSkillFileUrl(bucket, path, filepath),
614
+ init
615
+ ),
616
+ downloadSkillFolder: (bucket, path, init) => client.GET(
617
+ downloadSkillFolderUrl(bucket, path),
618
+ init
619
+ ),
620
+ downloadSkillGroupingFolder: (bucket, path, init) => client.GET(
621
+ downloadSkillGroupingFolderUrl(bucket, path),
622
+ init
623
+ ),
253
624
  executeCode: (init) => client.POST(executeCodeUrl, init),
625
+ externalServiceGetCredentials: (init) => client.POST(externalServiceGetCredentialsUrl, init),
626
+ externalServiceGetOboCredentials: (init) => client.POST(
627
+ externalServiceGetOboCredentialsUrl,
628
+ init
629
+ ),
630
+ externalServiceSignIn: (init) => client.POST(externalServiceSignInUrl, init),
631
+ externalServiceSignOut: (init) => client.POST(externalServiceSignOutUrl, init),
632
+ getAnthropicModel: (model_name, init) => client.GET(
633
+ getAnthropicModelUrl(model_name),
634
+ init
635
+ ),
636
+ getAnthropicModels: (init) => client.GET(getAnthropicModelsUrl, init),
254
637
  getApplication: (application_name, init) => client.GET(
255
638
  getApplicationUrl(application_name),
256
639
  init
257
640
  ),
258
641
  getApplicationLogs: (init) => client.POST(getApplicationLogsUrl, init),
642
+ getApplicationMcpResources: (deployment_name, init) => client.GET(
643
+ getApplicationMcpResourcesUrl(deployment_name),
644
+ init
645
+ ),
259
646
  getApplicationMetadata: (bucket, path, init) => client.GET(
260
647
  getApplicationMetadataUrl(bucket, path),
261
648
  init
262
649
  ),
263
650
  getApplications: (init) => client.GET(getApplicationsUrl, init),
651
+ getCatalogSchema: (init) => client.GET(getCatalogSchemaUrl, init),
652
+ getCatalogSchemaMetadata: (bucket, path, init) => client.GET(
653
+ getCatalogSchemaMetadataUrl(bucket, path),
654
+ init
655
+ ),
656
+ getCatalogSchemaResource: (bucket, path, init) => client.GET(
657
+ getCatalogSchemaResourceUrl(bucket, path),
658
+ init
659
+ ),
660
+ getConfigHealth: (init) => client.GET(getConfigHealthUrl, init),
264
661
  getConversation: (bucket, conversation_path, init) => client.GET(
265
662
  getConversationUrl(bucket, conversation_path),
266
663
  init
@@ -287,23 +684,96 @@ function createSDK(opts) {
287
684
  init
288
685
  ),
289
686
  getDeployments: (init) => client.GET(getDeploymentsUrl, init),
687
+ getExternalService: (appid, id, init) => client.GET(
688
+ getExternalServiceUrl(appid, id),
689
+ init
690
+ ),
691
+ getFileConfigApplication: (name, init) => client.GET(
692
+ getFileConfigApplicationUrl(name),
693
+ init
694
+ ),
695
+ getFileConfigCatalogSchema: (name, init) => client.GET(
696
+ getFileConfigCatalogSchemaUrl(name),
697
+ init
698
+ ),
699
+ getFileConfigInterceptor: (name, init) => client.GET(
700
+ getFileConfigInterceptorUrl(name),
701
+ init
702
+ ),
703
+ getFileConfigKey: (name, init) => client.GET(getFileConfigKeyUrl(name), init),
704
+ getFileConfigModel: (name, init) => client.GET(getFileConfigModelUrl(name), init),
705
+ getFileConfigRole: (name, init) => client.GET(getFileConfigRoleUrl(name), init),
706
+ getFileConfigRoute: (name, init) => client.GET(getFileConfigRouteUrl(name), init),
707
+ getFileConfigSchema: (name, init) => client.GET(getFileConfigSchemaUrl(name), init),
708
+ getFileConfigSettings: (name, init) => client.GET(
709
+ getFileConfigSettingsUrl(name),
710
+ init
711
+ ),
712
+ getFileConfigToolset: (name, init) => client.GET(
713
+ getFileConfigToolsetUrl(name),
714
+ init
715
+ ),
290
716
  getFileMetadata: (bucket, path, init) => client.GET(
291
717
  getFileMetadataUrl(bucket, path),
292
718
  init
293
719
  ),
720
+ getGlobalSettings: (bucket, path, init) => client.GET(
721
+ getGlobalSettingsUrl(bucket, path),
722
+ init
723
+ ),
724
+ getGlobalSettingsMetadata: (bucket, path, init) => client.GET(
725
+ getGlobalSettingsMetadataUrl(bucket, path),
726
+ init
727
+ ),
728
+ getInterceptor: (bucket, path, init) => client.GET(
729
+ getInterceptorUrl(bucket, path),
730
+ init
731
+ ),
732
+ getInterceptorMetadata: (bucket, path, init) => client.GET(
733
+ getInterceptorMetadataUrl(bucket, path),
734
+ init
735
+ ),
294
736
  getInvitation: (invitation_id, init) => client.GET(
295
737
  getInvitationUrl(invitation_id),
296
738
  init
297
739
  ),
298
740
  getInvitations: (init) => client.GET(getInvitationsUrl, init),
741
+ getKey: (bucket, path, init) => client.GET(getKeyUrl(bucket, path), init),
742
+ getKeyMetadata: (bucket, path, init) => client.GET(
743
+ getKeyMetadataUrl(bucket, path),
744
+ init
745
+ ),
746
+ getMetaSchemaOfCatalogSchema: (init) => client.GET(getMetaSchemaOfCatalogSchemaUrl, init),
299
747
  getMetaSchemaOfCustomApplicationSchema: (init) => client.GET(
300
748
  getMetaSchemaOfCustomApplicationSchemaUrl,
301
749
  init
302
750
  ),
303
751
  getModel: (model_name, init) => client.GET(getModelUrl(model_name), init),
752
+ getModelByPath: (bucket, path, init) => client.GET(
753
+ getModelByPathUrl(bucket, path),
754
+ init
755
+ ),
756
+ getModelMetadata: (bucket, path, init) => client.GET(
757
+ getModelMetadataUrl(bucket, path),
758
+ init
759
+ ),
304
760
  getModels: (init) => client.GET(getModelsUrl, init),
305
761
  getNotifications: (init) => client.POST(getNotificationsUrl, init),
762
+ getOfflineCredentials: (init) => client.GET(getOfflineCredentialsUrl, init),
306
763
  getPerRequestPermissions: (init) => client.POST(getPerRequestPermissionsUrl, init),
764
+ getPlatformApplication: (path, init) => client.GET(
765
+ getPlatformApplicationUrl(path),
766
+ init
767
+ ),
768
+ getPlatformApplicationMetadata: (path, init) => client.GET(
769
+ getPlatformApplicationMetadataUrl(path),
770
+ init
771
+ ),
772
+ getPlatformToolSet: (path, init) => client.GET(getPlatformToolSetUrl(path), init),
773
+ getPlatformToolSetMetadata: (path, init) => client.GET(
774
+ getPlatformToolSetMetadataUrl(path),
775
+ init
776
+ ),
307
777
  getPrompt: (bucket, prompt_path, init) => client.GET(
308
778
  getPromptUrl(bucket, prompt_path),
309
779
  init
@@ -315,21 +785,99 @@ function createSDK(opts) {
315
785
  getPublication: (init) => client.POST(getPublicationUrl, init),
316
786
  getPublicationRules: (init) => client.POST(getPublicationRulesUrl, init),
317
787
  getPublications: (init) => client.POST(getPublicationsUrl, init),
788
+ getResponseItem: (response_id, init) => client.GET(
789
+ getResponseItemUrl(response_id),
790
+ init
791
+ ),
792
+ getRole: (bucket, path, init) => client.GET(getRoleUrl(bucket, path), init),
793
+ getRoleMetadata: (bucket, path, init) => client.GET(
794
+ getRoleMetadataUrl(bucket, path),
795
+ init
796
+ ),
797
+ getRoute: (bucket, path, init) => client.GET(getRouteUrl(bucket, path), init),
798
+ getRouteMetadata: (bucket, path, init) => client.GET(
799
+ getRouteMetadataUrl(bucket, path),
800
+ init
801
+ ),
802
+ getSchema: (bucket, path, init) => client.GET(getSchemaUrl(bucket, path), init),
803
+ getSchemaMetadata: (bucket, path, init) => client.GET(
804
+ getSchemaMetadataUrl(bucket, path),
805
+ init
806
+ ),
318
807
  getSession: (init) => client.POST(getSessionUrl, init),
319
808
  getSharedResources: (init) => client.POST(getSharedResourcesUrl, init),
809
+ getToolSetAllowedTools: (toolset_name, init) => client.GET(
810
+ getToolSetAllowedToolsUrl(toolset_name),
811
+ init
812
+ ),
813
+ getToolSetMcp: (toolset_name, init) => client.GET(
814
+ getToolSetMcpUrl(toolset_name),
815
+ init
816
+ ),
320
817
  getToolSetMetadata: (bucket, path, init) => client.GET(
321
818
  getToolSetMetadataUrl(bucket, path),
322
819
  init
323
820
  ),
821
+ getToolSetTools: (toolset_name, init) => client.GET(
822
+ getToolSetToolsUrl(toolset_name),
823
+ init
824
+ ),
324
825
  getToolSets: (init) => client.GET(getToolSetsUrl, init),
325
826
  getToolset: (toolset_name, init) => client.GET(getToolsetUrl(toolset_name), init),
326
827
  getUserBucket: (init) => client.GET(getUserBucketUrl, init),
327
828
  getUserInfo: (init) => client.GET(getUserInfoUrl, init),
829
+ getUserLimits: (init) => client.GET(getUserLimitsUrl, init),
830
+ getUserUsage: (init) => client.GET(getUserUsageUrl, init),
831
+ grantExternalServiceConsent: (appid, id, init) => client.POST(
832
+ grantExternalServiceConsentUrl(appid, id),
833
+ init
834
+ ),
328
835
  grantPerRequestPermissions: (init) => client.POST(grantPerRequestPermissionsUrl, init),
836
+ interactClientChannel: (init) => client.POST(interactClientChannelUrl, init),
837
+ listCatalogSchemas: (init) => client.GET(listCatalogSchemasUrl, init),
329
838
  listCustomApplicationSchemas: (init) => client.GET(listCustomApplicationSchemasUrl, init),
839
+ listDeployments: (init) => client.GET(listDeploymentsUrl, init),
840
+ listExternalServices: (appid, init) => client.GET(
841
+ listExternalServicesUrl(appid),
842
+ init
843
+ ),
844
+ listFileConfigApplications: (init) => client.GET(listFileConfigApplicationsUrl, init),
845
+ listFileConfigCatalogSchemas: (init) => client.GET(listFileConfigCatalogSchemasUrl, init),
846
+ listFileConfigInterceptors: (init) => client.GET(listFileConfigInterceptorsUrl, init),
847
+ listFileConfigKeys: (init) => client.GET(listFileConfigKeysUrl, init),
848
+ listFileConfigModels: (init) => client.GET(listFileConfigModelsUrl, init),
849
+ listFileConfigRoles: (init) => client.GET(listFileConfigRolesUrl, init),
850
+ listFileConfigRoutes: (init) => client.GET(listFileConfigRoutesUrl, init),
851
+ listFileConfigSchemas: (init) => client.GET(listFileConfigSchemasUrl, init),
852
+ listFileConfigSettings: (init) => client.GET(listFileConfigSettingsUrl, init),
853
+ listFileConfigToolsets: (init) => client.GET(listFileConfigToolsetsUrl, init),
330
854
  listFilesFromCodeInterpreter: (init) => client.POST(listFilesFromCodeInterpreterUrl, init),
855
+ listPublishedResources: (init) => client.POST(listPublishedResourcesUrl, init),
856
+ listSkillFileMetadata: (bucket, path, filepath, init) => client.GET(
857
+ listSkillFileMetadataUrl(bucket, path, filepath),
858
+ init
859
+ ),
860
+ listSkillMetadata: (bucket, path, init) => client.GET(
861
+ listSkillMetadataUrl(bucket, path),
862
+ init
863
+ ),
864
+ migrateFileConfig: (init) => client.POST(migrateFileConfigUrl, init),
331
865
  moveResource: (init) => client.POST(moveResourceUrl, init),
866
+ offlineCredentialsSignIn: (init) => client.POST(offlineCredentialsSignInUrl, init),
867
+ offlineCredentialsSignOut: (init) => client.POST(offlineCredentialsSignOutUrl, init),
332
868
  openSession: (init) => client.POST(openSessionUrl, init),
869
+ postApplicationMcp: (deployment_name, init) => client.POST(
870
+ postApplicationMcpUrl(deployment_name),
871
+ init
872
+ ),
873
+ postToolSetMcp: (toolset_name, init) => client.POST(
874
+ postToolSetMcpUrl(toolset_name),
875
+ init
876
+ ),
877
+ putExternalService: (appid, id, init) => client.PUT(
878
+ putExternalServiceUrl(appid, id),
879
+ init
880
+ ),
333
881
  rateDeployment: (deployment_name, init) => client.POST(
334
882
  rateDeploymentUrl(deployment_name),
335
883
  init
@@ -337,12 +885,21 @@ function createSDK(opts) {
337
885
  redeployApplication: (init) => client.POST(redeployApplicationUrl, init),
338
886
  rejectPublication: (init) => client.POST(rejectPublicationUrl, init),
339
887
  reloadConfig: (init) => client.POST(reloadConfigUrl, init),
888
+ repairToolSet: (bucket, path, init) => client.POST(
889
+ repairToolSetUrl(bucket, path),
890
+ init
891
+ ),
892
+ reportClientChannel: (init) => client.POST(reportClientChannelUrl, init),
340
893
  requestUserConsent: (deployment_id, init) => client.GET(
341
894
  requestUserConsentUrl(deployment_id),
342
895
  init
343
896
  ),
344
897
  revokePerRequestPermissions: (init) => client.POST(revokePerRequestPermissionsUrl, init),
345
898
  revokeSharedResources: (init) => client.POST(revokeSharedResourcesUrl, init),
899
+ saveCatalogSchemaResource: (bucket, path, init) => client.PUT(
900
+ saveCatalogSchemaResourceUrl(bucket, path),
901
+ init
902
+ ),
346
903
  saveConversation: (bucket, conversation_path, init) => client.PUT(
347
904
  saveConversationUrl(bucket, conversation_path),
348
905
  init
@@ -351,10 +908,28 @@ function createSDK(opts) {
351
908
  saveCustomApplicationUrl(bucket, application_path),
352
909
  init
353
910
  ),
911
+ saveGlobalSettings: (bucket, path, init) => client.PUT(
912
+ saveGlobalSettingsUrl(bucket, path),
913
+ init
914
+ ),
915
+ saveInterceptor: (bucket, path, init) => client.PUT(
916
+ saveInterceptorUrl(bucket, path),
917
+ init
918
+ ),
919
+ saveKey: (bucket, path, init) => client.PUT(saveKeyUrl(bucket, path), init),
920
+ saveModel: (bucket, path, init) => client.PUT(saveModelUrl(bucket, path), init),
921
+ savePlatformApplication: (path, init) => client.PUT(
922
+ savePlatformApplicationUrl(path),
923
+ init
924
+ ),
925
+ savePlatformToolSet: (path, init) => client.PUT(savePlatformToolSetUrl(path), init),
354
926
  savePrompt: (bucket, prompt_path, init) => client.PUT(
355
927
  savePromptUrl(bucket, prompt_path),
356
928
  init
357
929
  ),
930
+ saveRole: (bucket, path, init) => client.PUT(saveRoleUrl(bucket, path), init),
931
+ saveRoute: (bucket, path, init) => client.PUT(saveRouteUrl(bucket, path), init),
932
+ saveSchema: (bucket, path, init) => client.PUT(saveSchemaUrl(bucket, path), init),
358
933
  saveToolSet: (bucket, toolset_path, init) => client.PUT(
359
934
  saveToolSetUrl(bucket, toolset_path),
360
935
  init
@@ -363,23 +938,42 @@ function createSDK(opts) {
363
938
  sendChatCompletionRequestUrl(deployment_name),
364
939
  init
365
940
  ),
366
- sendEmbeddingsRequest: (deployment_name, init) => client.POST(
367
- sendEmbeddingsRequestUrl(deployment_name),
368
- init
369
- ),
370
941
  shareResource: (init) => client.POST(shareResourceUrl, init),
942
+ subscribeClientChannel: (init) => client.POST(subscribeClientChannelUrl, init),
371
943
  subscribeToResources: (init) => client.POST(subscribeToResourcesUrl, init),
944
+ tokenize: (deployment_name, init) => client.POST(
945
+ tokenizeUrl(deployment_name),
946
+ init
947
+ ),
372
948
  toolSetSignout: (init) => client.POST(toolSetSignoutUrl, init),
373
949
  toolsetSignin: (init) => client.POST(toolsetSigninUrl, init),
374
950
  transferInputFile: (init) => client.POST(transferInputFileUrl, init),
375
951
  transferOutputFile: (init) => client.POST(transferOutputFileUrl, init),
952
+ truncatePrompt: (deployment_name, init) => client.POST(
953
+ truncatePromptUrl(deployment_name),
954
+ init
955
+ ),
376
956
  undeployApplication: (init) => client.POST(undeployApplicationUrl, init),
957
+ unsubscribeClientChannel: (init) => client.POST(unsubscribeClientChannelUrl, init),
377
958
  updatePublication: (init) => client.POST(updatePublicationUrl, init),
378
959
  uploadFile: (bucket, file_path, init) => client.PUT(
379
960
  uploadFileUrl(bucket, file_path),
380
961
  init
381
962
  ),
382
- uploadFileToCodeInterpreter: (init) => client.POST(uploadFileToCodeInterpreterUrl, init)
963
+ uploadFileToCodeInterpreter: (init) => client.POST(uploadFileToCodeInterpreterUrl, init),
964
+ uploadSkillFile: (bucket, path, filepath, init) => client.PUT(
965
+ uploadSkillFileUrl(bucket, path, filepath),
966
+ init
967
+ ),
968
+ uploadSkillFolder: (bucket, path, init) => client.PUT(
969
+ uploadSkillFolderUrl(bucket, path),
970
+ init
971
+ ),
972
+ validateConfigManifests: (init) => client.POST(validateConfigManifestsUrl, init),
973
+ withdrawExternalServiceConsent: (appid, id, init) => client.DELETE(
974
+ withdrawExternalServiceConsentUrl(appid, id),
975
+ init
976
+ )
383
977
  };
384
978
  }
385
979
  // Annotate the CommonJS export names for ESM import in node: