@mattrglobal/verifier-sdk-web 1.1.1-unstable.160 → 1.1.1-unstable.162
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/lib/verifier-js-no-deps.cjs.js +16 -26
- package/dist/lib/verifier-js-no-deps.cjs.js.map +1 -1
- package/dist/lib/verifier-js.cjs.js +270 -200
- package/dist/lib/verifier-js.cjs.js.map +1 -1
- package/dist/typings/verifier/types/credential-presentation.d.ts +12 -39
- package/dist/typings/verifier/types/verifier-web-sdk.d.ts +15 -15
- package/dist/verifier-js.development.js +268 -197
- package/dist/verifier-js.development.js.map +1 -1
- package/dist/verifier-js.production.esm.js +2 -2
- package/dist/verifier-js.production.esm.js.map +1 -1
- package/dist/verifier-js.production.js +2 -2
- package/dist/verifier-js.production.js.map +1 -1
- package/package.json +3 -3
|
@@ -139,7 +139,7 @@ export declare const CredentialQueryValidator: v.ObjectSchema<{
|
|
|
139
139
|
readonly profile: v.PicklistSchema<[OpenidPresentationCredentialProfileSupported], undefined>;
|
|
140
140
|
readonly docType: v.StringSchema<undefined>;
|
|
141
141
|
readonly nameSpaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.StrictObjectSchema<{
|
|
142
|
-
readonly intentToRetain: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
142
|
+
readonly intentToRetain: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
143
143
|
}, undefined>, undefined>, undefined>;
|
|
144
144
|
}, undefined>;
|
|
145
145
|
/**
|
|
@@ -260,12 +260,12 @@ export type PresentationResultRelax = {
|
|
|
260
260
|
};
|
|
261
261
|
export declare const PresentationResultRelaxValidator: v.ObjectSchema<{
|
|
262
262
|
readonly sessionId: v.StringSchema<undefined>;
|
|
263
|
-
readonly challenge: v.OptionalSchema<v.StringSchema<undefined>,
|
|
263
|
+
readonly challenge: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
264
264
|
/*** we do not validate these types at runtime ***/
|
|
265
|
-
readonly credentialQuery: v.OptionalSchema<v.UnknownSchema,
|
|
266
|
-
readonly credentials: v.OptionalSchema<v.UnknownSchema,
|
|
267
|
-
readonly credentialErrors: v.OptionalSchema<v.UnknownSchema,
|
|
268
|
-
readonly error: v.OptionalSchema<v.UnknownSchema,
|
|
265
|
+
readonly credentialQuery: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
266
|
+
readonly credentials: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
267
|
+
readonly credentialErrors: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
268
|
+
readonly error: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
269
269
|
}, undefined>;
|
|
270
270
|
export type PresentationFailureResult = {
|
|
271
271
|
sessionId: string;
|
|
@@ -283,33 +283,6 @@ export type PresentationHiddenResult = {
|
|
|
283
283
|
sessionId: string;
|
|
284
284
|
};
|
|
285
285
|
export type PresentationSessionResult = PresentationSuccessResult | PresentationFailureResult;
|
|
286
|
-
export declare const PresentationSessionResultValidator: v.UnionSchema<[v.ObjectSchema<{
|
|
287
|
-
readonly sessionId: v.StringSchema<undefined>;
|
|
288
|
-
readonly challenge: v.StringSchema<undefined>;
|
|
289
|
-
readonly credentialQuery: v.ArraySchema<v.ObjectSchema<{
|
|
290
|
-
readonly profile: v.PicklistSchema<[OpenidPresentationCredentialProfileSupported], undefined>;
|
|
291
|
-
readonly docType: v.StringSchema<undefined>;
|
|
292
|
-
readonly nameSpaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.StrictObjectSchema<{
|
|
293
|
-
readonly intentToRetain: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
294
|
-
}, undefined>, undefined>, undefined>;
|
|
295
|
-
}, undefined>, undefined>;
|
|
296
|
-
readonly credentials: v.OptionalSchema<v.ArraySchema<v.AnySchema, undefined>, never>;
|
|
297
|
-
readonly credentialErrors: v.OptionalSchema<v.ArraySchema<v.AnySchema, undefined>, never>;
|
|
298
|
-
}, undefined>, v.ObjectSchema<{
|
|
299
|
-
readonly sessionId: v.StringSchema<undefined>;
|
|
300
|
-
readonly challenge: v.StringSchema<undefined>;
|
|
301
|
-
readonly credentialQuery: v.ArraySchema<v.ObjectSchema<{
|
|
302
|
-
readonly profile: v.PicklistSchema<[OpenidPresentationCredentialProfileSupported], undefined>;
|
|
303
|
-
readonly docType: v.StringSchema<undefined>;
|
|
304
|
-
readonly nameSpaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.StrictObjectSchema<{
|
|
305
|
-
readonly intentToRetain: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
306
|
-
}, undefined>, undefined>, undefined>;
|
|
307
|
-
}, undefined>, undefined>;
|
|
308
|
-
readonly error: v.ObjectSchema<{
|
|
309
|
-
readonly type: v.PicklistSchema<PresentationErrorType[], undefined>;
|
|
310
|
-
readonly message: v.StringSchema<undefined>;
|
|
311
|
-
}, undefined>;
|
|
312
|
-
}, undefined>], undefined>;
|
|
313
286
|
export type ExchangeSessionResultParams = {
|
|
314
287
|
readonly sessionId: string;
|
|
315
288
|
};
|
|
@@ -358,13 +331,13 @@ export declare const CreateSessionRequestValidator: v.ObjectSchema<{
|
|
|
358
331
|
readonly profile: v.PicklistSchema<[OpenidPresentationCredentialProfileSupported], undefined>;
|
|
359
332
|
readonly docType: v.StringSchema<undefined>;
|
|
360
333
|
readonly nameSpaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.StrictObjectSchema<{
|
|
361
|
-
readonly intentToRetain: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
334
|
+
readonly intentToRetain: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
362
335
|
}, undefined>, undefined>, undefined>;
|
|
363
336
|
}, undefined>, undefined>;
|
|
364
337
|
readonly challenge: v.StringSchema<undefined>;
|
|
365
|
-
readonly redirectUri: v.OptionalSchema<v.StringSchema<undefined>,
|
|
366
|
-
readonly walletProviderId: v.OptionalSchema<v.StringSchema<undefined>,
|
|
367
|
-
readonly dcApiSupported: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
338
|
+
readonly redirectUri: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
339
|
+
readonly walletProviderId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
340
|
+
readonly dcApiSupported: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
368
341
|
}, undefined>;
|
|
369
342
|
export type CreateSessionResponse = v.InferOutput<typeof CreateSessionResponseValidator>;
|
|
370
343
|
export declare const CreateSessionResponseValidator: v.UnionSchema<[v.ObjectSchema<{
|
|
@@ -374,7 +347,7 @@ export declare const CreateSessionResponseValidator: v.UnionSchema<[v.ObjectSche
|
|
|
374
347
|
readonly sessionTtl: v.NumberSchema<undefined>;
|
|
375
348
|
readonly request: v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>;
|
|
376
349
|
}, undefined>, v.ObjectSchema<{
|
|
377
|
-
readonly type: v.OptionalSchema<v.LiteralSchema<SessionType.Openid4vp, undefined>,
|
|
350
|
+
readonly type: v.OptionalSchema<v.LiteralSchema<SessionType.Openid4vp, undefined>, undefined>;
|
|
378
351
|
readonly sessionId: v.StringSchema<undefined>;
|
|
379
352
|
readonly sessionKey: v.StringSchema<undefined>;
|
|
380
353
|
readonly sessionUrl: v.StringSchema<undefined>;
|
|
@@ -396,7 +369,7 @@ export type GetSessionStatusResponse = {
|
|
|
396
369
|
};
|
|
397
370
|
export declare const GetSessionStatusResponseValidator: v.UnionSchema<[v.ObjectSchema<{
|
|
398
371
|
readonly status: v.PicklistSchema<[PresentationStatusCode.ResultReady], undefined>;
|
|
399
|
-
readonly responseCode: v.OptionalSchema<v.StringSchema<undefined>,
|
|
372
|
+
readonly responseCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
400
373
|
}, undefined>, v.ObjectSchema<{
|
|
401
374
|
readonly status: v.StringSchema<undefined>;
|
|
402
375
|
}, undefined>], undefined>;
|
|
@@ -61,7 +61,7 @@ export type OpenId4vpConfigurationSameDeviceOptions = {
|
|
|
61
61
|
redirectUri: string;
|
|
62
62
|
};
|
|
63
63
|
export declare const OpenId4vpConfigSameDeviceOptionsValidator: v.ObjectSchema<{
|
|
64
|
-
readonly walletProviderId: v.OptionalSchema<v.StringSchema<undefined>,
|
|
64
|
+
readonly walletProviderId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
65
65
|
readonly mode: v.LiteralSchema<Mode.SameDevice, undefined>;
|
|
66
66
|
readonly redirectUri: v.StringSchema<undefined>;
|
|
67
67
|
}, undefined>;
|
|
@@ -80,7 +80,7 @@ export type OpenId4vpConfigurationCrossDeviceOptions = {
|
|
|
80
80
|
mode: Mode.CrossDevice;
|
|
81
81
|
};
|
|
82
82
|
export declare const OpenId4vpConfigCrossDeviceOptionsValidator: v.ObjectSchema<{
|
|
83
|
-
readonly walletProviderId: v.OptionalSchema<v.StringSchema<undefined>,
|
|
83
|
+
readonly walletProviderId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
84
84
|
readonly mode: v.LiteralSchema<Mode.CrossDevice, undefined>;
|
|
85
85
|
}, undefined>;
|
|
86
86
|
/**
|
|
@@ -102,9 +102,9 @@ export type OpenId4vpConfigurationAutoDetectOptions = {
|
|
|
102
102
|
mode?: Mode;
|
|
103
103
|
};
|
|
104
104
|
export declare const OpenId4vpConfigAutoDetectOptionsValidator: v.ObjectSchema<{
|
|
105
|
-
readonly walletProviderId: v.OptionalSchema<v.StringSchema<undefined>,
|
|
105
|
+
readonly walletProviderId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
106
106
|
readonly redirectUri: v.StringSchema<undefined>;
|
|
107
|
-
readonly mode: v.OptionalSchema<v.PicklistSchema<[Mode.CrossDevice, Mode.SameDevice], undefined>,
|
|
107
|
+
readonly mode: v.OptionalSchema<v.PicklistSchema<[Mode.CrossDevice, Mode.SameDevice], undefined>, undefined>;
|
|
108
108
|
}, undefined>;
|
|
109
109
|
/**
|
|
110
110
|
* Options for the requestCredentials function
|
|
@@ -116,14 +116,15 @@ export type RequestCredentialsOptions = RequestCredentialsBaseOptions & {
|
|
|
116
116
|
openid4vpConfiguration?: OpenId4vpConfigurationSameDeviceOptions | OpenId4vpConfigurationCrossDeviceOptions | OpenId4vpConfigurationAutoDetectOptions;
|
|
117
117
|
};
|
|
118
118
|
export declare const RequestCredentialsOptionsValidator: v.ObjectSchema<{
|
|
119
|
-
readonly credentialQuery: v.SchemaWithPipe<[v.ArraySchema<v.ObjectSchema<{
|
|
119
|
+
readonly credentialQuery: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
120
120
|
readonly profile: v.PicklistSchema<[import("./credential-presentation").OpenidPresentationCredentialProfileSupported], undefined>;
|
|
121
121
|
readonly docType: v.StringSchema<undefined>;
|
|
122
122
|
readonly nameSpaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.StrictObjectSchema<{
|
|
123
|
-
readonly intentToRetain: v.OptionalSchema<v.BooleanSchema<undefined>,
|
|
123
|
+
readonly intentToRetain: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
124
124
|
}, undefined>, undefined>, undefined>;
|
|
125
125
|
}, undefined>, undefined>, v.NonEmptyAction<{
|
|
126
126
|
profile: import("./credential-presentation").OpenidPresentationCredentialProfileSupported;
|
|
127
|
+
docType: string;
|
|
127
128
|
nameSpaces: {
|
|
128
129
|
[x: string]: {
|
|
129
130
|
[x: string]: {
|
|
@@ -131,21 +132,20 @@ export declare const RequestCredentialsOptionsValidator: v.ObjectSchema<{
|
|
|
131
132
|
};
|
|
132
133
|
};
|
|
133
134
|
};
|
|
134
|
-
docType: string;
|
|
135
135
|
}[], undefined>]>;
|
|
136
|
-
readonly challenge: v.OptionalSchema<v.StringSchema<undefined>,
|
|
136
|
+
readonly challenge: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
137
137
|
readonly openid4vpConfiguration: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
138
|
-
readonly walletProviderId: v.OptionalSchema<v.StringSchema<undefined>,
|
|
138
|
+
readonly walletProviderId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
139
139
|
readonly mode: v.LiteralSchema<Mode.SameDevice, undefined>;
|
|
140
140
|
readonly redirectUri: v.StringSchema<undefined>;
|
|
141
141
|
}, undefined>, v.ObjectSchema<{
|
|
142
|
-
readonly walletProviderId: v.OptionalSchema<v.StringSchema<undefined>,
|
|
142
|
+
readonly walletProviderId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
143
143
|
readonly mode: v.LiteralSchema<Mode.CrossDevice, undefined>;
|
|
144
144
|
}, undefined>, v.ObjectSchema<{
|
|
145
|
-
readonly walletProviderId: v.OptionalSchema<v.StringSchema<undefined>,
|
|
145
|
+
readonly walletProviderId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
146
146
|
readonly redirectUri: v.StringSchema<undefined>;
|
|
147
|
-
readonly mode: v.OptionalSchema<v.PicklistSchema<[Mode.CrossDevice, Mode.SameDevice], undefined>,
|
|
148
|
-
}, undefined>], undefined>,
|
|
147
|
+
readonly mode: v.OptionalSchema<v.PicklistSchema<[Mode.CrossDevice, Mode.SameDevice], undefined>, undefined>;
|
|
148
|
+
}, undefined>], undefined>, undefined>;
|
|
149
149
|
}, undefined>;
|
|
150
150
|
export type MessageEvent = {
|
|
151
151
|
data: {
|
|
@@ -226,8 +226,8 @@ export type InitializeOptions = {
|
|
|
226
226
|
applicationId: string;
|
|
227
227
|
};
|
|
228
228
|
export declare const InitializeOptionsValidator: v.ObjectSchema<{
|
|
229
|
-
readonly apiBaseUrl: v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, "Must not be empty">]>;
|
|
230
|
-
readonly applicationId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, "Must not be empty">]>;
|
|
229
|
+
readonly apiBaseUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, "Must not be empty">]>;
|
|
230
|
+
readonly applicationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, "Must not be empty">]>;
|
|
231
231
|
}, undefined>;
|
|
232
232
|
/**
|
|
233
233
|
* Struct for a presentation session
|