@sphereon/ssi-sdk.siopv2-oid4vp-rp-auth 0.32.1-next.54 → 0.33.1-feature.jose.vcdm.55

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/functions.js DELETED
@@ -1,234 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.getRequestVersion = getRequestVersion;
13
- exports.getPresentationVerificationCallback = getPresentationVerificationCallback;
14
- exports.createRPBuilder = createRPBuilder;
15
- exports.signCallback = signCallback;
16
- exports.createRP = createRP;
17
- exports.getSigningAlgo = getSigningAlgo;
18
- const did_auth_siop_1 = require("@sphereon/did-auth-siop");
19
- const ssi_sdk_ext_did_utils_1 = require("@sphereon/ssi-sdk-ext.did-utils");
20
- const ssi_sdk_ext_identifier_resolution_1 = require("@sphereon/ssi-sdk-ext.identifier-resolution");
21
- const oid4vc_common_1 = require("@sphereon/oid4vc-common");
22
- const ssi_types_1 = require("@sphereon/ssi-types");
23
- const crypto_1 = require("crypto");
24
- const events_1 = require("events");
25
- const ssi_sdk_ext_identifier_resolution_2 = require("@sphereon/ssi-sdk-ext.identifier-resolution");
26
- function getRequestVersion(rpOptions) {
27
- if (Array.isArray(rpOptions.supportedVersions) && rpOptions.supportedVersions.length > 0) {
28
- return rpOptions.supportedVersions[0];
29
- }
30
- return did_auth_siop_1.SupportedVersion.JWT_VC_PRESENTATION_PROFILE_v1;
31
- }
32
- function getWellKnownDIDVerifyCallback(siopIdentifierOpts, context) {
33
- return siopIdentifierOpts.wellknownDIDVerifyCallback
34
- ? siopIdentifierOpts.wellknownDIDVerifyCallback
35
- : (args) => __awaiter(this, void 0, void 0, function* () {
36
- const result = yield context.agent.cvVerifyCredential({
37
- credential: args.credential,
38
- fetchRemoteContexts: true,
39
- });
40
- return { verified: result.result };
41
- });
42
- }
43
- function getPresentationVerificationCallback(idOpts, context) {
44
- function presentationVerificationCallback(args, // FIXME any
45
- presentationSubmission) {
46
- return __awaiter(this, void 0, void 0, function* () {
47
- var _a;
48
- if (ssi_types_1.CredentialMapper.isSdJwtEncoded(args)) {
49
- const result = yield context.agent.verifySdJwtPresentation({
50
- presentation: args,
51
- kb: true,
52
- });
53
- // fixme: investigate the correct way to handle this
54
- return { verified: !!result.payload };
55
- }
56
- if (ssi_types_1.CredentialMapper.isMsoMdocOid4VPEncoded(args)) {
57
- // TODO Funke reevaluate
58
- if (context.agent.mdocOid4vpRPVerify === undefined) {
59
- return Promise.reject('ImDLMdoc agent plugin must be enabled to support MsoMdoc types');
60
- }
61
- if (!presentationSubmission) {
62
- return Promise.reject('No presentationSubmission present');
63
- }
64
- const verifyResult = yield context.agent.mdocOid4vpRPVerify({
65
- vp_token: args,
66
- presentation_submission: presentationSubmission,
67
- });
68
- return { verified: !verifyResult.error };
69
- }
70
- const result = yield context.agent.verifyPresentation({
71
- presentation: args,
72
- fetchRemoteContexts: true,
73
- domain: (_a = (yield context.agent.identifierManagedGet(idOpts)).kid) === null || _a === void 0 ? void 0 : _a.split('#')[0],
74
- });
75
- return { verified: result.verified };
76
- });
77
- }
78
- return presentationVerificationCallback;
79
- }
80
- function createRPBuilder(args) {
81
- return __awaiter(this, void 0, void 0, function* () {
82
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
83
- const { rpOpts, pexOpts, context } = args;
84
- const { identifierOpts } = rpOpts;
85
- let definition = args.definition;
86
- if (!definition && pexOpts && pexOpts.definitionId) {
87
- const presentationDefinitionItems = yield context.agent.pdmGetDefinitions({
88
- filter: [
89
- {
90
- definitionId: pexOpts.definitionId,
91
- version: pexOpts.version,
92
- tenantId: pexOpts.tenantId,
93
- },
94
- ],
95
- });
96
- definition = presentationDefinitionItems.length > 0 ? presentationDefinitionItems[0].definitionPayload : undefined;
97
- }
98
- const didMethods = (_a = identifierOpts.supportedDIDMethods) !== null && _a !== void 0 ? _a : (yield (0, ssi_sdk_ext_did_utils_1.getAgentDIDMethods)(context));
99
- const eventEmitter = (_b = rpOpts.eventEmitter) !== null && _b !== void 0 ? _b : new events_1.EventEmitter();
100
- const defaultClientMetadata = {
101
- // FIXME: All of the below should be configurable. Some should come from builder, some should be determined by the agent.
102
- // For now it is either preconfigured or everything passed in as a single object
103
- idTokenSigningAlgValuesSupported: [oid4vc_common_1.SigningAlgo.EDDSA, oid4vc_common_1.SigningAlgo.ES256, oid4vc_common_1.SigningAlgo.ES256K], // added newly
104
- requestObjectSigningAlgValuesSupported: [oid4vc_common_1.SigningAlgo.EDDSA, oid4vc_common_1.SigningAlgo.ES256, oid4vc_common_1.SigningAlgo.ES256K], // added newly
105
- responseTypesSupported: [did_auth_siop_1.ResponseType.ID_TOKEN], // added newly
106
- client_name: 'Sphereon',
107
- vpFormatsSupported: {
108
- jwt_vc: { alg: ['EdDSA', 'ES256K'] },
109
- jwt_vp: { alg: ['ES256K', 'EdDSA'] },
110
- },
111
- scopesSupported: [did_auth_siop_1.Scope.OPENID_DIDAUTHN],
112
- subjectTypesSupported: [did_auth_siop_1.SubjectType.PAIRWISE],
113
- subject_syntax_types_supported: didMethods.map((method) => `did:${method}`),
114
- passBy: did_auth_siop_1.PassBy.VALUE,
115
- };
116
- const resolver = (_d = (_c = rpOpts.identifierOpts.resolveOpts) === null || _c === void 0 ? void 0 : _c.resolver) !== null && _d !== void 0 ? _d : (0, ssi_sdk_ext_did_utils_1.getAgentResolver)(context, {
117
- resolverResolution: true,
118
- localResolution: true,
119
- uniresolverResolution: ((_e = rpOpts.identifierOpts.resolveOpts) === null || _e === void 0 ? void 0 : _e.noUniversalResolverFallback) !== true,
120
- });
121
- //todo: probably wise to first look and see if we actually need the hasher to begin with
122
- let hasher = (_f = rpOpts.credentialOpts) === null || _f === void 0 ? void 0 : _f.hasher;
123
- if (!((_g = rpOpts.credentialOpts) === null || _g === void 0 ? void 0 : _g.hasher) || typeof ((_h = rpOpts.credentialOpts) === null || _h === void 0 ? void 0 : _h.hasher) !== 'function') {
124
- hasher = (data, algorithm) => (0, crypto_1.createHash)(algorithm).update(data).digest();
125
- }
126
- const builder = did_auth_siop_1.RP.builder({ requestVersion: getRequestVersion(rpOpts) })
127
- .withScope('openid', did_auth_siop_1.PropertyTarget.REQUEST_OBJECT)
128
- .withResponseMode((_j = rpOpts.responseMode) !== null && _j !== void 0 ? _j : did_auth_siop_1.ResponseMode.POST)
129
- .withResponseType(did_auth_siop_1.ResponseType.VP_TOKEN, did_auth_siop_1.PropertyTarget.REQUEST_OBJECT)
130
- // todo: move to options fill/correct method
131
- .withSupportedVersions((_k = rpOpts.supportedVersions) !== null && _k !== void 0 ? _k : [did_auth_siop_1.SupportedVersion.JWT_VC_PRESENTATION_PROFILE_v1, did_auth_siop_1.SupportedVersion.SIOPv2_ID1, did_auth_siop_1.SupportedVersion.SIOPv2_D11])
132
- .withEventEmitter(eventEmitter)
133
- .withSessionManager((_l = rpOpts.sessionManager) !== null && _l !== void 0 ? _l : new did_auth_siop_1.InMemoryRPSessionManager(eventEmitter))
134
- .withClientMetadata((_m = rpOpts.clientMetadataOpts) !== null && _m !== void 0 ? _m : defaultClientMetadata, did_auth_siop_1.PropertyTarget.REQUEST_OBJECT)
135
- .withVerifyJwtCallback(rpOpts.verifyJwtCallback
136
- ? rpOpts.verifyJwtCallback
137
- : getVerifyJwtCallback({
138
- resolver,
139
- verifyOpts: {
140
- wellknownDIDVerifyCallback: getWellKnownDIDVerifyCallback(rpOpts.identifierOpts, context),
141
- checkLinkedDomain: 'if_present',
142
- },
143
- }, context))
144
- .withRevocationVerification(did_auth_siop_1.RevocationVerification.NEVER)
145
- .withPresentationVerification(getPresentationVerificationCallback(identifierOpts.idOpts, context));
146
- const oidfOpts = identifierOpts.oidfOpts;
147
- if (oidfOpts && (0, ssi_sdk_ext_identifier_resolution_2.isExternalIdentifierOIDFEntityIdOpts)(oidfOpts)) {
148
- builder.withEntityId(oidfOpts.identifier, did_auth_siop_1.PropertyTarget.REQUEST_OBJECT).withClientIdScheme('entity_id', did_auth_siop_1.PropertyTarget.REQUEST_OBJECT);
149
- }
150
- else {
151
- const resolution = yield context.agent.identifierManagedGet(identifierOpts.idOpts);
152
- builder
153
- .withClientId((_o = resolution.issuer) !== null && _o !== void 0 ? _o : ((0, ssi_sdk_ext_identifier_resolution_1.isManagedIdentifierDidResult)(resolution) ? resolution.did : resolution.jwkThumbprint), did_auth_siop_1.PropertyTarget.REQUEST_OBJECT)
154
- .withClientIdScheme((_p = resolution.clientIdScheme) !== null && _p !== void 0 ? _p : identifierOpts.idOpts.clientIdScheme, did_auth_siop_1.PropertyTarget.REQUEST_OBJECT);
155
- }
156
- if (hasher) {
157
- builder.withHasher(hasher);
158
- }
159
- //fixme: this has been removed in the new version of did-auth-siop
160
- /*if (!rpOpts.clientMetadataOpts?.subjectTypesSupported) {
161
- // Do not update in case it is already provided via client metadata opts
162
- didMethods.forEach((method) => builder.addDidMethod(method))
163
- }*/
164
- //fixme: this has been removed in the new version of did-auth-siop
165
- // builder.withWellknownDIDVerifyCallback(getWellKnownDIDVerifyCallback(didOpts, context))
166
- if (definition) {
167
- builder.withPresentationDefinition({ definition }, did_auth_siop_1.PropertyTarget.REQUEST_OBJECT);
168
- }
169
- if (rpOpts.responseRedirectUri) {
170
- builder.withResponseRedirectUri(rpOpts.responseRedirectUri);
171
- }
172
- //const key = resolution.key
173
- //fixme: this has been removed in the new version of did-auth-siop
174
- //builder.withSuppliedSignature(SuppliedSigner(key, context, getSigningAlgo(key.type) as unknown as KeyAlgo), did, kid, getSigningAlgo(key.type))
175
- /*if (isManagedIdentifierDidResult(resolution)) {
176
- //fixme: only accepts dids in version used. New SIOP lib also accepts other types
177
- builder.withSuppliedSignature(
178
- SuppliedSigner(key, context, getSigningAlgo(key.type) as unknown as KeyAlgo),
179
- resolution.did,
180
- resolution.kid,
181
- getSigningAlgo(key.type),
182
- )
183
- }*/
184
- //fixme: signcallback and it's return type are not totally compatible with our CreateJwtCallbackBase
185
- const createJwtCallback = signCallback(rpOpts.identifierOpts.idOpts, context);
186
- builder.withCreateJwtCallback(createJwtCallback);
187
- return builder;
188
- });
189
- }
190
- function signCallback(idOpts, context) {
191
- return (jwtIssuer, jwt, kid) => __awaiter(this, void 0, void 0, function* () {
192
- if (!((0, ssi_sdk_ext_identifier_resolution_1.isManagedIdentifierDidOpts)(idOpts) || (0, ssi_sdk_ext_identifier_resolution_1.isManagedIdentifierX5cOpts)(idOpts))) {
193
- return Promise.reject(Error(`JWT issuer method ${jwtIssuer.method} not yet supported`));
194
- }
195
- const result = yield context.agent.jwtCreateJwsCompactSignature({
196
- // FIXME fix cose-key inference
197
- // @ts-ignore
198
- issuer: { identifier: idOpts.identifier, kmsKeyRef: idOpts.kmsKeyRef, noIdentifierInHeader: false },
199
- // FIXME fix JWK key_ops
200
- // @ts-ignore
201
- protectedHeader: jwt.header,
202
- payload: jwt.payload,
203
- });
204
- return result.jwt;
205
- });
206
- }
207
- function getVerifyJwtCallback(_opts, context) {
208
- return (_jwtVerifier, jwt) => __awaiter(this, void 0, void 0, function* () {
209
- const result = yield context.agent.jwtVerifyJwsSignature({ jws: jwt.raw });
210
- console.log(result.message);
211
- return !result.error;
212
- });
213
- }
214
- function createRP(_a) {
215
- return __awaiter(this, arguments, void 0, function* ({ rpOptions, context }) {
216
- return (yield createRPBuilder({ rpOpts: rpOptions, context })).build();
217
- });
218
- }
219
- function getSigningAlgo(type) {
220
- switch (type) {
221
- case 'Ed25519':
222
- return oid4vc_common_1.SigningAlgo.EDDSA;
223
- case 'Secp256k1':
224
- return oid4vc_common_1.SigningAlgo.ES256K;
225
- case 'Secp256r1':
226
- return oid4vc_common_1.SigningAlgo.ES256;
227
- // @ts-ignore
228
- case 'RSA':
229
- return oid4vc_common_1.SigningAlgo.RS256;
230
- default:
231
- throw Error('Key type not yet supported');
232
- }
233
- }
234
- //# sourceMappingURL=functions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"functions.js","sourceRoot":"","sources":["../src/functions.ts"],"names":[],"mappings":";;;;;;;;;;;AAyCA,8CAKC;AAcD,kFAyCC;AAED,0CA0IC;AAED,oCAmBC;AAmBD,4BAEC;AAED,wCAcC;AA3SD,2DAiBgC;AAGhC,2EAAsF;AACtF,mGAKoD;AAGpD,2DAAqD;AACrD,mDAAoH;AAIpH,mCAAmC;AAGnC,mCAAqC;AAErC,mGAAkG;AAElG,SAAgB,iBAAiB,CAAC,SAAqB;IACrD,IAAI,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,iBAAiB,CAAC,IAAI,SAAS,CAAC,iBAAiB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACzF,OAAO,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAA;IACvC,CAAC;IACD,OAAO,gCAAgB,CAAC,8BAA8B,CAAA;AACxD,CAAC;AAED,SAAS,6BAA6B,CAAC,kBAA0C,EAAE,OAAyB;IAC1G,OAAO,kBAAkB,CAAC,0BAA0B;QAClD,CAAC,CAAC,kBAAkB,CAAC,0BAA0B;QAC/C,CAAC,CAAC,CAAO,IAAyB,EAAoC,EAAE;YACpE,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAAC;gBACpD,UAAU,EAAE,IAAI,CAAC,UAA0C;gBAC3D,mBAAmB,EAAE,IAAI;aAC1B,CAAC,CAAA;YACF,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CAAA;QACpC,CAAC,CAAA,CAAA;AACP,CAAC;AAED,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AM,eAAe,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAA;IACxE,CAAC;CAAA;AAED,SAAgB,cAAc,CAAC,IAAc;IAC3C,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,SAAS;YACZ,OAAO,2BAAW,CAAC,KAAK,CAAA;QAC1B,KAAK,WAAW;YACd,OAAO,2BAAW,CAAC,MAAM,CAAA;QAC3B,KAAK,WAAW;YACd,OAAO,2BAAW,CAAC,KAAK,CAAA;QAC1B,aAAa;QACb,KAAK,KAAK;YACR,OAAO,2BAAW,CAAC,KAAK,CAAA;QAC1B;YACE,MAAM,KAAK,CAAC,4BAA4B,CAAC,CAAA;IAC7C,CAAC;AACH,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,QAAA,MAAM,MAAM,KAAmC,CAAA;AAC/C,OAAO,EAAE,MAAM,EAAE,CAAA;AACjB,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC3C,cAAc,mBAAmB,CAAA"}
@@ -1,163 +0,0 @@
1
- import { ClientMetadataOpts, VerifyJwtCallback } from '@sphereon/did-auth-siop';
2
- import { IIdentifierResolution, ManagedIdentifierOptsOrResult } from '@sphereon/ssi-sdk-ext.identifier-resolution';
3
- import { IAgentContext, ICredentialIssuer, ICredentialVerifier, IDIDManager, IKeyManager, IPluginMethodMap, IResolver } from '@veramo/core';
4
- import { AdditionalClaims, Hasher, W3CVerifiablePresentation } from '@sphereon/ssi-types';
5
- import { AuthorizationRequestPayload, AuthorizationRequestState, AuthorizationResponsePayload, AuthorizationResponseState, ClaimPayloadCommonOpts, IRPSessionManager, PresentationDefinitionWithLocation, PresentationVerificationCallback, RequestObjectPayload, ResponseMode, ResponseURIType, SupportedVersion, VerifiablePresentationTypeFormat, VerifiedAuthorizationResponse, VPTokenLocation } from '@sphereon/did-auth-siop';
6
- import { ExternalIdentifierOIDFEntityIdOpts } from '@sphereon/ssi-sdk-ext.identifier-resolution';
7
- import { Resolvable } from 'did-resolver';
8
- import { DIDDocument } from '@sphereon/did-uni-client';
9
- import { EventEmitter } from 'events';
10
- import { IPresentationDefinition } from '@sphereon/pex';
11
- import { IDIDOptions } from '@sphereon/ssi-sdk-ext.did-utils';
12
- import { IPresentationExchange } from '@sphereon/ssi-sdk.presentation-exchange';
13
- import { VerifyCallback } from '@sphereon/wellknown-dids-client';
14
- import { AuthorizationRequestStateStatus } from '@sphereon/ssi-sdk.siopv2-oid4vp-common';
15
- import { IPDManager, VersionControlMode } from '@sphereon/ssi-sdk.pd-manager';
16
- import { CheckLinkedDomain } from '@sphereon/did-auth-siop-adapter';
17
- import { ISDJwtPlugin } from '@sphereon/ssi-sdk.sd-jwt';
18
- import { IJwtService } from '@sphereon/ssi-sdk-ext.jwt-service';
19
- import { JwtIssuer } from '@sphereon/oid4vc-common';
20
- import { ImDLMdoc } from '@sphereon/ssi-sdk.mdl-mdoc';
21
- import { ICredentialValidation, SchemaValidation } from '@sphereon/ssi-sdk.credential-validation';
22
- export declare enum VerifiedDataMode {
23
- NONE = "none",
24
- VERIFIED_PRESENTATION = "vp",
25
- CREDENTIAL_SUBJECT_FLATTENED = "cs-flat"
26
- }
27
- export interface ISIOPv2RP extends IPluginMethodMap {
28
- siopCreateAuthRequestURI(createArgs: ICreateAuthRequestArgs, context: IRequiredContext): Promise<string>;
29
- siopCreateAuthRequestPayloads(createArgs: ICreateAuthRequestArgs, context: IRequiredContext): Promise<IAuthorizationRequestPayloads>;
30
- siopGetAuthRequestState(args: IGetAuthRequestStateArgs, context: IRequiredContext): Promise<AuthorizationRequestState | undefined>;
31
- siopGetAuthResponseState(args: IGetAuthResponseStateArgs, context: IRequiredContext): Promise<AuthorizationResponseStateWithVerifiedData | undefined>;
32
- siopUpdateAuthRequestState(args: IUpdateRequestStateArgs, context: IRequiredContext): Promise<AuthorizationRequestState>;
33
- siopDeleteAuthState(args: IDeleteAuthStateArgs, context: IRequiredContext): Promise<boolean>;
34
- siopVerifyAuthResponse(args: IVerifyAuthResponseStateArgs, context: IRequiredContext): Promise<VerifiedAuthorizationResponse>;
35
- siopImportDefinitions(args: ImportDefinitionsArgs, context: IRequiredContext): Promise<void>;
36
- siopGetRedirectURI(args: IGetRedirectUriArgs, context: IRequiredContext): Promise<string | undefined>;
37
- }
38
- export interface ISiopv2RPOpts {
39
- defaultOpts?: IRPDefaultOpts;
40
- instanceOpts?: IPEXInstanceOptions[];
41
- }
42
- export interface IRPDefaultOpts extends IRPOptions {
43
- }
44
- export interface ICreateAuthRequestArgs {
45
- definitionId: string;
46
- correlationId: string;
47
- responseURIType: ResponseURIType;
48
- responseURI: string;
49
- responseRedirectURI?: string;
50
- jwtIssuer?: JwtIssuer;
51
- requestByReferenceURI?: string;
52
- nonce?: string;
53
- state?: string;
54
- claims?: ClaimPayloadCommonOpts;
55
- }
56
- export interface IGetAuthRequestStateArgs {
57
- correlationId: string;
58
- definitionId: string;
59
- errorOnNotFound?: boolean;
60
- }
61
- export interface IGetAuthResponseStateArgs {
62
- correlationId: string;
63
- definitionId: string;
64
- errorOnNotFound?: boolean;
65
- progressRequestStateTo?: AuthorizationRequestStateStatus;
66
- includeVerifiedData?: VerifiedDataMode;
67
- }
68
- export interface IUpdateRequestStateArgs {
69
- definitionId: string;
70
- correlationId: string;
71
- state: AuthorizationRequestStateStatus;
72
- error?: string;
73
- }
74
- export interface IDeleteAuthStateArgs {
75
- correlationId: string;
76
- definitionId: string;
77
- }
78
- export interface IVerifyAuthResponseStateArgs {
79
- authorizationResponse: string | AuthorizationResponsePayload;
80
- definitionId?: string;
81
- correlationId: string;
82
- audience?: string;
83
- presentationDefinitions?: PresentationDefinitionWithLocation | PresentationDefinitionWithLocation[];
84
- }
85
- export interface ImportDefinitionsArgs {
86
- definitions: Array<IPresentationDefinition>;
87
- tenantId?: string;
88
- version?: string;
89
- versionControlMode?: VersionControlMode;
90
- }
91
- export interface IGetRedirectUriArgs {
92
- correlationId: string;
93
- definitionId?: string;
94
- state?: string;
95
- }
96
- export interface IAuthorizationRequestPayloads {
97
- authorizationRequest: AuthorizationRequestPayload;
98
- requestObject?: string;
99
- requestObjectDecoded?: RequestObjectPayload;
100
- }
101
- export interface IPEXDefinitionPersistArgs extends IPEXInstanceOptions {
102
- definition: IPresentationDefinition;
103
- ttl?: number;
104
- }
105
- export interface ISiopRPInstanceArgs {
106
- definitionId?: string;
107
- responseRedirectURI?: string;
108
- }
109
- export interface IPEXInstanceOptions extends IPEXOptions {
110
- rpOpts?: IRPOptions;
111
- }
112
- export interface IRPOptions {
113
- responseMode?: ResponseMode;
114
- supportedVersions?: SupportedVersion[];
115
- sessionManager?: IRPSessionManager;
116
- clientMetadataOpts?: ClientMetadataOpts;
117
- expiresIn?: number;
118
- eventEmitter?: EventEmitter;
119
- credentialOpts?: CredentialOpts;
120
- verificationPolicies?: VerificationPolicies;
121
- identifierOpts: ISIOPIdentifierOptions;
122
- verifyJwtCallback?: VerifyJwtCallback;
123
- responseRedirectUri?: string;
124
- }
125
- export interface IPEXOptions {
126
- presentationVerifyCallback?: PresentationVerificationCallback;
127
- definitionId: string;
128
- version?: string;
129
- tenantId?: string;
130
- }
131
- export type VerificationPolicies = {
132
- schemaValidation: SchemaValidation;
133
- };
134
- export interface PerDidResolver {
135
- didMethod: string;
136
- resolver: Resolvable;
137
- }
138
- export interface IAuthRequestDetails {
139
- rpDIDDocument?: DIDDocument;
140
- id: string;
141
- verifiablePresentationMatches: IPresentationWithDefinition[];
142
- alsoKnownAs?: string[];
143
- }
144
- export interface IPresentationWithDefinition {
145
- location: VPTokenLocation;
146
- definition: PresentationDefinitionWithLocation;
147
- format: VerifiablePresentationTypeFormat;
148
- presentation: W3CVerifiablePresentation;
149
- }
150
- export interface ISIOPIdentifierOptions extends Omit<IDIDOptions, 'idOpts'> {
151
- idOpts: ManagedIdentifierOptsOrResult;
152
- oidfOpts?: ExternalIdentifierOIDFEntityIdOpts;
153
- checkLinkedDomains?: CheckLinkedDomain;
154
- wellknownDIDVerifyCallback?: VerifyCallback;
155
- }
156
- export type CredentialOpts = {
157
- hasher?: Hasher;
158
- };
159
- export interface AuthorizationResponseStateWithVerifiedData extends AuthorizationResponseState {
160
- verifiedData?: AdditionalClaims;
161
- }
162
- export type IRequiredContext = IAgentContext<IResolver & IDIDManager & IKeyManager & IIdentifierResolution & ICredentialIssuer & ICredentialValidation & ICredentialVerifier & IPresentationExchange & IPDManager & ISDJwtPlugin & IJwtService & ImDLMdoc>;
163
- //# sourceMappingURL=ISIOPv2RP.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ISIOPv2RP.d.ts","sourceRoot":"","sources":["../../src/types/ISIOPv2RP.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC/E,OAAO,EAAE,qBAAqB,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAA;AAClH,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAC3I,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAA;AACzF,OAAO,EACL,2BAA2B,EAC3B,yBAAyB,EACzB,4BAA4B,EAC5B,0BAA0B,EAC1B,sBAAsB,EACtB,iBAAiB,EACjB,kCAAkC,EAClC,gCAAgC,EAChC,oBAAoB,EACpB,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,gCAAgC,EAChC,6BAA6B,EAC7B,eAAe,EAChB,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EAAE,kCAAkC,EAAE,MAAM,6CAA6C,CAAA;AAEhG,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,WAAW,EAA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AW,CAAC,EAAE,MAAM,EAAE,CAAA;CACvB;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,eAAe,CAAA;IACzB,UAAU,EAAE,kCAAkC,CAAA;IAC9C,MAAM,EAAE,gCAAgC,CAAA;IACxC,YAAY,EAAE,yBAAyB,CAAA;CACxC;AAED,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC;IAEzE,MAAM,EAAE,6BAA6B,CAAA;IACrC,QAAQ,CAAC,EAAE,kCAAkC,CAAA;IAC7C,kBAAkB,CAAC,EAAE,iBAAiB,CAAA;IACtC,0BAA0B,CAAC,EAAE,cAAc,CAAA;CAC5C;AAGD,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,WAAW,0CAA2C,SAAQ,0BAA0B;IAC5F,YAAY,CAAC,EAAE,gBAAgB,CAAA;CAChC;AAED,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAC1C,SAAS,GACP,WAAW,GACX,WAAW,GACX,qBAAqB,GACrB,iBAAiB,GACjB,qBAAqB,GACrB,mBAAmB,GACnB,qBAAqB,GACrB,UAAU,GACV,YAAY,GACZ,WAAW,GACX,QAAQ,CACX,CAAA"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VerifiedDataMode = void 0;
4
- var VerifiedDataMode;
5
- (function (VerifiedDataMode) {
6
- VerifiedDataMode["NONE"] = "none";
7
- VerifiedDataMode["VERIFIED_PRESENTATION"] = "vp";
8
- VerifiedDataMode["CREDENTIAL_SUBJECT_FLATTENED"] = "cs-flat";
9
- })(VerifiedDataMode || (exports.VerifiedDataMode = VerifiedDataMode = {}));
10
- //# sourceMappingURL=ISIOPv2RP.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ISIOPv2RP.js","sourceRoot":"","sources":["../../src/types/ISIOPv2RP.ts"],"names":[],"mappings":";;;AAwCA,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,iCAAa,CAAA;IACb,gDAA4B,CAAA;IAC5B,4DAAwC,CAAA;AAC1C,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B"}