@epam/ai-dial-typescript-sdk 0.1.0-dev.36 → 0.1.0-dev.38
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 +21 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +362 -5
- package/dist/index.d.ts +362 -5
- package/dist/index.js +21 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -263,6 +263,7 @@ var getModelMetadataUrl = (bucket, path) => {
|
|
|
263
263
|
};
|
|
264
264
|
var getModelsUrl = "/openai/models";
|
|
265
265
|
var getNotificationsUrl = "/v1/ops/notification/list";
|
|
266
|
+
var getOfflineCredentialsUrl = "/v1/user/offline-credentials";
|
|
266
267
|
var getPerRequestPermissionsUrl = "/v1/ops/resource/per-request-permissions/list";
|
|
267
268
|
var getPlatformApplicationUrl = (path) => {
|
|
268
269
|
return `/v1/applications/platform/${path}`;
|
|
@@ -326,6 +327,9 @@ var getToolsetUrl = (toolset_name) => {
|
|
|
326
327
|
};
|
|
327
328
|
var getUserBucketUrl = "/v1/bucket";
|
|
328
329
|
var getUserInfoUrl = "/v1/user/info";
|
|
330
|
+
var grantExternalServiceConsentUrl = (appid, id) => {
|
|
331
|
+
return `/v1/applications/${appid}/external-services/${id}/consent`;
|
|
332
|
+
};
|
|
329
333
|
var grantPerRequestPermissionsUrl = "/v1/ops/resource/per-request-permissions/grant";
|
|
330
334
|
var interactClientChannelUrl = "/v1/ops/client-channel/interact";
|
|
331
335
|
var listCatalogSchemasUrl = "/v1/catalog_schemas/schemas";
|
|
@@ -353,6 +357,8 @@ var listSkillMetadataUrl = (bucket, path) => {
|
|
|
353
357
|
return `/v2/metadata/skills/${bucket}/${path}`;
|
|
354
358
|
};
|
|
355
359
|
var moveResourceUrl = "/v1/ops/resource/move";
|
|
360
|
+
var offlineCredentialsSignInUrl = "/v1/user/offline-credentials/signin";
|
|
361
|
+
var offlineCredentialsSignOutUrl = "/v1/user/offline-credentials/signout";
|
|
356
362
|
var openSessionUrl = "/v1/ops/code_interpreter/open_session";
|
|
357
363
|
var postApplicationMcpUrl = (deployment_name) => {
|
|
358
364
|
return `/v1/deployments/${deployment_name}/mcp`;
|
|
@@ -450,6 +456,9 @@ var uploadSkillFolderUrl = (bucket, path) => {
|
|
|
450
456
|
return `/v2/skills/${bucket}/${path}`;
|
|
451
457
|
};
|
|
452
458
|
var validateConfigManifestsUrl = "/v1/admin/validate";
|
|
459
|
+
var withdrawExternalServiceConsentUrl = (appid, id) => {
|
|
460
|
+
return `/v1/applications/${appid}/external-services/${id}/consent`;
|
|
461
|
+
};
|
|
453
462
|
|
|
454
463
|
// src/client.ts
|
|
455
464
|
function createSDK(opts) {
|
|
@@ -738,6 +747,7 @@ function createSDK(opts) {
|
|
|
738
747
|
),
|
|
739
748
|
getModels: (init) => client.GET(getModelsUrl, init),
|
|
740
749
|
getNotifications: (init) => client.POST(getNotificationsUrl, init),
|
|
750
|
+
getOfflineCredentials: (init) => client.GET(getOfflineCredentialsUrl, init),
|
|
741
751
|
getPerRequestPermissions: (init) => client.POST(getPerRequestPermissionsUrl, init),
|
|
742
752
|
getPlatformApplication: (path, init) => client.GET(
|
|
743
753
|
getPlatformApplicationUrl(path),
|
|
@@ -804,6 +814,10 @@ function createSDK(opts) {
|
|
|
804
814
|
getToolset: (toolset_name, init) => client.GET(getToolsetUrl(toolset_name), init),
|
|
805
815
|
getUserBucket: (init) => client.GET(getUserBucketUrl, init),
|
|
806
816
|
getUserInfo: (init) => client.GET(getUserInfoUrl, init),
|
|
817
|
+
grantExternalServiceConsent: (appid, id, init) => client.POST(
|
|
818
|
+
grantExternalServiceConsentUrl(appid, id),
|
|
819
|
+
init
|
|
820
|
+
),
|
|
807
821
|
grantPerRequestPermissions: (init) => client.POST(grantPerRequestPermissionsUrl, init),
|
|
808
822
|
interactClientChannel: (init) => client.POST(interactClientChannelUrl, init),
|
|
809
823
|
listCatalogSchemas: (init) => client.GET(listCatalogSchemasUrl, init),
|
|
@@ -834,6 +848,8 @@ function createSDK(opts) {
|
|
|
834
848
|
init
|
|
835
849
|
),
|
|
836
850
|
moveResource: (init) => client.POST(moveResourceUrl, init),
|
|
851
|
+
offlineCredentialsSignIn: (init) => client.POST(offlineCredentialsSignInUrl, init),
|
|
852
|
+
offlineCredentialsSignOut: (init) => client.POST(offlineCredentialsSignOutUrl, init),
|
|
837
853
|
openSession: (init) => client.POST(openSessionUrl, init),
|
|
838
854
|
postApplicationMcp: (deployment_name, init) => client.POST(
|
|
839
855
|
postApplicationMcpUrl(deployment_name),
|
|
@@ -938,7 +954,11 @@ function createSDK(opts) {
|
|
|
938
954
|
uploadSkillFolderUrl(bucket, path),
|
|
939
955
|
init
|
|
940
956
|
),
|
|
941
|
-
validateConfigManifests: (init) => client.POST(validateConfigManifestsUrl, init)
|
|
957
|
+
validateConfigManifests: (init) => client.POST(validateConfigManifestsUrl, init),
|
|
958
|
+
withdrawExternalServiceConsent: (appid, id, init) => client.DELETE(
|
|
959
|
+
withdrawExternalServiceConsentUrl(appid, id),
|
|
960
|
+
init
|
|
961
|
+
)
|
|
942
962
|
};
|
|
943
963
|
}
|
|
944
964
|
// Annotate the CommonJS export names for ESM import in node:
|