@epam/ai-dial-typescript-sdk 0.1.0-dev.36 → 0.1.0-dev.37
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 +357 -1
- package/dist/index.d.ts +357 -1
- package/dist/index.js +21 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -807,6 +807,24 @@ interface paths {
|
|
|
807
807
|
patch?: never;
|
|
808
808
|
trace?: never;
|
|
809
809
|
};
|
|
810
|
+
'/v1/applications/{appId}/external-services/{id}/consent': {
|
|
811
|
+
parameters: {
|
|
812
|
+
query?: never;
|
|
813
|
+
header?: never;
|
|
814
|
+
path?: never;
|
|
815
|
+
cookie?: never;
|
|
816
|
+
};
|
|
817
|
+
get?: never;
|
|
818
|
+
put?: never;
|
|
819
|
+
/** /v1/applications/{appId}/external-services/{id}/consent */
|
|
820
|
+
post: operations['grantExternalServiceConsent'];
|
|
821
|
+
/** /v1/applications/{appId}/external-services/{id}/consent */
|
|
822
|
+
delete: operations['withdrawExternalServiceConsent'];
|
|
823
|
+
options?: never;
|
|
824
|
+
head?: never;
|
|
825
|
+
patch?: never;
|
|
826
|
+
trace?: never;
|
|
827
|
+
};
|
|
810
828
|
'/v1/applications/{bucket}/{application_path}': {
|
|
811
829
|
parameters: {
|
|
812
830
|
query?: never;
|
|
@@ -2645,6 +2663,57 @@ interface paths {
|
|
|
2645
2663
|
patch?: never;
|
|
2646
2664
|
trace?: never;
|
|
2647
2665
|
};
|
|
2666
|
+
'/v1/user/offline-credentials': {
|
|
2667
|
+
parameters: {
|
|
2668
|
+
query?: never;
|
|
2669
|
+
header?: never;
|
|
2670
|
+
path?: never;
|
|
2671
|
+
cookie?: never;
|
|
2672
|
+
};
|
|
2673
|
+
/** /v1/user/offline-credentials */
|
|
2674
|
+
get: operations['getOfflineCredentials'];
|
|
2675
|
+
put?: never;
|
|
2676
|
+
post?: never;
|
|
2677
|
+
delete?: never;
|
|
2678
|
+
options?: never;
|
|
2679
|
+
head?: never;
|
|
2680
|
+
patch?: never;
|
|
2681
|
+
trace?: never;
|
|
2682
|
+
};
|
|
2683
|
+
'/v1/user/offline-credentials/signin': {
|
|
2684
|
+
parameters: {
|
|
2685
|
+
query?: never;
|
|
2686
|
+
header?: never;
|
|
2687
|
+
path?: never;
|
|
2688
|
+
cookie?: never;
|
|
2689
|
+
};
|
|
2690
|
+
get?: never;
|
|
2691
|
+
put?: never;
|
|
2692
|
+
/** /v1/user/offline-credentials/signin */
|
|
2693
|
+
post: operations['offlineCredentialsSignIn'];
|
|
2694
|
+
delete?: never;
|
|
2695
|
+
options?: never;
|
|
2696
|
+
head?: never;
|
|
2697
|
+
patch?: never;
|
|
2698
|
+
trace?: never;
|
|
2699
|
+
};
|
|
2700
|
+
'/v1/user/offline-credentials/signout': {
|
|
2701
|
+
parameters: {
|
|
2702
|
+
query?: never;
|
|
2703
|
+
header?: never;
|
|
2704
|
+
path?: never;
|
|
2705
|
+
cookie?: never;
|
|
2706
|
+
};
|
|
2707
|
+
get?: never;
|
|
2708
|
+
put?: never;
|
|
2709
|
+
/** /v1/user/offline-credentials/signout */
|
|
2710
|
+
post: operations['offlineCredentialsSignOut'];
|
|
2711
|
+
delete?: never;
|
|
2712
|
+
options?: never;
|
|
2713
|
+
head?: never;
|
|
2714
|
+
patch?: never;
|
|
2715
|
+
trace?: never;
|
|
2716
|
+
};
|
|
2648
2717
|
'/v1/{deployment_name}/rate': {
|
|
2649
2718
|
parameters: {
|
|
2650
2719
|
query?: never;
|
|
@@ -2915,7 +2984,7 @@ interface components {
|
|
|
2915
2984
|
[key: string]: unknown;
|
|
2916
2985
|
}) & (unknown | unknown);
|
|
2917
2986
|
/** @enum {string} */
|
|
2918
|
-
AuthenticationType: 'OAUTH' | 'API_KEY' | 'NONE';
|
|
2987
|
+
AuthenticationType: 'OAUTH' | 'API_KEY' | 'NONE' | 'DIAL_NATIVE';
|
|
2919
2988
|
AzureEmbeddingsRequest: {
|
|
2920
2989
|
model?: string;
|
|
2921
2990
|
input: string | unknown[];
|
|
@@ -3730,6 +3799,21 @@ interface components {
|
|
|
3730
3799
|
ownerUserId?: string;
|
|
3731
3800
|
url?: string;
|
|
3732
3801
|
};
|
|
3802
|
+
OfflineCredentialsSignInRequest: {
|
|
3803
|
+
code?: string;
|
|
3804
|
+
redirectUri?: string;
|
|
3805
|
+
};
|
|
3806
|
+
OfflineCredentialsStatus: {
|
|
3807
|
+
connect?: components['schemas']['OfflineCredentialsStatusConnect'];
|
|
3808
|
+
connected?: boolean;
|
|
3809
|
+
available?: boolean;
|
|
3810
|
+
};
|
|
3811
|
+
OfflineCredentialsStatusConnect: {
|
|
3812
|
+
authorization_endpoint?: string;
|
|
3813
|
+
client_id?: string;
|
|
3814
|
+
redirect_uri?: string;
|
|
3815
|
+
scopes?: string[];
|
|
3816
|
+
};
|
|
3733
3817
|
Pattern: Record<string, never>;
|
|
3734
3818
|
PerRequestReceiver: {
|
|
3735
3819
|
receiver?: string;
|
|
@@ -7770,6 +7854,128 @@ interface operations {
|
|
|
7770
7854
|
};
|
|
7771
7855
|
};
|
|
7772
7856
|
};
|
|
7857
|
+
grantExternalServiceConsent: {
|
|
7858
|
+
parameters: {
|
|
7859
|
+
query?: never;
|
|
7860
|
+
header?: never;
|
|
7861
|
+
path: {
|
|
7862
|
+
/** @description The application ID. Can be either a static config application name or a dynamic application path. */
|
|
7863
|
+
appId: string;
|
|
7864
|
+
/** @description The external service ID defined in the application's external_services configuration. */
|
|
7865
|
+
id: string;
|
|
7866
|
+
};
|
|
7867
|
+
cookie?: never;
|
|
7868
|
+
};
|
|
7869
|
+
requestBody?: never;
|
|
7870
|
+
responses: {
|
|
7871
|
+
/** @description Success */
|
|
7872
|
+
200: {
|
|
7873
|
+
headers: {
|
|
7874
|
+
[name: string]: unknown;
|
|
7875
|
+
};
|
|
7876
|
+
content: {
|
|
7877
|
+
'application/json': boolean;
|
|
7878
|
+
};
|
|
7879
|
+
};
|
|
7880
|
+
/** @description Bad request */
|
|
7881
|
+
400: {
|
|
7882
|
+
headers: {
|
|
7883
|
+
[name: string]: unknown;
|
|
7884
|
+
};
|
|
7885
|
+
content: {
|
|
7886
|
+
'application/json': components['schemas']['ErrorData'];
|
|
7887
|
+
};
|
|
7888
|
+
};
|
|
7889
|
+
/** @description Forbidden */
|
|
7890
|
+
403: {
|
|
7891
|
+
headers: {
|
|
7892
|
+
[name: string]: unknown;
|
|
7893
|
+
};
|
|
7894
|
+
content: {
|
|
7895
|
+
'application/json': components['schemas']['ErrorData'];
|
|
7896
|
+
};
|
|
7897
|
+
};
|
|
7898
|
+
/** @description Not found */
|
|
7899
|
+
404: {
|
|
7900
|
+
headers: {
|
|
7901
|
+
[name: string]: unknown;
|
|
7902
|
+
};
|
|
7903
|
+
content: {
|
|
7904
|
+
'application/json': components['schemas']['ErrorData'];
|
|
7905
|
+
};
|
|
7906
|
+
};
|
|
7907
|
+
/** @description The server had an error while processing your request. */
|
|
7908
|
+
500: {
|
|
7909
|
+
headers: {
|
|
7910
|
+
[name: string]: unknown;
|
|
7911
|
+
};
|
|
7912
|
+
content: {
|
|
7913
|
+
'application/json': components['schemas']['ErrorData'];
|
|
7914
|
+
};
|
|
7915
|
+
};
|
|
7916
|
+
};
|
|
7917
|
+
};
|
|
7918
|
+
withdrawExternalServiceConsent: {
|
|
7919
|
+
parameters: {
|
|
7920
|
+
query?: never;
|
|
7921
|
+
header?: never;
|
|
7922
|
+
path: {
|
|
7923
|
+
/** @description The application ID. Can be either a static config application name or a dynamic application path. */
|
|
7924
|
+
appId: string;
|
|
7925
|
+
/** @description The external service ID defined in the application's external_services configuration. */
|
|
7926
|
+
id: string;
|
|
7927
|
+
};
|
|
7928
|
+
cookie?: never;
|
|
7929
|
+
};
|
|
7930
|
+
requestBody?: never;
|
|
7931
|
+
responses: {
|
|
7932
|
+
/** @description Success */
|
|
7933
|
+
200: {
|
|
7934
|
+
headers: {
|
|
7935
|
+
[name: string]: unknown;
|
|
7936
|
+
};
|
|
7937
|
+
content: {
|
|
7938
|
+
'application/json': boolean;
|
|
7939
|
+
};
|
|
7940
|
+
};
|
|
7941
|
+
/** @description Bad request */
|
|
7942
|
+
400: {
|
|
7943
|
+
headers: {
|
|
7944
|
+
[name: string]: unknown;
|
|
7945
|
+
};
|
|
7946
|
+
content: {
|
|
7947
|
+
'application/json': components['schemas']['ErrorData'];
|
|
7948
|
+
};
|
|
7949
|
+
};
|
|
7950
|
+
/** @description Forbidden */
|
|
7951
|
+
403: {
|
|
7952
|
+
headers: {
|
|
7953
|
+
[name: string]: unknown;
|
|
7954
|
+
};
|
|
7955
|
+
content: {
|
|
7956
|
+
'application/json': components['schemas']['ErrorData'];
|
|
7957
|
+
};
|
|
7958
|
+
};
|
|
7959
|
+
/** @description Not found */
|
|
7960
|
+
404: {
|
|
7961
|
+
headers: {
|
|
7962
|
+
[name: string]: unknown;
|
|
7963
|
+
};
|
|
7964
|
+
content: {
|
|
7965
|
+
'application/json': components['schemas']['ErrorData'];
|
|
7966
|
+
};
|
|
7967
|
+
};
|
|
7968
|
+
/** @description The server had an error while processing your request. */
|
|
7969
|
+
500: {
|
|
7970
|
+
headers: {
|
|
7971
|
+
[name: string]: unknown;
|
|
7972
|
+
};
|
|
7973
|
+
content: {
|
|
7974
|
+
'application/json': components['schemas']['ErrorData'];
|
|
7975
|
+
};
|
|
7976
|
+
};
|
|
7977
|
+
};
|
|
7978
|
+
};
|
|
7773
7979
|
getCustomApplication: {
|
|
7774
7980
|
parameters: {
|
|
7775
7981
|
query?: never;
|
|
@@ -17671,6 +17877,151 @@ interface operations {
|
|
|
17671
17877
|
};
|
|
17672
17878
|
};
|
|
17673
17879
|
};
|
|
17880
|
+
getOfflineCredentials: {
|
|
17881
|
+
parameters: {
|
|
17882
|
+
query?: never;
|
|
17883
|
+
header?: never;
|
|
17884
|
+
path?: never;
|
|
17885
|
+
cookie?: never;
|
|
17886
|
+
};
|
|
17887
|
+
requestBody?: never;
|
|
17888
|
+
responses: {
|
|
17889
|
+
/** @description Success */
|
|
17890
|
+
200: {
|
|
17891
|
+
headers: {
|
|
17892
|
+
[name: string]: unknown;
|
|
17893
|
+
};
|
|
17894
|
+
content: {
|
|
17895
|
+
'application/json': components['schemas']['OfflineCredentialsStatus'];
|
|
17896
|
+
};
|
|
17897
|
+
};
|
|
17898
|
+
/** @description Bad request */
|
|
17899
|
+
400: {
|
|
17900
|
+
headers: {
|
|
17901
|
+
[name: string]: unknown;
|
|
17902
|
+
};
|
|
17903
|
+
content: {
|
|
17904
|
+
'application/json': components['schemas']['ErrorData'];
|
|
17905
|
+
};
|
|
17906
|
+
};
|
|
17907
|
+
/** @description Invalid Authentication */
|
|
17908
|
+
401: {
|
|
17909
|
+
headers: {
|
|
17910
|
+
[name: string]: unknown;
|
|
17911
|
+
};
|
|
17912
|
+
content: {
|
|
17913
|
+
'application/json': components['schemas']['ErrorData'];
|
|
17914
|
+
};
|
|
17915
|
+
};
|
|
17916
|
+
/** @description The server had an error while processing your request. */
|
|
17917
|
+
500: {
|
|
17918
|
+
headers: {
|
|
17919
|
+
[name: string]: unknown;
|
|
17920
|
+
};
|
|
17921
|
+
content: {
|
|
17922
|
+
'application/json': components['schemas']['ErrorData'];
|
|
17923
|
+
};
|
|
17924
|
+
};
|
|
17925
|
+
};
|
|
17926
|
+
};
|
|
17927
|
+
offlineCredentialsSignIn: {
|
|
17928
|
+
parameters: {
|
|
17929
|
+
query?: never;
|
|
17930
|
+
header?: never;
|
|
17931
|
+
path?: never;
|
|
17932
|
+
cookie?: never;
|
|
17933
|
+
};
|
|
17934
|
+
requestBody: {
|
|
17935
|
+
content: {
|
|
17936
|
+
'application/json': components['schemas']['OfflineCredentialsSignInRequest'];
|
|
17937
|
+
};
|
|
17938
|
+
};
|
|
17939
|
+
responses: {
|
|
17940
|
+
/** @description Success */
|
|
17941
|
+
200: {
|
|
17942
|
+
headers: {
|
|
17943
|
+
[name: string]: unknown;
|
|
17944
|
+
};
|
|
17945
|
+
content: {
|
|
17946
|
+
'application/json': boolean;
|
|
17947
|
+
};
|
|
17948
|
+
};
|
|
17949
|
+
/** @description Bad request */
|
|
17950
|
+
400: {
|
|
17951
|
+
headers: {
|
|
17952
|
+
[name: string]: unknown;
|
|
17953
|
+
};
|
|
17954
|
+
content: {
|
|
17955
|
+
'application/json': components['schemas']['ErrorData'];
|
|
17956
|
+
};
|
|
17957
|
+
};
|
|
17958
|
+
/** @description Invalid Authentication */
|
|
17959
|
+
401: {
|
|
17960
|
+
headers: {
|
|
17961
|
+
[name: string]: unknown;
|
|
17962
|
+
};
|
|
17963
|
+
content: {
|
|
17964
|
+
'application/json': components['schemas']['ErrorData'];
|
|
17965
|
+
};
|
|
17966
|
+
};
|
|
17967
|
+
/** @description The server had an error while processing your request. */
|
|
17968
|
+
500: {
|
|
17969
|
+
headers: {
|
|
17970
|
+
[name: string]: unknown;
|
|
17971
|
+
};
|
|
17972
|
+
content: {
|
|
17973
|
+
'application/json': components['schemas']['ErrorData'];
|
|
17974
|
+
};
|
|
17975
|
+
};
|
|
17976
|
+
};
|
|
17977
|
+
};
|
|
17978
|
+
offlineCredentialsSignOut: {
|
|
17979
|
+
parameters: {
|
|
17980
|
+
query?: never;
|
|
17981
|
+
header?: never;
|
|
17982
|
+
path?: never;
|
|
17983
|
+
cookie?: never;
|
|
17984
|
+
};
|
|
17985
|
+
requestBody?: never;
|
|
17986
|
+
responses: {
|
|
17987
|
+
/** @description Success */
|
|
17988
|
+
200: {
|
|
17989
|
+
headers: {
|
|
17990
|
+
[name: string]: unknown;
|
|
17991
|
+
};
|
|
17992
|
+
content: {
|
|
17993
|
+
'application/json': boolean;
|
|
17994
|
+
};
|
|
17995
|
+
};
|
|
17996
|
+
/** @description Bad request */
|
|
17997
|
+
400: {
|
|
17998
|
+
headers: {
|
|
17999
|
+
[name: string]: unknown;
|
|
18000
|
+
};
|
|
18001
|
+
content: {
|
|
18002
|
+
'application/json': components['schemas']['ErrorData'];
|
|
18003
|
+
};
|
|
18004
|
+
};
|
|
18005
|
+
/** @description Invalid Authentication */
|
|
18006
|
+
401: {
|
|
18007
|
+
headers: {
|
|
18008
|
+
[name: string]: unknown;
|
|
18009
|
+
};
|
|
18010
|
+
content: {
|
|
18011
|
+
'application/json': components['schemas']['ErrorData'];
|
|
18012
|
+
};
|
|
18013
|
+
};
|
|
18014
|
+
/** @description The server had an error while processing your request. */
|
|
18015
|
+
500: {
|
|
18016
|
+
headers: {
|
|
18017
|
+
[name: string]: unknown;
|
|
18018
|
+
};
|
|
18019
|
+
content: {
|
|
18020
|
+
'application/json': components['schemas']['ErrorData'];
|
|
18021
|
+
};
|
|
18022
|
+
};
|
|
18023
|
+
};
|
|
18024
|
+
};
|
|
17674
18025
|
rateDeployment: {
|
|
17675
18026
|
parameters: {
|
|
17676
18027
|
query?: never;
|
|
@@ -18811,6 +19162,7 @@ interface DIAL_SDK {
|
|
|
18811
19162
|
getModelMetadata: (bucket: string, path: string, init?: SDKOperationInit<operations['getModelMetadata']>) => Promise<SDKOperationResponse<operations['getModelMetadata']>>;
|
|
18812
19163
|
getModels: (init?: SDKOperationInit<operations['getModels']>) => Promise<SDKOperationResponse<operations['getModels']>>;
|
|
18813
19164
|
getNotifications: (init?: SDKOperationInit<operations['getNotifications']>) => Promise<SDKOperationResponse<operations['getNotifications']>>;
|
|
19165
|
+
getOfflineCredentials: (init?: SDKOperationInit<operations['getOfflineCredentials']>) => Promise<SDKOperationResponse<operations['getOfflineCredentials']>>;
|
|
18814
19166
|
getPerRequestPermissions: (init: SDKOperationInit<operations['getPerRequestPermissions']>) => Promise<SDKOperationResponse<operations['getPerRequestPermissions']>>;
|
|
18815
19167
|
getPlatformApplication: (path: string, init?: SDKOperationInit<operations['getPlatformApplication']>) => Promise<SDKOperationResponse<operations['getPlatformApplication']>>;
|
|
18816
19168
|
getPlatformApplicationMetadata: (path: string, init?: SDKOperationInit<operations['getPlatformApplicationMetadata']>) => Promise<SDKOperationResponse<operations['getPlatformApplicationMetadata']>>;
|
|
@@ -18838,6 +19190,7 @@ interface DIAL_SDK {
|
|
|
18838
19190
|
getToolset: (toolset_name: string, init?: SDKOperationInit<operations['getToolset']>) => Promise<SDKOperationResponse<operations['getToolset']>>;
|
|
18839
19191
|
getUserBucket: (init?: SDKOperationInit<operations['getUserBucket']>) => Promise<SDKOperationResponse<operations['getUserBucket']>>;
|
|
18840
19192
|
getUserInfo: (init?: SDKOperationInit<operations['getUserInfo']>) => Promise<SDKOperationResponse<operations['getUserInfo']>>;
|
|
19193
|
+
grantExternalServiceConsent: (appid: string, id: string, init?: SDKOperationInit<operations['grantExternalServiceConsent']>) => Promise<SDKOperationResponse<operations['grantExternalServiceConsent']>>;
|
|
18841
19194
|
grantPerRequestPermissions: (init: SDKOperationInit<operations['grantPerRequestPermissions']>) => Promise<SDKOperationResponse<operations['grantPerRequestPermissions']>>;
|
|
18842
19195
|
interactClientChannel: (init: SDKOperationInit<operations['interactClientChannel']>) => Promise<SDKOperationResponse<operations['interactClientChannel']>>;
|
|
18843
19196
|
listCatalogSchemas: (init?: SDKOperationInit<operations['listCatalogSchemas']>) => Promise<SDKOperationResponse<operations['listCatalogSchemas']>>;
|
|
@@ -18859,6 +19212,8 @@ interface DIAL_SDK {
|
|
|
18859
19212
|
listSkillFileMetadata: (bucket: string, path: string, filepath: string, init?: SDKOperationInit<operations['listSkillFileMetadata']>) => Promise<SDKOperationResponse<operations['listSkillFileMetadata']>>;
|
|
18860
19213
|
listSkillMetadata: (bucket: string, path: string, init?: SDKOperationInit<operations['listSkillMetadata']>) => Promise<SDKOperationResponse<operations['listSkillMetadata']>>;
|
|
18861
19214
|
moveResource: (init: SDKOperationInit<operations['moveResource']>) => Promise<SDKOperationResponse<operations['moveResource']>>;
|
|
19215
|
+
offlineCredentialsSignIn: (init: SDKOperationInit<operations['offlineCredentialsSignIn']>) => Promise<SDKOperationResponse<operations['offlineCredentialsSignIn']>>;
|
|
19216
|
+
offlineCredentialsSignOut: (init?: SDKOperationInit<operations['offlineCredentialsSignOut']>) => Promise<SDKOperationResponse<operations['offlineCredentialsSignOut']>>;
|
|
18862
19217
|
openSession: (init: SDKOperationInit<operations['openSession']>) => Promise<SDKOperationResponse<operations['openSession']>>;
|
|
18863
19218
|
postApplicationMcp: (deployment_name: string, init: SDKOperationInit<operations['postApplicationMcp']>) => Promise<SDKOperationResponse<operations['postApplicationMcp']>>;
|
|
18864
19219
|
postToolSetMcp: (toolset_name: string, init: SDKOperationInit<operations['postToolSetMcp']>) => Promise<SDKOperationResponse<operations['postToolSetMcp']>>;
|
|
@@ -18906,6 +19261,7 @@ interface DIAL_SDK {
|
|
|
18906
19261
|
uploadSkillFile: (bucket: string, path: string, filepath: string, init: SDKOperationInit<operations['uploadSkillFile']>) => Promise<SDKOperationResponse<operations['uploadSkillFile']>>;
|
|
18907
19262
|
uploadSkillFolder: (bucket: string, path: string, init: SDKOperationInit<operations['uploadSkillFolder']>) => Promise<SDKOperationResponse<operations['uploadSkillFolder']>>;
|
|
18908
19263
|
validateConfigManifests: (init: SDKOperationInit<operations['validateConfigManifests']>) => Promise<SDKOperationResponse<operations['validateConfigManifests']>>;
|
|
19264
|
+
withdrawExternalServiceConsent: (appid: string, id: string, init?: SDKOperationInit<operations['withdrawExternalServiceConsent']>) => Promise<SDKOperationResponse<operations['withdrawExternalServiceConsent']>>;
|
|
18909
19265
|
}
|
|
18910
19266
|
declare function createSDK(opts: SDKOptions): DIAL_SDK;
|
|
18911
19267
|
|
package/dist/index.js
CHANGED
|
@@ -227,6 +227,7 @@ var getModelMetadataUrl = (bucket, path) => {
|
|
|
227
227
|
};
|
|
228
228
|
var getModelsUrl = "/openai/models";
|
|
229
229
|
var getNotificationsUrl = "/v1/ops/notification/list";
|
|
230
|
+
var getOfflineCredentialsUrl = "/v1/user/offline-credentials";
|
|
230
231
|
var getPerRequestPermissionsUrl = "/v1/ops/resource/per-request-permissions/list";
|
|
231
232
|
var getPlatformApplicationUrl = (path) => {
|
|
232
233
|
return `/v1/applications/platform/${path}`;
|
|
@@ -290,6 +291,9 @@ var getToolsetUrl = (toolset_name) => {
|
|
|
290
291
|
};
|
|
291
292
|
var getUserBucketUrl = "/v1/bucket";
|
|
292
293
|
var getUserInfoUrl = "/v1/user/info";
|
|
294
|
+
var grantExternalServiceConsentUrl = (appid, id) => {
|
|
295
|
+
return `/v1/applications/${appid}/external-services/${id}/consent`;
|
|
296
|
+
};
|
|
293
297
|
var grantPerRequestPermissionsUrl = "/v1/ops/resource/per-request-permissions/grant";
|
|
294
298
|
var interactClientChannelUrl = "/v1/ops/client-channel/interact";
|
|
295
299
|
var listCatalogSchemasUrl = "/v1/catalog_schemas/schemas";
|
|
@@ -317,6 +321,8 @@ var listSkillMetadataUrl = (bucket, path) => {
|
|
|
317
321
|
return `/v2/metadata/skills/${bucket}/${path}`;
|
|
318
322
|
};
|
|
319
323
|
var moveResourceUrl = "/v1/ops/resource/move";
|
|
324
|
+
var offlineCredentialsSignInUrl = "/v1/user/offline-credentials/signin";
|
|
325
|
+
var offlineCredentialsSignOutUrl = "/v1/user/offline-credentials/signout";
|
|
320
326
|
var openSessionUrl = "/v1/ops/code_interpreter/open_session";
|
|
321
327
|
var postApplicationMcpUrl = (deployment_name) => {
|
|
322
328
|
return `/v1/deployments/${deployment_name}/mcp`;
|
|
@@ -414,6 +420,9 @@ var uploadSkillFolderUrl = (bucket, path) => {
|
|
|
414
420
|
return `/v2/skills/${bucket}/${path}`;
|
|
415
421
|
};
|
|
416
422
|
var validateConfigManifestsUrl = "/v1/admin/validate";
|
|
423
|
+
var withdrawExternalServiceConsentUrl = (appid, id) => {
|
|
424
|
+
return `/v1/applications/${appid}/external-services/${id}/consent`;
|
|
425
|
+
};
|
|
417
426
|
|
|
418
427
|
// src/client.ts
|
|
419
428
|
function createSDK(opts) {
|
|
@@ -702,6 +711,7 @@ function createSDK(opts) {
|
|
|
702
711
|
),
|
|
703
712
|
getModels: (init) => client.GET(getModelsUrl, init),
|
|
704
713
|
getNotifications: (init) => client.POST(getNotificationsUrl, init),
|
|
714
|
+
getOfflineCredentials: (init) => client.GET(getOfflineCredentialsUrl, init),
|
|
705
715
|
getPerRequestPermissions: (init) => client.POST(getPerRequestPermissionsUrl, init),
|
|
706
716
|
getPlatformApplication: (path, init) => client.GET(
|
|
707
717
|
getPlatformApplicationUrl(path),
|
|
@@ -768,6 +778,10 @@ function createSDK(opts) {
|
|
|
768
778
|
getToolset: (toolset_name, init) => client.GET(getToolsetUrl(toolset_name), init),
|
|
769
779
|
getUserBucket: (init) => client.GET(getUserBucketUrl, init),
|
|
770
780
|
getUserInfo: (init) => client.GET(getUserInfoUrl, init),
|
|
781
|
+
grantExternalServiceConsent: (appid, id, init) => client.POST(
|
|
782
|
+
grantExternalServiceConsentUrl(appid, id),
|
|
783
|
+
init
|
|
784
|
+
),
|
|
771
785
|
grantPerRequestPermissions: (init) => client.POST(grantPerRequestPermissionsUrl, init),
|
|
772
786
|
interactClientChannel: (init) => client.POST(interactClientChannelUrl, init),
|
|
773
787
|
listCatalogSchemas: (init) => client.GET(listCatalogSchemasUrl, init),
|
|
@@ -798,6 +812,8 @@ function createSDK(opts) {
|
|
|
798
812
|
init
|
|
799
813
|
),
|
|
800
814
|
moveResource: (init) => client.POST(moveResourceUrl, init),
|
|
815
|
+
offlineCredentialsSignIn: (init) => client.POST(offlineCredentialsSignInUrl, init),
|
|
816
|
+
offlineCredentialsSignOut: (init) => client.POST(offlineCredentialsSignOutUrl, init),
|
|
801
817
|
openSession: (init) => client.POST(openSessionUrl, init),
|
|
802
818
|
postApplicationMcp: (deployment_name, init) => client.POST(
|
|
803
819
|
postApplicationMcpUrl(deployment_name),
|
|
@@ -902,7 +918,11 @@ function createSDK(opts) {
|
|
|
902
918
|
uploadSkillFolderUrl(bucket, path),
|
|
903
919
|
init
|
|
904
920
|
),
|
|
905
|
-
validateConfigManifests: (init) => client.POST(validateConfigManifestsUrl, init)
|
|
921
|
+
validateConfigManifests: (init) => client.POST(validateConfigManifestsUrl, init),
|
|
922
|
+
withdrawExternalServiceConsent: (appid, id, init) => client.DELETE(
|
|
923
|
+
withdrawExternalServiceConsentUrl(appid, id),
|
|
924
|
+
init
|
|
925
|
+
)
|
|
906
926
|
};
|
|
907
927
|
}
|
|
908
928
|
export {
|