@sphereon/ssi-sdk.oid4vci-holder 0.34.1-next.3 → 0.34.1-next.322
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +650 -579
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -17
- package/dist/index.d.ts +27 -17
- package/dist/index.js +628 -557
- package/dist/index.js.map +1 -1
- package/package.json +25 -24
- package/src/agent/OID4VCIHolder.ts +109 -54
- package/src/machines/firstPartyMachine.ts +1 -1
- package/src/machines/oid4vciMachine.ts +38 -6
- package/src/mappers/OIDC4VCIBrandingMapper.ts +1 -1
- package/src/services/OID4VCIHolderService.ts +47 -48
- package/src/types/FirstPartyMachine.ts +6 -5
- package/src/types/IOID4VCIHolder.ts +22 -13
package/dist/index.d.cts
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { AuthorizationChallengeCodeResponse, EndpointMetadataResult, CredentialOfferRequestWithBaseUrl, AuthzFlowType, AuthorizationRequestOpts, AuthorizationServerClientOpts, CredentialConfigurationSupported, ExperimentalSubjectIssuance, CredentialResponse, AuthorizationResponse, CredentialsSupportedDisplay, IssuerCredentialSubject, MetadataDisplay, NotificationRequest, Jwt } from '@sphereon/oid4vci-common';
|
|
1
|
+
import { AuthorizationChallengeCodeResponse, EndpointMetadataResult, CredentialOfferRequestWithBaseUrl, AuthzFlowType, AuthorizationRequestOpts, AuthorizationServerClientOpts, CredentialConfigurationSupported, ExperimentalSubjectIssuance, CredentialResponseV1_0_15, CredentialResponse, AuthorizationResponse, CredentialsSupportedDisplay, IssuerCredentialSubject, MetadataDisplay, NotificationRequest, Jwt } from '@sphereon/oid4vci-common';
|
|
2
2
|
import { IIdentifierResolution, ManagedIdentifierMethod, ManagedIdentifierOptsOrResult, ManagedIdentifierResult } from '@sphereon/ssi-sdk-ext.identifier-resolution';
|
|
3
3
|
import { IJwtService } from '@sphereon/ssi-sdk-ext.jwt-service';
|
|
4
4
|
import { IIdentifier, IPluginMethodMap, IAgentContext, ICredentialVerifier, ICredentialIssuer, IDIDManager, IResolver, IKeyManager, TKeyType, VerificationPolicies, TAgent, IAgentPlugin } from '@veramo/core';
|
|
5
|
-
import { OpenID4VCIClientState, OpenID4VCIClient } from '@sphereon/oid4vci-client';
|
|
6
5
|
import { DynamicRegistrationClientMetadata } from '@sphereon/oid4vc-common';
|
|
6
|
+
import { OpenID4VCIClientState, OpenID4VCIClientV1_0_15 } from '@sphereon/oid4vci-client';
|
|
7
7
|
import { SupportedDidMethodEnum, CreateOrGetIdentifierOpts, IdentifierProviderOpts } from '@sphereon/ssi-sdk-ext.did-utils';
|
|
8
8
|
import { IContactManager } from '@sphereon/ssi-sdk.contact-manager';
|
|
9
9
|
import { UniqueDigitalCredential, ICredentialStore } from '@sphereon/ssi-sdk.credential-store';
|
|
10
|
-
import {
|
|
10
|
+
import { ICredentialValidation, SchemaValidation } from '@sphereon/ssi-sdk.credential-validation';
|
|
11
|
+
import { Party, DidAuthConfig, IIssuerLocaleBranding, IBasicIssuerLocaleBranding, IBasicCredentialLocaleBranding, Identity, DigitalCredential, IBasicCredentialClaim } from '@sphereon/ssi-sdk.data-store-types';
|
|
11
12
|
import { IIssuanceBranding } from '@sphereon/ssi-sdk.issuance-branding';
|
|
12
13
|
import { ImDLMdoc } from '@sphereon/ssi-sdk.mdl-mdoc';
|
|
13
14
|
import { ISDJwtPlugin } from '@sphereon/ssi-sdk.sd-jwt';
|
|
14
|
-
import { ICredentialValidation, SchemaValidation } from '@sphereon/ssi-sdk.credential-validation';
|
|
15
15
|
import { IDidAuthSiopOpAuthenticator, CreateConfigResult } from '@sphereon/ssi-sdk.siopv2-oid4vp-op-auth';
|
|
16
16
|
import { IVerifiableCredential, W3CVerifiableCredential, WrappedVerifiableCredential, WrappedVerifiablePresentation, JoseSignatureAlgorithm, JoseSignatureAlgorithmString, HasherSync, SdJwtTypeDisplayMetadata, SdJwtClaimMetadata, OriginalVerifiableCredential } from '@sphereon/ssi-types';
|
|
17
17
|
import { Interpreter, State, StatesConfig, StateMachine, BaseActionObject, ServiceMap, ResolveTypegenMeta, TypegenDisabled } from 'xstate';
|
|
18
|
-
import { RPRegistrationMetadataPayload
|
|
18
|
+
import { RPRegistrationMetadataPayload } from '@sphereon/did-auth-siop';
|
|
19
|
+
import { DcqlQuery } from 'dcql';
|
|
19
20
|
import { LinkHandlerAdapter, DefaultLinkPriorities } from '@sphereon/ssi-sdk.core';
|
|
20
21
|
import { IMachineStatePersistence, SerializableState } from '@sphereon/ssi-sdk.xstate-machine-persistence';
|
|
21
22
|
|
|
@@ -113,7 +114,7 @@ type SiopV2AuthorizationRequestData = {
|
|
|
113
114
|
clientIdScheme?: string;
|
|
114
115
|
clientId?: string;
|
|
115
116
|
entityId?: string;
|
|
116
|
-
|
|
117
|
+
dcqlQuery: DcqlQuery;
|
|
117
118
|
};
|
|
118
119
|
type FirstPartyMachineNavigationArgs = {
|
|
119
120
|
firstPartyMachine: FirstPartyMachineInterpreter;
|
|
@@ -128,6 +129,7 @@ interface IOID4VCIHolder extends IPluginMethodMap {
|
|
|
128
129
|
oid4vciHolderGetMachineInterpreter(args: GetMachineArgs, context: RequiredContext): Promise<OID4VCIMachine>;
|
|
129
130
|
oid4vciHolderStart(args: PrepareStartArgs, context: RequiredContext): Promise<StartResult>;
|
|
130
131
|
oid4vciHolderCreateCredentialsToSelectFrom(args: CreateCredentialsToSelectFromArgs, context: RequiredContext): Promise<Array<CredentialToSelectFromResult>>;
|
|
132
|
+
oid4vciHolderPrepareAuthorizationRequest(args: PrepareAuthorizationRequestArgs, context: RequiredContext): Promise<PrepareAuthorizationResult>;
|
|
131
133
|
oid4vciHolderGetContact(args: GetContactArgs, context: RequiredContext): Promise<Party | undefined>;
|
|
132
134
|
oid4vciHolderGetCredentials(args: GetCredentialsArgs, context: RequiredContext): Promise<Array<MappedCredentialToAccept>>;
|
|
133
135
|
oid4vciHolderGetCredential(args: GetCredentialArgs, context: RequiredContext): Promise<MappedCredentialToAccept>;
|
|
@@ -176,6 +178,7 @@ type GetMachineArgs = {
|
|
|
176
178
|
firstPartyStateNavigationListener?: FirstPartyMachineStateNavigationListener;
|
|
177
179
|
};
|
|
178
180
|
type PrepareStartArgs = Pick<OID4VCIMachineContext, 'requestData' | 'authorizationRequestOpts' | 'didMethodPreferences' | 'issuanceOpt' | 'accessTokenOpts'>;
|
|
181
|
+
type PrepareAuthorizationRequestArgs = Pick<OID4VCIMachineContext, 'openID4VCIClientState' | 'contact'>;
|
|
179
182
|
type CreateCredentialsToSelectFromArgs = Pick<OID4VCIMachineContext, 'credentialsSupported' | 'credentialBranding' | 'selectedCredentials' | 'locale' | 'openID4VCIClientState'>;
|
|
180
183
|
type GetContactArgs = Pick<OID4VCIMachineContext, 'serverMetadata'>;
|
|
181
184
|
type GetCredentialsArgs = Pick<OID4VCIMachineContext, 'verificationCode' | 'openID4VCIClientState' | 'selectedCredentials' | 'didMethodPreferences' | 'issuanceOpt' | 'accessTokenOpts'>;
|
|
@@ -265,6 +268,7 @@ declare enum OID4VCIMachineStates {
|
|
|
265
268
|
selectCredentials = "selectCredentials",
|
|
266
269
|
transitionFromSelectingCredentials = "transitionFromSelectingCredentials",
|
|
267
270
|
verifyPin = "verifyPin",
|
|
271
|
+
prepareAuthorizationRequest = "prepareAuthorizationRequest",
|
|
268
272
|
initiateAuthorizationRequest = "initiateAuthorizationRequest",
|
|
269
273
|
waitForAuthorizationResponse = "waitForAuthorizationResponse",
|
|
270
274
|
getCredentials = "getCredentials",
|
|
@@ -356,6 +360,7 @@ declare enum OID4VCIMachineGuards {
|
|
|
356
360
|
requirePinGuard = "oid4vciRequirePinGuard",
|
|
357
361
|
requireAuthorizationGuard = "oid4vciRequireAuthorizationGuard",
|
|
358
362
|
noAuthorizationGuard = "oid4vciNoAuthorizationGuard",
|
|
363
|
+
hasNonceEndpointGuard = "oid4vciHasNonceEndpointGuard ",
|
|
359
364
|
hasAuthorizationResponse = "oid4vciHasAuthorizationResponse",
|
|
360
365
|
hasNoContactIdentityGuard = "oid4vciHasNoContactIdentityGuard",
|
|
361
366
|
verificationCodeGuard = "oid4vciVerificationCodeGuard",
|
|
@@ -371,6 +376,7 @@ declare enum OID4VCIMachineServices {
|
|
|
371
376
|
getFederationTrust = "getFederationTrust",
|
|
372
377
|
addContactIdentity = "addContactIdentity",
|
|
373
378
|
createCredentialsToSelectFrom = "createCredentialsToSelectFrom",
|
|
379
|
+
prepareAuthorizationRequest = "prepareAuthorizationRequest",
|
|
374
380
|
getIssuerBranding = "getIssuerBranding",
|
|
375
381
|
storeIssuerBranding = "storeIssuerBranding",
|
|
376
382
|
getCredentials = "getCredentials",
|
|
@@ -446,12 +452,14 @@ type OID4VCIMachine = {
|
|
|
446
452
|
interpreter: OID4VCIMachineInterpreter;
|
|
447
453
|
};
|
|
448
454
|
type StartResult = {
|
|
449
|
-
authorizationCodeURL?: string;
|
|
450
455
|
credentialBranding?: Record<string, Array<IBasicCredentialLocaleBranding>>;
|
|
451
456
|
credentialsSupported: Record<string, CredentialConfigurationSupported>;
|
|
452
457
|
serverMetadata: EndpointMetadataResult;
|
|
453
458
|
oid4vciClientState: OpenID4VCIClientState;
|
|
454
459
|
};
|
|
460
|
+
type PrepareAuthorizationResult = {
|
|
461
|
+
authorizationCodeURL?: string;
|
|
462
|
+
};
|
|
455
463
|
type SelectAppLocaleBrandingArgs = {
|
|
456
464
|
locale?: string;
|
|
457
465
|
localeBranding?: Array<IBasicCredentialLocaleBranding | IBasicIssuerLocaleBranding>;
|
|
@@ -482,10 +490,10 @@ type CredentialToAccept = {
|
|
|
482
490
|
id?: string;
|
|
483
491
|
types: string[];
|
|
484
492
|
issuanceOpt: IssuanceOpts;
|
|
485
|
-
credentialResponse: CredentialResponse;
|
|
493
|
+
credentialResponse: CredentialResponseV1_0_15 | CredentialResponse;
|
|
486
494
|
};
|
|
487
495
|
type GetCredentialConfigsSupportedArgs = {
|
|
488
|
-
client:
|
|
496
|
+
client: OpenID4VCIClientV1_0_15;
|
|
489
497
|
vcFormatPreferences: Array<string>;
|
|
490
498
|
format?: Array<string>;
|
|
491
499
|
types?: Array<Array<string>>;
|
|
@@ -496,7 +504,7 @@ type GetCredentialConfigsSupportedArgs = {
|
|
|
496
504
|
* It can potentially return multiple results mainly because of different formats.
|
|
497
505
|
*/
|
|
498
506
|
type GetCredentialConfigsSupportedBySingleTypeOrIdArgs = {
|
|
499
|
-
client:
|
|
507
|
+
client: OpenID4VCIClientV1_0_15;
|
|
500
508
|
vcFormatPreferences: Array<string>;
|
|
501
509
|
format?: string[];
|
|
502
510
|
types?: string[];
|
|
@@ -525,7 +533,7 @@ type GetDefaultIssuanceOptsArgs = {
|
|
|
525
533
|
context: RequiredContext;
|
|
526
534
|
};
|
|
527
535
|
type DefaultIssuanceOpts = {
|
|
528
|
-
client:
|
|
536
|
+
client: OpenID4VCIClientV1_0_15;
|
|
529
537
|
};
|
|
530
538
|
type GetIdentifierArgs = {
|
|
531
539
|
issuanceOpt: IssuanceOpts;
|
|
@@ -555,7 +563,7 @@ type CreateIdentifierCreateOpts = {
|
|
|
555
563
|
options?: IdentifierProviderOpts;
|
|
556
564
|
};
|
|
557
565
|
type GetIssuanceOptsArgs = {
|
|
558
|
-
client:
|
|
566
|
+
client: OpenID4VCIClientV1_0_15;
|
|
559
567
|
credentialsSupported: Record<string, CredentialConfigurationSupported>;
|
|
560
568
|
serverMetadata: EndpointMetadataResult;
|
|
561
569
|
context: RequiredContext;
|
|
@@ -566,19 +574,19 @@ type GetIssuanceOptsArgs = {
|
|
|
566
574
|
};
|
|
567
575
|
type GetIssuanceDidMethodArgs = {
|
|
568
576
|
credentialSupported: CredentialConfigurationSupported;
|
|
569
|
-
client:
|
|
577
|
+
client: OpenID4VCIClientV1_0_15;
|
|
570
578
|
didMethodPreferences: Array<SupportedDidMethodEnum>;
|
|
571
579
|
};
|
|
572
580
|
type GetIssuanceCryptoSuiteArgs = {
|
|
573
581
|
credentialSupported: CredentialConfigurationSupported;
|
|
574
|
-
client:
|
|
582
|
+
client: OpenID4VCIClientV1_0_15;
|
|
575
583
|
jwtCryptographicSuitePreferences: Array<JoseSignatureAlgorithm | JoseSignatureAlgorithmString>;
|
|
576
584
|
jsonldCryptographicSuitePreferences: Array<string>;
|
|
577
585
|
};
|
|
578
586
|
type GetCredentialArgs = {
|
|
579
587
|
pin?: string;
|
|
580
588
|
issuanceOpt: IssuanceOpts;
|
|
581
|
-
client:
|
|
589
|
+
client: OpenID4VCIClientV1_0_15;
|
|
582
590
|
accessTokenOpts?: AccessTokenOpts;
|
|
583
591
|
};
|
|
584
592
|
type AccessTokenOpts = {
|
|
@@ -667,7 +675,7 @@ type RequiredContext = IAgentContext<IIssuanceBranding & IContactManager & ICred
|
|
|
667
675
|
* {@inheritDoc IOID4VCIHolder}
|
|
668
676
|
*/
|
|
669
677
|
declare const oid4vciHolderContextMethods: Array<string>;
|
|
670
|
-
declare function signCallback(identifier: ManagedIdentifierOptsOrResult, context: IAgentContext<IKeyManager & IDIDManager & IResolver & IIdentifierResolution & IJwtService>, nonce?: string): (jwt: Jwt, kid?: string) => Promise<string>;
|
|
678
|
+
declare function signCallback(identifier: ManagedIdentifierOptsOrResult, context: IAgentContext<IKeyManager & IDIDManager & IResolver & IIdentifierResolution & IJwtService>, nonce?: string): (jwt: Jwt, kid?: string, noIssPayloadUpdate?: boolean) => Promise<string>;
|
|
671
679
|
declare class OID4VCIHolder implements IAgentPlugin {
|
|
672
680
|
private readonly hasher?;
|
|
673
681
|
readonly eventTypes: Array<OID4VCIHolderEvent>;
|
|
@@ -697,6 +705,7 @@ declare class OID4VCIHolder implements IAgentPlugin {
|
|
|
697
705
|
* @private
|
|
698
706
|
*/
|
|
699
707
|
private oid4vciHolderStart;
|
|
708
|
+
private oid4vciHolderPrepareAuthorizationRequest;
|
|
700
709
|
private oid4vciHolderCreateCredentialsToSelectFrom;
|
|
701
710
|
private oid4vciHolderGetContact;
|
|
702
711
|
private oid4vciHolderGetCredentials;
|
|
@@ -733,6 +742,7 @@ declare const getCredentialConfigsBasedOnFormatPref: (args: GetPreferredCredenti
|
|
|
733
742
|
declare const selectCredentialLocaleBranding: (args: SelectAppLocaleBrandingArgs) => Promise<IBasicCredentialLocaleBranding | IBasicIssuerLocaleBranding | undefined>;
|
|
734
743
|
declare const verifyCredentialToAccept: (args: VerifyCredentialToAcceptArgs) => Promise<VerificationResult>;
|
|
735
744
|
declare const mapCredentialToAccept: (args: MapCredentialToAcceptArgs) => Promise<MappedCredentialToAccept>;
|
|
745
|
+
declare const extractCredentialFromResponse: (credentialResponse: CredentialResponse) => OriginalVerifiableCredential;
|
|
736
746
|
declare const getIdentifierOpts: (args: GetIdentifierArgs) => Promise<ManagedIdentifierResult>;
|
|
737
747
|
declare const getCredentialConfigsSupportedMerged: (args: GetCredentialConfigsSupportedArgs) => Promise<Record<string, CredentialConfigurationSupported>>;
|
|
738
748
|
declare const getCredentialConfigsSupported: (args: GetCredentialConfigsSupportedArgs) => Promise<Array<Record<string, CredentialConfigurationSupported>>>;
|
|
@@ -783,4 +793,4 @@ declare class OID4VCIHolderLinkHandler extends LinkHandlerAdapter {
|
|
|
783
793
|
}): Promise<void>;
|
|
784
794
|
}
|
|
785
795
|
|
|
786
|
-
export { type AccessTokenOpts, type AddContactIdentityArgs, type AssertValidCredentialsArgs, type Attribute, type AuthorizationResponseEvent, type ContactAliasEvent, type ContactConsentEvent, type CreateConfigArgs, type CreateContactEvent, type CreateCredentialsToSelectFromArgs, type CreateFirstPartyMachineOpts, type CreateIdentifierArgs, type CreateIdentifierCreateOpts, type CreateIdentifierOpts, type CreateOID4VCIMachineOpts, type CredentialToAccept, type CredentialToSelectFromResult, type CredentialVerificationError, type DeclineEvent, type DefaultIssuanceOpts, type DidAgents, type DynamicRegistrationClientMetadataDisplay, type ErrorDetails, type FirstPartyDeclineEvent, type FirstPartyMachineContext, type FirstPartyMachineEventTypes, FirstPartyMachineEvents, type FirstPartyMachineInterpreter, type FirstPartyMachineNavigationArgs, type FirstPartyMachineServiceDefinitions, FirstPartyMachineServices, type FirstPartyMachineState, type FirstPartyMachineStateNavigationListener, FirstPartyMachineStateTypes, type FirstPartyMachineStates, type FirstPartyMachineStatesConfig, type FirstPartyNextEvent, type FirstPartyPreviousEvent, type FirstPartySelectCredentialsEvent, type FirstPartyStateMachine, type GetAuthenticationKeyArgs, type GetBasicIssuerLocaleBrandingArgs, type GetContactArgs, type GetCredentialArgs, type GetCredentialBrandingArgs, type GetCredentialConfigsSupportedArgs, type GetCredentialConfigsSupportedBySingleTypeOrIdArgs, type GetCredentialsArgs, type GetDefaultIssuanceOptsArgs, type GetFederationTrustArgs, type GetIdentifierArgs, type GetIssuanceCryptoSuiteArgs, type GetIssuanceDidMethodArgs, type GetIssuanceOptsArgs, type GetIssuerBrandingArgs, type GetIssuerMetadataArgs, type GetMachineArgs, type GetOrCreatePrimaryIdentifierArgs, type GetPreferredCredentialFormatsArgs, type GetSiopRequestArgs, type IOID4VCIHolder, IdentifierAliasEnum, type InstanceFirstPartyMachineOpts, type InvokeAuthorizationRequestEvent, type IssuanceOpts, type IssuerLocaleBrandingFromArgs, type IssuerType, type MapCredentialToAcceptArgs, type MappedCredentialToAccept, type NextEvent, OID4VCICallbackStateListener, type OID4VCIContext, OID4VCIHolder, OID4VCIHolderEvent, OID4VCIHolderLinkHandler, type OID4VCIHolderOptions, type OID4VCIMachine, OID4VCIMachineAddContactStates, type OID4VCIMachineContext, type OID4VCIMachineEventTypes, OID4VCIMachineEvents, OID4VCIMachineGuards, type OID4VCIMachineInstanceOpts, type OID4VCIMachineInterpreter, type OID4VCIMachineNavigationArgs, type OID4VCIMachineServiceDefinitions, OID4VCIMachineServices, type OID4VCIMachineState, type OID4VCIMachineStateNavigationListener, OID4VCIMachineStates, OID4VCIMachineVerifyPinStates, type OID4VCIProviderProps, type OID4VCIStateMachine, type Oid4vciCombineDisplayLocalesFromArgs, type Oid4vciCredentialDisplayLocalesFromArgs, type Oid4vciCredentialLocaleBrandingFromArgs, type Oid4vciGetCredentialBrandingFromArgs, type Oid4vciIssuerCredentialSubjectLocalesFromArgs, type OnContactIdentityCreatedArgs, type OnCredentialStoredArgs, type OnIdentifierCreatedArgs, type PrepareStartArgs, type PreviousEvent, type RequestData, RequestType, type RequiredContext, type SdJwtCombineDisplayLocalesFromArgs, type SdJwtCredentialClaimLocalesFromArgs, type SdJwtCredentialDisplayLocalesFromArgs, type SdJwtCredentialLocaleBrandingFromArgs, type SdJwtGetCredentialBrandingFromArgs, type SelectAppLocaleBrandingArgs, type SelectCredentialsEvent, type SendAuthorizationChallengeRequestArgs, type SendAuthorizationResponseArgs, type SendNotificationArgs, type SetAuthorizationCodeURLEvent, type SiopV2AuthorizationRequestData, type StartFirstPartApplicationMachine, type StartResult, type StoreCredentialBrandingArgs, type StoreCredentialsArgs, type StoreIssuerBrandingArgs, SupportedLanguage, type VerificationCodeEvent, type VerificationResult, type VerificationSubResult, type VerifyCredentialArgs, type VerifyCredentialToAcceptArgs, type VerifyEBSICredentialIssuerArgs, type VerifyEBSICredentialIssuerResult, type VerifyMdocArgs, type VerifySDJWTCredentialArgs, createConfig, getBasicIssuerLocaleBranding, getCredentialBranding, getCredentialConfigsBasedOnFormatPref, getCredentialConfigsSupported, getCredentialConfigsSupportedBySingleTypeOrId, getCredentialConfigsSupportedMerged, getIdentifierOpts, getIssuanceCryptoSuite, getIssuanceMethod, getIssuanceOpts, getSiopRequest, issuerLocaleBrandingFrom, mapCredentialToAccept, oid4vciCombineDisplayLocalesFrom, oid4vciCredentialDisplayLocalesFrom, oid4vciCredentialLocaleBrandingFrom, oid4vciGetCredentialBrandingFrom, oid4vciHolderContextMethods, oid4vciIssuerCredentialSubjectLocalesFrom, sdJwtCombineDisplayLocalesFrom, sdJwtCredentialClaimLocalesFrom, sdJwtCredentialDisplayLocalesFrom, sdJwtCredentialLocaleBrandingFrom, sdJwtGetCredentialBrandingFrom, selectCredentialLocaleBranding, sendAuthorizationChallengeRequest, sendAuthorizationResponse, signCallback, startFirstPartApplicationMachine, verifyCredentialToAccept };
|
|
796
|
+
export { type AccessTokenOpts, type AddContactIdentityArgs, type AssertValidCredentialsArgs, type Attribute, type AuthorizationResponseEvent, type ContactAliasEvent, type ContactConsentEvent, type CreateConfigArgs, type CreateContactEvent, type CreateCredentialsToSelectFromArgs, type CreateFirstPartyMachineOpts, type CreateIdentifierArgs, type CreateIdentifierCreateOpts, type CreateIdentifierOpts, type CreateOID4VCIMachineOpts, type CredentialToAccept, type CredentialToSelectFromResult, type CredentialVerificationError, type DeclineEvent, type DefaultIssuanceOpts, type DidAgents, type DynamicRegistrationClientMetadataDisplay, type ErrorDetails, type FirstPartyDeclineEvent, type FirstPartyMachineContext, type FirstPartyMachineEventTypes, FirstPartyMachineEvents, type FirstPartyMachineInterpreter, type FirstPartyMachineNavigationArgs, type FirstPartyMachineServiceDefinitions, FirstPartyMachineServices, type FirstPartyMachineState, type FirstPartyMachineStateNavigationListener, FirstPartyMachineStateTypes, type FirstPartyMachineStates, type FirstPartyMachineStatesConfig, type FirstPartyNextEvent, type FirstPartyPreviousEvent, type FirstPartySelectCredentialsEvent, type FirstPartyStateMachine, type GetAuthenticationKeyArgs, type GetBasicIssuerLocaleBrandingArgs, type GetContactArgs, type GetCredentialArgs, type GetCredentialBrandingArgs, type GetCredentialConfigsSupportedArgs, type GetCredentialConfigsSupportedBySingleTypeOrIdArgs, type GetCredentialsArgs, type GetDefaultIssuanceOptsArgs, type GetFederationTrustArgs, type GetIdentifierArgs, type GetIssuanceCryptoSuiteArgs, type GetIssuanceDidMethodArgs, type GetIssuanceOptsArgs, type GetIssuerBrandingArgs, type GetIssuerMetadataArgs, type GetMachineArgs, type GetOrCreatePrimaryIdentifierArgs, type GetPreferredCredentialFormatsArgs, type GetSiopRequestArgs, type IOID4VCIHolder, IdentifierAliasEnum, type InstanceFirstPartyMachineOpts, type InvokeAuthorizationRequestEvent, type IssuanceOpts, type IssuerLocaleBrandingFromArgs, type IssuerType, type MapCredentialToAcceptArgs, type MappedCredentialToAccept, type NextEvent, OID4VCICallbackStateListener, type OID4VCIContext, OID4VCIHolder, OID4VCIHolderEvent, OID4VCIHolderLinkHandler, type OID4VCIHolderOptions, type OID4VCIMachine, OID4VCIMachineAddContactStates, type OID4VCIMachineContext, type OID4VCIMachineEventTypes, OID4VCIMachineEvents, OID4VCIMachineGuards, type OID4VCIMachineInstanceOpts, type OID4VCIMachineInterpreter, type OID4VCIMachineNavigationArgs, type OID4VCIMachineServiceDefinitions, OID4VCIMachineServices, type OID4VCIMachineState, type OID4VCIMachineStateNavigationListener, OID4VCIMachineStates, OID4VCIMachineVerifyPinStates, type OID4VCIProviderProps, type OID4VCIStateMachine, type Oid4vciCombineDisplayLocalesFromArgs, type Oid4vciCredentialDisplayLocalesFromArgs, type Oid4vciCredentialLocaleBrandingFromArgs, type Oid4vciGetCredentialBrandingFromArgs, type Oid4vciIssuerCredentialSubjectLocalesFromArgs, type OnContactIdentityCreatedArgs, type OnCredentialStoredArgs, type OnIdentifierCreatedArgs, type PrepareAuthorizationRequestArgs, type PrepareAuthorizationResult, type PrepareStartArgs, type PreviousEvent, type RequestData, RequestType, type RequiredContext, type SdJwtCombineDisplayLocalesFromArgs, type SdJwtCredentialClaimLocalesFromArgs, type SdJwtCredentialDisplayLocalesFromArgs, type SdJwtCredentialLocaleBrandingFromArgs, type SdJwtGetCredentialBrandingFromArgs, type SelectAppLocaleBrandingArgs, type SelectCredentialsEvent, type SendAuthorizationChallengeRequestArgs, type SendAuthorizationResponseArgs, type SendNotificationArgs, type SetAuthorizationCodeURLEvent, type SiopV2AuthorizationRequestData, type StartFirstPartApplicationMachine, type StartResult, type StoreCredentialBrandingArgs, type StoreCredentialsArgs, type StoreIssuerBrandingArgs, SupportedLanguage, type VerificationCodeEvent, type VerificationResult, type VerificationSubResult, type VerifyCredentialArgs, type VerifyCredentialToAcceptArgs, type VerifyEBSICredentialIssuerArgs, type VerifyEBSICredentialIssuerResult, type VerifyMdocArgs, type VerifySDJWTCredentialArgs, createConfig, extractCredentialFromResponse, getBasicIssuerLocaleBranding, getCredentialBranding, getCredentialConfigsBasedOnFormatPref, getCredentialConfigsSupported, getCredentialConfigsSupportedBySingleTypeOrId, getCredentialConfigsSupportedMerged, getIdentifierOpts, getIssuanceCryptoSuite, getIssuanceMethod, getIssuanceOpts, getSiopRequest, issuerLocaleBrandingFrom, mapCredentialToAccept, oid4vciCombineDisplayLocalesFrom, oid4vciCredentialDisplayLocalesFrom, oid4vciCredentialLocaleBrandingFrom, oid4vciGetCredentialBrandingFrom, oid4vciHolderContextMethods, oid4vciIssuerCredentialSubjectLocalesFrom, sdJwtCombineDisplayLocalesFrom, sdJwtCredentialClaimLocalesFrom, sdJwtCredentialDisplayLocalesFrom, sdJwtCredentialLocaleBrandingFrom, sdJwtGetCredentialBrandingFrom, selectCredentialLocaleBranding, sendAuthorizationChallengeRequest, sendAuthorizationResponse, signCallback, startFirstPartApplicationMachine, verifyCredentialToAccept };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { AuthorizationChallengeCodeResponse, EndpointMetadataResult, CredentialOfferRequestWithBaseUrl, AuthzFlowType, AuthorizationRequestOpts, AuthorizationServerClientOpts, CredentialConfigurationSupported, ExperimentalSubjectIssuance, CredentialResponse, AuthorizationResponse, CredentialsSupportedDisplay, IssuerCredentialSubject, MetadataDisplay, NotificationRequest, Jwt } from '@sphereon/oid4vci-common';
|
|
1
|
+
import { AuthorizationChallengeCodeResponse, EndpointMetadataResult, CredentialOfferRequestWithBaseUrl, AuthzFlowType, AuthorizationRequestOpts, AuthorizationServerClientOpts, CredentialConfigurationSupported, ExperimentalSubjectIssuance, CredentialResponseV1_0_15, CredentialResponse, AuthorizationResponse, CredentialsSupportedDisplay, IssuerCredentialSubject, MetadataDisplay, NotificationRequest, Jwt } from '@sphereon/oid4vci-common';
|
|
2
2
|
import { IIdentifierResolution, ManagedIdentifierMethod, ManagedIdentifierOptsOrResult, ManagedIdentifierResult } from '@sphereon/ssi-sdk-ext.identifier-resolution';
|
|
3
3
|
import { IJwtService } from '@sphereon/ssi-sdk-ext.jwt-service';
|
|
4
4
|
import { IIdentifier, IPluginMethodMap, IAgentContext, ICredentialVerifier, ICredentialIssuer, IDIDManager, IResolver, IKeyManager, TKeyType, VerificationPolicies, TAgent, IAgentPlugin } from '@veramo/core';
|
|
5
|
-
import { OpenID4VCIClientState, OpenID4VCIClient } from '@sphereon/oid4vci-client';
|
|
6
5
|
import { DynamicRegistrationClientMetadata } from '@sphereon/oid4vc-common';
|
|
6
|
+
import { OpenID4VCIClientState, OpenID4VCIClientV1_0_15 } from '@sphereon/oid4vci-client';
|
|
7
7
|
import { SupportedDidMethodEnum, CreateOrGetIdentifierOpts, IdentifierProviderOpts } from '@sphereon/ssi-sdk-ext.did-utils';
|
|
8
8
|
import { IContactManager } from '@sphereon/ssi-sdk.contact-manager';
|
|
9
9
|
import { UniqueDigitalCredential, ICredentialStore } from '@sphereon/ssi-sdk.credential-store';
|
|
10
|
-
import {
|
|
10
|
+
import { ICredentialValidation, SchemaValidation } from '@sphereon/ssi-sdk.credential-validation';
|
|
11
|
+
import { Party, DidAuthConfig, IIssuerLocaleBranding, IBasicIssuerLocaleBranding, IBasicCredentialLocaleBranding, Identity, DigitalCredential, IBasicCredentialClaim } from '@sphereon/ssi-sdk.data-store-types';
|
|
11
12
|
import { IIssuanceBranding } from '@sphereon/ssi-sdk.issuance-branding';
|
|
12
13
|
import { ImDLMdoc } from '@sphereon/ssi-sdk.mdl-mdoc';
|
|
13
14
|
import { ISDJwtPlugin } from '@sphereon/ssi-sdk.sd-jwt';
|
|
14
|
-
import { ICredentialValidation, SchemaValidation } from '@sphereon/ssi-sdk.credential-validation';
|
|
15
15
|
import { IDidAuthSiopOpAuthenticator, CreateConfigResult } from '@sphereon/ssi-sdk.siopv2-oid4vp-op-auth';
|
|
16
16
|
import { IVerifiableCredential, W3CVerifiableCredential, WrappedVerifiableCredential, WrappedVerifiablePresentation, JoseSignatureAlgorithm, JoseSignatureAlgorithmString, HasherSync, SdJwtTypeDisplayMetadata, SdJwtClaimMetadata, OriginalVerifiableCredential } from '@sphereon/ssi-types';
|
|
17
17
|
import { Interpreter, State, StatesConfig, StateMachine, BaseActionObject, ServiceMap, ResolveTypegenMeta, TypegenDisabled } from 'xstate';
|
|
18
|
-
import { RPRegistrationMetadataPayload
|
|
18
|
+
import { RPRegistrationMetadataPayload } from '@sphereon/did-auth-siop';
|
|
19
|
+
import { DcqlQuery } from 'dcql';
|
|
19
20
|
import { LinkHandlerAdapter, DefaultLinkPriorities } from '@sphereon/ssi-sdk.core';
|
|
20
21
|
import { IMachineStatePersistence, SerializableState } from '@sphereon/ssi-sdk.xstate-machine-persistence';
|
|
21
22
|
|
|
@@ -113,7 +114,7 @@ type SiopV2AuthorizationRequestData = {
|
|
|
113
114
|
clientIdScheme?: string;
|
|
114
115
|
clientId?: string;
|
|
115
116
|
entityId?: string;
|
|
116
|
-
|
|
117
|
+
dcqlQuery: DcqlQuery;
|
|
117
118
|
};
|
|
118
119
|
type FirstPartyMachineNavigationArgs = {
|
|
119
120
|
firstPartyMachine: FirstPartyMachineInterpreter;
|
|
@@ -128,6 +129,7 @@ interface IOID4VCIHolder extends IPluginMethodMap {
|
|
|
128
129
|
oid4vciHolderGetMachineInterpreter(args: GetMachineArgs, context: RequiredContext): Promise<OID4VCIMachine>;
|
|
129
130
|
oid4vciHolderStart(args: PrepareStartArgs, context: RequiredContext): Promise<StartResult>;
|
|
130
131
|
oid4vciHolderCreateCredentialsToSelectFrom(args: CreateCredentialsToSelectFromArgs, context: RequiredContext): Promise<Array<CredentialToSelectFromResult>>;
|
|
132
|
+
oid4vciHolderPrepareAuthorizationRequest(args: PrepareAuthorizationRequestArgs, context: RequiredContext): Promise<PrepareAuthorizationResult>;
|
|
131
133
|
oid4vciHolderGetContact(args: GetContactArgs, context: RequiredContext): Promise<Party | undefined>;
|
|
132
134
|
oid4vciHolderGetCredentials(args: GetCredentialsArgs, context: RequiredContext): Promise<Array<MappedCredentialToAccept>>;
|
|
133
135
|
oid4vciHolderGetCredential(args: GetCredentialArgs, context: RequiredContext): Promise<MappedCredentialToAccept>;
|
|
@@ -176,6 +178,7 @@ type GetMachineArgs = {
|
|
|
176
178
|
firstPartyStateNavigationListener?: FirstPartyMachineStateNavigationListener;
|
|
177
179
|
};
|
|
178
180
|
type PrepareStartArgs = Pick<OID4VCIMachineContext, 'requestData' | 'authorizationRequestOpts' | 'didMethodPreferences' | 'issuanceOpt' | 'accessTokenOpts'>;
|
|
181
|
+
type PrepareAuthorizationRequestArgs = Pick<OID4VCIMachineContext, 'openID4VCIClientState' | 'contact'>;
|
|
179
182
|
type CreateCredentialsToSelectFromArgs = Pick<OID4VCIMachineContext, 'credentialsSupported' | 'credentialBranding' | 'selectedCredentials' | 'locale' | 'openID4VCIClientState'>;
|
|
180
183
|
type GetContactArgs = Pick<OID4VCIMachineContext, 'serverMetadata'>;
|
|
181
184
|
type GetCredentialsArgs = Pick<OID4VCIMachineContext, 'verificationCode' | 'openID4VCIClientState' | 'selectedCredentials' | 'didMethodPreferences' | 'issuanceOpt' | 'accessTokenOpts'>;
|
|
@@ -265,6 +268,7 @@ declare enum OID4VCIMachineStates {
|
|
|
265
268
|
selectCredentials = "selectCredentials",
|
|
266
269
|
transitionFromSelectingCredentials = "transitionFromSelectingCredentials",
|
|
267
270
|
verifyPin = "verifyPin",
|
|
271
|
+
prepareAuthorizationRequest = "prepareAuthorizationRequest",
|
|
268
272
|
initiateAuthorizationRequest = "initiateAuthorizationRequest",
|
|
269
273
|
waitForAuthorizationResponse = "waitForAuthorizationResponse",
|
|
270
274
|
getCredentials = "getCredentials",
|
|
@@ -356,6 +360,7 @@ declare enum OID4VCIMachineGuards {
|
|
|
356
360
|
requirePinGuard = "oid4vciRequirePinGuard",
|
|
357
361
|
requireAuthorizationGuard = "oid4vciRequireAuthorizationGuard",
|
|
358
362
|
noAuthorizationGuard = "oid4vciNoAuthorizationGuard",
|
|
363
|
+
hasNonceEndpointGuard = "oid4vciHasNonceEndpointGuard ",
|
|
359
364
|
hasAuthorizationResponse = "oid4vciHasAuthorizationResponse",
|
|
360
365
|
hasNoContactIdentityGuard = "oid4vciHasNoContactIdentityGuard",
|
|
361
366
|
verificationCodeGuard = "oid4vciVerificationCodeGuard",
|
|
@@ -371,6 +376,7 @@ declare enum OID4VCIMachineServices {
|
|
|
371
376
|
getFederationTrust = "getFederationTrust",
|
|
372
377
|
addContactIdentity = "addContactIdentity",
|
|
373
378
|
createCredentialsToSelectFrom = "createCredentialsToSelectFrom",
|
|
379
|
+
prepareAuthorizationRequest = "prepareAuthorizationRequest",
|
|
374
380
|
getIssuerBranding = "getIssuerBranding",
|
|
375
381
|
storeIssuerBranding = "storeIssuerBranding",
|
|
376
382
|
getCredentials = "getCredentials",
|
|
@@ -446,12 +452,14 @@ type OID4VCIMachine = {
|
|
|
446
452
|
interpreter: OID4VCIMachineInterpreter;
|
|
447
453
|
};
|
|
448
454
|
type StartResult = {
|
|
449
|
-
authorizationCodeURL?: string;
|
|
450
455
|
credentialBranding?: Record<string, Array<IBasicCredentialLocaleBranding>>;
|
|
451
456
|
credentialsSupported: Record<string, CredentialConfigurationSupported>;
|
|
452
457
|
serverMetadata: EndpointMetadataResult;
|
|
453
458
|
oid4vciClientState: OpenID4VCIClientState;
|
|
454
459
|
};
|
|
460
|
+
type PrepareAuthorizationResult = {
|
|
461
|
+
authorizationCodeURL?: string;
|
|
462
|
+
};
|
|
455
463
|
type SelectAppLocaleBrandingArgs = {
|
|
456
464
|
locale?: string;
|
|
457
465
|
localeBranding?: Array<IBasicCredentialLocaleBranding | IBasicIssuerLocaleBranding>;
|
|
@@ -482,10 +490,10 @@ type CredentialToAccept = {
|
|
|
482
490
|
id?: string;
|
|
483
491
|
types: string[];
|
|
484
492
|
issuanceOpt: IssuanceOpts;
|
|
485
|
-
credentialResponse: CredentialResponse;
|
|
493
|
+
credentialResponse: CredentialResponseV1_0_15 | CredentialResponse;
|
|
486
494
|
};
|
|
487
495
|
type GetCredentialConfigsSupportedArgs = {
|
|
488
|
-
client:
|
|
496
|
+
client: OpenID4VCIClientV1_0_15;
|
|
489
497
|
vcFormatPreferences: Array<string>;
|
|
490
498
|
format?: Array<string>;
|
|
491
499
|
types?: Array<Array<string>>;
|
|
@@ -496,7 +504,7 @@ type GetCredentialConfigsSupportedArgs = {
|
|
|
496
504
|
* It can potentially return multiple results mainly because of different formats.
|
|
497
505
|
*/
|
|
498
506
|
type GetCredentialConfigsSupportedBySingleTypeOrIdArgs = {
|
|
499
|
-
client:
|
|
507
|
+
client: OpenID4VCIClientV1_0_15;
|
|
500
508
|
vcFormatPreferences: Array<string>;
|
|
501
509
|
format?: string[];
|
|
502
510
|
types?: string[];
|
|
@@ -525,7 +533,7 @@ type GetDefaultIssuanceOptsArgs = {
|
|
|
525
533
|
context: RequiredContext;
|
|
526
534
|
};
|
|
527
535
|
type DefaultIssuanceOpts = {
|
|
528
|
-
client:
|
|
536
|
+
client: OpenID4VCIClientV1_0_15;
|
|
529
537
|
};
|
|
530
538
|
type GetIdentifierArgs = {
|
|
531
539
|
issuanceOpt: IssuanceOpts;
|
|
@@ -555,7 +563,7 @@ type CreateIdentifierCreateOpts = {
|
|
|
555
563
|
options?: IdentifierProviderOpts;
|
|
556
564
|
};
|
|
557
565
|
type GetIssuanceOptsArgs = {
|
|
558
|
-
client:
|
|
566
|
+
client: OpenID4VCIClientV1_0_15;
|
|
559
567
|
credentialsSupported: Record<string, CredentialConfigurationSupported>;
|
|
560
568
|
serverMetadata: EndpointMetadataResult;
|
|
561
569
|
context: RequiredContext;
|
|
@@ -566,19 +574,19 @@ type GetIssuanceOptsArgs = {
|
|
|
566
574
|
};
|
|
567
575
|
type GetIssuanceDidMethodArgs = {
|
|
568
576
|
credentialSupported: CredentialConfigurationSupported;
|
|
569
|
-
client:
|
|
577
|
+
client: OpenID4VCIClientV1_0_15;
|
|
570
578
|
didMethodPreferences: Array<SupportedDidMethodEnum>;
|
|
571
579
|
};
|
|
572
580
|
type GetIssuanceCryptoSuiteArgs = {
|
|
573
581
|
credentialSupported: CredentialConfigurationSupported;
|
|
574
|
-
client:
|
|
582
|
+
client: OpenID4VCIClientV1_0_15;
|
|
575
583
|
jwtCryptographicSuitePreferences: Array<JoseSignatureAlgorithm | JoseSignatureAlgorithmString>;
|
|
576
584
|
jsonldCryptographicSuitePreferences: Array<string>;
|
|
577
585
|
};
|
|
578
586
|
type GetCredentialArgs = {
|
|
579
587
|
pin?: string;
|
|
580
588
|
issuanceOpt: IssuanceOpts;
|
|
581
|
-
client:
|
|
589
|
+
client: OpenID4VCIClientV1_0_15;
|
|
582
590
|
accessTokenOpts?: AccessTokenOpts;
|
|
583
591
|
};
|
|
584
592
|
type AccessTokenOpts = {
|
|
@@ -667,7 +675,7 @@ type RequiredContext = IAgentContext<IIssuanceBranding & IContactManager & ICred
|
|
|
667
675
|
* {@inheritDoc IOID4VCIHolder}
|
|
668
676
|
*/
|
|
669
677
|
declare const oid4vciHolderContextMethods: Array<string>;
|
|
670
|
-
declare function signCallback(identifier: ManagedIdentifierOptsOrResult, context: IAgentContext<IKeyManager & IDIDManager & IResolver & IIdentifierResolution & IJwtService>, nonce?: string): (jwt: Jwt, kid?: string) => Promise<string>;
|
|
678
|
+
declare function signCallback(identifier: ManagedIdentifierOptsOrResult, context: IAgentContext<IKeyManager & IDIDManager & IResolver & IIdentifierResolution & IJwtService>, nonce?: string): (jwt: Jwt, kid?: string, noIssPayloadUpdate?: boolean) => Promise<string>;
|
|
671
679
|
declare class OID4VCIHolder implements IAgentPlugin {
|
|
672
680
|
private readonly hasher?;
|
|
673
681
|
readonly eventTypes: Array<OID4VCIHolderEvent>;
|
|
@@ -697,6 +705,7 @@ declare class OID4VCIHolder implements IAgentPlugin {
|
|
|
697
705
|
* @private
|
|
698
706
|
*/
|
|
699
707
|
private oid4vciHolderStart;
|
|
708
|
+
private oid4vciHolderPrepareAuthorizationRequest;
|
|
700
709
|
private oid4vciHolderCreateCredentialsToSelectFrom;
|
|
701
710
|
private oid4vciHolderGetContact;
|
|
702
711
|
private oid4vciHolderGetCredentials;
|
|
@@ -733,6 +742,7 @@ declare const getCredentialConfigsBasedOnFormatPref: (args: GetPreferredCredenti
|
|
|
733
742
|
declare const selectCredentialLocaleBranding: (args: SelectAppLocaleBrandingArgs) => Promise<IBasicCredentialLocaleBranding | IBasicIssuerLocaleBranding | undefined>;
|
|
734
743
|
declare const verifyCredentialToAccept: (args: VerifyCredentialToAcceptArgs) => Promise<VerificationResult>;
|
|
735
744
|
declare const mapCredentialToAccept: (args: MapCredentialToAcceptArgs) => Promise<MappedCredentialToAccept>;
|
|
745
|
+
declare const extractCredentialFromResponse: (credentialResponse: CredentialResponse) => OriginalVerifiableCredential;
|
|
736
746
|
declare const getIdentifierOpts: (args: GetIdentifierArgs) => Promise<ManagedIdentifierResult>;
|
|
737
747
|
declare const getCredentialConfigsSupportedMerged: (args: GetCredentialConfigsSupportedArgs) => Promise<Record<string, CredentialConfigurationSupported>>;
|
|
738
748
|
declare const getCredentialConfigsSupported: (args: GetCredentialConfigsSupportedArgs) => Promise<Array<Record<string, CredentialConfigurationSupported>>>;
|
|
@@ -783,4 +793,4 @@ declare class OID4VCIHolderLinkHandler extends LinkHandlerAdapter {
|
|
|
783
793
|
}): Promise<void>;
|
|
784
794
|
}
|
|
785
795
|
|
|
786
|
-
export { type AccessTokenOpts, type AddContactIdentityArgs, type AssertValidCredentialsArgs, type Attribute, type AuthorizationResponseEvent, type ContactAliasEvent, type ContactConsentEvent, type CreateConfigArgs, type CreateContactEvent, type CreateCredentialsToSelectFromArgs, type CreateFirstPartyMachineOpts, type CreateIdentifierArgs, type CreateIdentifierCreateOpts, type CreateIdentifierOpts, type CreateOID4VCIMachineOpts, type CredentialToAccept, type CredentialToSelectFromResult, type CredentialVerificationError, type DeclineEvent, type DefaultIssuanceOpts, type DidAgents, type DynamicRegistrationClientMetadataDisplay, type ErrorDetails, type FirstPartyDeclineEvent, type FirstPartyMachineContext, type FirstPartyMachineEventTypes, FirstPartyMachineEvents, type FirstPartyMachineInterpreter, type FirstPartyMachineNavigationArgs, type FirstPartyMachineServiceDefinitions, FirstPartyMachineServices, type FirstPartyMachineState, type FirstPartyMachineStateNavigationListener, FirstPartyMachineStateTypes, type FirstPartyMachineStates, type FirstPartyMachineStatesConfig, type FirstPartyNextEvent, type FirstPartyPreviousEvent, type FirstPartySelectCredentialsEvent, type FirstPartyStateMachine, type GetAuthenticationKeyArgs, type GetBasicIssuerLocaleBrandingArgs, type GetContactArgs, type GetCredentialArgs, type GetCredentialBrandingArgs, type GetCredentialConfigsSupportedArgs, type GetCredentialConfigsSupportedBySingleTypeOrIdArgs, type GetCredentialsArgs, type GetDefaultIssuanceOptsArgs, type GetFederationTrustArgs, type GetIdentifierArgs, type GetIssuanceCryptoSuiteArgs, type GetIssuanceDidMethodArgs, type GetIssuanceOptsArgs, type GetIssuerBrandingArgs, type GetIssuerMetadataArgs, type GetMachineArgs, type GetOrCreatePrimaryIdentifierArgs, type GetPreferredCredentialFormatsArgs, type GetSiopRequestArgs, type IOID4VCIHolder, IdentifierAliasEnum, type InstanceFirstPartyMachineOpts, type InvokeAuthorizationRequestEvent, type IssuanceOpts, type IssuerLocaleBrandingFromArgs, type IssuerType, type MapCredentialToAcceptArgs, type MappedCredentialToAccept, type NextEvent, OID4VCICallbackStateListener, type OID4VCIContext, OID4VCIHolder, OID4VCIHolderEvent, OID4VCIHolderLinkHandler, type OID4VCIHolderOptions, type OID4VCIMachine, OID4VCIMachineAddContactStates, type OID4VCIMachineContext, type OID4VCIMachineEventTypes, OID4VCIMachineEvents, OID4VCIMachineGuards, type OID4VCIMachineInstanceOpts, type OID4VCIMachineInterpreter, type OID4VCIMachineNavigationArgs, type OID4VCIMachineServiceDefinitions, OID4VCIMachineServices, type OID4VCIMachineState, type OID4VCIMachineStateNavigationListener, OID4VCIMachineStates, OID4VCIMachineVerifyPinStates, type OID4VCIProviderProps, type OID4VCIStateMachine, type Oid4vciCombineDisplayLocalesFromArgs, type Oid4vciCredentialDisplayLocalesFromArgs, type Oid4vciCredentialLocaleBrandingFromArgs, type Oid4vciGetCredentialBrandingFromArgs, type Oid4vciIssuerCredentialSubjectLocalesFromArgs, type OnContactIdentityCreatedArgs, type OnCredentialStoredArgs, type OnIdentifierCreatedArgs, type PrepareStartArgs, type PreviousEvent, type RequestData, RequestType, type RequiredContext, type SdJwtCombineDisplayLocalesFromArgs, type SdJwtCredentialClaimLocalesFromArgs, type SdJwtCredentialDisplayLocalesFromArgs, type SdJwtCredentialLocaleBrandingFromArgs, type SdJwtGetCredentialBrandingFromArgs, type SelectAppLocaleBrandingArgs, type SelectCredentialsEvent, type SendAuthorizationChallengeRequestArgs, type SendAuthorizationResponseArgs, type SendNotificationArgs, type SetAuthorizationCodeURLEvent, type SiopV2AuthorizationRequestData, type StartFirstPartApplicationMachine, type StartResult, type StoreCredentialBrandingArgs, type StoreCredentialsArgs, type StoreIssuerBrandingArgs, SupportedLanguage, type VerificationCodeEvent, type VerificationResult, type VerificationSubResult, type VerifyCredentialArgs, type VerifyCredentialToAcceptArgs, type VerifyEBSICredentialIssuerArgs, type VerifyEBSICredentialIssuerResult, type VerifyMdocArgs, type VerifySDJWTCredentialArgs, createConfig, getBasicIssuerLocaleBranding, getCredentialBranding, getCredentialConfigsBasedOnFormatPref, getCredentialConfigsSupported, getCredentialConfigsSupportedBySingleTypeOrId, getCredentialConfigsSupportedMerged, getIdentifierOpts, getIssuanceCryptoSuite, getIssuanceMethod, getIssuanceOpts, getSiopRequest, issuerLocaleBrandingFrom, mapCredentialToAccept, oid4vciCombineDisplayLocalesFrom, oid4vciCredentialDisplayLocalesFrom, oid4vciCredentialLocaleBrandingFrom, oid4vciGetCredentialBrandingFrom, oid4vciHolderContextMethods, oid4vciIssuerCredentialSubjectLocalesFrom, sdJwtCombineDisplayLocalesFrom, sdJwtCredentialClaimLocalesFrom, sdJwtCredentialDisplayLocalesFrom, sdJwtCredentialLocaleBrandingFrom, sdJwtGetCredentialBrandingFrom, selectCredentialLocaleBranding, sendAuthorizationChallengeRequest, sendAuthorizationResponse, signCallback, startFirstPartApplicationMachine, verifyCredentialToAccept };
|
|
796
|
+
export { type AccessTokenOpts, type AddContactIdentityArgs, type AssertValidCredentialsArgs, type Attribute, type AuthorizationResponseEvent, type ContactAliasEvent, type ContactConsentEvent, type CreateConfigArgs, type CreateContactEvent, type CreateCredentialsToSelectFromArgs, type CreateFirstPartyMachineOpts, type CreateIdentifierArgs, type CreateIdentifierCreateOpts, type CreateIdentifierOpts, type CreateOID4VCIMachineOpts, type CredentialToAccept, type CredentialToSelectFromResult, type CredentialVerificationError, type DeclineEvent, type DefaultIssuanceOpts, type DidAgents, type DynamicRegistrationClientMetadataDisplay, type ErrorDetails, type FirstPartyDeclineEvent, type FirstPartyMachineContext, type FirstPartyMachineEventTypes, FirstPartyMachineEvents, type FirstPartyMachineInterpreter, type FirstPartyMachineNavigationArgs, type FirstPartyMachineServiceDefinitions, FirstPartyMachineServices, type FirstPartyMachineState, type FirstPartyMachineStateNavigationListener, FirstPartyMachineStateTypes, type FirstPartyMachineStates, type FirstPartyMachineStatesConfig, type FirstPartyNextEvent, type FirstPartyPreviousEvent, type FirstPartySelectCredentialsEvent, type FirstPartyStateMachine, type GetAuthenticationKeyArgs, type GetBasicIssuerLocaleBrandingArgs, type GetContactArgs, type GetCredentialArgs, type GetCredentialBrandingArgs, type GetCredentialConfigsSupportedArgs, type GetCredentialConfigsSupportedBySingleTypeOrIdArgs, type GetCredentialsArgs, type GetDefaultIssuanceOptsArgs, type GetFederationTrustArgs, type GetIdentifierArgs, type GetIssuanceCryptoSuiteArgs, type GetIssuanceDidMethodArgs, type GetIssuanceOptsArgs, type GetIssuerBrandingArgs, type GetIssuerMetadataArgs, type GetMachineArgs, type GetOrCreatePrimaryIdentifierArgs, type GetPreferredCredentialFormatsArgs, type GetSiopRequestArgs, type IOID4VCIHolder, IdentifierAliasEnum, type InstanceFirstPartyMachineOpts, type InvokeAuthorizationRequestEvent, type IssuanceOpts, type IssuerLocaleBrandingFromArgs, type IssuerType, type MapCredentialToAcceptArgs, type MappedCredentialToAccept, type NextEvent, OID4VCICallbackStateListener, type OID4VCIContext, OID4VCIHolder, OID4VCIHolderEvent, OID4VCIHolderLinkHandler, type OID4VCIHolderOptions, type OID4VCIMachine, OID4VCIMachineAddContactStates, type OID4VCIMachineContext, type OID4VCIMachineEventTypes, OID4VCIMachineEvents, OID4VCIMachineGuards, type OID4VCIMachineInstanceOpts, type OID4VCIMachineInterpreter, type OID4VCIMachineNavigationArgs, type OID4VCIMachineServiceDefinitions, OID4VCIMachineServices, type OID4VCIMachineState, type OID4VCIMachineStateNavigationListener, OID4VCIMachineStates, OID4VCIMachineVerifyPinStates, type OID4VCIProviderProps, type OID4VCIStateMachine, type Oid4vciCombineDisplayLocalesFromArgs, type Oid4vciCredentialDisplayLocalesFromArgs, type Oid4vciCredentialLocaleBrandingFromArgs, type Oid4vciGetCredentialBrandingFromArgs, type Oid4vciIssuerCredentialSubjectLocalesFromArgs, type OnContactIdentityCreatedArgs, type OnCredentialStoredArgs, type OnIdentifierCreatedArgs, type PrepareAuthorizationRequestArgs, type PrepareAuthorizationResult, type PrepareStartArgs, type PreviousEvent, type RequestData, RequestType, type RequiredContext, type SdJwtCombineDisplayLocalesFromArgs, type SdJwtCredentialClaimLocalesFromArgs, type SdJwtCredentialDisplayLocalesFromArgs, type SdJwtCredentialLocaleBrandingFromArgs, type SdJwtGetCredentialBrandingFromArgs, type SelectAppLocaleBrandingArgs, type SelectCredentialsEvent, type SendAuthorizationChallengeRequestArgs, type SendAuthorizationResponseArgs, type SendNotificationArgs, type SetAuthorizationCodeURLEvent, type SiopV2AuthorizationRequestData, type StartFirstPartApplicationMachine, type StartResult, type StoreCredentialBrandingArgs, type StoreCredentialsArgs, type StoreIssuerBrandingArgs, SupportedLanguage, type VerificationCodeEvent, type VerificationResult, type VerificationSubResult, type VerifyCredentialArgs, type VerifyCredentialToAcceptArgs, type VerifyEBSICredentialIssuerArgs, type VerifyEBSICredentialIssuerResult, type VerifyMdocArgs, type VerifySDJWTCredentialArgs, createConfig, extractCredentialFromResponse, getBasicIssuerLocaleBranding, getCredentialBranding, getCredentialConfigsBasedOnFormatPref, getCredentialConfigsSupported, getCredentialConfigsSupportedBySingleTypeOrId, getCredentialConfigsSupportedMerged, getIdentifierOpts, getIssuanceCryptoSuite, getIssuanceMethod, getIssuanceOpts, getSiopRequest, issuerLocaleBrandingFrom, mapCredentialToAccept, oid4vciCombineDisplayLocalesFrom, oid4vciCredentialDisplayLocalesFrom, oid4vciCredentialLocaleBrandingFrom, oid4vciGetCredentialBrandingFrom, oid4vciHolderContextMethods, oid4vciIssuerCredentialSubjectLocalesFrom, sdJwtCombineDisplayLocalesFrom, sdJwtCredentialClaimLocalesFrom, sdJwtCredentialDisplayLocalesFrom, sdJwtCredentialLocaleBrandingFrom, sdJwtGetCredentialBrandingFrom, selectCredentialLocaleBranding, sendAuthorizationChallengeRequest, sendAuthorizationResponse, signCallback, startFirstPartApplicationMachine, verifyCredentialToAccept };
|