@epam/ai-dial-typescript-sdk 0.1.0-dev.35 → 0.1.0-dev.37

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 CHANGED
@@ -96,6 +96,12 @@ var deleteModelUrl = (bucket, path) => {
96
96
  return `/v1/models/${bucket}/${path}`;
97
97
  };
98
98
  var deleteNotificationsUrl = "/v1/ops/notification/delete";
99
+ var deletePlatformApplicationUrl = (path) => {
100
+ return `/v1/applications/platform/${path}`;
101
+ };
102
+ var deletePlatformToolSetUrl = (path) => {
103
+ return `/v1/toolsets/platform/${path}`;
104
+ };
99
105
  var deletePromptUrl = (bucket, prompt_path) => {
100
106
  return `/v1/prompts/${bucket}/${prompt_path}`;
101
107
  };
@@ -257,7 +263,20 @@ var getModelMetadataUrl = (bucket, path) => {
257
263
  };
258
264
  var getModelsUrl = "/openai/models";
259
265
  var getNotificationsUrl = "/v1/ops/notification/list";
266
+ var getOfflineCredentialsUrl = "/v1/user/offline-credentials";
260
267
  var getPerRequestPermissionsUrl = "/v1/ops/resource/per-request-permissions/list";
268
+ var getPlatformApplicationUrl = (path) => {
269
+ return `/v1/applications/platform/${path}`;
270
+ };
271
+ var getPlatformApplicationMetadataUrl = (path) => {
272
+ return `/v1/metadata/applications/platform/${path}`;
273
+ };
274
+ var getPlatformToolSetUrl = (path) => {
275
+ return `/v1/toolsets/platform/${path}`;
276
+ };
277
+ var getPlatformToolSetMetadataUrl = (path) => {
278
+ return `/v1/metadata/toolsets/platform/${path}`;
279
+ };
261
280
  var getPromptUrl = (bucket, prompt_path) => {
262
281
  return `/v1/prompts/${bucket}/${prompt_path}`;
263
282
  };
@@ -308,6 +327,9 @@ var getToolsetUrl = (toolset_name) => {
308
327
  };
309
328
  var getUserBucketUrl = "/v1/bucket";
310
329
  var getUserInfoUrl = "/v1/user/info";
330
+ var grantExternalServiceConsentUrl = (appid, id) => {
331
+ return `/v1/applications/${appid}/external-services/${id}/consent`;
332
+ };
311
333
  var grantPerRequestPermissionsUrl = "/v1/ops/resource/per-request-permissions/grant";
312
334
  var interactClientChannelUrl = "/v1/ops/client-channel/interact";
313
335
  var listCatalogSchemasUrl = "/v1/catalog_schemas/schemas";
@@ -335,6 +357,8 @@ var listSkillMetadataUrl = (bucket, path) => {
335
357
  return `/v2/metadata/skills/${bucket}/${path}`;
336
358
  };
337
359
  var moveResourceUrl = "/v1/ops/resource/move";
360
+ var offlineCredentialsSignInUrl = "/v1/user/offline-credentials/signin";
361
+ var offlineCredentialsSignOutUrl = "/v1/user/offline-credentials/signout";
338
362
  var openSessionUrl = "/v1/ops/code_interpreter/open_session";
339
363
  var postApplicationMcpUrl = (deployment_name) => {
340
364
  return `/v1/deployments/${deployment_name}/mcp`;
@@ -381,6 +405,12 @@ var saveKeyUrl = (bucket, path) => {
381
405
  var saveModelUrl = (bucket, path) => {
382
406
  return `/v1/models/${bucket}/${path}`;
383
407
  };
408
+ var savePlatformApplicationUrl = (path) => {
409
+ return `/v1/applications/platform/${path}`;
410
+ };
411
+ var savePlatformToolSetUrl = (path) => {
412
+ return `/v1/toolsets/platform/${path}`;
413
+ };
384
414
  var savePromptUrl = (bucket, prompt_path) => {
385
415
  return `/v1/prompts/${bucket}/${prompt_path}`;
386
416
  };
@@ -426,6 +456,9 @@ var uploadSkillFolderUrl = (bucket, path) => {
426
456
  return `/v2/skills/${bucket}/${path}`;
427
457
  };
428
458
  var validateConfigManifestsUrl = "/v1/admin/validate";
459
+ var withdrawExternalServiceConsentUrl = (appid, id) => {
460
+ return `/v1/applications/${appid}/external-services/${id}/consent`;
461
+ };
429
462
 
430
463
  // src/client.ts
431
464
  function createSDK(opts) {
@@ -513,6 +546,14 @@ function createSDK(opts) {
513
546
  init
514
547
  ),
515
548
  deleteNotifications: (init) => client.POST(deleteNotificationsUrl, init),
549
+ deletePlatformApplication: (path, init) => client.DELETE(
550
+ deletePlatformApplicationUrl(path),
551
+ init
552
+ ),
553
+ deletePlatformToolSet: (path, init) => client.DELETE(
554
+ deletePlatformToolSetUrl(path),
555
+ init
556
+ ),
516
557
  deletePrompt: (bucket, prompt_path, init) => client.DELETE(
517
558
  deletePromptUrl(bucket, prompt_path),
518
559
  init
@@ -706,7 +747,21 @@ function createSDK(opts) {
706
747
  ),
707
748
  getModels: (init) => client.GET(getModelsUrl, init),
708
749
  getNotifications: (init) => client.POST(getNotificationsUrl, init),
750
+ getOfflineCredentials: (init) => client.GET(getOfflineCredentialsUrl, init),
709
751
  getPerRequestPermissions: (init) => client.POST(getPerRequestPermissionsUrl, init),
752
+ getPlatformApplication: (path, init) => client.GET(
753
+ getPlatformApplicationUrl(path),
754
+ init
755
+ ),
756
+ getPlatformApplicationMetadata: (path, init) => client.GET(
757
+ getPlatformApplicationMetadataUrl(path),
758
+ init
759
+ ),
760
+ getPlatformToolSet: (path, init) => client.GET(getPlatformToolSetUrl(path), init),
761
+ getPlatformToolSetMetadata: (path, init) => client.GET(
762
+ getPlatformToolSetMetadataUrl(path),
763
+ init
764
+ ),
710
765
  getPrompt: (bucket, prompt_path, init) => client.GET(
711
766
  getPromptUrl(bucket, prompt_path),
712
767
  init
@@ -759,6 +814,10 @@ function createSDK(opts) {
759
814
  getToolset: (toolset_name, init) => client.GET(getToolsetUrl(toolset_name), init),
760
815
  getUserBucket: (init) => client.GET(getUserBucketUrl, init),
761
816
  getUserInfo: (init) => client.GET(getUserInfoUrl, init),
817
+ grantExternalServiceConsent: (appid, id, init) => client.POST(
818
+ grantExternalServiceConsentUrl(appid, id),
819
+ init
820
+ ),
762
821
  grantPerRequestPermissions: (init) => client.POST(grantPerRequestPermissionsUrl, init),
763
822
  interactClientChannel: (init) => client.POST(interactClientChannelUrl, init),
764
823
  listCatalogSchemas: (init) => client.GET(listCatalogSchemasUrl, init),
@@ -789,6 +848,8 @@ function createSDK(opts) {
789
848
  init
790
849
  ),
791
850
  moveResource: (init) => client.POST(moveResourceUrl, init),
851
+ offlineCredentialsSignIn: (init) => client.POST(offlineCredentialsSignInUrl, init),
852
+ offlineCredentialsSignOut: (init) => client.POST(offlineCredentialsSignOutUrl, init),
792
853
  openSession: (init) => client.POST(openSessionUrl, init),
793
854
  postApplicationMcp: (deployment_name, init) => client.POST(
794
855
  postApplicationMcpUrl(deployment_name),
@@ -842,6 +903,11 @@ function createSDK(opts) {
842
903
  ),
843
904
  saveKey: (bucket, path, init) => client.PUT(saveKeyUrl(bucket, path), init),
844
905
  saveModel: (bucket, path, init) => client.PUT(saveModelUrl(bucket, path), init),
906
+ savePlatformApplication: (path, init) => client.PUT(
907
+ savePlatformApplicationUrl(path),
908
+ init
909
+ ),
910
+ savePlatformToolSet: (path, init) => client.PUT(savePlatformToolSetUrl(path), init),
845
911
  savePrompt: (bucket, prompt_path, init) => client.PUT(
846
912
  savePromptUrl(bucket, prompt_path),
847
913
  init
@@ -888,7 +954,11 @@ function createSDK(opts) {
888
954
  uploadSkillFolderUrl(bucket, path),
889
955
  init
890
956
  ),
891
- validateConfigManifests: (init) => client.POST(validateConfigManifestsUrl, init)
957
+ validateConfigManifests: (init) => client.POST(validateConfigManifestsUrl, init),
958
+ withdrawExternalServiceConsent: (appid, id, init) => client.DELETE(
959
+ withdrawExternalServiceConsentUrl(appid, id),
960
+ init
961
+ )
892
962
  };
893
963
  }
894
964
  // Annotate the CommonJS export names for ESM import in node: