@epam/ai-dial-typescript-sdk 0.1.0-dev.32 → 0.1.0-dev.34
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 +121 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4707 -1988
- package/dist/index.d.ts +4707 -1988
- package/dist/index.js +121 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
package/dist/index.js
CHANGED
|
@@ -26,6 +26,12 @@ 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
|
+
};
|
|
32
|
+
var deleteCatalogSchemaResourceUrl = (bucket, path) => {
|
|
33
|
+
return `/v1/catalog_schemas/${bucket}/${path}`;
|
|
34
|
+
};
|
|
29
35
|
var deleteConversationUrl = (bucket, conversation_path) => {
|
|
30
36
|
return `/v1/conversations/${bucket}/${conversation_path}`;
|
|
31
37
|
};
|
|
@@ -76,6 +82,9 @@ var deleteSkillFileUrl = (bucket, path, filepath) => {
|
|
|
76
82
|
var deleteSkillFolderUrl = (bucket, path) => {
|
|
77
83
|
return `/v2/skills/${bucket}/${path}`;
|
|
78
84
|
};
|
|
85
|
+
var deleteSkillGroupingFolderUrl = (bucket, path) => {
|
|
86
|
+
return `/v2/skills/${bucket}/${path}/`;
|
|
87
|
+
};
|
|
79
88
|
var deleteToolSetUrl = (bucket, toolset_path) => {
|
|
80
89
|
return `/v1/toolsets/${bucket}/${toolset_path}`;
|
|
81
90
|
};
|
|
@@ -94,18 +103,32 @@ var downloadSkillFileUrl = (bucket, path, filepath) => {
|
|
|
94
103
|
var downloadSkillFolderUrl = (bucket, path) => {
|
|
95
104
|
return `/v2/skills/${bucket}/${path}`;
|
|
96
105
|
};
|
|
106
|
+
var downloadSkillGroupingFolderUrl = (bucket, path) => {
|
|
107
|
+
return `/v2/skills/${bucket}/${path}/`;
|
|
108
|
+
};
|
|
97
109
|
var executeCodeUrl = "/v1/ops/code_interpreter/execute_code";
|
|
98
110
|
var externalServiceGetCredentialsUrl = "/v1/ops/external-service/credentials";
|
|
111
|
+
var externalServiceGetOboCredentialsUrl = "/v1/ops/external-service/obo-credentials";
|
|
99
112
|
var externalServiceSignInUrl = "/v1/ops/external-service/signin";
|
|
100
113
|
var externalServiceSignOutUrl = "/v1/ops/external-service/signout";
|
|
101
114
|
var getApplicationUrl = (application_name) => {
|
|
102
115
|
return `/openai/applications/${application_name}`;
|
|
103
116
|
};
|
|
104
117
|
var getApplicationLogsUrl = "/v1/ops/application/logs";
|
|
118
|
+
var getApplicationMcpResourcesUrl = (deployment_name) => {
|
|
119
|
+
return `/v1/deployments/${deployment_name}/mcp/resources`;
|
|
120
|
+
};
|
|
105
121
|
var getApplicationMetadataUrl = (bucket, path) => {
|
|
106
122
|
return `/v1/metadata/applications/${bucket}/${path}`;
|
|
107
123
|
};
|
|
108
124
|
var getApplicationsUrl = "/openai/applications";
|
|
125
|
+
var getCatalogSchemaUrl = "/v1/catalog_schemas/schema";
|
|
126
|
+
var getCatalogSchemaMetadataUrl = (bucket, path) => {
|
|
127
|
+
return `/v1/metadata/catalog_schemas/${bucket}/${path}`;
|
|
128
|
+
};
|
|
129
|
+
var getCatalogSchemaResourceUrl = (bucket, path) => {
|
|
130
|
+
return `/v1/catalog_schemas/${bucket}/${path}`;
|
|
131
|
+
};
|
|
109
132
|
var getConfigHealthUrl = "/v1/admin/health/config";
|
|
110
133
|
var getConversationUrl = (bucket, conversation_path) => {
|
|
111
134
|
return `/v1/conversations/${bucket}/${conversation_path}`;
|
|
@@ -130,9 +153,18 @@ var getDeploymentsUrl = "/openai/deployments";
|
|
|
130
153
|
var getExternalServiceUrl = (appid, id) => {
|
|
131
154
|
return `/v1/applications/${appid}/external-services/${id}`;
|
|
132
155
|
};
|
|
156
|
+
var getFileConfigApplicationUrl = (name) => {
|
|
157
|
+
return `/v1/admin/config/file/applications/${name}`;
|
|
158
|
+
};
|
|
159
|
+
var getFileConfigCatalogSchemaUrl = (name) => {
|
|
160
|
+
return `/v1/admin/config/file/catalog_schemas/${name}`;
|
|
161
|
+
};
|
|
133
162
|
var getFileConfigInterceptorUrl = (name) => {
|
|
134
163
|
return `/v1/admin/config/file/interceptors/${name}`;
|
|
135
164
|
};
|
|
165
|
+
var getFileConfigKeyUrl = (name) => {
|
|
166
|
+
return `/v1/admin/config/file/keys/${name}`;
|
|
167
|
+
};
|
|
136
168
|
var getFileConfigModelUrl = (name) => {
|
|
137
169
|
return `/v1/admin/config/file/models/${name}`;
|
|
138
170
|
};
|
|
@@ -148,6 +180,9 @@ var getFileConfigSchemaUrl = (name) => {
|
|
|
148
180
|
var getFileConfigSettingsUrl = (name) => {
|
|
149
181
|
return `/v1/admin/config/file/settings/${name}`;
|
|
150
182
|
};
|
|
183
|
+
var getFileConfigToolsetUrl = (name) => {
|
|
184
|
+
return `/v1/admin/config/file/toolsets/${name}`;
|
|
185
|
+
};
|
|
151
186
|
var getFileMetadataUrl = (bucket, path) => {
|
|
152
187
|
return `/v1/metadata/files/${bucket}/${path}`;
|
|
153
188
|
};
|
|
@@ -173,6 +208,7 @@ var getKeyUrl = (bucket, path) => {
|
|
|
173
208
|
var getKeyMetadataUrl = (bucket, path) => {
|
|
174
209
|
return `/v1/metadata/keys/${bucket}/${path}`;
|
|
175
210
|
};
|
|
211
|
+
var getMetaSchemaOfCatalogSchemaUrl = "/v1/catalog_schemas/meta_schema";
|
|
176
212
|
var getMetaSchemaOfCustomApplicationSchemaUrl = "/v1/application_type_schemas/meta_schema";
|
|
177
213
|
var getModelUrl = (model_name) => {
|
|
178
214
|
return `/openai/models/${model_name}`;
|
|
@@ -238,19 +274,30 @@ var getUserBucketUrl = "/v1/bucket";
|
|
|
238
274
|
var getUserInfoUrl = "/v1/user/info";
|
|
239
275
|
var grantPerRequestPermissionsUrl = "/v1/ops/resource/per-request-permissions/grant";
|
|
240
276
|
var interactClientChannelUrl = "/v1/ops/client-channel/interact";
|
|
277
|
+
var listCatalogSchemasUrl = "/v1/catalog_schemas/schemas";
|
|
241
278
|
var listCustomApplicationSchemasUrl = "/v1/application_type_schemas/schemas";
|
|
242
279
|
var listDeploymentsUrl = "/v1/deployments";
|
|
243
280
|
var listExternalServicesUrl = (appid) => {
|
|
244
281
|
return `/v1/applications/${appid}/external-services`;
|
|
245
282
|
};
|
|
283
|
+
var listFileConfigApplicationsUrl = "/v1/admin/config/file/applications";
|
|
284
|
+
var listFileConfigCatalogSchemasUrl = "/v1/admin/config/file/catalog_schemas";
|
|
246
285
|
var listFileConfigInterceptorsUrl = "/v1/admin/config/file/interceptors";
|
|
286
|
+
var listFileConfigKeysUrl = "/v1/admin/config/file/keys";
|
|
247
287
|
var listFileConfigModelsUrl = "/v1/admin/config/file/models";
|
|
248
288
|
var listFileConfigRolesUrl = "/v1/admin/config/file/roles";
|
|
249
289
|
var listFileConfigRoutesUrl = "/v1/admin/config/file/routes";
|
|
250
290
|
var listFileConfigSchemasUrl = "/v1/admin/config/file/schemas";
|
|
251
291
|
var listFileConfigSettingsUrl = "/v1/admin/config/file/settings";
|
|
292
|
+
var listFileConfigToolsetsUrl = "/v1/admin/config/file/toolsets";
|
|
252
293
|
var listFilesFromCodeInterpreterUrl = "/v1/ops/code_interpreter/list_files";
|
|
253
294
|
var listPublishedResourcesUrl = "/v1/ops/publication/resource/list";
|
|
295
|
+
var listSkillFileMetadataUrl = (bucket, path, filepath) => {
|
|
296
|
+
return `/v2/metadata/skills/${bucket}/${path}/files/${filepath}`;
|
|
297
|
+
};
|
|
298
|
+
var listSkillMetadataUrl = (bucket, path) => {
|
|
299
|
+
return `/v2/metadata/skills/${bucket}/${path}`;
|
|
300
|
+
};
|
|
254
301
|
var moveResourceUrl = "/v1/ops/resource/move";
|
|
255
302
|
var openSessionUrl = "/v1/ops/code_interpreter/open_session";
|
|
256
303
|
var postApplicationMcpUrl = (deployment_name) => {
|
|
@@ -268,12 +315,18 @@ var rateDeploymentUrl = (deployment_name) => {
|
|
|
268
315
|
var redeployApplicationUrl = "/v1/ops/application/redeploy";
|
|
269
316
|
var rejectPublicationUrl = "/v1/ops/publication/reject";
|
|
270
317
|
var reloadConfigUrl = "/v1/ops/config/reload";
|
|
318
|
+
var repairToolSetUrl = (bucket, path) => {
|
|
319
|
+
return `/v1/ops/toolset/${bucket}/${path}/repair`;
|
|
320
|
+
};
|
|
271
321
|
var reportClientChannelUrl = "/v1/ops/client-channel/report";
|
|
272
322
|
var requestUserConsentUrl = (deployment_id) => {
|
|
273
323
|
return `/v1/consent/${deployment_id}`;
|
|
274
324
|
};
|
|
275
325
|
var revokePerRequestPermissionsUrl = "/v1/ops/resource/per-request-permissions/revoke";
|
|
276
326
|
var revokeSharedResourcesUrl = "/v1/ops/resource/share/revoke";
|
|
327
|
+
var saveCatalogSchemaResourceUrl = (bucket, path) => {
|
|
328
|
+
return `/v1/catalog_schemas/${bucket}/${path}`;
|
|
329
|
+
};
|
|
277
330
|
var saveConversationUrl = (bucket, conversation_path) => {
|
|
278
331
|
return `/v1/conversations/${bucket}/${conversation_path}`;
|
|
279
332
|
};
|
|
@@ -379,6 +432,14 @@ function createSDK(opts) {
|
|
|
379
432
|
),
|
|
380
433
|
createPublication: (init) => client.POST(createPublicationUrl, init),
|
|
381
434
|
createResponse: (init) => client.POST(createResponseUrl, init),
|
|
435
|
+
createSkillGroupingFolder: (bucket, path, init) => client.PUT(
|
|
436
|
+
createSkillGroupingFolderUrl(bucket, path),
|
|
437
|
+
init
|
|
438
|
+
),
|
|
439
|
+
deleteCatalogSchemaResource: (bucket, path, init) => client.DELETE(
|
|
440
|
+
deleteCatalogSchemaResourceUrl(bucket, path),
|
|
441
|
+
init
|
|
442
|
+
),
|
|
382
443
|
deleteConversation: (bucket, conversation_path, init) => client.DELETE(
|
|
383
444
|
deleteConversationUrl(bucket, conversation_path),
|
|
384
445
|
init
|
|
@@ -445,6 +506,10 @@ function createSDK(opts) {
|
|
|
445
506
|
deleteSkillFolderUrl(bucket, path),
|
|
446
507
|
init
|
|
447
508
|
),
|
|
509
|
+
deleteSkillGroupingFolder: (bucket, path, init) => client.DELETE(
|
|
510
|
+
deleteSkillGroupingFolderUrl(bucket, path),
|
|
511
|
+
init
|
|
512
|
+
),
|
|
448
513
|
deleteToolSet: (bucket, toolset_path, init) => client.DELETE(
|
|
449
514
|
deleteToolSetUrl(bucket, toolset_path),
|
|
450
515
|
init
|
|
@@ -468,8 +533,16 @@ function createSDK(opts) {
|
|
|
468
533
|
downloadSkillFolderUrl(bucket, path),
|
|
469
534
|
init
|
|
470
535
|
),
|
|
536
|
+
downloadSkillGroupingFolder: (bucket, path, init) => client.GET(
|
|
537
|
+
downloadSkillGroupingFolderUrl(bucket, path),
|
|
538
|
+
init
|
|
539
|
+
),
|
|
471
540
|
executeCode: (init) => client.POST(executeCodeUrl, init),
|
|
472
541
|
externalServiceGetCredentials: (init) => client.POST(externalServiceGetCredentialsUrl, init),
|
|
542
|
+
externalServiceGetOboCredentials: (init) => client.POST(
|
|
543
|
+
externalServiceGetOboCredentialsUrl,
|
|
544
|
+
init
|
|
545
|
+
),
|
|
473
546
|
externalServiceSignIn: (init) => client.POST(externalServiceSignInUrl, init),
|
|
474
547
|
externalServiceSignOut: (init) => client.POST(externalServiceSignOutUrl, init),
|
|
475
548
|
getApplication: (application_name, init) => client.GET(
|
|
@@ -477,11 +550,24 @@ function createSDK(opts) {
|
|
|
477
550
|
init
|
|
478
551
|
),
|
|
479
552
|
getApplicationLogs: (init) => client.POST(getApplicationLogsUrl, init),
|
|
553
|
+
getApplicationMcpResources: (deployment_name, init) => client.GET(
|
|
554
|
+
getApplicationMcpResourcesUrl(deployment_name),
|
|
555
|
+
init
|
|
556
|
+
),
|
|
480
557
|
getApplicationMetadata: (bucket, path, init) => client.GET(
|
|
481
558
|
getApplicationMetadataUrl(bucket, path),
|
|
482
559
|
init
|
|
483
560
|
),
|
|
484
561
|
getApplications: (init) => client.GET(getApplicationsUrl, init),
|
|
562
|
+
getCatalogSchema: (init) => client.GET(getCatalogSchemaUrl, init),
|
|
563
|
+
getCatalogSchemaMetadata: (bucket, path, init) => client.GET(
|
|
564
|
+
getCatalogSchemaMetadataUrl(bucket, path),
|
|
565
|
+
init
|
|
566
|
+
),
|
|
567
|
+
getCatalogSchemaResource: (bucket, path, init) => client.GET(
|
|
568
|
+
getCatalogSchemaResourceUrl(bucket, path),
|
|
569
|
+
init
|
|
570
|
+
),
|
|
485
571
|
getConfigHealth: (init) => client.GET(getConfigHealthUrl, init),
|
|
486
572
|
getConversation: (bucket, conversation_path, init) => client.GET(
|
|
487
573
|
getConversationUrl(bucket, conversation_path),
|
|
@@ -513,10 +599,19 @@ function createSDK(opts) {
|
|
|
513
599
|
getExternalServiceUrl(appid, id),
|
|
514
600
|
init
|
|
515
601
|
),
|
|
602
|
+
getFileConfigApplication: (name, init) => client.GET(
|
|
603
|
+
getFileConfigApplicationUrl(name),
|
|
604
|
+
init
|
|
605
|
+
),
|
|
606
|
+
getFileConfigCatalogSchema: (name, init) => client.GET(
|
|
607
|
+
getFileConfigCatalogSchemaUrl(name),
|
|
608
|
+
init
|
|
609
|
+
),
|
|
516
610
|
getFileConfigInterceptor: (name, init) => client.GET(
|
|
517
611
|
getFileConfigInterceptorUrl(name),
|
|
518
612
|
init
|
|
519
613
|
),
|
|
614
|
+
getFileConfigKey: (name, init) => client.GET(getFileConfigKeyUrl(name), init),
|
|
520
615
|
getFileConfigModel: (name, init) => client.GET(getFileConfigModelUrl(name), init),
|
|
521
616
|
getFileConfigRole: (name, init) => client.GET(getFileConfigRoleUrl(name), init),
|
|
522
617
|
getFileConfigRoute: (name, init) => client.GET(getFileConfigRouteUrl(name), init),
|
|
@@ -525,6 +620,10 @@ function createSDK(opts) {
|
|
|
525
620
|
getFileConfigSettingsUrl(name),
|
|
526
621
|
init
|
|
527
622
|
),
|
|
623
|
+
getFileConfigToolset: (name, init) => client.GET(
|
|
624
|
+
getFileConfigToolsetUrl(name),
|
|
625
|
+
init
|
|
626
|
+
),
|
|
528
627
|
getFileMetadata: (bucket, path, init) => client.GET(
|
|
529
628
|
getFileMetadataUrl(bucket, path),
|
|
530
629
|
init
|
|
@@ -555,6 +654,7 @@ function createSDK(opts) {
|
|
|
555
654
|
getKeyMetadataUrl(bucket, path),
|
|
556
655
|
init
|
|
557
656
|
),
|
|
657
|
+
getMetaSchemaOfCatalogSchema: (init) => client.GET(getMetaSchemaOfCatalogSchemaUrl, init),
|
|
558
658
|
getMetaSchemaOfCustomApplicationSchema: (init) => client.GET(
|
|
559
659
|
getMetaSchemaOfCustomApplicationSchemaUrl,
|
|
560
660
|
init
|
|
@@ -625,20 +725,33 @@ function createSDK(opts) {
|
|
|
625
725
|
getUserInfo: (init) => client.GET(getUserInfoUrl, init),
|
|
626
726
|
grantPerRequestPermissions: (init) => client.POST(grantPerRequestPermissionsUrl, init),
|
|
627
727
|
interactClientChannel: (init) => client.POST(interactClientChannelUrl, init),
|
|
728
|
+
listCatalogSchemas: (init) => client.GET(listCatalogSchemasUrl, init),
|
|
628
729
|
listCustomApplicationSchemas: (init) => client.GET(listCustomApplicationSchemasUrl, init),
|
|
629
730
|
listDeployments: (init) => client.GET(listDeploymentsUrl, init),
|
|
630
731
|
listExternalServices: (appid, init) => client.GET(
|
|
631
732
|
listExternalServicesUrl(appid),
|
|
632
733
|
init
|
|
633
734
|
),
|
|
735
|
+
listFileConfigApplications: (init) => client.GET(listFileConfigApplicationsUrl, init),
|
|
736
|
+
listFileConfigCatalogSchemas: (init) => client.GET(listFileConfigCatalogSchemasUrl, init),
|
|
634
737
|
listFileConfigInterceptors: (init) => client.GET(listFileConfigInterceptorsUrl, init),
|
|
738
|
+
listFileConfigKeys: (init) => client.GET(listFileConfigKeysUrl, init),
|
|
635
739
|
listFileConfigModels: (init) => client.GET(listFileConfigModelsUrl, init),
|
|
636
740
|
listFileConfigRoles: (init) => client.GET(listFileConfigRolesUrl, init),
|
|
637
741
|
listFileConfigRoutes: (init) => client.GET(listFileConfigRoutesUrl, init),
|
|
638
742
|
listFileConfigSchemas: (init) => client.GET(listFileConfigSchemasUrl, init),
|
|
639
743
|
listFileConfigSettings: (init) => client.GET(listFileConfigSettingsUrl, init),
|
|
744
|
+
listFileConfigToolsets: (init) => client.GET(listFileConfigToolsetsUrl, init),
|
|
640
745
|
listFilesFromCodeInterpreter: (init) => client.POST(listFilesFromCodeInterpreterUrl, init),
|
|
641
746
|
listPublishedResources: (init) => client.POST(listPublishedResourcesUrl, init),
|
|
747
|
+
listSkillFileMetadata: (bucket, path, filepath, init) => client.GET(
|
|
748
|
+
listSkillFileMetadataUrl(bucket, path, filepath),
|
|
749
|
+
init
|
|
750
|
+
),
|
|
751
|
+
listSkillMetadata: (bucket, path, init) => client.GET(
|
|
752
|
+
listSkillMetadataUrl(bucket, path),
|
|
753
|
+
init
|
|
754
|
+
),
|
|
642
755
|
moveResource: (init) => client.POST(moveResourceUrl, init),
|
|
643
756
|
openSession: (init) => client.POST(openSessionUrl, init),
|
|
644
757
|
postApplicationMcp: (deployment_name, init) => client.POST(
|
|
@@ -660,6 +773,10 @@ function createSDK(opts) {
|
|
|
660
773
|
redeployApplication: (init) => client.POST(redeployApplicationUrl, init),
|
|
661
774
|
rejectPublication: (init) => client.POST(rejectPublicationUrl, init),
|
|
662
775
|
reloadConfig: (init) => client.POST(reloadConfigUrl, init),
|
|
776
|
+
repairToolSet: (bucket, path, init) => client.POST(
|
|
777
|
+
repairToolSetUrl(bucket, path),
|
|
778
|
+
init
|
|
779
|
+
),
|
|
663
780
|
reportClientChannel: (init) => client.POST(reportClientChannelUrl, init),
|
|
664
781
|
requestUserConsent: (deployment_id, init) => client.GET(
|
|
665
782
|
requestUserConsentUrl(deployment_id),
|
|
@@ -667,6 +784,10 @@ function createSDK(opts) {
|
|
|
667
784
|
),
|
|
668
785
|
revokePerRequestPermissions: (init) => client.POST(revokePerRequestPermissionsUrl, init),
|
|
669
786
|
revokeSharedResources: (init) => client.POST(revokeSharedResourcesUrl, init),
|
|
787
|
+
saveCatalogSchemaResource: (bucket, path, init) => client.PUT(
|
|
788
|
+
saveCatalogSchemaResourceUrl(bucket, path),
|
|
789
|
+
init
|
|
790
|
+
),
|
|
670
791
|
saveConversation: (bucket, conversation_path, init) => client.PUT(
|
|
671
792
|
saveConversationUrl(bucket, conversation_path),
|
|
672
793
|
init
|