@triveria/wallet 0.0.321 → 0.0.323
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 +148 -14
- package/api.js +14 -7
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -182,6 +182,18 @@ export interface CredentialIssuerDefinition {
|
|
|
182
182
|
* When true, credential issuance for this issuer requires the wallet to present a valid EUDI Wallet Instance Attestation (WIA, TS3). The issuer verifies the WIA signature, expiry, status and key binding before issuing. Defaults to false (no WIA check).
|
|
183
183
|
*/
|
|
184
184
|
'requiresWalletInstanceAttestation'?: boolean;
|
|
185
|
+
/**
|
|
186
|
+
* When true, the credential request proof must carry a key attestation of the holder key, either as the `key_attestation` header of a `jwt` proof or as an `attestation` proof (OID4VCI 1.0 Appendix D). Defaults to false.
|
|
187
|
+
*/
|
|
188
|
+
'requiresKeyAttestation'?: boolean;
|
|
189
|
+
/**
|
|
190
|
+
* When true, the token request for this credential must carry a DPoP proof (RFC 9449), so the access token is sender-constrained (FAPI 2.0 Security Profile §5.3.2.1). Defaults to false (DPoP optional).
|
|
191
|
+
*/
|
|
192
|
+
'requiresDpop'?: boolean;
|
|
193
|
+
/**
|
|
194
|
+
* When true, a wallet may request this credential without an offer, by an authorization request naming its credential configuration in `authorization_details` or `scope` (OID4VCI 1.0 §5.1). The holder then authorizes as `authorization` requires; with `none` or `oauthNoAuth` anyone may obtain the credential. Defaults to false.
|
|
195
|
+
*/
|
|
196
|
+
'walletInitiated'?: boolean;
|
|
185
197
|
}
|
|
186
198
|
export declare const CredentialIssuerDefinitionCredentialIssuerEnum: {
|
|
187
199
|
readonly CtWalletSame: "CtWalletSame";
|
|
@@ -375,6 +387,9 @@ export interface CredentialVerifierDefinition {
|
|
|
375
387
|
* A custom authorization scope that can be used for this verifier with authorization request
|
|
376
388
|
*/
|
|
377
389
|
'scope'?: string;
|
|
390
|
+
/**
|
|
391
|
+
* Legacy DIF Presentation Exchange query. Removed in OpenID4VP 1.0; prefer `dcqlQuery`.
|
|
392
|
+
*/
|
|
378
393
|
'presentationDefinition'?: PresentationDefinition;
|
|
379
394
|
'dcqlQuery'?: DCQLQuery;
|
|
380
395
|
'keyIdentifier'?: SigningKeyIdentifier;
|
|
@@ -382,6 +397,14 @@ export interface CredentialVerifierDefinition {
|
|
|
382
397
|
* List of credential properties that should be verified.
|
|
383
398
|
*/
|
|
384
399
|
'toVerify'?: Set<CredentialPropertyToVerify>;
|
|
400
|
+
/**
|
|
401
|
+
* Request an encrypted `vp_token` response (OpenID4VP 1.0 `direct_post.jwt`). Disable it only for wallets that cannot encrypt responses.
|
|
402
|
+
*/
|
|
403
|
+
'responseEncryption'?: boolean;
|
|
404
|
+
/**
|
|
405
|
+
* URI the holder\'s user agent is redirected to after presenting (OpenID4VP 1.0 §8.2), with a `response_code` query parameter. Overridden by `redirectUri` of the verification request. When neither is set, the holder is redirected to a wallet page showing the verification result.
|
|
406
|
+
*/
|
|
407
|
+
'redirectUri'?: string;
|
|
385
408
|
}
|
|
386
409
|
/**
|
|
387
410
|
* The wrapper contains Verifiable Credential in both, the Credential and as Base64 signed format alongside with metadata.
|
|
@@ -405,15 +428,42 @@ export interface CtWalletSameIssuerConfig {
|
|
|
405
428
|
'defaultCredentialSubject'?: object;
|
|
406
429
|
}
|
|
407
430
|
/**
|
|
408
|
-
*
|
|
431
|
+
* Credential Set Query (OpenID4VP 1.0 §6.2).
|
|
432
|
+
*/
|
|
433
|
+
export interface DCQLCredentialSetQuery {
|
|
434
|
+
/**
|
|
435
|
+
* Each option is a list of credential query ids that together satisfy the set.
|
|
436
|
+
*/
|
|
437
|
+
'options': Array<Array<string>>;
|
|
438
|
+
/**
|
|
439
|
+
* Whether the set must be satisfied. Defaults to `true`.
|
|
440
|
+
*/
|
|
441
|
+
'required'?: boolean;
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* Digital Credentials Query Language query (OpenID4VP 1.0 §6). Unknown properties are ignored.
|
|
409
445
|
*/
|
|
410
446
|
export interface DCQLQuery {
|
|
411
447
|
'credentials': Array<DCQLQueryCredentials>;
|
|
448
|
+
/**
|
|
449
|
+
* Constraints on which combinations of the requested credentials to return.
|
|
450
|
+
*/
|
|
451
|
+
'credential_sets'?: Array<DCQLCredentialSetQuery>;
|
|
412
452
|
}
|
|
413
453
|
export interface DCQLQueryClaim {
|
|
414
|
-
|
|
454
|
+
/**
|
|
455
|
+
* Claim identifier, required when the credential query has `claim_sets`.
|
|
456
|
+
*/
|
|
457
|
+
'id'?: string;
|
|
458
|
+
/**
|
|
459
|
+
* Claims path pointer (OpenID4VP 1.0 §7); `null` selects all array elements.
|
|
460
|
+
*/
|
|
415
461
|
'path': Array<DCQLQueryClaimPathInner>;
|
|
416
462
|
'values'?: Array<DCQLQueryClaimValuesInner>;
|
|
463
|
+
/**
|
|
464
|
+
* mdoc only, the ISO 18013-5 IntentToRetain flag.
|
|
465
|
+
*/
|
|
466
|
+
'intent_to_retain'?: boolean;
|
|
417
467
|
}
|
|
418
468
|
/**
|
|
419
469
|
* @type DCQLQueryClaimPathInner
|
|
@@ -424,16 +474,35 @@ export type DCQLQueryClaimPathInner = number | string;
|
|
|
424
474
|
*/
|
|
425
475
|
export type DCQLQueryClaimValuesInner = boolean | number | string;
|
|
426
476
|
/**
|
|
427
|
-
*
|
|
477
|
+
* Credential Query (OpenID4VP 1.0 §6.1).
|
|
428
478
|
*/
|
|
429
479
|
export interface DCQLQueryCredentials {
|
|
430
480
|
/**
|
|
431
481
|
* A string identifying the Credential in the response.
|
|
432
482
|
*/
|
|
433
483
|
'id': string;
|
|
484
|
+
/**
|
|
485
|
+
* Credential format identifier, `dc+sd-jwt`, `mso_mdoc` or `jwt_vc_json`.
|
|
486
|
+
*/
|
|
434
487
|
'format': string;
|
|
488
|
+
/**
|
|
489
|
+
* Whether multiple credentials may be returned for this query. Defaults to `false`.
|
|
490
|
+
*/
|
|
491
|
+
'multiple'?: boolean;
|
|
435
492
|
'meta'?: DCQLQueryMeta;
|
|
493
|
+
/**
|
|
494
|
+
* Authorities or trust frameworks certifying the issuers the verifier accepts.
|
|
495
|
+
*/
|
|
496
|
+
'trusted_authorities'?: Array<DCQLTrustedAuthority>;
|
|
497
|
+
/**
|
|
498
|
+
* Whether a holder binding proof is required. Defaults to `true`.
|
|
499
|
+
*/
|
|
500
|
+
'require_cryptographic_holder_binding'?: boolean;
|
|
436
501
|
'claims'?: Array<DCQLQueryClaim>;
|
|
502
|
+
/**
|
|
503
|
+
* Acceptable combinations of claim ids, most preferred first.
|
|
504
|
+
*/
|
|
505
|
+
'claim_sets'?: Array<Array<string>>;
|
|
437
506
|
}
|
|
438
507
|
export interface DCQLQueryMeta {
|
|
439
508
|
/**
|
|
@@ -444,6 +513,20 @@ export interface DCQLQueryMeta {
|
|
|
444
513
|
* Value for mDOC type
|
|
445
514
|
*/
|
|
446
515
|
'doctype_value'?: string;
|
|
516
|
+
/**
|
|
517
|
+
* Alternative sets of W3C credential types; a credential must contain every type of one set.
|
|
518
|
+
*/
|
|
519
|
+
'type_values'?: Array<Array<string>>;
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* Trusted Authorities Query (OpenID4VP 1.0 §6.1.1).
|
|
523
|
+
*/
|
|
524
|
+
export interface DCQLTrustedAuthority {
|
|
525
|
+
/**
|
|
526
|
+
* Type of the authority information, e.g. `aki`, `etsi_tl` or `openid_federation`.
|
|
527
|
+
*/
|
|
528
|
+
'type': string;
|
|
529
|
+
'values': Array<string>;
|
|
447
530
|
}
|
|
448
531
|
/**
|
|
449
532
|
* The deferred process status. Can be either in progress, or completed, or error. When the status is completed, the Id property will be set to the value of the resulting object ID.
|
|
@@ -631,6 +714,10 @@ export interface InitAuthOffer {
|
|
|
631
714
|
* ID of the issuer used to issue the credential.
|
|
632
715
|
*/
|
|
633
716
|
'issuerId': string;
|
|
717
|
+
/**
|
|
718
|
+
* IDs of further issuers whose credentials are offered together with the one of issuerId, one credential configuration each (OID4VCI 1.0 §4.1.1). The issuer of issuerId decides how the holder authorizes. Not supported together with wmpEntityId or issuanceQueueItemId.
|
|
719
|
+
*/
|
|
720
|
+
'issuerIds'?: Array<string>;
|
|
634
721
|
'offerEndpoint'?: string;
|
|
635
722
|
'deferred'?: boolean;
|
|
636
723
|
/**
|
|
@@ -658,6 +745,10 @@ export interface InitPreAuthOffer {
|
|
|
658
745
|
* ID of the issuer used to issue the credential.
|
|
659
746
|
*/
|
|
660
747
|
'issuerId': string;
|
|
748
|
+
/**
|
|
749
|
+
* IDs of further issuers whose credentials are offered together with the one of issuerId, one credential configuration each (OID4VCI 1.0 §4.1.1). The issuer of issuerId decides how the holder authorizes. Not supported together with wmpEntityId.
|
|
750
|
+
*/
|
|
751
|
+
'issuerIds'?: Array<string>;
|
|
661
752
|
'offerEndpoint'?: string;
|
|
662
753
|
'deferred'?: boolean;
|
|
663
754
|
/**
|
|
@@ -691,6 +782,9 @@ export interface InteractionAuthorizationRequirements {
|
|
|
691
782
|
* URL where custom user authentication for issuance shall be performed. Present when `requirementType` is `custom`.
|
|
692
783
|
*/
|
|
693
784
|
'authnUrl'?: string;
|
|
785
|
+
/**
|
|
786
|
+
* Legacy DIF Presentation Exchange query, set only when the verifier sent no `dcql_query`.
|
|
787
|
+
*/
|
|
694
788
|
'presentationDefinition'?: PresentationDefinition;
|
|
695
789
|
'dcqlQuery'?: DCQLQuery;
|
|
696
790
|
/**
|
|
@@ -708,6 +802,10 @@ export interface InteractionAuthorizationRequirements {
|
|
|
708
802
|
* True when the requested presentation was already auto-accepted and sent using credentials with their auto-accept flag enabled. `interactionId` does not refer to a pending interaction in this case, and no further consent call is needed or possible for it.
|
|
709
803
|
*/
|
|
710
804
|
'autoAccepted'?: boolean;
|
|
805
|
+
/**
|
|
806
|
+
* Transaction data the holder authorizes by presenting (OpenID4VP 1.0 §5.1).
|
|
807
|
+
*/
|
|
808
|
+
'transactionData'?: Array<TransactionData>;
|
|
711
809
|
}
|
|
712
810
|
export declare const InteractionAuthorizationRequirementsRequirementTypeEnum: {
|
|
713
811
|
readonly None: "none";
|
|
@@ -809,7 +907,7 @@ export interface OfferReceivedNotification {
|
|
|
809
907
|
'credentialId'?: string;
|
|
810
908
|
}
|
|
811
909
|
/**
|
|
812
|
-
*
|
|
910
|
+
* Deprecated, the value is ignored. Only OIDC4VCI 1.0 and OIDC4VP 1.0 are supported; the wallet always reports Draft15 (OIDC4VCI 1.0) and Draft23 (OIDC4VP 1.0). Draft11 and Draft16 are accepted for backward compatibility only.
|
|
813
911
|
*/
|
|
814
912
|
export interface OidcRevision {
|
|
815
913
|
'oidc4vci': OidcRevisionOidc4vciEnum;
|
|
@@ -924,6 +1022,15 @@ export interface PresentationRequest {
|
|
|
924
1022
|
*/
|
|
925
1023
|
'verifierScope'?: string;
|
|
926
1024
|
}
|
|
1025
|
+
/**
|
|
1026
|
+
* Result of an authorization response sent to a verifier.
|
|
1027
|
+
*/
|
|
1028
|
+
export interface PresentationResponse {
|
|
1029
|
+
/**
|
|
1030
|
+
* URI the verifier asked the holder\'s user agent to be redirected to (OpenID4VP 1.0 §8.2). When present, the caller MUST redirect the user agent to it.
|
|
1031
|
+
*/
|
|
1032
|
+
'redirectUri'?: string;
|
|
1033
|
+
}
|
|
927
1034
|
/**
|
|
928
1035
|
* Info needed to revoke legal entity\'s DID
|
|
929
1036
|
*/
|
|
@@ -956,6 +1063,14 @@ export declare const SystemImpactStatusEnum: {
|
|
|
956
1063
|
readonly Critical: "critical";
|
|
957
1064
|
};
|
|
958
1065
|
export type SystemImpactStatusEnum = typeof SystemImpactStatusEnum[keyof typeof SystemImpactStatusEnum];
|
|
1066
|
+
/**
|
|
1067
|
+
* A transaction_data object (OpenID4VP 1.0 §5.1). Type-specific fields are kept as given.
|
|
1068
|
+
*/
|
|
1069
|
+
export interface TransactionData {
|
|
1070
|
+
[key: string]: any;
|
|
1071
|
+
'type': string;
|
|
1072
|
+
'credential_ids': Array<string>;
|
|
1073
|
+
}
|
|
959
1074
|
/**
|
|
960
1075
|
* 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)
|
|
961
1076
|
*/
|
|
@@ -1081,6 +1196,14 @@ export interface VerifyInitRequest {
|
|
|
1081
1196
|
* List of custom presentation definition/DCQL query fragments to be applied to the presentation definition/DCQL query in the verifier\'s configuration
|
|
1082
1197
|
*/
|
|
1083
1198
|
'customQueries'?: Array<VerifyQueryFragment>;
|
|
1199
|
+
/**
|
|
1200
|
+
* Transaction data the holder authorizes with the presentation (OpenID4VP 1.0 §5.1). Requires a verifier with a DCQL query; each entry\'s `credential_ids` must reference its credential query ids.
|
|
1201
|
+
*/
|
|
1202
|
+
'transactionData'?: Array<TransactionData>;
|
|
1203
|
+
/**
|
|
1204
|
+
* URI the holder\'s user agent is redirected to after presenting (OpenID4VP 1.0 §8.2), with a `response_code` query parameter to pass to `WalletVerifiedCredentialsByState`. Overrides the verifier\'s `redirectUri`. Used only when `createUrl` is true.
|
|
1205
|
+
*/
|
|
1206
|
+
'redirectUri'?: string;
|
|
1084
1207
|
}
|
|
1085
1208
|
export interface VerifyInitResponse {
|
|
1086
1209
|
/**
|
|
@@ -1112,6 +1235,10 @@ export interface VpPresentedNotification {
|
|
|
1112
1235
|
* True when the presentation was submitted automatically, without user consent, because every requested credential was configured for auto-presentation.
|
|
1113
1236
|
*/
|
|
1114
1237
|
'autoAccepted'?: boolean;
|
|
1238
|
+
/**
|
|
1239
|
+
* URI the verifier asked the holder\'s user agent to be redirected to after the presentation (OpenID4VP 1.0 §8.2).
|
|
1240
|
+
*/
|
|
1241
|
+
'redirectUri'?: string;
|
|
1115
1242
|
}
|
|
1116
1243
|
export interface VpVerifiedNotification {
|
|
1117
1244
|
'verifierId': string;
|
|
@@ -1155,6 +1282,9 @@ export interface WalletConfig {
|
|
|
1155
1282
|
* List of verification definitions that the wallet will be able to use for verification process.
|
|
1156
1283
|
*/
|
|
1157
1284
|
'credentialVerifiers'?: Array<CredentialVerifierDefinition>;
|
|
1285
|
+
/**
|
|
1286
|
+
* @deprecated
|
|
1287
|
+
*/
|
|
1158
1288
|
'oidcRevision'?: OidcRevision;
|
|
1159
1289
|
'trustFramework': TrustFrameworkType;
|
|
1160
1290
|
/**
|
|
@@ -2022,10 +2152,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2022
2152
|
* Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
|
|
2023
2153
|
* @param {string} walletId Wallet ID
|
|
2024
2154
|
* @param {string} state Verifier state
|
|
2155
|
+
* @param {string} [responseCode] The `response_code` the holder\'s user agent was redirected with (OpenID4VP 1.0 §8.2). When given, the result is returned only if it matches the code issued for this session; otherwise 404.
|
|
2025
2156
|
* @param {*} [options] Override http request option.
|
|
2026
2157
|
* @throws {RequiredError}
|
|
2027
2158
|
*/
|
|
2028
|
-
walletVerifiedCredentialsByState: (walletId: string, state: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2159
|
+
walletVerifiedCredentialsByState: (walletId: string, state: string, responseCode?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2029
2160
|
/**
|
|
2030
2161
|
* Deletes a specific verified credentials by state
|
|
2031
2162
|
* @param {string} walletId Wallet ID
|
|
@@ -2292,7 +2423,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2292
2423
|
* @param {*} [options] Override http request option.
|
|
2293
2424
|
* @throws {RequiredError}
|
|
2294
2425
|
*/
|
|
2295
|
-
holderCredentialsPresentAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2426
|
+
holderCredentialsPresentAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PresentationResponse>>;
|
|
2296
2427
|
/**
|
|
2297
2428
|
* Responds to an ID token request
|
|
2298
2429
|
* @param {string} walletId
|
|
@@ -2300,7 +2431,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2300
2431
|
* @param {*} [options] Override http request option.
|
|
2301
2432
|
* @throws {RequiredError}
|
|
2302
2433
|
*/
|
|
2303
|
-
holderIdTokenSend(walletId: string, idTokenSendRequest?: IdTokenSendRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2434
|
+
holderIdTokenSend(walletId: string, idTokenSendRequest?: IdTokenSendRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PresentationResponse>>;
|
|
2304
2435
|
/**
|
|
2305
2436
|
* Creates a new public Linked VP of specified credentials and adds it to the wallet\'s DID document
|
|
2306
2437
|
* @param {string} walletId
|
|
@@ -2658,10 +2789,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2658
2789
|
* Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
|
|
2659
2790
|
* @param {string} walletId Wallet ID
|
|
2660
2791
|
* @param {string} state Verifier state
|
|
2792
|
+
* @param {string} [responseCode] The `response_code` the holder\'s user agent was redirected with (OpenID4VP 1.0 §8.2). When given, the result is returned only if it matches the code issued for this session; otherwise 404.
|
|
2661
2793
|
* @param {*} [options] Override http request option.
|
|
2662
2794
|
* @throws {RequiredError}
|
|
2663
2795
|
*/
|
|
2664
|
-
walletVerifiedCredentialsByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifiedWrapper>>;
|
|
2796
|
+
walletVerifiedCredentialsByState(walletId: string, state: string, responseCode?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifiedWrapper>>;
|
|
2665
2797
|
/**
|
|
2666
2798
|
* Deletes a specific verified credentials by state
|
|
2667
2799
|
* @param {string} walletId Wallet ID
|
|
@@ -2928,7 +3060,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2928
3060
|
* @param {*} [options] Override http request option.
|
|
2929
3061
|
* @throws {RequiredError}
|
|
2930
3062
|
*/
|
|
2931
|
-
holderCredentialsPresentAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
3063
|
+
holderCredentialsPresentAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig): AxiosPromise<PresentationResponse>;
|
|
2932
3064
|
/**
|
|
2933
3065
|
* Responds to an ID token request
|
|
2934
3066
|
* @param {string} walletId
|
|
@@ -2936,7 +3068,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2936
3068
|
* @param {*} [options] Override http request option.
|
|
2937
3069
|
* @throws {RequiredError}
|
|
2938
3070
|
*/
|
|
2939
|
-
holderIdTokenSend(walletId: string, idTokenSendRequest?: IdTokenSendRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
3071
|
+
holderIdTokenSend(walletId: string, idTokenSendRequest?: IdTokenSendRequest, options?: RawAxiosRequestConfig): AxiosPromise<PresentationResponse>;
|
|
2940
3072
|
/**
|
|
2941
3073
|
* Creates a new public Linked VP of specified credentials and adds it to the wallet\'s DID document
|
|
2942
3074
|
* @param {string} walletId
|
|
@@ -3294,10 +3426,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3294
3426
|
* Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
|
|
3295
3427
|
* @param {string} walletId Wallet ID
|
|
3296
3428
|
* @param {string} state Verifier state
|
|
3429
|
+
* @param {string} [responseCode] The `response_code` the holder\'s user agent was redirected with (OpenID4VP 1.0 §8.2). When given, the result is returned only if it matches the code issued for this session; otherwise 404.
|
|
3297
3430
|
* @param {*} [options] Override http request option.
|
|
3298
3431
|
* @throws {RequiredError}
|
|
3299
3432
|
*/
|
|
3300
|
-
walletVerifiedCredentialsByState(walletId: string, state: string, options?: RawAxiosRequestConfig): AxiosPromise<VerifiedWrapper>;
|
|
3433
|
+
walletVerifiedCredentialsByState(walletId: string, state: string, responseCode?: string, options?: RawAxiosRequestConfig): AxiosPromise<VerifiedWrapper>;
|
|
3301
3434
|
/**
|
|
3302
3435
|
* Deletes a specific verified credentials by state
|
|
3303
3436
|
* @param {string} walletId Wallet ID
|
|
@@ -3564,7 +3697,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3564
3697
|
* @param {*} [options] Override http request option.
|
|
3565
3698
|
* @throws {RequiredError}
|
|
3566
3699
|
*/
|
|
3567
|
-
holderCredentialsPresentAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
3700
|
+
holderCredentialsPresentAfterConsent(walletId: string, interactionId: string, interactionAuthorizationConsent?: InteractionAuthorizationConsent, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PresentationResponse, any, {}>>;
|
|
3568
3701
|
/**
|
|
3569
3702
|
* Responds to an ID token request
|
|
3570
3703
|
* @param {string} walletId
|
|
@@ -3572,7 +3705,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3572
3705
|
* @param {*} [options] Override http request option.
|
|
3573
3706
|
* @throws {RequiredError}
|
|
3574
3707
|
*/
|
|
3575
|
-
holderIdTokenSend(walletId: string, idTokenSendRequest?: IdTokenSendRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
3708
|
+
holderIdTokenSend(walletId: string, idTokenSendRequest?: IdTokenSendRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PresentationResponse, any, {}>>;
|
|
3576
3709
|
/**
|
|
3577
3710
|
* Creates a new public Linked VP of specified credentials and adds it to the wallet\'s DID document
|
|
3578
3711
|
* @param {string} walletId
|
|
@@ -3930,10 +4063,11 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3930
4063
|
* Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
|
|
3931
4064
|
* @param {string} walletId Wallet ID
|
|
3932
4065
|
* @param {string} state Verifier state
|
|
4066
|
+
* @param {string} [responseCode] The `response_code` the holder\'s user agent was redirected with (OpenID4VP 1.0 §8.2). When given, the result is returned only if it matches the code issued for this session; otherwise 404.
|
|
3933
4067
|
* @param {*} [options] Override http request option.
|
|
3934
4068
|
* @throws {RequiredError}
|
|
3935
4069
|
*/
|
|
3936
|
-
walletVerifiedCredentialsByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VerifiedWrapper, any, {}>>;
|
|
4070
|
+
walletVerifiedCredentialsByState(walletId: string, state: string, responseCode?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VerifiedWrapper, any, {}>>;
|
|
3937
4071
|
/**
|
|
3938
4072
|
* Deletes a specific verified credentials by state
|
|
3939
4073
|
* @param {string} walletId Wallet ID
|
package/api.js
CHANGED
|
@@ -2484,10 +2484,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2484
2484
|
* Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
|
|
2485
2485
|
* @param {string} walletId Wallet ID
|
|
2486
2486
|
* @param {string} state Verifier state
|
|
2487
|
+
* @param {string} [responseCode] The `response_code` the holder\'s user agent was redirected with (OpenID4VP 1.0 §8.2). When given, the result is returned only if it matches the code issued for this session; otherwise 404.
|
|
2487
2488
|
* @param {*} [options] Override http request option.
|
|
2488
2489
|
* @throws {RequiredError}
|
|
2489
2490
|
*/
|
|
2490
|
-
walletVerifiedCredentialsByState: (walletId_1, state_1, ...args_1) => __awaiter(this, [walletId_1, state_1, ...args_1], void 0, function* (walletId, state, options = {}) {
|
|
2491
|
+
walletVerifiedCredentialsByState: (walletId_1, state_1, responseCode_1, ...args_1) => __awaiter(this, [walletId_1, state_1, responseCode_1, ...args_1], void 0, function* (walletId, state, responseCode, options = {}) {
|
|
2491
2492
|
// verify required parameter 'walletId' is not null or undefined
|
|
2492
2493
|
(0, common_1.assertParamExists)('walletVerifiedCredentialsByState', 'walletId', walletId);
|
|
2493
2494
|
// verify required parameter 'state' is not null or undefined
|
|
@@ -2507,6 +2508,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2507
2508
|
// authentication accessToken required
|
|
2508
2509
|
// http bearer authentication required
|
|
2509
2510
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2511
|
+
if (responseCode !== undefined) {
|
|
2512
|
+
localVarQueryParameter['response_code'] = responseCode;
|
|
2513
|
+
}
|
|
2510
2514
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2511
2515
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2512
2516
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -4142,13 +4146,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
4142
4146
|
* Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
|
|
4143
4147
|
* @param {string} walletId Wallet ID
|
|
4144
4148
|
* @param {string} state Verifier state
|
|
4149
|
+
* @param {string} [responseCode] The `response_code` the holder\'s user agent was redirected with (OpenID4VP 1.0 §8.2). When given, the result is returned only if it matches the code issued for this session; otherwise 404.
|
|
4145
4150
|
* @param {*} [options] Override http request option.
|
|
4146
4151
|
* @throws {RequiredError}
|
|
4147
4152
|
*/
|
|
4148
|
-
walletVerifiedCredentialsByState(walletId, state, options) {
|
|
4153
|
+
walletVerifiedCredentialsByState(walletId, state, responseCode, options) {
|
|
4149
4154
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4150
4155
|
var _a, _b, _c;
|
|
4151
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.walletVerifiedCredentialsByState(walletId, state, options);
|
|
4156
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.walletVerifiedCredentialsByState(walletId, state, responseCode, options);
|
|
4152
4157
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4153
4158
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletVerifiedCredentialsByState']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4154
4159
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -5042,11 +5047,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
5042
5047
|
* Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
|
|
5043
5048
|
* @param {string} walletId Wallet ID
|
|
5044
5049
|
* @param {string} state Verifier state
|
|
5050
|
+
* @param {string} [responseCode] The `response_code` the holder\'s user agent was redirected with (OpenID4VP 1.0 §8.2). When given, the result is returned only if it matches the code issued for this session; otherwise 404.
|
|
5045
5051
|
* @param {*} [options] Override http request option.
|
|
5046
5052
|
* @throws {RequiredError}
|
|
5047
5053
|
*/
|
|
5048
|
-
walletVerifiedCredentialsByState(walletId, state, options) {
|
|
5049
|
-
return localVarFp.walletVerifiedCredentialsByState(walletId, state, options).then((request) => request(axios, basePath));
|
|
5054
|
+
walletVerifiedCredentialsByState(walletId, state, responseCode, options) {
|
|
5055
|
+
return localVarFp.walletVerifiedCredentialsByState(walletId, state, responseCode, options).then((request) => request(axios, basePath));
|
|
5050
5056
|
},
|
|
5051
5057
|
/**
|
|
5052
5058
|
* Deletes a specific verified credentials by state
|
|
@@ -5832,11 +5838,12 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5832
5838
|
* Retrieves the result of a credential verification session identified by the verifier state. Called by the verifier after a holder has presented credentials in response to a `VerifierInitUrlCreate` request. Returns 204 if the holder has not yet presented.
|
|
5833
5839
|
* @param {string} walletId Wallet ID
|
|
5834
5840
|
* @param {string} state Verifier state
|
|
5841
|
+
* @param {string} [responseCode] The `response_code` the holder\'s user agent was redirected with (OpenID4VP 1.0 §8.2). When given, the result is returned only if it matches the code issued for this session; otherwise 404.
|
|
5835
5842
|
* @param {*} [options] Override http request option.
|
|
5836
5843
|
* @throws {RequiredError}
|
|
5837
5844
|
*/
|
|
5838
|
-
walletVerifiedCredentialsByState(walletId, state, options) {
|
|
5839
|
-
return (0, exports.DefaultApiFp)(this.configuration).walletVerifiedCredentialsByState(walletId, state, options).then((request) => request(this.axios, this.basePath));
|
|
5845
|
+
walletVerifiedCredentialsByState(walletId, state, responseCode, options) {
|
|
5846
|
+
return (0, exports.DefaultApiFp)(this.configuration).walletVerifiedCredentialsByState(walletId, state, responseCode, options).then((request) => request(this.axios, this.basePath));
|
|
5840
5847
|
}
|
|
5841
5848
|
/**
|
|
5842
5849
|
* Deletes a specific verified credentials by state
|