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