@epam/ai-dial-typescript-sdk 0.1.0-dev.4 → 0.1.0-dev.40
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/README.md +16 -14
- package/dist/index.cjs +677 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16933 -4320
- package/dist/index.d.ts +16933 -4320
- package/dist/index.js +677 -31
- package/dist/index.js.map +1 -1
- package/package.json +13 -6
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
|
|
46
|
-
return `/v1/
|
|
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) {
|
|
@@ -200,9 +474,16 @@ function createSDK(opts) {
|
|
|
200
474
|
fetch: opts.fetch
|
|
201
475
|
});
|
|
202
476
|
return {
|
|
203
|
-
acceptUserConsent: (deployment_id, init) => client.POST(
|
|
477
|
+
acceptUserConsent: (deployment_id, init) => client.POST(
|
|
478
|
+
acceptUserConsentUrl(deployment_id),
|
|
479
|
+
init
|
|
480
|
+
),
|
|
481
|
+
applyConfigManifests: (init) => client.POST(applyConfigManifestsUrl, init),
|
|
204
482
|
approvePublication: (init) => client.POST(approvePublicationUrl, init),
|
|
205
|
-
|
|
483
|
+
cancelResponseItem: (response_id, init) => client.POST(
|
|
484
|
+
cancelResponseItemUrl(response_id),
|
|
485
|
+
init
|
|
486
|
+
),
|
|
206
487
|
closeSession: (init) => client.POST(closeSessionUrl, init),
|
|
207
488
|
configurationDeployment: (deployment_name, init) => client.GET(
|
|
208
489
|
configurationDeploymentUrl(deployment_name),
|
|
@@ -210,7 +491,26 @@ function createSDK(opts) {
|
|
|
210
491
|
),
|
|
211
492
|
copyResource: (init) => client.POST(copyResourceUrl, init),
|
|
212
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
|
+
),
|
|
213
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
|
+
),
|
|
214
514
|
deleteConversation: (bucket, conversation_path, init) => client.DELETE(
|
|
215
515
|
deleteConversationUrl(bucket, conversation_path),
|
|
216
516
|
init
|
|
@@ -219,24 +519,135 @@ function createSDK(opts) {
|
|
|
219
519
|
deleteCustomApplicationUrl(bucket, application_path),
|
|
220
520
|
init
|
|
221
521
|
),
|
|
222
|
-
|
|
223
|
-
|
|
522
|
+
deleteExternalService: (appid, id, init) => client.DELETE(
|
|
523
|
+
deleteExternalServiceUrl(appid, id),
|
|
524
|
+
init
|
|
525
|
+
),
|
|
526
|
+
deleteFile: (bucket, file_path, init) => client.DELETE(
|
|
527
|
+
deleteFileUrl(bucket, file_path),
|
|
528
|
+
init
|
|
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
|
+
),
|
|
538
|
+
deleteInvitation: (invitation_id, init) => client.DELETE(
|
|
539
|
+
deleteInvitationUrl(invitation_id),
|
|
540
|
+
init
|
|
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
|
+
),
|
|
224
550
|
deleteNotifications: (init) => client.POST(deleteNotificationsUrl, init),
|
|
225
|
-
|
|
551
|
+
deletePlatformApplication: (path, init) => client.DELETE(
|
|
552
|
+
deletePlatformApplicationUrl(path),
|
|
553
|
+
init
|
|
554
|
+
),
|
|
555
|
+
deletePlatformToolSet: (path, init) => client.DELETE(
|
|
556
|
+
deletePlatformToolSetUrl(path),
|
|
557
|
+
init
|
|
558
|
+
),
|
|
559
|
+
deletePrompt: (bucket, prompt_path, init) => client.DELETE(
|
|
560
|
+
deletePromptUrl(bucket, prompt_path),
|
|
561
|
+
init
|
|
562
|
+
),
|
|
226
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
|
+
),
|
|
227
592
|
deleteToolSet: (bucket, toolset_path, init) => client.DELETE(
|
|
228
593
|
deleteToolSetUrl(bucket, toolset_path),
|
|
229
594
|
init
|
|
230
595
|
),
|
|
596
|
+
deleteToolSetMcp: (toolset_name, init) => client.DELETE(
|
|
597
|
+
deleteToolSetMcpUrl(toolset_name),
|
|
598
|
+
init
|
|
599
|
+
),
|
|
231
600
|
deployApplication: (init) => client.POST(deployApplicationUrl, init),
|
|
232
601
|
discardSharedResources: (init) => client.POST(discardSharedResourcesUrl, init),
|
|
233
|
-
downloadFile: (bucket, file_path, init) => client.GET(
|
|
602
|
+
downloadFile: (bucket, file_path, init) => client.GET(
|
|
603
|
+
downloadFileUrl(bucket, file_path),
|
|
604
|
+
init
|
|
605
|
+
),
|
|
234
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
|
+
),
|
|
235
619
|
executeCode: (init) => client.POST(executeCodeUrl, init),
|
|
236
|
-
|
|
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),
|
|
627
|
+
getApplication: (application_name, init) => client.GET(
|
|
628
|
+
getApplicationUrl(application_name),
|
|
629
|
+
init
|
|
630
|
+
),
|
|
237
631
|
getApplicationLogs: (init) => client.POST(getApplicationLogsUrl, init),
|
|
238
|
-
|
|
632
|
+
getApplicationMcpResources: (deployment_name, init) => client.GET(
|
|
633
|
+
getApplicationMcpResourcesUrl(deployment_name),
|
|
634
|
+
init
|
|
635
|
+
),
|
|
636
|
+
getApplicationMetadata: (bucket, path, init) => client.GET(
|
|
637
|
+
getApplicationMetadataUrl(bucket, path),
|
|
638
|
+
init
|
|
639
|
+
),
|
|
239
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),
|
|
240
651
|
getConversation: (bucket, conversation_path, init) => client.GET(
|
|
241
652
|
getConversationUrl(bucket, conversation_path),
|
|
242
653
|
init
|
|
@@ -254,41 +665,230 @@ function createSDK(opts) {
|
|
|
254
665
|
getCustomToolSetUrl(bucket, toolset_path),
|
|
255
666
|
init
|
|
256
667
|
),
|
|
257
|
-
getDeployment: (deployment_name, init) => client.GET(
|
|
258
|
-
|
|
668
|
+
getDeployment: (deployment_name, init) => client.GET(
|
|
669
|
+
getDeploymentUrl(deployment_name),
|
|
670
|
+
init
|
|
671
|
+
),
|
|
672
|
+
getDeploymentLimits: (deployment_name, init) => client.GET(
|
|
673
|
+
getDeploymentLimitsUrl(deployment_name),
|
|
674
|
+
init
|
|
675
|
+
),
|
|
259
676
|
getDeployments: (init) => client.GET(getDeploymentsUrl, init),
|
|
260
|
-
|
|
261
|
-
|
|
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
|
+
),
|
|
706
|
+
getFileMetadata: (bucket, path, init) => client.GET(
|
|
707
|
+
getFileMetadataUrl(bucket, path),
|
|
708
|
+
init
|
|
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
|
+
),
|
|
726
|
+
getInvitation: (invitation_id, init) => client.GET(
|
|
727
|
+
getInvitationUrl(invitation_id),
|
|
728
|
+
init
|
|
729
|
+
),
|
|
262
730
|
getInvitations: (init) => client.GET(getInvitationsUrl, init),
|
|
263
|
-
|
|
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),
|
|
737
|
+
getMetaSchemaOfCustomApplicationSchema: (init) => client.GET(
|
|
738
|
+
getMetaSchemaOfCustomApplicationSchemaUrl,
|
|
739
|
+
init
|
|
740
|
+
),
|
|
264
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
|
+
),
|
|
265
750
|
getModels: (init) => client.GET(getModelsUrl, init),
|
|
266
751
|
getNotifications: (init) => client.POST(getNotificationsUrl, init),
|
|
752
|
+
getOfflineCredentials: (init) => client.GET(getOfflineCredentialsUrl, init),
|
|
267
753
|
getPerRequestPermissions: (init) => client.POST(getPerRequestPermissionsUrl, init),
|
|
268
|
-
|
|
269
|
-
|
|
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
|
+
),
|
|
767
|
+
getPrompt: (bucket, prompt_path, init) => client.GET(
|
|
768
|
+
getPromptUrl(bucket, prompt_path),
|
|
769
|
+
init
|
|
770
|
+
),
|
|
771
|
+
getPromptMetadata: (bucket, path, init) => client.GET(
|
|
772
|
+
getPromptMetadataUrl(bucket, path),
|
|
773
|
+
init
|
|
774
|
+
),
|
|
270
775
|
getPublication: (init) => client.POST(getPublicationUrl, init),
|
|
271
776
|
getPublicationRules: (init) => client.POST(getPublicationRulesUrl, init),
|
|
272
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
|
+
),
|
|
273
797
|
getSession: (init) => client.POST(getSessionUrl, init),
|
|
274
798
|
getSharedResources: (init) => client.POST(getSharedResourcesUrl, init),
|
|
275
|
-
|
|
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
|
+
),
|
|
807
|
+
getToolSetMetadata: (bucket, path, init) => client.GET(
|
|
808
|
+
getToolSetMetadataUrl(bucket, path),
|
|
809
|
+
init
|
|
810
|
+
),
|
|
811
|
+
getToolSetTools: (toolset_name, init) => client.GET(
|
|
812
|
+
getToolSetToolsUrl(toolset_name),
|
|
813
|
+
init
|
|
814
|
+
),
|
|
276
815
|
getToolSets: (init) => client.GET(getToolSetsUrl, init),
|
|
277
816
|
getToolset: (toolset_name, init) => client.GET(getToolsetUrl(toolset_name), init),
|
|
278
817
|
getUserBucket: (init) => client.GET(getUserBucketUrl, init),
|
|
279
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
|
+
),
|
|
280
825
|
grantPerRequestPermissions: (init) => client.POST(grantPerRequestPermissionsUrl, init),
|
|
826
|
+
interactClientChannel: (init) => client.POST(interactClientChannelUrl, init),
|
|
827
|
+
listCatalogSchemas: (init) => client.GET(listCatalogSchemasUrl, init),
|
|
281
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),
|
|
282
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
|
+
),
|
|
283
854
|
moveResource: (init) => client.POST(moveResourceUrl, init),
|
|
855
|
+
offlineCredentialsSignIn: (init) => client.POST(offlineCredentialsSignInUrl, init),
|
|
856
|
+
offlineCredentialsSignOut: (init) => client.POST(offlineCredentialsSignOutUrl, init),
|
|
284
857
|
openSession: (init) => client.POST(openSessionUrl, init),
|
|
285
|
-
|
|
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
|
+
),
|
|
870
|
+
rateDeployment: (deployment_name, init) => client.POST(
|
|
871
|
+
rateDeploymentUrl(deployment_name),
|
|
872
|
+
init
|
|
873
|
+
),
|
|
286
874
|
redeployApplication: (init) => client.POST(redeployApplicationUrl, init),
|
|
287
875
|
rejectPublication: (init) => client.POST(rejectPublicationUrl, init),
|
|
288
876
|
reloadConfig: (init) => client.POST(reloadConfigUrl, init),
|
|
289
|
-
|
|
877
|
+
repairToolSet: (bucket, path, init) => client.POST(
|
|
878
|
+
repairToolSetUrl(bucket, path),
|
|
879
|
+
init
|
|
880
|
+
),
|
|
881
|
+
reportClientChannel: (init) => client.POST(reportClientChannelUrl, init),
|
|
882
|
+
requestUserConsent: (deployment_id, init) => client.GET(
|
|
883
|
+
requestUserConsentUrl(deployment_id),
|
|
884
|
+
init
|
|
885
|
+
),
|
|
290
886
|
revokePerRequestPermissions: (init) => client.POST(revokePerRequestPermissionsUrl, init),
|
|
291
887
|
revokeSharedResources: (init) => client.POST(revokeSharedResourcesUrl, init),
|
|
888
|
+
saveCatalogSchemaResource: (bucket, path, init) => client.PUT(
|
|
889
|
+
saveCatalogSchemaResourceUrl(bucket, path),
|
|
890
|
+
init
|
|
891
|
+
),
|
|
292
892
|
saveConversation: (bucket, conversation_path, init) => client.PUT(
|
|
293
893
|
saveConversationUrl(bucket, conversation_path),
|
|
294
894
|
init
|
|
@@ -297,26 +897,72 @@ function createSDK(opts) {
|
|
|
297
897
|
saveCustomApplicationUrl(bucket, application_path),
|
|
298
898
|
init
|
|
299
899
|
),
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
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),
|
|
915
|
+
savePrompt: (bucket, prompt_path, init) => client.PUT(
|
|
916
|
+
savePromptUrl(bucket, prompt_path),
|
|
917
|
+
init
|
|
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),
|
|
922
|
+
saveToolSet: (bucket, toolset_path, init) => client.PUT(
|
|
923
|
+
saveToolSetUrl(bucket, toolset_path),
|
|
304
924
|
init
|
|
305
925
|
),
|
|
306
|
-
|
|
307
|
-
|
|
926
|
+
sendChatCompletionRequest: (deployment_name, init) => client.POST(
|
|
927
|
+
sendChatCompletionRequestUrl(deployment_name),
|
|
308
928
|
init
|
|
309
929
|
),
|
|
310
930
|
shareResource: (init) => client.POST(shareResourceUrl, init),
|
|
931
|
+
subscribeClientChannel: (init) => client.POST(subscribeClientChannelUrl, init),
|
|
311
932
|
subscribeToResources: (init) => client.POST(subscribeToResourcesUrl, init),
|
|
933
|
+
tokenize: (deployment_name, init) => client.POST(
|
|
934
|
+
tokenizeUrl(deployment_name),
|
|
935
|
+
init
|
|
936
|
+
),
|
|
312
937
|
toolSetSignout: (init) => client.POST(toolSetSignoutUrl, init),
|
|
313
938
|
toolsetSignin: (init) => client.POST(toolsetSigninUrl, init),
|
|
314
939
|
transferInputFile: (init) => client.POST(transferInputFileUrl, init),
|
|
315
940
|
transferOutputFile: (init) => client.POST(transferOutputFileUrl, init),
|
|
941
|
+
truncatePrompt: (deployment_name, init) => client.POST(
|
|
942
|
+
truncatePromptUrl(deployment_name),
|
|
943
|
+
init
|
|
944
|
+
),
|
|
316
945
|
undeployApplication: (init) => client.POST(undeployApplicationUrl, init),
|
|
946
|
+
unsubscribeClientChannel: (init) => client.POST(unsubscribeClientChannelUrl, init),
|
|
317
947
|
updatePublication: (init) => client.POST(updatePublicationUrl, init),
|
|
318
|
-
uploadFile: (bucket, file_path, init) => client.PUT(
|
|
319
|
-
|
|
948
|
+
uploadFile: (bucket, file_path, init) => client.PUT(
|
|
949
|
+
uploadFileUrl(bucket, file_path),
|
|
950
|
+
init
|
|
951
|
+
),
|
|
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
|
+
)
|
|
320
966
|
};
|
|
321
967
|
}
|
|
322
968
|
// Annotate the CommonJS export names for ESM import in node:
|