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