@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.
@@ -12027,7 +12027,14 @@ var RegExpValidator = z.instanceof(RegExp).or(
12027
12027
  }
12028
12028
  })
12029
12029
  );
12030
- var StringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
12030
+ var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
12031
+ var StringQuery = z.union([
12032
+ BaseStringQuery,
12033
+ z.object({
12034
+ $or: BaseStringQuery.array()
12035
+ })
12036
+ ]);
12037
+ extendZodWithOpenApi(z);
12031
12038
  var LCNProfileDisplayValidator = z.object({
12032
12039
  backgroundColor: z.string().optional(),
12033
12040
  backgroundImage: z.string().optional(),
@@ -12185,7 +12192,7 @@ var BoostValidator = z.object({
12185
12192
  claimPermissions: BoostPermissionsValidator.optional(),
12186
12193
  allowAnyoneToCreateChildren: z.boolean().optional()
12187
12194
  });
12188
- var BoostQueryValidator = z.object({
12195
+ var BaseBoostQueryValidator = z.object({
12189
12196
  uri: StringQuery,
12190
12197
  name: StringQuery,
12191
12198
  type: StringQuery,
@@ -12194,6 +12201,12 @@ var BoostQueryValidator = z.object({
12194
12201
  status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
12195
12202
  autoConnectRecipients: z.boolean()
12196
12203
  }).partial();
12204
+ var BoostQueryValidator = z.union([
12205
+ z.object({
12206
+ $or: BaseBoostQueryValidator.array()
12207
+ }),
12208
+ BaseBoostQueryValidator
12209
+ ]);
12197
12210
  var PaginatedBoostsValidator = PaginationResponseValidator.extend({
12198
12211
  records: BoostValidator.array()
12199
12212
  });
@@ -12249,11 +12262,25 @@ var ConsentFlowTermsStatusValidator = z.enum(["live", "stale", "withdrawn"]);
12249
12262
  var ConsentFlowContractValidator = z.object({
12250
12263
  read: z.object({
12251
12264
  anonymize: z.boolean().optional(),
12252
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
12265
+ credentials: z.object({
12266
+ categories: z.record(
12267
+ z.object({
12268
+ required: z.boolean(),
12269
+ defaultEnabled: z.boolean().optional()
12270
+ })
12271
+ ).default({})
12272
+ }).default({}),
12253
12273
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
12254
12274
  }).default({}),
12255
12275
  write: z.object({
12256
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
12276
+ credentials: z.object({
12277
+ categories: z.record(
12278
+ z.object({
12279
+ required: z.boolean(),
12280
+ defaultEnabled: z.boolean().optional()
12281
+ })
12282
+ ).default({})
12283
+ }).default({}),
12257
12284
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
12258
12285
  }).default({})
12259
12286
  });
@@ -12396,6 +12423,17 @@ var ConsentFlowTransactionValidator = z.object({
12396
12423
  var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
12397
12424
  records: ConsentFlowTransactionValidator.array()
12398
12425
  });
12426
+ var BaseSkillFrameworkQueryValidator = z.object({
12427
+ id: StringQuery,
12428
+ name: StringQuery,
12429
+ description: StringQuery,
12430
+ sourceURI: StringQuery,
12431
+ status: StringQuery
12432
+ }).partial();
12433
+ var SkillFrameworkQueryValidator = z.union([
12434
+ z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
12435
+ BaseSkillFrameworkQueryValidator
12436
+ ]);
12399
12437
  var ContractCredentialValidator = z.object({
12400
12438
  credentialUri: z.string(),
12401
12439
  termsUri: z.string(),
@@ -12430,7 +12468,13 @@ var LCNInboxContactMethodValidator = z.object({
12430
12468
  type: z.string(),
12431
12469
  value: z.string()
12432
12470
  });
12433
- var LCNInboxStatusEnumValidator = z.enum(["PENDING", "DELIVERED", "CLAIMED", "EXPIRED"]);
12471
+ var LCNInboxStatusEnumValidator = z.enum([
12472
+ "PENDING",
12473
+ "ISSUED",
12474
+ "EXPIRED",
12475
+ "DELIVERED",
12476
+ "CLAIMED"
12477
+ ]);
12434
12478
  var LCNNotificationInboxValidator = z.object({
12435
12479
  issuanceId: z.string(),
12436
12480
  status: LCNInboxStatusEnumValidator,
@@ -12528,11 +12572,19 @@ var ContactMethodVerificationValidator = z.object({
12528
12572
  var SetPrimaryContactMethodValidator = z.object({
12529
12573
  contactMethodId: z.string()
12530
12574
  });
12575
+ var CreateContactMethodSessionValidator = z.object({
12576
+ contactMethod: ContactMethodVerificationRequestValidator,
12577
+ otpChallenge: z.string()
12578
+ });
12579
+ var CreateContactMethodSessionResponseValidator = z.object({
12580
+ sessionJwt: z.string()
12581
+ });
12531
12582
  var InboxCredentialValidator = z.object({
12532
12583
  id: z.string(),
12533
12584
  credential: z.string(),
12534
12585
  isSigned: z.boolean(),
12535
12586
  currentStatus: LCNInboxStatusEnumValidator,
12587
+ isAccepted: z.boolean().optional(),
12536
12588
  expiresAt: z.string(),
12537
12589
  createdAt: z.string(),
12538
12590
  issuerDid: z.string(),
@@ -12551,6 +12603,7 @@ var InboxCredentialQueryValidator = z.object({
12551
12603
  currentStatus: LCNInboxStatusEnumValidator,
12552
12604
  id: z.string(),
12553
12605
  isSigned: z.boolean(),
12606
+ isAccepted: z.boolean().optional(),
12554
12607
  issuerDid: z.string()
12555
12608
  }).partial();
12556
12609
  var IssueInboxSigningAuthorityValidator = z.object({
@@ -12559,31 +12612,55 @@ var IssueInboxSigningAuthorityValidator = z.object({
12559
12612
  });
12560
12613
  var IssueInboxCredentialValidator = z.object({
12561
12614
  recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
12562
- 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."),
12615
+ credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
12616
+ "The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
12617
+ ),
12563
12618
  configuration: z.object({
12564
- 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."),
12619
+ signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
12620
+ "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."
12621
+ ),
12565
12622
  webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
12566
12623
  expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
12567
12624
  delivery: z.object({
12568
- 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."),
12625
+ suppress: z.boolean().optional().default(false).describe(
12626
+ "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."
12627
+ ),
12569
12628
  template: z.object({
12570
- 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."),
12629
+ id: z.enum(["universal-inbox-claim"]).optional().describe(
12630
+ "The template ID to use for the credential delivery. If not provided, the default template will be used."
12631
+ ),
12571
12632
  model: z.object({
12572
12633
  issuer: z.object({
12573
- name: z.string().optional().describe('The name of the organization (e.g., "State University").'),
12634
+ name: z.string().optional().describe(
12635
+ 'The name of the organization (e.g., "State University").'
12636
+ ),
12574
12637
  logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
12575
12638
  }).optional(),
12576
12639
  credential: z.object({
12577
- name: z.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),
12578
- type: z.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')
12640
+ name: z.string().optional().describe(
12641
+ 'The name of the credential (e.g., "Bachelor of Science").'
12642
+ ),
12643
+ type: z.string().optional().describe(
12644
+ 'The type of the credential (e.g., "degree", "certificate").'
12645
+ )
12579
12646
  }).optional(),
12580
12647
  recipient: z.object({
12581
- name: z.string().optional().describe('The name of the recipient (e.g., "John Doe").')
12648
+ name: z.string().optional().describe(
12649
+ 'The name of the recipient (e.g., "John Doe").'
12650
+ )
12582
12651
  }).optional()
12583
- }).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.")
12584
- }).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")
12585
- }).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.")
12586
- }).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")
12652
+ }).describe(
12653
+ "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."
12654
+ )
12655
+ }).optional().describe(
12656
+ "The template to use for the credential delivery. If not provided, the default template will be used."
12657
+ )
12658
+ }).optional().describe(
12659
+ "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."
12660
+ )
12661
+ }).optional().describe(
12662
+ "Configuration for the credential issuance. If not provided, the default configuration will be used."
12663
+ )
12587
12664
  });
12588
12665
  var IssueInboxCredentialResponseValidator = z.object({
12589
12666
  issuanceId: z.string(),
@@ -12592,6 +12669,51 @@ var IssueInboxCredentialResponseValidator = z.object({
12592
12669
  claimUrl: z.string().url().optional(),
12593
12670
  recipientDid: z.string().optional()
12594
12671
  });
12672
+ var ClaimInboxCredentialValidator = z.object({
12673
+ credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe("The credential to issue."),
12674
+ configuration: z.object({
12675
+ publishableKey: z.string(),
12676
+ signingAuthorityName: z.string().optional()
12677
+ }).optional()
12678
+ });
12679
+ var LCNDomainOrOriginValidator = z.union([
12680
+ z.string().regex(
12681
+ /^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
12682
+ {
12683
+ message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
12684
+ }
12685
+ ),
12686
+ z.string().regex(
12687
+ /^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
12688
+ { message: "Must be a valid http(s) origin" }
12689
+ )
12690
+ ]);
12691
+ var LCNIntegrationValidator = z.object({
12692
+ id: z.string(),
12693
+ name: z.string(),
12694
+ description: z.string().optional(),
12695
+ publishableKey: z.string(),
12696
+ whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
12697
+ });
12698
+ var LCNIntegrationCreateValidator = z.object({
12699
+ name: z.string(),
12700
+ description: z.string().optional(),
12701
+ whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
12702
+ });
12703
+ var LCNIntegrationUpdateValidator = z.object({
12704
+ name: z.string().optional(),
12705
+ description: z.string().optional(),
12706
+ whitelistedDomains: z.array(LCNDomainOrOriginValidator).optional(),
12707
+ rotatePublishableKey: z.boolean().optional()
12708
+ });
12709
+ var LCNIntegrationQueryValidator = z.object({
12710
+ id: StringQuery,
12711
+ name: StringQuery,
12712
+ description: StringQuery
12713
+ }).partial();
12714
+ var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
12715
+ records: LCNIntegrationValidator.array()
12716
+ });
12595
12717
  var ClaimTokenValidator = z.object({
12596
12718
  token: z.string(),
12597
12719
  contactMethodId: z.string(),
@@ -12600,6 +12722,191 @@ var ClaimTokenValidator = z.object({
12600
12722
  expiresAt: z.string(),
12601
12723
  used: z.boolean()
12602
12724
  });
12725
+ var TagValidator = z.object({
12726
+ id: z.string(),
12727
+ name: z.string().min(1),
12728
+ slug: z.string().min(1),
12729
+ createdAt: z.string().optional(),
12730
+ updatedAt: z.string().optional()
12731
+ });
12732
+ var SkillStatusEnum = z.enum(["active", "archived"]);
12733
+ var SkillValidator = z.object({
12734
+ id: z.string(),
12735
+ statement: z.string(),
12736
+ description: z.string().optional(),
12737
+ code: z.string().optional(),
12738
+ icon: z.string().optional(),
12739
+ type: z.string().default("skill"),
12740
+ status: SkillStatusEnum.default("active"),
12741
+ frameworkId: z.string().optional(),
12742
+ createdAt: z.string().optional(),
12743
+ updatedAt: z.string().optional()
12744
+ });
12745
+ var BaseSkillQueryValidator = z.object({
12746
+ id: StringQuery,
12747
+ statement: StringQuery,
12748
+ description: StringQuery,
12749
+ code: StringQuery,
12750
+ type: StringQuery,
12751
+ status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
12752
+ }).partial();
12753
+ var SkillQueryValidator = z.union([
12754
+ z.object({
12755
+ $or: BaseSkillQueryValidator.array()
12756
+ }),
12757
+ BaseSkillQueryValidator
12758
+ ]);
12759
+ var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
12760
+ var SkillFrameworkValidator = z.object({
12761
+ id: z.string(),
12762
+ name: z.string(),
12763
+ description: z.string().optional(),
12764
+ image: z.string().optional(),
12765
+ sourceURI: z.string().url().optional(),
12766
+ status: SkillFrameworkStatusEnum.default("active"),
12767
+ createdAt: z.string().optional(),
12768
+ updatedAt: z.string().optional()
12769
+ });
12770
+ var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
12771
+ records: SkillFrameworkValidator.array()
12772
+ });
12773
+ var SkillTreeNodeValidator = SkillValidator.extend({
12774
+ children: z.array(z.lazy(() => SkillTreeNodeValidator)),
12775
+ hasChildren: z.boolean(),
12776
+ childrenCursor: z.string().nullable().optional()
12777
+ }).openapi({ ref: "SkillTreeNode" });
12778
+ var PaginatedSkillTreeValidator = z.object({
12779
+ hasMore: z.boolean(),
12780
+ cursor: z.string().nullable(),
12781
+ records: z.array(SkillTreeNodeValidator)
12782
+ });
12783
+ var SkillTreeNodeInputValidator = z.lazy(
12784
+ () => z.object({
12785
+ id: z.string().optional(),
12786
+ statement: z.string(),
12787
+ description: z.string().optional(),
12788
+ code: z.string().optional(),
12789
+ icon: z.string().optional(),
12790
+ type: z.string().optional(),
12791
+ status: SkillStatusEnum.optional(),
12792
+ children: z.array(SkillTreeNodeInputValidator).optional()
12793
+ })
12794
+ ).openapi({ ref: "SkillTreeNodeInput" });
12795
+ var LinkProviderFrameworkInputValidator = z.object({
12796
+ frameworkId: z.string()
12797
+ });
12798
+ var CreateManagedFrameworkInputValidator = z.object({
12799
+ id: z.string().optional(),
12800
+ name: z.string().min(1),
12801
+ description: z.string().optional(),
12802
+ image: z.string().optional(),
12803
+ sourceURI: z.string().url().optional(),
12804
+ status: SkillFrameworkStatusEnum.optional(),
12805
+ skills: z.array(SkillTreeNodeInputValidator).optional(),
12806
+ boostUris: z.array(z.string()).optional()
12807
+ });
12808
+ var UpdateFrameworkInputValidator = z.object({
12809
+ id: z.string(),
12810
+ name: z.string().min(1).optional(),
12811
+ description: z.string().optional(),
12812
+ image: z.string().optional(),
12813
+ sourceURI: z.string().url().optional(),
12814
+ status: SkillFrameworkStatusEnum.optional()
12815
+ }).refine(
12816
+ (data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
12817
+ {
12818
+ message: "At least one field must be provided to update",
12819
+ path: ["name"]
12820
+ }
12821
+ );
12822
+ var DeleteFrameworkInputValidator = z.object({ id: z.string() });
12823
+ var CreateManagedFrameworkBatchInputValidator = z.object({
12824
+ frameworks: z.array(
12825
+ CreateManagedFrameworkInputValidator.extend({
12826
+ skills: z.array(SkillTreeNodeInputValidator).optional()
12827
+ })
12828
+ ).min(1)
12829
+ });
12830
+ var SkillFrameworkAdminInputValidator = z.object({
12831
+ frameworkId: z.string(),
12832
+ profileId: z.string()
12833
+ });
12834
+ var SkillFrameworkIdInputValidator = z.object({ frameworkId: z.string() });
12835
+ var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
12836
+ var SyncFrameworkInputValidator = z.object({ id: z.string() });
12837
+ var AddTagInputValidator = z.object({
12838
+ slug: z.string().min(1),
12839
+ name: z.string().min(1)
12840
+ });
12841
+ var CreateSkillInputValidator = z.object({
12842
+ frameworkId: z.string(),
12843
+ skill: SkillTreeNodeInputValidator,
12844
+ parentId: z.string().nullable().optional()
12845
+ });
12846
+ var UpdateSkillInputValidator = z.object({
12847
+ frameworkId: z.string(),
12848
+ id: z.string(),
12849
+ statement: z.string().optional(),
12850
+ description: z.string().optional(),
12851
+ code: z.string().optional(),
12852
+ icon: z.string().optional(),
12853
+ type: z.string().optional(),
12854
+ status: SkillStatusEnum.optional()
12855
+ }).refine(
12856
+ (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,
12857
+ {
12858
+ message: "At least one field must be provided to update a skill",
12859
+ path: ["statement"]
12860
+ }
12861
+ );
12862
+ var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
12863
+ var DeleteSkillInputValidator = z.object({
12864
+ frameworkId: z.string(),
12865
+ id: z.string(),
12866
+ strategy: SkillDeletionStrategyValidator.optional().default("reparent")
12867
+ });
12868
+ var CreateSkillsBatchInputValidator = z.object({
12869
+ frameworkId: z.string(),
12870
+ skills: z.array(SkillTreeNodeInputValidator).min(1),
12871
+ parentId: z.string().nullable().optional()
12872
+ });
12873
+ var ReplaceSkillFrameworkSkillsInputValidator = z.object({
12874
+ frameworkId: z.string(),
12875
+ skills: z.array(SkillTreeNodeInputValidator).min(0)
12876
+ });
12877
+ var ReplaceSkillFrameworkSkillsResultValidator = z.object({
12878
+ created: z.number().int().min(0),
12879
+ updated: z.number().int().min(0),
12880
+ deleted: z.number().int().min(0),
12881
+ unchanged: z.number().int().min(0),
12882
+ total: z.number().int().min(0)
12883
+ });
12884
+ var CountSkillsInputValidator = z.object({
12885
+ frameworkId: z.string(),
12886
+ skillId: z.string().optional(),
12887
+ recursive: z.boolean().optional().default(false),
12888
+ onlyCountCompetencies: z.boolean().optional().default(false)
12889
+ });
12890
+ var CountSkillsResultValidator = z.object({
12891
+ count: z.number().int().min(0)
12892
+ });
12893
+ var GetFullSkillTreeInputValidator = z.object({
12894
+ frameworkId: z.string()
12895
+ });
12896
+ var GetFullSkillTreeResultValidator = z.object({
12897
+ skills: z.array(SkillTreeNodeValidator)
12898
+ });
12899
+ var GetSkillPathInputValidator = z.object({
12900
+ frameworkId: z.string(),
12901
+ skillId: z.string()
12902
+ });
12903
+ var GetSkillPathResultValidator = z.object({
12904
+ path: z.array(SkillValidator)
12905
+ });
12906
+ var FrameworkWithSkillsValidator = z.object({
12907
+ framework: SkillFrameworkValidator,
12908
+ skills: PaginatedSkillTreeValidator
12909
+ });
12603
12910
 
12604
12911
  // ../ceramic/dist/ceramic-plugin.esm.js
12605
12912
  var __create2 = Object.create;
@@ -67913,7 +68220,14 @@ var RegExpValidator2 = z2.instanceof(RegExp).or(
67913
68220
  }
67914
68221
  })
67915
68222
  );
67916
- var StringQuery2 = z2.string().or(z2.object({ $in: z2.string().array() })).or(z2.object({ $regex: RegExpValidator2 }));
68223
+ var BaseStringQuery2 = z2.string().or(z2.object({ $in: z2.string().array() })).or(z2.object({ $regex: RegExpValidator2 }));
68224
+ var StringQuery2 = z2.union([
68225
+ BaseStringQuery2,
68226
+ z2.object({
68227
+ $or: BaseStringQuery2.array()
68228
+ })
68229
+ ]);
68230
+ extendZodWithOpenApi2(z2);
67917
68231
  var LCNProfileDisplayValidator2 = z2.object({
67918
68232
  backgroundColor: z2.string().optional(),
67919
68233
  backgroundImage: z2.string().optional(),
@@ -68071,7 +68385,7 @@ var BoostValidator2 = z2.object({
68071
68385
  claimPermissions: BoostPermissionsValidator2.optional(),
68072
68386
  allowAnyoneToCreateChildren: z2.boolean().optional()
68073
68387
  });
68074
- var BoostQueryValidator2 = z2.object({
68388
+ var BaseBoostQueryValidator2 = z2.object({
68075
68389
  uri: StringQuery2,
68076
68390
  name: StringQuery2,
68077
68391
  type: StringQuery2,
@@ -68080,6 +68394,12 @@ var BoostQueryValidator2 = z2.object({
68080
68394
  status: LCNBoostStatus2.or(z2.object({ $in: LCNBoostStatus2.array() })),
68081
68395
  autoConnectRecipients: z2.boolean()
68082
68396
  }).partial();
68397
+ var BoostQueryValidator2 = z2.union([
68398
+ z2.object({
68399
+ $or: BaseBoostQueryValidator2.array()
68400
+ }),
68401
+ BaseBoostQueryValidator2
68402
+ ]);
68083
68403
  var PaginatedBoostsValidator2 = PaginationResponseValidator2.extend({
68084
68404
  records: BoostValidator2.array()
68085
68405
  });
@@ -68135,11 +68455,25 @@ var ConsentFlowTermsStatusValidator2 = z2.enum(["live", "stale", "withdrawn"]);
68135
68455
  var ConsentFlowContractValidator2 = z2.object({
68136
68456
  read: z2.object({
68137
68457
  anonymize: z2.boolean().optional(),
68138
- credentials: z2.object({ categories: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({}) }).default({}),
68458
+ credentials: z2.object({
68459
+ categories: z2.record(
68460
+ z2.object({
68461
+ required: z2.boolean(),
68462
+ defaultEnabled: z2.boolean().optional()
68463
+ })
68464
+ ).default({})
68465
+ }).default({}),
68139
68466
  personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
68140
68467
  }).default({}),
68141
68468
  write: z2.object({
68142
- credentials: z2.object({ categories: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({}) }).default({}),
68469
+ credentials: z2.object({
68470
+ categories: z2.record(
68471
+ z2.object({
68472
+ required: z2.boolean(),
68473
+ defaultEnabled: z2.boolean().optional()
68474
+ })
68475
+ ).default({})
68476
+ }).default({}),
68143
68477
  personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
68144
68478
  }).default({})
68145
68479
  });
@@ -68282,6 +68616,17 @@ var ConsentFlowTransactionValidator2 = z2.object({
68282
68616
  var PaginatedConsentFlowTransactionsValidator2 = PaginationResponseValidator2.extend({
68283
68617
  records: ConsentFlowTransactionValidator2.array()
68284
68618
  });
68619
+ var BaseSkillFrameworkQueryValidator2 = z2.object({
68620
+ id: StringQuery2,
68621
+ name: StringQuery2,
68622
+ description: StringQuery2,
68623
+ sourceURI: StringQuery2,
68624
+ status: StringQuery2
68625
+ }).partial();
68626
+ var SkillFrameworkQueryValidator2 = z2.union([
68627
+ z2.object({ $or: BaseSkillFrameworkQueryValidator2.array() }),
68628
+ BaseSkillFrameworkQueryValidator2
68629
+ ]);
68285
68630
  var ContractCredentialValidator2 = z2.object({
68286
68631
  credentialUri: z2.string(),
68287
68632
  termsUri: z2.string(),
@@ -68316,7 +68661,13 @@ var LCNInboxContactMethodValidator2 = z2.object({
68316
68661
  type: z2.string(),
68317
68662
  value: z2.string()
68318
68663
  });
68319
- var LCNInboxStatusEnumValidator2 = z2.enum(["PENDING", "DELIVERED", "CLAIMED", "EXPIRED"]);
68664
+ var LCNInboxStatusEnumValidator2 = z2.enum([
68665
+ "PENDING",
68666
+ "ISSUED",
68667
+ "EXPIRED",
68668
+ "DELIVERED",
68669
+ "CLAIMED"
68670
+ ]);
68320
68671
  var LCNNotificationInboxValidator2 = z2.object({
68321
68672
  issuanceId: z2.string(),
68322
68673
  status: LCNInboxStatusEnumValidator2,
@@ -68414,11 +68765,19 @@ var ContactMethodVerificationValidator2 = z2.object({
68414
68765
  var SetPrimaryContactMethodValidator2 = z2.object({
68415
68766
  contactMethodId: z2.string()
68416
68767
  });
68768
+ var CreateContactMethodSessionValidator2 = z2.object({
68769
+ contactMethod: ContactMethodVerificationRequestValidator2,
68770
+ otpChallenge: z2.string()
68771
+ });
68772
+ var CreateContactMethodSessionResponseValidator2 = z2.object({
68773
+ sessionJwt: z2.string()
68774
+ });
68417
68775
  var InboxCredentialValidator2 = z2.object({
68418
68776
  id: z2.string(),
68419
68777
  credential: z2.string(),
68420
68778
  isSigned: z2.boolean(),
68421
68779
  currentStatus: LCNInboxStatusEnumValidator2,
68780
+ isAccepted: z2.boolean().optional(),
68422
68781
  expiresAt: z2.string(),
68423
68782
  createdAt: z2.string(),
68424
68783
  issuerDid: z2.string(),
@@ -68437,6 +68796,7 @@ var InboxCredentialQueryValidator2 = z2.object({
68437
68796
  currentStatus: LCNInboxStatusEnumValidator2,
68438
68797
  id: z2.string(),
68439
68798
  isSigned: z2.boolean(),
68799
+ isAccepted: z2.boolean().optional(),
68440
68800
  issuerDid: z2.string()
68441
68801
  }).partial();
68442
68802
  var IssueInboxSigningAuthorityValidator2 = z2.object({
@@ -68445,31 +68805,55 @@ var IssueInboxSigningAuthorityValidator2 = z2.object({
68445
68805
  });
68446
68806
  var IssueInboxCredentialValidator2 = z2.object({
68447
68807
  recipient: ContactMethodQueryValidator2.describe("The recipient of the credential"),
68448
- 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."),
68808
+ credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
68809
+ "The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
68810
+ ),
68449
68811
  configuration: z2.object({
68450
- 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."),
68812
+ signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
68813
+ "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."
68814
+ ),
68451
68815
  webhookUrl: z2.string().url().optional().describe("The webhook URL to receive credential issuance events."),
68452
68816
  expiresInDays: z2.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
68453
68817
  delivery: z2.object({
68454
- 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."),
68818
+ suppress: z2.boolean().optional().default(false).describe(
68819
+ "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."
68820
+ ),
68455
68821
  template: z2.object({
68456
- 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."),
68822
+ id: z2.enum(["universal-inbox-claim"]).optional().describe(
68823
+ "The template ID to use for the credential delivery. If not provided, the default template will be used."
68824
+ ),
68457
68825
  model: z2.object({
68458
68826
  issuer: z2.object({
68459
- name: z2.string().optional().describe('The name of the organization (e.g., "State University").'),
68827
+ name: z2.string().optional().describe(
68828
+ 'The name of the organization (e.g., "State University").'
68829
+ ),
68460
68830
  logoUrl: z2.string().url().optional().describe("The URL of the organization's logo.")
68461
68831
  }).optional(),
68462
68832
  credential: z2.object({
68463
- name: z2.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),
68464
- type: z2.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')
68833
+ name: z2.string().optional().describe(
68834
+ 'The name of the credential (e.g., "Bachelor of Science").'
68835
+ ),
68836
+ type: z2.string().optional().describe(
68837
+ 'The type of the credential (e.g., "degree", "certificate").'
68838
+ )
68465
68839
  }).optional(),
68466
68840
  recipient: z2.object({
68467
- name: z2.string().optional().describe('The name of the recipient (e.g., "John Doe").')
68841
+ name: z2.string().optional().describe(
68842
+ 'The name of the recipient (e.g., "John Doe").'
68843
+ )
68468
68844
  }).optional()
68469
- }).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.")
68470
- }).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")
68471
- }).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.")
68472
- }).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")
68845
+ }).describe(
68846
+ "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."
68847
+ )
68848
+ }).optional().describe(
68849
+ "The template to use for the credential delivery. If not provided, the default template will be used."
68850
+ )
68851
+ }).optional().describe(
68852
+ "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."
68853
+ )
68854
+ }).optional().describe(
68855
+ "Configuration for the credential issuance. If not provided, the default configuration will be used."
68856
+ )
68473
68857
  });
68474
68858
  var IssueInboxCredentialResponseValidator2 = z2.object({
68475
68859
  issuanceId: z2.string(),
@@ -68478,6 +68862,51 @@ var IssueInboxCredentialResponseValidator2 = z2.object({
68478
68862
  claimUrl: z2.string().url().optional(),
68479
68863
  recipientDid: z2.string().optional()
68480
68864
  });
68865
+ var ClaimInboxCredentialValidator2 = z2.object({
68866
+ credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe("The credential to issue."),
68867
+ configuration: z2.object({
68868
+ publishableKey: z2.string(),
68869
+ signingAuthorityName: z2.string().optional()
68870
+ }).optional()
68871
+ });
68872
+ var LCNDomainOrOriginValidator2 = z2.union([
68873
+ z2.string().regex(
68874
+ /^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
68875
+ {
68876
+ message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
68877
+ }
68878
+ ),
68879
+ z2.string().regex(
68880
+ /^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
68881
+ { message: "Must be a valid http(s) origin" }
68882
+ )
68883
+ ]);
68884
+ var LCNIntegrationValidator2 = z2.object({
68885
+ id: z2.string(),
68886
+ name: z2.string(),
68887
+ description: z2.string().optional(),
68888
+ publishableKey: z2.string(),
68889
+ whitelistedDomains: z2.array(LCNDomainOrOriginValidator2).default([])
68890
+ });
68891
+ var LCNIntegrationCreateValidator2 = z2.object({
68892
+ name: z2.string(),
68893
+ description: z2.string().optional(),
68894
+ whitelistedDomains: z2.array(LCNDomainOrOriginValidator2).default([])
68895
+ });
68896
+ var LCNIntegrationUpdateValidator2 = z2.object({
68897
+ name: z2.string().optional(),
68898
+ description: z2.string().optional(),
68899
+ whitelistedDomains: z2.array(LCNDomainOrOriginValidator2).optional(),
68900
+ rotatePublishableKey: z2.boolean().optional()
68901
+ });
68902
+ var LCNIntegrationQueryValidator2 = z2.object({
68903
+ id: StringQuery2,
68904
+ name: StringQuery2,
68905
+ description: StringQuery2
68906
+ }).partial();
68907
+ var PaginatedLCNIntegrationsValidator2 = PaginationResponseValidator2.extend({
68908
+ records: LCNIntegrationValidator2.array()
68909
+ });
68481
68910
  var ClaimTokenValidator2 = z2.object({
68482
68911
  token: z2.string(),
68483
68912
  contactMethodId: z2.string(),
@@ -68486,6 +68915,191 @@ var ClaimTokenValidator2 = z2.object({
68486
68915
  expiresAt: z2.string(),
68487
68916
  used: z2.boolean()
68488
68917
  });
68918
+ var TagValidator2 = z2.object({
68919
+ id: z2.string(),
68920
+ name: z2.string().min(1),
68921
+ slug: z2.string().min(1),
68922
+ createdAt: z2.string().optional(),
68923
+ updatedAt: z2.string().optional()
68924
+ });
68925
+ var SkillStatusEnum2 = z2.enum(["active", "archived"]);
68926
+ var SkillValidator2 = z2.object({
68927
+ id: z2.string(),
68928
+ statement: z2.string(),
68929
+ description: z2.string().optional(),
68930
+ code: z2.string().optional(),
68931
+ icon: z2.string().optional(),
68932
+ type: z2.string().default("skill"),
68933
+ status: SkillStatusEnum2.default("active"),
68934
+ frameworkId: z2.string().optional(),
68935
+ createdAt: z2.string().optional(),
68936
+ updatedAt: z2.string().optional()
68937
+ });
68938
+ var BaseSkillQueryValidator2 = z2.object({
68939
+ id: StringQuery2,
68940
+ statement: StringQuery2,
68941
+ description: StringQuery2,
68942
+ code: StringQuery2,
68943
+ type: StringQuery2,
68944
+ status: SkillStatusEnum2.or(z2.object({ $in: SkillStatusEnum2.array() }))
68945
+ }).partial();
68946
+ var SkillQueryValidator2 = z2.union([
68947
+ z2.object({
68948
+ $or: BaseSkillQueryValidator2.array()
68949
+ }),
68950
+ BaseSkillQueryValidator2
68951
+ ]);
68952
+ var SkillFrameworkStatusEnum2 = z2.enum(["active", "archived"]);
68953
+ var SkillFrameworkValidator2 = z2.object({
68954
+ id: z2.string(),
68955
+ name: z2.string(),
68956
+ description: z2.string().optional(),
68957
+ image: z2.string().optional(),
68958
+ sourceURI: z2.string().url().optional(),
68959
+ status: SkillFrameworkStatusEnum2.default("active"),
68960
+ createdAt: z2.string().optional(),
68961
+ updatedAt: z2.string().optional()
68962
+ });
68963
+ var PaginatedSkillFrameworksValidator2 = PaginationResponseValidator2.extend({
68964
+ records: SkillFrameworkValidator2.array()
68965
+ });
68966
+ var SkillTreeNodeValidator2 = SkillValidator2.extend({
68967
+ children: z2.array(z2.lazy(() => SkillTreeNodeValidator2)),
68968
+ hasChildren: z2.boolean(),
68969
+ childrenCursor: z2.string().nullable().optional()
68970
+ }).openapi({ ref: "SkillTreeNode" });
68971
+ var PaginatedSkillTreeValidator2 = z2.object({
68972
+ hasMore: z2.boolean(),
68973
+ cursor: z2.string().nullable(),
68974
+ records: z2.array(SkillTreeNodeValidator2)
68975
+ });
68976
+ var SkillTreeNodeInputValidator2 = z2.lazy(
68977
+ () => z2.object({
68978
+ id: z2.string().optional(),
68979
+ statement: z2.string(),
68980
+ description: z2.string().optional(),
68981
+ code: z2.string().optional(),
68982
+ icon: z2.string().optional(),
68983
+ type: z2.string().optional(),
68984
+ status: SkillStatusEnum2.optional(),
68985
+ children: z2.array(SkillTreeNodeInputValidator2).optional()
68986
+ })
68987
+ ).openapi({ ref: "SkillTreeNodeInput" });
68988
+ var LinkProviderFrameworkInputValidator2 = z2.object({
68989
+ frameworkId: z2.string()
68990
+ });
68991
+ var CreateManagedFrameworkInputValidator2 = z2.object({
68992
+ id: z2.string().optional(),
68993
+ name: z2.string().min(1),
68994
+ description: z2.string().optional(),
68995
+ image: z2.string().optional(),
68996
+ sourceURI: z2.string().url().optional(),
68997
+ status: SkillFrameworkStatusEnum2.optional(),
68998
+ skills: z2.array(SkillTreeNodeInputValidator2).optional(),
68999
+ boostUris: z2.array(z2.string()).optional()
69000
+ });
69001
+ var UpdateFrameworkInputValidator2 = z2.object({
69002
+ id: z2.string(),
69003
+ name: z2.string().min(1).optional(),
69004
+ description: z2.string().optional(),
69005
+ image: z2.string().optional(),
69006
+ sourceURI: z2.string().url().optional(),
69007
+ status: SkillFrameworkStatusEnum2.optional()
69008
+ }).refine(
69009
+ (data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
69010
+ {
69011
+ message: "At least one field must be provided to update",
69012
+ path: ["name"]
69013
+ }
69014
+ );
69015
+ var DeleteFrameworkInputValidator2 = z2.object({ id: z2.string() });
69016
+ var CreateManagedFrameworkBatchInputValidator2 = z2.object({
69017
+ frameworks: z2.array(
69018
+ CreateManagedFrameworkInputValidator2.extend({
69019
+ skills: z2.array(SkillTreeNodeInputValidator2).optional()
69020
+ })
69021
+ ).min(1)
69022
+ });
69023
+ var SkillFrameworkAdminInputValidator2 = z2.object({
69024
+ frameworkId: z2.string(),
69025
+ profileId: z2.string()
69026
+ });
69027
+ var SkillFrameworkIdInputValidator2 = z2.object({ frameworkId: z2.string() });
69028
+ var SkillFrameworkAdminsValidator2 = LCNProfileValidator2.array();
69029
+ var SyncFrameworkInputValidator2 = z2.object({ id: z2.string() });
69030
+ var AddTagInputValidator2 = z2.object({
69031
+ slug: z2.string().min(1),
69032
+ name: z2.string().min(1)
69033
+ });
69034
+ var CreateSkillInputValidator2 = z2.object({
69035
+ frameworkId: z2.string(),
69036
+ skill: SkillTreeNodeInputValidator2,
69037
+ parentId: z2.string().nullable().optional()
69038
+ });
69039
+ var UpdateSkillInputValidator2 = z2.object({
69040
+ frameworkId: z2.string(),
69041
+ id: z2.string(),
69042
+ statement: z2.string().optional(),
69043
+ description: z2.string().optional(),
69044
+ code: z2.string().optional(),
69045
+ icon: z2.string().optional(),
69046
+ type: z2.string().optional(),
69047
+ status: SkillStatusEnum2.optional()
69048
+ }).refine(
69049
+ (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,
69050
+ {
69051
+ message: "At least one field must be provided to update a skill",
69052
+ path: ["statement"]
69053
+ }
69054
+ );
69055
+ var SkillDeletionStrategyValidator2 = z2.enum(["recursive", "reparent"]);
69056
+ var DeleteSkillInputValidator2 = z2.object({
69057
+ frameworkId: z2.string(),
69058
+ id: z2.string(),
69059
+ strategy: SkillDeletionStrategyValidator2.optional().default("reparent")
69060
+ });
69061
+ var CreateSkillsBatchInputValidator2 = z2.object({
69062
+ frameworkId: z2.string(),
69063
+ skills: z2.array(SkillTreeNodeInputValidator2).min(1),
69064
+ parentId: z2.string().nullable().optional()
69065
+ });
69066
+ var ReplaceSkillFrameworkSkillsInputValidator2 = z2.object({
69067
+ frameworkId: z2.string(),
69068
+ skills: z2.array(SkillTreeNodeInputValidator2).min(0)
69069
+ });
69070
+ var ReplaceSkillFrameworkSkillsResultValidator2 = z2.object({
69071
+ created: z2.number().int().min(0),
69072
+ updated: z2.number().int().min(0),
69073
+ deleted: z2.number().int().min(0),
69074
+ unchanged: z2.number().int().min(0),
69075
+ total: z2.number().int().min(0)
69076
+ });
69077
+ var CountSkillsInputValidator2 = z2.object({
69078
+ frameworkId: z2.string(),
69079
+ skillId: z2.string().optional(),
69080
+ recursive: z2.boolean().optional().default(false),
69081
+ onlyCountCompetencies: z2.boolean().optional().default(false)
69082
+ });
69083
+ var CountSkillsResultValidator2 = z2.object({
69084
+ count: z2.number().int().min(0)
69085
+ });
69086
+ var GetFullSkillTreeInputValidator2 = z2.object({
69087
+ frameworkId: z2.string()
69088
+ });
69089
+ var GetFullSkillTreeResultValidator2 = z2.object({
69090
+ skills: z2.array(SkillTreeNodeValidator2)
69091
+ });
69092
+ var GetSkillPathInputValidator2 = z2.object({
69093
+ frameworkId: z2.string(),
69094
+ skillId: z2.string()
69095
+ });
69096
+ var GetSkillPathResultValidator2 = z2.object({
69097
+ path: z2.array(SkillValidator2)
69098
+ });
69099
+ var FrameworkWithSkillsValidator2 = z2.object({
69100
+ framework: SkillFrameworkValidator2,
69101
+ skills: PaginatedSkillTreeValidator2
69102
+ });
68489
69103
  var streamIdToCeramicURI = /* @__PURE__ */ __name3((id) => `lc:ceramic:${id}`, "streamIdToCeramicURI");
68490
69104
  var CeramicURIValidator = z2.string().refine(
68491
69105
  (string22) => string22.split(":").length === 3 && string22.split(":")[0] === "lc",