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