@learncard/types 5.19.0 → 5.21.0
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/auth.d.ts +35 -2
- package/dist/auth.d.ts.map +1 -1
- package/dist/clr.d.ts +8 -8
- package/dist/credential-refresh.d.ts +65 -12
- package/dist/credential-refresh.d.ts.map +1 -1
- package/dist/did.d.ts +2 -2
- package/dist/lcn.d.ts +5218 -2351
- package/dist/lcn.d.ts.map +1 -1
- package/dist/obv3.d.ts +8 -8
- package/dist/types.cjs.development.cjs +417 -201
- package/dist/types.cjs.development.cjs.map +3 -3
- package/dist/types.cjs.production.min.cjs +23 -23
- package/dist/types.cjs.production.min.cjs.map +4 -4
- package/dist/types.esm.js +1261 -1045
- package/dist/types.esm.js.map +3 -3
- package/dist/vc.d.ts +13 -13
- package/dist/vc.d.ts.map +1 -1
- package/dist/vc.test.d.ts +2 -0
- package/dist/vc.test.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/auth.ts +55 -4
- package/src/credential-refresh.ts +35 -1
- package/src/lcn.ts +283 -18
- package/src/vc.test.ts +35 -0
- package/src/vc.ts +14 -2
package/dist/auth.d.ts
CHANGED
|
@@ -74,6 +74,22 @@ export interface PhoneVerificationHandle {
|
|
|
74
74
|
/** Platform-specific confirmation object (e.g. Firebase ConfirmationResult) */
|
|
75
75
|
_internal?: unknown;
|
|
76
76
|
}
|
|
77
|
+
/** Sign-in features available to the UI, independent of the provider name. */
|
|
78
|
+
export interface SignInCapabilities {
|
|
79
|
+
readonly emailLink: boolean;
|
|
80
|
+
/** Email OTP is verified by the app's server, then exchanged via customToken. */
|
|
81
|
+
readonly emailOtp: boolean;
|
|
82
|
+
readonly phoneOtp: boolean;
|
|
83
|
+
readonly google: boolean;
|
|
84
|
+
readonly apple: boolean;
|
|
85
|
+
readonly social: boolean;
|
|
86
|
+
readonly customToken: boolean;
|
|
87
|
+
readonly deleteAccount: boolean;
|
|
88
|
+
}
|
|
89
|
+
export interface SocialSignInOptions {
|
|
90
|
+
/** Restore a session using the existing re-authentication interaction. */
|
|
91
|
+
intent?: 'signIn' | 'reauthenticate';
|
|
92
|
+
}
|
|
77
93
|
/**
|
|
78
94
|
* Abstract sign-in adapter interface.
|
|
79
95
|
*
|
|
@@ -91,6 +107,7 @@ export interface PhoneVerificationHandle {
|
|
|
91
107
|
*/
|
|
92
108
|
export interface SignInAdapter {
|
|
93
109
|
readonly providerType: AuthProviderType;
|
|
110
|
+
readonly capabilities: SignInCapabilities;
|
|
94
111
|
/**
|
|
95
112
|
* Subscribe to auth-state changes. The callback fires immediately with
|
|
96
113
|
* the current state and again on every sign-in / sign-out.
|
|
@@ -103,6 +120,8 @@ export interface SignInAdapter {
|
|
|
103
120
|
sendEmailLink(email: string, redirectUrl?: string): Promise<void>;
|
|
104
121
|
verifyEmailLink(email: string, link: string): Promise<AuthUser>;
|
|
105
122
|
isEmailLink(link: string): boolean;
|
|
123
|
+
/** Authoritative provider check; isEmailLink remains a synchronous hint. */
|
|
124
|
+
validateEmailLink(link: string): Promise<boolean>;
|
|
106
125
|
/**
|
|
107
126
|
* Send an SMS OTP to the given number.
|
|
108
127
|
* On web this sets up a RecaptchaVerifier transparently.
|
|
@@ -112,19 +131,33 @@ export interface SignInAdapter {
|
|
|
112
131
|
* Confirm a phone OTP using the handle returned by `sendPhoneOtp()`.
|
|
113
132
|
*/
|
|
114
133
|
confirmPhoneOtp(handle: PhoneVerificationHandle, code: string | number): Promise<AuthUser>;
|
|
134
|
+
/** Preferred API: confirm the most recent request without exposing SDK state. */
|
|
135
|
+
confirmPhoneOtp(code: string | number): Promise<AuthUser>;
|
|
136
|
+
/** Fires when a code is ready for entry, on either platform. */
|
|
137
|
+
onPhoneCodeSent(callback: () => void): () => void;
|
|
138
|
+
/** Auto-retrieved code; call confirmPhoneOtp before starting key derivation. */
|
|
139
|
+
onPhoneVerificationCompleted(callback: (code: string | undefined) => void): () => void;
|
|
140
|
+
onPhoneVerificationFailed(callback: (error: unknown) => void): () => void;
|
|
115
141
|
/**
|
|
116
142
|
* Confirm a phone OTP using a native verificationId (Capacitor auto-verify
|
|
117
143
|
* path). Falls back to `confirmPhoneOtp` when not implemented.
|
|
118
144
|
*/
|
|
119
145
|
confirmNativePhoneOtp?(verificationId: string, code: string | number): Promise<AuthUser>;
|
|
120
|
-
signInWithGoogle(): Promise<AuthUser>;
|
|
121
|
-
signInWithApple(): Promise<AuthUser>;
|
|
146
|
+
signInWithGoogle(options?: SocialSignInOptions): Promise<AuthUser>;
|
|
147
|
+
signInWithApple(options?: SocialSignInOptions): Promise<AuthUser>;
|
|
122
148
|
/** Check for a pending OAuth redirect result (e.g. Apple on web). */
|
|
123
149
|
checkRedirectResult?(): Promise<AuthUser | null>;
|
|
124
150
|
signInWithCustomToken(token: string): Promise<AuthUser>;
|
|
125
151
|
/** Sign in with an OIDC credential (e.g. Keycloak World Scouts SSO). */
|
|
126
152
|
signInWithOidcCredential?(providerId: string, idToken: string): Promise<AuthUser>;
|
|
127
153
|
deleteAccount(): Promise<void>;
|
|
154
|
+
/** Update the signed-in user's display profile, when supported. */
|
|
155
|
+
updateProfile?(profile: {
|
|
156
|
+
displayName?: string | null;
|
|
157
|
+
photoUrl?: string | null;
|
|
158
|
+
}): Promise<void>;
|
|
159
|
+
/** Limit the auth session to this browser tab on a public computer. */
|
|
160
|
+
setSessionPersistence?(sessionOnly: boolean): Promise<void>;
|
|
128
161
|
signOut(): Promise<void>;
|
|
129
162
|
/** Tear down any DOM elements created by the adapter (e.g. RecaptchaVerifier). */
|
|
130
163
|
cleanup?(): void;
|
package/dist/auth.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH;;;;;GAKG;AACH,qBAAa,gBAAiB,SAAQ,KAAK;aAGnB,MAAM,EAAE,SAAS,GAAG,YAAY,GAAG,SAAS,GAAG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,EAClB,KAAK,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,CAAC;IAIjB;;;;;;OAMG;IACH,oBAAoB,CAAC,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAEhD;;;OAGG;IACH,sBAAsB,CAAC,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAIxD;;;;;;;;;OASG;IACH,aAAa,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAIrC,kGAAkG;IAClG,uBAAuB,IAAI,MAAM,EAAE,CAAC;IAEpC,iEAAiE;IACjE,OAAO,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7B"}
|
package/dist/clr.d.ts
CHANGED
|
@@ -305,7 +305,7 @@ export declare const ClrSubjectValidator: z.ZodObject<{
|
|
|
305
305
|
}, z.core.$strip>;
|
|
306
306
|
proof: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
307
307
|
type: z.ZodString;
|
|
308
|
-
created: z.ZodString
|
|
308
|
+
created: z.ZodOptional<z.ZodString>;
|
|
309
309
|
challenge: z.ZodOptional<z.ZodString>;
|
|
310
310
|
domain: z.ZodOptional<z.ZodString>;
|
|
311
311
|
nonce: z.ZodOptional<z.ZodString>;
|
|
@@ -314,7 +314,7 @@ export declare const ClrSubjectValidator: z.ZodObject<{
|
|
|
314
314
|
jws: z.ZodOptional<z.ZodString>;
|
|
315
315
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
316
316
|
type: z.ZodString;
|
|
317
|
-
created: z.ZodString
|
|
317
|
+
created: z.ZodOptional<z.ZodString>;
|
|
318
318
|
challenge: z.ZodOptional<z.ZodString>;
|
|
319
319
|
domain: z.ZodOptional<z.ZodString>;
|
|
320
320
|
nonce: z.ZodOptional<z.ZodString>;
|
|
@@ -749,7 +749,7 @@ export declare const UnsignedClrCredentialValidator: z.ZodObject<{
|
|
|
749
749
|
}, z.core.$strip>;
|
|
750
750
|
proof: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
751
751
|
type: z.ZodString;
|
|
752
|
-
created: z.ZodString
|
|
752
|
+
created: z.ZodOptional<z.ZodString>;
|
|
753
753
|
challenge: z.ZodOptional<z.ZodString>;
|
|
754
754
|
domain: z.ZodOptional<z.ZodString>;
|
|
755
755
|
nonce: z.ZodOptional<z.ZodString>;
|
|
@@ -758,7 +758,7 @@ export declare const UnsignedClrCredentialValidator: z.ZodObject<{
|
|
|
758
758
|
jws: z.ZodOptional<z.ZodString>;
|
|
759
759
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
760
760
|
type: z.ZodString;
|
|
761
|
-
created: z.ZodString
|
|
761
|
+
created: z.ZodOptional<z.ZodString>;
|
|
762
762
|
challenge: z.ZodOptional<z.ZodString>;
|
|
763
763
|
domain: z.ZodOptional<z.ZodString>;
|
|
764
764
|
nonce: z.ZodOptional<z.ZodString>;
|
|
@@ -1069,7 +1069,7 @@ export declare const ClrCredentialValidator: z.ZodObject<{
|
|
|
1069
1069
|
}, z.core.$strip>;
|
|
1070
1070
|
proof: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1071
1071
|
type: z.ZodString;
|
|
1072
|
-
created: z.ZodString
|
|
1072
|
+
created: z.ZodOptional<z.ZodString>;
|
|
1073
1073
|
challenge: z.ZodOptional<z.ZodString>;
|
|
1074
1074
|
domain: z.ZodOptional<z.ZodString>;
|
|
1075
1075
|
nonce: z.ZodOptional<z.ZodString>;
|
|
@@ -1078,7 +1078,7 @@ export declare const ClrCredentialValidator: z.ZodObject<{
|
|
|
1078
1078
|
jws: z.ZodOptional<z.ZodString>;
|
|
1079
1079
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
1080
1080
|
type: z.ZodString;
|
|
1081
|
-
created: z.ZodString
|
|
1081
|
+
created: z.ZodOptional<z.ZodString>;
|
|
1082
1082
|
challenge: z.ZodOptional<z.ZodString>;
|
|
1083
1083
|
domain: z.ZodOptional<z.ZodString>;
|
|
1084
1084
|
nonce: z.ZodOptional<z.ZodString>;
|
|
@@ -1090,7 +1090,7 @@ export declare const ClrCredentialValidator: z.ZodObject<{
|
|
|
1090
1090
|
partial: z.ZodOptional<z.ZodBoolean>;
|
|
1091
1091
|
proof: z.ZodUnion<[z.ZodObject<{
|
|
1092
1092
|
type: z.ZodString;
|
|
1093
|
-
created: z.ZodString
|
|
1093
|
+
created: z.ZodOptional<z.ZodString>;
|
|
1094
1094
|
challenge: z.ZodOptional<z.ZodString>;
|
|
1095
1095
|
domain: z.ZodOptional<z.ZodString>;
|
|
1096
1096
|
nonce: z.ZodOptional<z.ZodString>;
|
|
@@ -1099,7 +1099,7 @@ export declare const ClrCredentialValidator: z.ZodObject<{
|
|
|
1099
1099
|
jws: z.ZodOptional<z.ZodString>;
|
|
1100
1100
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
1101
1101
|
type: z.ZodString;
|
|
1102
|
-
created: z.ZodString
|
|
1102
|
+
created: z.ZodOptional<z.ZodString>;
|
|
1103
1103
|
challenge: z.ZodOptional<z.ZodString>;
|
|
1104
1104
|
domain: z.ZodOptional<z.ZodString>;
|
|
1105
1105
|
nonce: z.ZodOptional<z.ZodString>;
|
|
@@ -61,6 +61,59 @@ export declare const AllocateCredentialRefreshResultValidator: z.ZodObject<{
|
|
|
61
61
|
}, z.core.$catchall<z.ZodAny>>;
|
|
62
62
|
}, z.core.$strip>;
|
|
63
63
|
export type AllocateCredentialRefreshResult = z.infer<typeof AllocateCredentialRefreshResultValidator>;
|
|
64
|
+
/**
|
|
65
|
+
* Issuance metadata returned to the authenticated issuer after a refreshable send
|
|
66
|
+
* (unified send with `refresh: true`, or `sendBoost` with `enableRefresh: true`).
|
|
67
|
+
*
|
|
68
|
+
* Populated from the actual signed version 1 credential — never from the template or
|
|
69
|
+
* allocation alone. This is issuance metadata only: it must not contain credential
|
|
70
|
+
* claims, subject bodies, plaintext VCs, or JWEs. The issuer retains its own
|
|
71
|
+
* template/claims alongside this receipt, and preserves the exact `credentialStatus`
|
|
72
|
+
* descriptor when publishing an update (no new allocation).
|
|
73
|
+
*/
|
|
74
|
+
export declare const ManagedCredentialRefreshReceiptValidator: z.ZodObject<{
|
|
75
|
+
refreshId: z.ZodString;
|
|
76
|
+
refreshService: z.ZodObject<{
|
|
77
|
+
id: z.ZodString;
|
|
78
|
+
type: z.ZodLiteral<"LearnCardCredentialRefresh2026">;
|
|
79
|
+
authorization: z.ZodOptional<z.ZodObject<{
|
|
80
|
+
type: z.ZodLiteral<"LearnCardDIDAuth">;
|
|
81
|
+
}, z.core.$catchall<z.ZodAny>>>;
|
|
82
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
83
|
+
credentialId: z.ZodString;
|
|
84
|
+
issuerDid: z.ZodString;
|
|
85
|
+
holderDid: z.ZodString;
|
|
86
|
+
credentialStatus: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
87
|
+
type: z.ZodString;
|
|
88
|
+
id: z.ZodOptional<z.ZodString>;
|
|
89
|
+
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
90
|
+
type: z.ZodString;
|
|
91
|
+
id: z.ZodOptional<z.ZodString>;
|
|
92
|
+
}, z.core.$catchall<z.ZodAny>>>]>>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export type ManagedCredentialRefreshReceipt = z.infer<typeof ManagedCredentialRefreshReceiptValidator>;
|
|
95
|
+
/** Allocation metadata for deferred Inbox issuance. No holder is invented before claim. */
|
|
96
|
+
export declare const InboxCredentialRefreshReceiptValidator: z.ZodObject<{
|
|
97
|
+
refreshService: z.ZodObject<{
|
|
98
|
+
id: z.ZodString;
|
|
99
|
+
type: z.ZodLiteral<"LearnCardCredentialRefresh2026">;
|
|
100
|
+
authorization: z.ZodOptional<z.ZodObject<{
|
|
101
|
+
type: z.ZodLiteral<"LearnCardDIDAuth">;
|
|
102
|
+
}, z.core.$catchall<z.ZodAny>>>;
|
|
103
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
104
|
+
credentialStatus: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
105
|
+
type: z.ZodString;
|
|
106
|
+
id: z.ZodOptional<z.ZodString>;
|
|
107
|
+
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
108
|
+
type: z.ZodString;
|
|
109
|
+
id: z.ZodOptional<z.ZodString>;
|
|
110
|
+
}, z.core.$catchall<z.ZodAny>>>]>>;
|
|
111
|
+
credentialId: z.ZodString;
|
|
112
|
+
refreshId: z.ZodString;
|
|
113
|
+
issuerDid: z.ZodString;
|
|
114
|
+
holderDid: z.ZodOptional<z.ZodString>;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
export type InboxCredentialRefreshReceipt = z.infer<typeof InboxCredentialRefreshReceiptValidator>;
|
|
64
117
|
export declare const CredentialRefreshSigningModeValidator: z.ZodEnum<{
|
|
65
118
|
"issuer-signed": "issuer-signed";
|
|
66
119
|
"signing-authority": "signing-authority";
|
|
@@ -219,7 +272,7 @@ export declare const PublishIssuerSignedRefreshValidator: z.ZodObject<{
|
|
|
219
272
|
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>>;
|
|
220
273
|
proof: z.ZodUnion<[z.ZodObject<{
|
|
221
274
|
type: z.ZodString;
|
|
222
|
-
created: z.ZodString
|
|
275
|
+
created: z.ZodOptional<z.ZodString>;
|
|
223
276
|
challenge: z.ZodOptional<z.ZodString>;
|
|
224
277
|
domain: z.ZodOptional<z.ZodString>;
|
|
225
278
|
nonce: z.ZodOptional<z.ZodString>;
|
|
@@ -228,7 +281,7 @@ export declare const PublishIssuerSignedRefreshValidator: z.ZodObject<{
|
|
|
228
281
|
jws: z.ZodOptional<z.ZodString>;
|
|
229
282
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
230
283
|
type: z.ZodString;
|
|
231
|
-
created: z.ZodString
|
|
284
|
+
created: z.ZodOptional<z.ZodString>;
|
|
232
285
|
challenge: z.ZodOptional<z.ZodString>;
|
|
233
286
|
domain: z.ZodOptional<z.ZodString>;
|
|
234
287
|
nonce: z.ZodOptional<z.ZodString>;
|
|
@@ -566,7 +619,7 @@ export declare const PublishCredentialRefreshInputValidator: z.ZodObject<{
|
|
|
566
619
|
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>>;
|
|
567
620
|
proof: z.ZodUnion<[z.ZodObject<{
|
|
568
621
|
type: z.ZodString;
|
|
569
|
-
created: z.ZodString
|
|
622
|
+
created: z.ZodOptional<z.ZodString>;
|
|
570
623
|
challenge: z.ZodOptional<z.ZodString>;
|
|
571
624
|
domain: z.ZodOptional<z.ZodString>;
|
|
572
625
|
nonce: z.ZodOptional<z.ZodString>;
|
|
@@ -575,7 +628,7 @@ export declare const PublishCredentialRefreshInputValidator: z.ZodObject<{
|
|
|
575
628
|
jws: z.ZodOptional<z.ZodString>;
|
|
576
629
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
577
630
|
type: z.ZodString;
|
|
578
|
-
created: z.ZodString
|
|
631
|
+
created: z.ZodOptional<z.ZodString>;
|
|
579
632
|
challenge: z.ZodOptional<z.ZodString>;
|
|
580
633
|
domain: z.ZodOptional<z.ZodString>;
|
|
581
634
|
nonce: z.ZodOptional<z.ZodString>;
|
|
@@ -959,7 +1012,7 @@ export declare const PublicCredentialRefreshEnvelopeValidator: z.ZodObject<{
|
|
|
959
1012
|
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>>;
|
|
960
1013
|
proof: z.ZodUnion<[z.ZodObject<{
|
|
961
1014
|
type: z.ZodString;
|
|
962
|
-
created: z.ZodString
|
|
1015
|
+
created: z.ZodOptional<z.ZodString>;
|
|
963
1016
|
challenge: z.ZodOptional<z.ZodString>;
|
|
964
1017
|
domain: z.ZodOptional<z.ZodString>;
|
|
965
1018
|
nonce: z.ZodOptional<z.ZodString>;
|
|
@@ -968,7 +1021,7 @@ export declare const PublicCredentialRefreshEnvelopeValidator: z.ZodObject<{
|
|
|
968
1021
|
jws: z.ZodOptional<z.ZodString>;
|
|
969
1022
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
970
1023
|
type: z.ZodString;
|
|
971
|
-
created: z.ZodString
|
|
1024
|
+
created: z.ZodOptional<z.ZodString>;
|
|
972
1025
|
challenge: z.ZodOptional<z.ZodString>;
|
|
973
1026
|
domain: z.ZodOptional<z.ZodString>;
|
|
974
1027
|
nonce: z.ZodOptional<z.ZodString>;
|
|
@@ -1165,7 +1218,7 @@ export declare const CredentialRefreshResponseEnvelopeValidator: z.ZodDiscrimina
|
|
|
1165
1218
|
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>>;
|
|
1166
1219
|
proof: z.ZodUnion<[z.ZodObject<{
|
|
1167
1220
|
type: z.ZodString;
|
|
1168
|
-
created: z.ZodString
|
|
1221
|
+
created: z.ZodOptional<z.ZodString>;
|
|
1169
1222
|
challenge: z.ZodOptional<z.ZodString>;
|
|
1170
1223
|
domain: z.ZodOptional<z.ZodString>;
|
|
1171
1224
|
nonce: z.ZodOptional<z.ZodString>;
|
|
@@ -1174,7 +1227,7 @@ export declare const CredentialRefreshResponseEnvelopeValidator: z.ZodDiscrimina
|
|
|
1174
1227
|
jws: z.ZodOptional<z.ZodString>;
|
|
1175
1228
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
1176
1229
|
type: z.ZodString;
|
|
1177
|
-
created: z.ZodString
|
|
1230
|
+
created: z.ZodOptional<z.ZodString>;
|
|
1178
1231
|
challenge: z.ZodOptional<z.ZodString>;
|
|
1179
1232
|
domain: z.ZodOptional<z.ZodString>;
|
|
1180
1233
|
nonce: z.ZodOptional<z.ZodString>;
|
|
@@ -1385,7 +1438,7 @@ export declare const CredentialRefreshUpdatedResultValidator: z.ZodObject<{
|
|
|
1385
1438
|
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>>;
|
|
1386
1439
|
proof: z.ZodUnion<[z.ZodObject<{
|
|
1387
1440
|
type: z.ZodString;
|
|
1388
|
-
created: z.ZodString
|
|
1441
|
+
created: z.ZodOptional<z.ZodString>;
|
|
1389
1442
|
challenge: z.ZodOptional<z.ZodString>;
|
|
1390
1443
|
domain: z.ZodOptional<z.ZodString>;
|
|
1391
1444
|
nonce: z.ZodOptional<z.ZodString>;
|
|
@@ -1394,7 +1447,7 @@ export declare const CredentialRefreshUpdatedResultValidator: z.ZodObject<{
|
|
|
1394
1447
|
jws: z.ZodOptional<z.ZodString>;
|
|
1395
1448
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
1396
1449
|
type: z.ZodString;
|
|
1397
|
-
created: z.ZodString
|
|
1450
|
+
created: z.ZodOptional<z.ZodString>;
|
|
1398
1451
|
challenge: z.ZodOptional<z.ZodString>;
|
|
1399
1452
|
domain: z.ZodOptional<z.ZodString>;
|
|
1400
1453
|
nonce: z.ZodOptional<z.ZodString>;
|
|
@@ -1587,7 +1640,7 @@ export declare const CredentialRefreshResultValidator: z.ZodDiscriminatedUnion<[
|
|
|
1587
1640
|
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodAny>]>>]>>;
|
|
1588
1641
|
proof: z.ZodUnion<[z.ZodObject<{
|
|
1589
1642
|
type: z.ZodString;
|
|
1590
|
-
created: z.ZodString
|
|
1643
|
+
created: z.ZodOptional<z.ZodString>;
|
|
1591
1644
|
challenge: z.ZodOptional<z.ZodString>;
|
|
1592
1645
|
domain: z.ZodOptional<z.ZodString>;
|
|
1593
1646
|
nonce: z.ZodOptional<z.ZodString>;
|
|
@@ -1596,7 +1649,7 @@ export declare const CredentialRefreshResultValidator: z.ZodDiscriminatedUnion<[
|
|
|
1596
1649
|
jws: z.ZodOptional<z.ZodString>;
|
|
1597
1650
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
1598
1651
|
type: z.ZodString;
|
|
1599
|
-
created: z.ZodString
|
|
1652
|
+
created: z.ZodOptional<z.ZodString>;
|
|
1600
1653
|
challenge: z.ZodOptional<z.ZodString>;
|
|
1601
1654
|
domain: z.ZodOptional<z.ZodString>;
|
|
1602
1655
|
nonce: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-refresh.d.ts","sourceRoot":"","sources":["../src/credential-refresh.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B;;;;;;;GAOG;AAEH,4EAA4E;AAC5E,eAAO,MAAM,sCAAsC;;8BAE7B,CAAC;AACvB,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AAEnG;;;;;GAKG;AACH,eAAO,MAAM,wCAAwC;;;;;;8BAM/B,CAAC;AACvB,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,wCAAwC,CAClD,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,yCAAyC;;;8BAKhC,CAAC;AACvB,eAAO,MAAM,0CAA0C;;;;;;;;;gCAGrD,CAAC;AACH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,0CAA0C,CACpD,CAAC;AAIF,eAAO,MAAM,uCAAuC;;;;;;iBAMlD,CAAC;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,uCAAuC,CACjD,CAAC;AAEF,eAAO,MAAM,wCAAwC;;;;;;;;;iBAKnD,CAAC;AACH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,wCAAwC,CAClD,CAAC;AAIF,eAAO,MAAM,qCAAqC;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKlD,CAAC;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,uCAAuC,CACjD,CAAC;AAEF,eAAO,MAAM,yCAAyC;;;;iBAIpD,CAAC;AACH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,yCAAyC,CACnD,CAAC;AAEF,eAAO,MAAM,2CAA2C;;iBAEtD,CAAC;AACH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,2CAA2C,CACrD,CAAC;AAEF,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;iBAIjD,CAAC;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AAEnG,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAK3C,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
package/dist/did.d.ts
CHANGED
|
@@ -154,7 +154,7 @@ export declare const DidDocumentValidator: z.ZodObject<{
|
|
|
154
154
|
}, z.core.$catchall<z.ZodAny>>>>;
|
|
155
155
|
proof: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
156
156
|
type: z.ZodString;
|
|
157
|
-
created: z.ZodString
|
|
157
|
+
created: z.ZodOptional<z.ZodString>;
|
|
158
158
|
challenge: z.ZodOptional<z.ZodString>;
|
|
159
159
|
domain: z.ZodOptional<z.ZodString>;
|
|
160
160
|
nonce: z.ZodOptional<z.ZodString>;
|
|
@@ -163,7 +163,7 @@ export declare const DidDocumentValidator: z.ZodObject<{
|
|
|
163
163
|
jws: z.ZodOptional<z.ZodString>;
|
|
164
164
|
}, z.core.$catchall<z.ZodAny>>, z.ZodArray<z.ZodObject<{
|
|
165
165
|
type: z.ZodString;
|
|
166
|
-
created: z.ZodString
|
|
166
|
+
created: z.ZodOptional<z.ZodString>;
|
|
167
167
|
challenge: z.ZodOptional<z.ZodString>;
|
|
168
168
|
domain: z.ZodOptional<z.ZodString>;
|
|
169
169
|
nonce: z.ZodOptional<z.ZodString>;
|