@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.d.cts 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[];
@@ -3489,10 +3558,7 @@ interface components {
3489
3558
  resourceTypes?: components['schemas']['ResourceTypes'][];
3490
3559
  with?: string;
3491
3560
  };
3492
- LocalizedValue: {
3493
- localeMap?: components['schemas']['MapStringString'];
3494
- plainValue?: string;
3495
- };
3561
+ LocalizedValue: string | components['schemas']['MapStringString'];
3496
3562
  MapStringApplication: {
3497
3563
  [key: string]: components['schemas']['Application'];
3498
3564
  };
@@ -3730,6 +3796,21 @@ interface components {
3730
3796
  ownerUserId?: string;
3731
3797
  url?: string;
3732
3798
  };
3799
+ OfflineCredentialsSignInRequest: {
3800
+ code?: string;
3801
+ redirectUri?: string;
3802
+ };
3803
+ OfflineCredentialsStatus: {
3804
+ connect?: components['schemas']['OfflineCredentialsStatusConnect'];
3805
+ connected?: boolean;
3806
+ available?: boolean;
3807
+ };
3808
+ OfflineCredentialsStatusConnect: {
3809
+ authorization_endpoint?: string;
3810
+ client_id?: string;
3811
+ redirect_uri?: string;
3812
+ scopes?: string[];
3813
+ };
3733
3814
  Pattern: Record<string, never>;
3734
3815
  PerRequestReceiver: {
3735
3816
  receiver?: string;
@@ -4335,6 +4416,8 @@ interface operations {
4335
4416
  header: {
4336
4417
  /** @description The Anthropic API version (e.g., 2023-06-01) */
4337
4418
  'anthropic-version': string;
4419
+ /** @description Upstream selection policy for prompt-caching deployments (availability-priority or cache-priority). */
4420
+ 'X-DIAL-CACHE-POLICY'?: 'availability-priority' | 'cache-priority';
4338
4421
  };
4339
4422
  path?: never;
4340
4423
  cookie?: never;
@@ -5435,6 +5518,8 @@ interface operations {
5435
5518
  header: {
5436
5519
  /** @description Must be application/json */
5437
5520
  'Content-Type': string;
5521
+ /** @description Upstream selection policy for prompt-caching deployments (availability-priority or cache-priority). */
5522
+ 'X-DIAL-CACHE-POLICY'?: 'availability-priority' | 'cache-priority';
5438
5523
  };
5439
5524
  path?: never;
5440
5525
  cookie?: never;
@@ -7770,6 +7855,128 @@ interface operations {
7770
7855
  };
7771
7856
  };
7772
7857
  };
7858
+ grantExternalServiceConsent: {
7859
+ parameters: {
7860
+ query?: never;
7861
+ header?: never;
7862
+ path: {
7863
+ /** @description The application ID. Can be either a static config application name or a dynamic application path. */
7864
+ appId: string;
7865
+ /** @description The external service ID defined in the application's external_services configuration. */
7866
+ id: string;
7867
+ };
7868
+ cookie?: never;
7869
+ };
7870
+ requestBody?: never;
7871
+ responses: {
7872
+ /** @description Success */
7873
+ 200: {
7874
+ headers: {
7875
+ [name: string]: unknown;
7876
+ };
7877
+ content: {
7878
+ 'application/json': boolean;
7879
+ };
7880
+ };
7881
+ /** @description Bad request */
7882
+ 400: {
7883
+ headers: {
7884
+ [name: string]: unknown;
7885
+ };
7886
+ content: {
7887
+ 'application/json': components['schemas']['ErrorData'];
7888
+ };
7889
+ };
7890
+ /** @description Forbidden */
7891
+ 403: {
7892
+ headers: {
7893
+ [name: string]: unknown;
7894
+ };
7895
+ content: {
7896
+ 'application/json': components['schemas']['ErrorData'];
7897
+ };
7898
+ };
7899
+ /** @description Not found */
7900
+ 404: {
7901
+ headers: {
7902
+ [name: string]: unknown;
7903
+ };
7904
+ content: {
7905
+ 'application/json': components['schemas']['ErrorData'];
7906
+ };
7907
+ };
7908
+ /** @description The server had an error while processing your request. */
7909
+ 500: {
7910
+ headers: {
7911
+ [name: string]: unknown;
7912
+ };
7913
+ content: {
7914
+ 'application/json': components['schemas']['ErrorData'];
7915
+ };
7916
+ };
7917
+ };
7918
+ };
7919
+ withdrawExternalServiceConsent: {
7920
+ parameters: {
7921
+ query?: never;
7922
+ header?: never;
7923
+ path: {
7924
+ /** @description The application ID. Can be either a static config application name or a dynamic application path. */
7925
+ appId: string;
7926
+ /** @description The external service ID defined in the application's external_services configuration. */
7927
+ id: string;
7928
+ };
7929
+ cookie?: never;
7930
+ };
7931
+ requestBody?: never;
7932
+ responses: {
7933
+ /** @description Success */
7934
+ 200: {
7935
+ headers: {
7936
+ [name: string]: unknown;
7937
+ };
7938
+ content: {
7939
+ 'application/json': boolean;
7940
+ };
7941
+ };
7942
+ /** @description Bad request */
7943
+ 400: {
7944
+ headers: {
7945
+ [name: string]: unknown;
7946
+ };
7947
+ content: {
7948
+ 'application/json': components['schemas']['ErrorData'];
7949
+ };
7950
+ };
7951
+ /** @description Forbidden */
7952
+ 403: {
7953
+ headers: {
7954
+ [name: string]: unknown;
7955
+ };
7956
+ content: {
7957
+ 'application/json': components['schemas']['ErrorData'];
7958
+ };
7959
+ };
7960
+ /** @description Not found */
7961
+ 404: {
7962
+ headers: {
7963
+ [name: string]: unknown;
7964
+ };
7965
+ content: {
7966
+ 'application/json': components['schemas']['ErrorData'];
7967
+ };
7968
+ };
7969
+ /** @description The server had an error while processing your request. */
7970
+ 500: {
7971
+ headers: {
7972
+ [name: string]: unknown;
7973
+ };
7974
+ content: {
7975
+ 'application/json': components['schemas']['ErrorData'];
7976
+ };
7977
+ };
7978
+ };
7979
+ };
7773
7980
  getCustomApplication: {
7774
7981
  parameters: {
7775
7982
  query?: never;
@@ -17671,6 +17878,151 @@ interface operations {
17671
17878
  };
17672
17879
  };
17673
17880
  };
17881
+ getOfflineCredentials: {
17882
+ parameters: {
17883
+ query?: never;
17884
+ header?: never;
17885
+ path?: never;
17886
+ cookie?: never;
17887
+ };
17888
+ requestBody?: never;
17889
+ responses: {
17890
+ /** @description Success */
17891
+ 200: {
17892
+ headers: {
17893
+ [name: string]: unknown;
17894
+ };
17895
+ content: {
17896
+ 'application/json': components['schemas']['OfflineCredentialsStatus'];
17897
+ };
17898
+ };
17899
+ /** @description Bad request */
17900
+ 400: {
17901
+ headers: {
17902
+ [name: string]: unknown;
17903
+ };
17904
+ content: {
17905
+ 'application/json': components['schemas']['ErrorData'];
17906
+ };
17907
+ };
17908
+ /** @description Invalid Authentication */
17909
+ 401: {
17910
+ headers: {
17911
+ [name: string]: unknown;
17912
+ };
17913
+ content: {
17914
+ 'application/json': components['schemas']['ErrorData'];
17915
+ };
17916
+ };
17917
+ /** @description The server had an error while processing your request. */
17918
+ 500: {
17919
+ headers: {
17920
+ [name: string]: unknown;
17921
+ };
17922
+ content: {
17923
+ 'application/json': components['schemas']['ErrorData'];
17924
+ };
17925
+ };
17926
+ };
17927
+ };
17928
+ offlineCredentialsSignIn: {
17929
+ parameters: {
17930
+ query?: never;
17931
+ header?: never;
17932
+ path?: never;
17933
+ cookie?: never;
17934
+ };
17935
+ requestBody: {
17936
+ content: {
17937
+ 'application/json': components['schemas']['OfflineCredentialsSignInRequest'];
17938
+ };
17939
+ };
17940
+ responses: {
17941
+ /** @description Success */
17942
+ 200: {
17943
+ headers: {
17944
+ [name: string]: unknown;
17945
+ };
17946
+ content: {
17947
+ 'application/json': boolean;
17948
+ };
17949
+ };
17950
+ /** @description Bad request */
17951
+ 400: {
17952
+ headers: {
17953
+ [name: string]: unknown;
17954
+ };
17955
+ content: {
17956
+ 'application/json': components['schemas']['ErrorData'];
17957
+ };
17958
+ };
17959
+ /** @description Invalid Authentication */
17960
+ 401: {
17961
+ headers: {
17962
+ [name: string]: unknown;
17963
+ };
17964
+ content: {
17965
+ 'application/json': components['schemas']['ErrorData'];
17966
+ };
17967
+ };
17968
+ /** @description The server had an error while processing your request. */
17969
+ 500: {
17970
+ headers: {
17971
+ [name: string]: unknown;
17972
+ };
17973
+ content: {
17974
+ 'application/json': components['schemas']['ErrorData'];
17975
+ };
17976
+ };
17977
+ };
17978
+ };
17979
+ offlineCredentialsSignOut: {
17980
+ parameters: {
17981
+ query?: never;
17982
+ header?: never;
17983
+ path?: never;
17984
+ cookie?: never;
17985
+ };
17986
+ requestBody?: never;
17987
+ responses: {
17988
+ /** @description Success */
17989
+ 200: {
17990
+ headers: {
17991
+ [name: string]: unknown;
17992
+ };
17993
+ content: {
17994
+ 'application/json': boolean;
17995
+ };
17996
+ };
17997
+ /** @description Bad request */
17998
+ 400: {
17999
+ headers: {
18000
+ [name: string]: unknown;
18001
+ };
18002
+ content: {
18003
+ 'application/json': components['schemas']['ErrorData'];
18004
+ };
18005
+ };
18006
+ /** @description Invalid Authentication */
18007
+ 401: {
18008
+ headers: {
18009
+ [name: string]: unknown;
18010
+ };
18011
+ content: {
18012
+ 'application/json': components['schemas']['ErrorData'];
18013
+ };
18014
+ };
18015
+ /** @description The server had an error while processing your request. */
18016
+ 500: {
18017
+ headers: {
18018
+ [name: string]: unknown;
18019
+ };
18020
+ content: {
18021
+ 'application/json': components['schemas']['ErrorData'];
18022
+ };
18023
+ };
18024
+ };
18025
+ };
17674
18026
  rateDeployment: {
17675
18027
  parameters: {
17676
18028
  query?: never;
@@ -18811,6 +19163,7 @@ interface DIAL_SDK {
18811
19163
  getModelMetadata: (bucket: string, path: string, init?: SDKOperationInit<operations['getModelMetadata']>) => Promise<SDKOperationResponse<operations['getModelMetadata']>>;
18812
19164
  getModels: (init?: SDKOperationInit<operations['getModels']>) => Promise<SDKOperationResponse<operations['getModels']>>;
18813
19165
  getNotifications: (init?: SDKOperationInit<operations['getNotifications']>) => Promise<SDKOperationResponse<operations['getNotifications']>>;
19166
+ getOfflineCredentials: (init?: SDKOperationInit<operations['getOfflineCredentials']>) => Promise<SDKOperationResponse<operations['getOfflineCredentials']>>;
18814
19167
  getPerRequestPermissions: (init: SDKOperationInit<operations['getPerRequestPermissions']>) => Promise<SDKOperationResponse<operations['getPerRequestPermissions']>>;
18815
19168
  getPlatformApplication: (path: string, init?: SDKOperationInit<operations['getPlatformApplication']>) => Promise<SDKOperationResponse<operations['getPlatformApplication']>>;
18816
19169
  getPlatformApplicationMetadata: (path: string, init?: SDKOperationInit<operations['getPlatformApplicationMetadata']>) => Promise<SDKOperationResponse<operations['getPlatformApplicationMetadata']>>;
@@ -18838,6 +19191,7 @@ interface DIAL_SDK {
18838
19191
  getToolset: (toolset_name: string, init?: SDKOperationInit<operations['getToolset']>) => Promise<SDKOperationResponse<operations['getToolset']>>;
18839
19192
  getUserBucket: (init?: SDKOperationInit<operations['getUserBucket']>) => Promise<SDKOperationResponse<operations['getUserBucket']>>;
18840
19193
  getUserInfo: (init?: SDKOperationInit<operations['getUserInfo']>) => Promise<SDKOperationResponse<operations['getUserInfo']>>;
19194
+ grantExternalServiceConsent: (appid: string, id: string, init?: SDKOperationInit<operations['grantExternalServiceConsent']>) => Promise<SDKOperationResponse<operations['grantExternalServiceConsent']>>;
18841
19195
  grantPerRequestPermissions: (init: SDKOperationInit<operations['grantPerRequestPermissions']>) => Promise<SDKOperationResponse<operations['grantPerRequestPermissions']>>;
18842
19196
  interactClientChannel: (init: SDKOperationInit<operations['interactClientChannel']>) => Promise<SDKOperationResponse<operations['interactClientChannel']>>;
18843
19197
  listCatalogSchemas: (init?: SDKOperationInit<operations['listCatalogSchemas']>) => Promise<SDKOperationResponse<operations['listCatalogSchemas']>>;
@@ -18859,6 +19213,8 @@ interface DIAL_SDK {
18859
19213
  listSkillFileMetadata: (bucket: string, path: string, filepath: string, init?: SDKOperationInit<operations['listSkillFileMetadata']>) => Promise<SDKOperationResponse<operations['listSkillFileMetadata']>>;
18860
19214
  listSkillMetadata: (bucket: string, path: string, init?: SDKOperationInit<operations['listSkillMetadata']>) => Promise<SDKOperationResponse<operations['listSkillMetadata']>>;
18861
19215
  moveResource: (init: SDKOperationInit<operations['moveResource']>) => Promise<SDKOperationResponse<operations['moveResource']>>;
19216
+ offlineCredentialsSignIn: (init: SDKOperationInit<operations['offlineCredentialsSignIn']>) => Promise<SDKOperationResponse<operations['offlineCredentialsSignIn']>>;
19217
+ offlineCredentialsSignOut: (init?: SDKOperationInit<operations['offlineCredentialsSignOut']>) => Promise<SDKOperationResponse<operations['offlineCredentialsSignOut']>>;
18862
19218
  openSession: (init: SDKOperationInit<operations['openSession']>) => Promise<SDKOperationResponse<operations['openSession']>>;
18863
19219
  postApplicationMcp: (deployment_name: string, init: SDKOperationInit<operations['postApplicationMcp']>) => Promise<SDKOperationResponse<operations['postApplicationMcp']>>;
18864
19220
  postToolSetMcp: (toolset_name: string, init: SDKOperationInit<operations['postToolSetMcp']>) => Promise<SDKOperationResponse<operations['postToolSetMcp']>>;
@@ -18906,6 +19262,7 @@ interface DIAL_SDK {
18906
19262
  uploadSkillFile: (bucket: string, path: string, filepath: string, init: SDKOperationInit<operations['uploadSkillFile']>) => Promise<SDKOperationResponse<operations['uploadSkillFile']>>;
18907
19263
  uploadSkillFolder: (bucket: string, path: string, init: SDKOperationInit<operations['uploadSkillFolder']>) => Promise<SDKOperationResponse<operations['uploadSkillFolder']>>;
18908
19264
  validateConfigManifests: (init: SDKOperationInit<operations['validateConfigManifests']>) => Promise<SDKOperationResponse<operations['validateConfigManifests']>>;
19265
+ withdrawExternalServiceConsent: (appid: string, id: string, init?: SDKOperationInit<operations['withdrawExternalServiceConsent']>) => Promise<SDKOperationResponse<operations['withdrawExternalServiceConsent']>>;
18909
19266
  }
18910
19267
  declare function createSDK(opts: SDKOptions): DIAL_SDK;
18911
19268