@triveria/wallet 0.0.242 → 0.0.244

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 +250 -98
  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}
@@ -236,7 +293,7 @@ export interface CredentialIssuedNotification {
236
293
  'credentialId': string;
237
294
  }
238
295
  /**
239
- *
296
+ * Default value of signingKeyIdentifier is DID.
240
297
  * @export
241
298
  * @interface CredentialIssuerDefinition
242
299
  */
@@ -283,6 +340,12 @@ export interface CredentialIssuerDefinition {
283
340
  * @memberof CredentialIssuerDefinition
284
341
  */
285
342
  'credentialFormat': CredentialFormat;
343
+ /**
344
+ *
345
+ * @type {SigningKeyIdentifier}
346
+ * @memberof CredentialIssuerDefinition
347
+ */
348
+ 'signingKeyIdentifier'?: SigningKeyIdentifier;
286
349
  /**
287
350
  * JSON paths of credential claims which will support being disclosed partially.
288
351
  * @type {Array<string>}
@@ -855,19 +918,6 @@ export declare const DeferredStatusEnum: {
855
918
  readonly Error: "error";
856
919
  };
857
920
  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
921
  /**
872
922
  * URLs of EBSI services
873
923
  * @export
@@ -961,7 +1011,7 @@ export interface EbsiSpecificWalletData {
961
1011
  'configuration': EbsiConfiguration;
962
1012
  }
963
1013
  /**
964
- * URLs of EUDI services
1014
+ * Configuration for EUDI trust framework. Field didTrustFramework is used when the wallet uses did as its identifier.
965
1015
  * @export
966
1016
  * @interface EudiConfiguration
967
1017
  */
@@ -972,6 +1022,12 @@ export interface EudiConfiguration {
972
1022
  * @memberof EudiConfiguration
973
1023
  */
974
1024
  'tslUrl': string;
1025
+ /**
1026
+ *
1027
+ * @type {TrustFrameworkType}
1028
+ * @memberof EudiConfiguration
1029
+ */
1030
+ 'didTrustFramework'?: TrustFrameworkType;
975
1031
  }
976
1032
  /**
977
1033
  * Presented credential field that will be matched
@@ -1516,12 +1572,6 @@ export interface OfferReceivedNotification {
1516
1572
  * @memberof OfferReceivedNotification
1517
1573
  */
1518
1574
  'credentialType': string;
1519
- /**
1520
- *
1521
- * @type {string}
1522
- * @memberof OfferReceivedNotification
1523
- */
1524
- 'holderDid': string;
1525
1575
  /**
1526
1576
  *
1527
1577
  * @type {string}
@@ -1977,6 +2027,17 @@ export declare const RevokeAccreditationRequestTypeEnum: {
1977
2027
  readonly TrustedAccreditationOrganisation: "TrustedAccreditationOrganisation";
1978
2028
  };
1979
2029
  export type RevokeAccreditationRequestTypeEnum = typeof RevokeAccreditationRequestTypeEnum[keyof typeof RevokeAccreditationRequestTypeEnum];
2030
+ /**
2031
+ *
2032
+ * @export
2033
+ * @enum {string}
2034
+ */
2035
+ export declare const SigningKeyIdentifier: {
2036
+ readonly Did: "did";
2037
+ readonly Jwk: "jwk";
2038
+ readonly X509: "x509";
2039
+ };
2040
+ export type SigningKeyIdentifier = typeof SigningKeyIdentifier[keyof typeof SigningKeyIdentifier];
1980
2041
  /**
1981
2042
  * The subsystem status impact on the overall system
1982
2043
  * @export
@@ -2008,6 +2069,18 @@ export declare const SystemImpactStatusEnum: {
2008
2069
  readonly Critical: "critical";
2009
2070
  };
2010
2071
  export type SystemImpactStatusEnum = typeof SystemImpactStatusEnum[keyof typeof SystemImpactStatusEnum];
2072
+ /**
2073
+ * 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)
2074
+ * @export
2075
+ * @enum {string}
2076
+ */
2077
+ export declare const TrustFrameworkType: {
2078
+ readonly Ebsi: "EBSI";
2079
+ readonly Idtl: "IDTL";
2080
+ readonly Noop: "NOOP";
2081
+ readonly Eudi: "EUDI";
2082
+ };
2083
+ export type TrustFrameworkType = typeof TrustFrameworkType[keyof typeof TrustFrameworkType];
2011
2084
  /**
2012
2085
  *
2013
2086
  * @export
@@ -2198,11 +2271,11 @@ export interface WalletConfig {
2198
2271
  */
2199
2272
  'oidcRevision'?: OidcRevision;
2200
2273
  /**
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}
2274
+ *
2275
+ * @type {TrustFrameworkType}
2203
2276
  * @memberof WalletConfig
2204
2277
  */
2205
- 'trustFramework': WalletConfigTrustFrameworkEnum;
2278
+ 'trustFramework': TrustFrameworkType;
2206
2279
  /**
2207
2280
  *
2208
2281
  * @type {EbsiSpecificWalletData}
@@ -2215,6 +2288,12 @@ export interface WalletConfig {
2215
2288
  * @memberof WalletConfig
2216
2289
  */
2217
2290
  'EUDI'?: EudiConfiguration;
2291
+ /**
2292
+ *
2293
+ * @type {SigningKeyIdentifier}
2294
+ * @memberof WalletConfig
2295
+ */
2296
+ 'walletKeyIdentifier': SigningKeyIdentifier;
2218
2297
  /**
2219
2298
  * Expiration time in seconds for credential status lists. Used only if the wallet is a credential issuer
2220
2299
  * @type {number}
@@ -2222,12 +2301,6 @@ export interface WalletConfig {
2222
2301
  */
2223
2302
  'statusListExpiration'?: number;
2224
2303
  }
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
2304
  /**
2232
2305
  * Payload to create a wallet
2233
2306
  * @export
@@ -2268,6 +2341,19 @@ export interface WalletIdObject {
2268
2341
  */
2269
2342
  'id': string;
2270
2343
  }
2344
+ /**
2345
+ * DID or Wallet URL depending on the configured wallet key identifier
2346
+ * @export
2347
+ * @interface WalletIdentifier
2348
+ */
2349
+ export interface WalletIdentifier {
2350
+ /**
2351
+ *
2352
+ * @type {string}
2353
+ * @memberof WalletIdentifier
2354
+ */
2355
+ 'identifier': string;
2356
+ }
2271
2357
  /**
2272
2358
  *
2273
2359
  * @export
@@ -2493,21 +2579,6 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2493
2579
  * @throws {RequiredError}
2494
2580
  */
2495
2581
  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
2582
  /**
2512
2583
  *
2513
2584
  * @param {*} [options] Override http request option.
@@ -2701,6 +2772,21 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2701
2772
  * @throws {RequiredError}
2702
2773
  */
2703
2774
  walletGet: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2775
+ /**
2776
+ *
2777
+ * @param {string} walletId
2778
+ * @param {*} [options] Override http request option.
2779
+ * @throws {RequiredError}
2780
+ */
2781
+ walletIdentifierGet: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2782
+ /**
2783
+ *
2784
+ * @param {string} walletId
2785
+ * @param {WalletIdentifier} [walletIdentifier] The new wallet identifier
2786
+ * @param {*} [options] Override http request option.
2787
+ * @throws {RequiredError}
2788
+ */
2789
+ walletIdentifierUpdate: (walletId: string, walletIdentifier?: WalletIdentifier, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2704
2790
  /**
2705
2791
  * Provides wallet keys used for signing.
2706
2792
  * @param {string} walletId Wallet ID
@@ -2767,6 +2853,22 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2767
2853
  * @throws {RequiredError}
2768
2854
  */
2769
2855
  walletVerifiedCredentialsDeleteByState: (walletId: string, state: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2856
+ /**
2857
+ * Creates a X509 certificate signing request for signing key.
2858
+ * @param {string} walletId Wallet ID
2859
+ * @param {CSRCreateRequest} [cSRCreateRequest]
2860
+ * @param {*} [options] Override http request option.
2861
+ * @throws {RequiredError}
2862
+ */
2863
+ walletX509CSRCreate: (walletId: string, cSRCreateRequest?: CSRCreateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2864
+ /**
2865
+ * Imports an X509 certificate to be used when signing credentials
2866
+ * @param {string} walletId Wallet ID
2867
+ * @param {CertificateImportRequest} [certificateImportRequest]
2868
+ * @param {*} [options] Override http request option.
2869
+ * @throws {RequiredError}
2870
+ */
2871
+ walletX509CertificateImport: (walletId: string, certificateImportRequest?: CertificateImportRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2770
2872
  };
2771
2873
  /**
2772
2874
  * DefaultApi - functional programming interface
@@ -2870,21 +2972,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2870
2972
  * @throws {RequiredError}
2871
2973
  */
2872
2974
  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
2975
  /**
2889
2976
  *
2890
2977
  * @param {*} [options] Override http request option.
@@ -3078,6 +3165,21 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
3078
3165
  * @throws {RequiredError}
3079
3166
  */
3080
3167
  walletGet(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Wallet>>;
3168
+ /**
3169
+ *
3170
+ * @param {string} walletId
3171
+ * @param {*} [options] Override http request option.
3172
+ * @throws {RequiredError}
3173
+ */
3174
+ walletIdentifierGet(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletIdentifier>>;
3175
+ /**
3176
+ *
3177
+ * @param {string} walletId
3178
+ * @param {WalletIdentifier} [walletIdentifier] The new wallet identifier
3179
+ * @param {*} [options] Override http request option.
3180
+ * @throws {RequiredError}
3181
+ */
3182
+ walletIdentifierUpdate(walletId: string, walletIdentifier?: WalletIdentifier, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletIdentifier>>;
3081
3183
  /**
3082
3184
  * Provides wallet keys used for signing.
3083
3185
  * @param {string} walletId Wallet ID
@@ -3146,6 +3248,22 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
3146
3248
  * @throws {RequiredError}
3147
3249
  */
3148
3250
  walletVerifiedCredentialsDeleteByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
3251
+ /**
3252
+ * Creates a X509 certificate signing request for signing key.
3253
+ * @param {string} walletId Wallet ID
3254
+ * @param {CSRCreateRequest} [cSRCreateRequest]
3255
+ * @param {*} [options] Override http request option.
3256
+ * @throws {RequiredError}
3257
+ */
3258
+ walletX509CSRCreate(walletId: string, cSRCreateRequest?: CSRCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CSRCreateResponse>>;
3259
+ /**
3260
+ * Imports an X509 certificate to be used when signing credentials
3261
+ * @param {string} walletId Wallet ID
3262
+ * @param {CertificateImportRequest} [certificateImportRequest]
3263
+ * @param {*} [options] Override http request option.
3264
+ * @throws {RequiredError}
3265
+ */
3266
+ walletX509CertificateImport(walletId: string, certificateImportRequest?: CertificateImportRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
3149
3267
  };
3150
3268
  /**
3151
3269
  * DefaultApi - factory interface
@@ -3249,21 +3367,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3249
3367
  * @throws {RequiredError}
3250
3368
  */
3251
3369
  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
3370
  /**
3268
3371
  *
3269
3372
  * @param {*} [options] Override http request option.
@@ -3457,6 +3560,21 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3457
3560
  * @throws {RequiredError}
3458
3561
  */
3459
3562
  walletGet(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<Wallet>;
3563
+ /**
3564
+ *
3565
+ * @param {string} walletId
3566
+ * @param {*} [options] Override http request option.
3567
+ * @throws {RequiredError}
3568
+ */
3569
+ walletIdentifierGet(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<WalletIdentifier>;
3570
+ /**
3571
+ *
3572
+ * @param {string} walletId
3573
+ * @param {WalletIdentifier} [walletIdentifier] The new wallet identifier
3574
+ * @param {*} [options] Override http request option.
3575
+ * @throws {RequiredError}
3576
+ */
3577
+ walletIdentifierUpdate(walletId: string, walletIdentifier?: WalletIdentifier, options?: RawAxiosRequestConfig): AxiosPromise<WalletIdentifier>;
3460
3578
  /**
3461
3579
  * Provides wallet keys used for signing.
3462
3580
  * @param {string} walletId Wallet ID
@@ -3525,6 +3643,22 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3525
3643
  * @throws {RequiredError}
3526
3644
  */
3527
3645
  walletVerifiedCredentialsDeleteByState(walletId: string, state: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
3646
+ /**
3647
+ * Creates a X509 certificate signing request for signing key.
3648
+ * @param {string} walletId Wallet ID
3649
+ * @param {CSRCreateRequest} [cSRCreateRequest]
3650
+ * @param {*} [options] Override http request option.
3651
+ * @throws {RequiredError}
3652
+ */
3653
+ walletX509CSRCreate(walletId: string, cSRCreateRequest?: CSRCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<CSRCreateResponse>;
3654
+ /**
3655
+ * Imports an X509 certificate to be used when signing credentials
3656
+ * @param {string} walletId Wallet ID
3657
+ * @param {CertificateImportRequest} [certificateImportRequest]
3658
+ * @param {*} [options] Override http request option.
3659
+ * @throws {RequiredError}
3660
+ */
3661
+ walletX509CertificateImport(walletId: string, certificateImportRequest?: CertificateImportRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
3528
3662
  };
3529
3663
  /**
3530
3664
  * DefaultApi - object-oriented interface
@@ -3641,23 +3775,6 @@ export declare class DefaultApi extends BaseAPI {
3641
3775
  * @memberof DefaultApi
3642
3776
  */
3643
3777
  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
3778
  /**
3662
3779
  *
3663
3780
  * @param {*} [options] Override http request option.
@@ -3876,6 +3993,23 @@ export declare class DefaultApi extends BaseAPI {
3876
3993
  * @memberof DefaultApi
3877
3994
  */
3878
3995
  walletGet(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Wallet, any>>;
3996
+ /**
3997
+ *
3998
+ * @param {string} walletId
3999
+ * @param {*} [options] Override http request option.
4000
+ * @throws {RequiredError}
4001
+ * @memberof DefaultApi
4002
+ */
4003
+ walletIdentifierGet(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletIdentifier, any>>;
4004
+ /**
4005
+ *
4006
+ * @param {string} walletId
4007
+ * @param {WalletIdentifier} [walletIdentifier] The new wallet identifier
4008
+ * @param {*} [options] Override http request option.
4009
+ * @throws {RequiredError}
4010
+ * @memberof DefaultApi
4011
+ */
4012
+ walletIdentifierUpdate(walletId: string, walletIdentifier?: WalletIdentifier, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletIdentifier, any>>;
3879
4013
  /**
3880
4014
  * Provides wallet keys used for signing.
3881
4015
  * @param {string} walletId Wallet ID
@@ -3952,6 +4086,24 @@ export declare class DefaultApi extends BaseAPI {
3952
4086
  * @memberof DefaultApi
3953
4087
  */
3954
4088
  walletVerifiedCredentialsDeleteByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
4089
+ /**
4090
+ * Creates a X509 certificate signing request for signing key.
4091
+ * @param {string} walletId Wallet ID
4092
+ * @param {CSRCreateRequest} [cSRCreateRequest]
4093
+ * @param {*} [options] Override http request option.
4094
+ * @throws {RequiredError}
4095
+ * @memberof DefaultApi
4096
+ */
4097
+ walletX509CSRCreate(walletId: string, cSRCreateRequest?: CSRCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CSRCreateResponse, any>>;
4098
+ /**
4099
+ * Imports an X509 certificate to be used when signing credentials
4100
+ * @param {string} walletId Wallet ID
4101
+ * @param {CertificateImportRequest} [certificateImportRequest]
4102
+ * @param {*} [options] Override http request option.
4103
+ * @throws {RequiredError}
4104
+ * @memberof DefaultApi
4105
+ */
4106
+ walletX509CertificateImport(walletId: string, certificateImportRequest?: CertificateImportRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3955
4107
  }
3956
4108
  /**
3957
4109
  * @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.244",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {