@triveria/wallet 0.0.198 → 0.0.200
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.d.ts +263 -10
- package/api.js +359 -1
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -321,12 +321,30 @@ export interface CredentialMetadata {
|
|
|
321
321
|
* @memberof CredentialMetadata
|
|
322
322
|
*/
|
|
323
323
|
'id': string;
|
|
324
|
+
/**
|
|
325
|
+
*
|
|
326
|
+
* @type {string}
|
|
327
|
+
* @memberof CredentialMetadata
|
|
328
|
+
*/
|
|
329
|
+
'walletId': string;
|
|
330
|
+
/**
|
|
331
|
+
*
|
|
332
|
+
* @type {string}
|
|
333
|
+
* @memberof CredentialMetadata
|
|
334
|
+
*/
|
|
335
|
+
'ownerId': string;
|
|
324
336
|
/**
|
|
325
337
|
*
|
|
326
338
|
* @type {string}
|
|
327
339
|
* @memberof CredentialMetadata
|
|
328
340
|
*/
|
|
329
341
|
'name': string;
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
* @type {string}
|
|
345
|
+
* @memberof CredentialMetadata
|
|
346
|
+
*/
|
|
347
|
+
'interaction': CredentialMetadataInteractionEnum;
|
|
330
348
|
/**
|
|
331
349
|
*
|
|
332
350
|
* @type {string}
|
|
@@ -344,13 +362,25 @@ export interface CredentialMetadata {
|
|
|
344
362
|
* @type {string}
|
|
345
363
|
* @memberof CredentialMetadata
|
|
346
364
|
*/
|
|
347
|
-
'
|
|
365
|
+
'customId'?: string;
|
|
366
|
+
/**
|
|
367
|
+
* In case of issued credential this is the DID of the holder wallet
|
|
368
|
+
* @type {string}
|
|
369
|
+
* @memberof CredentialMetadata
|
|
370
|
+
*/
|
|
371
|
+
'offeredToClientId'?: string;
|
|
372
|
+
/**
|
|
373
|
+
*
|
|
374
|
+
* @type {string}
|
|
375
|
+
* @memberof CredentialMetadata
|
|
376
|
+
*/
|
|
377
|
+
'created': string;
|
|
348
378
|
/**
|
|
349
379
|
*
|
|
350
380
|
* @type {string}
|
|
351
381
|
* @memberof CredentialMetadata
|
|
352
382
|
*/
|
|
353
|
-
'updated'
|
|
383
|
+
'updated': string;
|
|
354
384
|
/**
|
|
355
385
|
*
|
|
356
386
|
* @type {string}
|
|
@@ -370,6 +400,13 @@ export interface CredentialMetadata {
|
|
|
370
400
|
*/
|
|
371
401
|
'issuerDisplay'?: Array<IssuerDisplayItem>;
|
|
372
402
|
}
|
|
403
|
+
export declare const CredentialMetadataInteractionEnum: {
|
|
404
|
+
readonly Issuance: "issuance";
|
|
405
|
+
readonly Receive: "receive";
|
|
406
|
+
readonly StatusList: "statusList";
|
|
407
|
+
readonly TaoCredentials: "taoCredentials";
|
|
408
|
+
};
|
|
409
|
+
export type CredentialMetadataInteractionEnum = typeof CredentialMetadataInteractionEnum[keyof typeof CredentialMetadataInteractionEnum];
|
|
373
410
|
export declare const CredentialMetadataStatusEnum: {
|
|
374
411
|
readonly Draft: "draft";
|
|
375
412
|
readonly Valid: "valid";
|
|
@@ -1135,6 +1172,50 @@ export interface IssuerLogoImage {
|
|
|
1135
1172
|
*/
|
|
1136
1173
|
'alt_text'?: string;
|
|
1137
1174
|
}
|
|
1175
|
+
/**
|
|
1176
|
+
*
|
|
1177
|
+
* @export
|
|
1178
|
+
* @interface LinkedVpCreateRequest
|
|
1179
|
+
*/
|
|
1180
|
+
export interface LinkedVpCreateRequest {
|
|
1181
|
+
/**
|
|
1182
|
+
*
|
|
1183
|
+
* @type {PresentationDefinition}
|
|
1184
|
+
* @memberof LinkedVpCreateRequest
|
|
1185
|
+
*/
|
|
1186
|
+
'presentationDefinition': PresentationDefinition;
|
|
1187
|
+
/**
|
|
1188
|
+
*
|
|
1189
|
+
* @type {Array<InputDescriptorSuitableCredentials>}
|
|
1190
|
+
* @memberof LinkedVpCreateRequest
|
|
1191
|
+
*/
|
|
1192
|
+
'credentialsToPresent': Array<InputDescriptorSuitableCredentials>;
|
|
1193
|
+
/**
|
|
1194
|
+
*
|
|
1195
|
+
* @type {string}
|
|
1196
|
+
* @memberof LinkedVpCreateRequest
|
|
1197
|
+
*/
|
|
1198
|
+
'expirationDate'?: string;
|
|
1199
|
+
}
|
|
1200
|
+
/**
|
|
1201
|
+
*
|
|
1202
|
+
* @export
|
|
1203
|
+
* @interface LinkedVpMetadata
|
|
1204
|
+
*/
|
|
1205
|
+
export interface LinkedVpMetadata {
|
|
1206
|
+
/**
|
|
1207
|
+
*
|
|
1208
|
+
* @type {string}
|
|
1209
|
+
* @memberof LinkedVpMetadata
|
|
1210
|
+
*/
|
|
1211
|
+
'linkedVpId': string;
|
|
1212
|
+
/**
|
|
1213
|
+
*
|
|
1214
|
+
* @type {string}
|
|
1215
|
+
* @memberof LinkedVpMetadata
|
|
1216
|
+
*/
|
|
1217
|
+
'linkedVpUrl': string;
|
|
1218
|
+
}
|
|
1138
1219
|
/**
|
|
1139
1220
|
* Sort flag controls the sort direction by the time created
|
|
1140
1221
|
* @export
|
|
@@ -1775,6 +1856,25 @@ export interface VcOffer {
|
|
|
1775
1856
|
*/
|
|
1776
1857
|
'Url': string;
|
|
1777
1858
|
}
|
|
1859
|
+
/**
|
|
1860
|
+
*
|
|
1861
|
+
* @export
|
|
1862
|
+
* @interface VerifiedLinkedVp
|
|
1863
|
+
*/
|
|
1864
|
+
export interface VerifiedLinkedVp {
|
|
1865
|
+
/**
|
|
1866
|
+
*
|
|
1867
|
+
* @type {string}
|
|
1868
|
+
* @memberof VerifiedLinkedVp
|
|
1869
|
+
*/
|
|
1870
|
+
'linkedVpId': string;
|
|
1871
|
+
/**
|
|
1872
|
+
*
|
|
1873
|
+
* @type {Array<Credential>}
|
|
1874
|
+
* @memberof VerifiedLinkedVp
|
|
1875
|
+
*/
|
|
1876
|
+
'credentials': Array<Credential>;
|
|
1877
|
+
}
|
|
1778
1878
|
/**
|
|
1779
1879
|
* Request for the creation of URL used by holder to present credentials to a verifier. Either clientId or idTokenRequestId MUST be present.
|
|
1780
1880
|
* @export
|
|
@@ -1856,14 +1956,6 @@ export interface Wallet {
|
|
|
1856
1956
|
* @memberof Wallet
|
|
1857
1957
|
*/
|
|
1858
1958
|
'capabilities'?: Array<WalletCapability>;
|
|
1859
|
-
/**
|
|
1860
|
-
* Wallet metadata is a key value container for any custom data a client may want
|
|
1861
|
-
* @type {{ [key: string]: any; }}
|
|
1862
|
-
* @memberof Wallet
|
|
1863
|
-
*/
|
|
1864
|
-
'metadata'?: {
|
|
1865
|
-
[key: string]: any;
|
|
1866
|
-
};
|
|
1867
1959
|
/**
|
|
1868
1960
|
*
|
|
1869
1961
|
* @type {WalletConfig}
|
|
@@ -2171,6 +2263,37 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2171
2263
|
* @throws {RequiredError}
|
|
2172
2264
|
*/
|
|
2173
2265
|
holderIdTokenSend: (walletId: string, idTokenSendRequest?: IdTokenSendRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2266
|
+
/**
|
|
2267
|
+
* Creates a new public Linked VP of specified credentials and adds it to the wallet\'s DID document
|
|
2268
|
+
* @param {string} walletId
|
|
2269
|
+
* @param {LinkedVpCreateRequest} [linkedVpCreateRequest]
|
|
2270
|
+
* @param {*} [options] Override http request option.
|
|
2271
|
+
* @throws {RequiredError}
|
|
2272
|
+
*/
|
|
2273
|
+
holderLinkedVpCreate: (walletId: string, linkedVpCreateRequest?: LinkedVpCreateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2274
|
+
/**
|
|
2275
|
+
* Deletes a linked VP
|
|
2276
|
+
* @param {string} walletId
|
|
2277
|
+
* @param {string} linkedVpId
|
|
2278
|
+
* @param {*} [options] Override http request option.
|
|
2279
|
+
* @throws {RequiredError}
|
|
2280
|
+
*/
|
|
2281
|
+
holderLinkedVpDelete: (walletId: string, linkedVpId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2282
|
+
/**
|
|
2283
|
+
*
|
|
2284
|
+
* @param {string} walletId
|
|
2285
|
+
* @param {string} linkedVpId
|
|
2286
|
+
* @param {*} [options] Override http request option.
|
|
2287
|
+
* @throws {RequiredError}
|
|
2288
|
+
*/
|
|
2289
|
+
holderLinkedVpGetDetails: (walletId: string, linkedVpId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2290
|
+
/**
|
|
2291
|
+
*
|
|
2292
|
+
* @param {string} walletId
|
|
2293
|
+
* @param {*} [options] Override http request option.
|
|
2294
|
+
* @throws {RequiredError}
|
|
2295
|
+
*/
|
|
2296
|
+
holderLinkedVpList: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2174
2297
|
/**
|
|
2175
2298
|
* Issue the Verifiable Credential using OIDC4VCI offer acceptance
|
|
2176
2299
|
* @param {string} walletId
|
|
@@ -2287,6 +2410,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2287
2410
|
* @throws {RequiredError}
|
|
2288
2411
|
*/
|
|
2289
2412
|
verifierInitUrlCreate: (walletId: string, verifyInitRequest?: VerifyInitRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2413
|
+
/**
|
|
2414
|
+
* Fetches linked presentations from DID document and verifies them.
|
|
2415
|
+
* @param {string} walletId
|
|
2416
|
+
* @param {string} did
|
|
2417
|
+
* @param {*} [options] Override http request option.
|
|
2418
|
+
* @throws {RequiredError}
|
|
2419
|
+
*/
|
|
2420
|
+
verifierLinkedVpVerify: (walletId: string, did: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2290
2421
|
/**
|
|
2291
2422
|
* Creates a new wallet for the authenticated client.
|
|
2292
2423
|
* @param {Wallet} [wallet]
|
|
@@ -2512,6 +2643,37 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2512
2643
|
* @throws {RequiredError}
|
|
2513
2644
|
*/
|
|
2514
2645
|
holderIdTokenSend(walletId: string, idTokenSendRequest?: IdTokenSendRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2646
|
+
/**
|
|
2647
|
+
* Creates a new public Linked VP of specified credentials and adds it to the wallet\'s DID document
|
|
2648
|
+
* @param {string} walletId
|
|
2649
|
+
* @param {LinkedVpCreateRequest} [linkedVpCreateRequest]
|
|
2650
|
+
* @param {*} [options] Override http request option.
|
|
2651
|
+
* @throws {RequiredError}
|
|
2652
|
+
*/
|
|
2653
|
+
holderLinkedVpCreate(walletId: string, linkedVpCreateRequest?: LinkedVpCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LinkedVpMetadata>>;
|
|
2654
|
+
/**
|
|
2655
|
+
* Deletes a linked VP
|
|
2656
|
+
* @param {string} walletId
|
|
2657
|
+
* @param {string} linkedVpId
|
|
2658
|
+
* @param {*} [options] Override http request option.
|
|
2659
|
+
* @throws {RequiredError}
|
|
2660
|
+
*/
|
|
2661
|
+
holderLinkedVpDelete(walletId: string, linkedVpId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2662
|
+
/**
|
|
2663
|
+
*
|
|
2664
|
+
* @param {string} walletId
|
|
2665
|
+
* @param {string} linkedVpId
|
|
2666
|
+
* @param {*} [options] Override http request option.
|
|
2667
|
+
* @throws {RequiredError}
|
|
2668
|
+
*/
|
|
2669
|
+
holderLinkedVpGetDetails(walletId: string, linkedVpId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LinkedVpMetadata>>;
|
|
2670
|
+
/**
|
|
2671
|
+
*
|
|
2672
|
+
* @param {string} walletId
|
|
2673
|
+
* @param {*} [options] Override http request option.
|
|
2674
|
+
* @throws {RequiredError}
|
|
2675
|
+
*/
|
|
2676
|
+
holderLinkedVpList(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LinkedVpMetadata>>>;
|
|
2515
2677
|
/**
|
|
2516
2678
|
* Issue the Verifiable Credential using OIDC4VCI offer acceptance
|
|
2517
2679
|
* @param {string} walletId
|
|
@@ -2628,6 +2790,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2628
2790
|
* @throws {RequiredError}
|
|
2629
2791
|
*/
|
|
2630
2792
|
verifierInitUrlCreate(walletId: string, verifyInitRequest?: VerifyInitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyInitResponse>>;
|
|
2793
|
+
/**
|
|
2794
|
+
* Fetches linked presentations from DID document and verifies them.
|
|
2795
|
+
* @param {string} walletId
|
|
2796
|
+
* @param {string} did
|
|
2797
|
+
* @param {*} [options] Override http request option.
|
|
2798
|
+
* @throws {RequiredError}
|
|
2799
|
+
*/
|
|
2800
|
+
verifierLinkedVpVerify(walletId: string, did: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<VerifiedLinkedVp>>>;
|
|
2631
2801
|
/**
|
|
2632
2802
|
* Creates a new wallet for the authenticated client.
|
|
2633
2803
|
* @param {Wallet} [wallet]
|
|
@@ -2855,6 +3025,37 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2855
3025
|
* @throws {RequiredError}
|
|
2856
3026
|
*/
|
|
2857
3027
|
holderIdTokenSend(walletId: string, idTokenSendRequest?: IdTokenSendRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
3028
|
+
/**
|
|
3029
|
+
* Creates a new public Linked VP of specified credentials and adds it to the wallet\'s DID document
|
|
3030
|
+
* @param {string} walletId
|
|
3031
|
+
* @param {LinkedVpCreateRequest} [linkedVpCreateRequest]
|
|
3032
|
+
* @param {*} [options] Override http request option.
|
|
3033
|
+
* @throws {RequiredError}
|
|
3034
|
+
*/
|
|
3035
|
+
holderLinkedVpCreate(walletId: string, linkedVpCreateRequest?: LinkedVpCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<LinkedVpMetadata>;
|
|
3036
|
+
/**
|
|
3037
|
+
* Deletes a linked VP
|
|
3038
|
+
* @param {string} walletId
|
|
3039
|
+
* @param {string} linkedVpId
|
|
3040
|
+
* @param {*} [options] Override http request option.
|
|
3041
|
+
* @throws {RequiredError}
|
|
3042
|
+
*/
|
|
3043
|
+
holderLinkedVpDelete(walletId: string, linkedVpId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
3044
|
+
/**
|
|
3045
|
+
*
|
|
3046
|
+
* @param {string} walletId
|
|
3047
|
+
* @param {string} linkedVpId
|
|
3048
|
+
* @param {*} [options] Override http request option.
|
|
3049
|
+
* @throws {RequiredError}
|
|
3050
|
+
*/
|
|
3051
|
+
holderLinkedVpGetDetails(walletId: string, linkedVpId: string, options?: RawAxiosRequestConfig): AxiosPromise<LinkedVpMetadata>;
|
|
3052
|
+
/**
|
|
3053
|
+
*
|
|
3054
|
+
* @param {string} walletId
|
|
3055
|
+
* @param {*} [options] Override http request option.
|
|
3056
|
+
* @throws {RequiredError}
|
|
3057
|
+
*/
|
|
3058
|
+
holderLinkedVpList(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<LinkedVpMetadata>>;
|
|
2858
3059
|
/**
|
|
2859
3060
|
* Issue the Verifiable Credential using OIDC4VCI offer acceptance
|
|
2860
3061
|
* @param {string} walletId
|
|
@@ -2971,6 +3172,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2971
3172
|
* @throws {RequiredError}
|
|
2972
3173
|
*/
|
|
2973
3174
|
verifierInitUrlCreate(walletId: string, verifyInitRequest?: VerifyInitRequest, options?: RawAxiosRequestConfig): AxiosPromise<VerifyInitResponse>;
|
|
3175
|
+
/**
|
|
3176
|
+
* Fetches linked presentations from DID document and verifies them.
|
|
3177
|
+
* @param {string} walletId
|
|
3178
|
+
* @param {string} did
|
|
3179
|
+
* @param {*} [options] Override http request option.
|
|
3180
|
+
* @throws {RequiredError}
|
|
3181
|
+
*/
|
|
3182
|
+
verifierLinkedVpVerify(walletId: string, did: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<VerifiedLinkedVp>>;
|
|
2974
3183
|
/**
|
|
2975
3184
|
* Creates a new wallet for the authenticated client.
|
|
2976
3185
|
* @param {Wallet} [wallet]
|
|
@@ -3216,6 +3425,41 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3216
3425
|
* @memberof DefaultApi
|
|
3217
3426
|
*/
|
|
3218
3427
|
holderIdTokenSend(walletId: string, idTokenSendRequest?: IdTokenSendRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3428
|
+
/**
|
|
3429
|
+
* Creates a new public Linked VP of specified credentials and adds it to the wallet\'s DID document
|
|
3430
|
+
* @param {string} walletId
|
|
3431
|
+
* @param {LinkedVpCreateRequest} [linkedVpCreateRequest]
|
|
3432
|
+
* @param {*} [options] Override http request option.
|
|
3433
|
+
* @throws {RequiredError}
|
|
3434
|
+
* @memberof DefaultApi
|
|
3435
|
+
*/
|
|
3436
|
+
holderLinkedVpCreate(walletId: string, linkedVpCreateRequest?: LinkedVpCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LinkedVpMetadata, any>>;
|
|
3437
|
+
/**
|
|
3438
|
+
* Deletes a linked VP
|
|
3439
|
+
* @param {string} walletId
|
|
3440
|
+
* @param {string} linkedVpId
|
|
3441
|
+
* @param {*} [options] Override http request option.
|
|
3442
|
+
* @throws {RequiredError}
|
|
3443
|
+
* @memberof DefaultApi
|
|
3444
|
+
*/
|
|
3445
|
+
holderLinkedVpDelete(walletId: string, linkedVpId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3446
|
+
/**
|
|
3447
|
+
*
|
|
3448
|
+
* @param {string} walletId
|
|
3449
|
+
* @param {string} linkedVpId
|
|
3450
|
+
* @param {*} [options] Override http request option.
|
|
3451
|
+
* @throws {RequiredError}
|
|
3452
|
+
* @memberof DefaultApi
|
|
3453
|
+
*/
|
|
3454
|
+
holderLinkedVpGetDetails(walletId: string, linkedVpId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LinkedVpMetadata, any>>;
|
|
3455
|
+
/**
|
|
3456
|
+
*
|
|
3457
|
+
* @param {string} walletId
|
|
3458
|
+
* @param {*} [options] Override http request option.
|
|
3459
|
+
* @throws {RequiredError}
|
|
3460
|
+
* @memberof DefaultApi
|
|
3461
|
+
*/
|
|
3462
|
+
holderLinkedVpList(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LinkedVpMetadata[], any>>;
|
|
3219
3463
|
/**
|
|
3220
3464
|
* Issue the Verifiable Credential using OIDC4VCI offer acceptance
|
|
3221
3465
|
* @param {string} walletId
|
|
@@ -3347,6 +3591,15 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3347
3591
|
* @memberof DefaultApi
|
|
3348
3592
|
*/
|
|
3349
3593
|
verifierInitUrlCreate(walletId: string, verifyInitRequest?: VerifyInitRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VerifyInitResponse, any>>;
|
|
3594
|
+
/**
|
|
3595
|
+
* Fetches linked presentations from DID document and verifies them.
|
|
3596
|
+
* @param {string} walletId
|
|
3597
|
+
* @param {string} did
|
|
3598
|
+
* @param {*} [options] Override http request option.
|
|
3599
|
+
* @throws {RequiredError}
|
|
3600
|
+
* @memberof DefaultApi
|
|
3601
|
+
*/
|
|
3602
|
+
verifierLinkedVpVerify(walletId: string, did: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VerifiedLinkedVp[], any>>;
|
|
3350
3603
|
/**
|
|
3351
3604
|
* Creates a new wallet for the authenticated client.
|
|
3352
3605
|
* @param {Wallet} [wallet]
|
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.OidcRevisionOidc4vciEnum = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialFormat = exports.AccreditationRequestTypeEnum = void 0;
|
|
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.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
|
|
@@ -51,6 +51,12 @@ exports.CredentialIssuerDefinitionCredentialIssuerEnum = {
|
|
|
51
51
|
IssuanceQueue: 'IssuanceQueue',
|
|
52
52
|
VpDriven: 'VPDriven'
|
|
53
53
|
};
|
|
54
|
+
exports.CredentialMetadataInteractionEnum = {
|
|
55
|
+
Issuance: 'issuance',
|
|
56
|
+
Receive: 'receive',
|
|
57
|
+
StatusList: 'statusList',
|
|
58
|
+
TaoCredentials: 'taoCredentials'
|
|
59
|
+
};
|
|
54
60
|
exports.CredentialMetadataStatusEnum = {
|
|
55
61
|
Draft: 'draft',
|
|
56
62
|
Valid: 'valid',
|
|
@@ -729,6 +735,137 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
729
735
|
options: localVarRequestOptions,
|
|
730
736
|
};
|
|
731
737
|
}),
|
|
738
|
+
/**
|
|
739
|
+
* Creates a new public Linked VP of specified credentials and adds it to the wallet\'s DID document
|
|
740
|
+
* @param {string} walletId
|
|
741
|
+
* @param {LinkedVpCreateRequest} [linkedVpCreateRequest]
|
|
742
|
+
* @param {*} [options] Override http request option.
|
|
743
|
+
* @throws {RequiredError}
|
|
744
|
+
*/
|
|
745
|
+
holderLinkedVpCreate: (walletId, linkedVpCreateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
746
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
747
|
+
(0, common_1.assertParamExists)('holderLinkedVpCreate', 'walletId', walletId);
|
|
748
|
+
const localVarPath = `/holder/linked-vp`;
|
|
749
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
750
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
751
|
+
let baseOptions;
|
|
752
|
+
if (configuration) {
|
|
753
|
+
baseOptions = configuration.baseOptions;
|
|
754
|
+
}
|
|
755
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
756
|
+
const localVarHeaderParameter = {};
|
|
757
|
+
const localVarQueryParameter = {};
|
|
758
|
+
if (walletId != null) {
|
|
759
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
760
|
+
}
|
|
761
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
762
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
763
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
764
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
765
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(linkedVpCreateRequest, localVarRequestOptions, configuration);
|
|
766
|
+
return {
|
|
767
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
768
|
+
options: localVarRequestOptions,
|
|
769
|
+
};
|
|
770
|
+
}),
|
|
771
|
+
/**
|
|
772
|
+
* Deletes a linked VP
|
|
773
|
+
* @param {string} walletId
|
|
774
|
+
* @param {string} linkedVpId
|
|
775
|
+
* @param {*} [options] Override http request option.
|
|
776
|
+
* @throws {RequiredError}
|
|
777
|
+
*/
|
|
778
|
+
holderLinkedVpDelete: (walletId, linkedVpId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
779
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
780
|
+
(0, common_1.assertParamExists)('holderLinkedVpDelete', 'walletId', walletId);
|
|
781
|
+
// verify required parameter 'linkedVpId' is not null or undefined
|
|
782
|
+
(0, common_1.assertParamExists)('holderLinkedVpDelete', 'linkedVpId', linkedVpId);
|
|
783
|
+
const localVarPath = `/holder/linked-vp/{linked_vp_id}`
|
|
784
|
+
.replace(`{${"linked_vp_id"}}`, encodeURIComponent(String(linkedVpId)));
|
|
785
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
786
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
787
|
+
let baseOptions;
|
|
788
|
+
if (configuration) {
|
|
789
|
+
baseOptions = configuration.baseOptions;
|
|
790
|
+
}
|
|
791
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
792
|
+
const localVarHeaderParameter = {};
|
|
793
|
+
const localVarQueryParameter = {};
|
|
794
|
+
if (walletId != null) {
|
|
795
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
796
|
+
}
|
|
797
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
798
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
799
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
800
|
+
return {
|
|
801
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
802
|
+
options: localVarRequestOptions,
|
|
803
|
+
};
|
|
804
|
+
}),
|
|
805
|
+
/**
|
|
806
|
+
*
|
|
807
|
+
* @param {string} walletId
|
|
808
|
+
* @param {string} linkedVpId
|
|
809
|
+
* @param {*} [options] Override http request option.
|
|
810
|
+
* @throws {RequiredError}
|
|
811
|
+
*/
|
|
812
|
+
holderLinkedVpGetDetails: (walletId, linkedVpId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
813
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
814
|
+
(0, common_1.assertParamExists)('holderLinkedVpGetDetails', 'walletId', walletId);
|
|
815
|
+
// verify required parameter 'linkedVpId' is not null or undefined
|
|
816
|
+
(0, common_1.assertParamExists)('holderLinkedVpGetDetails', 'linkedVpId', linkedVpId);
|
|
817
|
+
const localVarPath = `/holder/linked-vp/{linked_vp_id}`
|
|
818
|
+
.replace(`{${"linked_vp_id"}}`, encodeURIComponent(String(linkedVpId)));
|
|
819
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
820
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
821
|
+
let baseOptions;
|
|
822
|
+
if (configuration) {
|
|
823
|
+
baseOptions = configuration.baseOptions;
|
|
824
|
+
}
|
|
825
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
826
|
+
const localVarHeaderParameter = {};
|
|
827
|
+
const localVarQueryParameter = {};
|
|
828
|
+
if (walletId != null) {
|
|
829
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
830
|
+
}
|
|
831
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
832
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
833
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
834
|
+
return {
|
|
835
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
836
|
+
options: localVarRequestOptions,
|
|
837
|
+
};
|
|
838
|
+
}),
|
|
839
|
+
/**
|
|
840
|
+
*
|
|
841
|
+
* @param {string} walletId
|
|
842
|
+
* @param {*} [options] Override http request option.
|
|
843
|
+
* @throws {RequiredError}
|
|
844
|
+
*/
|
|
845
|
+
holderLinkedVpList: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
846
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
847
|
+
(0, common_1.assertParamExists)('holderLinkedVpList', 'walletId', walletId);
|
|
848
|
+
const localVarPath = `/holder/linked-vp`;
|
|
849
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
850
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
851
|
+
let baseOptions;
|
|
852
|
+
if (configuration) {
|
|
853
|
+
baseOptions = configuration.baseOptions;
|
|
854
|
+
}
|
|
855
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
856
|
+
const localVarHeaderParameter = {};
|
|
857
|
+
const localVarQueryParameter = {};
|
|
858
|
+
if (walletId != null) {
|
|
859
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
860
|
+
}
|
|
861
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
862
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
863
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
864
|
+
return {
|
|
865
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
866
|
+
options: localVarRequestOptions,
|
|
867
|
+
};
|
|
868
|
+
}),
|
|
732
869
|
/**
|
|
733
870
|
* Issue the Verifiable Credential using OIDC4VCI offer acceptance
|
|
734
871
|
* @param {string} walletId
|
|
@@ -1238,6 +1375,45 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1238
1375
|
options: localVarRequestOptions,
|
|
1239
1376
|
};
|
|
1240
1377
|
}),
|
|
1378
|
+
/**
|
|
1379
|
+
* Fetches linked presentations from DID document and verifies them.
|
|
1380
|
+
* @param {string} walletId
|
|
1381
|
+
* @param {string} did
|
|
1382
|
+
* @param {*} [options] Override http request option.
|
|
1383
|
+
* @throws {RequiredError}
|
|
1384
|
+
*/
|
|
1385
|
+
verifierLinkedVpVerify: (walletId, did, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1386
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
1387
|
+
(0, common_1.assertParamExists)('verifierLinkedVpVerify', 'walletId', walletId);
|
|
1388
|
+
// verify required parameter 'did' is not null or undefined
|
|
1389
|
+
(0, common_1.assertParamExists)('verifierLinkedVpVerify', 'did', did);
|
|
1390
|
+
const localVarPath = `/verifier/linked-vp`;
|
|
1391
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1392
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1393
|
+
let baseOptions;
|
|
1394
|
+
if (configuration) {
|
|
1395
|
+
baseOptions = configuration.baseOptions;
|
|
1396
|
+
}
|
|
1397
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1398
|
+
const localVarHeaderParameter = {};
|
|
1399
|
+
const localVarQueryParameter = {};
|
|
1400
|
+
// authentication accessToken required
|
|
1401
|
+
// http bearer authentication required
|
|
1402
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1403
|
+
if (did !== undefined) {
|
|
1404
|
+
localVarQueryParameter['did'] = did;
|
|
1405
|
+
}
|
|
1406
|
+
if (walletId != null) {
|
|
1407
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
1408
|
+
}
|
|
1409
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1410
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1411
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1412
|
+
return {
|
|
1413
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1414
|
+
options: localVarRequestOptions,
|
|
1415
|
+
};
|
|
1416
|
+
}),
|
|
1241
1417
|
/**
|
|
1242
1418
|
* Creates a new wallet for the authenticated client.
|
|
1243
1419
|
* @param {Wallet} [wallet]
|
|
@@ -1878,6 +2054,69 @@ const DefaultApiFp = function (configuration) {
|
|
|
1878
2054
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1879
2055
|
});
|
|
1880
2056
|
},
|
|
2057
|
+
/**
|
|
2058
|
+
* Creates a new public Linked VP of specified credentials and adds it to the wallet\'s DID document
|
|
2059
|
+
* @param {string} walletId
|
|
2060
|
+
* @param {LinkedVpCreateRequest} [linkedVpCreateRequest]
|
|
2061
|
+
* @param {*} [options] Override http request option.
|
|
2062
|
+
* @throws {RequiredError}
|
|
2063
|
+
*/
|
|
2064
|
+
holderLinkedVpCreate(walletId, linkedVpCreateRequest, options) {
|
|
2065
|
+
var _a, _b, _c;
|
|
2066
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2067
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.holderLinkedVpCreate(walletId, linkedVpCreateRequest, options);
|
|
2068
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2069
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.holderLinkedVpCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2070
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2071
|
+
});
|
|
2072
|
+
},
|
|
2073
|
+
/**
|
|
2074
|
+
* Deletes a linked VP
|
|
2075
|
+
* @param {string} walletId
|
|
2076
|
+
* @param {string} linkedVpId
|
|
2077
|
+
* @param {*} [options] Override http request option.
|
|
2078
|
+
* @throws {RequiredError}
|
|
2079
|
+
*/
|
|
2080
|
+
holderLinkedVpDelete(walletId, linkedVpId, options) {
|
|
2081
|
+
var _a, _b, _c;
|
|
2082
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2083
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.holderLinkedVpDelete(walletId, linkedVpId, options);
|
|
2084
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2085
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.holderLinkedVpDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2086
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2087
|
+
});
|
|
2088
|
+
},
|
|
2089
|
+
/**
|
|
2090
|
+
*
|
|
2091
|
+
* @param {string} walletId
|
|
2092
|
+
* @param {string} linkedVpId
|
|
2093
|
+
* @param {*} [options] Override http request option.
|
|
2094
|
+
* @throws {RequiredError}
|
|
2095
|
+
*/
|
|
2096
|
+
holderLinkedVpGetDetails(walletId, linkedVpId, options) {
|
|
2097
|
+
var _a, _b, _c;
|
|
2098
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2099
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.holderLinkedVpGetDetails(walletId, linkedVpId, options);
|
|
2100
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2101
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.holderLinkedVpGetDetails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2102
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2103
|
+
});
|
|
2104
|
+
},
|
|
2105
|
+
/**
|
|
2106
|
+
*
|
|
2107
|
+
* @param {string} walletId
|
|
2108
|
+
* @param {*} [options] Override http request option.
|
|
2109
|
+
* @throws {RequiredError}
|
|
2110
|
+
*/
|
|
2111
|
+
holderLinkedVpList(walletId, options) {
|
|
2112
|
+
var _a, _b, _c;
|
|
2113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2114
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.holderLinkedVpList(walletId, options);
|
|
2115
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2116
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.holderLinkedVpList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2117
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2118
|
+
});
|
|
2119
|
+
},
|
|
1881
2120
|
/**
|
|
1882
2121
|
* Issue the Verifiable Credential using OIDC4VCI offer acceptance
|
|
1883
2122
|
* @param {string} walletId
|
|
@@ -2114,6 +2353,22 @@ const DefaultApiFp = function (configuration) {
|
|
|
2114
2353
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2115
2354
|
});
|
|
2116
2355
|
},
|
|
2356
|
+
/**
|
|
2357
|
+
* Fetches linked presentations from DID document and verifies them.
|
|
2358
|
+
* @param {string} walletId
|
|
2359
|
+
* @param {string} did
|
|
2360
|
+
* @param {*} [options] Override http request option.
|
|
2361
|
+
* @throws {RequiredError}
|
|
2362
|
+
*/
|
|
2363
|
+
verifierLinkedVpVerify(walletId, did, options) {
|
|
2364
|
+
var _a, _b, _c;
|
|
2365
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2366
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifierLinkedVpVerify(walletId, did, options);
|
|
2367
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2368
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.verifierLinkedVpVerify']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2369
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2370
|
+
});
|
|
2371
|
+
},
|
|
2117
2372
|
/**
|
|
2118
2373
|
* Creates a new wallet for the authenticated client.
|
|
2119
2374
|
* @param {Wallet} [wallet]
|
|
@@ -2463,6 +2718,45 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2463
2718
|
holderIdTokenSend(walletId, idTokenSendRequest, options) {
|
|
2464
2719
|
return localVarFp.holderIdTokenSend(walletId, idTokenSendRequest, options).then((request) => request(axios, basePath));
|
|
2465
2720
|
},
|
|
2721
|
+
/**
|
|
2722
|
+
* Creates a new public Linked VP of specified credentials and adds it to the wallet\'s DID document
|
|
2723
|
+
* @param {string} walletId
|
|
2724
|
+
* @param {LinkedVpCreateRequest} [linkedVpCreateRequest]
|
|
2725
|
+
* @param {*} [options] Override http request option.
|
|
2726
|
+
* @throws {RequiredError}
|
|
2727
|
+
*/
|
|
2728
|
+
holderLinkedVpCreate(walletId, linkedVpCreateRequest, options) {
|
|
2729
|
+
return localVarFp.holderLinkedVpCreate(walletId, linkedVpCreateRequest, options).then((request) => request(axios, basePath));
|
|
2730
|
+
},
|
|
2731
|
+
/**
|
|
2732
|
+
* Deletes a linked VP
|
|
2733
|
+
* @param {string} walletId
|
|
2734
|
+
* @param {string} linkedVpId
|
|
2735
|
+
* @param {*} [options] Override http request option.
|
|
2736
|
+
* @throws {RequiredError}
|
|
2737
|
+
*/
|
|
2738
|
+
holderLinkedVpDelete(walletId, linkedVpId, options) {
|
|
2739
|
+
return localVarFp.holderLinkedVpDelete(walletId, linkedVpId, options).then((request) => request(axios, basePath));
|
|
2740
|
+
},
|
|
2741
|
+
/**
|
|
2742
|
+
*
|
|
2743
|
+
* @param {string} walletId
|
|
2744
|
+
* @param {string} linkedVpId
|
|
2745
|
+
* @param {*} [options] Override http request option.
|
|
2746
|
+
* @throws {RequiredError}
|
|
2747
|
+
*/
|
|
2748
|
+
holderLinkedVpGetDetails(walletId, linkedVpId, options) {
|
|
2749
|
+
return localVarFp.holderLinkedVpGetDetails(walletId, linkedVpId, options).then((request) => request(axios, basePath));
|
|
2750
|
+
},
|
|
2751
|
+
/**
|
|
2752
|
+
*
|
|
2753
|
+
* @param {string} walletId
|
|
2754
|
+
* @param {*} [options] Override http request option.
|
|
2755
|
+
* @throws {RequiredError}
|
|
2756
|
+
*/
|
|
2757
|
+
holderLinkedVpList(walletId, options) {
|
|
2758
|
+
return localVarFp.holderLinkedVpList(walletId, options).then((request) => request(axios, basePath));
|
|
2759
|
+
},
|
|
2466
2760
|
/**
|
|
2467
2761
|
* Issue the Verifiable Credential using OIDC4VCI offer acceptance
|
|
2468
2762
|
* @param {string} walletId
|
|
@@ -2609,6 +2903,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2609
2903
|
verifierInitUrlCreate(walletId, verifyInitRequest, options) {
|
|
2610
2904
|
return localVarFp.verifierInitUrlCreate(walletId, verifyInitRequest, options).then((request) => request(axios, basePath));
|
|
2611
2905
|
},
|
|
2906
|
+
/**
|
|
2907
|
+
* Fetches linked presentations from DID document and verifies them.
|
|
2908
|
+
* @param {string} walletId
|
|
2909
|
+
* @param {string} did
|
|
2910
|
+
* @param {*} [options] Override http request option.
|
|
2911
|
+
* @throws {RequiredError}
|
|
2912
|
+
*/
|
|
2913
|
+
verifierLinkedVpVerify(walletId, did, options) {
|
|
2914
|
+
return localVarFp.verifierLinkedVpVerify(walletId, did, options).then((request) => request(axios, basePath));
|
|
2915
|
+
},
|
|
2612
2916
|
/**
|
|
2613
2917
|
* Creates a new wallet for the authenticated client.
|
|
2614
2918
|
* @param {Wallet} [wallet]
|
|
@@ -2908,6 +3212,49 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2908
3212
|
holderIdTokenSend(walletId, idTokenSendRequest, options) {
|
|
2909
3213
|
return (0, exports.DefaultApiFp)(this.configuration).holderIdTokenSend(walletId, idTokenSendRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2910
3214
|
}
|
|
3215
|
+
/**
|
|
3216
|
+
* Creates a new public Linked VP of specified credentials and adds it to the wallet\'s DID document
|
|
3217
|
+
* @param {string} walletId
|
|
3218
|
+
* @param {LinkedVpCreateRequest} [linkedVpCreateRequest]
|
|
3219
|
+
* @param {*} [options] Override http request option.
|
|
3220
|
+
* @throws {RequiredError}
|
|
3221
|
+
* @memberof DefaultApi
|
|
3222
|
+
*/
|
|
3223
|
+
holderLinkedVpCreate(walletId, linkedVpCreateRequest, options) {
|
|
3224
|
+
return (0, exports.DefaultApiFp)(this.configuration).holderLinkedVpCreate(walletId, linkedVpCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3225
|
+
}
|
|
3226
|
+
/**
|
|
3227
|
+
* Deletes a linked VP
|
|
3228
|
+
* @param {string} walletId
|
|
3229
|
+
* @param {string} linkedVpId
|
|
3230
|
+
* @param {*} [options] Override http request option.
|
|
3231
|
+
* @throws {RequiredError}
|
|
3232
|
+
* @memberof DefaultApi
|
|
3233
|
+
*/
|
|
3234
|
+
holderLinkedVpDelete(walletId, linkedVpId, options) {
|
|
3235
|
+
return (0, exports.DefaultApiFp)(this.configuration).holderLinkedVpDelete(walletId, linkedVpId, options).then((request) => request(this.axios, this.basePath));
|
|
3236
|
+
}
|
|
3237
|
+
/**
|
|
3238
|
+
*
|
|
3239
|
+
* @param {string} walletId
|
|
3240
|
+
* @param {string} linkedVpId
|
|
3241
|
+
* @param {*} [options] Override http request option.
|
|
3242
|
+
* @throws {RequiredError}
|
|
3243
|
+
* @memberof DefaultApi
|
|
3244
|
+
*/
|
|
3245
|
+
holderLinkedVpGetDetails(walletId, linkedVpId, options) {
|
|
3246
|
+
return (0, exports.DefaultApiFp)(this.configuration).holderLinkedVpGetDetails(walletId, linkedVpId, options).then((request) => request(this.axios, this.basePath));
|
|
3247
|
+
}
|
|
3248
|
+
/**
|
|
3249
|
+
*
|
|
3250
|
+
* @param {string} walletId
|
|
3251
|
+
* @param {*} [options] Override http request option.
|
|
3252
|
+
* @throws {RequiredError}
|
|
3253
|
+
* @memberof DefaultApi
|
|
3254
|
+
*/
|
|
3255
|
+
holderLinkedVpList(walletId, options) {
|
|
3256
|
+
return (0, exports.DefaultApiFp)(this.configuration).holderLinkedVpList(walletId, options).then((request) => request(this.axios, this.basePath));
|
|
3257
|
+
}
|
|
2911
3258
|
/**
|
|
2912
3259
|
* Issue the Verifiable Credential using OIDC4VCI offer acceptance
|
|
2913
3260
|
* @param {string} walletId
|
|
@@ -3069,6 +3416,17 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
3069
3416
|
verifierInitUrlCreate(walletId, verifyInitRequest, options) {
|
|
3070
3417
|
return (0, exports.DefaultApiFp)(this.configuration).verifierInitUrlCreate(walletId, verifyInitRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3071
3418
|
}
|
|
3419
|
+
/**
|
|
3420
|
+
* Fetches linked presentations from DID document and verifies them.
|
|
3421
|
+
* @param {string} walletId
|
|
3422
|
+
* @param {string} did
|
|
3423
|
+
* @param {*} [options] Override http request option.
|
|
3424
|
+
* @throws {RequiredError}
|
|
3425
|
+
* @memberof DefaultApi
|
|
3426
|
+
*/
|
|
3427
|
+
verifierLinkedVpVerify(walletId, did, options) {
|
|
3428
|
+
return (0, exports.DefaultApiFp)(this.configuration).verifierLinkedVpVerify(walletId, did, options).then((request) => request(this.axios, this.basePath));
|
|
3429
|
+
}
|
|
3072
3430
|
/**
|
|
3073
3431
|
* Creates a new wallet for the authenticated client.
|
|
3074
3432
|
* @param {Wallet} [wallet]
|