@learncard/types 5.13.6 → 5.15.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/types.esm.js CHANGED
@@ -445,10 +445,18 @@ var ClrCredentialValidator = UnsignedClrCredentialValidator.extend({
445
445
 
446
446
  // src/learncard.ts
447
447
  import { z as z6 } from "zod";
448
+ var StatusCheckEntryValidator = z6.object({
449
+ entryType: z6.string(),
450
+ statusPurpose: z6.string(),
451
+ isSet: z6.boolean(),
452
+ statusListCredential: z6.string().optional(),
453
+ statusListIndex: z6.string().optional()
454
+ });
448
455
  var VerificationCheckValidator = z6.object({
449
456
  checks: z6.string().array(),
450
457
  warnings: z6.string().array(),
451
- errors: z6.string().array()
458
+ errors: z6.string().array(),
459
+ status: StatusCheckEntryValidator.array().optional()
452
460
  });
453
461
  var VerificationStatusValidator = z6.enum(["Success", "Failed", "Error"]);
454
462
  var VerificationStatusEnum = VerificationStatusValidator.enum;
@@ -1745,7 +1753,9 @@ var SummaryCredentialDataValidator = z10.object({
1745
1753
  z10.object({
1746
1754
  title: z10.string().describe("Title of the suggested next step"),
1747
1755
  description: z10.string().describe("Description explaining why this next step is recommended"),
1748
- keywords: SummaryCredentialKeywordValidator
1756
+ keywords: SummaryCredentialKeywordValidator.optional().describe(
1757
+ "Optional taxonomy keywords for occupations/careers/jobs/skills/fieldOfStudy. Omit if not relevant."
1758
+ )
1749
1759
  })
1750
1760
  ).describe("Recommended follow-up activities or learning modules"),
1751
1761
  reflections: z10.array(
@@ -1869,6 +1879,32 @@ var AuthSessionError = class extends Error {
1869
1879
  __name(this, "AuthSessionError");
1870
1880
  }
1871
1881
  };
1882
+
1883
+ // src/bitstring-status-list.ts
1884
+ import { z as z11 } from "zod";
1885
+ var BITSTRING_STATUS_PURPOSES = ["revocation", "suspension"];
1886
+ var DEFAULT_BITSTRING_STATUS_LIST_SIZE = 131072;
1887
+ var BitstringStatusPurposeValidator = z11.enum(BITSTRING_STATUS_PURPOSES);
1888
+ var BitstringStatusListEntryValidator = z11.object({
1889
+ id: z11.string().optional(),
1890
+ type: z11.literal("BitstringStatusListEntry"),
1891
+ statusPurpose: BitstringStatusPurposeValidator,
1892
+ statusListIndex: z11.string(),
1893
+ statusListCredential: z11.string()
1894
+ });
1895
+ var AllocatedBitstringStatusListEntryValidator = BitstringStatusListEntryValidator.extend({
1896
+ id: z11.string()
1897
+ });
1898
+ var BitstringStatusListCredentialSubjectValidator = z11.object({
1899
+ id: z11.string().optional(),
1900
+ type: z11.literal("BitstringStatusList"),
1901
+ statusPurpose: BitstringStatusPurposeValidator,
1902
+ encodedList: z11.string()
1903
+ });
1904
+ var AllocateCredentialStatusInputValidator = z11.object({
1905
+ statusPurposes: z11.array(BitstringStatusPurposeValidator).optional(),
1906
+ listSize: z11.number().int().positive().optional()
1907
+ }).default({});
1872
1908
  export {
1873
1909
  AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX,
1874
1910
  AchievementCredentialValidator,
@@ -1881,6 +1917,8 @@ export {
1881
1917
  AgeRatingValidator,
1882
1918
  AlignmentTargetTypeValidator,
1883
1919
  AlignmentValidator,
1920
+ AllocateCredentialStatusInputValidator,
1921
+ AllocatedBitstringStatusListEntryValidator,
1884
1922
  AllowConnectionRequestsEnum,
1885
1923
  AppBoostValidator,
1886
1924
  AppEventInputValidator,
@@ -1898,6 +1936,10 @@ export {
1898
1936
  AuthGrantValidator,
1899
1937
  AuthSessionError,
1900
1938
  AutoBoostConfigValidator,
1939
+ BITSTRING_STATUS_PURPOSES,
1940
+ BitstringStatusListCredentialSubjectValidator,
1941
+ BitstringStatusListEntryValidator,
1942
+ BitstringStatusPurposeValidator,
1901
1943
  BoostPermissionsQueryValidator,
1902
1944
  BoostPermissionsValidator,
1903
1945
  BoostQueryValidator,
@@ -1959,6 +2001,7 @@ export {
1959
2001
  CredentialStatusValidator,
1960
2002
  CredentialSubjectValidator,
1961
2003
  CriteriaValidator,
2004
+ DEFAULT_BITSTRING_STATUS_LIST_SIZE,
1962
2005
  DeleteFrameworkInputValidator,
1963
2006
  DeleteSkillInputValidator,
1964
2007
  DidDocumentValidator,
@@ -2094,6 +2137,7 @@ export {
2094
2137
  SkillTreeNodeInputValidator,
2095
2138
  SkillTreeNodeValidator,
2096
2139
  SkillValidator,
2140
+ StatusCheckEntryValidator,
2097
2141
  StringQuery,
2098
2142
  SummaryCredentialDataValidator,
2099
2143
  SummaryCredentialKeywordValidator,