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