@learncard/idx-plugin 1.0.51 → 1.0.53

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.
@@ -12021,7 +12021,14 @@ var RegExpValidator = z.instanceof(RegExp).or(
12021
12021
  }
12022
12022
  })
12023
12023
  );
12024
- var StringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
12024
+ var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
12025
+ var StringQuery = z.union([
12026
+ BaseStringQuery,
12027
+ z.object({
12028
+ $or: BaseStringQuery.array()
12029
+ })
12030
+ ]);
12031
+ extendZodWithOpenApi(z);
12025
12032
  var LCNProfileDisplayValidator = z.object({
12026
12033
  backgroundColor: z.string().optional(),
12027
12034
  backgroundImage: z.string().optional(),
@@ -12179,7 +12186,7 @@ var BoostValidator = z.object({
12179
12186
  claimPermissions: BoostPermissionsValidator.optional(),
12180
12187
  allowAnyoneToCreateChildren: z.boolean().optional()
12181
12188
  });
12182
- var BoostQueryValidator = z.object({
12189
+ var BaseBoostQueryValidator = z.object({
12183
12190
  uri: StringQuery,
12184
12191
  name: StringQuery,
12185
12192
  type: StringQuery,
@@ -12188,6 +12195,12 @@ var BoostQueryValidator = z.object({
12188
12195
  status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
12189
12196
  autoConnectRecipients: z.boolean()
12190
12197
  }).partial();
12198
+ var BoostQueryValidator = z.union([
12199
+ z.object({
12200
+ $or: BaseBoostQueryValidator.array()
12201
+ }),
12202
+ BaseBoostQueryValidator
12203
+ ]);
12191
12204
  var PaginatedBoostsValidator = PaginationResponseValidator.extend({
12192
12205
  records: BoostValidator.array()
12193
12206
  });
@@ -12243,11 +12256,25 @@ var ConsentFlowTermsStatusValidator = z.enum(["live", "stale", "withdrawn"]);
12243
12256
  var ConsentFlowContractValidator = z.object({
12244
12257
  read: z.object({
12245
12258
  anonymize: z.boolean().optional(),
12246
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
12259
+ credentials: z.object({
12260
+ categories: z.record(
12261
+ z.object({
12262
+ required: z.boolean(),
12263
+ defaultEnabled: z.boolean().optional()
12264
+ })
12265
+ ).default({})
12266
+ }).default({}),
12247
12267
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
12248
12268
  }).default({}),
12249
12269
  write: z.object({
12250
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
12270
+ credentials: z.object({
12271
+ categories: z.record(
12272
+ z.object({
12273
+ required: z.boolean(),
12274
+ defaultEnabled: z.boolean().optional()
12275
+ })
12276
+ ).default({})
12277
+ }).default({}),
12251
12278
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
12252
12279
  }).default({})
12253
12280
  });
@@ -12390,6 +12417,17 @@ var ConsentFlowTransactionValidator = z.object({
12390
12417
  var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
12391
12418
  records: ConsentFlowTransactionValidator.array()
12392
12419
  });
12420
+ var BaseSkillFrameworkQueryValidator = z.object({
12421
+ id: StringQuery,
12422
+ name: StringQuery,
12423
+ description: StringQuery,
12424
+ sourceURI: StringQuery,
12425
+ status: StringQuery
12426
+ }).partial();
12427
+ var SkillFrameworkQueryValidator = z.union([
12428
+ z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
12429
+ BaseSkillFrameworkQueryValidator
12430
+ ]);
12393
12431
  var ContractCredentialValidator = z.object({
12394
12432
  credentialUri: z.string(),
12395
12433
  termsUri: z.string(),
@@ -12424,7 +12462,13 @@ var LCNInboxContactMethodValidator = z.object({
12424
12462
  type: z.string(),
12425
12463
  value: z.string()
12426
12464
  });
12427
- var LCNInboxStatusEnumValidator = z.enum(["PENDING", "DELIVERED", "CLAIMED", "EXPIRED"]);
12465
+ var LCNInboxStatusEnumValidator = z.enum([
12466
+ "PENDING",
12467
+ "ISSUED",
12468
+ "EXPIRED",
12469
+ "DELIVERED",
12470
+ "CLAIMED"
12471
+ ]);
12428
12472
  var LCNNotificationInboxValidator = z.object({
12429
12473
  issuanceId: z.string(),
12430
12474
  status: LCNInboxStatusEnumValidator,
@@ -12522,11 +12566,19 @@ var ContactMethodVerificationValidator = z.object({
12522
12566
  var SetPrimaryContactMethodValidator = z.object({
12523
12567
  contactMethodId: z.string()
12524
12568
  });
12569
+ var CreateContactMethodSessionValidator = z.object({
12570
+ contactMethod: ContactMethodVerificationRequestValidator,
12571
+ otpChallenge: z.string()
12572
+ });
12573
+ var CreateContactMethodSessionResponseValidator = z.object({
12574
+ sessionJwt: z.string()
12575
+ });
12525
12576
  var InboxCredentialValidator = z.object({
12526
12577
  id: z.string(),
12527
12578
  credential: z.string(),
12528
12579
  isSigned: z.boolean(),
12529
12580
  currentStatus: LCNInboxStatusEnumValidator,
12581
+ isAccepted: z.boolean().optional(),
12530
12582
  expiresAt: z.string(),
12531
12583
  createdAt: z.string(),
12532
12584
  issuerDid: z.string(),
@@ -12545,6 +12597,7 @@ var InboxCredentialQueryValidator = z.object({
12545
12597
  currentStatus: LCNInboxStatusEnumValidator,
12546
12598
  id: z.string(),
12547
12599
  isSigned: z.boolean(),
12600
+ isAccepted: z.boolean().optional(),
12548
12601
  issuerDid: z.string()
12549
12602
  }).partial();
12550
12603
  var IssueInboxSigningAuthorityValidator = z.object({
@@ -12553,31 +12606,55 @@ var IssueInboxSigningAuthorityValidator = z.object({
12553
12606
  });
12554
12607
  var IssueInboxCredentialValidator = z.object({
12555
12608
  recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
12556
- credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe("The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."),
12609
+ credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
12610
+ "The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
12611
+ ),
12557
12612
  configuration: z.object({
12558
- signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe("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."),
12613
+ signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
12614
+ "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."
12615
+ ),
12559
12616
  webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
12560
12617
  expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
12561
12618
  delivery: z.object({
12562
- suppress: z.boolean().optional().default(false).describe("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."),
12619
+ suppress: z.boolean().optional().default(false).describe(
12620
+ "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."
12621
+ ),
12563
12622
  template: z.object({
12564
- id: z.enum(["universal-inbox-claim"]).optional().describe("The template ID to use for the credential delivery. If not provided, the default template will be used."),
12623
+ id: z.enum(["universal-inbox-claim"]).optional().describe(
12624
+ "The template ID to use for the credential delivery. If not provided, the default template will be used."
12625
+ ),
12565
12626
  model: z.object({
12566
12627
  issuer: z.object({
12567
- name: z.string().optional().describe('The name of the organization (e.g., "State University").'),
12628
+ name: z.string().optional().describe(
12629
+ 'The name of the organization (e.g., "State University").'
12630
+ ),
12568
12631
  logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
12569
12632
  }).optional(),
12570
12633
  credential: z.object({
12571
- name: z.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),
12572
- type: z.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')
12634
+ name: z.string().optional().describe(
12635
+ 'The name of the credential (e.g., "Bachelor of Science").'
12636
+ ),
12637
+ type: z.string().optional().describe(
12638
+ 'The type of the credential (e.g., "degree", "certificate").'
12639
+ )
12573
12640
  }).optional(),
12574
12641
  recipient: z.object({
12575
- name: z.string().optional().describe('The name of the recipient (e.g., "John Doe").')
12642
+ name: z.string().optional().describe(
12643
+ 'The name of the recipient (e.g., "John Doe").'
12644
+ )
12576
12645
  }).optional()
12577
- }).describe("The template model to use for the credential delivery. Injects via template variables into email/sms templates. If not provided, the default template will be used.")
12578
- }).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")
12579
- }).optional().describe("Configuration for the credential delivery i.e. email or SMS. When credentials are sent to a user who has a verified email or phone associated with their account, delivery is skipped, and the credential will be sent using in-app notifications. If not provided, the default configuration will be used.")
12580
- }).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")
12646
+ }).describe(
12647
+ "The template model to use for the credential delivery. Injects via template variables into email/sms templates. If not provided, the default template will be used."
12648
+ )
12649
+ }).optional().describe(
12650
+ "The template to use for the credential delivery. If not provided, the default template will be used."
12651
+ )
12652
+ }).optional().describe(
12653
+ "Configuration for the credential delivery i.e. email or SMS. When credentials are sent to a user who has a verified email or phone associated with their account, delivery is skipped, and the credential will be sent using in-app notifications. If not provided, the default configuration will be used."
12654
+ )
12655
+ }).optional().describe(
12656
+ "Configuration for the credential issuance. If not provided, the default configuration will be used."
12657
+ )
12581
12658
  });
12582
12659
  var IssueInboxCredentialResponseValidator = z.object({
12583
12660
  issuanceId: z.string(),
@@ -12586,6 +12663,51 @@ var IssueInboxCredentialResponseValidator = z.object({
12586
12663
  claimUrl: z.string().url().optional(),
12587
12664
  recipientDid: z.string().optional()
12588
12665
  });
12666
+ var ClaimInboxCredentialValidator = z.object({
12667
+ credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe("The credential to issue."),
12668
+ configuration: z.object({
12669
+ publishableKey: z.string(),
12670
+ signingAuthorityName: z.string().optional()
12671
+ }).optional()
12672
+ });
12673
+ var LCNDomainOrOriginValidator = z.union([
12674
+ z.string().regex(
12675
+ /^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
12676
+ {
12677
+ message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
12678
+ }
12679
+ ),
12680
+ z.string().regex(
12681
+ /^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
12682
+ { message: "Must be a valid http(s) origin" }
12683
+ )
12684
+ ]);
12685
+ var LCNIntegrationValidator = z.object({
12686
+ id: z.string(),
12687
+ name: z.string(),
12688
+ description: z.string().optional(),
12689
+ publishableKey: z.string(),
12690
+ whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
12691
+ });
12692
+ var LCNIntegrationCreateValidator = z.object({
12693
+ name: z.string(),
12694
+ description: z.string().optional(),
12695
+ whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
12696
+ });
12697
+ var LCNIntegrationUpdateValidator = z.object({
12698
+ name: z.string().optional(),
12699
+ description: z.string().optional(),
12700
+ whitelistedDomains: z.array(LCNDomainOrOriginValidator).optional(),
12701
+ rotatePublishableKey: z.boolean().optional()
12702
+ });
12703
+ var LCNIntegrationQueryValidator = z.object({
12704
+ id: StringQuery,
12705
+ name: StringQuery,
12706
+ description: StringQuery
12707
+ }).partial();
12708
+ var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
12709
+ records: LCNIntegrationValidator.array()
12710
+ });
12589
12711
  var ClaimTokenValidator = z.object({
12590
12712
  token: z.string(),
12591
12713
  contactMethodId: z.string(),
@@ -12594,6 +12716,191 @@ var ClaimTokenValidator = z.object({
12594
12716
  expiresAt: z.string(),
12595
12717
  used: z.boolean()
12596
12718
  });
12719
+ var TagValidator = z.object({
12720
+ id: z.string(),
12721
+ name: z.string().min(1),
12722
+ slug: z.string().min(1),
12723
+ createdAt: z.string().optional(),
12724
+ updatedAt: z.string().optional()
12725
+ });
12726
+ var SkillStatusEnum = z.enum(["active", "archived"]);
12727
+ var SkillValidator = z.object({
12728
+ id: z.string(),
12729
+ statement: z.string(),
12730
+ description: z.string().optional(),
12731
+ code: z.string().optional(),
12732
+ icon: z.string().optional(),
12733
+ type: z.string().default("skill"),
12734
+ status: SkillStatusEnum.default("active"),
12735
+ frameworkId: z.string().optional(),
12736
+ createdAt: z.string().optional(),
12737
+ updatedAt: z.string().optional()
12738
+ });
12739
+ var BaseSkillQueryValidator = z.object({
12740
+ id: StringQuery,
12741
+ statement: StringQuery,
12742
+ description: StringQuery,
12743
+ code: StringQuery,
12744
+ type: StringQuery,
12745
+ status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
12746
+ }).partial();
12747
+ var SkillQueryValidator = z.union([
12748
+ z.object({
12749
+ $or: BaseSkillQueryValidator.array()
12750
+ }),
12751
+ BaseSkillQueryValidator
12752
+ ]);
12753
+ var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
12754
+ var SkillFrameworkValidator = z.object({
12755
+ id: z.string(),
12756
+ name: z.string(),
12757
+ description: z.string().optional(),
12758
+ image: z.string().optional(),
12759
+ sourceURI: z.string().url().optional(),
12760
+ status: SkillFrameworkStatusEnum.default("active"),
12761
+ createdAt: z.string().optional(),
12762
+ updatedAt: z.string().optional()
12763
+ });
12764
+ var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
12765
+ records: SkillFrameworkValidator.array()
12766
+ });
12767
+ var SkillTreeNodeValidator = SkillValidator.extend({
12768
+ children: z.array(z.lazy(() => SkillTreeNodeValidator)),
12769
+ hasChildren: z.boolean(),
12770
+ childrenCursor: z.string().nullable().optional()
12771
+ }).openapi({ ref: "SkillTreeNode" });
12772
+ var PaginatedSkillTreeValidator = z.object({
12773
+ hasMore: z.boolean(),
12774
+ cursor: z.string().nullable(),
12775
+ records: z.array(SkillTreeNodeValidator)
12776
+ });
12777
+ var SkillTreeNodeInputValidator = z.lazy(
12778
+ () => z.object({
12779
+ id: z.string().optional(),
12780
+ statement: z.string(),
12781
+ description: z.string().optional(),
12782
+ code: z.string().optional(),
12783
+ icon: z.string().optional(),
12784
+ type: z.string().optional(),
12785
+ status: SkillStatusEnum.optional(),
12786
+ children: z.array(SkillTreeNodeInputValidator).optional()
12787
+ })
12788
+ ).openapi({ ref: "SkillTreeNodeInput" });
12789
+ var LinkProviderFrameworkInputValidator = z.object({
12790
+ frameworkId: z.string()
12791
+ });
12792
+ var CreateManagedFrameworkInputValidator = z.object({
12793
+ id: z.string().optional(),
12794
+ name: z.string().min(1),
12795
+ description: z.string().optional(),
12796
+ image: z.string().optional(),
12797
+ sourceURI: z.string().url().optional(),
12798
+ status: SkillFrameworkStatusEnum.optional(),
12799
+ skills: z.array(SkillTreeNodeInputValidator).optional(),
12800
+ boostUris: z.array(z.string()).optional()
12801
+ });
12802
+ var UpdateFrameworkInputValidator = z.object({
12803
+ id: z.string(),
12804
+ name: z.string().min(1).optional(),
12805
+ description: z.string().optional(),
12806
+ image: z.string().optional(),
12807
+ sourceURI: z.string().url().optional(),
12808
+ status: SkillFrameworkStatusEnum.optional()
12809
+ }).refine(
12810
+ (data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
12811
+ {
12812
+ message: "At least one field must be provided to update",
12813
+ path: ["name"]
12814
+ }
12815
+ );
12816
+ var DeleteFrameworkInputValidator = z.object({ id: z.string() });
12817
+ var CreateManagedFrameworkBatchInputValidator = z.object({
12818
+ frameworks: z.array(
12819
+ CreateManagedFrameworkInputValidator.extend({
12820
+ skills: z.array(SkillTreeNodeInputValidator).optional()
12821
+ })
12822
+ ).min(1)
12823
+ });
12824
+ var SkillFrameworkAdminInputValidator = z.object({
12825
+ frameworkId: z.string(),
12826
+ profileId: z.string()
12827
+ });
12828
+ var SkillFrameworkIdInputValidator = z.object({ frameworkId: z.string() });
12829
+ var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
12830
+ var SyncFrameworkInputValidator = z.object({ id: z.string() });
12831
+ var AddTagInputValidator = z.object({
12832
+ slug: z.string().min(1),
12833
+ name: z.string().min(1)
12834
+ });
12835
+ var CreateSkillInputValidator = z.object({
12836
+ frameworkId: z.string(),
12837
+ skill: SkillTreeNodeInputValidator,
12838
+ parentId: z.string().nullable().optional()
12839
+ });
12840
+ var UpdateSkillInputValidator = z.object({
12841
+ frameworkId: z.string(),
12842
+ id: z.string(),
12843
+ statement: z.string().optional(),
12844
+ description: z.string().optional(),
12845
+ code: z.string().optional(),
12846
+ icon: z.string().optional(),
12847
+ type: z.string().optional(),
12848
+ status: SkillStatusEnum.optional()
12849
+ }).refine(
12850
+ (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,
12851
+ {
12852
+ message: "At least one field must be provided to update a skill",
12853
+ path: ["statement"]
12854
+ }
12855
+ );
12856
+ var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
12857
+ var DeleteSkillInputValidator = z.object({
12858
+ frameworkId: z.string(),
12859
+ id: z.string(),
12860
+ strategy: SkillDeletionStrategyValidator.optional().default("reparent")
12861
+ });
12862
+ var CreateSkillsBatchInputValidator = z.object({
12863
+ frameworkId: z.string(),
12864
+ skills: z.array(SkillTreeNodeInputValidator).min(1),
12865
+ parentId: z.string().nullable().optional()
12866
+ });
12867
+ var ReplaceSkillFrameworkSkillsInputValidator = z.object({
12868
+ frameworkId: z.string(),
12869
+ skills: z.array(SkillTreeNodeInputValidator).min(0)
12870
+ });
12871
+ var ReplaceSkillFrameworkSkillsResultValidator = z.object({
12872
+ created: z.number().int().min(0),
12873
+ updated: z.number().int().min(0),
12874
+ deleted: z.number().int().min(0),
12875
+ unchanged: z.number().int().min(0),
12876
+ total: z.number().int().min(0)
12877
+ });
12878
+ var CountSkillsInputValidator = z.object({
12879
+ frameworkId: z.string(),
12880
+ skillId: z.string().optional(),
12881
+ recursive: z.boolean().optional().default(false),
12882
+ onlyCountCompetencies: z.boolean().optional().default(false)
12883
+ });
12884
+ var CountSkillsResultValidator = z.object({
12885
+ count: z.number().int().min(0)
12886
+ });
12887
+ var GetFullSkillTreeInputValidator = z.object({
12888
+ frameworkId: z.string()
12889
+ });
12890
+ var GetFullSkillTreeResultValidator = z.object({
12891
+ skills: z.array(SkillTreeNodeValidator)
12892
+ });
12893
+ var GetSkillPathInputValidator = z.object({
12894
+ frameworkId: z.string(),
12895
+ skillId: z.string()
12896
+ });
12897
+ var GetSkillPathResultValidator = z.object({
12898
+ path: z.array(SkillValidator)
12899
+ });
12900
+ var FrameworkWithSkillsValidator = z.object({
12901
+ framework: SkillFrameworkValidator,
12902
+ skills: PaginatedSkillTreeValidator
12903
+ });
12597
12904
 
12598
12905
  // ../ceramic/dist/ceramic-plugin.esm.js
12599
12906
  var __create2 = Object.create;
@@ -67907,7 +68214,14 @@ var RegExpValidator2 = z2.instanceof(RegExp).or(
67907
68214
  }
67908
68215
  })
67909
68216
  );
67910
- var StringQuery2 = z2.string().or(z2.object({ $in: z2.string().array() })).or(z2.object({ $regex: RegExpValidator2 }));
68217
+ var BaseStringQuery2 = z2.string().or(z2.object({ $in: z2.string().array() })).or(z2.object({ $regex: RegExpValidator2 }));
68218
+ var StringQuery2 = z2.union([
68219
+ BaseStringQuery2,
68220
+ z2.object({
68221
+ $or: BaseStringQuery2.array()
68222
+ })
68223
+ ]);
68224
+ extendZodWithOpenApi2(z2);
67911
68225
  var LCNProfileDisplayValidator2 = z2.object({
67912
68226
  backgroundColor: z2.string().optional(),
67913
68227
  backgroundImage: z2.string().optional(),
@@ -68065,7 +68379,7 @@ var BoostValidator2 = z2.object({
68065
68379
  claimPermissions: BoostPermissionsValidator2.optional(),
68066
68380
  allowAnyoneToCreateChildren: z2.boolean().optional()
68067
68381
  });
68068
- var BoostQueryValidator2 = z2.object({
68382
+ var BaseBoostQueryValidator2 = z2.object({
68069
68383
  uri: StringQuery2,
68070
68384
  name: StringQuery2,
68071
68385
  type: StringQuery2,
@@ -68074,6 +68388,12 @@ var BoostQueryValidator2 = z2.object({
68074
68388
  status: LCNBoostStatus2.or(z2.object({ $in: LCNBoostStatus2.array() })),
68075
68389
  autoConnectRecipients: z2.boolean()
68076
68390
  }).partial();
68391
+ var BoostQueryValidator2 = z2.union([
68392
+ z2.object({
68393
+ $or: BaseBoostQueryValidator2.array()
68394
+ }),
68395
+ BaseBoostQueryValidator2
68396
+ ]);
68077
68397
  var PaginatedBoostsValidator2 = PaginationResponseValidator2.extend({
68078
68398
  records: BoostValidator2.array()
68079
68399
  });
@@ -68129,11 +68449,25 @@ var ConsentFlowTermsStatusValidator2 = z2.enum(["live", "stale", "withdrawn"]);
68129
68449
  var ConsentFlowContractValidator2 = z2.object({
68130
68450
  read: z2.object({
68131
68451
  anonymize: z2.boolean().optional(),
68132
- credentials: z2.object({ categories: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({}) }).default({}),
68452
+ credentials: z2.object({
68453
+ categories: z2.record(
68454
+ z2.object({
68455
+ required: z2.boolean(),
68456
+ defaultEnabled: z2.boolean().optional()
68457
+ })
68458
+ ).default({})
68459
+ }).default({}),
68133
68460
  personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
68134
68461
  }).default({}),
68135
68462
  write: z2.object({
68136
- credentials: z2.object({ categories: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({}) }).default({}),
68463
+ credentials: z2.object({
68464
+ categories: z2.record(
68465
+ z2.object({
68466
+ required: z2.boolean(),
68467
+ defaultEnabled: z2.boolean().optional()
68468
+ })
68469
+ ).default({})
68470
+ }).default({}),
68137
68471
  personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
68138
68472
  }).default({})
68139
68473
  });
@@ -68276,6 +68610,17 @@ var ConsentFlowTransactionValidator2 = z2.object({
68276
68610
  var PaginatedConsentFlowTransactionsValidator2 = PaginationResponseValidator2.extend({
68277
68611
  records: ConsentFlowTransactionValidator2.array()
68278
68612
  });
68613
+ var BaseSkillFrameworkQueryValidator2 = z2.object({
68614
+ id: StringQuery2,
68615
+ name: StringQuery2,
68616
+ description: StringQuery2,
68617
+ sourceURI: StringQuery2,
68618
+ status: StringQuery2
68619
+ }).partial();
68620
+ var SkillFrameworkQueryValidator2 = z2.union([
68621
+ z2.object({ $or: BaseSkillFrameworkQueryValidator2.array() }),
68622
+ BaseSkillFrameworkQueryValidator2
68623
+ ]);
68279
68624
  var ContractCredentialValidator2 = z2.object({
68280
68625
  credentialUri: z2.string(),
68281
68626
  termsUri: z2.string(),
@@ -68310,7 +68655,13 @@ var LCNInboxContactMethodValidator2 = z2.object({
68310
68655
  type: z2.string(),
68311
68656
  value: z2.string()
68312
68657
  });
68313
- var LCNInboxStatusEnumValidator2 = z2.enum(["PENDING", "DELIVERED", "CLAIMED", "EXPIRED"]);
68658
+ var LCNInboxStatusEnumValidator2 = z2.enum([
68659
+ "PENDING",
68660
+ "ISSUED",
68661
+ "EXPIRED",
68662
+ "DELIVERED",
68663
+ "CLAIMED"
68664
+ ]);
68314
68665
  var LCNNotificationInboxValidator2 = z2.object({
68315
68666
  issuanceId: z2.string(),
68316
68667
  status: LCNInboxStatusEnumValidator2,
@@ -68408,11 +68759,19 @@ var ContactMethodVerificationValidator2 = z2.object({
68408
68759
  var SetPrimaryContactMethodValidator2 = z2.object({
68409
68760
  contactMethodId: z2.string()
68410
68761
  });
68762
+ var CreateContactMethodSessionValidator2 = z2.object({
68763
+ contactMethod: ContactMethodVerificationRequestValidator2,
68764
+ otpChallenge: z2.string()
68765
+ });
68766
+ var CreateContactMethodSessionResponseValidator2 = z2.object({
68767
+ sessionJwt: z2.string()
68768
+ });
68411
68769
  var InboxCredentialValidator2 = z2.object({
68412
68770
  id: z2.string(),
68413
68771
  credential: z2.string(),
68414
68772
  isSigned: z2.boolean(),
68415
68773
  currentStatus: LCNInboxStatusEnumValidator2,
68774
+ isAccepted: z2.boolean().optional(),
68416
68775
  expiresAt: z2.string(),
68417
68776
  createdAt: z2.string(),
68418
68777
  issuerDid: z2.string(),
@@ -68431,6 +68790,7 @@ var InboxCredentialQueryValidator2 = z2.object({
68431
68790
  currentStatus: LCNInboxStatusEnumValidator2,
68432
68791
  id: z2.string(),
68433
68792
  isSigned: z2.boolean(),
68793
+ isAccepted: z2.boolean().optional(),
68434
68794
  issuerDid: z2.string()
68435
68795
  }).partial();
68436
68796
  var IssueInboxSigningAuthorityValidator2 = z2.object({
@@ -68439,31 +68799,55 @@ var IssueInboxSigningAuthorityValidator2 = z2.object({
68439
68799
  });
68440
68800
  var IssueInboxCredentialValidator2 = z2.object({
68441
68801
  recipient: ContactMethodQueryValidator2.describe("The recipient of the credential"),
68442
- credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe("The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."),
68802
+ credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
68803
+ "The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
68804
+ ),
68443
68805
  configuration: z2.object({
68444
- signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe("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."),
68806
+ signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
68807
+ "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."
68808
+ ),
68445
68809
  webhookUrl: z2.string().url().optional().describe("The webhook URL to receive credential issuance events."),
68446
68810
  expiresInDays: z2.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
68447
68811
  delivery: z2.object({
68448
- suppress: z2.boolean().optional().default(false).describe("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."),
68812
+ suppress: z2.boolean().optional().default(false).describe(
68813
+ "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."
68814
+ ),
68449
68815
  template: z2.object({
68450
- id: z2.enum(["universal-inbox-claim"]).optional().describe("The template ID to use for the credential delivery. If not provided, the default template will be used."),
68816
+ id: z2.enum(["universal-inbox-claim"]).optional().describe(
68817
+ "The template ID to use for the credential delivery. If not provided, the default template will be used."
68818
+ ),
68451
68819
  model: z2.object({
68452
68820
  issuer: z2.object({
68453
- name: z2.string().optional().describe('The name of the organization (e.g., "State University").'),
68821
+ name: z2.string().optional().describe(
68822
+ 'The name of the organization (e.g., "State University").'
68823
+ ),
68454
68824
  logoUrl: z2.string().url().optional().describe("The URL of the organization's logo.")
68455
68825
  }).optional(),
68456
68826
  credential: z2.object({
68457
- name: z2.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),
68458
- type: z2.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')
68827
+ name: z2.string().optional().describe(
68828
+ 'The name of the credential (e.g., "Bachelor of Science").'
68829
+ ),
68830
+ type: z2.string().optional().describe(
68831
+ 'The type of the credential (e.g., "degree", "certificate").'
68832
+ )
68459
68833
  }).optional(),
68460
68834
  recipient: z2.object({
68461
- name: z2.string().optional().describe('The name of the recipient (e.g., "John Doe").')
68835
+ name: z2.string().optional().describe(
68836
+ 'The name of the recipient (e.g., "John Doe").'
68837
+ )
68462
68838
  }).optional()
68463
- }).describe("The template model to use for the credential delivery. Injects via template variables into email/sms templates. If not provided, the default template will be used.")
68464
- }).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")
68465
- }).optional().describe("Configuration for the credential delivery i.e. email or SMS. When credentials are sent to a user who has a verified email or phone associated with their account, delivery is skipped, and the credential will be sent using in-app notifications. If not provided, the default configuration will be used.")
68466
- }).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")
68839
+ }).describe(
68840
+ "The template model to use for the credential delivery. Injects via template variables into email/sms templates. If not provided, the default template will be used."
68841
+ )
68842
+ }).optional().describe(
68843
+ "The template to use for the credential delivery. If not provided, the default template will be used."
68844
+ )
68845
+ }).optional().describe(
68846
+ "Configuration for the credential delivery i.e. email or SMS. When credentials are sent to a user who has a verified email or phone associated with their account, delivery is skipped, and the credential will be sent using in-app notifications. If not provided, the default configuration will be used."
68847
+ )
68848
+ }).optional().describe(
68849
+ "Configuration for the credential issuance. If not provided, the default configuration will be used."
68850
+ )
68467
68851
  });
68468
68852
  var IssueInboxCredentialResponseValidator2 = z2.object({
68469
68853
  issuanceId: z2.string(),
@@ -68472,6 +68856,51 @@ var IssueInboxCredentialResponseValidator2 = z2.object({
68472
68856
  claimUrl: z2.string().url().optional(),
68473
68857
  recipientDid: z2.string().optional()
68474
68858
  });
68859
+ var ClaimInboxCredentialValidator2 = z2.object({
68860
+ credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe("The credential to issue."),
68861
+ configuration: z2.object({
68862
+ publishableKey: z2.string(),
68863
+ signingAuthorityName: z2.string().optional()
68864
+ }).optional()
68865
+ });
68866
+ var LCNDomainOrOriginValidator2 = z2.union([
68867
+ z2.string().regex(
68868
+ /^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
68869
+ {
68870
+ message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
68871
+ }
68872
+ ),
68873
+ z2.string().regex(
68874
+ /^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
68875
+ { message: "Must be a valid http(s) origin" }
68876
+ )
68877
+ ]);
68878
+ var LCNIntegrationValidator2 = z2.object({
68879
+ id: z2.string(),
68880
+ name: z2.string(),
68881
+ description: z2.string().optional(),
68882
+ publishableKey: z2.string(),
68883
+ whitelistedDomains: z2.array(LCNDomainOrOriginValidator2).default([])
68884
+ });
68885
+ var LCNIntegrationCreateValidator2 = z2.object({
68886
+ name: z2.string(),
68887
+ description: z2.string().optional(),
68888
+ whitelistedDomains: z2.array(LCNDomainOrOriginValidator2).default([])
68889
+ });
68890
+ var LCNIntegrationUpdateValidator2 = z2.object({
68891
+ name: z2.string().optional(),
68892
+ description: z2.string().optional(),
68893
+ whitelistedDomains: z2.array(LCNDomainOrOriginValidator2).optional(),
68894
+ rotatePublishableKey: z2.boolean().optional()
68895
+ });
68896
+ var LCNIntegrationQueryValidator2 = z2.object({
68897
+ id: StringQuery2,
68898
+ name: StringQuery2,
68899
+ description: StringQuery2
68900
+ }).partial();
68901
+ var PaginatedLCNIntegrationsValidator2 = PaginationResponseValidator2.extend({
68902
+ records: LCNIntegrationValidator2.array()
68903
+ });
68475
68904
  var ClaimTokenValidator2 = z2.object({
68476
68905
  token: z2.string(),
68477
68906
  contactMethodId: z2.string(),
@@ -68480,6 +68909,191 @@ var ClaimTokenValidator2 = z2.object({
68480
68909
  expiresAt: z2.string(),
68481
68910
  used: z2.boolean()
68482
68911
  });
68912
+ var TagValidator2 = z2.object({
68913
+ id: z2.string(),
68914
+ name: z2.string().min(1),
68915
+ slug: z2.string().min(1),
68916
+ createdAt: z2.string().optional(),
68917
+ updatedAt: z2.string().optional()
68918
+ });
68919
+ var SkillStatusEnum2 = z2.enum(["active", "archived"]);
68920
+ var SkillValidator2 = z2.object({
68921
+ id: z2.string(),
68922
+ statement: z2.string(),
68923
+ description: z2.string().optional(),
68924
+ code: z2.string().optional(),
68925
+ icon: z2.string().optional(),
68926
+ type: z2.string().default("skill"),
68927
+ status: SkillStatusEnum2.default("active"),
68928
+ frameworkId: z2.string().optional(),
68929
+ createdAt: z2.string().optional(),
68930
+ updatedAt: z2.string().optional()
68931
+ });
68932
+ var BaseSkillQueryValidator2 = z2.object({
68933
+ id: StringQuery2,
68934
+ statement: StringQuery2,
68935
+ description: StringQuery2,
68936
+ code: StringQuery2,
68937
+ type: StringQuery2,
68938
+ status: SkillStatusEnum2.or(z2.object({ $in: SkillStatusEnum2.array() }))
68939
+ }).partial();
68940
+ var SkillQueryValidator2 = z2.union([
68941
+ z2.object({
68942
+ $or: BaseSkillQueryValidator2.array()
68943
+ }),
68944
+ BaseSkillQueryValidator2
68945
+ ]);
68946
+ var SkillFrameworkStatusEnum2 = z2.enum(["active", "archived"]);
68947
+ var SkillFrameworkValidator2 = z2.object({
68948
+ id: z2.string(),
68949
+ name: z2.string(),
68950
+ description: z2.string().optional(),
68951
+ image: z2.string().optional(),
68952
+ sourceURI: z2.string().url().optional(),
68953
+ status: SkillFrameworkStatusEnum2.default("active"),
68954
+ createdAt: z2.string().optional(),
68955
+ updatedAt: z2.string().optional()
68956
+ });
68957
+ var PaginatedSkillFrameworksValidator2 = PaginationResponseValidator2.extend({
68958
+ records: SkillFrameworkValidator2.array()
68959
+ });
68960
+ var SkillTreeNodeValidator2 = SkillValidator2.extend({
68961
+ children: z2.array(z2.lazy(() => SkillTreeNodeValidator2)),
68962
+ hasChildren: z2.boolean(),
68963
+ childrenCursor: z2.string().nullable().optional()
68964
+ }).openapi({ ref: "SkillTreeNode" });
68965
+ var PaginatedSkillTreeValidator2 = z2.object({
68966
+ hasMore: z2.boolean(),
68967
+ cursor: z2.string().nullable(),
68968
+ records: z2.array(SkillTreeNodeValidator2)
68969
+ });
68970
+ var SkillTreeNodeInputValidator2 = z2.lazy(
68971
+ () => z2.object({
68972
+ id: z2.string().optional(),
68973
+ statement: z2.string(),
68974
+ description: z2.string().optional(),
68975
+ code: z2.string().optional(),
68976
+ icon: z2.string().optional(),
68977
+ type: z2.string().optional(),
68978
+ status: SkillStatusEnum2.optional(),
68979
+ children: z2.array(SkillTreeNodeInputValidator2).optional()
68980
+ })
68981
+ ).openapi({ ref: "SkillTreeNodeInput" });
68982
+ var LinkProviderFrameworkInputValidator2 = z2.object({
68983
+ frameworkId: z2.string()
68984
+ });
68985
+ var CreateManagedFrameworkInputValidator2 = z2.object({
68986
+ id: z2.string().optional(),
68987
+ name: z2.string().min(1),
68988
+ description: z2.string().optional(),
68989
+ image: z2.string().optional(),
68990
+ sourceURI: z2.string().url().optional(),
68991
+ status: SkillFrameworkStatusEnum2.optional(),
68992
+ skills: z2.array(SkillTreeNodeInputValidator2).optional(),
68993
+ boostUris: z2.array(z2.string()).optional()
68994
+ });
68995
+ var UpdateFrameworkInputValidator2 = z2.object({
68996
+ id: z2.string(),
68997
+ name: z2.string().min(1).optional(),
68998
+ description: z2.string().optional(),
68999
+ image: z2.string().optional(),
69000
+ sourceURI: z2.string().url().optional(),
69001
+ status: SkillFrameworkStatusEnum2.optional()
69002
+ }).refine(
69003
+ (data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
69004
+ {
69005
+ message: "At least one field must be provided to update",
69006
+ path: ["name"]
69007
+ }
69008
+ );
69009
+ var DeleteFrameworkInputValidator2 = z2.object({ id: z2.string() });
69010
+ var CreateManagedFrameworkBatchInputValidator2 = z2.object({
69011
+ frameworks: z2.array(
69012
+ CreateManagedFrameworkInputValidator2.extend({
69013
+ skills: z2.array(SkillTreeNodeInputValidator2).optional()
69014
+ })
69015
+ ).min(1)
69016
+ });
69017
+ var SkillFrameworkAdminInputValidator2 = z2.object({
69018
+ frameworkId: z2.string(),
69019
+ profileId: z2.string()
69020
+ });
69021
+ var SkillFrameworkIdInputValidator2 = z2.object({ frameworkId: z2.string() });
69022
+ var SkillFrameworkAdminsValidator2 = LCNProfileValidator2.array();
69023
+ var SyncFrameworkInputValidator2 = z2.object({ id: z2.string() });
69024
+ var AddTagInputValidator2 = z2.object({
69025
+ slug: z2.string().min(1),
69026
+ name: z2.string().min(1)
69027
+ });
69028
+ var CreateSkillInputValidator2 = z2.object({
69029
+ frameworkId: z2.string(),
69030
+ skill: SkillTreeNodeInputValidator2,
69031
+ parentId: z2.string().nullable().optional()
69032
+ });
69033
+ var UpdateSkillInputValidator2 = z2.object({
69034
+ frameworkId: z2.string(),
69035
+ id: z2.string(),
69036
+ statement: z2.string().optional(),
69037
+ description: z2.string().optional(),
69038
+ code: z2.string().optional(),
69039
+ icon: z2.string().optional(),
69040
+ type: z2.string().optional(),
69041
+ status: SkillStatusEnum2.optional()
69042
+ }).refine(
69043
+ (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,
69044
+ {
69045
+ message: "At least one field must be provided to update a skill",
69046
+ path: ["statement"]
69047
+ }
69048
+ );
69049
+ var SkillDeletionStrategyValidator2 = z2.enum(["recursive", "reparent"]);
69050
+ var DeleteSkillInputValidator2 = z2.object({
69051
+ frameworkId: z2.string(),
69052
+ id: z2.string(),
69053
+ strategy: SkillDeletionStrategyValidator2.optional().default("reparent")
69054
+ });
69055
+ var CreateSkillsBatchInputValidator2 = z2.object({
69056
+ frameworkId: z2.string(),
69057
+ skills: z2.array(SkillTreeNodeInputValidator2).min(1),
69058
+ parentId: z2.string().nullable().optional()
69059
+ });
69060
+ var ReplaceSkillFrameworkSkillsInputValidator2 = z2.object({
69061
+ frameworkId: z2.string(),
69062
+ skills: z2.array(SkillTreeNodeInputValidator2).min(0)
69063
+ });
69064
+ var ReplaceSkillFrameworkSkillsResultValidator2 = z2.object({
69065
+ created: z2.number().int().min(0),
69066
+ updated: z2.number().int().min(0),
69067
+ deleted: z2.number().int().min(0),
69068
+ unchanged: z2.number().int().min(0),
69069
+ total: z2.number().int().min(0)
69070
+ });
69071
+ var CountSkillsInputValidator2 = z2.object({
69072
+ frameworkId: z2.string(),
69073
+ skillId: z2.string().optional(),
69074
+ recursive: z2.boolean().optional().default(false),
69075
+ onlyCountCompetencies: z2.boolean().optional().default(false)
69076
+ });
69077
+ var CountSkillsResultValidator2 = z2.object({
69078
+ count: z2.number().int().min(0)
69079
+ });
69080
+ var GetFullSkillTreeInputValidator2 = z2.object({
69081
+ frameworkId: z2.string()
69082
+ });
69083
+ var GetFullSkillTreeResultValidator2 = z2.object({
69084
+ skills: z2.array(SkillTreeNodeValidator2)
69085
+ });
69086
+ var GetSkillPathInputValidator2 = z2.object({
69087
+ frameworkId: z2.string(),
69088
+ skillId: z2.string()
69089
+ });
69090
+ var GetSkillPathResultValidator2 = z2.object({
69091
+ path: z2.array(SkillValidator2)
69092
+ });
69093
+ var FrameworkWithSkillsValidator2 = z2.object({
69094
+ framework: SkillFrameworkValidator2,
69095
+ skills: PaginatedSkillTreeValidator2
69096
+ });
68483
69097
  var streamIdToCeramicURI = /* @__PURE__ */ __name3((id) => `lc:ceramic:${id}`, "streamIdToCeramicURI");
68484
69098
  var CeramicURIValidator = z2.string().refine(
68485
69099
  (string22) => string22.split(":").length === 3 && string22.split(":")[0] === "lc",