@learncard/types 5.18.0 → 5.18.2
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/bitstring-status-list.d.ts +2 -2
- package/dist/clr.d.ts +20 -20
- package/dist/lcn.d.ts +146 -58
- package/dist/lcn.d.ts.map +1 -1
- package/dist/learncard.d.ts.map +1 -1
- package/dist/obv3.d.ts +28 -28
- package/dist/types.cjs.development.cjs +47 -3
- package/dist/types.cjs.development.cjs.map +2 -2
- package/dist/types.cjs.production.min.cjs +5 -5
- package/dist/types.cjs.production.min.cjs.map +3 -3
- package/dist/types.esm.js +47 -3
- package/dist/types.esm.js.map +2 -2
- package/dist/vc.d.ts +25 -25
- package/package.json +1 -1
- package/src/bitstring-status-list.ts +1 -1
- package/src/lcn.ts +49 -1
- package/src/learncard.ts +9 -0
- package/src/vc.ts +1 -1
package/dist/types.esm.js
CHANGED
|
@@ -84,7 +84,7 @@ var ProfileValidator = z.string().or(
|
|
|
84
84
|
}).catchall(z.any())
|
|
85
85
|
);
|
|
86
86
|
var CredentialSubjectValidator = z.object({ id: z.string().optional() }).catchall(z.any());
|
|
87
|
-
var CredentialStatusValidator = z.object({ type: z.string(), id: z.string() }).catchall(z.any());
|
|
87
|
+
var CredentialStatusValidator = z.object({ type: z.string(), id: z.string().optional() }).catchall(z.any());
|
|
88
88
|
var CredentialSchemaValidator = z.object({ id: z.string(), type: z.string() }).catchall(z.any());
|
|
89
89
|
var RefreshServiceValidator = z.object({ id: z.string().optional(), type: z.string() }).catchall(z.any());
|
|
90
90
|
var TermsOfUseValidator = z.object({ type: z.string(), id: z.string().optional() }).catchall(z.any());
|
|
@@ -505,8 +505,17 @@ var StatusCheckEntryValidator = z7.object({
|
|
|
505
505
|
statusListIndex: z7.string().optional()
|
|
506
506
|
});
|
|
507
507
|
var VerificationCheckValidator = z7.object({
|
|
508
|
+
/**
|
|
509
|
+
* Checks that completed successfully. This does not imply that warnings can be ignored.
|
|
510
|
+
*/
|
|
508
511
|
checks: z7.string().array(),
|
|
512
|
+
/**
|
|
513
|
+
* Security-relevant conditions that did not prevent the requested cryptographic checks from
|
|
514
|
+
* completing. In particular, a non-DID issuer warning means the signature is valid but the
|
|
515
|
+
* named URL issuer's authorization of that signing key was not established.
|
|
516
|
+
*/
|
|
509
517
|
warnings: z7.string().array(),
|
|
518
|
+
/** Verification failures that prevented one or more requested checks from succeeding. */
|
|
510
519
|
errors: z7.string().array(),
|
|
511
520
|
/**
|
|
512
521
|
* Per-entry results for the `credentialStatus` check, populated
|
|
@@ -666,6 +675,31 @@ var LCNPublicProfileValidator = LCNProfileValidator.pick({
|
|
|
666
675
|
isServiceProfile: true,
|
|
667
676
|
display: true
|
|
668
677
|
});
|
|
678
|
+
var LCNConnectionPromptStatusValidator = z11.enum(["PENDING", "SKIPPED", "CONNECTED"]);
|
|
679
|
+
var LCNConnectionPromptSurfaceValidator = z11.enum(["POST_CLAIM", "NOTIFICATION"]);
|
|
680
|
+
var LCNConnectionPromptActionStatusValidator = z11.enum([
|
|
681
|
+
"PENDING",
|
|
682
|
+
"SKIPPED",
|
|
683
|
+
"CONNECTED",
|
|
684
|
+
"STALE"
|
|
685
|
+
]);
|
|
686
|
+
var LCNConnectionPromptValidator = z11.object({
|
|
687
|
+
promptId: z11.string().uuid(),
|
|
688
|
+
status: LCNConnectionPromptStatusValidator,
|
|
689
|
+
surface: LCNConnectionPromptSurfaceValidator,
|
|
690
|
+
triggerId: z11.string(),
|
|
691
|
+
triggeredAt: z11.iso.datetime(),
|
|
692
|
+
updatedAt: z11.iso.datetime(),
|
|
693
|
+
counterpart: LCNPublicProfileValidator
|
|
694
|
+
});
|
|
695
|
+
var LCNConnectionPromptActionResultValidator = z11.object({
|
|
696
|
+
promptId: z11.string().uuid(),
|
|
697
|
+
status: LCNConnectionPromptActionStatusValidator
|
|
698
|
+
});
|
|
699
|
+
var LCNConnectionPromptMetadataValidator = z11.object({
|
|
700
|
+
promptId: z11.string().uuid(),
|
|
701
|
+
counterpartProfileId: z11.string()
|
|
702
|
+
});
|
|
669
703
|
var LCNAuthedProfileValidator = LCNPublicProfileValidator.extend({
|
|
670
704
|
bio: LCNProfileValidator.shape.bio,
|
|
671
705
|
websiteLink: LCNProfileValidator.shape.websiteLink,
|
|
@@ -1230,12 +1264,15 @@ var LCNNotificationInboxValidator = z11.object({
|
|
|
1230
1264
|
}),
|
|
1231
1265
|
timestamp: z11.iso.datetime().optional()
|
|
1232
1266
|
});
|
|
1267
|
+
var LCNNotificationMetadataValidator = z11.object({
|
|
1268
|
+
connectionPrompt: LCNConnectionPromptMetadataValidator.optional()
|
|
1269
|
+
}).catchall(z11.unknown());
|
|
1233
1270
|
var LCNNotificationDataValidator = z11.object({
|
|
1234
1271
|
vcUris: z11.array(z11.string()).optional(),
|
|
1235
1272
|
vpUris: z11.array(z11.string()).optional(),
|
|
1236
1273
|
transaction: ConsentFlowTransactionValidator.optional(),
|
|
1237
1274
|
inbox: LCNNotificationInboxValidator.optional(),
|
|
1238
|
-
metadata:
|
|
1275
|
+
metadata: LCNNotificationMetadataValidator.optional()
|
|
1239
1276
|
}).loose();
|
|
1240
1277
|
var LCNNotificationValidator = z11.object({
|
|
1241
1278
|
type: LCNNotificationTypeEnumValidator,
|
|
@@ -1985,7 +2022,7 @@ var BitstringStatusListEntryValidator = z12.object({
|
|
|
1985
2022
|
id: z12.string().optional(),
|
|
1986
2023
|
type: z12.literal("BitstringStatusListEntry"),
|
|
1987
2024
|
statusPurpose: BitstringStatusPurposeValidator,
|
|
1988
|
-
statusListIndex: z12.string(),
|
|
2025
|
+
statusListIndex: z12.string().or(z12.number().int().nonnegative()),
|
|
1989
2026
|
statusListCredential: z12.string()
|
|
1990
2027
|
});
|
|
1991
2028
|
var AllocatedBitstringStatusListEntryValidator = BitstringStatusListEntryValidator.extend({
|
|
@@ -2238,6 +2275,12 @@ export {
|
|
|
2238
2275
|
LCNBoostClaimLinkSigningAuthorityValidator,
|
|
2239
2276
|
LCNBoostStatus,
|
|
2240
2277
|
LCNConnectionProfileValidator,
|
|
2278
|
+
LCNConnectionPromptActionResultValidator,
|
|
2279
|
+
LCNConnectionPromptActionStatusValidator,
|
|
2280
|
+
LCNConnectionPromptMetadataValidator,
|
|
2281
|
+
LCNConnectionPromptStatusValidator,
|
|
2282
|
+
LCNConnectionPromptSurfaceValidator,
|
|
2283
|
+
LCNConnectionPromptValidator,
|
|
2241
2284
|
LCNDomainOrOriginValidator,
|
|
2242
2285
|
LCNInboxContactMethodValidator,
|
|
2243
2286
|
LCNInboxStatusEnumValidator,
|
|
@@ -2249,6 +2292,7 @@ export {
|
|
|
2249
2292
|
LCNNotificationDataValidator,
|
|
2250
2293
|
LCNNotificationInboxValidator,
|
|
2251
2294
|
LCNNotificationMessageValidator,
|
|
2295
|
+
LCNNotificationMetadataValidator,
|
|
2252
2296
|
LCNNotificationTypeEnumValidator,
|
|
2253
2297
|
LCNNotificationValidator,
|
|
2254
2298
|
LCNProfileConnectionStatusEnum,
|