@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.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
  };
@@ -221,7 +227,20 @@ var getModelMetadataUrl = (bucket, path) => {
221
227
  };
222
228
  var getModelsUrl = "/openai/models";
223
229
  var getNotificationsUrl = "/v1/ops/notification/list";
230
+ var getOfflineCredentialsUrl = "/v1/user/offline-credentials";
224
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
+ };
225
244
  var getPromptUrl = (bucket, prompt_path) => {
226
245
  return `/v1/prompts/${bucket}/${prompt_path}`;
227
246
  };
@@ -272,6 +291,9 @@ var getToolsetUrl = (toolset_name) => {
272
291
  };
273
292
  var getUserBucketUrl = "/v1/bucket";
274
293
  var getUserInfoUrl = "/v1/user/info";
294
+ var grantExternalServiceConsentUrl = (appid, id) => {
295
+ return `/v1/applications/${appid}/external-services/${id}/consent`;
296
+ };
275
297
  var grantPerRequestPermissionsUrl = "/v1/ops/resource/per-request-permissions/grant";
276
298
  var interactClientChannelUrl = "/v1/ops/client-channel/interact";
277
299
  var listCatalogSchemasUrl = "/v1/catalog_schemas/schemas";
@@ -299,6 +321,8 @@ var listSkillMetadataUrl = (bucket, path) => {
299
321
  return `/v2/metadata/skills/${bucket}/${path}`;
300
322
  };
301
323
  var moveResourceUrl = "/v1/ops/resource/move";
324
+ var offlineCredentialsSignInUrl = "/v1/user/offline-credentials/signin";
325
+ var offlineCredentialsSignOutUrl = "/v1/user/offline-credentials/signout";
302
326
  var openSessionUrl = "/v1/ops/code_interpreter/open_session";
303
327
  var postApplicationMcpUrl = (deployment_name) => {
304
328
  return `/v1/deployments/${deployment_name}/mcp`;
@@ -345,6 +369,12 @@ var saveKeyUrl = (bucket, path) => {
345
369
  var saveModelUrl = (bucket, path) => {
346
370
  return `/v1/models/${bucket}/${path}`;
347
371
  };
372
+ var savePlatformApplicationUrl = (path) => {
373
+ return `/v1/applications/platform/${path}`;
374
+ };
375
+ var savePlatformToolSetUrl = (path) => {
376
+ return `/v1/toolsets/platform/${path}`;
377
+ };
348
378
  var savePromptUrl = (bucket, prompt_path) => {
349
379
  return `/v1/prompts/${bucket}/${prompt_path}`;
350
380
  };
@@ -390,6 +420,9 @@ var uploadSkillFolderUrl = (bucket, path) => {
390
420
  return `/v2/skills/${bucket}/${path}`;
391
421
  };
392
422
  var validateConfigManifestsUrl = "/v1/admin/validate";
423
+ var withdrawExternalServiceConsentUrl = (appid, id) => {
424
+ return `/v1/applications/${appid}/external-services/${id}/consent`;
425
+ };
393
426
 
394
427
  // src/client.ts
395
428
  function createSDK(opts) {
@@ -477,6 +510,14 @@ function createSDK(opts) {
477
510
  init
478
511
  ),
479
512
  deleteNotifications: (init) => client.POST(deleteNotificationsUrl, init),
513
+ deletePlatformApplication: (path, init) => client.DELETE(
514
+ deletePlatformApplicationUrl(path),
515
+ init
516
+ ),
517
+ deletePlatformToolSet: (path, init) => client.DELETE(
518
+ deletePlatformToolSetUrl(path),
519
+ init
520
+ ),
480
521
  deletePrompt: (bucket, prompt_path, init) => client.DELETE(
481
522
  deletePromptUrl(bucket, prompt_path),
482
523
  init
@@ -670,7 +711,21 @@ function createSDK(opts) {
670
711
  ),
671
712
  getModels: (init) => client.GET(getModelsUrl, init),
672
713
  getNotifications: (init) => client.POST(getNotificationsUrl, init),
714
+ getOfflineCredentials: (init) => client.GET(getOfflineCredentialsUrl, init),
673
715
  getPerRequestPermissions: (init) => client.POST(getPerRequestPermissionsUrl, init),
716
+ getPlatformApplication: (path, init) => client.GET(
717
+ getPlatformApplicationUrl(path),
718
+ init
719
+ ),
720
+ getPlatformApplicationMetadata: (path, init) => client.GET(
721
+ getPlatformApplicationMetadataUrl(path),
722
+ init
723
+ ),
724
+ getPlatformToolSet: (path, init) => client.GET(getPlatformToolSetUrl(path), init),
725
+ getPlatformToolSetMetadata: (path, init) => client.GET(
726
+ getPlatformToolSetMetadataUrl(path),
727
+ init
728
+ ),
674
729
  getPrompt: (bucket, prompt_path, init) => client.GET(
675
730
  getPromptUrl(bucket, prompt_path),
676
731
  init
@@ -723,6 +778,10 @@ function createSDK(opts) {
723
778
  getToolset: (toolset_name, init) => client.GET(getToolsetUrl(toolset_name), init),
724
779
  getUserBucket: (init) => client.GET(getUserBucketUrl, init),
725
780
  getUserInfo: (init) => client.GET(getUserInfoUrl, init),
781
+ grantExternalServiceConsent: (appid, id, init) => client.POST(
782
+ grantExternalServiceConsentUrl(appid, id),
783
+ init
784
+ ),
726
785
  grantPerRequestPermissions: (init) => client.POST(grantPerRequestPermissionsUrl, init),
727
786
  interactClientChannel: (init) => client.POST(interactClientChannelUrl, init),
728
787
  listCatalogSchemas: (init) => client.GET(listCatalogSchemasUrl, init),
@@ -753,6 +812,8 @@ function createSDK(opts) {
753
812
  init
754
813
  ),
755
814
  moveResource: (init) => client.POST(moveResourceUrl, init),
815
+ offlineCredentialsSignIn: (init) => client.POST(offlineCredentialsSignInUrl, init),
816
+ offlineCredentialsSignOut: (init) => client.POST(offlineCredentialsSignOutUrl, init),
756
817
  openSession: (init) => client.POST(openSessionUrl, init),
757
818
  postApplicationMcp: (deployment_name, init) => client.POST(
758
819
  postApplicationMcpUrl(deployment_name),
@@ -806,6 +867,11 @@ function createSDK(opts) {
806
867
  ),
807
868
  saveKey: (bucket, path, init) => client.PUT(saveKeyUrl(bucket, path), init),
808
869
  saveModel: (bucket, path, init) => client.PUT(saveModelUrl(bucket, path), init),
870
+ savePlatformApplication: (path, init) => client.PUT(
871
+ savePlatformApplicationUrl(path),
872
+ init
873
+ ),
874
+ savePlatformToolSet: (path, init) => client.PUT(savePlatformToolSetUrl(path), init),
809
875
  savePrompt: (bucket, prompt_path, init) => client.PUT(
810
876
  savePromptUrl(bucket, prompt_path),
811
877
  init
@@ -852,7 +918,11 @@ function createSDK(opts) {
852
918
  uploadSkillFolderUrl(bucket, path),
853
919
  init
854
920
  ),
855
- validateConfigManifests: (init) => client.POST(validateConfigManifestsUrl, init)
921
+ validateConfigManifests: (init) => client.POST(validateConfigManifestsUrl, init),
922
+ withdrawExternalServiceConsent: (appid, id, init) => client.DELETE(
923
+ withdrawExternalServiceConsentUrl(appid, id),
924
+ init
925
+ )
856
926
  };
857
927
  }
858
928
  export {