@learncard/types 5.18.0 → 5.18.1

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/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
@@ -1985,7 +1994,7 @@ var BitstringStatusListEntryValidator = z12.object({
1985
1994
  id: z12.string().optional(),
1986
1995
  type: z12.literal("BitstringStatusListEntry"),
1987
1996
  statusPurpose: BitstringStatusPurposeValidator,
1988
- statusListIndex: z12.string(),
1997
+ statusListIndex: z12.string().or(z12.number().int().nonnegative()),
1989
1998
  statusListCredential: z12.string()
1990
1999
  });
1991
2000
  var AllocatedBitstringStatusListEntryValidator = BitstringStatusListEntryValidator.extend({