@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.cjs +66 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2839 -1660
- package/dist/index.d.ts +2839 -1660
- package/dist/index.js +66 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -52,6 +52,8 @@ var configurationDeploymentUrl = (deployment_name) => {
|
|
|
52
52
|
};
|
|
53
53
|
var copyResourceUrl = "/v1/ops/resource/copy";
|
|
54
54
|
var copySharedResourcesUrl = "/v1/ops/resource/share/copy";
|
|
55
|
+
var countAnthropicMessageTokensUrl = "/anthropic/v1/messages/count_tokens";
|
|
56
|
+
var createAnthropicMessageUrl = "/anthropic/v1/messages";
|
|
55
57
|
var createCompletionUrl = (deployment_name) => {
|
|
56
58
|
return `/openai/deployments/${deployment_name}/completions`;
|
|
57
59
|
};
|
|
@@ -66,6 +68,9 @@ var deleteConversationUrl = (bucket, conversation_path) => {
|
|
|
66
68
|
var deleteCustomApplicationUrl = (bucket, application_path) => {
|
|
67
69
|
return `/v1/applications/${bucket}/${application_path}`;
|
|
68
70
|
};
|
|
71
|
+
var deleteExternalServiceUrl = (appid, id) => {
|
|
72
|
+
return `/v1/applications/${appid}/external-services/${id}`;
|
|
73
|
+
};
|
|
69
74
|
var deleteFileUrl = (bucket, file_path) => {
|
|
70
75
|
return `/v1/files/${bucket}/${file_path}`;
|
|
71
76
|
};
|
|
@@ -101,6 +106,12 @@ var deleteRouteUrl = (bucket, path) => {
|
|
|
101
106
|
var deleteSchemaUrl = (bucket, path) => {
|
|
102
107
|
return `/v1/schemas/${bucket}/${path}`;
|
|
103
108
|
};
|
|
109
|
+
var deleteSkillFileUrl = (bucket, path, filepath) => {
|
|
110
|
+
return `/v2/skills/${bucket}/${path}/files/${filepath}`;
|
|
111
|
+
};
|
|
112
|
+
var deleteSkillFolderUrl = (bucket, path) => {
|
|
113
|
+
return `/v2/skills/${bucket}/${path}`;
|
|
114
|
+
};
|
|
104
115
|
var deleteToolSetUrl = (bucket, toolset_path) => {
|
|
105
116
|
return `/v1/toolsets/${bucket}/${toolset_path}`;
|
|
106
117
|
};
|
|
@@ -113,10 +124,16 @@ var downloadFileUrl = (bucket, file_path) => {
|
|
|
113
124
|
return `/v1/files/${bucket}/${file_path}`;
|
|
114
125
|
};
|
|
115
126
|
var downloadFileFromCodeInterpreterUrl = "/v1/ops/code_interpreter/download_file";
|
|
127
|
+
var downloadSkillFileUrl = (bucket, path, filepath) => {
|
|
128
|
+
return `/v2/skills/${bucket}/${path}/files/${filepath}`;
|
|
129
|
+
};
|
|
116
130
|
var downloadSkillFolderUrl = (bucket, path) => {
|
|
117
131
|
return `/v2/skills/${bucket}/${path}`;
|
|
118
132
|
};
|
|
119
133
|
var executeCodeUrl = "/v1/ops/code_interpreter/execute_code";
|
|
134
|
+
var externalServiceGetCredentialsUrl = "/v1/ops/external-service/credentials";
|
|
135
|
+
var externalServiceSignInUrl = "/v1/ops/external-service/signin";
|
|
136
|
+
var externalServiceSignOutUrl = "/v1/ops/external-service/signout";
|
|
120
137
|
var getApplicationUrl = (application_name) => {
|
|
121
138
|
return `/openai/applications/${application_name}`;
|
|
122
139
|
};
|
|
@@ -146,6 +163,9 @@ var getDeploymentLimitsUrl = (deployment_name) => {
|
|
|
146
163
|
return `/v1/deployments/${deployment_name}/limits`;
|
|
147
164
|
};
|
|
148
165
|
var getDeploymentsUrl = "/openai/deployments";
|
|
166
|
+
var getExternalServiceUrl = (appid, id) => {
|
|
167
|
+
return `/v1/applications/${appid}/external-services/${id}`;
|
|
168
|
+
};
|
|
149
169
|
var getFileConfigInterceptorUrl = (name) => {
|
|
150
170
|
return `/v1/admin/config/file/interceptors/${name}`;
|
|
151
171
|
};
|
|
@@ -256,6 +276,9 @@ var grantPerRequestPermissionsUrl = "/v1/ops/resource/per-request-permissions/gr
|
|
|
256
276
|
var interactClientChannelUrl = "/v1/ops/client-channel/interact";
|
|
257
277
|
var listCustomApplicationSchemasUrl = "/v1/application_type_schemas/schemas";
|
|
258
278
|
var listDeploymentsUrl = "/v1/deployments";
|
|
279
|
+
var listExternalServicesUrl = (appid) => {
|
|
280
|
+
return `/v1/applications/${appid}/external-services`;
|
|
281
|
+
};
|
|
259
282
|
var listFileConfigInterceptorsUrl = "/v1/admin/config/file/interceptors";
|
|
260
283
|
var listFileConfigModelsUrl = "/v1/admin/config/file/models";
|
|
261
284
|
var listFileConfigRolesUrl = "/v1/admin/config/file/roles";
|
|
@@ -272,6 +295,9 @@ var postApplicationMcpUrl = (deployment_name) => {
|
|
|
272
295
|
var postToolSetMcpUrl = (toolset_name) => {
|
|
273
296
|
return `/v1/toolset/${toolset_name}/mcp`;
|
|
274
297
|
};
|
|
298
|
+
var putExternalServiceUrl = (appid, id) => {
|
|
299
|
+
return `/v1/applications/${appid}/external-services/${id}`;
|
|
300
|
+
};
|
|
275
301
|
var rateDeploymentUrl = (deployment_name) => {
|
|
276
302
|
return `/v1/${deployment_name}/rate`;
|
|
277
303
|
};
|
|
@@ -340,6 +366,9 @@ var uploadFileUrl = (bucket, file_path) => {
|
|
|
340
366
|
return `/v1/files/${bucket}/${file_path}`;
|
|
341
367
|
};
|
|
342
368
|
var uploadFileToCodeInterpreterUrl = "/v1/ops/code_interpreter/upload_file";
|
|
369
|
+
var uploadSkillFileUrl = (bucket, path, filepath) => {
|
|
370
|
+
return `/v2/skills/${bucket}/${path}/files/${filepath}`;
|
|
371
|
+
};
|
|
343
372
|
var uploadSkillFolderUrl = (bucket, path) => {
|
|
344
373
|
return `/v2/skills/${bucket}/${path}`;
|
|
345
374
|
};
|
|
@@ -374,6 +403,8 @@ function createSDK(opts) {
|
|
|
374
403
|
),
|
|
375
404
|
copyResource: (init) => client.POST(copyResourceUrl, init),
|
|
376
405
|
copySharedResources: (init) => client.POST(copySharedResourcesUrl, init),
|
|
406
|
+
countAnthropicMessageTokens: (init) => client.POST(countAnthropicMessageTokensUrl, init),
|
|
407
|
+
createAnthropicMessage: (init) => client.POST(createAnthropicMessageUrl, init),
|
|
377
408
|
createCompletion: (deployment_name, init) => client.POST(
|
|
378
409
|
createCompletionUrl(deployment_name),
|
|
379
410
|
init
|
|
@@ -392,6 +423,10 @@ function createSDK(opts) {
|
|
|
392
423
|
deleteCustomApplicationUrl(bucket, application_path),
|
|
393
424
|
init
|
|
394
425
|
),
|
|
426
|
+
deleteExternalService: (appid, id, init) => client.DELETE(
|
|
427
|
+
deleteExternalServiceUrl(appid, id),
|
|
428
|
+
init
|
|
429
|
+
),
|
|
395
430
|
deleteFile: (bucket, file_path, init) => client.DELETE(
|
|
396
431
|
deleteFileUrl(bucket, file_path),
|
|
397
432
|
init
|
|
@@ -438,6 +473,14 @@ function createSDK(opts) {
|
|
|
438
473
|
deleteSchemaUrl(bucket, path),
|
|
439
474
|
init
|
|
440
475
|
),
|
|
476
|
+
deleteSkillFile: (bucket, path, filepath, init) => client.DELETE(
|
|
477
|
+
deleteSkillFileUrl(bucket, path, filepath),
|
|
478
|
+
init
|
|
479
|
+
),
|
|
480
|
+
deleteSkillFolder: (bucket, path, init) => client.DELETE(
|
|
481
|
+
deleteSkillFolderUrl(bucket, path),
|
|
482
|
+
init
|
|
483
|
+
),
|
|
441
484
|
deleteToolSet: (bucket, toolset_path, init) => client.DELETE(
|
|
442
485
|
deleteToolSetUrl(bucket, toolset_path),
|
|
443
486
|
init
|
|
@@ -453,11 +496,18 @@ function createSDK(opts) {
|
|
|
453
496
|
init
|
|
454
497
|
),
|
|
455
498
|
downloadFileFromCodeInterpreter: (init) => client.POST(downloadFileFromCodeInterpreterUrl, init),
|
|
499
|
+
downloadSkillFile: (bucket, path, filepath, init) => client.GET(
|
|
500
|
+
downloadSkillFileUrl(bucket, path, filepath),
|
|
501
|
+
init
|
|
502
|
+
),
|
|
456
503
|
downloadSkillFolder: (bucket, path, init) => client.GET(
|
|
457
504
|
downloadSkillFolderUrl(bucket, path),
|
|
458
505
|
init
|
|
459
506
|
),
|
|
460
507
|
executeCode: (init) => client.POST(executeCodeUrl, init),
|
|
508
|
+
externalServiceGetCredentials: (init) => client.POST(externalServiceGetCredentialsUrl, init),
|
|
509
|
+
externalServiceSignIn: (init) => client.POST(externalServiceSignInUrl, init),
|
|
510
|
+
externalServiceSignOut: (init) => client.POST(externalServiceSignOutUrl, init),
|
|
461
511
|
getApplication: (application_name, init) => client.GET(
|
|
462
512
|
getApplicationUrl(application_name),
|
|
463
513
|
init
|
|
@@ -495,6 +545,10 @@ function createSDK(opts) {
|
|
|
495
545
|
init
|
|
496
546
|
),
|
|
497
547
|
getDeployments: (init) => client.GET(getDeploymentsUrl, init),
|
|
548
|
+
getExternalService: (appid, id, init) => client.GET(
|
|
549
|
+
getExternalServiceUrl(appid, id),
|
|
550
|
+
init
|
|
551
|
+
),
|
|
498
552
|
getFileConfigInterceptor: (name, init) => client.GET(
|
|
499
553
|
getFileConfigInterceptorUrl(name),
|
|
500
554
|
init
|
|
@@ -609,6 +663,10 @@ function createSDK(opts) {
|
|
|
609
663
|
interactClientChannel: (init) => client.POST(interactClientChannelUrl, init),
|
|
610
664
|
listCustomApplicationSchemas: (init) => client.GET(listCustomApplicationSchemasUrl, init),
|
|
611
665
|
listDeployments: (init) => client.GET(listDeploymentsUrl, init),
|
|
666
|
+
listExternalServices: (appid, init) => client.GET(
|
|
667
|
+
listExternalServicesUrl(appid),
|
|
668
|
+
init
|
|
669
|
+
),
|
|
612
670
|
listFileConfigInterceptors: (init) => client.GET(listFileConfigInterceptorsUrl, init),
|
|
613
671
|
listFileConfigModels: (init) => client.GET(listFileConfigModelsUrl, init),
|
|
614
672
|
listFileConfigRoles: (init) => client.GET(listFileConfigRolesUrl, init),
|
|
@@ -627,6 +685,10 @@ function createSDK(opts) {
|
|
|
627
685
|
postToolSetMcpUrl(toolset_name),
|
|
628
686
|
init
|
|
629
687
|
),
|
|
688
|
+
putExternalService: (appid, id, init) => client.PUT(
|
|
689
|
+
putExternalServiceUrl(appid, id),
|
|
690
|
+
init
|
|
691
|
+
),
|
|
630
692
|
rateDeployment: (deployment_name, init) => client.POST(
|
|
631
693
|
rateDeploymentUrl(deployment_name),
|
|
632
694
|
init
|
|
@@ -697,6 +759,10 @@ function createSDK(opts) {
|
|
|
697
759
|
init
|
|
698
760
|
),
|
|
699
761
|
uploadFileToCodeInterpreter: (init) => client.POST(uploadFileToCodeInterpreterUrl, init),
|
|
762
|
+
uploadSkillFile: (bucket, path, filepath, init) => client.PUT(
|
|
763
|
+
uploadSkillFileUrl(bucket, path, filepath),
|
|
764
|
+
init
|
|
765
|
+
),
|
|
700
766
|
uploadSkillFolder: (bucket, path, init) => client.PUT(
|
|
701
767
|
uploadSkillFolderUrl(bucket, path),
|
|
702
768
|
init
|