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