@mattrglobal/verifier-sdk-web 1.1.1-unstable.161 → 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.
@@ -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>, never>;
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>, never>;
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, never>;
266
- readonly credentials: v.OptionalSchema<v.UnknownSchema, never>;
267
- readonly credentialErrors: v.OptionalSchema<v.UnknownSchema, never>;
268
- readonly error: v.OptionalSchema<v.UnknownSchema, never>;
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;
@@ -331,13 +331,13 @@ export declare const CreateSessionRequestValidator: v.ObjectSchema<{
331
331
  readonly profile: v.PicklistSchema<[OpenidPresentationCredentialProfileSupported], undefined>;
332
332
  readonly docType: v.StringSchema<undefined>;
333
333
  readonly nameSpaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.StrictObjectSchema<{
334
- readonly intentToRetain: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
334
+ readonly intentToRetain: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
335
335
  }, undefined>, undefined>, undefined>;
336
336
  }, undefined>, undefined>;
337
337
  readonly challenge: v.StringSchema<undefined>;
338
- readonly redirectUri: v.OptionalSchema<v.StringSchema<undefined>, never>;
339
- readonly walletProviderId: v.OptionalSchema<v.StringSchema<undefined>, never>;
340
- readonly dcApiSupported: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
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>;
341
341
  }, undefined>;
342
342
  export type CreateSessionResponse = v.InferOutput<typeof CreateSessionResponseValidator>;
343
343
  export declare const CreateSessionResponseValidator: v.UnionSchema<[v.ObjectSchema<{
@@ -347,7 +347,7 @@ export declare const CreateSessionResponseValidator: v.UnionSchema<[v.ObjectSche
347
347
  readonly sessionTtl: v.NumberSchema<undefined>;
348
348
  readonly request: v.RecordSchema<v.StringSchema<undefined>, v.AnySchema, undefined>;
349
349
  }, undefined>, v.ObjectSchema<{
350
- readonly type: v.OptionalSchema<v.LiteralSchema<SessionType.Openid4vp, undefined>, never>;
350
+ readonly type: v.OptionalSchema<v.LiteralSchema<SessionType.Openid4vp, undefined>, undefined>;
351
351
  readonly sessionId: v.StringSchema<undefined>;
352
352
  readonly sessionKey: v.StringSchema<undefined>;
353
353
  readonly sessionUrl: v.StringSchema<undefined>;
@@ -369,7 +369,7 @@ export type GetSessionStatusResponse = {
369
369
  };
370
370
  export declare const GetSessionStatusResponseValidator: v.UnionSchema<[v.ObjectSchema<{
371
371
  readonly status: v.PicklistSchema<[PresentationStatusCode.ResultReady], undefined>;
372
- readonly responseCode: v.OptionalSchema<v.StringSchema<undefined>, never>;
372
+ readonly responseCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
373
373
  }, undefined>, v.ObjectSchema<{
374
374
  readonly status: v.StringSchema<undefined>;
375
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>, never>;
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>, never>;
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>, never>;
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>, never>;
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>, never>;
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>, never>;
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>, never>;
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>, never>;
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>, never>;
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>, never>;
148
- }, undefined>], undefined>, never>;
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