@learncard/types 5.15.0 → 5.17.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
@@ -97,6 +97,19 @@ var VC2EvidenceValidator = z.object({
97
97
  genre: z.string().optional(),
98
98
  audience: z.string().optional()
99
99
  }).catchall(z.any());
100
+ var TemplateRenderMethodValidator = z.object({
101
+ type: z.literal("TemplateRenderMethod"),
102
+ renderSuite: z.string(),
103
+ template: z.string(),
104
+ renderProperty: z.array(z.string()).optional(),
105
+ outputPreference: z.object({
106
+ mediaType: z.string()
107
+ }).optional()
108
+ });
109
+ var RenderMethodValidator = z.union([
110
+ TemplateRenderMethodValidator,
111
+ z.record(z.string(), z.any())
112
+ ]);
100
113
  var UnsignedVCValidator = z.object({
101
114
  "@context": ContextValidator,
102
115
  id: z.string().optional(),
@@ -120,7 +133,8 @@ var UnsignedVCValidator = z.object({
120
133
  validUntil: z.string().optional(),
121
134
  status: CredentialStatusValidator.or(CredentialStatusValidator.array()).optional(),
122
135
  termsOfUse: TermsOfUseValidator.or(TermsOfUseValidator.array()).optional(),
123
- evidence: z.union([VC2EvidenceValidator, z.array(VC2EvidenceValidator)]).optional()
136
+ evidence: z.union([VC2EvidenceValidator, z.array(VC2EvidenceValidator)]).optional(),
137
+ renderMethod: z.union([RenderMethodValidator, z.array(RenderMethodValidator)]).optional()
124
138
  }).catchall(z.any());
125
139
  var ProofValidator = z.object({
126
140
  type: z.string(),
@@ -443,76 +457,120 @@ var ClrCredentialValidator = UnsignedClrCredentialValidator.extend({
443
457
  proof: ProofValidator.or(ProofValidator.array())
444
458
  });
445
459
 
446
- // src/learncard.ts
460
+ // src/credential-format.ts
447
461
  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
- });
455
- var VerificationCheckValidator = z6.object({
456
- checks: z6.string().array(),
457
- warnings: z6.string().array(),
458
- errors: z6.string().array(),
462
+ var CredentialFormatValidator = z6.enum([
463
+ "w3c-vc-2.0",
464
+ "w3c-vc-1.1",
465
+ "jwt-vc-json",
466
+ "dc+sd-jwt",
467
+ "vc+sd-jwt",
468
+ "mso_mdoc"
469
+ ]);
470
+
471
+ // src/learncard.ts
472
+ import { z as z7 } from "zod";
473
+ var StatusCheckEntryValidator = z7.object({
474
+ /**
475
+ * The `credentialStatus.type` as it appeared on the credential.
476
+ * One of `BitstringStatusListEntry`, `StatusList2021Entry`,
477
+ * `RevocationList2020Status`, or any future custom status type.
478
+ */
479
+ entryType: z7.string(),
480
+ /**
481
+ * The claimed purpose of the entry. Standard values are
482
+ * `"revocation"` and `"suspension"`; the spec allows arbitrary
483
+ * strings.
484
+ */
485
+ statusPurpose: z7.string(),
486
+ /**
487
+ * Whether the bit at the credential's index in the status list
488
+ * bitstring was set.
489
+ */
490
+ isSet: z7.boolean(),
491
+ /** URL of the status list credential, when known. */
492
+ statusListCredential: z7.string().optional(),
493
+ /** Original (string) index within the status list. */
494
+ statusListIndex: z7.string().optional()
495
+ });
496
+ var VerificationCheckValidator = z7.object({
497
+ checks: z7.string().array(),
498
+ warnings: z7.string().array(),
499
+ errors: z7.string().array(),
500
+ /**
501
+ * Per-entry results for the `credentialStatus` check, populated
502
+ * by `@learncard/didkit-plugin` when the verified credential
503
+ * carries one or more `credentialStatus` entries. Empty / absent
504
+ * for credentials without a status entry.
505
+ *
506
+ * Marked `.optional()` because the underlying `ssi-ldp`
507
+ * serializer omits the field when empty (`skip_serializing_if`),
508
+ * so older WASM builds that pre-date the structured-status
509
+ * change still validate against this schema.
510
+ */
459
511
  status: StatusCheckEntryValidator.array().optional()
460
512
  });
461
- var VerificationStatusValidator = z6.enum(["Success", "Failed", "Error"]);
513
+ var VerificationStatusValidator = z7.enum(["Success", "Failed", "Error"]);
462
514
  var VerificationStatusEnum = VerificationStatusValidator.enum;
463
- var VerificationItemValidator = z6.object({
464
- check: z6.string(),
515
+ var VerificationItemValidator = z7.object({
516
+ check: z7.string(),
465
517
  status: VerificationStatusValidator,
466
- message: z6.string().optional(),
467
- details: z6.string().optional()
518
+ message: z7.string().optional(),
519
+ details: z7.string().optional()
468
520
  });
469
- var CredentialInfoValidator = z6.object({
470
- title: z6.string().optional(),
471
- createdAt: z6.string().optional(),
521
+ var CredentialInfoValidator = z7.object({
522
+ title: z7.string().optional(),
523
+ createdAt: z7.string().optional(),
472
524
  issuer: ProfileValidator.optional(),
473
525
  issuee: ProfileValidator.optional(),
474
526
  credentialSubject: CredentialSubjectValidator.optional()
475
527
  });
476
- var CredentialRecordValidator = z6.object({ id: z6.string(), uri: z6.string() }).catchall(z6.any());
528
+ var CredentialRecordValidator = z7.object({
529
+ id: z7.string(),
530
+ uri: z7.string(),
531
+ format: CredentialFormatValidator.optional(),
532
+ semanticType: z7.string().optional(),
533
+ rawWireForm: z7.string().optional()
534
+ }).catchall(z7.any());
477
535
 
478
536
  // src/learncloud.ts
479
- import { z as z8 } from "zod";
537
+ import { z as z9 } from "zod";
480
538
 
481
539
  // src/mongo.ts
482
- import { z as z7 } from "zod";
483
- var PaginationOptionsValidator = z7.object({
484
- limit: z7.number(),
485
- cursor: z7.string().optional(),
486
- sort: z7.string().optional()
540
+ import { z as z8 } from "zod";
541
+ var PaginationOptionsValidator = z8.object({
542
+ limit: z8.number(),
543
+ cursor: z8.string().optional(),
544
+ sort: z8.string().optional()
487
545
  });
488
- var PaginationResponseValidator = z7.object({
489
- cursor: z7.string().optional(),
490
- hasMore: z7.boolean()
546
+ var PaginationResponseValidator = z8.object({
547
+ cursor: z8.string().optional(),
548
+ hasMore: z8.boolean()
491
549
  });
492
550
 
493
551
  // src/learncloud.ts
494
- var EncryptedRecordValidator = z8.object({ encryptedRecord: JWEValidator, fields: z8.string().array() }).catchall(z8.any());
552
+ var EncryptedRecordValidator = z9.object({ encryptedRecord: JWEValidator, fields: z9.string().array() }).catchall(z9.any());
495
553
  var PaginatedEncryptedRecordsValidator = PaginationResponseValidator.extend({
496
554
  records: EncryptedRecordValidator.array()
497
555
  });
498
556
  var EncryptedCredentialRecordValidator = EncryptedRecordValidator.extend({
499
- id: z8.string()
557
+ id: z9.string()
500
558
  });
501
559
  var PaginatedEncryptedCredentialRecordsValidator = PaginationResponseValidator.extend({
502
560
  records: EncryptedCredentialRecordValidator.array()
503
561
  });
504
562
 
505
563
  // src/lcn.ts
506
- import { z as z10 } from "zod";
564
+ import { z as z11 } from "zod";
507
565
 
508
566
  // src/queries.ts
509
- import { z as z9 } from "zod";
567
+ import { z as z10 } from "zod";
510
568
  var parseRegexString = /* @__PURE__ */ __name((regexStr) => {
511
569
  const match = regexStr.match(/^\/(.*)\/([gimsuy]*)$/);
512
570
  if (!match) throw new Error("Invalid RegExp string format");
513
571
  return { pattern: match[1], flags: match[2] };
514
572
  }, "parseRegexString");
515
- var RegExpStringValidator = z9.string().refine(
573
+ var RegExpStringValidator = z10.string().refine(
516
574
  (str) => {
517
575
  try {
518
576
  parseRegexString(str);
@@ -532,54 +590,54 @@ var RegExpStringValidator = z9.string().refine(
532
590
  throw new Error(`Invalid RegExp: ${error.message}`);
533
591
  }
534
592
  }).meta({ override: { type: "string" } });
535
- var RegExpValidator = z9.instanceof(RegExp).meta({ override: { type: "string" } }).or(RegExpStringValidator).meta({ override: { type: "string" } });
536
- var BaseStringQuery = z9.string().or(z9.object({ $in: z9.string().array() })).or(z9.object({ $regex: RegExpValidator.meta({ override: { type: "string" } }) }));
537
- var StringQuery = z9.union([
593
+ var RegExpValidator = z10.instanceof(RegExp).meta({ override: { type: "string" } }).or(RegExpStringValidator).meta({ override: { type: "string" } });
594
+ var BaseStringQuery = z10.string().or(z10.object({ $in: z10.string().array() })).or(z10.object({ $regex: RegExpValidator.meta({ override: { type: "string" } }) }));
595
+ var StringQuery = z10.union([
538
596
  BaseStringQuery,
539
- z9.object({
597
+ z10.object({
540
598
  $or: BaseStringQuery.array()
541
599
  })
542
600
  ]);
543
601
 
544
602
  // src/lcn.ts
545
- var LCNProfileDisplayValidator = z10.object({
546
- backgroundColor: z10.string().optional(),
547
- backgroundImage: z10.string().optional(),
548
- fadeBackgroundImage: z10.boolean().optional(),
549
- repeatBackgroundImage: z10.boolean().optional(),
550
- fontColor: z10.string().optional(),
551
- accentColor: z10.string().optional(),
552
- accentFontColor: z10.string().optional(),
553
- idBackgroundImage: z10.string().optional(),
554
- fadeIdBackgroundImage: z10.boolean().optional(),
555
- idBackgroundColor: z10.string().optional(),
556
- repeatIdBackgroundImage: z10.boolean().optional()
557
- });
558
- var ProfileVisibilityEnum = z10.enum(["public", "connections_only", "private"]);
559
- var AllowConnectionRequestsEnum = z10.enum(["anyone", "invite_only"]);
560
- var LCNProfileValidator = z10.object({
561
- profileId: z10.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
562
- displayName: z10.string().default("").describe("Human-readable display name for the profile."),
563
- shortBio: z10.string().default("").describe("Short bio for the profile."),
564
- bio: z10.string().default("").describe("Longer bio for the profile."),
565
- did: z10.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
566
- isPrivate: z10.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
603
+ var LCNProfileDisplayValidator = z11.object({
604
+ backgroundColor: z11.string().optional(),
605
+ backgroundImage: z11.string().optional(),
606
+ fadeBackgroundImage: z11.boolean().optional(),
607
+ repeatBackgroundImage: z11.boolean().optional(),
608
+ fontColor: z11.string().optional(),
609
+ accentColor: z11.string().optional(),
610
+ accentFontColor: z11.string().optional(),
611
+ idBackgroundImage: z11.string().optional(),
612
+ fadeIdBackgroundImage: z11.boolean().optional(),
613
+ idBackgroundColor: z11.string().optional(),
614
+ repeatIdBackgroundImage: z11.boolean().optional()
615
+ });
616
+ var ProfileVisibilityEnum = z11.enum(["public", "connections_only", "private"]);
617
+ var AllowConnectionRequestsEnum = z11.enum(["anyone", "invite_only"]);
618
+ var LCNProfileValidator = z11.object({
619
+ profileId: z11.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
620
+ displayName: z11.string().default("").describe("Human-readable display name for the profile."),
621
+ shortBio: z11.string().default("").describe("Short bio for the profile."),
622
+ bio: z11.string().default("").describe("Longer bio for the profile."),
623
+ did: z11.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
624
+ isPrivate: z11.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
567
625
  profileVisibility: ProfileVisibilityEnum.default("public").optional().describe("Profile visibility: 'public', 'connections_only', or 'private'."),
568
- showEmail: z10.boolean().default(false).optional().describe("Whether to show email to connections."),
626
+ showEmail: z11.boolean().default(false).optional().describe("Whether to show email to connections."),
569
627
  allowConnectionRequests: AllowConnectionRequestsEnum.default("anyone").optional().describe("Who can send connection requests: 'anyone' or 'invite_only'."),
570
- email: z10.string().optional().describe("Contact email address for the profile. (deprecated)"),
571
- image: z10.string().optional().describe("Profile image URL for the profile."),
572
- heroImage: z10.string().optional().describe("Hero image URL for the profile."),
573
- websiteLink: z10.string().optional().describe("Website link for the profile."),
574
- isServiceProfile: z10.boolean().default(false).optional().describe("Whether the profile is a service profile or not."),
575
- type: z10.string().optional().describe('Profile type: e.g. "person", "organization", "service".'),
576
- notificationsWebhook: z10.string().url().startsWith("http").optional().describe("URL to send notifications to."),
628
+ email: z11.string().optional().describe("Contact email address for the profile. (deprecated)"),
629
+ image: z11.string().optional().describe("Profile image URL for the profile."),
630
+ heroImage: z11.string().optional().describe("Hero image URL for the profile."),
631
+ websiteLink: z11.string().optional().describe("Website link for the profile."),
632
+ isServiceProfile: z11.boolean().default(false).optional().describe("Whether the profile is a service profile or not."),
633
+ type: z11.string().optional().describe('Profile type: e.g. "person", "organization", "service".'),
634
+ notificationsWebhook: z11.string().url().startsWith("http").optional().describe("URL to send notifications to."),
577
635
  display: LCNProfileDisplayValidator.optional().describe("Display settings for the profile."),
578
- highlightedCredentials: z10.array(z10.string()).max(5).optional().describe("Up to 5 unique boost URIs to highlight on the profile."),
579
- role: z10.string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),
580
- dob: z10.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".'),
581
- country: z10.string().optional().describe("Country for the profile."),
582
- approved: z10.boolean().optional().describe("Approval status for the profile.")
636
+ highlightedCredentials: z11.array(z11.string()).max(5).optional().describe("Up to 5 unique boost URIs to highlight on the profile."),
637
+ role: z11.string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),
638
+ dob: z11.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".'),
639
+ country: z11.string().optional().describe("Country for the profile."),
640
+ approved: z11.boolean().optional().describe("Approval status for the profile.")
583
641
  });
584
642
  var LCNPublicProfileValidator = LCNProfileValidator.pick({
585
643
  profileId: true,
@@ -601,20 +659,20 @@ var LCNAuthedProfileValidator = LCNPublicProfileValidator.extend({
601
659
  var LCNConnectionProfileValidator = LCNAuthedProfileValidator.extend({
602
660
  email: LCNProfileValidator.shape.email
603
661
  });
604
- var LCNVisibleProfileValidator = z10.union([
662
+ var LCNVisibleProfileValidator = z11.union([
605
663
  LCNConnectionProfileValidator.strict(),
606
664
  LCNAuthedProfileValidator.strict(),
607
665
  LCNPublicProfileValidator.strict(),
608
666
  LCNProfileValidator
609
667
  ]);
610
- var LCNProfileQueryValidator = z10.object({
668
+ var LCNProfileQueryValidator = z11.object({
611
669
  profileId: StringQuery,
612
670
  displayName: StringQuery,
613
671
  shortBio: StringQuery,
614
672
  bio: StringQuery,
615
673
  email: StringQuery,
616
674
  websiteLink: StringQuery,
617
- isServiceProfile: z10.boolean(),
675
+ isServiceProfile: z11.boolean(),
618
676
  type: StringQuery
619
677
  }).partial();
620
678
  var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
@@ -623,26 +681,26 @@ var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
623
681
  var PaginatedVisibleLCNProfilesValidator = PaginationResponseValidator.extend({
624
682
  records: LCNVisibleProfileValidator.array()
625
683
  });
626
- var LCNProfileConnectionStatusEnum = z10.enum([
684
+ var LCNProfileConnectionStatusEnum = z11.enum([
627
685
  "CONNECTED",
628
686
  "PENDING_REQUEST_SENT",
629
687
  "PENDING_REQUEST_RECEIVED",
630
688
  "NOT_CONNECTED"
631
689
  ]);
632
- var LCNProfileManagerValidator = z10.object({
633
- id: z10.string(),
634
- created: z10.string(),
635
- displayName: z10.string().default("").optional(),
636
- shortBio: z10.string().default("").optional(),
637
- bio: z10.string().default("").optional(),
638
- email: z10.string().optional(),
639
- image: z10.string().optional(),
640
- heroImage: z10.string().optional()
690
+ var LCNProfileManagerValidator = z11.object({
691
+ id: z11.string(),
692
+ created: z11.string(),
693
+ displayName: z11.string().default("").optional(),
694
+ shortBio: z11.string().default("").optional(),
695
+ bio: z11.string().default("").optional(),
696
+ email: z11.string().optional(),
697
+ image: z11.string().optional(),
698
+ heroImage: z11.string().optional()
641
699
  });
642
700
  var PaginatedLCNProfileManagersValidator = PaginationResponseValidator.extend({
643
- records: LCNProfileManagerValidator.extend({ did: z10.string() }).array()
701
+ records: LCNProfileManagerValidator.extend({ did: z11.string() }).array()
644
702
  });
645
- var LCNProfileManagerQueryValidator = z10.object({
703
+ var LCNProfileManagerQueryValidator = z11.object({
646
704
  id: StringQuery,
647
705
  displayName: StringQuery,
648
706
  shortBio: StringQuery,
@@ -650,104 +708,104 @@ var LCNProfileManagerQueryValidator = z10.object({
650
708
  email: StringQuery
651
709
  }).partial();
652
710
  var PaginatedLCNProfilesAndManagersValidator = PaginationResponseValidator.extend({
653
- records: z10.object({
711
+ records: z11.object({
654
712
  profile: LCNProfileValidator,
655
- manager: LCNProfileManagerValidator.extend({ did: z10.string() }).optional()
713
+ manager: LCNProfileManagerValidator.extend({ did: z11.string() }).optional()
656
714
  }).array()
657
715
  });
658
- var SentCredentialInfoValidator = z10.object({
659
- uri: z10.string(),
660
- to: z10.string(),
661
- from: z10.string(),
662
- sent: z10.iso.datetime(),
663
- received: z10.iso.datetime().optional(),
664
- metadata: z10.record(z10.string(), z10.unknown()).optional()
665
- });
666
- var BoostPermissionsValidator = z10.object({
667
- role: z10.string(),
668
- canView: z10.boolean().default(true),
669
- canEdit: z10.boolean(),
670
- canIssue: z10.boolean(),
671
- canRevoke: z10.boolean(),
672
- canManagePermissions: z10.boolean(),
673
- canIssueChildren: z10.string(),
674
- canCreateChildren: z10.string(),
675
- canEditChildren: z10.string(),
676
- canRevokeChildren: z10.string(),
677
- canManageChildrenPermissions: z10.string(),
678
- canManageChildrenProfiles: z10.boolean().optional(),
679
- canViewAnalytics: z10.boolean()
680
- });
681
- var BoostPermissionsQueryValidator = z10.object({
716
+ var SentCredentialInfoValidator = z11.object({
717
+ uri: z11.string(),
718
+ to: z11.string(),
719
+ from: z11.string(),
720
+ sent: z11.iso.datetime(),
721
+ received: z11.iso.datetime().optional(),
722
+ metadata: z11.record(z11.string(), z11.unknown()).optional()
723
+ });
724
+ var BoostPermissionsValidator = z11.object({
725
+ role: z11.string(),
726
+ canView: z11.boolean().default(true),
727
+ canEdit: z11.boolean(),
728
+ canIssue: z11.boolean(),
729
+ canRevoke: z11.boolean(),
730
+ canManagePermissions: z11.boolean(),
731
+ canIssueChildren: z11.string(),
732
+ canCreateChildren: z11.string(),
733
+ canEditChildren: z11.string(),
734
+ canRevokeChildren: z11.string(),
735
+ canManageChildrenPermissions: z11.string(),
736
+ canManageChildrenProfiles: z11.boolean().optional(),
737
+ canViewAnalytics: z11.boolean()
738
+ });
739
+ var BoostPermissionsQueryValidator = z11.object({
682
740
  role: StringQuery,
683
- canView: z10.boolean(),
684
- canEdit: z10.boolean(),
685
- canIssue: z10.boolean(),
686
- canRevoke: z10.boolean(),
687
- canManagePermissions: z10.boolean(),
741
+ canView: z11.boolean(),
742
+ canEdit: z11.boolean(),
743
+ canIssue: z11.boolean(),
744
+ canRevoke: z11.boolean(),
745
+ canManagePermissions: z11.boolean(),
688
746
  canIssueChildren: StringQuery,
689
747
  canCreateChildren: StringQuery,
690
748
  canEditChildren: StringQuery,
691
749
  canRevokeChildren: StringQuery,
692
750
  canManageChildrenPermissions: StringQuery,
693
- canManageChildrenProfiles: z10.boolean(),
694
- canViewAnalytics: z10.boolean()
751
+ canManageChildrenProfiles: z11.boolean(),
752
+ canViewAnalytics: z11.boolean()
695
753
  }).partial();
696
- var ClaimHookTypeValidator = z10.enum(["GRANT_PERMISSIONS", "ADD_ADMIN", "AUTO_CONNECT"]);
697
- var ClaimHookValidator = z10.discriminatedUnion("type", [
698
- z10.object({
699
- type: z10.literal(ClaimHookTypeValidator.enum.GRANT_PERMISSIONS),
700
- data: z10.object({
701
- claimUri: z10.string(),
702
- targetUri: z10.string(),
754
+ var ClaimHookTypeValidator = z11.enum(["GRANT_PERMISSIONS", "ADD_ADMIN", "AUTO_CONNECT"]);
755
+ var ClaimHookValidator = z11.discriminatedUnion("type", [
756
+ z11.object({
757
+ type: z11.literal(ClaimHookTypeValidator.enum.GRANT_PERMISSIONS),
758
+ data: z11.object({
759
+ claimUri: z11.string(),
760
+ targetUri: z11.string(),
703
761
  permissions: BoostPermissionsValidator.partial()
704
762
  })
705
763
  }),
706
- z10.object({
707
- type: z10.literal(ClaimHookTypeValidator.enum.ADD_ADMIN),
708
- data: z10.object({ claimUri: z10.string(), targetUri: z10.string() })
764
+ z11.object({
765
+ type: z11.literal(ClaimHookTypeValidator.enum.ADD_ADMIN),
766
+ data: z11.object({ claimUri: z11.string(), targetUri: z11.string() })
709
767
  }),
710
- z10.object({
711
- type: z10.literal(ClaimHookTypeValidator.enum.AUTO_CONNECT),
712
- data: z10.object({ claimUri: z10.string(), targetUri: z10.string() })
768
+ z11.object({
769
+ type: z11.literal(ClaimHookTypeValidator.enum.AUTO_CONNECT),
770
+ data: z11.object({ claimUri: z11.string(), targetUri: z11.string() })
713
771
  })
714
772
  ]);
715
- var ClaimHookQueryValidator = z10.object({
773
+ var ClaimHookQueryValidator = z11.object({
716
774
  type: StringQuery,
717
- data: z10.object({
775
+ data: z11.object({
718
776
  claimUri: StringQuery,
719
777
  targetUri: StringQuery,
720
778
  permissions: BoostPermissionsQueryValidator.partial()
721
779
  }).partial()
722
780
  });
723
- var FullClaimHookValidator = z10.object({ id: z10.string(), createdAt: z10.string(), updatedAt: z10.string() }).and(ClaimHookValidator);
781
+ var FullClaimHookValidator = z11.object({ id: z11.string(), createdAt: z11.string(), updatedAt: z11.string() }).and(ClaimHookValidator);
724
782
  var PaginatedClaimHooksValidator = PaginationResponseValidator.extend({
725
783
  records: FullClaimHookValidator.array()
726
784
  });
727
- var LCNBoostStatus = z10.enum(["DRAFT", "PROVISIONAL", "LIVE"]);
728
- var BoostValidator = z10.object({
729
- uri: z10.string(),
730
- name: z10.string().optional(),
731
- type: z10.string().optional(),
732
- category: z10.string().optional(),
785
+ var LCNBoostStatus = z11.enum(["DRAFT", "PROVISIONAL", "LIVE"]);
786
+ var BoostValidator = z11.object({
787
+ uri: z11.string(),
788
+ name: z11.string().optional(),
789
+ type: z11.string().optional(),
790
+ category: z11.string().optional(),
733
791
  status: LCNBoostStatus.optional(),
734
- autoConnectRecipients: z10.boolean().optional(),
735
- meta: z10.record(z10.string(), z10.any()).optional(),
792
+ autoConnectRecipients: z11.boolean().optional(),
793
+ meta: z11.record(z11.string(), z11.any()).optional(),
736
794
  claimPermissions: BoostPermissionsValidator.optional(),
737
795
  defaultPermissions: BoostPermissionsValidator.optional(),
738
- allowAnyoneToCreateChildren: z10.boolean().optional()
796
+ allowAnyoneToCreateChildren: z11.boolean().optional()
739
797
  });
740
- var BaseBoostQueryValidator = z10.object({
798
+ var BaseBoostQueryValidator = z11.object({
741
799
  uri: StringQuery,
742
800
  name: StringQuery,
743
801
  type: StringQuery,
744
802
  category: StringQuery,
745
- meta: z10.record(z10.string(), StringQuery),
746
- status: LCNBoostStatus.or(z10.object({ $in: LCNBoostStatus.array() })),
747
- autoConnectRecipients: z10.boolean()
803
+ meta: z11.record(z11.string(), StringQuery),
804
+ status: LCNBoostStatus.or(z11.object({ $in: LCNBoostStatus.array() })),
805
+ autoConnectRecipients: z11.boolean()
748
806
  }).partial();
749
- var BoostQueryValidator = z10.union([
750
- z10.object({
807
+ var BoostQueryValidator = z11.union([
808
+ z11.object({
751
809
  $or: BaseBoostQueryValidator.array()
752
810
  }),
753
811
  BaseBoostQueryValidator
@@ -755,94 +813,94 @@ var BoostQueryValidator = z10.union([
755
813
  var PaginatedBoostsValidator = PaginationResponseValidator.extend({
756
814
  records: BoostValidator.array()
757
815
  });
758
- var BoostRecipientValidator = z10.object({
816
+ var BoostRecipientValidator = z11.object({
759
817
  to: LCNVisibleProfileValidator,
760
- from: z10.string(),
761
- received: z10.string().optional(),
762
- uri: z10.string().optional()
818
+ from: z11.string(),
819
+ received: z11.string().optional(),
820
+ uri: z11.string().optional()
763
821
  });
764
822
  var PaginatedBoostRecipientsValidator = PaginationResponseValidator.extend({
765
823
  records: BoostRecipientValidator.array()
766
824
  });
767
- var BoostRecipientWithChildrenValidator = z10.object({
825
+ var BoostRecipientWithChildrenValidator = z11.object({
768
826
  to: LCNVisibleProfileValidator,
769
- from: z10.string(),
770
- received: z10.string().optional(),
771
- boostUris: z10.array(z10.string()),
772
- credentialUris: z10.array(z10.string()).optional()
827
+ from: z11.string(),
828
+ received: z11.string().optional(),
829
+ boostUris: z11.array(z11.string()),
830
+ credentialUris: z11.array(z11.string()).optional()
773
831
  });
774
832
  var PaginatedBoostRecipientsWithChildrenValidator = PaginationResponseValidator.extend({
775
833
  records: BoostRecipientWithChildrenValidator.array()
776
834
  });
777
- var LCNBoostClaimLinkSigningAuthorityValidator = z10.object({
778
- endpoint: z10.string(),
779
- name: z10.string(),
780
- did: z10.string().optional()
835
+ var LCNBoostClaimLinkSigningAuthorityValidator = z11.object({
836
+ endpoint: z11.string(),
837
+ name: z11.string(),
838
+ did: z11.string().optional()
781
839
  });
782
- var LCNBoostClaimLinkOptionsValidator = z10.object({
783
- ttlSeconds: z10.number().optional(),
784
- totalUses: z10.number().optional()
840
+ var LCNBoostClaimLinkOptionsValidator = z11.object({
841
+ ttlSeconds: z11.number().optional(),
842
+ totalUses: z11.number().optional()
785
843
  });
786
- var LCNSigningAuthorityValidator = z10.object({
787
- endpoint: z10.string()
844
+ var LCNSigningAuthorityValidator = z11.object({
845
+ endpoint: z11.string()
788
846
  });
789
- var LCNSigningAuthorityForUserValidator = z10.object({
847
+ var LCNSigningAuthorityForUserValidator = z11.object({
790
848
  signingAuthority: LCNSigningAuthorityValidator,
791
- relationship: z10.object({
792
- name: z10.string().max(15).regex(/^[a-z0-9-]+$/, {
849
+ relationship: z11.object({
850
+ name: z11.string().max(15).regex(/^[a-z0-9-]+$/, {
793
851
  message: "The input string must contain only lowercase letters, numbers, and hyphens."
794
852
  }),
795
- did: z10.string(),
796
- isPrimary: z10.boolean().optional()
853
+ did: z11.string(),
854
+ isPrimary: z11.boolean().optional()
797
855
  })
798
856
  });
799
- var AutoBoostConfigValidator = z10.object({
800
- boostUri: z10.string(),
801
- signingAuthority: z10.object({
802
- endpoint: z10.string(),
803
- name: z10.string()
857
+ var AutoBoostConfigValidator = z11.object({
858
+ boostUri: z11.string(),
859
+ signingAuthority: z11.object({
860
+ endpoint: z11.string(),
861
+ name: z11.string()
804
862
  })
805
863
  });
806
864
  var SendBoostTemplateValidator = BoostValidator.partial().omit({ uri: true, claimPermissions: true }).extend({
807
865
  credential: VCValidator.or(UnsignedVCValidator),
808
866
  claimPermissions: BoostPermissionsValidator.partial().optional(),
809
- skills: z10.array(
810
- z10.object({
811
- frameworkId: z10.string(),
812
- id: z10.string(),
813
- proficiencyLevel: z10.number().optional()
867
+ skills: z11.array(
868
+ z11.object({
869
+ frameworkId: z11.string(),
870
+ id: z11.string(),
871
+ proficiencyLevel: z11.number().optional()
814
872
  })
815
873
  ).min(1).optional()
816
874
  });
817
- var SendBrandingOptionsValidator = z10.object({
818
- issuerName: z10.string().optional().describe("Name of the issuing organization"),
819
- issuerLogoUrl: z10.string().url().optional().describe("Logo URL of the issuing organization"),
820
- credentialName: z10.string().optional().describe("Display name for the credential"),
821
- recipientName: z10.string().optional().describe("Name of the recipient for personalization")
875
+ var SendBrandingOptionsValidator = z11.object({
876
+ issuerName: z11.string().optional().describe("Name of the issuing organization"),
877
+ issuerLogoUrl: z11.string().url().optional().describe("Logo URL of the issuing organization"),
878
+ credentialName: z11.string().optional().describe("Display name for the credential"),
879
+ recipientName: z11.string().optional().describe("Name of the recipient for personalization")
822
880
  });
823
- var GuardianStatusValidator = z10.enum([
881
+ var GuardianStatusValidator = z11.enum([
824
882
  "AWAITING_GUARDIAN",
825
883
  "GUARDIAN_APPROVED",
826
884
  "GUARDIAN_REJECTED"
827
885
  ]);
828
- var SendOptionsValidator = z10.object({
829
- webhookUrl: z10.string().url().optional().describe("Webhook URL to receive claim notifications"),
830
- suppressDelivery: z10.boolean().optional().describe("If true, returns claimUrl without sending email/SMS"),
886
+ var SendOptionsValidator = z11.object({
887
+ webhookUrl: z11.string().url().optional().describe("Webhook URL to receive claim notifications"),
888
+ suppressDelivery: z11.boolean().optional().describe("If true, returns claimUrl without sending email/SMS"),
831
889
  branding: SendBrandingOptionsValidator.optional().describe("Branding for email/SMS delivery"),
832
- guardianEmail: z10.string().email().optional().describe("Guardian email that must approve before student can claim")
890
+ guardianEmail: z11.string().email().optional().describe("Guardian email that must approve before student can claim")
833
891
  });
834
- var SendBoostInputValidator = z10.object({
835
- type: z10.literal("boost"),
836
- recipient: z10.string().describe("Profile ID, DID, email, or phone number (auto-detected)"),
837
- contractUri: z10.string().optional(),
838
- templateUri: z10.string().optional(),
892
+ var SendBoostInputValidator = z11.object({
893
+ type: z11.literal("boost"),
894
+ recipient: z11.string().describe("Profile ID, DID, email, or phone number (auto-detected)"),
895
+ contractUri: z11.string().optional(),
896
+ templateUri: z11.string().optional(),
839
897
  template: SendBoostTemplateValidator.optional(),
840
898
  signedCredential: VCValidator.optional(),
841
899
  options: SendOptionsValidator.optional().describe(
842
900
  "Options for email/phone recipients (Universal Inbox)"
843
901
  ),
844
- templateData: z10.record(z10.string(), z10.unknown()).optional(),
845
- integrationId: z10.string().optional().describe("Integration ID for activity tracking")
902
+ templateData: z11.record(z11.string(), z11.unknown()).optional(),
903
+ integrationId: z11.string().optional().describe("Integration ID for activity tracking")
846
904
  }).refine((data) => data.templateUri || data.template || data.signedCredential, {
847
905
  message: "Either templateUri, template, or signedCredential must be provided.",
848
906
  path: ["templateUri"]
@@ -858,231 +916,247 @@ var SendBoostInputValidator = z10.object({
858
916
  path: ["options", "guardianEmail"]
859
917
  }
860
918
  );
861
- var SendInboxResponseValidator = z10.object({
862
- issuanceId: z10.string(),
863
- status: z10.enum(["PENDING", "ISSUED", "EXPIRED", "DELIVERED", "CLAIMED"]),
864
- claimUrl: z10.string().url().optional().describe("Present when suppressDelivery=true"),
919
+ var SendInboxResponseValidator = z11.object({
920
+ issuanceId: z11.string(),
921
+ status: z11.enum(["PENDING", "ISSUED", "EXPIRED", "DELIVERED", "CLAIMED"]),
922
+ claimUrl: z11.string().url().optional().describe("Present when suppressDelivery=true"),
865
923
  guardianStatus: GuardianStatusValidator.optional().describe(
866
924
  "Present when guardianEmail was specified"
867
925
  )
868
926
  });
869
- var SendBoostResponseValidator = z10.object({
870
- type: z10.literal("boost"),
871
- credentialUri: z10.string(),
872
- uri: z10.string(),
873
- activityId: z10.string().describe("Links to the activity lifecycle for this issuance"),
927
+ var SendBoostResponseValidator = z11.object({
928
+ type: z11.literal("boost"),
929
+ credentialUri: z11.string(),
930
+ uri: z11.string(),
931
+ activityId: z11.string().describe("Links to the activity lifecycle for this issuance"),
874
932
  inbox: SendInboxResponseValidator.optional().describe(
875
933
  "Present when sent via email/phone (Universal Inbox)"
876
934
  )
877
935
  });
878
- var SendInputValidator = z10.discriminatedUnion("type", [SendBoostInputValidator]);
879
- var SendResponseValidator = z10.discriminatedUnion("type", [SendBoostResponseValidator]);
880
- var ConsentFlowTermsStatusValidator = z10.enum(["live", "stale", "withdrawn"]);
881
- var ConsentFlowContractValidator = z10.object({
882
- read: z10.object({
883
- anonymize: z10.boolean().optional(),
884
- credentials: z10.object({
885
- categories: z10.record(
886
- z10.string(),
887
- z10.object({
888
- required: z10.boolean(),
889
- defaultEnabled: z10.boolean().optional()
936
+ var SendInputValidator = z11.discriminatedUnion("type", [SendBoostInputValidator]);
937
+ var SendResponseValidator = z11.discriminatedUnion("type", [SendBoostResponseValidator]);
938
+ var ConsentFlowTermsStatusValidator = z11.enum(["live", "stale", "withdrawn"]);
939
+ var ConsentFlowContractValidator = z11.object({
940
+ read: z11.object({
941
+ anonymize: z11.boolean().optional(),
942
+ credentials: z11.object({
943
+ categories: z11.record(
944
+ z11.string(),
945
+ z11.object({
946
+ required: z11.boolean(),
947
+ defaultEnabled: z11.boolean().optional()
890
948
  })
891
949
  ).default({})
892
950
  }).prefault({ categories: {} }),
893
- personal: z10.record(
894
- z10.string(),
895
- z10.object({ required: z10.boolean(), defaultEnabled: z10.boolean().optional() })
951
+ personal: z11.record(
952
+ z11.string(),
953
+ z11.object({ required: z11.boolean(), defaultEnabled: z11.boolean().optional() })
896
954
  ).default({})
897
955
  }).prefault({ credentials: { categories: {} }, personal: {} }),
898
- write: z10.object({
899
- credentials: z10.object({
900
- categories: z10.record(
901
- z10.string(),
902
- z10.object({
903
- required: z10.boolean(),
904
- defaultEnabled: z10.boolean().optional()
956
+ write: z11.object({
957
+ credentials: z11.object({
958
+ categories: z11.record(
959
+ z11.string(),
960
+ z11.object({
961
+ required: z11.boolean(),
962
+ defaultEnabled: z11.boolean().optional()
905
963
  })
906
964
  ).default({})
907
965
  }).prefault({ categories: {} }),
908
- personal: z10.record(
909
- z10.string(),
910
- z10.object({ required: z10.boolean(), defaultEnabled: z10.boolean().optional() })
966
+ personal: z11.record(
967
+ z11.string(),
968
+ z11.object({ required: z11.boolean(), defaultEnabled: z11.boolean().optional() })
911
969
  ).default({})
912
970
  }).prefault({ credentials: { categories: {} }, personal: {} })
913
971
  });
914
- var ConsentFlowContractDetailsValidator = z10.object({
972
+ var ConsentFlowContractDetailsValidator = z11.object({
915
973
  contract: ConsentFlowContractValidator,
916
974
  owner: LCNProfileValidator,
917
- name: z10.string(),
918
- subtitle: z10.string().optional(),
919
- description: z10.string().optional(),
920
- reasonForAccessing: z10.string().optional(),
921
- image: z10.string().optional(),
922
- uri: z10.string(),
923
- needsGuardianConsent: z10.boolean().optional(),
924
- redirectUrl: z10.string().optional(),
925
- frontDoorBoostUri: z10.string().optional(),
926
- createdAt: z10.string(),
927
- updatedAt: z10.string(),
928
- expiresAt: z10.string().optional(),
929
- autoBoosts: z10.string().array().optional(),
930
- writers: z10.array(LCNProfileValidator).optional()
931
- });
932
- var ConsentFlowContractRequestStatusValidator = z10.enum(["pending", "accepted", "denied"]).nullable();
933
- var ConsentFlowContractRequestReadStatusValidator = z10.enum(["unseen", "seen"]).nullable();
934
- var ConsentFlowContractRequestForProfileValidator = z10.object({
975
+ name: z11.string(),
976
+ subtitle: z11.string().optional(),
977
+ description: z11.string().optional(),
978
+ reasonForAccessing: z11.string().optional(),
979
+ image: z11.string().optional(),
980
+ uri: z11.string(),
981
+ needsGuardianConsent: z11.boolean().optional(),
982
+ redirectUrl: z11.string().optional(),
983
+ frontDoorBoostUri: z11.string().optional(),
984
+ createdAt: z11.string(),
985
+ updatedAt: z11.string(),
986
+ expiresAt: z11.string().optional(),
987
+ autoBoosts: z11.string().array().optional(),
988
+ writers: z11.array(LCNProfileValidator).optional()
989
+ });
990
+ var ConsentFlowContractRequestStatusValidator = z11.enum(["pending", "accepted", "denied"]).nullable();
991
+ var ConsentFlowContractRequestReadStatusValidator = z11.enum(["unseen", "seen"]).nullable();
992
+ var ConsentFlowContractRequestForProfileValidator = z11.object({
935
993
  profile: LCNProfileValidator,
936
994
  status: ConsentFlowContractRequestStatusValidator,
937
995
  readStatus: ConsentFlowContractRequestReadStatusValidator.optional()
938
996
  });
939
- var ConsentFlowContractRequestForProfileListValidator = z10.array(
997
+ var ConsentFlowContractRequestForProfileListValidator = z11.array(
940
998
  ConsentFlowContractRequestForProfileValidator
941
999
  );
942
1000
  var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
943
1001
  records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
944
1002
  });
945
- var ConsentFlowContractDataValidator = z10.object({
946
- credentials: z10.object({ categories: z10.record(z10.string(), z10.string().array()).default({}) }),
947
- personal: z10.record(z10.string(), z10.string()).default({}),
948
- date: z10.string()
1003
+ var ConsentFlowContractDataValidator = z11.object({
1004
+ credentials: z11.object({ categories: z11.record(z11.string(), z11.string().array()).default({}) }),
1005
+ personal: z11.record(z11.string(), z11.string()).default({}),
1006
+ date: z11.string()
949
1007
  });
950
1008
  var PaginatedConsentFlowDataValidator = PaginationResponseValidator.extend({
951
1009
  records: ConsentFlowContractDataValidator.array()
952
1010
  });
953
- var ConsentFlowContractDataForDidValidator = z10.object({
954
- credentials: z10.object({ category: z10.string(), uri: z10.string() }).array(),
955
- personal: z10.record(z10.string(), z10.string()).default({}),
956
- date: z10.string(),
957
- contractUri: z10.string()
1011
+ var ConsentFlowContractDataForDidValidator = z11.object({
1012
+ credentials: z11.object({ category: z11.string(), uri: z11.string() }).array(),
1013
+ personal: z11.record(z11.string(), z11.string()).default({}),
1014
+ date: z11.string(),
1015
+ contractUri: z11.string()
958
1016
  });
959
1017
  var PaginatedConsentFlowDataForDidValidator = PaginationResponseValidator.extend({
960
1018
  records: ConsentFlowContractDataForDidValidator.array()
961
1019
  });
962
- var ConsentFlowTermValidator = z10.object({
963
- sharing: z10.boolean().optional(),
964
- shared: z10.string().array().optional(),
965
- shareAll: z10.boolean().optional(),
966
- shareUntil: z10.string().optional()
967
- });
968
- var ConsentFlowTermsValidator = z10.object({
969
- read: z10.object({
970
- anonymize: z10.boolean().optional(),
971
- credentials: z10.object({
972
- shareAll: z10.boolean().optional(),
973
- sharing: z10.boolean().optional(),
974
- categories: z10.record(z10.string(), ConsentFlowTermValidator).default({})
1020
+ var ConsentFlowTermValidator = z11.object({
1021
+ sharing: z11.boolean().optional(),
1022
+ shared: z11.string().array().optional(),
1023
+ shareAll: z11.boolean().optional(),
1024
+ shareUntil: z11.string().optional()
1025
+ });
1026
+ var ConsentFlowTermsValidator = z11.object({
1027
+ read: z11.object({
1028
+ anonymize: z11.boolean().optional(),
1029
+ credentials: z11.object({
1030
+ shareAll: z11.boolean().optional(),
1031
+ sharing: z11.boolean().optional(),
1032
+ categories: z11.record(z11.string(), ConsentFlowTermValidator).default({})
975
1033
  }).prefault({ categories: {} }),
976
- personal: z10.record(z10.string(), z10.string()).default({})
1034
+ personal: z11.record(z11.string(), z11.string()).default({})
977
1035
  }).prefault({ credentials: { categories: {} }, personal: {} }),
978
- write: z10.object({
979
- credentials: z10.object({ categories: z10.record(z10.string(), z10.boolean()).default({}) }).prefault({ categories: {} }),
980
- personal: z10.record(z10.string(), z10.boolean()).default({})
1036
+ write: z11.object({
1037
+ credentials: z11.object({ categories: z11.record(z11.string(), z11.boolean()).default({}) }).prefault({ categories: {} }),
1038
+ personal: z11.record(z11.string(), z11.boolean()).default({})
981
1039
  }).prefault({ credentials: { categories: {} }, personal: {} }),
982
- deniedWriters: z10.array(z10.string()).optional()
1040
+ deniedWriters: z11.array(z11.string()).optional()
983
1041
  });
984
1042
  var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
985
- records: z10.object({
986
- expiresAt: z10.string().optional(),
987
- oneTime: z10.boolean().optional(),
1043
+ records: z11.object({
1044
+ expiresAt: z11.string().optional(),
1045
+ oneTime: z11.boolean().optional(),
988
1046
  terms: ConsentFlowTermsValidator,
989
1047
  contract: ConsentFlowContractDetailsValidator,
990
- uri: z10.string(),
1048
+ uri: z11.string(),
991
1049
  consenter: LCNProfileValidator,
992
1050
  status: ConsentFlowTermsStatusValidator
993
1051
  }).array()
994
1052
  });
995
- var ConsentFlowContractQueryValidator = z10.object({
996
- read: z10.object({
997
- anonymize: z10.boolean().optional(),
998
- credentials: z10.object({
999
- categories: z10.record(z10.string(), z10.object({ required: z10.boolean().optional() })).optional()
1053
+ var ConsentFlowContractQueryValidator = z11.object({
1054
+ read: z11.object({
1055
+ anonymize: z11.boolean().optional(),
1056
+ credentials: z11.object({
1057
+ categories: z11.record(z11.string(), z11.object({ required: z11.boolean().optional() })).optional()
1000
1058
  }).optional(),
1001
- personal: z10.record(z10.string(), z10.object({ required: z10.boolean().optional() })).optional()
1059
+ personal: z11.record(z11.string(), z11.object({ required: z11.boolean().optional() })).optional()
1002
1060
  }).optional(),
1003
- write: z10.object({
1004
- credentials: z10.object({
1005
- categories: z10.record(z10.string(), z10.object({ required: z10.boolean().optional() })).optional()
1061
+ write: z11.object({
1062
+ credentials: z11.object({
1063
+ categories: z11.record(z11.string(), z11.object({ required: z11.boolean().optional() })).optional()
1006
1064
  }).optional(),
1007
- personal: z10.record(z10.string(), z10.object({ required: z10.boolean().optional() })).optional()
1065
+ personal: z11.record(z11.string(), z11.object({ required: z11.boolean().optional() })).optional()
1008
1066
  }).optional()
1009
1067
  });
1010
- var ConsentFlowDataQueryValidator = z10.object({
1011
- anonymize: z10.boolean().optional(),
1012
- credentials: z10.object({ categories: z10.record(z10.string(), z10.boolean()).optional() }).optional(),
1013
- personal: z10.record(z10.string(), z10.boolean()).optional()
1068
+ var ConsentFlowDataQueryValidator = z11.object({
1069
+ anonymize: z11.boolean().optional(),
1070
+ credentials: z11.object({ categories: z11.record(z11.string(), z11.boolean()).optional() }).optional(),
1071
+ personal: z11.record(z11.string(), z11.boolean()).optional()
1014
1072
  });
1015
- var ConsentFlowDataForDidQueryValidator = z10.object({
1016
- credentials: z10.object({ categories: z10.record(z10.string(), z10.boolean()).optional() }).optional(),
1017
- personal: z10.record(z10.string(), z10.boolean()).optional(),
1073
+ var ConsentFlowDataForDidQueryValidator = z11.object({
1074
+ credentials: z11.object({ categories: z11.record(z11.string(), z11.boolean()).optional() }).optional(),
1075
+ personal: z11.record(z11.string(), z11.boolean()).optional(),
1018
1076
  id: StringQuery.optional()
1019
1077
  });
1020
- var ConsentFlowTermsQueryValidator = z10.object({
1021
- read: z10.object({
1022
- anonymize: z10.boolean().optional(),
1023
- credentials: z10.object({
1024
- shareAll: z10.boolean().optional(),
1025
- sharing: z10.boolean().optional(),
1026
- categories: z10.record(z10.string(), ConsentFlowTermValidator.optional()).optional()
1078
+ var ConsentFlowTermsQueryValidator = z11.object({
1079
+ read: z11.object({
1080
+ anonymize: z11.boolean().optional(),
1081
+ credentials: z11.object({
1082
+ shareAll: z11.boolean().optional(),
1083
+ sharing: z11.boolean().optional(),
1084
+ categories: z11.record(z11.string(), ConsentFlowTermValidator.optional()).optional()
1027
1085
  }).optional(),
1028
- personal: z10.record(z10.string(), z10.string()).optional()
1086
+ personal: z11.record(z11.string(), z11.string()).optional()
1029
1087
  }).optional(),
1030
- write: z10.object({
1031
- credentials: z10.object({ categories: z10.record(z10.string(), z10.boolean()).optional() }).optional(),
1032
- personal: z10.record(z10.string(), z10.boolean()).optional()
1088
+ write: z11.object({
1089
+ credentials: z11.object({ categories: z11.record(z11.string(), z11.boolean()).optional() }).optional(),
1090
+ personal: z11.record(z11.string(), z11.boolean()).optional()
1033
1091
  }).optional()
1034
1092
  });
1035
- var ConsentFlowTransactionActionValidator = z10.enum([
1093
+ var ConsentFlowTransactionActionValidator = z11.enum([
1036
1094
  "consent",
1037
1095
  "update",
1038
1096
  "sync",
1039
1097
  "withdraw",
1040
1098
  "write"
1041
1099
  ]);
1042
- var ConsentFlowTransactionsQueryValidator = z10.object({
1100
+ var ConsentFlowTransactionsQueryValidator = z11.object({
1043
1101
  terms: ConsentFlowTermsQueryValidator.optional(),
1044
1102
  action: ConsentFlowTransactionActionValidator.or(
1045
1103
  ConsentFlowTransactionActionValidator.array()
1046
1104
  ).optional(),
1047
- date: z10.object({ $gt: z10.string() }).or(z10.object({ $lt: z10.string() })).or(z10.object({ $eq: z10.string() })).optional(),
1048
- expiresAt: z10.object({ $gt: z10.string() }).or(z10.object({ $lt: z10.string() })).or(z10.object({ $eq: z10.string() })).optional(),
1049
- oneTime: z10.boolean().optional()
1105
+ date: z11.object({ $gt: z11.string() }).or(z11.object({ $lt: z11.string() })).or(z11.object({ $eq: z11.string() })).optional(),
1106
+ expiresAt: z11.object({ $gt: z11.string() }).or(z11.object({ $lt: z11.string() })).or(z11.object({ $eq: z11.string() })).optional(),
1107
+ oneTime: z11.boolean().optional()
1050
1108
  });
1051
- var ConsentFlowTransactionValidator = z10.object({
1052
- expiresAt: z10.string().optional(),
1053
- oneTime: z10.boolean().optional(),
1109
+ var ConsentFlowTransactionValidator = z11.object({
1110
+ expiresAt: z11.string().optional(),
1111
+ oneTime: z11.boolean().optional(),
1054
1112
  terms: ConsentFlowTermsValidator.optional(),
1055
- id: z10.string(),
1113
+ id: z11.string(),
1056
1114
  action: ConsentFlowTransactionActionValidator,
1057
- date: z10.string(),
1058
- uris: z10.string().array().optional()
1115
+ date: z11.string(),
1116
+ uris: z11.string().array().optional()
1117
+ });
1118
+ var HolderExportConsentRecordValidator = z11.object({
1119
+ termsUri: z11.string(),
1120
+ status: ConsentFlowTermsStatusValidator,
1121
+ contract: ConsentFlowContractDetailsValidator,
1122
+ terms: ConsentFlowTermsValidator,
1123
+ transactions: ConsentFlowTransactionValidator.array()
1124
+ });
1125
+ var HolderExportMetadataValidator = z11.object({
1126
+ consentRecords: HolderExportConsentRecordValidator.array(),
1127
+ truncated: z11.boolean().optional(),
1128
+ warnings: z11.string().array().optional(),
1129
+ limits: z11.object({
1130
+ maxConsentRecords: z11.number(),
1131
+ maxTransactionsPerConsentRecord: z11.number()
1132
+ }).optional()
1059
1133
  });
1060
1134
  var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
1061
1135
  records: ConsentFlowTransactionValidator.array()
1062
1136
  });
1063
- var BaseSkillFrameworkQueryValidator = z10.object({
1137
+ var BaseSkillFrameworkQueryValidator = z11.object({
1064
1138
  id: StringQuery,
1065
1139
  name: StringQuery,
1066
1140
  description: StringQuery,
1067
1141
  sourceURI: StringQuery,
1068
1142
  status: StringQuery
1069
1143
  }).partial();
1070
- var SkillFrameworkQueryValidator = z10.union([
1071
- z10.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
1144
+ var SkillFrameworkQueryValidator = z11.union([
1145
+ z11.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
1072
1146
  BaseSkillFrameworkQueryValidator
1073
1147
  ]);
1074
- var ContractCredentialValidator = z10.object({
1075
- credentialUri: z10.string(),
1076
- termsUri: z10.string(),
1077
- contractUri: z10.string(),
1078
- boostUri: z10.string(),
1079
- category: z10.string().optional(),
1080
- date: z10.string()
1148
+ var ContractCredentialValidator = z11.object({
1149
+ credentialUri: z11.string(),
1150
+ termsUri: z11.string(),
1151
+ contractUri: z11.string(),
1152
+ boostUri: z11.string(),
1153
+ category: z11.string().optional(),
1154
+ date: z11.string()
1081
1155
  });
1082
1156
  var PaginatedContractCredentialsValidator = PaginationResponseValidator.extend({
1083
1157
  records: ContractCredentialValidator.array()
1084
1158
  });
1085
- var LCNNotificationTypeEnumValidator = z10.enum([
1159
+ var LCNNotificationTypeEnumValidator = z11.enum([
1086
1160
  "CONNECTION_REQUEST",
1087
1161
  "CONNECTION_REQUEST_EXPIRED_INVITE",
1088
1162
  "CONNECTION_ACCEPTED",
@@ -1107,15 +1181,15 @@ var LCNNotificationTypeEnumValidator = z10.enum([
1107
1181
  "GUARDIAN_REJECTED",
1108
1182
  "APP_NOTIFICATION"
1109
1183
  ]);
1110
- var LCNNotificationMessageValidator = z10.object({
1111
- title: z10.string().optional(),
1112
- body: z10.string().optional()
1184
+ var LCNNotificationMessageValidator = z11.object({
1185
+ title: z11.string().optional(),
1186
+ body: z11.string().optional()
1113
1187
  });
1114
- var LCNInboxContactMethodValidator = z10.object({
1115
- type: z10.string(),
1116
- value: z10.string()
1188
+ var LCNInboxContactMethodValidator = z11.object({
1189
+ type: z11.string(),
1190
+ value: z11.string()
1117
1191
  });
1118
- var LCNInboxStatusEnumValidator = z10.enum([
1192
+ var LCNInboxStatusEnumValidator = z11.enum([
1119
1193
  "PENDING",
1120
1194
  "ISSUED",
1121
1195
  "EXPIRED",
@@ -1124,158 +1198,155 @@ var LCNInboxStatusEnumValidator = z10.enum([
1124
1198
  /* DEPRECATED — use ISSUED */
1125
1199
  "CLAIMED"
1126
1200
  ]);
1127
- var LCNNotificationInboxValidator = z10.object({
1128
- issuanceId: z10.string(),
1201
+ var LCNNotificationInboxValidator = z11.object({
1202
+ issuanceId: z11.string(),
1129
1203
  status: LCNInboxStatusEnumValidator,
1130
- recipient: z10.object({
1204
+ recipient: z11.object({
1131
1205
  contactMethod: LCNInboxContactMethodValidator.optional(),
1132
- learnCardId: z10.string().optional()
1206
+ learnCardId: z11.string().optional()
1133
1207
  }),
1134
- timestamp: z10.iso.datetime().optional()
1208
+ timestamp: z11.iso.datetime().optional()
1135
1209
  });
1136
- var LCNNotificationDataValidator = z10.object({
1137
- vcUris: z10.array(z10.string()).optional(),
1138
- vpUris: z10.array(z10.string()).optional(),
1210
+ var LCNNotificationDataValidator = z11.object({
1211
+ vcUris: z11.array(z11.string()).optional(),
1212
+ vpUris: z11.array(z11.string()).optional(),
1139
1213
  transaction: ConsentFlowTransactionValidator.optional(),
1140
1214
  inbox: LCNNotificationInboxValidator.optional(),
1141
- metadata: z10.record(z10.string(), z10.unknown()).optional()
1215
+ metadata: z11.record(z11.string(), z11.unknown()).optional()
1142
1216
  }).loose();
1143
- var LCNNotificationValidator = z10.object({
1217
+ var LCNNotificationValidator = z11.object({
1144
1218
  type: LCNNotificationTypeEnumValidator,
1145
- to: LCNProfileValidator.partial().and(z10.object({ did: z10.string() })),
1146
- from: z10.union([
1147
- z10.string(),
1148
- LCNProfileValidator.partial().and(z10.object({ did: z10.string() }))
1149
- ]),
1219
+ to: LCNProfileValidator.partial().and(z11.object({ did: z11.string() })),
1220
+ from: z11.union([z11.string(), LCNProfileValidator.partial().and(z11.object({ did: z11.string() }))]),
1150
1221
  message: LCNNotificationMessageValidator.optional(),
1151
1222
  data: LCNNotificationDataValidator.optional(),
1152
- sent: z10.iso.datetime().optional(),
1153
- webhookUrl: z10.string().optional()
1223
+ sent: z11.iso.datetime().optional(),
1224
+ webhookUrl: z11.string().optional()
1154
1225
  });
1155
1226
  var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX = "auth-grant:";
1156
- var AuthGrantValidator = z10.object({
1157
- id: z10.string(),
1158
- name: z10.string(),
1159
- description: z10.string().optional(),
1160
- challenge: z10.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
1161
- status: z10.enum(["revoked", "active"], {
1227
+ var AuthGrantValidator = z11.object({
1228
+ id: z11.string(),
1229
+ name: z11.string(),
1230
+ description: z11.string().optional(),
1231
+ challenge: z11.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
1232
+ status: z11.enum(["revoked", "active"], {
1162
1233
  error: /* @__PURE__ */ __name((issue) => {
1163
1234
  if (issue.code === "invalid_value") return "Status must be either active or revoked";
1164
1235
  return "Status is required";
1165
1236
  }, "error")
1166
1237
  }),
1167
- scope: z10.string(),
1168
- createdAt: z10.iso.datetime({ error: "createdAt must be a valid ISO 8601 datetime string" }),
1169
- expiresAt: z10.iso.datetime({ error: "expiresAt must be a valid ISO 8601 datetime string" }).nullish().optional()
1238
+ scope: z11.string(),
1239
+ createdAt: z11.iso.datetime({ error: "createdAt must be a valid ISO 8601 datetime string" }),
1240
+ expiresAt: z11.iso.datetime({ error: "expiresAt must be a valid ISO 8601 datetime string" }).nullish().optional()
1170
1241
  });
1171
- var FlatAuthGrantValidator = z10.object({ id: z10.string() }).catchall(z10.any());
1172
- var AuthGrantStatusValidator = z10.enum(["active", "revoked"]);
1173
- var AuthGrantQueryValidator = z10.object({
1242
+ var FlatAuthGrantValidator = z11.object({ id: z11.string() }).catchall(z11.any());
1243
+ var AuthGrantStatusValidator = z11.enum(["active", "revoked"]);
1244
+ var AuthGrantQueryValidator = z11.object({
1174
1245
  id: StringQuery,
1175
1246
  name: StringQuery,
1176
1247
  description: StringQuery,
1177
1248
  status: AuthGrantStatusValidator
1178
1249
  }).partial();
1179
- var contactMethodBase = z10.object({
1180
- id: z10.string(),
1181
- isVerified: z10.boolean(),
1182
- verifiedAt: z10.string().optional(),
1183
- isPrimary: z10.boolean(),
1184
- createdAt: z10.string()
1185
- });
1186
- var ContactMethodValidator = z10.discriminatedUnion("type", [
1187
- z10.object({
1188
- type: z10.literal("email"),
1189
- value: z10.string().email()
1250
+ var contactMethodBase = z11.object({
1251
+ id: z11.string(),
1252
+ isVerified: z11.boolean(),
1253
+ verifiedAt: z11.string().optional(),
1254
+ isPrimary: z11.boolean(),
1255
+ createdAt: z11.string()
1256
+ });
1257
+ var ContactMethodValidator = z11.discriminatedUnion("type", [
1258
+ z11.object({
1259
+ type: z11.literal("email"),
1260
+ value: z11.string().email()
1190
1261
  }).merge(contactMethodBase),
1191
- z10.object({
1192
- type: z10.literal("phone"),
1193
- value: z10.string()
1262
+ z11.object({
1263
+ type: z11.literal("phone"),
1264
+ value: z11.string()
1194
1265
  // Can be improved with a regex later
1195
1266
  }).merge(contactMethodBase)
1196
1267
  ]);
1197
- var createContactMethodBase = z10.object({
1198
- isVerified: z10.boolean().optional(),
1199
- isPrimary: z10.boolean().optional()
1200
- });
1201
- var ContactMethodCreateValidator = z10.discriminatedUnion("type", [
1202
- z10.object({
1203
- type: z10.literal("email"),
1204
- value: z10.string().email()
1268
+ var createContactMethodBase = z11.object({
1269
+ isVerified: z11.boolean().optional(),
1270
+ isPrimary: z11.boolean().optional()
1271
+ });
1272
+ var ContactMethodCreateValidator = z11.discriminatedUnion("type", [
1273
+ z11.object({
1274
+ type: z11.literal("email"),
1275
+ value: z11.string().email()
1205
1276
  }).merge(createContactMethodBase),
1206
- z10.object({
1207
- type: z10.literal("phone"),
1208
- value: z10.string()
1277
+ z11.object({
1278
+ type: z11.literal("phone"),
1279
+ value: z11.string()
1209
1280
  }).merge(createContactMethodBase)
1210
1281
  ]);
1211
- var ContactMethodQueryValidator = z10.discriminatedUnion("type", [
1212
- z10.object({
1213
- type: z10.literal("email"),
1214
- value: z10.string().email()
1282
+ var ContactMethodQueryValidator = z11.discriminatedUnion("type", [
1283
+ z11.object({
1284
+ type: z11.literal("email"),
1285
+ value: z11.string().email()
1215
1286
  }),
1216
- z10.object({
1217
- type: z10.literal("phone"),
1218
- value: z10.string()
1287
+ z11.object({
1288
+ type: z11.literal("phone"),
1289
+ value: z11.string()
1219
1290
  })
1220
1291
  ]);
1221
- var ContactMethodVerificationRequestValidator = z10.object({
1222
- value: z10.string(),
1223
- type: z10.enum(["email", "phone"])
1292
+ var ContactMethodVerificationRequestValidator = z11.object({
1293
+ value: z11.string(),
1294
+ type: z11.enum(["email", "phone"])
1224
1295
  });
1225
- var ContactMethodVerificationValidator = z10.object({
1226
- token: z10.string()
1296
+ var ContactMethodVerificationValidator = z11.object({
1297
+ token: z11.string()
1227
1298
  });
1228
- var SetPrimaryContactMethodValidator = z10.object({
1229
- contactMethodId: z10.string()
1299
+ var SetPrimaryContactMethodValidator = z11.object({
1300
+ contactMethodId: z11.string()
1230
1301
  });
1231
- var CreateContactMethodSessionValidator = z10.object({
1302
+ var CreateContactMethodSessionValidator = z11.object({
1232
1303
  contactMethod: ContactMethodVerificationRequestValidator,
1233
- otpChallenge: z10.string()
1304
+ otpChallenge: z11.string()
1234
1305
  });
1235
- var CreateContactMethodSessionResponseValidator = z10.object({
1236
- sessionJwt: z10.string()
1306
+ var CreateContactMethodSessionResponseValidator = z11.object({
1307
+ sessionJwt: z11.string()
1237
1308
  });
1238
- var InboxCredentialValidator = z10.object({
1239
- id: z10.string(),
1240
- credential: z10.string(),
1241
- isSigned: z10.boolean(),
1309
+ var InboxCredentialValidator = z11.object({
1310
+ id: z11.string(),
1311
+ credential: z11.string(),
1312
+ isSigned: z11.boolean(),
1242
1313
  currentStatus: LCNInboxStatusEnumValidator,
1243
- isAccepted: z10.boolean().optional(),
1244
- expiresAt: z10.string(),
1245
- createdAt: z10.string(),
1246
- issuerDid: z10.string(),
1247
- webhookUrl: z10.string().optional(),
1248
- boostUri: z10.string().optional(),
1249
- activityId: z10.string().optional(),
1250
- integrationId: z10.string().optional(),
1251
- signingAuthority: z10.object({
1252
- endpoint: z10.string().optional(),
1253
- name: z10.string().optional()
1314
+ isAccepted: z11.boolean().optional(),
1315
+ expiresAt: z11.string(),
1316
+ createdAt: z11.string(),
1317
+ issuerDid: z11.string(),
1318
+ webhookUrl: z11.string().optional(),
1319
+ boostUri: z11.string().optional(),
1320
+ activityId: z11.string().optional(),
1321
+ integrationId: z11.string().optional(),
1322
+ signingAuthority: z11.object({
1323
+ endpoint: z11.string().optional(),
1324
+ name: z11.string().optional()
1254
1325
  }).optional(),
1255
1326
  // Guardian gate fields (all optional — absent on pre-existing credentials)
1256
- guardianEmail: z10.string().email().optional(),
1327
+ guardianEmail: z11.string().email().optional(),
1257
1328
  guardianStatus: GuardianStatusValidator.optional(),
1258
- guardianApprovedAt: z10.string().optional(),
1259
- guardianApprovedByDid: z10.string().optional()
1329
+ guardianApprovedAt: z11.string().optional(),
1330
+ guardianApprovedByDid: z11.string().optional()
1260
1331
  });
1261
- var PaginatedInboxCredentialsValidator = z10.object({
1262
- hasMore: z10.boolean(),
1263
- records: z10.array(InboxCredentialValidator),
1264
- cursor: z10.string().optional()
1332
+ var PaginatedInboxCredentialsValidator = z11.object({
1333
+ hasMore: z11.boolean(),
1334
+ records: z11.array(InboxCredentialValidator),
1335
+ cursor: z11.string().optional()
1265
1336
  });
1266
- var InboxCredentialQueryValidator = z10.object({
1337
+ var InboxCredentialQueryValidator = z11.object({
1267
1338
  currentStatus: LCNInboxStatusEnumValidator,
1268
- id: z10.string(),
1269
- isSigned: z10.boolean(),
1270
- isAccepted: z10.boolean().optional(),
1271
- issuerDid: z10.string(),
1272
- boostUri: z10.string()
1339
+ id: z11.string(),
1340
+ isSigned: z11.boolean(),
1341
+ isAccepted: z11.boolean().optional(),
1342
+ issuerDid: z11.string(),
1343
+ boostUri: z11.string()
1273
1344
  }).partial();
1274
- var IssueInboxSigningAuthorityValidator = z10.object({
1275
- endpoint: z10.string().url(),
1276
- name: z10.string()
1345
+ var IssueInboxSigningAuthorityValidator = z11.object({
1346
+ endpoint: z11.string().url(),
1347
+ name: z11.string()
1277
1348
  });
1278
- var IssueInboxCredentialValidator = z10.object({
1349
+ var IssueInboxCredentialValidator = z11.object({
1279
1350
  // === CORE DATA (Required) ===
1280
1351
  // WHAT is being sent and WHO is it for?
1281
1352
  recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
@@ -1283,7 +1354,7 @@ var IssueInboxCredentialValidator = z10.object({
1283
1354
  credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).optional().describe(
1284
1355
  "The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
1285
1356
  ),
1286
- templateUri: z10.string().optional().describe(
1357
+ templateUri: z11.string().optional().describe(
1287
1358
  "URI of a boost template to use for issuance. The boost credential will be resolved and used. Mutually exclusive with credential field."
1288
1359
  ),
1289
1360
  // === OPTIONAL FEATURES ===
@@ -1291,43 +1362,43 @@ var IssueInboxCredentialValidator = z10.object({
1291
1362
  //consentRequest: ConsentRequestValidator.optional(),
1292
1363
  // === PROCESS CONFIGURATION (Optional) ===
1293
1364
  // HOW should this issuance be handled?
1294
- configuration: z10.object({
1365
+ configuration: z11.object({
1295
1366
  signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
1296
1367
  "The signing authority to use for the credential. If not provided, the users default signing authority will be used if the credential is not signed."
1297
1368
  ),
1298
- webhookUrl: z10.string().url().optional().describe("The webhook URL to receive credential issuance events."),
1299
- expiresInDays: z10.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
1300
- templateData: z10.record(z10.string(), z10.unknown()).optional().describe(
1369
+ webhookUrl: z11.string().url().optional().describe("The webhook URL to receive credential issuance events."),
1370
+ expiresInDays: z11.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
1371
+ templateData: z11.record(z11.string(), z11.unknown()).optional().describe(
1301
1372
  "Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."
1302
1373
  ),
1303
1374
  // --- For User-Facing Delivery (Email/SMS) ---
1304
- delivery: z10.object({
1305
- suppress: z10.boolean().optional().default(false).describe(
1375
+ delivery: z11.object({
1376
+ suppress: z11.boolean().optional().default(false).describe(
1306
1377
  "Whether to suppress delivery of the credential to the recipient. If true, the email/sms will not be sent to the recipient. Useful if you would like to manually send claim link to your users."
1307
1378
  ),
1308
- template: z10.object({
1309
- id: z10.enum(["universal-inbox-claim"]).optional().describe(
1379
+ template: z11.object({
1380
+ id: z11.enum(["universal-inbox-claim"]).optional().describe(
1310
1381
  "The template ID to use for the credential delivery. If not provided, the default template will be used."
1311
1382
  ),
1312
- model: z10.object({
1313
- issuer: z10.object({
1314
- name: z10.string().optional().describe(
1383
+ model: z11.object({
1384
+ issuer: z11.object({
1385
+ name: z11.string().optional().describe(
1315
1386
  'The name of the organization (e.g., "State University").'
1316
1387
  ),
1317
- logoUrl: z10.string().url().optional().describe(
1388
+ logoUrl: z11.string().url().optional().describe(
1318
1389
  "The URL of the organization's logo."
1319
1390
  )
1320
1391
  }).optional(),
1321
- credential: z10.object({
1322
- name: z10.string().optional().describe(
1392
+ credential: z11.object({
1393
+ name: z11.string().optional().describe(
1323
1394
  'The name of the credential (e.g., "Bachelor of Science").'
1324
1395
  ),
1325
- type: z10.string().optional().describe(
1396
+ type: z11.string().optional().describe(
1326
1397
  'The type of the credential (e.g., "degree", "certificate").'
1327
1398
  )
1328
1399
  }).optional(),
1329
- recipient: z10.object({
1330
- name: z10.string().optional().describe(
1400
+ recipient: z11.object({
1401
+ name: z11.string().optional().describe(
1331
1402
  'The name of the recipient (e.g., "John Doe").'
1332
1403
  )
1333
1404
  }).optional()
@@ -1347,67 +1418,67 @@ var IssueInboxCredentialValidator = z10.object({
1347
1418
  message: "Either credential or templateUri must be provided.",
1348
1419
  path: ["credential"]
1349
1420
  });
1350
- var IssueInboxCredentialResponseValidator = z10.object({
1351
- issuanceId: z10.string(),
1421
+ var IssueInboxCredentialResponseValidator = z11.object({
1422
+ issuanceId: z11.string(),
1352
1423
  status: LCNInboxStatusEnumValidator,
1353
1424
  recipient: ContactMethodQueryValidator,
1354
- claimUrl: z10.string().url().optional(),
1355
- recipientDid: z10.string().optional()
1425
+ claimUrl: z11.string().url().optional(),
1426
+ recipientDid: z11.string().optional()
1356
1427
  });
1357
- var CredentialNameRefValidator = z10.object({ name: z10.string() }).passthrough();
1358
- var ClaimInboxCredentialValidator = z10.object({
1428
+ var CredentialNameRefValidator = z11.object({ name: z11.string() }).passthrough();
1429
+ var ClaimInboxCredentialValidator = z11.object({
1359
1430
  credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).or(CredentialNameRefValidator).describe("The credential to issue, or a { name } reference to resolve a boost template."),
1360
- configuration: z10.object({
1361
- publishableKey: z10.string(),
1362
- signingAuthorityName: z10.string().optional(),
1363
- listingId: z10.string().optional(),
1364
- listingSlug: z10.string().optional()
1431
+ configuration: z11.object({
1432
+ publishableKey: z11.string(),
1433
+ signingAuthorityName: z11.string().optional(),
1434
+ listingId: z11.string().optional(),
1435
+ listingSlug: z11.string().optional()
1365
1436
  }).optional()
1366
1437
  });
1367
- var LCNDomainOrOriginValidator = z10.union([
1368
- z10.string().regex(
1438
+ var LCNDomainOrOriginValidator = z11.union([
1439
+ z11.string().regex(
1369
1440
  /^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
1370
1441
  {
1371
1442
  message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
1372
1443
  }
1373
1444
  ),
1374
- z10.string().regex(
1445
+ z11.string().regex(
1375
1446
  /^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
1376
1447
  { message: "Must be a valid http(s) origin" }
1377
1448
  )
1378
1449
  ]);
1379
- var LCNIntegrationStatusEnum = z10.enum(["setup", "active", "paused"]);
1380
- var LCNIntegrationValidator = z10.object({
1381
- id: z10.string(),
1382
- name: z10.string(),
1383
- description: z10.string().optional(),
1384
- publishableKey: z10.string(),
1385
- whitelistedDomains: z10.array(LCNDomainOrOriginValidator).default([]),
1450
+ var LCNIntegrationStatusEnum = z11.enum(["setup", "active", "paused"]);
1451
+ var LCNIntegrationValidator = z11.object({
1452
+ id: z11.string(),
1453
+ name: z11.string(),
1454
+ description: z11.string().optional(),
1455
+ publishableKey: z11.string(),
1456
+ whitelistedDomains: z11.array(LCNDomainOrOriginValidator).default([]),
1386
1457
  // Setup/onboarding status
1387
1458
  status: LCNIntegrationStatusEnum.default("setup"),
1388
- guideType: z10.string().optional(),
1389
- guideState: z10.record(z10.string(), z10.any()).optional(),
1459
+ guideType: z11.string().optional(),
1460
+ guideState: z11.record(z11.string(), z11.any()).optional(),
1390
1461
  // Timestamps
1391
- createdAt: z10.string().optional(),
1392
- updatedAt: z10.string().optional()
1393
- });
1394
- var LCNIntegrationCreateValidator = z10.object({
1395
- name: z10.string(),
1396
- description: z10.string().optional(),
1397
- whitelistedDomains: z10.array(LCNDomainOrOriginValidator).default([]),
1398
- guideType: z10.string().optional()
1399
- });
1400
- var LCNIntegrationUpdateValidator = z10.object({
1401
- name: z10.string().optional(),
1402
- description: z10.string().optional(),
1403
- whitelistedDomains: z10.array(LCNDomainOrOriginValidator).optional(),
1404
- rotatePublishableKey: z10.boolean().optional(),
1462
+ createdAt: z11.string().optional(),
1463
+ updatedAt: z11.string().optional()
1464
+ });
1465
+ var LCNIntegrationCreateValidator = z11.object({
1466
+ name: z11.string(),
1467
+ description: z11.string().optional(),
1468
+ whitelistedDomains: z11.array(LCNDomainOrOriginValidator).default([]),
1469
+ guideType: z11.string().optional()
1470
+ });
1471
+ var LCNIntegrationUpdateValidator = z11.object({
1472
+ name: z11.string().optional(),
1473
+ description: z11.string().optional(),
1474
+ whitelistedDomains: z11.array(LCNDomainOrOriginValidator).optional(),
1475
+ rotatePublishableKey: z11.boolean().optional(),
1405
1476
  // Setup/onboarding updates
1406
1477
  status: LCNIntegrationStatusEnum.optional(),
1407
- guideType: z10.string().optional(),
1408
- guideState: z10.record(z10.string(), z10.any()).optional()
1478
+ guideType: z11.string().optional(),
1479
+ guideState: z11.record(z11.string(), z11.any()).optional()
1409
1480
  });
1410
- var LCNIntegrationQueryValidator = z10.object({
1481
+ var LCNIntegrationQueryValidator = z11.object({
1411
1482
  id: StringQuery,
1412
1483
  name: StringQuery,
1413
1484
  description: StringQuery,
@@ -1417,117 +1488,117 @@ var LCNIntegrationQueryValidator = z10.object({
1417
1488
  var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
1418
1489
  records: LCNIntegrationValidator.array()
1419
1490
  });
1420
- var ClaimTokenValidator = z10.object({
1421
- token: z10.string(),
1422
- contactMethodId: z10.string(),
1423
- autoVerifyContactMethod: z10.boolean().optional().default(false),
1424
- createdAt: z10.string(),
1425
- expiresAt: z10.string(),
1426
- used: z10.boolean()
1427
- });
1428
- var TagValidator = z10.object({
1429
- id: z10.string(),
1430
- name: z10.string().min(1),
1431
- slug: z10.string().min(1),
1432
- createdAt: z10.string().optional(),
1433
- updatedAt: z10.string().optional()
1434
- });
1435
- var SkillStatusEnum = z10.enum(["active", "archived"]);
1436
- var SkillValidator = z10.object({
1437
- id: z10.string(),
1438
- statement: z10.string(),
1439
- description: z10.string().optional(),
1440
- code: z10.string().optional(),
1441
- icon: z10.string().optional(),
1442
- type: z10.string().default("skill"),
1491
+ var ClaimTokenValidator = z11.object({
1492
+ token: z11.string(),
1493
+ contactMethodId: z11.string(),
1494
+ autoVerifyContactMethod: z11.boolean().optional().default(false),
1495
+ createdAt: z11.string(),
1496
+ expiresAt: z11.string(),
1497
+ used: z11.boolean()
1498
+ });
1499
+ var TagValidator = z11.object({
1500
+ id: z11.string(),
1501
+ name: z11.string().min(1),
1502
+ slug: z11.string().min(1),
1503
+ createdAt: z11.string().optional(),
1504
+ updatedAt: z11.string().optional()
1505
+ });
1506
+ var SkillStatusEnum = z11.enum(["active", "archived"]);
1507
+ var SkillValidator = z11.object({
1508
+ id: z11.string(),
1509
+ statement: z11.string(),
1510
+ description: z11.string().optional(),
1511
+ code: z11.string().optional(),
1512
+ icon: z11.string().optional(),
1513
+ type: z11.string().default("skill"),
1443
1514
  status: SkillStatusEnum.default("active"),
1444
- frameworkId: z10.string().optional(),
1445
- createdAt: z10.string().optional(),
1446
- updatedAt: z10.string().optional()
1515
+ frameworkId: z11.string().optional(),
1516
+ createdAt: z11.string().optional(),
1517
+ updatedAt: z11.string().optional()
1447
1518
  });
1448
- var BaseSkillQueryValidator = z10.object({
1519
+ var BaseSkillQueryValidator = z11.object({
1449
1520
  id: StringQuery,
1450
1521
  statement: StringQuery,
1451
1522
  description: StringQuery,
1452
1523
  code: StringQuery,
1453
1524
  type: StringQuery,
1454
- status: SkillStatusEnum.or(z10.object({ $in: SkillStatusEnum.array() }))
1525
+ status: SkillStatusEnum.or(z11.object({ $in: SkillStatusEnum.array() }))
1455
1526
  }).partial();
1456
- var SkillQueryValidator = z10.union([
1457
- z10.object({
1527
+ var SkillQueryValidator = z11.union([
1528
+ z11.object({
1458
1529
  $or: BaseSkillQueryValidator.array()
1459
1530
  }),
1460
1531
  BaseSkillQueryValidator
1461
1532
  ]);
1462
- var SkillSemanticSearchInputValidator = z10.object({
1463
- text: z10.string().min(1),
1464
- frameworkId: z10.string().optional(),
1465
- limit: z10.number().int().min(1).max(200).default(50)
1533
+ var SkillSemanticSearchInputValidator = z11.object({
1534
+ text: z11.string().min(1),
1535
+ frameworkId: z11.string().optional(),
1536
+ limit: z11.number().int().min(1).max(200).default(50)
1466
1537
  });
1467
1538
  var SkillSemanticSearchResultItemValidator = SkillValidator.extend({
1468
- score: z10.number()
1539
+ score: z11.number()
1469
1540
  });
1470
- var SkillSemanticSearchResultValidator = z10.object({
1541
+ var SkillSemanticSearchResultValidator = z11.object({
1471
1542
  records: SkillSemanticSearchResultItemValidator.array()
1472
1543
  });
1473
- var SkillFrameworkStatusEnum = z10.enum(["active", "archived"]);
1474
- var SkillFrameworkValidator = z10.object({
1475
- id: z10.string(),
1476
- name: z10.string(),
1477
- description: z10.string().optional(),
1478
- image: z10.string().optional(),
1479
- sourceURI: z10.string().url().optional(),
1480
- isPublic: z10.boolean().default(false),
1544
+ var SkillFrameworkStatusEnum = z11.enum(["active", "archived"]);
1545
+ var SkillFrameworkValidator = z11.object({
1546
+ id: z11.string(),
1547
+ name: z11.string(),
1548
+ description: z11.string().optional(),
1549
+ image: z11.string().optional(),
1550
+ sourceURI: z11.string().url().optional(),
1551
+ isPublic: z11.boolean().default(false),
1481
1552
  status: SkillFrameworkStatusEnum.default("active"),
1482
- createdAt: z10.string().optional(),
1483
- updatedAt: z10.string().optional()
1553
+ createdAt: z11.string().optional(),
1554
+ updatedAt: z11.string().optional()
1484
1555
  });
1485
1556
  var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
1486
1557
  records: SkillFrameworkValidator.array()
1487
1558
  });
1488
1559
  var SkillTreeNodeValidator = SkillValidator.extend({
1489
- children: z10.array(z10.lazy(() => SkillTreeNodeValidator)),
1490
- hasChildren: z10.boolean(),
1491
- childrenCursor: z10.string().nullable().optional()
1492
- });
1493
- var PaginatedSkillTreeValidator = z10.object({
1494
- hasMore: z10.boolean(),
1495
- cursor: z10.string().nullable(),
1496
- records: z10.array(SkillTreeNodeValidator)
1497
- });
1498
- var SkillTreeNodeInputValidator = z10.lazy(
1499
- () => z10.object({
1500
- id: z10.string().optional(),
1501
- statement: z10.string(),
1502
- description: z10.string().optional(),
1503
- code: z10.string().optional(),
1504
- icon: z10.string().optional(),
1505
- type: z10.string().optional(),
1560
+ children: z11.array(z11.lazy(() => SkillTreeNodeValidator)),
1561
+ hasChildren: z11.boolean(),
1562
+ childrenCursor: z11.string().nullable().optional()
1563
+ });
1564
+ var PaginatedSkillTreeValidator = z11.object({
1565
+ hasMore: z11.boolean(),
1566
+ cursor: z11.string().nullable(),
1567
+ records: z11.array(SkillTreeNodeValidator)
1568
+ });
1569
+ var SkillTreeNodeInputValidator = z11.lazy(
1570
+ () => z11.object({
1571
+ id: z11.string().optional(),
1572
+ statement: z11.string(),
1573
+ description: z11.string().optional(),
1574
+ code: z11.string().optional(),
1575
+ icon: z11.string().optional(),
1576
+ type: z11.string().optional(),
1506
1577
  status: SkillStatusEnum.optional(),
1507
- children: z10.array(SkillTreeNodeInputValidator).optional()
1578
+ children: z11.array(SkillTreeNodeInputValidator).optional()
1508
1579
  })
1509
1580
  );
1510
- var LinkProviderFrameworkInputValidator = z10.object({
1511
- frameworkId: z10.string()
1512
- });
1513
- var CreateManagedFrameworkInputValidator = z10.object({
1514
- id: z10.string().optional(),
1515
- name: z10.string().min(1),
1516
- description: z10.string().optional(),
1517
- image: z10.string().optional(),
1518
- sourceURI: z10.string().url().optional(),
1519
- isPublic: z10.boolean().optional(),
1581
+ var LinkProviderFrameworkInputValidator = z11.object({
1582
+ frameworkId: z11.string()
1583
+ });
1584
+ var CreateManagedFrameworkInputValidator = z11.object({
1585
+ id: z11.string().optional(),
1586
+ name: z11.string().min(1),
1587
+ description: z11.string().optional(),
1588
+ image: z11.string().optional(),
1589
+ sourceURI: z11.string().url().optional(),
1590
+ isPublic: z11.boolean().optional(),
1520
1591
  status: SkillFrameworkStatusEnum.optional(),
1521
- skills: z10.array(SkillTreeNodeInputValidator).optional(),
1522
- boostUris: z10.array(z10.string()).optional()
1523
- });
1524
- var UpdateFrameworkInputValidator = z10.object({
1525
- id: z10.string(),
1526
- name: z10.string().min(1).optional(),
1527
- description: z10.string().optional(),
1528
- image: z10.string().optional(),
1529
- sourceURI: z10.string().url().optional(),
1530
- isPublic: z10.boolean().optional(),
1592
+ skills: z11.array(SkillTreeNodeInputValidator).optional(),
1593
+ boostUris: z11.array(z11.string()).optional()
1594
+ });
1595
+ var UpdateFrameworkInputValidator = z11.object({
1596
+ id: z11.string(),
1597
+ name: z11.string().min(1).optional(),
1598
+ description: z11.string().optional(),
1599
+ image: z11.string().optional(),
1600
+ sourceURI: z11.string().url().optional(),
1601
+ isPublic: z11.boolean().optional(),
1531
1602
  status: SkillFrameworkStatusEnum.optional()
1532
1603
  }).refine(
1533
1604
  (data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.isPublic !== void 0 || data.status !== void 0,
@@ -1536,38 +1607,38 @@ var UpdateFrameworkInputValidator = z10.object({
1536
1607
  path: ["name"]
1537
1608
  }
1538
1609
  );
1539
- var DeleteFrameworkInputValidator = z10.object({ id: z10.string() });
1540
- var CreateManagedFrameworkBatchInputValidator = z10.object({
1541
- frameworks: z10.array(
1610
+ var DeleteFrameworkInputValidator = z11.object({ id: z11.string() });
1611
+ var CreateManagedFrameworkBatchInputValidator = z11.object({
1612
+ frameworks: z11.array(
1542
1613
  CreateManagedFrameworkInputValidator.extend({
1543
- skills: z10.array(SkillTreeNodeInputValidator).optional()
1614
+ skills: z11.array(SkillTreeNodeInputValidator).optional()
1544
1615
  })
1545
1616
  ).min(1)
1546
1617
  });
1547
- var SkillFrameworkAdminInputValidator = z10.object({
1548
- frameworkId: z10.string(),
1549
- profileId: z10.string()
1618
+ var SkillFrameworkAdminInputValidator = z11.object({
1619
+ frameworkId: z11.string(),
1620
+ profileId: z11.string()
1550
1621
  });
1551
- var SkillFrameworkIdInputValidator = z10.object({ frameworkId: z10.string() });
1622
+ var SkillFrameworkIdInputValidator = z11.object({ frameworkId: z11.string() });
1552
1623
  var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
1553
- var SyncFrameworkInputValidator = z10.object({ id: z10.string() });
1554
- var AddTagInputValidator = z10.object({
1555
- slug: z10.string().min(1),
1556
- name: z10.string().min(1)
1624
+ var SyncFrameworkInputValidator = z11.object({ id: z11.string() });
1625
+ var AddTagInputValidator = z11.object({
1626
+ slug: z11.string().min(1),
1627
+ name: z11.string().min(1)
1557
1628
  });
1558
- var CreateSkillInputValidator = z10.object({
1559
- frameworkId: z10.string(),
1629
+ var CreateSkillInputValidator = z11.object({
1630
+ frameworkId: z11.string(),
1560
1631
  skill: SkillTreeNodeInputValidator,
1561
- parentId: z10.string().nullable().optional()
1562
- });
1563
- var UpdateSkillInputValidator = z10.object({
1564
- frameworkId: z10.string(),
1565
- id: z10.string(),
1566
- statement: z10.string().optional(),
1567
- description: z10.string().optional(),
1568
- code: z10.string().optional(),
1569
- icon: z10.string().optional(),
1570
- type: z10.string().optional(),
1632
+ parentId: z11.string().nullable().optional()
1633
+ });
1634
+ var UpdateSkillInputValidator = z11.object({
1635
+ frameworkId: z11.string(),
1636
+ id: z11.string(),
1637
+ statement: z11.string().optional(),
1638
+ description: z11.string().optional(),
1639
+ code: z11.string().optional(),
1640
+ icon: z11.string().optional(),
1641
+ type: z11.string().optional(),
1571
1642
  status: SkillStatusEnum.optional()
1572
1643
  }).refine(
1573
1644
  (data) => data.statement !== void 0 || data.description !== void 0 || data.code !== void 0 || data.icon !== void 0 || data.type !== void 0 || data.status !== void 0,
@@ -1576,56 +1647,56 @@ var UpdateSkillInputValidator = z10.object({
1576
1647
  path: ["statement"]
1577
1648
  }
1578
1649
  );
1579
- var SkillDeletionStrategyValidator = z10.enum(["recursive", "reparent"]);
1580
- var DeleteSkillInputValidator = z10.object({
1581
- frameworkId: z10.string(),
1582
- id: z10.string(),
1650
+ var SkillDeletionStrategyValidator = z11.enum(["recursive", "reparent"]);
1651
+ var DeleteSkillInputValidator = z11.object({
1652
+ frameworkId: z11.string(),
1653
+ id: z11.string(),
1583
1654
  strategy: SkillDeletionStrategyValidator.optional().default("reparent")
1584
1655
  });
1585
- var CreateSkillsBatchInputValidator = z10.object({
1586
- frameworkId: z10.string(),
1587
- skills: z10.array(SkillTreeNodeInputValidator).min(1),
1588
- parentId: z10.string().nullable().optional()
1656
+ var CreateSkillsBatchInputValidator = z11.object({
1657
+ frameworkId: z11.string(),
1658
+ skills: z11.array(SkillTreeNodeInputValidator).min(1),
1659
+ parentId: z11.string().nullable().optional()
1589
1660
  });
1590
- var ReplaceSkillFrameworkSkillsInputValidator = z10.object({
1591
- frameworkId: z10.string(),
1592
- skills: z10.array(SkillTreeNodeInputValidator).min(0)
1661
+ var ReplaceSkillFrameworkSkillsInputValidator = z11.object({
1662
+ frameworkId: z11.string(),
1663
+ skills: z11.array(SkillTreeNodeInputValidator).min(0)
1593
1664
  });
1594
- var ReplaceSkillFrameworkSkillsResultValidator = z10.object({
1595
- created: z10.number().int().min(0),
1596
- updated: z10.number().int().min(0),
1597
- deleted: z10.number().int().min(0),
1598
- unchanged: z10.number().int().min(0),
1599
- total: z10.number().int().min(0)
1665
+ var ReplaceSkillFrameworkSkillsResultValidator = z11.object({
1666
+ created: z11.number().int().min(0),
1667
+ updated: z11.number().int().min(0),
1668
+ deleted: z11.number().int().min(0),
1669
+ unchanged: z11.number().int().min(0),
1670
+ total: z11.number().int().min(0)
1600
1671
  });
1601
- var CountSkillsInputValidator = z10.object({
1602
- frameworkId: z10.string(),
1603
- skillId: z10.string().optional(),
1604
- recursive: z10.boolean().optional().default(false),
1605
- onlyCountCompetencies: z10.boolean().optional().default(false)
1672
+ var CountSkillsInputValidator = z11.object({
1673
+ frameworkId: z11.string(),
1674
+ skillId: z11.string().optional(),
1675
+ recursive: z11.boolean().optional().default(false),
1676
+ onlyCountCompetencies: z11.boolean().optional().default(false)
1606
1677
  });
1607
- var CountSkillsResultValidator = z10.object({
1608
- count: z10.number().int().min(0)
1678
+ var CountSkillsResultValidator = z11.object({
1679
+ count: z11.number().int().min(0)
1609
1680
  });
1610
- var GetFullSkillTreeInputValidator = z10.object({
1611
- frameworkId: z10.string()
1681
+ var GetFullSkillTreeInputValidator = z11.object({
1682
+ frameworkId: z11.string()
1612
1683
  });
1613
- var GetFullSkillTreeResultValidator = z10.object({
1614
- skills: z10.array(SkillTreeNodeValidator)
1684
+ var GetFullSkillTreeResultValidator = z11.object({
1685
+ skills: z11.array(SkillTreeNodeValidator)
1615
1686
  });
1616
- var GetSkillPathInputValidator = z10.object({
1617
- frameworkId: z10.string(),
1618
- skillId: z10.string()
1687
+ var GetSkillPathInputValidator = z11.object({
1688
+ frameworkId: z11.string(),
1689
+ skillId: z11.string()
1619
1690
  });
1620
- var GetSkillPathResultValidator = z10.object({
1621
- path: z10.array(SkillValidator)
1691
+ var GetSkillPathResultValidator = z11.object({
1692
+ path: z11.array(SkillValidator)
1622
1693
  });
1623
- var FrameworkWithSkillsValidator = z10.object({
1694
+ var FrameworkWithSkillsValidator = z11.object({
1624
1695
  framework: SkillFrameworkValidator,
1625
1696
  skills: PaginatedSkillTreeValidator
1626
1697
  });
1627
- var AppListingStatusValidator = z10.enum(["DRAFT", "PENDING_REVIEW", "LISTED", "ARCHIVED"]);
1628
- var LaunchTypeValidator = z10.enum([
1698
+ var AppListingStatusValidator = z11.enum(["DRAFT", "PENDING_REVIEW", "LISTED", "ARCHIVED"]);
1699
+ var LaunchTypeValidator = z11.enum([
1629
1700
  "EMBEDDED_IFRAME",
1630
1701
  "SECOND_SCREEN",
1631
1702
  "DIRECT_LINK",
@@ -1633,43 +1704,43 @@ var LaunchTypeValidator = z10.enum([
1633
1704
  "SERVER_HEADLESS",
1634
1705
  "AI_TUTOR"
1635
1706
  ]);
1636
- var PromotionLevelValidator = z10.enum([
1707
+ var PromotionLevelValidator = z11.enum([
1637
1708
  "FEATURED_CAROUSEL",
1638
1709
  "CURATED_LIST",
1639
1710
  "STANDARD",
1640
1711
  "DEMOTED"
1641
1712
  ]);
1642
- var AgeRatingValidator = z10.enum(["4+", "9+", "12+", "17+"]);
1643
- var AppStoreListingSubmitterValidator = z10.object({
1644
- profileId: z10.string(),
1645
- displayName: z10.string(),
1646
- email: z10.string().optional()
1647
- });
1648
- var AppStoreListingValidator = z10.object({
1649
- listing_id: z10.string(),
1650
- slug: z10.string().optional(),
1651
- display_name: z10.string(),
1652
- tagline: z10.string(),
1653
- full_description: z10.string(),
1654
- icon_url: z10.string(),
1713
+ var AgeRatingValidator = z11.enum(["4+", "9+", "12+", "17+"]);
1714
+ var AppStoreListingSubmitterValidator = z11.object({
1715
+ profileId: z11.string(),
1716
+ displayName: z11.string(),
1717
+ email: z11.string().optional()
1718
+ });
1719
+ var AppStoreListingValidator = z11.object({
1720
+ listing_id: z11.string(),
1721
+ slug: z11.string().optional(),
1722
+ display_name: z11.string(),
1723
+ tagline: z11.string(),
1724
+ full_description: z11.string(),
1725
+ icon_url: z11.string(),
1655
1726
  app_listing_status: AppListingStatusValidator,
1656
1727
  launch_type: LaunchTypeValidator,
1657
- launch_config_json: z10.string(),
1658
- category: z10.string().optional(),
1659
- promo_video_url: z10.string().optional(),
1728
+ launch_config_json: z11.string(),
1729
+ category: z11.string().optional(),
1730
+ promo_video_url: z11.string().optional(),
1660
1731
  promotion_level: PromotionLevelValidator.optional(),
1661
- ios_app_store_id: z10.string().optional(),
1662
- android_app_store_id: z10.string().optional(),
1663
- privacy_policy_url: z10.string().optional(),
1664
- terms_url: z10.string().optional(),
1665
- highlights: z10.array(z10.string()).optional(),
1666
- screenshots: z10.array(z10.string()).optional(),
1667
- hero_background_color: z10.string().optional(),
1668
- min_age: z10.number().int().min(0).max(18).optional(),
1732
+ ios_app_store_id: z11.string().optional(),
1733
+ android_app_store_id: z11.string().optional(),
1734
+ privacy_policy_url: z11.string().optional(),
1735
+ terms_url: z11.string().optional(),
1736
+ highlights: z11.array(z11.string()).optional(),
1737
+ screenshots: z11.array(z11.string()).optional(),
1738
+ hero_background_color: z11.string().optional(),
1739
+ min_age: z11.number().int().min(0).max(18).optional(),
1669
1740
  age_rating: AgeRatingValidator.optional(),
1670
- submitted_at: z10.string().optional(),
1741
+ submitted_at: z11.string().optional(),
1671
1742
  submitter: AppStoreListingSubmitterValidator.optional(),
1672
- contact_email: z10.string().email().optional()
1743
+ contact_email: z11.string().email().optional()
1673
1744
  });
1674
1745
  var AppStoreListingCreateValidator = AppStoreListingValidator.omit({
1675
1746
  listing_id: true,
@@ -1682,7 +1753,7 @@ var AppStoreListingUpdateValidator = AppStoreListingValidator.partial().omit({
1682
1753
  promotion_level: true
1683
1754
  });
1684
1755
  var InstalledAppValidator = AppStoreListingValidator.extend({
1685
- installed_at: z10.string()
1756
+ installed_at: z11.string()
1686
1757
  });
1687
1758
  var PaginatedAppStoreListingsValidator = PaginationResponseValidator.extend({
1688
1759
  records: AppStoreListingValidator.array()
@@ -1690,110 +1761,110 @@ var PaginatedAppStoreListingsValidator = PaginationResponseValidator.extend({
1690
1761
  var PaginatedInstalledAppsValidator = PaginationResponseValidator.extend({
1691
1762
  records: InstalledAppValidator.array()
1692
1763
  });
1693
- var AppBoostValidator = z10.object({
1694
- templateAlias: z10.string().min(1).max(50).regex(/^[a-z0-9-]+$/),
1695
- boostUri: z10.string()
1764
+ var AppBoostValidator = z11.object({
1765
+ templateAlias: z11.string().min(1).max(50).regex(/^[a-z0-9-]+$/),
1766
+ boostUri: z11.string()
1696
1767
  });
1697
- var SendCredentialEventValidator = z10.object({
1698
- type: z10.literal("send-credential"),
1699
- templateAlias: z10.string(),
1700
- templateData: z10.record(z10.string(), z10.unknown()).optional(),
1701
- preventDuplicateClaim: z10.boolean().optional()
1768
+ var SendCredentialEventValidator = z11.object({
1769
+ type: z11.literal("send-credential"),
1770
+ templateAlias: z11.string(),
1771
+ templateData: z11.record(z11.string(), z11.unknown()).optional(),
1772
+ preventDuplicateClaim: z11.boolean().optional()
1702
1773
  });
1703
- var CheckCredentialEventValidator = z10.object({
1704
- type: z10.literal("check-credential"),
1705
- templateAlias: z10.string().optional(),
1706
- boostUri: z10.string().optional()
1774
+ var CheckCredentialEventValidator = z11.object({
1775
+ type: z11.literal("check-credential"),
1776
+ templateAlias: z11.string().optional(),
1777
+ boostUri: z11.string().optional()
1707
1778
  }).refine((input) => Boolean(input.templateAlias) !== Boolean(input.boostUri), {
1708
1779
  message: "Exactly one of templateAlias or boostUri is required"
1709
1780
  });
1710
- var CheckIssuanceStatusEventValidator = z10.object({
1711
- type: z10.literal("check-issuance-status"),
1712
- templateAlias: z10.string().optional(),
1713
- boostUri: z10.string().optional(),
1714
- recipient: z10.string()
1781
+ var CheckIssuanceStatusEventValidator = z11.object({
1782
+ type: z11.literal("check-issuance-status"),
1783
+ templateAlias: z11.string().optional(),
1784
+ boostUri: z11.string().optional(),
1785
+ recipient: z11.string()
1715
1786
  }).refine((input) => Boolean(input.templateAlias) !== Boolean(input.boostUri), {
1716
1787
  message: "Exactly one of templateAlias or boostUri is required"
1717
1788
  });
1718
- var GetTemplateRecipientsEventValidator = z10.object({
1719
- type: z10.literal("get-template-recipients"),
1720
- templateAlias: z10.string().optional(),
1721
- boostUri: z10.string().optional(),
1722
- limit: z10.number().optional(),
1723
- cursor: z10.string().optional()
1789
+ var GetTemplateRecipientsEventValidator = z11.object({
1790
+ type: z11.literal("get-template-recipients"),
1791
+ templateAlias: z11.string().optional(),
1792
+ boostUri: z11.string().optional(),
1793
+ limit: z11.number().optional(),
1794
+ cursor: z11.string().optional()
1724
1795
  }).refine((input) => Boolean(input.templateAlias) !== Boolean(input.boostUri), {
1725
1796
  message: "Exactly one of templateAlias or boostUri is required"
1726
1797
  });
1727
- var RequestLearnerContextEventValidator = z10.object({
1728
- type: z10.literal("request-learner-context"),
1729
- includeCredentials: z10.boolean().optional().default(true),
1730
- includePersonalData: z10.boolean().optional().default(false),
1731
- format: z10.enum(["prompt", "structured"]).optional().default("prompt"),
1732
- instructions: z10.string().optional(),
1733
- detailLevel: z10.enum(["compact", "expanded"]).optional().default("compact")
1734
- });
1735
- var SummaryCredentialKeywordValidator = z10.object({
1736
- occupations: z10.array(z10.string()).nullable(),
1737
- careers: z10.array(z10.string()).nullable(),
1738
- jobs: z10.array(z10.string()).nullable(),
1739
- skills: z10.array(z10.string()).nullable(),
1740
- fieldOfStudy: z10.string().nullable()
1741
- });
1742
- var SummaryCredentialDataValidator = z10.object({
1743
- title: z10.string().describe("Short, concise title for the learning session or credential"),
1744
- summary: z10.string().describe("Comprehensive summary of what happened during the session"),
1745
- learned: z10.array(z10.string()).describe("Bullet points of key knowledge gained"),
1746
- skills: z10.array(
1747
- z10.object({
1748
- title: z10.string().describe("Name of the skill category"),
1749
- description: z10.string().describe("Detailed description of what this skill category involves")
1798
+ var RequestLearnerContextEventValidator = z11.object({
1799
+ type: z11.literal("request-learner-context"),
1800
+ includeCredentials: z11.boolean().optional().default(true),
1801
+ includePersonalData: z11.boolean().optional().default(false),
1802
+ format: z11.enum(["prompt", "structured"]).optional().default("prompt"),
1803
+ instructions: z11.string().optional(),
1804
+ detailLevel: z11.enum(["compact", "expanded"]).optional().default("compact")
1805
+ });
1806
+ var SummaryCredentialKeywordValidator = z11.object({
1807
+ occupations: z11.array(z11.string()).nullable(),
1808
+ careers: z11.array(z11.string()).nullable(),
1809
+ jobs: z11.array(z11.string()).nullable(),
1810
+ skills: z11.array(z11.string()).nullable(),
1811
+ fieldOfStudy: z11.string().nullable()
1812
+ });
1813
+ var SummaryCredentialDataValidator = z11.object({
1814
+ title: z11.string().describe("Short, concise title for the learning session or credential"),
1815
+ summary: z11.string().describe("Comprehensive summary of what happened during the session"),
1816
+ learned: z11.array(z11.string()).describe("Bullet points of key knowledge gained"),
1817
+ skills: z11.array(
1818
+ z11.object({
1819
+ title: z11.string().describe("Name of the skill category"),
1820
+ description: z11.string().describe("Detailed description of what this skill category involves")
1750
1821
  })
1751
1822
  ).describe("Categorized skills learned during the session"),
1752
- nextSteps: z10.array(
1753
- z10.object({
1754
- title: z10.string().describe("Title of the suggested next step"),
1755
- description: z10.string().describe("Description explaining why this next step is recommended"),
1823
+ nextSteps: z11.array(
1824
+ z11.object({
1825
+ title: z11.string().describe("Title of the suggested next step"),
1826
+ description: z11.string().describe("Description explaining why this next step is recommended"),
1756
1827
  keywords: SummaryCredentialKeywordValidator.optional().describe(
1757
1828
  "Optional taxonomy keywords for occupations/careers/jobs/skills/fieldOfStudy. Omit if not relevant."
1758
1829
  )
1759
1830
  })
1760
1831
  ).describe("Recommended follow-up activities or learning modules"),
1761
- reflections: z10.array(
1762
- z10.object({
1763
- title: z10.string().describe("Title of the reflection"),
1764
- description: z10.string().describe("Detailed description of what this reflection involves")
1832
+ reflections: z11.array(
1833
+ z11.object({
1834
+ title: z11.string().describe("Title of the reflection"),
1835
+ description: z11.string().describe("Detailed description of what this reflection involves")
1765
1836
  })
1766
1837
  ).describe("Reflections on the learning experience")
1767
1838
  });
1768
- var SendAiSessionCredentialEventValidator = z10.object({
1769
- type: z10.literal("send-ai-session-credential"),
1770
- sessionTitle: z10.string(),
1839
+ var SendAiSessionCredentialEventValidator = z11.object({
1840
+ type: z11.literal("send-ai-session-credential"),
1841
+ sessionTitle: z11.string(),
1771
1842
  summaryData: SummaryCredentialDataValidator,
1772
- metadata: z10.record(z10.string(), z10.unknown()).optional()
1773
- });
1774
- var SendNotificationEventValidator = z10.object({
1775
- type: z10.literal("send-notification"),
1776
- title: z10.string().optional(),
1777
- body: z10.string().optional(),
1778
- actionPath: z10.string().optional(),
1779
- category: z10.string().optional(),
1780
- priority: z10.enum(["normal", "high"]).optional()
1781
- });
1782
- var counterKeyValidator = z10.string().min(1).max(64).regex(/^[a-zA-Z0-9_-]+$/, "Key must be alphanumeric with _ or -");
1783
- var IncrementCounterEventValidator = z10.object({
1784
- type: z10.literal("increment-counter"),
1843
+ metadata: z11.record(z11.string(), z11.unknown()).optional()
1844
+ });
1845
+ var SendNotificationEventValidator = z11.object({
1846
+ type: z11.literal("send-notification"),
1847
+ title: z11.string().optional(),
1848
+ body: z11.string().optional(),
1849
+ actionPath: z11.string().optional(),
1850
+ category: z11.string().optional(),
1851
+ priority: z11.enum(["normal", "high"]).optional()
1852
+ });
1853
+ var counterKeyValidator = z11.string().min(1).max(64).regex(/^[a-zA-Z0-9_-]+$/, "Key must be alphanumeric with _ or -");
1854
+ var IncrementCounterEventValidator = z11.object({
1855
+ type: z11.literal("increment-counter"),
1785
1856
  key: counterKeyValidator,
1786
- amount: z10.number().int().finite()
1857
+ amount: z11.number().int().finite()
1787
1858
  });
1788
- var GetCounterEventValidator = z10.object({
1789
- type: z10.literal("get-counter"),
1859
+ var GetCounterEventValidator = z11.object({
1860
+ type: z11.literal("get-counter"),
1790
1861
  key: counterKeyValidator
1791
1862
  });
1792
- var GetCountersEventValidator = z10.object({
1793
- type: z10.literal("get-counters"),
1794
- keys: z10.array(counterKeyValidator).min(1).max(50).optional()
1863
+ var GetCountersEventValidator = z11.object({
1864
+ type: z11.literal("get-counters"),
1865
+ keys: z11.array(counterKeyValidator).min(1).max(50).optional()
1795
1866
  });
1796
- var AppEventValidator = z10.discriminatedUnion("type", [
1867
+ var AppEventValidator = z11.discriminatedUnion("type", [
1797
1868
  SendCredentialEventValidator,
1798
1869
  CheckCredentialEventValidator,
1799
1870
  CheckIssuanceStatusEventValidator,
@@ -1805,20 +1876,20 @@ var AppEventValidator = z10.discriminatedUnion("type", [
1805
1876
  GetCounterEventValidator,
1806
1877
  GetCountersEventValidator
1807
1878
  ]);
1808
- var AppEventInputValidator = z10.object({
1809
- listingId: z10.string(),
1879
+ var AppEventInputValidator = z11.object({
1880
+ listingId: z11.string(),
1810
1881
  event: AppEventValidator
1811
1882
  });
1812
- var AppEventResponseValidator = z10.record(z10.string(), z10.unknown());
1813
- var CredentialActivityEventTypeValidator = z10.enum([
1883
+ var AppEventResponseValidator = z11.record(z11.string(), z11.unknown());
1884
+ var CredentialActivityEventTypeValidator = z11.enum([
1814
1885
  "CREATED",
1815
1886
  "DELIVERED",
1816
1887
  "CLAIMED",
1817
1888
  "EXPIRED",
1818
1889
  "FAILED"
1819
1890
  ]);
1820
- var CredentialActivityRecipientTypeValidator = z10.enum(["profile", "email", "phone"]);
1821
- var CredentialActivitySourceTypeValidator = z10.enum([
1891
+ var CredentialActivityRecipientTypeValidator = z11.enum(["profile", "email", "phone"]);
1892
+ var CredentialActivitySourceTypeValidator = z11.enum([
1822
1893
  "send",
1823
1894
  "sendBoost",
1824
1895
  "sendCredential",
@@ -1829,43 +1900,43 @@ var CredentialActivitySourceTypeValidator = z10.enum([
1829
1900
  "acceptCredential",
1830
1901
  "appEvent"
1831
1902
  ]);
1832
- var CredentialActivityValidator = z10.object({
1833
- id: z10.string(),
1834
- activityId: z10.string(),
1903
+ var CredentialActivityValidator = z11.object({
1904
+ id: z11.string(),
1905
+ activityId: z11.string(),
1835
1906
  eventType: CredentialActivityEventTypeValidator,
1836
- timestamp: z10.string(),
1837
- actorProfileId: z10.string().optional(),
1907
+ timestamp: z11.string(),
1908
+ actorProfileId: z11.string().optional(),
1838
1909
  recipientType: CredentialActivityRecipientTypeValidator,
1839
- recipientIdentifier: z10.string(),
1840
- boostUri: z10.string().optional(),
1841
- credentialUri: z10.string().optional(),
1842
- inboxCredentialId: z10.string().optional(),
1843
- integrationId: z10.string().optional(),
1910
+ recipientIdentifier: z11.string(),
1911
+ boostUri: z11.string().optional(),
1912
+ credentialUri: z11.string().optional(),
1913
+ inboxCredentialId: z11.string().optional(),
1914
+ integrationId: z11.string().optional(),
1844
1915
  source: CredentialActivitySourceTypeValidator,
1845
- metadata: z10.record(z10.string(), z10.unknown()).optional()
1916
+ metadata: z11.record(z11.string(), z11.unknown()).optional()
1846
1917
  });
1847
1918
  var CredentialActivityWithDetailsValidator = CredentialActivityValidator.extend({
1848
- boost: z10.object({
1849
- id: z10.string(),
1850
- name: z10.string().optional(),
1851
- category: z10.string().optional()
1919
+ boost: z11.object({
1920
+ id: z11.string(),
1921
+ name: z11.string().optional(),
1922
+ category: z11.string().optional()
1852
1923
  }).optional(),
1853
- recipientProfile: z10.object({
1854
- profileId: z10.string(),
1855
- displayName: z10.string().optional()
1924
+ recipientProfile: z11.object({
1925
+ profileId: z11.string(),
1926
+ displayName: z11.string().optional()
1856
1927
  }).optional()
1857
1928
  });
1858
1929
  var PaginatedCredentialActivitiesValidator = PaginationResponseValidator.extend({
1859
1930
  records: CredentialActivityWithDetailsValidator.array()
1860
1931
  });
1861
- var CredentialActivityStatsValidator = z10.object({
1862
- total: z10.number(),
1863
- created: z10.number(),
1864
- delivered: z10.number(),
1865
- claimed: z10.number(),
1866
- expired: z10.number(),
1867
- failed: z10.number(),
1868
- claimRate: z10.number()
1932
+ var CredentialActivityStatsValidator = z11.object({
1933
+ total: z11.number(),
1934
+ created: z11.number(),
1935
+ delivered: z11.number(),
1936
+ claimed: z11.number(),
1937
+ expired: z11.number(),
1938
+ failed: z11.number(),
1939
+ claimRate: z11.number()
1869
1940
  });
1870
1941
 
1871
1942
  // src/auth.ts
@@ -1881,29 +1952,29 @@ var AuthSessionError = class extends Error {
1881
1952
  };
1882
1953
 
1883
1954
  // src/bitstring-status-list.ts
1884
- import { z as z11 } from "zod";
1955
+ import { z as z12 } from "zod";
1885
1956
  var BITSTRING_STATUS_PURPOSES = ["revocation", "suspension"];
1886
1957
  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"),
1958
+ var BitstringStatusPurposeValidator = z12.enum(BITSTRING_STATUS_PURPOSES);
1959
+ var BitstringStatusListEntryValidator = z12.object({
1960
+ id: z12.string().optional(),
1961
+ type: z12.literal("BitstringStatusListEntry"),
1891
1962
  statusPurpose: BitstringStatusPurposeValidator,
1892
- statusListIndex: z11.string(),
1893
- statusListCredential: z11.string()
1963
+ statusListIndex: z12.string(),
1964
+ statusListCredential: z12.string()
1894
1965
  });
1895
1966
  var AllocatedBitstringStatusListEntryValidator = BitstringStatusListEntryValidator.extend({
1896
- id: z11.string()
1967
+ id: z12.string()
1897
1968
  });
1898
- var BitstringStatusListCredentialSubjectValidator = z11.object({
1899
- id: z11.string().optional(),
1900
- type: z11.literal("BitstringStatusList"),
1969
+ var BitstringStatusListCredentialSubjectValidator = z12.object({
1970
+ id: z12.string().optional(),
1971
+ type: z12.literal("BitstringStatusList"),
1901
1972
  statusPurpose: BitstringStatusPurposeValidator,
1902
- encodedList: z11.string()
1973
+ encodedList: z12.string()
1903
1974
  });
1904
- var AllocateCredentialStatusInputValidator = z11.object({
1905
- statusPurposes: z11.array(BitstringStatusPurposeValidator).optional(),
1906
- listSize: z11.number().int().positive().optional()
1975
+ var AllocateCredentialStatusInputValidator = z12.object({
1976
+ statusPurposes: z12.array(BitstringStatusPurposeValidator).optional(),
1977
+ listSize: z12.number().int().positive().optional()
1907
1978
  }).default({});
1908
1979
  export {
1909
1980
  AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX,
@@ -1994,6 +2065,7 @@ export {
1994
2065
  CredentialActivityStatsValidator,
1995
2066
  CredentialActivityValidator,
1996
2067
  CredentialActivityWithDetailsValidator,
2068
+ CredentialFormatValidator,
1997
2069
  CredentialInfoValidator,
1998
2070
  CredentialNameRefValidator,
1999
2071
  CredentialRecordValidator,
@@ -2022,6 +2094,8 @@ export {
2022
2094
  GetSkillPathResultValidator,
2023
2095
  GetTemplateRecipientsEventValidator,
2024
2096
  GuardianStatusValidator,
2097
+ HolderExportConsentRecordValidator,
2098
+ HolderExportMetadataValidator,
2025
2099
  IdentifierEntryValidator,
2026
2100
  IdentifierTypeValidator,
2027
2101
  IdentityObjectValidator,
@@ -2101,6 +2175,7 @@ export {
2101
2175
  RefreshServiceValidator,
2102
2176
  RegExpValidator,
2103
2177
  RelatedValidator,
2178
+ RenderMethodValidator,
2104
2179
  ReplaceSkillFrameworkSkillsInputValidator,
2105
2180
  ReplaceSkillFrameworkSkillsResultValidator,
2106
2181
  RequestLearnerContextEventValidator,
@@ -2143,6 +2218,7 @@ export {
2143
2218
  SummaryCredentialKeywordValidator,
2144
2219
  SyncFrameworkInputValidator,
2145
2220
  TagValidator,
2221
+ TemplateRenderMethodValidator,
2146
2222
  TermsOfUseValidator,
2147
2223
  UnsignedAchievementCredentialValidator,
2148
2224
  UnsignedClrCredentialValidator,