@epam/ai-dial-typescript-sdk 0.1.0-dev.35 → 0.1.0-dev.36
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/dist/index.cjs +50 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +826 -105
- package/dist/index.d.ts +826 -105
- package/dist/index.js +50 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -60,6 +60,12 @@ var deleteModelUrl = (bucket, path) => {
|
|
|
60
60
|
return `/v1/models/${bucket}/${path}`;
|
|
61
61
|
};
|
|
62
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
|
+
};
|
|
63
69
|
var deletePromptUrl = (bucket, prompt_path) => {
|
|
64
70
|
return `/v1/prompts/${bucket}/${prompt_path}`;
|
|
65
71
|
};
|
|
@@ -222,6 +228,18 @@ var getModelMetadataUrl = (bucket, path) => {
|
|
|
222
228
|
var getModelsUrl = "/openai/models";
|
|
223
229
|
var getNotificationsUrl = "/v1/ops/notification/list";
|
|
224
230
|
var getPerRequestPermissionsUrl = "/v1/ops/resource/per-request-permissions/list";
|
|
231
|
+
var getPlatformApplicationUrl = (path) => {
|
|
232
|
+
return `/v1/applications/platform/${path}`;
|
|
233
|
+
};
|
|
234
|
+
var getPlatformApplicationMetadataUrl = (path) => {
|
|
235
|
+
return `/v1/metadata/applications/platform/${path}`;
|
|
236
|
+
};
|
|
237
|
+
var getPlatformToolSetUrl = (path) => {
|
|
238
|
+
return `/v1/toolsets/platform/${path}`;
|
|
239
|
+
};
|
|
240
|
+
var getPlatformToolSetMetadataUrl = (path) => {
|
|
241
|
+
return `/v1/metadata/toolsets/platform/${path}`;
|
|
242
|
+
};
|
|
225
243
|
var getPromptUrl = (bucket, prompt_path) => {
|
|
226
244
|
return `/v1/prompts/${bucket}/${prompt_path}`;
|
|
227
245
|
};
|
|
@@ -345,6 +363,12 @@ var saveKeyUrl = (bucket, path) => {
|
|
|
345
363
|
var saveModelUrl = (bucket, path) => {
|
|
346
364
|
return `/v1/models/${bucket}/${path}`;
|
|
347
365
|
};
|
|
366
|
+
var savePlatformApplicationUrl = (path) => {
|
|
367
|
+
return `/v1/applications/platform/${path}`;
|
|
368
|
+
};
|
|
369
|
+
var savePlatformToolSetUrl = (path) => {
|
|
370
|
+
return `/v1/toolsets/platform/${path}`;
|
|
371
|
+
};
|
|
348
372
|
var savePromptUrl = (bucket, prompt_path) => {
|
|
349
373
|
return `/v1/prompts/${bucket}/${prompt_path}`;
|
|
350
374
|
};
|
|
@@ -477,6 +501,14 @@ function createSDK(opts) {
|
|
|
477
501
|
init
|
|
478
502
|
),
|
|
479
503
|
deleteNotifications: (init) => client.POST(deleteNotificationsUrl, init),
|
|
504
|
+
deletePlatformApplication: (path, init) => client.DELETE(
|
|
505
|
+
deletePlatformApplicationUrl(path),
|
|
506
|
+
init
|
|
507
|
+
),
|
|
508
|
+
deletePlatformToolSet: (path, init) => client.DELETE(
|
|
509
|
+
deletePlatformToolSetUrl(path),
|
|
510
|
+
init
|
|
511
|
+
),
|
|
480
512
|
deletePrompt: (bucket, prompt_path, init) => client.DELETE(
|
|
481
513
|
deletePromptUrl(bucket, prompt_path),
|
|
482
514
|
init
|
|
@@ -671,6 +703,19 @@ function createSDK(opts) {
|
|
|
671
703
|
getModels: (init) => client.GET(getModelsUrl, init),
|
|
672
704
|
getNotifications: (init) => client.POST(getNotificationsUrl, init),
|
|
673
705
|
getPerRequestPermissions: (init) => client.POST(getPerRequestPermissionsUrl, init),
|
|
706
|
+
getPlatformApplication: (path, init) => client.GET(
|
|
707
|
+
getPlatformApplicationUrl(path),
|
|
708
|
+
init
|
|
709
|
+
),
|
|
710
|
+
getPlatformApplicationMetadata: (path, init) => client.GET(
|
|
711
|
+
getPlatformApplicationMetadataUrl(path),
|
|
712
|
+
init
|
|
713
|
+
),
|
|
714
|
+
getPlatformToolSet: (path, init) => client.GET(getPlatformToolSetUrl(path), init),
|
|
715
|
+
getPlatformToolSetMetadata: (path, init) => client.GET(
|
|
716
|
+
getPlatformToolSetMetadataUrl(path),
|
|
717
|
+
init
|
|
718
|
+
),
|
|
674
719
|
getPrompt: (bucket, prompt_path, init) => client.GET(
|
|
675
720
|
getPromptUrl(bucket, prompt_path),
|
|
676
721
|
init
|
|
@@ -806,6 +851,11 @@ function createSDK(opts) {
|
|
|
806
851
|
),
|
|
807
852
|
saveKey: (bucket, path, init) => client.PUT(saveKeyUrl(bucket, path), init),
|
|
808
853
|
saveModel: (bucket, path, init) => client.PUT(saveModelUrl(bucket, path), init),
|
|
854
|
+
savePlatformApplication: (path, init) => client.PUT(
|
|
855
|
+
savePlatformApplicationUrl(path),
|
|
856
|
+
init
|
|
857
|
+
),
|
|
858
|
+
savePlatformToolSet: (path, init) => client.PUT(savePlatformToolSetUrl(path), init),
|
|
809
859
|
savePrompt: (bucket, prompt_path, init) => client.PUT(
|
|
810
860
|
savePromptUrl(bucket, prompt_path),
|
|
811
861
|
init
|