@epam/ai-dial-typescript-sdk 0.1.0-dev.30 → 0.1.0-dev.32

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
@@ -16,6 +16,8 @@ var configurationDeploymentUrl = (deployment_name) => {
16
16
  };
17
17
  var copyResourceUrl = "/v1/ops/resource/copy";
18
18
  var copySharedResourcesUrl = "/v1/ops/resource/share/copy";
19
+ var countAnthropicMessageTokensUrl = "/anthropic/v1/messages/count_tokens";
20
+ var createAnthropicMessageUrl = "/anthropic/v1/messages";
19
21
  var createCompletionUrl = (deployment_name) => {
20
22
  return `/openai/deployments/${deployment_name}/completions`;
21
23
  };
@@ -30,6 +32,9 @@ var deleteConversationUrl = (bucket, conversation_path) => {
30
32
  var deleteCustomApplicationUrl = (bucket, application_path) => {
31
33
  return `/v1/applications/${bucket}/${application_path}`;
32
34
  };
35
+ var deleteExternalServiceUrl = (appid, id) => {
36
+ return `/v1/applications/${appid}/external-services/${id}`;
37
+ };
33
38
  var deleteFileUrl = (bucket, file_path) => {
34
39
  return `/v1/files/${bucket}/${file_path}`;
35
40
  };
@@ -65,6 +70,12 @@ var deleteRouteUrl = (bucket, path) => {
65
70
  var deleteSchemaUrl = (bucket, path) => {
66
71
  return `/v1/schemas/${bucket}/${path}`;
67
72
  };
73
+ var deleteSkillFileUrl = (bucket, path, filepath) => {
74
+ return `/v2/skills/${bucket}/${path}/files/${filepath}`;
75
+ };
76
+ var deleteSkillFolderUrl = (bucket, path) => {
77
+ return `/v2/skills/${bucket}/${path}`;
78
+ };
68
79
  var deleteToolSetUrl = (bucket, toolset_path) => {
69
80
  return `/v1/toolsets/${bucket}/${toolset_path}`;
70
81
  };
@@ -77,10 +88,16 @@ var downloadFileUrl = (bucket, file_path) => {
77
88
  return `/v1/files/${bucket}/${file_path}`;
78
89
  };
79
90
  var downloadFileFromCodeInterpreterUrl = "/v1/ops/code_interpreter/download_file";
91
+ var downloadSkillFileUrl = (bucket, path, filepath) => {
92
+ return `/v2/skills/${bucket}/${path}/files/${filepath}`;
93
+ };
80
94
  var downloadSkillFolderUrl = (bucket, path) => {
81
95
  return `/v2/skills/${bucket}/${path}`;
82
96
  };
83
97
  var executeCodeUrl = "/v1/ops/code_interpreter/execute_code";
98
+ var externalServiceGetCredentialsUrl = "/v1/ops/external-service/credentials";
99
+ var externalServiceSignInUrl = "/v1/ops/external-service/signin";
100
+ var externalServiceSignOutUrl = "/v1/ops/external-service/signout";
84
101
  var getApplicationUrl = (application_name) => {
85
102
  return `/openai/applications/${application_name}`;
86
103
  };
@@ -110,6 +127,9 @@ var getDeploymentLimitsUrl = (deployment_name) => {
110
127
  return `/v1/deployments/${deployment_name}/limits`;
111
128
  };
112
129
  var getDeploymentsUrl = "/openai/deployments";
130
+ var getExternalServiceUrl = (appid, id) => {
131
+ return `/v1/applications/${appid}/external-services/${id}`;
132
+ };
113
133
  var getFileConfigInterceptorUrl = (name) => {
114
134
  return `/v1/admin/config/file/interceptors/${name}`;
115
135
  };
@@ -220,6 +240,9 @@ var grantPerRequestPermissionsUrl = "/v1/ops/resource/per-request-permissions/gr
220
240
  var interactClientChannelUrl = "/v1/ops/client-channel/interact";
221
241
  var listCustomApplicationSchemasUrl = "/v1/application_type_schemas/schemas";
222
242
  var listDeploymentsUrl = "/v1/deployments";
243
+ var listExternalServicesUrl = (appid) => {
244
+ return `/v1/applications/${appid}/external-services`;
245
+ };
223
246
  var listFileConfigInterceptorsUrl = "/v1/admin/config/file/interceptors";
224
247
  var listFileConfigModelsUrl = "/v1/admin/config/file/models";
225
248
  var listFileConfigRolesUrl = "/v1/admin/config/file/roles";
@@ -236,6 +259,9 @@ var postApplicationMcpUrl = (deployment_name) => {
236
259
  var postToolSetMcpUrl = (toolset_name) => {
237
260
  return `/v1/toolset/${toolset_name}/mcp`;
238
261
  };
262
+ var putExternalServiceUrl = (appid, id) => {
263
+ return `/v1/applications/${appid}/external-services/${id}`;
264
+ };
239
265
  var rateDeploymentUrl = (deployment_name) => {
240
266
  return `/v1/${deployment_name}/rate`;
241
267
  };
@@ -304,6 +330,9 @@ var uploadFileUrl = (bucket, file_path) => {
304
330
  return `/v1/files/${bucket}/${file_path}`;
305
331
  };
306
332
  var uploadFileToCodeInterpreterUrl = "/v1/ops/code_interpreter/upload_file";
333
+ var uploadSkillFileUrl = (bucket, path, filepath) => {
334
+ return `/v2/skills/${bucket}/${path}/files/${filepath}`;
335
+ };
307
336
  var uploadSkillFolderUrl = (bucket, path) => {
308
337
  return `/v2/skills/${bucket}/${path}`;
309
338
  };
@@ -338,6 +367,8 @@ function createSDK(opts) {
338
367
  ),
339
368
  copyResource: (init) => client.POST(copyResourceUrl, init),
340
369
  copySharedResources: (init) => client.POST(copySharedResourcesUrl, init),
370
+ countAnthropicMessageTokens: (init) => client.POST(countAnthropicMessageTokensUrl, init),
371
+ createAnthropicMessage: (init) => client.POST(createAnthropicMessageUrl, init),
341
372
  createCompletion: (deployment_name, init) => client.POST(
342
373
  createCompletionUrl(deployment_name),
343
374
  init
@@ -356,6 +387,10 @@ function createSDK(opts) {
356
387
  deleteCustomApplicationUrl(bucket, application_path),
357
388
  init
358
389
  ),
390
+ deleteExternalService: (appid, id, init) => client.DELETE(
391
+ deleteExternalServiceUrl(appid, id),
392
+ init
393
+ ),
359
394
  deleteFile: (bucket, file_path, init) => client.DELETE(
360
395
  deleteFileUrl(bucket, file_path),
361
396
  init
@@ -402,6 +437,14 @@ function createSDK(opts) {
402
437
  deleteSchemaUrl(bucket, path),
403
438
  init
404
439
  ),
440
+ deleteSkillFile: (bucket, path, filepath, init) => client.DELETE(
441
+ deleteSkillFileUrl(bucket, path, filepath),
442
+ init
443
+ ),
444
+ deleteSkillFolder: (bucket, path, init) => client.DELETE(
445
+ deleteSkillFolderUrl(bucket, path),
446
+ init
447
+ ),
405
448
  deleteToolSet: (bucket, toolset_path, init) => client.DELETE(
406
449
  deleteToolSetUrl(bucket, toolset_path),
407
450
  init
@@ -417,11 +460,18 @@ function createSDK(opts) {
417
460
  init
418
461
  ),
419
462
  downloadFileFromCodeInterpreter: (init) => client.POST(downloadFileFromCodeInterpreterUrl, init),
463
+ downloadSkillFile: (bucket, path, filepath, init) => client.GET(
464
+ downloadSkillFileUrl(bucket, path, filepath),
465
+ init
466
+ ),
420
467
  downloadSkillFolder: (bucket, path, init) => client.GET(
421
468
  downloadSkillFolderUrl(bucket, path),
422
469
  init
423
470
  ),
424
471
  executeCode: (init) => client.POST(executeCodeUrl, init),
472
+ externalServiceGetCredentials: (init) => client.POST(externalServiceGetCredentialsUrl, init),
473
+ externalServiceSignIn: (init) => client.POST(externalServiceSignInUrl, init),
474
+ externalServiceSignOut: (init) => client.POST(externalServiceSignOutUrl, init),
425
475
  getApplication: (application_name, init) => client.GET(
426
476
  getApplicationUrl(application_name),
427
477
  init
@@ -459,6 +509,10 @@ function createSDK(opts) {
459
509
  init
460
510
  ),
461
511
  getDeployments: (init) => client.GET(getDeploymentsUrl, init),
512
+ getExternalService: (appid, id, init) => client.GET(
513
+ getExternalServiceUrl(appid, id),
514
+ init
515
+ ),
462
516
  getFileConfigInterceptor: (name, init) => client.GET(
463
517
  getFileConfigInterceptorUrl(name),
464
518
  init
@@ -573,6 +627,10 @@ function createSDK(opts) {
573
627
  interactClientChannel: (init) => client.POST(interactClientChannelUrl, init),
574
628
  listCustomApplicationSchemas: (init) => client.GET(listCustomApplicationSchemasUrl, init),
575
629
  listDeployments: (init) => client.GET(listDeploymentsUrl, init),
630
+ listExternalServices: (appid, init) => client.GET(
631
+ listExternalServicesUrl(appid),
632
+ init
633
+ ),
576
634
  listFileConfigInterceptors: (init) => client.GET(listFileConfigInterceptorsUrl, init),
577
635
  listFileConfigModels: (init) => client.GET(listFileConfigModelsUrl, init),
578
636
  listFileConfigRoles: (init) => client.GET(listFileConfigRolesUrl, init),
@@ -591,6 +649,10 @@ function createSDK(opts) {
591
649
  postToolSetMcpUrl(toolset_name),
592
650
  init
593
651
  ),
652
+ putExternalService: (appid, id, init) => client.PUT(
653
+ putExternalServiceUrl(appid, id),
654
+ init
655
+ ),
594
656
  rateDeployment: (deployment_name, init) => client.POST(
595
657
  rateDeploymentUrl(deployment_name),
596
658
  init
@@ -661,6 +723,10 @@ function createSDK(opts) {
661
723
  init
662
724
  ),
663
725
  uploadFileToCodeInterpreter: (init) => client.POST(uploadFileToCodeInterpreterUrl, init),
726
+ uploadSkillFile: (bucket, path, filepath, init) => client.PUT(
727
+ uploadSkillFileUrl(bucket, path, filepath),
728
+ init
729
+ ),
664
730
  uploadSkillFolder: (bucket, path, init) => client.PUT(
665
731
  uploadSkillFolderUrl(bucket, path),
666
732
  init