@epam/ai-dial-typescript-sdk 0.1.0-dev.31 → 0.1.0-dev.33
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 +71 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3511 -1681
- package/dist/index.d.ts +3511 -1681
- package/dist/index.js +71 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
package/dist/index.js
CHANGED
|
@@ -26,6 +26,9 @@ var createEmbeddingUrl = (deployment_name) => {
|
|
|
26
26
|
};
|
|
27
27
|
var createPublicationUrl = "/v1/ops/publication/create";
|
|
28
28
|
var createResponseUrl = "/openai/v1/responses";
|
|
29
|
+
var createSkillGroupingFolderUrl = (bucket, path) => {
|
|
30
|
+
return `/v2/skills/${bucket}/${path}/`;
|
|
31
|
+
};
|
|
29
32
|
var deleteConversationUrl = (bucket, conversation_path) => {
|
|
30
33
|
return `/v1/conversations/${bucket}/${conversation_path}`;
|
|
31
34
|
};
|
|
@@ -76,6 +79,9 @@ var deleteSkillFileUrl = (bucket, path, filepath) => {
|
|
|
76
79
|
var deleteSkillFolderUrl = (bucket, path) => {
|
|
77
80
|
return `/v2/skills/${bucket}/${path}`;
|
|
78
81
|
};
|
|
82
|
+
var deleteSkillGroupingFolderUrl = (bucket, path) => {
|
|
83
|
+
return `/v2/skills/${bucket}/${path}/`;
|
|
84
|
+
};
|
|
79
85
|
var deleteToolSetUrl = (bucket, toolset_path) => {
|
|
80
86
|
return `/v1/toolsets/${bucket}/${toolset_path}`;
|
|
81
87
|
};
|
|
@@ -94,8 +100,12 @@ var downloadSkillFileUrl = (bucket, path, filepath) => {
|
|
|
94
100
|
var downloadSkillFolderUrl = (bucket, path) => {
|
|
95
101
|
return `/v2/skills/${bucket}/${path}`;
|
|
96
102
|
};
|
|
103
|
+
var downloadSkillGroupingFolderUrl = (bucket, path) => {
|
|
104
|
+
return `/v2/skills/${bucket}/${path}/`;
|
|
105
|
+
};
|
|
97
106
|
var executeCodeUrl = "/v1/ops/code_interpreter/execute_code";
|
|
98
107
|
var externalServiceGetCredentialsUrl = "/v1/ops/external-service/credentials";
|
|
108
|
+
var externalServiceGetOboCredentialsUrl = "/v1/ops/external-service/obo-credentials";
|
|
99
109
|
var externalServiceSignInUrl = "/v1/ops/external-service/signin";
|
|
100
110
|
var externalServiceSignOutUrl = "/v1/ops/external-service/signout";
|
|
101
111
|
var getApplicationUrl = (application_name) => {
|
|
@@ -130,9 +140,15 @@ var getDeploymentsUrl = "/openai/deployments";
|
|
|
130
140
|
var getExternalServiceUrl = (appid, id) => {
|
|
131
141
|
return `/v1/applications/${appid}/external-services/${id}`;
|
|
132
142
|
};
|
|
143
|
+
var getFileConfigApplicationUrl = (name) => {
|
|
144
|
+
return `/v1/admin/config/file/applications/${name}`;
|
|
145
|
+
};
|
|
133
146
|
var getFileConfigInterceptorUrl = (name) => {
|
|
134
147
|
return `/v1/admin/config/file/interceptors/${name}`;
|
|
135
148
|
};
|
|
149
|
+
var getFileConfigKeyUrl = (name) => {
|
|
150
|
+
return `/v1/admin/config/file/keys/${name}`;
|
|
151
|
+
};
|
|
136
152
|
var getFileConfigModelUrl = (name) => {
|
|
137
153
|
return `/v1/admin/config/file/models/${name}`;
|
|
138
154
|
};
|
|
@@ -148,6 +164,9 @@ var getFileConfigSchemaUrl = (name) => {
|
|
|
148
164
|
var getFileConfigSettingsUrl = (name) => {
|
|
149
165
|
return `/v1/admin/config/file/settings/${name}`;
|
|
150
166
|
};
|
|
167
|
+
var getFileConfigToolsetUrl = (name) => {
|
|
168
|
+
return `/v1/admin/config/file/toolsets/${name}`;
|
|
169
|
+
};
|
|
151
170
|
var getFileMetadataUrl = (bucket, path) => {
|
|
152
171
|
return `/v1/metadata/files/${bucket}/${path}`;
|
|
153
172
|
};
|
|
@@ -243,14 +262,23 @@ var listDeploymentsUrl = "/v1/deployments";
|
|
|
243
262
|
var listExternalServicesUrl = (appid) => {
|
|
244
263
|
return `/v1/applications/${appid}/external-services`;
|
|
245
264
|
};
|
|
265
|
+
var listFileConfigApplicationsUrl = "/v1/admin/config/file/applications";
|
|
246
266
|
var listFileConfigInterceptorsUrl = "/v1/admin/config/file/interceptors";
|
|
267
|
+
var listFileConfigKeysUrl = "/v1/admin/config/file/keys";
|
|
247
268
|
var listFileConfigModelsUrl = "/v1/admin/config/file/models";
|
|
248
269
|
var listFileConfigRolesUrl = "/v1/admin/config/file/roles";
|
|
249
270
|
var listFileConfigRoutesUrl = "/v1/admin/config/file/routes";
|
|
250
271
|
var listFileConfigSchemasUrl = "/v1/admin/config/file/schemas";
|
|
251
272
|
var listFileConfigSettingsUrl = "/v1/admin/config/file/settings";
|
|
273
|
+
var listFileConfigToolsetsUrl = "/v1/admin/config/file/toolsets";
|
|
252
274
|
var listFilesFromCodeInterpreterUrl = "/v1/ops/code_interpreter/list_files";
|
|
253
275
|
var listPublishedResourcesUrl = "/v1/ops/publication/resource/list";
|
|
276
|
+
var listSkillFileMetadataUrl = (bucket, path, filepath) => {
|
|
277
|
+
return `/v2/metadata/skills/${bucket}/${path}/files/${filepath}`;
|
|
278
|
+
};
|
|
279
|
+
var listSkillMetadataUrl = (bucket, path) => {
|
|
280
|
+
return `/v2/metadata/skills/${bucket}/${path}`;
|
|
281
|
+
};
|
|
254
282
|
var moveResourceUrl = "/v1/ops/resource/move";
|
|
255
283
|
var openSessionUrl = "/v1/ops/code_interpreter/open_session";
|
|
256
284
|
var postApplicationMcpUrl = (deployment_name) => {
|
|
@@ -268,6 +296,9 @@ var rateDeploymentUrl = (deployment_name) => {
|
|
|
268
296
|
var redeployApplicationUrl = "/v1/ops/application/redeploy";
|
|
269
297
|
var rejectPublicationUrl = "/v1/ops/publication/reject";
|
|
270
298
|
var reloadConfigUrl = "/v1/ops/config/reload";
|
|
299
|
+
var repairToolSetUrl = (bucket, path) => {
|
|
300
|
+
return `/v1/ops/toolset/${bucket}/${path}/repair`;
|
|
301
|
+
};
|
|
271
302
|
var reportClientChannelUrl = "/v1/ops/client-channel/report";
|
|
272
303
|
var requestUserConsentUrl = (deployment_id) => {
|
|
273
304
|
return `/v1/consent/${deployment_id}`;
|
|
@@ -379,6 +410,10 @@ function createSDK(opts) {
|
|
|
379
410
|
),
|
|
380
411
|
createPublication: (init) => client.POST(createPublicationUrl, init),
|
|
381
412
|
createResponse: (init) => client.POST(createResponseUrl, init),
|
|
413
|
+
createSkillGroupingFolder: (bucket, path, init) => client.PUT(
|
|
414
|
+
createSkillGroupingFolderUrl(bucket, path),
|
|
415
|
+
init
|
|
416
|
+
),
|
|
382
417
|
deleteConversation: (bucket, conversation_path, init) => client.DELETE(
|
|
383
418
|
deleteConversationUrl(bucket, conversation_path),
|
|
384
419
|
init
|
|
@@ -445,6 +480,10 @@ function createSDK(opts) {
|
|
|
445
480
|
deleteSkillFolderUrl(bucket, path),
|
|
446
481
|
init
|
|
447
482
|
),
|
|
483
|
+
deleteSkillGroupingFolder: (bucket, path, init) => client.DELETE(
|
|
484
|
+
deleteSkillGroupingFolderUrl(bucket, path),
|
|
485
|
+
init
|
|
486
|
+
),
|
|
448
487
|
deleteToolSet: (bucket, toolset_path, init) => client.DELETE(
|
|
449
488
|
deleteToolSetUrl(bucket, toolset_path),
|
|
450
489
|
init
|
|
@@ -468,8 +507,16 @@ function createSDK(opts) {
|
|
|
468
507
|
downloadSkillFolderUrl(bucket, path),
|
|
469
508
|
init
|
|
470
509
|
),
|
|
510
|
+
downloadSkillGroupingFolder: (bucket, path, init) => client.GET(
|
|
511
|
+
downloadSkillGroupingFolderUrl(bucket, path),
|
|
512
|
+
init
|
|
513
|
+
),
|
|
471
514
|
executeCode: (init) => client.POST(executeCodeUrl, init),
|
|
472
515
|
externalServiceGetCredentials: (init) => client.POST(externalServiceGetCredentialsUrl, init),
|
|
516
|
+
externalServiceGetOboCredentials: (init) => client.POST(
|
|
517
|
+
externalServiceGetOboCredentialsUrl,
|
|
518
|
+
init
|
|
519
|
+
),
|
|
473
520
|
externalServiceSignIn: (init) => client.POST(externalServiceSignInUrl, init),
|
|
474
521
|
externalServiceSignOut: (init) => client.POST(externalServiceSignOutUrl, init),
|
|
475
522
|
getApplication: (application_name, init) => client.GET(
|
|
@@ -513,10 +560,15 @@ function createSDK(opts) {
|
|
|
513
560
|
getExternalServiceUrl(appid, id),
|
|
514
561
|
init
|
|
515
562
|
),
|
|
563
|
+
getFileConfigApplication: (name, init) => client.GET(
|
|
564
|
+
getFileConfigApplicationUrl(name),
|
|
565
|
+
init
|
|
566
|
+
),
|
|
516
567
|
getFileConfigInterceptor: (name, init) => client.GET(
|
|
517
568
|
getFileConfigInterceptorUrl(name),
|
|
518
569
|
init
|
|
519
570
|
),
|
|
571
|
+
getFileConfigKey: (name, init) => client.GET(getFileConfigKeyUrl(name), init),
|
|
520
572
|
getFileConfigModel: (name, init) => client.GET(getFileConfigModelUrl(name), init),
|
|
521
573
|
getFileConfigRole: (name, init) => client.GET(getFileConfigRoleUrl(name), init),
|
|
522
574
|
getFileConfigRoute: (name, init) => client.GET(getFileConfigRouteUrl(name), init),
|
|
@@ -525,6 +577,10 @@ function createSDK(opts) {
|
|
|
525
577
|
getFileConfigSettingsUrl(name),
|
|
526
578
|
init
|
|
527
579
|
),
|
|
580
|
+
getFileConfigToolset: (name, init) => client.GET(
|
|
581
|
+
getFileConfigToolsetUrl(name),
|
|
582
|
+
init
|
|
583
|
+
),
|
|
528
584
|
getFileMetadata: (bucket, path, init) => client.GET(
|
|
529
585
|
getFileMetadataUrl(bucket, path),
|
|
530
586
|
init
|
|
@@ -631,14 +687,25 @@ function createSDK(opts) {
|
|
|
631
687
|
listExternalServicesUrl(appid),
|
|
632
688
|
init
|
|
633
689
|
),
|
|
690
|
+
listFileConfigApplications: (init) => client.GET(listFileConfigApplicationsUrl, init),
|
|
634
691
|
listFileConfigInterceptors: (init) => client.GET(listFileConfigInterceptorsUrl, init),
|
|
692
|
+
listFileConfigKeys: (init) => client.GET(listFileConfigKeysUrl, init),
|
|
635
693
|
listFileConfigModels: (init) => client.GET(listFileConfigModelsUrl, init),
|
|
636
694
|
listFileConfigRoles: (init) => client.GET(listFileConfigRolesUrl, init),
|
|
637
695
|
listFileConfigRoutes: (init) => client.GET(listFileConfigRoutesUrl, init),
|
|
638
696
|
listFileConfigSchemas: (init) => client.GET(listFileConfigSchemasUrl, init),
|
|
639
697
|
listFileConfigSettings: (init) => client.GET(listFileConfigSettingsUrl, init),
|
|
698
|
+
listFileConfigToolsets: (init) => client.GET(listFileConfigToolsetsUrl, init),
|
|
640
699
|
listFilesFromCodeInterpreter: (init) => client.POST(listFilesFromCodeInterpreterUrl, init),
|
|
641
700
|
listPublishedResources: (init) => client.POST(listPublishedResourcesUrl, init),
|
|
701
|
+
listSkillFileMetadata: (bucket, path, filepath, init) => client.GET(
|
|
702
|
+
listSkillFileMetadataUrl(bucket, path, filepath),
|
|
703
|
+
init
|
|
704
|
+
),
|
|
705
|
+
listSkillMetadata: (bucket, path, init) => client.GET(
|
|
706
|
+
listSkillMetadataUrl(bucket, path),
|
|
707
|
+
init
|
|
708
|
+
),
|
|
642
709
|
moveResource: (init) => client.POST(moveResourceUrl, init),
|
|
643
710
|
openSession: (init) => client.POST(openSessionUrl, init),
|
|
644
711
|
postApplicationMcp: (deployment_name, init) => client.POST(
|
|
@@ -660,6 +727,10 @@ function createSDK(opts) {
|
|
|
660
727
|
redeployApplication: (init) => client.POST(redeployApplicationUrl, init),
|
|
661
728
|
rejectPublication: (init) => client.POST(rejectPublicationUrl, init),
|
|
662
729
|
reloadConfig: (init) => client.POST(reloadConfigUrl, init),
|
|
730
|
+
repairToolSet: (bucket, path, init) => client.POST(
|
|
731
|
+
repairToolSetUrl(bucket, path),
|
|
732
|
+
init
|
|
733
|
+
),
|
|
663
734
|
reportClientChannel: (init) => client.POST(reportClientChannelUrl, init),
|
|
664
735
|
requestUserConsent: (deployment_id, init) => client.GET(
|
|
665
736
|
requestUserConsentUrl(deployment_id),
|