@epam/ai-dial-typescript-sdk 0.1.0-dev.3 → 0.1.0-dev.31
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 +482 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12529 -4286
- package/dist/index.d.ts +12529 -4286
- package/dist/index.js +482 -31
- package/dist/index.js.map +1 -1
- package/package.json +12 -8
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,34 +52,88 @@ 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";
|
|
55
65
|
var deleteConversationUrl = (bucket, conversation_path) => {
|
|
56
66
|
return `/v1/conversations/${bucket}/${conversation_path}`;
|
|
57
67
|
};
|
|
58
68
|
var deleteCustomApplicationUrl = (bucket, application_path) => {
|
|
59
69
|
return `/v1/applications/${bucket}/${application_path}`;
|
|
60
70
|
};
|
|
71
|
+
var deleteExternalServiceUrl = (appid, id) => {
|
|
72
|
+
return `/v1/applications/${appid}/external-services/${id}`;
|
|
73
|
+
};
|
|
61
74
|
var deleteFileUrl = (bucket, file_path) => {
|
|
62
75
|
return `/v1/files/${bucket}/${file_path}`;
|
|
63
76
|
};
|
|
77
|
+
var deleteGlobalSettingsUrl = (bucket, path) => {
|
|
78
|
+
return `/v1/settings/${bucket}/${path}`;
|
|
79
|
+
};
|
|
80
|
+
var deleteInterceptorUrl = (bucket, path) => {
|
|
81
|
+
return `/v1/interceptors/${bucket}/${path}`;
|
|
82
|
+
};
|
|
64
83
|
var deleteInvitationUrl = (invitation_id) => {
|
|
65
84
|
return `/v1/invitations/${invitation_id}`;
|
|
66
85
|
};
|
|
86
|
+
var deleteKeyUrl = (bucket, path) => {
|
|
87
|
+
return `/v1/keys/${bucket}/${path}`;
|
|
88
|
+
};
|
|
89
|
+
var deleteModelUrl = (bucket, path) => {
|
|
90
|
+
return `/v1/models/${bucket}/${path}`;
|
|
91
|
+
};
|
|
67
92
|
var deleteNotificationsUrl = "/v1/ops/notification/delete";
|
|
68
93
|
var deletePromptUrl = (bucket, prompt_path) => {
|
|
69
94
|
return `/v1/prompts/${bucket}/${prompt_path}`;
|
|
70
95
|
};
|
|
71
96
|
var deletePublicationUrl = "/v1/ops/publication/delete";
|
|
97
|
+
var deleteResponseItemUrl = (response_id) => {
|
|
98
|
+
return `/openai/v1/responses/${response_id}`;
|
|
99
|
+
};
|
|
100
|
+
var deleteRoleUrl = (bucket, path) => {
|
|
101
|
+
return `/v1/roles/${bucket}/${path}`;
|
|
102
|
+
};
|
|
103
|
+
var deleteRouteUrl = (bucket, path) => {
|
|
104
|
+
return `/v1/routes/${bucket}/${path}`;
|
|
105
|
+
};
|
|
106
|
+
var deleteSchemaUrl = (bucket, path) => {
|
|
107
|
+
return `/v1/schemas/${bucket}/${path}`;
|
|
108
|
+
};
|
|
109
|
+
var deleteSkillFileUrl = (bucket, path, filepath) => {
|
|
110
|
+
return `/v2/skills/${bucket}/${path}/files/${filepath}`;
|
|
111
|
+
};
|
|
112
|
+
var deleteSkillFolderUrl = (bucket, path) => {
|
|
113
|
+
return `/v2/skills/${bucket}/${path}`;
|
|
114
|
+
};
|
|
72
115
|
var deleteToolSetUrl = (bucket, toolset_path) => {
|
|
73
116
|
return `/v1/toolsets/${bucket}/${toolset_path}`;
|
|
74
117
|
};
|
|
118
|
+
var deleteToolSetMcpUrl = (toolset_name) => {
|
|
119
|
+
return `/v1/toolset/${toolset_name}/mcp`;
|
|
120
|
+
};
|
|
75
121
|
var deployApplicationUrl = "/v1/ops/application/deploy";
|
|
76
122
|
var discardSharedResourcesUrl = "/v1/ops/resource/share/discard";
|
|
77
123
|
var downloadFileUrl = (bucket, file_path) => {
|
|
78
124
|
return `/v1/files/${bucket}/${file_path}`;
|
|
79
125
|
};
|
|
80
126
|
var downloadFileFromCodeInterpreterUrl = "/v1/ops/code_interpreter/download_file";
|
|
127
|
+
var downloadSkillFileUrl = (bucket, path, filepath) => {
|
|
128
|
+
return `/v2/skills/${bucket}/${path}/files/${filepath}`;
|
|
129
|
+
};
|
|
130
|
+
var downloadSkillFolderUrl = (bucket, path) => {
|
|
131
|
+
return `/v2/skills/${bucket}/${path}`;
|
|
132
|
+
};
|
|
81
133
|
var executeCodeUrl = "/v1/ops/code_interpreter/execute_code";
|
|
134
|
+
var externalServiceGetCredentialsUrl = "/v1/ops/external-service/credentials";
|
|
135
|
+
var externalServiceSignInUrl = "/v1/ops/external-service/signin";
|
|
136
|
+
var externalServiceSignOutUrl = "/v1/ops/external-service/signout";
|
|
82
137
|
var getApplicationUrl = (application_name) => {
|
|
83
138
|
return `/openai/applications/${application_name}`;
|
|
84
139
|
};
|
|
@@ -87,6 +142,7 @@ var getApplicationMetadataUrl = (bucket, path) => {
|
|
|
87
142
|
return `/v1/metadata/applications/${bucket}/${path}`;
|
|
88
143
|
};
|
|
89
144
|
var getApplicationsUrl = "/openai/applications";
|
|
145
|
+
var getConfigHealthUrl = "/v1/admin/health/config";
|
|
90
146
|
var getConversationUrl = (bucket, conversation_path) => {
|
|
91
147
|
return `/v1/conversations/${bucket}/${conversation_path}`;
|
|
92
148
|
};
|
|
@@ -107,17 +163,62 @@ var getDeploymentLimitsUrl = (deployment_name) => {
|
|
|
107
163
|
return `/v1/deployments/${deployment_name}/limits`;
|
|
108
164
|
};
|
|
109
165
|
var getDeploymentsUrl = "/openai/deployments";
|
|
166
|
+
var getExternalServiceUrl = (appid, id) => {
|
|
167
|
+
return `/v1/applications/${appid}/external-services/${id}`;
|
|
168
|
+
};
|
|
169
|
+
var getFileConfigInterceptorUrl = (name) => {
|
|
170
|
+
return `/v1/admin/config/file/interceptors/${name}`;
|
|
171
|
+
};
|
|
172
|
+
var getFileConfigModelUrl = (name) => {
|
|
173
|
+
return `/v1/admin/config/file/models/${name}`;
|
|
174
|
+
};
|
|
175
|
+
var getFileConfigRoleUrl = (name) => {
|
|
176
|
+
return `/v1/admin/config/file/roles/${name}`;
|
|
177
|
+
};
|
|
178
|
+
var getFileConfigRouteUrl = (name) => {
|
|
179
|
+
return `/v1/admin/config/file/routes/${name}`;
|
|
180
|
+
};
|
|
181
|
+
var getFileConfigSchemaUrl = (name) => {
|
|
182
|
+
return `/v1/admin/config/file/schemas/${name}`;
|
|
183
|
+
};
|
|
184
|
+
var getFileConfigSettingsUrl = (name) => {
|
|
185
|
+
return `/v1/admin/config/file/settings/${name}`;
|
|
186
|
+
};
|
|
110
187
|
var getFileMetadataUrl = (bucket, path) => {
|
|
111
188
|
return `/v1/metadata/files/${bucket}/${path}`;
|
|
112
189
|
};
|
|
190
|
+
var getGlobalSettingsUrl = (bucket, path) => {
|
|
191
|
+
return `/v1/settings/${bucket}/${path}`;
|
|
192
|
+
};
|
|
193
|
+
var getGlobalSettingsMetadataUrl = (bucket, path) => {
|
|
194
|
+
return `/v1/metadata/settings/${bucket}/${path}`;
|
|
195
|
+
};
|
|
196
|
+
var getInterceptorUrl = (bucket, path) => {
|
|
197
|
+
return `/v1/interceptors/${bucket}/${path}`;
|
|
198
|
+
};
|
|
199
|
+
var getInterceptorMetadataUrl = (bucket, path) => {
|
|
200
|
+
return `/v1/metadata/interceptors/${bucket}/${path}`;
|
|
201
|
+
};
|
|
113
202
|
var getInvitationUrl = (invitation_id) => {
|
|
114
203
|
return `/v1/invitations/${invitation_id}`;
|
|
115
204
|
};
|
|
116
205
|
var getInvitationsUrl = "/v1/invitations";
|
|
206
|
+
var getKeyUrl = (bucket, path) => {
|
|
207
|
+
return `/v1/keys/${bucket}/${path}`;
|
|
208
|
+
};
|
|
209
|
+
var getKeyMetadataUrl = (bucket, path) => {
|
|
210
|
+
return `/v1/metadata/keys/${bucket}/${path}`;
|
|
211
|
+
};
|
|
117
212
|
var getMetaSchemaOfCustomApplicationSchemaUrl = "/v1/application_type_schemas/meta_schema";
|
|
118
213
|
var getModelUrl = (model_name) => {
|
|
119
214
|
return `/openai/models/${model_name}`;
|
|
120
215
|
};
|
|
216
|
+
var getModelByPathUrl = (bucket, path) => {
|
|
217
|
+
return `/v1/models/${bucket}/${path}`;
|
|
218
|
+
};
|
|
219
|
+
var getModelMetadataUrl = (bucket, path) => {
|
|
220
|
+
return `/v1/metadata/models/${bucket}/${path}`;
|
|
221
|
+
};
|
|
121
222
|
var getModelsUrl = "/openai/models";
|
|
122
223
|
var getNotificationsUrl = "/v1/ops/notification/list";
|
|
123
224
|
var getPerRequestPermissionsUrl = "/v1/ops/resource/per-request-permissions/list";
|
|
@@ -130,11 +231,41 @@ var getPromptMetadataUrl = (bucket, path) => {
|
|
|
130
231
|
var getPublicationUrl = "/v1/ops/publication/get";
|
|
131
232
|
var getPublicationRulesUrl = "/v1/ops/publication/rule/list";
|
|
132
233
|
var getPublicationsUrl = "/v1/ops/publication/list";
|
|
234
|
+
var getResponseItemUrl = (response_id) => {
|
|
235
|
+
return `/openai/v1/responses/${response_id}`;
|
|
236
|
+
};
|
|
237
|
+
var getRoleUrl = (bucket, path) => {
|
|
238
|
+
return `/v1/roles/${bucket}/${path}`;
|
|
239
|
+
};
|
|
240
|
+
var getRoleMetadataUrl = (bucket, path) => {
|
|
241
|
+
return `/v1/metadata/roles/${bucket}/${path}`;
|
|
242
|
+
};
|
|
243
|
+
var getRouteUrl = (bucket, path) => {
|
|
244
|
+
return `/v1/routes/${bucket}/${path}`;
|
|
245
|
+
};
|
|
246
|
+
var getRouteMetadataUrl = (bucket, path) => {
|
|
247
|
+
return `/v1/metadata/routes/${bucket}/${path}`;
|
|
248
|
+
};
|
|
249
|
+
var getSchemaUrl = (bucket, path) => {
|
|
250
|
+
return `/v1/schemas/${bucket}/${path}`;
|
|
251
|
+
};
|
|
252
|
+
var getSchemaMetadataUrl = (bucket, path) => {
|
|
253
|
+
return `/v1/metadata/schemas/${bucket}/${path}`;
|
|
254
|
+
};
|
|
133
255
|
var getSessionUrl = "/v1/ops/code_interpreter/get_session";
|
|
134
256
|
var getSharedResourcesUrl = "/v1/ops/resource/share/list";
|
|
257
|
+
var getToolSetAllowedToolsUrl = (toolset_name) => {
|
|
258
|
+
return `/v1/toolset/${toolset_name}/allowed-tools`;
|
|
259
|
+
};
|
|
260
|
+
var getToolSetMcpUrl = (toolset_name) => {
|
|
261
|
+
return `/v1/toolset/${toolset_name}/mcp`;
|
|
262
|
+
};
|
|
135
263
|
var getToolSetMetadataUrl = (bucket, path) => {
|
|
136
264
|
return `/v1/metadata/toolsets/${bucket}/${path}`;
|
|
137
265
|
};
|
|
266
|
+
var getToolSetToolsUrl = (toolset_name) => {
|
|
267
|
+
return `/v1/toolset/${toolset_name}/tools`;
|
|
268
|
+
};
|
|
138
269
|
var getToolSetsUrl = "/openai/toolsets";
|
|
139
270
|
var getToolsetUrl = (toolset_name) => {
|
|
140
271
|
return `/openai/toolsets/${toolset_name}`;
|
|
@@ -142,16 +273,38 @@ var getToolsetUrl = (toolset_name) => {
|
|
|
142
273
|
var getUserBucketUrl = "/v1/bucket";
|
|
143
274
|
var getUserInfoUrl = "/v1/user/info";
|
|
144
275
|
var grantPerRequestPermissionsUrl = "/v1/ops/resource/per-request-permissions/grant";
|
|
276
|
+
var interactClientChannelUrl = "/v1/ops/client-channel/interact";
|
|
145
277
|
var listCustomApplicationSchemasUrl = "/v1/application_type_schemas/schemas";
|
|
278
|
+
var listDeploymentsUrl = "/v1/deployments";
|
|
279
|
+
var listExternalServicesUrl = (appid) => {
|
|
280
|
+
return `/v1/applications/${appid}/external-services`;
|
|
281
|
+
};
|
|
282
|
+
var listFileConfigInterceptorsUrl = "/v1/admin/config/file/interceptors";
|
|
283
|
+
var listFileConfigModelsUrl = "/v1/admin/config/file/models";
|
|
284
|
+
var listFileConfigRolesUrl = "/v1/admin/config/file/roles";
|
|
285
|
+
var listFileConfigRoutesUrl = "/v1/admin/config/file/routes";
|
|
286
|
+
var listFileConfigSchemasUrl = "/v1/admin/config/file/schemas";
|
|
287
|
+
var listFileConfigSettingsUrl = "/v1/admin/config/file/settings";
|
|
146
288
|
var listFilesFromCodeInterpreterUrl = "/v1/ops/code_interpreter/list_files";
|
|
289
|
+
var listPublishedResourcesUrl = "/v1/ops/publication/resource/list";
|
|
147
290
|
var moveResourceUrl = "/v1/ops/resource/move";
|
|
148
291
|
var openSessionUrl = "/v1/ops/code_interpreter/open_session";
|
|
292
|
+
var postApplicationMcpUrl = (deployment_name) => {
|
|
293
|
+
return `/v1/deployments/${deployment_name}/mcp`;
|
|
294
|
+
};
|
|
295
|
+
var postToolSetMcpUrl = (toolset_name) => {
|
|
296
|
+
return `/v1/toolset/${toolset_name}/mcp`;
|
|
297
|
+
};
|
|
298
|
+
var putExternalServiceUrl = (appid, id) => {
|
|
299
|
+
return `/v1/applications/${appid}/external-services/${id}`;
|
|
300
|
+
};
|
|
149
301
|
var rateDeploymentUrl = (deployment_name) => {
|
|
150
302
|
return `/v1/${deployment_name}/rate`;
|
|
151
303
|
};
|
|
152
304
|
var redeployApplicationUrl = "/v1/ops/application/redeploy";
|
|
153
305
|
var rejectPublicationUrl = "/v1/ops/publication/reject";
|
|
154
306
|
var reloadConfigUrl = "/v1/ops/config/reload";
|
|
307
|
+
var reportClientChannelUrl = "/v1/ops/client-channel/report";
|
|
155
308
|
var requestUserConsentUrl = (deployment_id) => {
|
|
156
309
|
return `/v1/consent/${deployment_id}`;
|
|
157
310
|
};
|
|
@@ -163,30 +316,63 @@ var saveConversationUrl = (bucket, conversation_path) => {
|
|
|
163
316
|
var saveCustomApplicationUrl = (bucket, application_path) => {
|
|
164
317
|
return `/v1/applications/${bucket}/${application_path}`;
|
|
165
318
|
};
|
|
319
|
+
var saveGlobalSettingsUrl = (bucket, path) => {
|
|
320
|
+
return `/v1/settings/${bucket}/${path}`;
|
|
321
|
+
};
|
|
322
|
+
var saveInterceptorUrl = (bucket, path) => {
|
|
323
|
+
return `/v1/interceptors/${bucket}/${path}`;
|
|
324
|
+
};
|
|
325
|
+
var saveKeyUrl = (bucket, path) => {
|
|
326
|
+
return `/v1/keys/${bucket}/${path}`;
|
|
327
|
+
};
|
|
328
|
+
var saveModelUrl = (bucket, path) => {
|
|
329
|
+
return `/v1/models/${bucket}/${path}`;
|
|
330
|
+
};
|
|
166
331
|
var savePromptUrl = (bucket, prompt_path) => {
|
|
167
332
|
return `/v1/prompts/${bucket}/${prompt_path}`;
|
|
168
333
|
};
|
|
334
|
+
var saveRoleUrl = (bucket, path) => {
|
|
335
|
+
return `/v1/roles/${bucket}/${path}`;
|
|
336
|
+
};
|
|
337
|
+
var saveRouteUrl = (bucket, path) => {
|
|
338
|
+
return `/v1/routes/${bucket}/${path}`;
|
|
339
|
+
};
|
|
340
|
+
var saveSchemaUrl = (bucket, path) => {
|
|
341
|
+
return `/v1/schemas/${bucket}/${path}`;
|
|
342
|
+
};
|
|
169
343
|
var saveToolSetUrl = (bucket, toolset_path) => {
|
|
170
344
|
return `/v1/toolsets/${bucket}/${toolset_path}`;
|
|
171
345
|
};
|
|
172
346
|
var sendChatCompletionRequestUrl = (deployment_name) => {
|
|
173
347
|
return `/openai/deployments/${deployment_name}/chat/completions`;
|
|
174
348
|
};
|
|
175
|
-
var sendEmbeddingsRequestUrl = (deployment_name) => {
|
|
176
|
-
return `/openai/deployments/${deployment_name}/embeddings`;
|
|
177
|
-
};
|
|
178
349
|
var shareResourceUrl = "/v1/ops/resource/share/create";
|
|
350
|
+
var subscribeClientChannelUrl = "/v1/ops/client-channel/subscribe";
|
|
179
351
|
var subscribeToResourcesUrl = "/v1/ops/resource/subscribe";
|
|
352
|
+
var tokenizeUrl = (deployment_name) => {
|
|
353
|
+
return `/v1/deployments/${deployment_name}/tokenize`;
|
|
354
|
+
};
|
|
180
355
|
var toolSetSignoutUrl = "/v1/ops/toolset/signout";
|
|
181
356
|
var toolsetSigninUrl = "/v1/ops/toolset/signin";
|
|
182
357
|
var transferInputFileUrl = "/v1/ops/code_interpreter/transfer_input_file";
|
|
183
358
|
var transferOutputFileUrl = "/v1/ops/code_interpreter/transfer_output_file";
|
|
359
|
+
var truncatePromptUrl = (deployment_name) => {
|
|
360
|
+
return `/v1/deployments/${deployment_name}/truncate_prompt`;
|
|
361
|
+
};
|
|
184
362
|
var undeployApplicationUrl = "/v1/ops/application/undeploy";
|
|
363
|
+
var unsubscribeClientChannelUrl = "/v1/ops/client-channel/unsubscribe";
|
|
185
364
|
var updatePublicationUrl = "/v1/ops/publication/update";
|
|
186
365
|
var uploadFileUrl = (bucket, file_path) => {
|
|
187
366
|
return `/v1/files/${bucket}/${file_path}`;
|
|
188
367
|
};
|
|
189
368
|
var uploadFileToCodeInterpreterUrl = "/v1/ops/code_interpreter/upload_file";
|
|
369
|
+
var uploadSkillFileUrl = (bucket, path, filepath) => {
|
|
370
|
+
return `/v2/skills/${bucket}/${path}/files/${filepath}`;
|
|
371
|
+
};
|
|
372
|
+
var uploadSkillFolderUrl = (bucket, path) => {
|
|
373
|
+
return `/v2/skills/${bucket}/${path}`;
|
|
374
|
+
};
|
|
375
|
+
var validateConfigManifestsUrl = "/v1/admin/validate";
|
|
190
376
|
|
|
191
377
|
// src/client.ts
|
|
192
378
|
function createSDK(opts) {
|
|
@@ -200,9 +386,16 @@ function createSDK(opts) {
|
|
|
200
386
|
fetch: opts.fetch
|
|
201
387
|
});
|
|
202
388
|
return {
|
|
203
|
-
acceptUserConsent: (deployment_id, init) => client.POST(
|
|
389
|
+
acceptUserConsent: (deployment_id, init) => client.POST(
|
|
390
|
+
acceptUserConsentUrl(deployment_id),
|
|
391
|
+
init
|
|
392
|
+
),
|
|
393
|
+
applyConfigManifests: (init) => client.POST(applyConfigManifestsUrl, init),
|
|
204
394
|
approvePublication: (init) => client.POST(approvePublicationUrl, init),
|
|
205
|
-
|
|
395
|
+
cancelResponseItem: (response_id, init) => client.POST(
|
|
396
|
+
cancelResponseItemUrl(response_id),
|
|
397
|
+
init
|
|
398
|
+
),
|
|
206
399
|
closeSession: (init) => client.POST(closeSessionUrl, init),
|
|
207
400
|
configurationDeployment: (deployment_name, init) => client.GET(
|
|
208
401
|
configurationDeploymentUrl(deployment_name),
|
|
@@ -210,7 +403,18 @@ function createSDK(opts) {
|
|
|
210
403
|
),
|
|
211
404
|
copyResource: (init) => client.POST(copyResourceUrl, init),
|
|
212
405
|
copySharedResources: (init) => client.POST(copySharedResourcesUrl, init),
|
|
406
|
+
countAnthropicMessageTokens: (init) => client.POST(countAnthropicMessageTokensUrl, init),
|
|
407
|
+
createAnthropicMessage: (init) => client.POST(createAnthropicMessageUrl, init),
|
|
408
|
+
createCompletion: (deployment_name, init) => client.POST(
|
|
409
|
+
createCompletionUrl(deployment_name),
|
|
410
|
+
init
|
|
411
|
+
),
|
|
412
|
+
createEmbedding: (deployment_name, init) => client.POST(
|
|
413
|
+
createEmbeddingUrl(deployment_name),
|
|
414
|
+
init
|
|
415
|
+
),
|
|
213
416
|
createPublication: (init) => client.POST(createPublicationUrl, init),
|
|
417
|
+
createResponse: (init) => client.POST(createResponseUrl, init),
|
|
214
418
|
deleteConversation: (bucket, conversation_path, init) => client.DELETE(
|
|
215
419
|
deleteConversationUrl(bucket, conversation_path),
|
|
216
420
|
init
|
|
@@ -219,24 +423,102 @@ function createSDK(opts) {
|
|
|
219
423
|
deleteCustomApplicationUrl(bucket, application_path),
|
|
220
424
|
init
|
|
221
425
|
),
|
|
222
|
-
|
|
223
|
-
|
|
426
|
+
deleteExternalService: (appid, id, init) => client.DELETE(
|
|
427
|
+
deleteExternalServiceUrl(appid, id),
|
|
428
|
+
init
|
|
429
|
+
),
|
|
430
|
+
deleteFile: (bucket, file_path, init) => client.DELETE(
|
|
431
|
+
deleteFileUrl(bucket, file_path),
|
|
432
|
+
init
|
|
433
|
+
),
|
|
434
|
+
deleteGlobalSettings: (bucket, path, init) => client.DELETE(
|
|
435
|
+
deleteGlobalSettingsUrl(bucket, path),
|
|
436
|
+
init
|
|
437
|
+
),
|
|
438
|
+
deleteInterceptor: (bucket, path, init) => client.DELETE(
|
|
439
|
+
deleteInterceptorUrl(bucket, path),
|
|
440
|
+
init
|
|
441
|
+
),
|
|
442
|
+
deleteInvitation: (invitation_id, init) => client.DELETE(
|
|
443
|
+
deleteInvitationUrl(invitation_id),
|
|
444
|
+
init
|
|
445
|
+
),
|
|
446
|
+
deleteKey: (bucket, path, init) => client.DELETE(
|
|
447
|
+
deleteKeyUrl(bucket, path),
|
|
448
|
+
init
|
|
449
|
+
),
|
|
450
|
+
deleteModel: (bucket, path, init) => client.DELETE(
|
|
451
|
+
deleteModelUrl(bucket, path),
|
|
452
|
+
init
|
|
453
|
+
),
|
|
224
454
|
deleteNotifications: (init) => client.POST(deleteNotificationsUrl, init),
|
|
225
|
-
deletePrompt: (bucket, prompt_path, init) => client.DELETE(
|
|
455
|
+
deletePrompt: (bucket, prompt_path, init) => client.DELETE(
|
|
456
|
+
deletePromptUrl(bucket, prompt_path),
|
|
457
|
+
init
|
|
458
|
+
),
|
|
226
459
|
deletePublication: (init) => client.POST(deletePublicationUrl, init),
|
|
460
|
+
deleteResponseItem: (response_id, init) => client.DELETE(
|
|
461
|
+
deleteResponseItemUrl(response_id),
|
|
462
|
+
init
|
|
463
|
+
),
|
|
464
|
+
deleteRole: (bucket, path, init) => client.DELETE(
|
|
465
|
+
deleteRoleUrl(bucket, path),
|
|
466
|
+
init
|
|
467
|
+
),
|
|
468
|
+
deleteRoute: (bucket, path, init) => client.DELETE(
|
|
469
|
+
deleteRouteUrl(bucket, path),
|
|
470
|
+
init
|
|
471
|
+
),
|
|
472
|
+
deleteSchema: (bucket, path, init) => client.DELETE(
|
|
473
|
+
deleteSchemaUrl(bucket, path),
|
|
474
|
+
init
|
|
475
|
+
),
|
|
476
|
+
deleteSkillFile: (bucket, path, filepath, init) => client.DELETE(
|
|
477
|
+
deleteSkillFileUrl(bucket, path, filepath),
|
|
478
|
+
init
|
|
479
|
+
),
|
|
480
|
+
deleteSkillFolder: (bucket, path, init) => client.DELETE(
|
|
481
|
+
deleteSkillFolderUrl(bucket, path),
|
|
482
|
+
init
|
|
483
|
+
),
|
|
227
484
|
deleteToolSet: (bucket, toolset_path, init) => client.DELETE(
|
|
228
485
|
deleteToolSetUrl(bucket, toolset_path),
|
|
229
486
|
init
|
|
230
487
|
),
|
|
488
|
+
deleteToolSetMcp: (toolset_name, init) => client.DELETE(
|
|
489
|
+
deleteToolSetMcpUrl(toolset_name),
|
|
490
|
+
init
|
|
491
|
+
),
|
|
231
492
|
deployApplication: (init) => client.POST(deployApplicationUrl, init),
|
|
232
493
|
discardSharedResources: (init) => client.POST(discardSharedResourcesUrl, init),
|
|
233
|
-
downloadFile: (bucket, file_path, init) => client.GET(
|
|
494
|
+
downloadFile: (bucket, file_path, init) => client.GET(
|
|
495
|
+
downloadFileUrl(bucket, file_path),
|
|
496
|
+
init
|
|
497
|
+
),
|
|
234
498
|
downloadFileFromCodeInterpreter: (init) => client.POST(downloadFileFromCodeInterpreterUrl, init),
|
|
499
|
+
downloadSkillFile: (bucket, path, filepath, init) => client.GET(
|
|
500
|
+
downloadSkillFileUrl(bucket, path, filepath),
|
|
501
|
+
init
|
|
502
|
+
),
|
|
503
|
+
downloadSkillFolder: (bucket, path, init) => client.GET(
|
|
504
|
+
downloadSkillFolderUrl(bucket, path),
|
|
505
|
+
init
|
|
506
|
+
),
|
|
235
507
|
executeCode: (init) => client.POST(executeCodeUrl, init),
|
|
236
|
-
|
|
508
|
+
externalServiceGetCredentials: (init) => client.POST(externalServiceGetCredentialsUrl, init),
|
|
509
|
+
externalServiceSignIn: (init) => client.POST(externalServiceSignInUrl, init),
|
|
510
|
+
externalServiceSignOut: (init) => client.POST(externalServiceSignOutUrl, init),
|
|
511
|
+
getApplication: (application_name, init) => client.GET(
|
|
512
|
+
getApplicationUrl(application_name),
|
|
513
|
+
init
|
|
514
|
+
),
|
|
237
515
|
getApplicationLogs: (init) => client.POST(getApplicationLogsUrl, init),
|
|
238
|
-
getApplicationMetadata: (bucket, path, init) => client.GET(
|
|
516
|
+
getApplicationMetadata: (bucket, path, init) => client.GET(
|
|
517
|
+
getApplicationMetadataUrl(bucket, path),
|
|
518
|
+
init
|
|
519
|
+
),
|
|
239
520
|
getApplications: (init) => client.GET(getApplicationsUrl, init),
|
|
521
|
+
getConfigHealth: (init) => client.GET(getConfigHealthUrl, init),
|
|
240
522
|
getConversation: (bucket, conversation_path, init) => client.GET(
|
|
241
523
|
getConversationUrl(bucket, conversation_path),
|
|
242
524
|
init
|
|
@@ -254,39 +536,171 @@ function createSDK(opts) {
|
|
|
254
536
|
getCustomToolSetUrl(bucket, toolset_path),
|
|
255
537
|
init
|
|
256
538
|
),
|
|
257
|
-
getDeployment: (deployment_name, init) => client.GET(
|
|
258
|
-
|
|
539
|
+
getDeployment: (deployment_name, init) => client.GET(
|
|
540
|
+
getDeploymentUrl(deployment_name),
|
|
541
|
+
init
|
|
542
|
+
),
|
|
543
|
+
getDeploymentLimits: (deployment_name, init) => client.GET(
|
|
544
|
+
getDeploymentLimitsUrl(deployment_name),
|
|
545
|
+
init
|
|
546
|
+
),
|
|
259
547
|
getDeployments: (init) => client.GET(getDeploymentsUrl, init),
|
|
260
|
-
|
|
261
|
-
|
|
548
|
+
getExternalService: (appid, id, init) => client.GET(
|
|
549
|
+
getExternalServiceUrl(appid, id),
|
|
550
|
+
init
|
|
551
|
+
),
|
|
552
|
+
getFileConfigInterceptor: (name, init) => client.GET(
|
|
553
|
+
getFileConfigInterceptorUrl(name),
|
|
554
|
+
init
|
|
555
|
+
),
|
|
556
|
+
getFileConfigModel: (name, init) => client.GET(getFileConfigModelUrl(name), init),
|
|
557
|
+
getFileConfigRole: (name, init) => client.GET(getFileConfigRoleUrl(name), init),
|
|
558
|
+
getFileConfigRoute: (name, init) => client.GET(getFileConfigRouteUrl(name), init),
|
|
559
|
+
getFileConfigSchema: (name, init) => client.GET(getFileConfigSchemaUrl(name), init),
|
|
560
|
+
getFileConfigSettings: (name, init) => client.GET(
|
|
561
|
+
getFileConfigSettingsUrl(name),
|
|
562
|
+
init
|
|
563
|
+
),
|
|
564
|
+
getFileMetadata: (bucket, path, init) => client.GET(
|
|
565
|
+
getFileMetadataUrl(bucket, path),
|
|
566
|
+
init
|
|
567
|
+
),
|
|
568
|
+
getGlobalSettings: (bucket, path, init) => client.GET(
|
|
569
|
+
getGlobalSettingsUrl(bucket, path),
|
|
570
|
+
init
|
|
571
|
+
),
|
|
572
|
+
getGlobalSettingsMetadata: (bucket, path, init) => client.GET(
|
|
573
|
+
getGlobalSettingsMetadataUrl(bucket, path),
|
|
574
|
+
init
|
|
575
|
+
),
|
|
576
|
+
getInterceptor: (bucket, path, init) => client.GET(
|
|
577
|
+
getInterceptorUrl(bucket, path),
|
|
578
|
+
init
|
|
579
|
+
),
|
|
580
|
+
getInterceptorMetadata: (bucket, path, init) => client.GET(
|
|
581
|
+
getInterceptorMetadataUrl(bucket, path),
|
|
582
|
+
init
|
|
583
|
+
),
|
|
584
|
+
getInvitation: (invitation_id, init) => client.GET(
|
|
585
|
+
getInvitationUrl(invitation_id),
|
|
586
|
+
init
|
|
587
|
+
),
|
|
262
588
|
getInvitations: (init) => client.GET(getInvitationsUrl, init),
|
|
263
|
-
|
|
589
|
+
getKey: (bucket, path, init) => client.GET(getKeyUrl(bucket, path), init),
|
|
590
|
+
getKeyMetadata: (bucket, path, init) => client.GET(
|
|
591
|
+
getKeyMetadataUrl(bucket, path),
|
|
592
|
+
init
|
|
593
|
+
),
|
|
594
|
+
getMetaSchemaOfCustomApplicationSchema: (init) => client.GET(
|
|
595
|
+
getMetaSchemaOfCustomApplicationSchemaUrl,
|
|
596
|
+
init
|
|
597
|
+
),
|
|
264
598
|
getModel: (model_name, init) => client.GET(getModelUrl(model_name), init),
|
|
599
|
+
getModelByPath: (bucket, path, init) => client.GET(
|
|
600
|
+
getModelByPathUrl(bucket, path),
|
|
601
|
+
init
|
|
602
|
+
),
|
|
603
|
+
getModelMetadata: (bucket, path, init) => client.GET(
|
|
604
|
+
getModelMetadataUrl(bucket, path),
|
|
605
|
+
init
|
|
606
|
+
),
|
|
265
607
|
getModels: (init) => client.GET(getModelsUrl, init),
|
|
266
608
|
getNotifications: (init) => client.POST(getNotificationsUrl, init),
|
|
267
609
|
getPerRequestPermissions: (init) => client.POST(getPerRequestPermissionsUrl, init),
|
|
268
|
-
getPrompt: (bucket, prompt_path, init) => client.GET(
|
|
269
|
-
|
|
610
|
+
getPrompt: (bucket, prompt_path, init) => client.GET(
|
|
611
|
+
getPromptUrl(bucket, prompt_path),
|
|
612
|
+
init
|
|
613
|
+
),
|
|
614
|
+
getPromptMetadata: (bucket, path, init) => client.GET(
|
|
615
|
+
getPromptMetadataUrl(bucket, path),
|
|
616
|
+
init
|
|
617
|
+
),
|
|
270
618
|
getPublication: (init) => client.POST(getPublicationUrl, init),
|
|
271
619
|
getPublicationRules: (init) => client.POST(getPublicationRulesUrl, init),
|
|
272
620
|
getPublications: (init) => client.POST(getPublicationsUrl, init),
|
|
621
|
+
getResponseItem: (response_id, init) => client.GET(
|
|
622
|
+
getResponseItemUrl(response_id),
|
|
623
|
+
init
|
|
624
|
+
),
|
|
625
|
+
getRole: (bucket, path, init) => client.GET(getRoleUrl(bucket, path), init),
|
|
626
|
+
getRoleMetadata: (bucket, path, init) => client.GET(
|
|
627
|
+
getRoleMetadataUrl(bucket, path),
|
|
628
|
+
init
|
|
629
|
+
),
|
|
630
|
+
getRoute: (bucket, path, init) => client.GET(getRouteUrl(bucket, path), init),
|
|
631
|
+
getRouteMetadata: (bucket, path, init) => client.GET(
|
|
632
|
+
getRouteMetadataUrl(bucket, path),
|
|
633
|
+
init
|
|
634
|
+
),
|
|
635
|
+
getSchema: (bucket, path, init) => client.GET(getSchemaUrl(bucket, path), init),
|
|
636
|
+
getSchemaMetadata: (bucket, path, init) => client.GET(
|
|
637
|
+
getSchemaMetadataUrl(bucket, path),
|
|
638
|
+
init
|
|
639
|
+
),
|
|
273
640
|
getSession: (init) => client.POST(getSessionUrl, init),
|
|
274
641
|
getSharedResources: (init) => client.POST(getSharedResourcesUrl, init),
|
|
275
|
-
|
|
642
|
+
getToolSetAllowedTools: (toolset_name, init) => client.GET(
|
|
643
|
+
getToolSetAllowedToolsUrl(toolset_name),
|
|
644
|
+
init
|
|
645
|
+
),
|
|
646
|
+
getToolSetMcp: (toolset_name, init) => client.GET(
|
|
647
|
+
getToolSetMcpUrl(toolset_name),
|
|
648
|
+
init
|
|
649
|
+
),
|
|
650
|
+
getToolSetMetadata: (bucket, path, init) => client.GET(
|
|
651
|
+
getToolSetMetadataUrl(bucket, path),
|
|
652
|
+
init
|
|
653
|
+
),
|
|
654
|
+
getToolSetTools: (toolset_name, init) => client.GET(
|
|
655
|
+
getToolSetToolsUrl(toolset_name),
|
|
656
|
+
init
|
|
657
|
+
),
|
|
276
658
|
getToolSets: (init) => client.GET(getToolSetsUrl, init),
|
|
277
659
|
getToolset: (toolset_name, init) => client.GET(getToolsetUrl(toolset_name), init),
|
|
278
660
|
getUserBucket: (init) => client.GET(getUserBucketUrl, init),
|
|
279
661
|
getUserInfo: (init) => client.GET(getUserInfoUrl, init),
|
|
280
662
|
grantPerRequestPermissions: (init) => client.POST(grantPerRequestPermissionsUrl, init),
|
|
663
|
+
interactClientChannel: (init) => client.POST(interactClientChannelUrl, init),
|
|
281
664
|
listCustomApplicationSchemas: (init) => client.GET(listCustomApplicationSchemasUrl, init),
|
|
665
|
+
listDeployments: (init) => client.GET(listDeploymentsUrl, init),
|
|
666
|
+
listExternalServices: (appid, init) => client.GET(
|
|
667
|
+
listExternalServicesUrl(appid),
|
|
668
|
+
init
|
|
669
|
+
),
|
|
670
|
+
listFileConfigInterceptors: (init) => client.GET(listFileConfigInterceptorsUrl, init),
|
|
671
|
+
listFileConfigModels: (init) => client.GET(listFileConfigModelsUrl, init),
|
|
672
|
+
listFileConfigRoles: (init) => client.GET(listFileConfigRolesUrl, init),
|
|
673
|
+
listFileConfigRoutes: (init) => client.GET(listFileConfigRoutesUrl, init),
|
|
674
|
+
listFileConfigSchemas: (init) => client.GET(listFileConfigSchemasUrl, init),
|
|
675
|
+
listFileConfigSettings: (init) => client.GET(listFileConfigSettingsUrl, init),
|
|
282
676
|
listFilesFromCodeInterpreter: (init) => client.POST(listFilesFromCodeInterpreterUrl, init),
|
|
677
|
+
listPublishedResources: (init) => client.POST(listPublishedResourcesUrl, init),
|
|
283
678
|
moveResource: (init) => client.POST(moveResourceUrl, init),
|
|
284
679
|
openSession: (init) => client.POST(openSessionUrl, init),
|
|
285
|
-
|
|
680
|
+
postApplicationMcp: (deployment_name, init) => client.POST(
|
|
681
|
+
postApplicationMcpUrl(deployment_name),
|
|
682
|
+
init
|
|
683
|
+
),
|
|
684
|
+
postToolSetMcp: (toolset_name, init) => client.POST(
|
|
685
|
+
postToolSetMcpUrl(toolset_name),
|
|
686
|
+
init
|
|
687
|
+
),
|
|
688
|
+
putExternalService: (appid, id, init) => client.PUT(
|
|
689
|
+
putExternalServiceUrl(appid, id),
|
|
690
|
+
init
|
|
691
|
+
),
|
|
692
|
+
rateDeployment: (deployment_name, init) => client.POST(
|
|
693
|
+
rateDeploymentUrl(deployment_name),
|
|
694
|
+
init
|
|
695
|
+
),
|
|
286
696
|
redeployApplication: (init) => client.POST(redeployApplicationUrl, init),
|
|
287
697
|
rejectPublication: (init) => client.POST(rejectPublicationUrl, init),
|
|
288
698
|
reloadConfig: (init) => client.POST(reloadConfigUrl, init),
|
|
289
|
-
|
|
699
|
+
reportClientChannel: (init) => client.POST(reportClientChannelUrl, init),
|
|
700
|
+
requestUserConsent: (deployment_id, init) => client.GET(
|
|
701
|
+
requestUserConsentUrl(deployment_id),
|
|
702
|
+
init
|
|
703
|
+
),
|
|
290
704
|
revokePerRequestPermissions: (init) => client.POST(revokePerRequestPermissionsUrl, init),
|
|
291
705
|
revokeSharedResources: (init) => client.POST(revokeSharedResourcesUrl, init),
|
|
292
706
|
saveConversation: (bucket, conversation_path, init) => client.PUT(
|
|
@@ -297,26 +711,63 @@ function createSDK(opts) {
|
|
|
297
711
|
saveCustomApplicationUrl(bucket, application_path),
|
|
298
712
|
init
|
|
299
713
|
),
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
714
|
+
saveGlobalSettings: (bucket, path, init) => client.PUT(
|
|
715
|
+
saveGlobalSettingsUrl(bucket, path),
|
|
716
|
+
init
|
|
717
|
+
),
|
|
718
|
+
saveInterceptor: (bucket, path, init) => client.PUT(
|
|
719
|
+
saveInterceptorUrl(bucket, path),
|
|
720
|
+
init
|
|
721
|
+
),
|
|
722
|
+
saveKey: (bucket, path, init) => client.PUT(saveKeyUrl(bucket, path), init),
|
|
723
|
+
saveModel: (bucket, path, init) => client.PUT(saveModelUrl(bucket, path), init),
|
|
724
|
+
savePrompt: (bucket, prompt_path, init) => client.PUT(
|
|
725
|
+
savePromptUrl(bucket, prompt_path),
|
|
726
|
+
init
|
|
727
|
+
),
|
|
728
|
+
saveRole: (bucket, path, init) => client.PUT(saveRoleUrl(bucket, path), init),
|
|
729
|
+
saveRoute: (bucket, path, init) => client.PUT(saveRouteUrl(bucket, path), init),
|
|
730
|
+
saveSchema: (bucket, path, init) => client.PUT(saveSchemaUrl(bucket, path), init),
|
|
731
|
+
saveToolSet: (bucket, toolset_path, init) => client.PUT(
|
|
732
|
+
saveToolSetUrl(bucket, toolset_path),
|
|
304
733
|
init
|
|
305
734
|
),
|
|
306
|
-
|
|
307
|
-
|
|
735
|
+
sendChatCompletionRequest: (deployment_name, init) => client.POST(
|
|
736
|
+
sendChatCompletionRequestUrl(deployment_name),
|
|
308
737
|
init
|
|
309
738
|
),
|
|
310
739
|
shareResource: (init) => client.POST(shareResourceUrl, init),
|
|
740
|
+
subscribeClientChannel: (init) => client.POST(subscribeClientChannelUrl, init),
|
|
311
741
|
subscribeToResources: (init) => client.POST(subscribeToResourcesUrl, init),
|
|
742
|
+
tokenize: (deployment_name, init) => client.POST(
|
|
743
|
+
tokenizeUrl(deployment_name),
|
|
744
|
+
init
|
|
745
|
+
),
|
|
312
746
|
toolSetSignout: (init) => client.POST(toolSetSignoutUrl, init),
|
|
313
747
|
toolsetSignin: (init) => client.POST(toolsetSigninUrl, init),
|
|
314
748
|
transferInputFile: (init) => client.POST(transferInputFileUrl, init),
|
|
315
749
|
transferOutputFile: (init) => client.POST(transferOutputFileUrl, init),
|
|
750
|
+
truncatePrompt: (deployment_name, init) => client.POST(
|
|
751
|
+
truncatePromptUrl(deployment_name),
|
|
752
|
+
init
|
|
753
|
+
),
|
|
316
754
|
undeployApplication: (init) => client.POST(undeployApplicationUrl, init),
|
|
755
|
+
unsubscribeClientChannel: (init) => client.POST(unsubscribeClientChannelUrl, init),
|
|
317
756
|
updatePublication: (init) => client.POST(updatePublicationUrl, init),
|
|
318
|
-
uploadFile: (bucket, file_path, init) => client.PUT(
|
|
319
|
-
|
|
757
|
+
uploadFile: (bucket, file_path, init) => client.PUT(
|
|
758
|
+
uploadFileUrl(bucket, file_path),
|
|
759
|
+
init
|
|
760
|
+
),
|
|
761
|
+
uploadFileToCodeInterpreter: (init) => client.POST(uploadFileToCodeInterpreterUrl, init),
|
|
762
|
+
uploadSkillFile: (bucket, path, filepath, init) => client.PUT(
|
|
763
|
+
uploadSkillFileUrl(bucket, path, filepath),
|
|
764
|
+
init
|
|
765
|
+
),
|
|
766
|
+
uploadSkillFolder: (bucket, path, init) => client.PUT(
|
|
767
|
+
uploadSkillFolderUrl(bucket, path),
|
|
768
|
+
init
|
|
769
|
+
),
|
|
770
|
+
validateConfigManifests: (init) => client.POST(validateConfigManifestsUrl, init)
|
|
320
771
|
};
|
|
321
772
|
}
|
|
322
773
|
// Annotate the CommonJS export names for ESM import in node:
|