@triveria/wallet 0.0.242 → 0.0.243

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.
Files changed (3) hide show
  1. package/api.d.ts +243 -97
  2. package/api.js +304 -146
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -69,6 +69,69 @@ export interface AuthOffer {
69
69
  */
70
70
  'offerId': string;
71
71
  }
72
+ /**
73
+ *
74
+ * @export
75
+ * @interface CSRCreateRequest
76
+ */
77
+ export interface CSRCreateRequest {
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof CSRCreateRequest
82
+ */
83
+ 'organizationName': string;
84
+ /**
85
+ *
86
+ * @type {string}
87
+ * @memberof CSRCreateRequest
88
+ */
89
+ 'locality': string;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof CSRCreateRequest
94
+ */
95
+ 'province'?: string;
96
+ /**
97
+ *
98
+ * @type {string}
99
+ * @memberof CSRCreateRequest
100
+ */
101
+ 'country': string;
102
+ /**
103
+ *
104
+ * @type {string}
105
+ * @memberof CSRCreateRequest
106
+ */
107
+ 'email'?: string;
108
+ }
109
+ /**
110
+ *
111
+ * @export
112
+ * @interface CSRCreateResponse
113
+ */
114
+ export interface CSRCreateResponse {
115
+ /**
116
+ *
117
+ * @type {string}
118
+ * @memberof CSRCreateResponse
119
+ */
120
+ 'csr': string;
121
+ }
122
+ /**
123
+ *
124
+ * @export
125
+ * @interface CertificateImportRequest
126
+ */
127
+ export interface CertificateImportRequest {
128
+ /**
129
+ *
130
+ * @type {string}
131
+ * @memberof CertificateImportRequest
132
+ */
133
+ 'certificate': string;
134
+ }
72
135
  /**
73
136
  * Accompanying information about the verifiable credential draft - schema, type, format etc.
74
137
  * @export
@@ -210,12 +273,6 @@ export interface CredentialIssuedNotification {
210
273
  * @memberof CredentialIssuedNotification
211
274
  */
212
275
  'credentialType': string;
213
- /**
214
- *
215
- * @type {string}
216
- * @memberof CredentialIssuedNotification
217
- */
218
- 'holderDid': string;
219
276
  /**
220
277
  *
221
278
  * @type {string}
@@ -855,19 +912,6 @@ export declare const DeferredStatusEnum: {
855
912
  readonly Error: "error";
856
913
  };
857
914
  export type DeferredStatusEnum = typeof DeferredStatusEnum[keyof typeof DeferredStatusEnum];
858
- /**
859
- * Decentralized ID of the wallet owner
860
- * @export
861
- * @interface Did
862
- */
863
- export interface Did {
864
- /**
865
- *
866
- * @type {string}
867
- * @memberof Did
868
- */
869
- 'Did': string;
870
- }
871
915
  /**
872
916
  * URLs of EBSI services
873
917
  * @export
@@ -961,7 +1005,7 @@ export interface EbsiSpecificWalletData {
961
1005
  'configuration': EbsiConfiguration;
962
1006
  }
963
1007
  /**
964
- * URLs of EUDI services
1008
+ * Configuration for EUDI trust framework. Field didTrustFramework is used when the wallet uses did as its identifier.
965
1009
  * @export
966
1010
  * @interface EudiConfiguration
967
1011
  */
@@ -972,6 +1016,12 @@ export interface EudiConfiguration {
972
1016
  * @memberof EudiConfiguration
973
1017
  */
974
1018
  'tslUrl': string;
1019
+ /**
1020
+ *
1021
+ * @type {TrustFrameworkType}
1022
+ * @memberof EudiConfiguration
1023
+ */
1024
+ 'didTrustFramework'?: TrustFrameworkType;
975
1025
  }
976
1026
  /**
977
1027
  * Presented credential field that will be matched
@@ -1516,12 +1566,6 @@ export interface OfferReceivedNotification {
1516
1566
  * @memberof OfferReceivedNotification
1517
1567
  */
1518
1568
  'credentialType': string;
1519
- /**
1520
- *
1521
- * @type {string}
1522
- * @memberof OfferReceivedNotification
1523
- */
1524
- 'holderDid': string;
1525
1569
  /**
1526
1570
  *
1527
1571
  * @type {string}
@@ -1977,6 +2021,17 @@ export declare const RevokeAccreditationRequestTypeEnum: {
1977
2021
  readonly TrustedAccreditationOrganisation: "TrustedAccreditationOrganisation";
1978
2022
  };
1979
2023
  export type RevokeAccreditationRequestTypeEnum = typeof RevokeAccreditationRequestTypeEnum[keyof typeof RevokeAccreditationRequestTypeEnum];
2024
+ /**
2025
+ *
2026
+ * @export
2027
+ * @enum {string}
2028
+ */
2029
+ export declare const SigningKeyIdentifier: {
2030
+ readonly Did: "did";
2031
+ readonly Jwk: "jwk";
2032
+ readonly X509: "x509";
2033
+ };
2034
+ export type SigningKeyIdentifier = typeof SigningKeyIdentifier[keyof typeof SigningKeyIdentifier];
1980
2035
  /**
1981
2036
  * The subsystem status impact on the overall system
1982
2037
  * @export
@@ -2008,6 +2063,18 @@ export declare const SystemImpactStatusEnum: {
2008
2063
  readonly Critical: "critical";
2009
2064
  };
2010
2065
  export type SystemImpactStatusEnum = typeof SystemImpactStatusEnum[keyof typeof SystemImpactStatusEnum];
2066
+ /**
2067
+ * What trust framework should we use with this wallet. This property COULD NOT change later. Supported frameworks: EBSI - the European Blockchain Services Infrastructure, IDTL - IDUnion Trust List, EUDI - European Digital Identity wallet, Noop - personal key based no-op trust framework (mainly for the personal use)
2068
+ * @export
2069
+ * @enum {string}
2070
+ */
2071
+ export declare const TrustFrameworkType: {
2072
+ readonly Ebsi: "EBSI";
2073
+ readonly Idtl: "IDTL";
2074
+ readonly Noop: "NOOP";
2075
+ readonly Eudi: "EUDI";
2076
+ };
2077
+ export type TrustFrameworkType = typeof TrustFrameworkType[keyof typeof TrustFrameworkType];
2011
2078
  /**
2012
2079
  *
2013
2080
  * @export
@@ -2198,11 +2265,11 @@ export interface WalletConfig {
2198
2265
  */
2199
2266
  'oidcRevision'?: OidcRevision;
2200
2267
  /**
2201
- * What trust framework should we use with this wallet. This property COULD NOT change later. Supported frameworks: EBSI - the European Blockchain Services Infrastructure, IDTL - IDUnion Trust List, Noop - did:key based no-op trust framework (mainly for the personal use)
2202
- * @type {string}
2268
+ *
2269
+ * @type {TrustFrameworkType}
2203
2270
  * @memberof WalletConfig
2204
2271
  */
2205
- 'trustFramework': WalletConfigTrustFrameworkEnum;
2272
+ 'trustFramework': TrustFrameworkType;
2206
2273
  /**
2207
2274
  *
2208
2275
  * @type {EbsiSpecificWalletData}
@@ -2215,6 +2282,12 @@ export interface WalletConfig {
2215
2282
  * @memberof WalletConfig
2216
2283
  */
2217
2284
  'EUDI'?: EudiConfiguration;
2285
+ /**
2286
+ *
2287
+ * @type {SigningKeyIdentifier}
2288
+ * @memberof WalletConfig
2289
+ */
2290
+ 'walletKeyIdentifier': SigningKeyIdentifier;
2218
2291
  /**
2219
2292
  * Expiration time in seconds for credential status lists. Used only if the wallet is a credential issuer
2220
2293
  * @type {number}
@@ -2222,12 +2295,6 @@ export interface WalletConfig {
2222
2295
  */
2223
2296
  'statusListExpiration'?: number;
2224
2297
  }
2225
- export declare const WalletConfigTrustFrameworkEnum: {
2226
- readonly Ebsi: "EBSI";
2227
- readonly Idtl: "IDTL";
2228
- readonly Noop: "NOOP";
2229
- };
2230
- export type WalletConfigTrustFrameworkEnum = typeof WalletConfigTrustFrameworkEnum[keyof typeof WalletConfigTrustFrameworkEnum];
2231
2298
  /**
2232
2299
  * Payload to create a wallet
2233
2300
  * @export
@@ -2268,6 +2335,19 @@ export interface WalletIdObject {
2268
2335
  */
2269
2336
  'id': string;
2270
2337
  }
2338
+ /**
2339
+ * DID or Wallet URL depending on the configured wallet key identifier
2340
+ * @export
2341
+ * @interface WalletIdentifier
2342
+ */
2343
+ export interface WalletIdentifier {
2344
+ /**
2345
+ *
2346
+ * @type {string}
2347
+ * @memberof WalletIdentifier
2348
+ */
2349
+ 'identifier': string;
2350
+ }
2271
2351
  /**
2272
2352
  *
2273
2353
  * @export
@@ -2493,21 +2573,6 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2493
2573
  * @throws {RequiredError}
2494
2574
  */
2495
2575
  didDocumentGet: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2496
- /**
2497
- *
2498
- * @param {string} walletId
2499
- * @param {*} [options] Override http request option.
2500
- * @throws {RequiredError}
2501
- */
2502
- didGet: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2503
- /**
2504
- *
2505
- * @param {string} walletId
2506
- * @param {Did} [did] The new DID for the Wallet
2507
- * @param {*} [options] Override http request option.
2508
- * @throws {RequiredError}
2509
- */
2510
- didUpdate: (walletId: string, did?: Did, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2511
2576
  /**
2512
2577
  *
2513
2578
  * @param {*} [options] Override http request option.
@@ -2701,6 +2766,21 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2701
2766
  * @throws {RequiredError}
2702
2767
  */
2703
2768
  walletGet: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2769
+ /**
2770
+ *
2771
+ * @param {string} walletId
2772
+ * @param {*} [options] Override http request option.
2773
+ * @throws {RequiredError}
2774
+ */
2775
+ walletIdentifierGet: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2776
+ /**
2777
+ *
2778
+ * @param {string} walletId
2779
+ * @param {WalletIdentifier} [walletIdentifier] The new wallet identifier
2780
+ * @param {*} [options] Override http request option.
2781
+ * @throws {RequiredError}
2782
+ */
2783
+ walletIdentifierUpdate: (walletId: string, walletIdentifier?: WalletIdentifier, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2704
2784
  /**
2705
2785
  * Provides wallet keys used for signing.
2706
2786
  * @param {string} walletId Wallet ID
@@ -2767,6 +2847,22 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2767
2847
  * @throws {RequiredError}
2768
2848
  */
2769
2849
  walletVerifiedCredentialsDeleteByState: (walletId: string, state: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2850
+ /**
2851
+ * Creates a X509 certificate signing request for signing key.
2852
+ * @param {string} walletId Wallet ID
2853
+ * @param {CSRCreateRequest} [cSRCreateRequest]
2854
+ * @param {*} [options] Override http request option.
2855
+ * @throws {RequiredError}
2856
+ */
2857
+ walletX509CSRCreate: (walletId: string, cSRCreateRequest?: CSRCreateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2858
+ /**
2859
+ * Imports an X509 certificate to be used when signing credentials
2860
+ * @param {string} walletId Wallet ID
2861
+ * @param {CertificateImportRequest} [certificateImportRequest]
2862
+ * @param {*} [options] Override http request option.
2863
+ * @throws {RequiredError}
2864
+ */
2865
+ walletX509CertificateImport: (walletId: string, certificateImportRequest?: CertificateImportRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2770
2866
  };
2771
2867
  /**
2772
2868
  * DefaultApi - functional programming interface
@@ -2870,21 +2966,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2870
2966
  * @throws {RequiredError}
2871
2967
  */
2872
2968
  didDocumentGet(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
2873
- /**
2874
- *
2875
- * @param {string} walletId
2876
- * @param {*} [options] Override http request option.
2877
- * @throws {RequiredError}
2878
- */
2879
- didGet(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Did>>;
2880
- /**
2881
- *
2882
- * @param {string} walletId
2883
- * @param {Did} [did] The new DID for the Wallet
2884
- * @param {*} [options] Override http request option.
2885
- * @throws {RequiredError}
2886
- */
2887
- didUpdate(walletId: string, did?: Did, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Did>>;
2888
2969
  /**
2889
2970
  *
2890
2971
  * @param {*} [options] Override http request option.
@@ -3078,6 +3159,21 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
3078
3159
  * @throws {RequiredError}
3079
3160
  */
3080
3161
  walletGet(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Wallet>>;
3162
+ /**
3163
+ *
3164
+ * @param {string} walletId
3165
+ * @param {*} [options] Override http request option.
3166
+ * @throws {RequiredError}
3167
+ */
3168
+ walletIdentifierGet(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletIdentifier>>;
3169
+ /**
3170
+ *
3171
+ * @param {string} walletId
3172
+ * @param {WalletIdentifier} [walletIdentifier] The new wallet identifier
3173
+ * @param {*} [options] Override http request option.
3174
+ * @throws {RequiredError}
3175
+ */
3176
+ walletIdentifierUpdate(walletId: string, walletIdentifier?: WalletIdentifier, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletIdentifier>>;
3081
3177
  /**
3082
3178
  * Provides wallet keys used for signing.
3083
3179
  * @param {string} walletId Wallet ID
@@ -3146,6 +3242,22 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
3146
3242
  * @throws {RequiredError}
3147
3243
  */
3148
3244
  walletVerifiedCredentialsDeleteByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
3245
+ /**
3246
+ * Creates a X509 certificate signing request for signing key.
3247
+ * @param {string} walletId Wallet ID
3248
+ * @param {CSRCreateRequest} [cSRCreateRequest]
3249
+ * @param {*} [options] Override http request option.
3250
+ * @throws {RequiredError}
3251
+ */
3252
+ walletX509CSRCreate(walletId: string, cSRCreateRequest?: CSRCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CSRCreateResponse>>;
3253
+ /**
3254
+ * Imports an X509 certificate to be used when signing credentials
3255
+ * @param {string} walletId Wallet ID
3256
+ * @param {CertificateImportRequest} [certificateImportRequest]
3257
+ * @param {*} [options] Override http request option.
3258
+ * @throws {RequiredError}
3259
+ */
3260
+ walletX509CertificateImport(walletId: string, certificateImportRequest?: CertificateImportRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
3149
3261
  };
3150
3262
  /**
3151
3263
  * DefaultApi - factory interface
@@ -3249,21 +3361,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3249
3361
  * @throws {RequiredError}
3250
3362
  */
3251
3363
  didDocumentGet(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<object>;
3252
- /**
3253
- *
3254
- * @param {string} walletId
3255
- * @param {*} [options] Override http request option.
3256
- * @throws {RequiredError}
3257
- */
3258
- didGet(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<Did>;
3259
- /**
3260
- *
3261
- * @param {string} walletId
3262
- * @param {Did} [did] The new DID for the Wallet
3263
- * @param {*} [options] Override http request option.
3264
- * @throws {RequiredError}
3265
- */
3266
- didUpdate(walletId: string, did?: Did, options?: RawAxiosRequestConfig): AxiosPromise<Did>;
3267
3364
  /**
3268
3365
  *
3269
3366
  * @param {*} [options] Override http request option.
@@ -3457,6 +3554,21 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3457
3554
  * @throws {RequiredError}
3458
3555
  */
3459
3556
  walletGet(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<Wallet>;
3557
+ /**
3558
+ *
3559
+ * @param {string} walletId
3560
+ * @param {*} [options] Override http request option.
3561
+ * @throws {RequiredError}
3562
+ */
3563
+ walletIdentifierGet(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<WalletIdentifier>;
3564
+ /**
3565
+ *
3566
+ * @param {string} walletId
3567
+ * @param {WalletIdentifier} [walletIdentifier] The new wallet identifier
3568
+ * @param {*} [options] Override http request option.
3569
+ * @throws {RequiredError}
3570
+ */
3571
+ walletIdentifierUpdate(walletId: string, walletIdentifier?: WalletIdentifier, options?: RawAxiosRequestConfig): AxiosPromise<WalletIdentifier>;
3460
3572
  /**
3461
3573
  * Provides wallet keys used for signing.
3462
3574
  * @param {string} walletId Wallet ID
@@ -3525,6 +3637,22 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3525
3637
  * @throws {RequiredError}
3526
3638
  */
3527
3639
  walletVerifiedCredentialsDeleteByState(walletId: string, state: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
3640
+ /**
3641
+ * Creates a X509 certificate signing request for signing key.
3642
+ * @param {string} walletId Wallet ID
3643
+ * @param {CSRCreateRequest} [cSRCreateRequest]
3644
+ * @param {*} [options] Override http request option.
3645
+ * @throws {RequiredError}
3646
+ */
3647
+ walletX509CSRCreate(walletId: string, cSRCreateRequest?: CSRCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<CSRCreateResponse>;
3648
+ /**
3649
+ * Imports an X509 certificate to be used when signing credentials
3650
+ * @param {string} walletId Wallet ID
3651
+ * @param {CertificateImportRequest} [certificateImportRequest]
3652
+ * @param {*} [options] Override http request option.
3653
+ * @throws {RequiredError}
3654
+ */
3655
+ walletX509CertificateImport(walletId: string, certificateImportRequest?: CertificateImportRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
3528
3656
  };
3529
3657
  /**
3530
3658
  * DefaultApi - object-oriented interface
@@ -3641,23 +3769,6 @@ export declare class DefaultApi extends BaseAPI {
3641
3769
  * @memberof DefaultApi
3642
3770
  */
3643
3771
  didDocumentGet(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
3644
- /**
3645
- *
3646
- * @param {string} walletId
3647
- * @param {*} [options] Override http request option.
3648
- * @throws {RequiredError}
3649
- * @memberof DefaultApi
3650
- */
3651
- didGet(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Did, any>>;
3652
- /**
3653
- *
3654
- * @param {string} walletId
3655
- * @param {Did} [did] The new DID for the Wallet
3656
- * @param {*} [options] Override http request option.
3657
- * @throws {RequiredError}
3658
- * @memberof DefaultApi
3659
- */
3660
- didUpdate(walletId: string, did?: Did, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Did, any>>;
3661
3772
  /**
3662
3773
  *
3663
3774
  * @param {*} [options] Override http request option.
@@ -3876,6 +3987,23 @@ export declare class DefaultApi extends BaseAPI {
3876
3987
  * @memberof DefaultApi
3877
3988
  */
3878
3989
  walletGet(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Wallet, any>>;
3990
+ /**
3991
+ *
3992
+ * @param {string} walletId
3993
+ * @param {*} [options] Override http request option.
3994
+ * @throws {RequiredError}
3995
+ * @memberof DefaultApi
3996
+ */
3997
+ walletIdentifierGet(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletIdentifier, any>>;
3998
+ /**
3999
+ *
4000
+ * @param {string} walletId
4001
+ * @param {WalletIdentifier} [walletIdentifier] The new wallet identifier
4002
+ * @param {*} [options] Override http request option.
4003
+ * @throws {RequiredError}
4004
+ * @memberof DefaultApi
4005
+ */
4006
+ walletIdentifierUpdate(walletId: string, walletIdentifier?: WalletIdentifier, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletIdentifier, any>>;
3879
4007
  /**
3880
4008
  * Provides wallet keys used for signing.
3881
4009
  * @param {string} walletId Wallet ID
@@ -3952,6 +4080,24 @@ export declare class DefaultApi extends BaseAPI {
3952
4080
  * @memberof DefaultApi
3953
4081
  */
3954
4082
  walletVerifiedCredentialsDeleteByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
4083
+ /**
4084
+ * Creates a X509 certificate signing request for signing key.
4085
+ * @param {string} walletId Wallet ID
4086
+ * @param {CSRCreateRequest} [cSRCreateRequest]
4087
+ * @param {*} [options] Override http request option.
4088
+ * @throws {RequiredError}
4089
+ * @memberof DefaultApi
4090
+ */
4091
+ walletX509CSRCreate(walletId: string, cSRCreateRequest?: CSRCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CSRCreateResponse, any>>;
4092
+ /**
4093
+ * Imports an X509 certificate to be used when signing credentials
4094
+ * @param {string} walletId Wallet ID
4095
+ * @param {CertificateImportRequest} [certificateImportRequest]
4096
+ * @param {*} [options] Override http request option.
4097
+ * @throws {RequiredError}
4098
+ * @memberof DefaultApi
4099
+ */
4100
+ walletX509CertificateImport(walletId: string, certificateImportRequest?: CertificateImportRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3955
4101
  }
3956
4102
  /**
3957
4103
  * @export
package/api.js CHANGED
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventType = exports.WalletConfigTrustFrameworkEnum = exports.WalletCapability = exports.SystemImpactStatusEnum = exports.RevokeAccreditationRequestTypeEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.PrepareToAccreditRequestTypeEnum = exports.OidcRevisionOidc4vpEnum = exports.OidcRevisionOidc4vciEnum = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialMetadataInteractionEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialFormat = exports.AccreditationRequestTypeEnum = void 0;
28
+ exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventType = exports.WalletCapability = exports.TrustFrameworkType = exports.SystemImpactStatusEnum = exports.SigningKeyIdentifier = exports.RevokeAccreditationRequestTypeEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.PrepareToAccreditRequestTypeEnum = exports.OidcRevisionOidc4vpEnum = exports.OidcRevisionOidc4vciEnum = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialMetadataInteractionEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialFormat = exports.AccreditationRequestTypeEnum = void 0;
29
29
  const axios_1 = __importDefault(require("axios"));
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
@@ -109,11 +109,32 @@ exports.RevokeAccreditationRequestTypeEnum = {
109
109
  TrustedIssuer: 'TrustedIssuer',
110
110
  TrustedAccreditationOrganisation: 'TrustedAccreditationOrganisation'
111
111
  };
112
+ /**
113
+ *
114
+ * @export
115
+ * @enum {string}
116
+ */
117
+ exports.SigningKeyIdentifier = {
118
+ Did: 'did',
119
+ Jwk: 'jwk',
120
+ X509: 'x509'
121
+ };
112
122
  exports.SystemImpactStatusEnum = {
113
123
  Ok: 'ok',
114
124
  Limited: 'limited',
115
125
  Critical: 'critical'
116
126
  };
127
+ /**
128
+ * What trust framework should we use with this wallet. This property COULD NOT change later. Supported frameworks: EBSI - the European Blockchain Services Infrastructure, IDTL - IDUnion Trust List, EUDI - European Digital Identity wallet, Noop - personal key based no-op trust framework (mainly for the personal use)
129
+ * @export
130
+ * @enum {string}
131
+ */
132
+ exports.TrustFrameworkType = {
133
+ Ebsi: 'EBSI',
134
+ Idtl: 'IDTL',
135
+ Noop: 'NOOP',
136
+ Eudi: 'EUDI'
137
+ };
117
138
  /**
118
139
  * Defines the capabilities which the wallet has. It may be any of \"holder\", \"issuer\" and \"verifier\".
119
140
  * @export
@@ -124,11 +145,6 @@ exports.WalletCapability = {
124
145
  Issuer: 'issuer',
125
146
  Verifier: 'verifier'
126
147
  };
127
- exports.WalletConfigTrustFrameworkEnum = {
128
- Ebsi: 'EBSI',
129
- Idtl: 'IDTL',
130
- Noop: 'NOOP'
131
- };
132
148
  /**
133
149
  *
134
150
  * @export
@@ -582,75 +598,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
582
598
  options: localVarRequestOptions,
583
599
  };
584
600
  }),
585
- /**
586
- *
587
- * @param {string} walletId
588
- * @param {*} [options] Override http request option.
589
- * @throws {RequiredError}
590
- */
591
- didGet: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
592
- // verify required parameter 'walletId' is not null or undefined
593
- (0, common_1.assertParamExists)('didGet', 'walletId', walletId);
594
- const localVarPath = `/did`;
595
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
596
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
597
- let baseOptions;
598
- if (configuration) {
599
- baseOptions = configuration.baseOptions;
600
- }
601
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
602
- const localVarHeaderParameter = {};
603
- const localVarQueryParameter = {};
604
- // authentication accessToken required
605
- // http bearer authentication required
606
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
607
- if (walletId != null) {
608
- localVarHeaderParameter['wallet-id'] = String(walletId);
609
- }
610
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
611
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
612
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
613
- return {
614
- url: (0, common_1.toPathString)(localVarUrlObj),
615
- options: localVarRequestOptions,
616
- };
617
- }),
618
- /**
619
- *
620
- * @param {string} walletId
621
- * @param {Did} [did] The new DID for the Wallet
622
- * @param {*} [options] Override http request option.
623
- * @throws {RequiredError}
624
- */
625
- didUpdate: (walletId, did, options = {}) => __awaiter(this, void 0, void 0, function* () {
626
- // verify required parameter 'walletId' is not null or undefined
627
- (0, common_1.assertParamExists)('didUpdate', 'walletId', walletId);
628
- const localVarPath = `/did`;
629
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
630
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
631
- let baseOptions;
632
- if (configuration) {
633
- baseOptions = configuration.baseOptions;
634
- }
635
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
636
- const localVarHeaderParameter = {};
637
- const localVarQueryParameter = {};
638
- // authentication accessToken required
639
- // http bearer authentication required
640
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
641
- localVarHeaderParameter['Content-Type'] = 'application/json';
642
- if (walletId != null) {
643
- localVarHeaderParameter['wallet-id'] = String(walletId);
644
- }
645
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
646
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
647
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
648
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(did, localVarRequestOptions, configuration);
649
- return {
650
- url: (0, common_1.toPathString)(localVarUrlObj),
651
- options: localVarRequestOptions,
652
- };
653
- }),
654
601
  /**
655
602
  *
656
603
  * @param {*} [options] Override http request option.
@@ -1514,6 +1461,75 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1514
1461
  options: localVarRequestOptions,
1515
1462
  };
1516
1463
  }),
1464
+ /**
1465
+ *
1466
+ * @param {string} walletId
1467
+ * @param {*} [options] Override http request option.
1468
+ * @throws {RequiredError}
1469
+ */
1470
+ walletIdentifierGet: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1471
+ // verify required parameter 'walletId' is not null or undefined
1472
+ (0, common_1.assertParamExists)('walletIdentifierGet', 'walletId', walletId);
1473
+ const localVarPath = `/identifier`;
1474
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1475
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1476
+ let baseOptions;
1477
+ if (configuration) {
1478
+ baseOptions = configuration.baseOptions;
1479
+ }
1480
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1481
+ const localVarHeaderParameter = {};
1482
+ const localVarQueryParameter = {};
1483
+ // authentication accessToken required
1484
+ // http bearer authentication required
1485
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1486
+ if (walletId != null) {
1487
+ localVarHeaderParameter['wallet-id'] = String(walletId);
1488
+ }
1489
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1490
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1491
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1492
+ return {
1493
+ url: (0, common_1.toPathString)(localVarUrlObj),
1494
+ options: localVarRequestOptions,
1495
+ };
1496
+ }),
1497
+ /**
1498
+ *
1499
+ * @param {string} walletId
1500
+ * @param {WalletIdentifier} [walletIdentifier] The new wallet identifier
1501
+ * @param {*} [options] Override http request option.
1502
+ * @throws {RequiredError}
1503
+ */
1504
+ walletIdentifierUpdate: (walletId, walletIdentifier, options = {}) => __awaiter(this, void 0, void 0, function* () {
1505
+ // verify required parameter 'walletId' is not null or undefined
1506
+ (0, common_1.assertParamExists)('walletIdentifierUpdate', 'walletId', walletId);
1507
+ const localVarPath = `/identifier`;
1508
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1509
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1510
+ let baseOptions;
1511
+ if (configuration) {
1512
+ baseOptions = configuration.baseOptions;
1513
+ }
1514
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1515
+ const localVarHeaderParameter = {};
1516
+ const localVarQueryParameter = {};
1517
+ // authentication accessToken required
1518
+ // http bearer authentication required
1519
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1520
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1521
+ if (walletId != null) {
1522
+ localVarHeaderParameter['wallet-id'] = String(walletId);
1523
+ }
1524
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1525
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1526
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1527
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(walletIdentifier, localVarRequestOptions, configuration);
1528
+ return {
1529
+ url: (0, common_1.toPathString)(localVarUrlObj),
1530
+ options: localVarRequestOptions,
1531
+ };
1532
+ }),
1517
1533
  /**
1518
1534
  * Provides wallet keys used for signing.
1519
1535
  * @param {string} walletId Wallet ID
@@ -1801,6 +1817,74 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1801
1817
  options: localVarRequestOptions,
1802
1818
  };
1803
1819
  }),
1820
+ /**
1821
+ * Creates a X509 certificate signing request for signing key.
1822
+ * @param {string} walletId Wallet ID
1823
+ * @param {CSRCreateRequest} [cSRCreateRequest]
1824
+ * @param {*} [options] Override http request option.
1825
+ * @throws {RequiredError}
1826
+ */
1827
+ walletX509CSRCreate: (walletId, cSRCreateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1828
+ // verify required parameter 'walletId' is not null or undefined
1829
+ (0, common_1.assertParamExists)('walletX509CSRCreate', 'walletId', walletId);
1830
+ const localVarPath = `/wallets/{wallet_id}/csr`
1831
+ .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
1832
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1833
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1834
+ let baseOptions;
1835
+ if (configuration) {
1836
+ baseOptions = configuration.baseOptions;
1837
+ }
1838
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1839
+ const localVarHeaderParameter = {};
1840
+ const localVarQueryParameter = {};
1841
+ // authentication accessToken required
1842
+ // http bearer authentication required
1843
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1844
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1845
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1846
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1847
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1848
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cSRCreateRequest, localVarRequestOptions, configuration);
1849
+ return {
1850
+ url: (0, common_1.toPathString)(localVarUrlObj),
1851
+ options: localVarRequestOptions,
1852
+ };
1853
+ }),
1854
+ /**
1855
+ * Imports an X509 certificate to be used when signing credentials
1856
+ * @param {string} walletId Wallet ID
1857
+ * @param {CertificateImportRequest} [certificateImportRequest]
1858
+ * @param {*} [options] Override http request option.
1859
+ * @throws {RequiredError}
1860
+ */
1861
+ walletX509CertificateImport: (walletId, certificateImportRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1862
+ // verify required parameter 'walletId' is not null or undefined
1863
+ (0, common_1.assertParamExists)('walletX509CertificateImport', 'walletId', walletId);
1864
+ const localVarPath = `/wallets/{wallet_id}/certificate`
1865
+ .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
1866
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1867
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1868
+ let baseOptions;
1869
+ if (configuration) {
1870
+ baseOptions = configuration.baseOptions;
1871
+ }
1872
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1873
+ const localVarHeaderParameter = {};
1874
+ const localVarQueryParameter = {};
1875
+ // authentication accessToken required
1876
+ // http bearer authentication required
1877
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1878
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1879
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1880
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1881
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1882
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(certificateImportRequest, localVarRequestOptions, configuration);
1883
+ return {
1884
+ url: (0, common_1.toPathString)(localVarUrlObj),
1885
+ options: localVarRequestOptions,
1886
+ };
1887
+ }),
1804
1888
  };
1805
1889
  };
1806
1890
  exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
@@ -1996,37 +2080,6 @@ const DefaultApiFp = function (configuration) {
1996
2080
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1997
2081
  });
1998
2082
  },
1999
- /**
2000
- *
2001
- * @param {string} walletId
2002
- * @param {*} [options] Override http request option.
2003
- * @throws {RequiredError}
2004
- */
2005
- didGet(walletId, options) {
2006
- var _a, _b, _c;
2007
- return __awaiter(this, void 0, void 0, function* () {
2008
- const localVarAxiosArgs = yield localVarAxiosParamCreator.didGet(walletId, options);
2009
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2010
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.didGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2011
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2012
- });
2013
- },
2014
- /**
2015
- *
2016
- * @param {string} walletId
2017
- * @param {Did} [did] The new DID for the Wallet
2018
- * @param {*} [options] Override http request option.
2019
- * @throws {RequiredError}
2020
- */
2021
- didUpdate(walletId, did, options) {
2022
- var _a, _b, _c;
2023
- return __awaiter(this, void 0, void 0, function* () {
2024
- const localVarAxiosArgs = yield localVarAxiosParamCreator.didUpdate(walletId, did, options);
2025
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2026
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.didUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2027
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2028
- });
2029
- },
2030
2083
  /**
2031
2084
  *
2032
2085
  * @param {*} [options] Override http request option.
@@ -2420,6 +2473,37 @@ const DefaultApiFp = function (configuration) {
2420
2473
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2421
2474
  });
2422
2475
  },
2476
+ /**
2477
+ *
2478
+ * @param {string} walletId
2479
+ * @param {*} [options] Override http request option.
2480
+ * @throws {RequiredError}
2481
+ */
2482
+ walletIdentifierGet(walletId, options) {
2483
+ var _a, _b, _c;
2484
+ return __awaiter(this, void 0, void 0, function* () {
2485
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.walletIdentifierGet(walletId, options);
2486
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2487
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletIdentifierGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2488
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2489
+ });
2490
+ },
2491
+ /**
2492
+ *
2493
+ * @param {string} walletId
2494
+ * @param {WalletIdentifier} [walletIdentifier] The new wallet identifier
2495
+ * @param {*} [options] Override http request option.
2496
+ * @throws {RequiredError}
2497
+ */
2498
+ walletIdentifierUpdate(walletId, walletIdentifier, options) {
2499
+ var _a, _b, _c;
2500
+ return __awaiter(this, void 0, void 0, function* () {
2501
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.walletIdentifierUpdate(walletId, walletIdentifier, options);
2502
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2503
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletIdentifierUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2504
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2505
+ });
2506
+ },
2423
2507
  /**
2424
2508
  * Provides wallet keys used for signing.
2425
2509
  * @param {string} walletId Wallet ID
@@ -2550,6 +2634,38 @@ const DefaultApiFp = function (configuration) {
2550
2634
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2551
2635
  });
2552
2636
  },
2637
+ /**
2638
+ * Creates a X509 certificate signing request for signing key.
2639
+ * @param {string} walletId Wallet ID
2640
+ * @param {CSRCreateRequest} [cSRCreateRequest]
2641
+ * @param {*} [options] Override http request option.
2642
+ * @throws {RequiredError}
2643
+ */
2644
+ walletX509CSRCreate(walletId, cSRCreateRequest, options) {
2645
+ var _a, _b, _c;
2646
+ return __awaiter(this, void 0, void 0, function* () {
2647
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.walletX509CSRCreate(walletId, cSRCreateRequest, options);
2648
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2649
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletX509CSRCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2650
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2651
+ });
2652
+ },
2653
+ /**
2654
+ * Imports an X509 certificate to be used when signing credentials
2655
+ * @param {string} walletId Wallet ID
2656
+ * @param {CertificateImportRequest} [certificateImportRequest]
2657
+ * @param {*} [options] Override http request option.
2658
+ * @throws {RequiredError}
2659
+ */
2660
+ walletX509CertificateImport(walletId, certificateImportRequest, options) {
2661
+ var _a, _b, _c;
2662
+ return __awaiter(this, void 0, void 0, function* () {
2663
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.walletX509CertificateImport(walletId, certificateImportRequest, options);
2664
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2665
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletX509CertificateImport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2666
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2667
+ });
2668
+ },
2553
2669
  };
2554
2670
  };
2555
2671
  exports.DefaultApiFp = DefaultApiFp;
@@ -2679,25 +2795,6 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2679
2795
  didDocumentGet(walletId, options) {
2680
2796
  return localVarFp.didDocumentGet(walletId, options).then((request) => request(axios, basePath));
2681
2797
  },
2682
- /**
2683
- *
2684
- * @param {string} walletId
2685
- * @param {*} [options] Override http request option.
2686
- * @throws {RequiredError}
2687
- */
2688
- didGet(walletId, options) {
2689
- return localVarFp.didGet(walletId, options).then((request) => request(axios, basePath));
2690
- },
2691
- /**
2692
- *
2693
- * @param {string} walletId
2694
- * @param {Did} [did] The new DID for the Wallet
2695
- * @param {*} [options] Override http request option.
2696
- * @throws {RequiredError}
2697
- */
2698
- didUpdate(walletId, did, options) {
2699
- return localVarFp.didUpdate(walletId, did, options).then((request) => request(axios, basePath));
2700
- },
2701
2798
  /**
2702
2799
  *
2703
2800
  * @param {*} [options] Override http request option.
@@ -2941,6 +3038,25 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2941
3038
  walletGet(walletId, options) {
2942
3039
  return localVarFp.walletGet(walletId, options).then((request) => request(axios, basePath));
2943
3040
  },
3041
+ /**
3042
+ *
3043
+ * @param {string} walletId
3044
+ * @param {*} [options] Override http request option.
3045
+ * @throws {RequiredError}
3046
+ */
3047
+ walletIdentifierGet(walletId, options) {
3048
+ return localVarFp.walletIdentifierGet(walletId, options).then((request) => request(axios, basePath));
3049
+ },
3050
+ /**
3051
+ *
3052
+ * @param {string} walletId
3053
+ * @param {WalletIdentifier} [walletIdentifier] The new wallet identifier
3054
+ * @param {*} [options] Override http request option.
3055
+ * @throws {RequiredError}
3056
+ */
3057
+ walletIdentifierUpdate(walletId, walletIdentifier, options) {
3058
+ return localVarFp.walletIdentifierUpdate(walletId, walletIdentifier, options).then((request) => request(axios, basePath));
3059
+ },
2944
3060
  /**
2945
3061
  * Provides wallet keys used for signing.
2946
3062
  * @param {string} walletId Wallet ID
@@ -3023,6 +3139,26 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
3023
3139
  walletVerifiedCredentialsDeleteByState(walletId, state, options) {
3024
3140
  return localVarFp.walletVerifiedCredentialsDeleteByState(walletId, state, options).then((request) => request(axios, basePath));
3025
3141
  },
3142
+ /**
3143
+ * Creates a X509 certificate signing request for signing key.
3144
+ * @param {string} walletId Wallet ID
3145
+ * @param {CSRCreateRequest} [cSRCreateRequest]
3146
+ * @param {*} [options] Override http request option.
3147
+ * @throws {RequiredError}
3148
+ */
3149
+ walletX509CSRCreate(walletId, cSRCreateRequest, options) {
3150
+ return localVarFp.walletX509CSRCreate(walletId, cSRCreateRequest, options).then((request) => request(axios, basePath));
3151
+ },
3152
+ /**
3153
+ * Imports an X509 certificate to be used when signing credentials
3154
+ * @param {string} walletId Wallet ID
3155
+ * @param {CertificateImportRequest} [certificateImportRequest]
3156
+ * @param {*} [options] Override http request option.
3157
+ * @throws {RequiredError}
3158
+ */
3159
+ walletX509CertificateImport(walletId, certificateImportRequest, options) {
3160
+ return localVarFp.walletX509CertificateImport(walletId, certificateImportRequest, options).then((request) => request(axios, basePath));
3161
+ },
3026
3162
  };
3027
3163
  };
3028
3164
  exports.DefaultApiFactory = DefaultApiFactory;
@@ -3163,27 +3299,6 @@ class DefaultApi extends base_1.BaseAPI {
3163
3299
  didDocumentGet(walletId, options) {
3164
3300
  return (0, exports.DefaultApiFp)(this.configuration).didDocumentGet(walletId, options).then((request) => request(this.axios, this.basePath));
3165
3301
  }
3166
- /**
3167
- *
3168
- * @param {string} walletId
3169
- * @param {*} [options] Override http request option.
3170
- * @throws {RequiredError}
3171
- * @memberof DefaultApi
3172
- */
3173
- didGet(walletId, options) {
3174
- return (0, exports.DefaultApiFp)(this.configuration).didGet(walletId, options).then((request) => request(this.axios, this.basePath));
3175
- }
3176
- /**
3177
- *
3178
- * @param {string} walletId
3179
- * @param {Did} [did] The new DID for the Wallet
3180
- * @param {*} [options] Override http request option.
3181
- * @throws {RequiredError}
3182
- * @memberof DefaultApi
3183
- */
3184
- didUpdate(walletId, did, options) {
3185
- return (0, exports.DefaultApiFp)(this.configuration).didUpdate(walletId, did, options).then((request) => request(this.axios, this.basePath));
3186
- }
3187
3302
  /**
3188
3303
  *
3189
3304
  * @param {*} [options] Override http request option.
@@ -3452,6 +3567,27 @@ class DefaultApi extends base_1.BaseAPI {
3452
3567
  walletGet(walletId, options) {
3453
3568
  return (0, exports.DefaultApiFp)(this.configuration).walletGet(walletId, options).then((request) => request(this.axios, this.basePath));
3454
3569
  }
3570
+ /**
3571
+ *
3572
+ * @param {string} walletId
3573
+ * @param {*} [options] Override http request option.
3574
+ * @throws {RequiredError}
3575
+ * @memberof DefaultApi
3576
+ */
3577
+ walletIdentifierGet(walletId, options) {
3578
+ return (0, exports.DefaultApiFp)(this.configuration).walletIdentifierGet(walletId, options).then((request) => request(this.axios, this.basePath));
3579
+ }
3580
+ /**
3581
+ *
3582
+ * @param {string} walletId
3583
+ * @param {WalletIdentifier} [walletIdentifier] The new wallet identifier
3584
+ * @param {*} [options] Override http request option.
3585
+ * @throws {RequiredError}
3586
+ * @memberof DefaultApi
3587
+ */
3588
+ walletIdentifierUpdate(walletId, walletIdentifier, options) {
3589
+ return (0, exports.DefaultApiFp)(this.configuration).walletIdentifierUpdate(walletId, walletIdentifier, options).then((request) => request(this.axios, this.basePath));
3590
+ }
3455
3591
  /**
3456
3592
  * Provides wallet keys used for signing.
3457
3593
  * @param {string} walletId Wallet ID
@@ -3542,6 +3678,28 @@ class DefaultApi extends base_1.BaseAPI {
3542
3678
  walletVerifiedCredentialsDeleteByState(walletId, state, options) {
3543
3679
  return (0, exports.DefaultApiFp)(this.configuration).walletVerifiedCredentialsDeleteByState(walletId, state, options).then((request) => request(this.axios, this.basePath));
3544
3680
  }
3681
+ /**
3682
+ * Creates a X509 certificate signing request for signing key.
3683
+ * @param {string} walletId Wallet ID
3684
+ * @param {CSRCreateRequest} [cSRCreateRequest]
3685
+ * @param {*} [options] Override http request option.
3686
+ * @throws {RequiredError}
3687
+ * @memberof DefaultApi
3688
+ */
3689
+ walletX509CSRCreate(walletId, cSRCreateRequest, options) {
3690
+ return (0, exports.DefaultApiFp)(this.configuration).walletX509CSRCreate(walletId, cSRCreateRequest, options).then((request) => request(this.axios, this.basePath));
3691
+ }
3692
+ /**
3693
+ * Imports an X509 certificate to be used when signing credentials
3694
+ * @param {string} walletId Wallet ID
3695
+ * @param {CertificateImportRequest} [certificateImportRequest]
3696
+ * @param {*} [options] Override http request option.
3697
+ * @throws {RequiredError}
3698
+ * @memberof DefaultApi
3699
+ */
3700
+ walletX509CertificateImport(walletId, certificateImportRequest, options) {
3701
+ return (0, exports.DefaultApiFp)(this.configuration).walletX509CertificateImport(walletId, certificateImportRequest, options).then((request) => request(this.axios, this.basePath));
3702
+ }
3545
3703
  }
3546
3704
  exports.DefaultApi = DefaultApi;
3547
3705
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.242",
4
+ "version": "0.0.243",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {