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