@learncard/types 5.13.4 → 5.13.6

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