@learncard/learn-cloud-plugin 2.2.5 → 2.2.8

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.
@@ -8151,6 +8151,7 @@ var require_types_cjs_development = __commonJS2({
8151
8151
  AchievementSubjectValidator: () => AchievementSubjectValidator2,
8152
8152
  AchievementTypeValidator: () => AchievementTypeValidator2,
8153
8153
  AchievementValidator: () => AchievementValidator2,
8154
+ AddTagInputValidator: () => AddTagInputValidator2,
8154
8155
  AddressValidator: () => AddressValidator2,
8155
8156
  AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator2,
8156
8157
  AlignmentValidator: () => AlignmentValidator2,
@@ -8190,14 +8191,22 @@ var require_types_cjs_development = __commonJS2({
8190
8191
  ContactMethodVerificationValidator: () => ContactMethodVerificationValidator2,
8191
8192
  ContextValidator: () => ContextValidator2,
8192
8193
  ContractCredentialValidator: () => ContractCredentialValidator2,
8194
+ CountSkillsInputValidator: () => CountSkillsInputValidator2,
8195
+ CountSkillsResultValidator: () => CountSkillsResultValidator2,
8193
8196
  CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator2,
8194
8197
  CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator2,
8198
+ CreateManagedFrameworkBatchInputValidator: () => CreateManagedFrameworkBatchInputValidator2,
8199
+ CreateManagedFrameworkInputValidator: () => CreateManagedFrameworkInputValidator2,
8200
+ CreateSkillInputValidator: () => CreateSkillInputValidator2,
8201
+ CreateSkillsBatchInputValidator: () => CreateSkillsBatchInputValidator2,
8195
8202
  CredentialInfoValidator: () => CredentialInfoValidator2,
8196
8203
  CredentialRecordValidator: () => CredentialRecordValidator2,
8197
8204
  CredentialSchemaValidator: () => CredentialSchemaValidator2,
8198
8205
  CredentialStatusValidator: () => CredentialStatusValidator2,
8199
8206
  CredentialSubjectValidator: () => CredentialSubjectValidator2,
8200
8207
  CriteriaValidator: () => CriteriaValidator2,
8208
+ DeleteFrameworkInputValidator: () => DeleteFrameworkInputValidator2,
8209
+ DeleteSkillInputValidator: () => DeleteSkillInputValidator2,
8201
8210
  DidDocumentValidator: () => DidDocumentValidator2,
8202
8211
  EncryptedCredentialRecordValidator: () => EncryptedCredentialRecordValidator2,
8203
8212
  EncryptedRecordValidator: () => EncryptedRecordValidator2,
@@ -8205,8 +8214,13 @@ var require_types_cjs_development = __commonJS2({
8205
8214
  EndorsementSubjectValidator: () => EndorsementSubjectValidator2,
8206
8215
  EvidenceValidator: () => EvidenceValidator2,
8207
8216
  FlatAuthGrantValidator: () => FlatAuthGrantValidator2,
8217
+ FrameworkWithSkillsValidator: () => FrameworkWithSkillsValidator2,
8208
8218
  FullClaimHookValidator: () => FullClaimHookValidator2,
8209
8219
  GeoCoordinatesValidator: () => GeoCoordinatesValidator2,
8220
+ GetFullSkillTreeInputValidator: () => GetFullSkillTreeInputValidator2,
8221
+ GetFullSkillTreeResultValidator: () => GetFullSkillTreeResultValidator2,
8222
+ GetSkillPathInputValidator: () => GetSkillPathInputValidator2,
8223
+ GetSkillPathResultValidator: () => GetSkillPathResultValidator2,
8210
8224
  IdentifierEntryValidator: () => IdentifierEntryValidator2,
8211
8225
  IdentifierTypeValidator: () => IdentifierTypeValidator2,
8212
8226
  IdentityObjectValidator: () => IdentityObjectValidator2,
@@ -8245,6 +8259,7 @@ var require_types_cjs_development = __commonJS2({
8245
8259
  LCNProfileValidator: () => LCNProfileValidator2,
8246
8260
  LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator2,
8247
8261
  LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator2,
8262
+ LinkProviderFrameworkInputValidator: () => LinkProviderFrameworkInputValidator2,
8248
8263
  PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator2,
8249
8264
  PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator2,
8250
8265
  PaginatedBoostsValidator: () => PaginatedBoostsValidator2,
@@ -8262,6 +8277,8 @@ var require_types_cjs_development = __commonJS2({
8262
8277
  PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator2,
8263
8278
  PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator2,
8264
8279
  PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator2,
8280
+ PaginatedSkillFrameworksValidator: () => PaginatedSkillFrameworksValidator2,
8281
+ PaginatedSkillTreeValidator: () => PaginatedSkillTreeValidator2,
8265
8282
  PaginationOptionsValidator: () => PaginationOptionsValidator2,
8266
8283
  PaginationResponseValidator: () => PaginationResponseValidator2,
8267
8284
  ProfileValidator: () => ProfileValidator2,
@@ -8269,6 +8286,8 @@ var require_types_cjs_development = __commonJS2({
8269
8286
  RefreshServiceValidator: () => RefreshServiceValidator2,
8270
8287
  RegExpValidator: () => RegExpValidator2,
8271
8288
  RelatedValidator: () => RelatedValidator2,
8289
+ ReplaceSkillFrameworkSkillsInputValidator: () => ReplaceSkillFrameworkSkillsInputValidator2,
8290
+ ReplaceSkillFrameworkSkillsResultValidator: () => ReplaceSkillFrameworkSkillsResultValidator2,
8272
8291
  ResultDescriptionValidator: () => ResultDescriptionValidator2,
8273
8292
  ResultStatusTypeValidator: () => ResultStatusTypeValidator2,
8274
8293
  ResultTypeValidator: () => ResultTypeValidator2,
@@ -8277,11 +8296,27 @@ var require_types_cjs_development = __commonJS2({
8277
8296
  SentCredentialInfoValidator: () => SentCredentialInfoValidator2,
8278
8297
  ServiceValidator: () => ServiceValidator2,
8279
8298
  SetPrimaryContactMethodValidator: () => SetPrimaryContactMethodValidator2,
8299
+ SkillDeletionStrategyValidator: () => SkillDeletionStrategyValidator2,
8300
+ SkillFrameworkAdminInputValidator: () => SkillFrameworkAdminInputValidator2,
8301
+ SkillFrameworkAdminsValidator: () => SkillFrameworkAdminsValidator2,
8302
+ SkillFrameworkIdInputValidator: () => SkillFrameworkIdInputValidator2,
8303
+ SkillFrameworkQueryValidator: () => SkillFrameworkQueryValidator2,
8304
+ SkillFrameworkStatusEnum: () => SkillFrameworkStatusEnum2,
8305
+ SkillFrameworkValidator: () => SkillFrameworkValidator2,
8306
+ SkillQueryValidator: () => SkillQueryValidator2,
8307
+ SkillStatusEnum: () => SkillStatusEnum2,
8308
+ SkillTreeNodeInputValidator: () => SkillTreeNodeInputValidator2,
8309
+ SkillTreeNodeValidator: () => SkillTreeNodeValidator2,
8310
+ SkillValidator: () => SkillValidator2,
8280
8311
  StringQuery: () => StringQuery2,
8312
+ SyncFrameworkInputValidator: () => SyncFrameworkInputValidator2,
8313
+ TagValidator: () => TagValidator2,
8281
8314
  TermsOfUseValidator: () => TermsOfUseValidator2,
8282
8315
  UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator2,
8283
8316
  UnsignedVCValidator: () => UnsignedVCValidator2,
8284
8317
  UnsignedVPValidator: () => UnsignedVPValidator2,
8318
+ UpdateFrameworkInputValidator: () => UpdateFrameworkInputValidator2,
8319
+ UpdateSkillInputValidator: () => UpdateSkillInputValidator2,
8285
8320
  VC2EvidenceValidator: () => VC2EvidenceValidator2,
8286
8321
  VCValidator: () => VCValidator2,
8287
8322
  VPValidator: () => VPValidator2,
@@ -12764,7 +12799,14 @@ var require_types_cjs_development = __commonJS2({
12764
12799
  }
12765
12800
  })
12766
12801
  );
12767
- var StringQuery2 = z2.string().or(z2.object({ $in: z2.string().array() })).or(z2.object({ $regex: RegExpValidator2 }));
12802
+ var BaseStringQuery2 = z2.string().or(z2.object({ $in: z2.string().array() })).or(z2.object({ $regex: RegExpValidator2 }));
12803
+ var StringQuery2 = z2.union([
12804
+ BaseStringQuery2,
12805
+ z2.object({
12806
+ $or: BaseStringQuery2.array()
12807
+ })
12808
+ ]);
12809
+ extendZodWithOpenApi2(z2);
12768
12810
  var LCNProfileDisplayValidator2 = z2.object({
12769
12811
  backgroundColor: z2.string().optional(),
12770
12812
  backgroundImage: z2.string().optional(),
@@ -12922,7 +12964,7 @@ var require_types_cjs_development = __commonJS2({
12922
12964
  claimPermissions: BoostPermissionsValidator2.optional(),
12923
12965
  allowAnyoneToCreateChildren: z2.boolean().optional()
12924
12966
  });
12925
- var BoostQueryValidator2 = z2.object({
12967
+ var BaseBoostQueryValidator2 = z2.object({
12926
12968
  uri: StringQuery2,
12927
12969
  name: StringQuery2,
12928
12970
  type: StringQuery2,
@@ -12931,6 +12973,12 @@ var require_types_cjs_development = __commonJS2({
12931
12973
  status: LCNBoostStatus2.or(z2.object({ $in: LCNBoostStatus2.array() })),
12932
12974
  autoConnectRecipients: z2.boolean()
12933
12975
  }).partial();
12976
+ var BoostQueryValidator2 = z2.union([
12977
+ z2.object({
12978
+ $or: BaseBoostQueryValidator2.array()
12979
+ }),
12980
+ BaseBoostQueryValidator2
12981
+ ]);
12934
12982
  var PaginatedBoostsValidator2 = PaginationResponseValidator2.extend({
12935
12983
  records: BoostValidator2.array()
12936
12984
  });
@@ -12986,11 +13034,25 @@ var require_types_cjs_development = __commonJS2({
12986
13034
  var ConsentFlowContractValidator2 = z2.object({
12987
13035
  read: z2.object({
12988
13036
  anonymize: z2.boolean().optional(),
12989
- credentials: z2.object({ categories: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({}) }).default({}),
13037
+ credentials: z2.object({
13038
+ categories: z2.record(
13039
+ z2.object({
13040
+ required: z2.boolean(),
13041
+ defaultEnabled: z2.boolean().optional()
13042
+ })
13043
+ ).default({})
13044
+ }).default({}),
12990
13045
  personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
12991
13046
  }).default({}),
12992
13047
  write: z2.object({
12993
- credentials: z2.object({ categories: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({}) }).default({}),
13048
+ credentials: z2.object({
13049
+ categories: z2.record(
13050
+ z2.object({
13051
+ required: z2.boolean(),
13052
+ defaultEnabled: z2.boolean().optional()
13053
+ })
13054
+ ).default({})
13055
+ }).default({}),
12994
13056
  personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
12995
13057
  }).default({})
12996
13058
  });
@@ -13133,6 +13195,17 @@ var require_types_cjs_development = __commonJS2({
13133
13195
  var PaginatedConsentFlowTransactionsValidator2 = PaginationResponseValidator2.extend({
13134
13196
  records: ConsentFlowTransactionValidator2.array()
13135
13197
  });
13198
+ var BaseSkillFrameworkQueryValidator2 = z2.object({
13199
+ id: StringQuery2,
13200
+ name: StringQuery2,
13201
+ description: StringQuery2,
13202
+ sourceURI: StringQuery2,
13203
+ status: StringQuery2
13204
+ }).partial();
13205
+ var SkillFrameworkQueryValidator2 = z2.union([
13206
+ z2.object({ $or: BaseSkillFrameworkQueryValidator2.array() }),
13207
+ BaseSkillFrameworkQueryValidator2
13208
+ ]);
13136
13209
  var ContractCredentialValidator2 = z2.object({
13137
13210
  credentialUri: z2.string(),
13138
13211
  termsUri: z2.string(),
@@ -13311,31 +13384,55 @@ var require_types_cjs_development = __commonJS2({
13311
13384
  });
13312
13385
  var IssueInboxCredentialValidator2 = z2.object({
13313
13386
  recipient: ContactMethodQueryValidator2.describe("The recipient of the credential"),
13314
- 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."),
13387
+ credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
13388
+ "The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
13389
+ ),
13315
13390
  configuration: z2.object({
13316
- 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."),
13391
+ signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
13392
+ "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."
13393
+ ),
13317
13394
  webhookUrl: z2.string().url().optional().describe("The webhook URL to receive credential issuance events."),
13318
13395
  expiresInDays: z2.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
13319
13396
  delivery: z2.object({
13320
- 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."),
13397
+ suppress: z2.boolean().optional().default(false).describe(
13398
+ "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."
13399
+ ),
13321
13400
  template: z2.object({
13322
- 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."),
13401
+ id: z2.enum(["universal-inbox-claim"]).optional().describe(
13402
+ "The template ID to use for the credential delivery. If not provided, the default template will be used."
13403
+ ),
13323
13404
  model: z2.object({
13324
13405
  issuer: z2.object({
13325
- name: z2.string().optional().describe('The name of the organization (e.g., "State University").'),
13406
+ name: z2.string().optional().describe(
13407
+ 'The name of the organization (e.g., "State University").'
13408
+ ),
13326
13409
  logoUrl: z2.string().url().optional().describe("The URL of the organization's logo.")
13327
13410
  }).optional(),
13328
13411
  credential: z2.object({
13329
- name: z2.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),
13330
- type: z2.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')
13412
+ name: z2.string().optional().describe(
13413
+ 'The name of the credential (e.g., "Bachelor of Science").'
13414
+ ),
13415
+ type: z2.string().optional().describe(
13416
+ 'The type of the credential (e.g., "degree", "certificate").'
13417
+ )
13331
13418
  }).optional(),
13332
13419
  recipient: z2.object({
13333
- name: z2.string().optional().describe('The name of the recipient (e.g., "John Doe").')
13420
+ name: z2.string().optional().describe(
13421
+ 'The name of the recipient (e.g., "John Doe").'
13422
+ )
13334
13423
  }).optional()
13335
- }).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.")
13336
- }).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")
13337
- }).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.")
13338
- }).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")
13424
+ }).describe(
13425
+ "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."
13426
+ )
13427
+ }).optional().describe(
13428
+ "The template to use for the credential delivery. If not provided, the default template will be used."
13429
+ )
13430
+ }).optional().describe(
13431
+ "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."
13432
+ )
13433
+ }).optional().describe(
13434
+ "Configuration for the credential issuance. If not provided, the default configuration will be used."
13435
+ )
13339
13436
  });
13340
13437
  var IssueInboxCredentialResponseValidator2 = z2.object({
13341
13438
  issuanceId: z2.string(),
@@ -13397,6 +13494,191 @@ var require_types_cjs_development = __commonJS2({
13397
13494
  expiresAt: z2.string(),
13398
13495
  used: z2.boolean()
13399
13496
  });
13497
+ var TagValidator2 = z2.object({
13498
+ id: z2.string(),
13499
+ name: z2.string().min(1),
13500
+ slug: z2.string().min(1),
13501
+ createdAt: z2.string().optional(),
13502
+ updatedAt: z2.string().optional()
13503
+ });
13504
+ var SkillStatusEnum2 = z2.enum(["active", "archived"]);
13505
+ var SkillValidator2 = z2.object({
13506
+ id: z2.string(),
13507
+ statement: z2.string(),
13508
+ description: z2.string().optional(),
13509
+ code: z2.string().optional(),
13510
+ icon: z2.string().optional(),
13511
+ type: z2.string().default("skill"),
13512
+ status: SkillStatusEnum2.default("active"),
13513
+ frameworkId: z2.string().optional(),
13514
+ createdAt: z2.string().optional(),
13515
+ updatedAt: z2.string().optional()
13516
+ });
13517
+ var BaseSkillQueryValidator2 = z2.object({
13518
+ id: StringQuery2,
13519
+ statement: StringQuery2,
13520
+ description: StringQuery2,
13521
+ code: StringQuery2,
13522
+ type: StringQuery2,
13523
+ status: SkillStatusEnum2.or(z2.object({ $in: SkillStatusEnum2.array() }))
13524
+ }).partial();
13525
+ var SkillQueryValidator2 = z2.union([
13526
+ z2.object({
13527
+ $or: BaseSkillQueryValidator2.array()
13528
+ }),
13529
+ BaseSkillQueryValidator2
13530
+ ]);
13531
+ var SkillFrameworkStatusEnum2 = z2.enum(["active", "archived"]);
13532
+ var SkillFrameworkValidator2 = z2.object({
13533
+ id: z2.string(),
13534
+ name: z2.string(),
13535
+ description: z2.string().optional(),
13536
+ image: z2.string().optional(),
13537
+ sourceURI: z2.string().url().optional(),
13538
+ status: SkillFrameworkStatusEnum2.default("active"),
13539
+ createdAt: z2.string().optional(),
13540
+ updatedAt: z2.string().optional()
13541
+ });
13542
+ var PaginatedSkillFrameworksValidator2 = PaginationResponseValidator2.extend({
13543
+ records: SkillFrameworkValidator2.array()
13544
+ });
13545
+ var SkillTreeNodeValidator2 = SkillValidator2.extend({
13546
+ children: z2.array(z2.lazy(() => SkillTreeNodeValidator2)),
13547
+ hasChildren: z2.boolean(),
13548
+ childrenCursor: z2.string().nullable().optional()
13549
+ }).openapi({ ref: "SkillTreeNode" });
13550
+ var PaginatedSkillTreeValidator2 = z2.object({
13551
+ hasMore: z2.boolean(),
13552
+ cursor: z2.string().nullable(),
13553
+ records: z2.array(SkillTreeNodeValidator2)
13554
+ });
13555
+ var SkillTreeNodeInputValidator2 = z2.lazy(
13556
+ () => z2.object({
13557
+ id: z2.string().optional(),
13558
+ statement: z2.string(),
13559
+ description: z2.string().optional(),
13560
+ code: z2.string().optional(),
13561
+ icon: z2.string().optional(),
13562
+ type: z2.string().optional(),
13563
+ status: SkillStatusEnum2.optional(),
13564
+ children: z2.array(SkillTreeNodeInputValidator2).optional()
13565
+ })
13566
+ ).openapi({ ref: "SkillTreeNodeInput" });
13567
+ var LinkProviderFrameworkInputValidator2 = z2.object({
13568
+ frameworkId: z2.string()
13569
+ });
13570
+ var CreateManagedFrameworkInputValidator2 = z2.object({
13571
+ id: z2.string().optional(),
13572
+ name: z2.string().min(1),
13573
+ description: z2.string().optional(),
13574
+ image: z2.string().optional(),
13575
+ sourceURI: z2.string().url().optional(),
13576
+ status: SkillFrameworkStatusEnum2.optional(),
13577
+ skills: z2.array(SkillTreeNodeInputValidator2).optional(),
13578
+ boostUris: z2.array(z2.string()).optional()
13579
+ });
13580
+ var UpdateFrameworkInputValidator2 = z2.object({
13581
+ id: z2.string(),
13582
+ name: z2.string().min(1).optional(),
13583
+ description: z2.string().optional(),
13584
+ image: z2.string().optional(),
13585
+ sourceURI: z2.string().url().optional(),
13586
+ status: SkillFrameworkStatusEnum2.optional()
13587
+ }).refine(
13588
+ (data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
13589
+ {
13590
+ message: "At least one field must be provided to update",
13591
+ path: ["name"]
13592
+ }
13593
+ );
13594
+ var DeleteFrameworkInputValidator2 = z2.object({ id: z2.string() });
13595
+ var CreateManagedFrameworkBatchInputValidator2 = z2.object({
13596
+ frameworks: z2.array(
13597
+ CreateManagedFrameworkInputValidator2.extend({
13598
+ skills: z2.array(SkillTreeNodeInputValidator2).optional()
13599
+ })
13600
+ ).min(1)
13601
+ });
13602
+ var SkillFrameworkAdminInputValidator2 = z2.object({
13603
+ frameworkId: z2.string(),
13604
+ profileId: z2.string()
13605
+ });
13606
+ var SkillFrameworkIdInputValidator2 = z2.object({ frameworkId: z2.string() });
13607
+ var SkillFrameworkAdminsValidator2 = LCNProfileValidator2.array();
13608
+ var SyncFrameworkInputValidator2 = z2.object({ id: z2.string() });
13609
+ var AddTagInputValidator2 = z2.object({
13610
+ slug: z2.string().min(1),
13611
+ name: z2.string().min(1)
13612
+ });
13613
+ var CreateSkillInputValidator2 = z2.object({
13614
+ frameworkId: z2.string(),
13615
+ skill: SkillTreeNodeInputValidator2,
13616
+ parentId: z2.string().nullable().optional()
13617
+ });
13618
+ var UpdateSkillInputValidator2 = z2.object({
13619
+ frameworkId: z2.string(),
13620
+ id: z2.string(),
13621
+ statement: z2.string().optional(),
13622
+ description: z2.string().optional(),
13623
+ code: z2.string().optional(),
13624
+ icon: z2.string().optional(),
13625
+ type: z2.string().optional(),
13626
+ status: SkillStatusEnum2.optional()
13627
+ }).refine(
13628
+ (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,
13629
+ {
13630
+ message: "At least one field must be provided to update a skill",
13631
+ path: ["statement"]
13632
+ }
13633
+ );
13634
+ var SkillDeletionStrategyValidator2 = z2.enum(["recursive", "reparent"]);
13635
+ var DeleteSkillInputValidator2 = z2.object({
13636
+ frameworkId: z2.string(),
13637
+ id: z2.string(),
13638
+ strategy: SkillDeletionStrategyValidator2.optional().default("reparent")
13639
+ });
13640
+ var CreateSkillsBatchInputValidator2 = z2.object({
13641
+ frameworkId: z2.string(),
13642
+ skills: z2.array(SkillTreeNodeInputValidator2).min(1),
13643
+ parentId: z2.string().nullable().optional()
13644
+ });
13645
+ var ReplaceSkillFrameworkSkillsInputValidator2 = z2.object({
13646
+ frameworkId: z2.string(),
13647
+ skills: z2.array(SkillTreeNodeInputValidator2).min(0)
13648
+ });
13649
+ var ReplaceSkillFrameworkSkillsResultValidator2 = z2.object({
13650
+ created: z2.number().int().min(0),
13651
+ updated: z2.number().int().min(0),
13652
+ deleted: z2.number().int().min(0),
13653
+ unchanged: z2.number().int().min(0),
13654
+ total: z2.number().int().min(0)
13655
+ });
13656
+ var CountSkillsInputValidator2 = z2.object({
13657
+ frameworkId: z2.string(),
13658
+ skillId: z2.string().optional(),
13659
+ recursive: z2.boolean().optional().default(false),
13660
+ onlyCountCompetencies: z2.boolean().optional().default(false)
13661
+ });
13662
+ var CountSkillsResultValidator2 = z2.object({
13663
+ count: z2.number().int().min(0)
13664
+ });
13665
+ var GetFullSkillTreeInputValidator2 = z2.object({
13666
+ frameworkId: z2.string()
13667
+ });
13668
+ var GetFullSkillTreeResultValidator2 = z2.object({
13669
+ skills: z2.array(SkillTreeNodeValidator2)
13670
+ });
13671
+ var GetSkillPathInputValidator2 = z2.object({
13672
+ frameworkId: z2.string(),
13673
+ skillId: z2.string()
13674
+ });
13675
+ var GetSkillPathResultValidator2 = z2.object({
13676
+ path: z2.array(SkillValidator2)
13677
+ });
13678
+ var FrameworkWithSkillsValidator2 = z2.object({
13679
+ framework: SkillFrameworkValidator2,
13680
+ skills: PaginatedSkillTreeValidator2
13681
+ });
13400
13682
  }
13401
13683
  });
13402
13684
  var require_dist = __commonJS2({
@@ -17851,7 +18133,14 @@ var RegExpValidator = z.instanceof(RegExp).or(
17851
18133
  }
17852
18134
  })
17853
18135
  );
17854
- var StringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
18136
+ var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
18137
+ var StringQuery = z.union([
18138
+ BaseStringQuery,
18139
+ z.object({
18140
+ $or: BaseStringQuery.array()
18141
+ })
18142
+ ]);
18143
+ extendZodWithOpenApi(z);
17855
18144
  var LCNProfileDisplayValidator = z.object({
17856
18145
  backgroundColor: z.string().optional(),
17857
18146
  backgroundImage: z.string().optional(),
@@ -18009,7 +18298,7 @@ var BoostValidator = z.object({
18009
18298
  claimPermissions: BoostPermissionsValidator.optional(),
18010
18299
  allowAnyoneToCreateChildren: z.boolean().optional()
18011
18300
  });
18012
- var BoostQueryValidator = z.object({
18301
+ var BaseBoostQueryValidator = z.object({
18013
18302
  uri: StringQuery,
18014
18303
  name: StringQuery,
18015
18304
  type: StringQuery,
@@ -18018,6 +18307,12 @@ var BoostQueryValidator = z.object({
18018
18307
  status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
18019
18308
  autoConnectRecipients: z.boolean()
18020
18309
  }).partial();
18310
+ var BoostQueryValidator = z.union([
18311
+ z.object({
18312
+ $or: BaseBoostQueryValidator.array()
18313
+ }),
18314
+ BaseBoostQueryValidator
18315
+ ]);
18021
18316
  var PaginatedBoostsValidator = PaginationResponseValidator.extend({
18022
18317
  records: BoostValidator.array()
18023
18318
  });
@@ -18073,11 +18368,25 @@ var ConsentFlowTermsStatusValidator = z.enum(["live", "stale", "withdrawn"]);
18073
18368
  var ConsentFlowContractValidator = z.object({
18074
18369
  read: z.object({
18075
18370
  anonymize: z.boolean().optional(),
18076
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
18371
+ credentials: z.object({
18372
+ categories: z.record(
18373
+ z.object({
18374
+ required: z.boolean(),
18375
+ defaultEnabled: z.boolean().optional()
18376
+ })
18377
+ ).default({})
18378
+ }).default({}),
18077
18379
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
18078
18380
  }).default({}),
18079
18381
  write: z.object({
18080
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
18382
+ credentials: z.object({
18383
+ categories: z.record(
18384
+ z.object({
18385
+ required: z.boolean(),
18386
+ defaultEnabled: z.boolean().optional()
18387
+ })
18388
+ ).default({})
18389
+ }).default({}),
18081
18390
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
18082
18391
  }).default({})
18083
18392
  });
@@ -18220,6 +18529,17 @@ var ConsentFlowTransactionValidator = z.object({
18220
18529
  var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
18221
18530
  records: ConsentFlowTransactionValidator.array()
18222
18531
  });
18532
+ var BaseSkillFrameworkQueryValidator = z.object({
18533
+ id: StringQuery,
18534
+ name: StringQuery,
18535
+ description: StringQuery,
18536
+ sourceURI: StringQuery,
18537
+ status: StringQuery
18538
+ }).partial();
18539
+ var SkillFrameworkQueryValidator = z.union([
18540
+ z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
18541
+ BaseSkillFrameworkQueryValidator
18542
+ ]);
18223
18543
  var ContractCredentialValidator = z.object({
18224
18544
  credentialUri: z.string(),
18225
18545
  termsUri: z.string(),
@@ -18398,31 +18718,55 @@ var IssueInboxSigningAuthorityValidator = z.object({
18398
18718
  });
18399
18719
  var IssueInboxCredentialValidator = z.object({
18400
18720
  recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
18401
- 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."),
18721
+ credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
18722
+ "The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
18723
+ ),
18402
18724
  configuration: z.object({
18403
- 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."),
18725
+ signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
18726
+ "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."
18727
+ ),
18404
18728
  webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
18405
18729
  expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
18406
18730
  delivery: z.object({
18407
- 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."),
18731
+ suppress: z.boolean().optional().default(false).describe(
18732
+ "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."
18733
+ ),
18408
18734
  template: z.object({
18409
- 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."),
18735
+ id: z.enum(["universal-inbox-claim"]).optional().describe(
18736
+ "The template ID to use for the credential delivery. If not provided, the default template will be used."
18737
+ ),
18410
18738
  model: z.object({
18411
18739
  issuer: z.object({
18412
- name: z.string().optional().describe('The name of the organization (e.g., "State University").'),
18740
+ name: z.string().optional().describe(
18741
+ 'The name of the organization (e.g., "State University").'
18742
+ ),
18413
18743
  logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
18414
18744
  }).optional(),
18415
18745
  credential: z.object({
18416
- name: z.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),
18417
- type: z.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')
18746
+ name: z.string().optional().describe(
18747
+ 'The name of the credential (e.g., "Bachelor of Science").'
18748
+ ),
18749
+ type: z.string().optional().describe(
18750
+ 'The type of the credential (e.g., "degree", "certificate").'
18751
+ )
18418
18752
  }).optional(),
18419
18753
  recipient: z.object({
18420
- name: z.string().optional().describe('The name of the recipient (e.g., "John Doe").')
18754
+ name: z.string().optional().describe(
18755
+ 'The name of the recipient (e.g., "John Doe").'
18756
+ )
18421
18757
  }).optional()
18422
- }).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.")
18423
- }).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")
18424
- }).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.")
18425
- }).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")
18758
+ }).describe(
18759
+ "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."
18760
+ )
18761
+ }).optional().describe(
18762
+ "The template to use for the credential delivery. If not provided, the default template will be used."
18763
+ )
18764
+ }).optional().describe(
18765
+ "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."
18766
+ )
18767
+ }).optional().describe(
18768
+ "Configuration for the credential issuance. If not provided, the default configuration will be used."
18769
+ )
18426
18770
  });
18427
18771
  var IssueInboxCredentialResponseValidator = z.object({
18428
18772
  issuanceId: z.string(),
@@ -18484,6 +18828,191 @@ var ClaimTokenValidator = z.object({
18484
18828
  expiresAt: z.string(),
18485
18829
  used: z.boolean()
18486
18830
  });
18831
+ var TagValidator = z.object({
18832
+ id: z.string(),
18833
+ name: z.string().min(1),
18834
+ slug: z.string().min(1),
18835
+ createdAt: z.string().optional(),
18836
+ updatedAt: z.string().optional()
18837
+ });
18838
+ var SkillStatusEnum = z.enum(["active", "archived"]);
18839
+ var SkillValidator = z.object({
18840
+ id: z.string(),
18841
+ statement: z.string(),
18842
+ description: z.string().optional(),
18843
+ code: z.string().optional(),
18844
+ icon: z.string().optional(),
18845
+ type: z.string().default("skill"),
18846
+ status: SkillStatusEnum.default("active"),
18847
+ frameworkId: z.string().optional(),
18848
+ createdAt: z.string().optional(),
18849
+ updatedAt: z.string().optional()
18850
+ });
18851
+ var BaseSkillQueryValidator = z.object({
18852
+ id: StringQuery,
18853
+ statement: StringQuery,
18854
+ description: StringQuery,
18855
+ code: StringQuery,
18856
+ type: StringQuery,
18857
+ status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
18858
+ }).partial();
18859
+ var SkillQueryValidator = z.union([
18860
+ z.object({
18861
+ $or: BaseSkillQueryValidator.array()
18862
+ }),
18863
+ BaseSkillQueryValidator
18864
+ ]);
18865
+ var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
18866
+ var SkillFrameworkValidator = z.object({
18867
+ id: z.string(),
18868
+ name: z.string(),
18869
+ description: z.string().optional(),
18870
+ image: z.string().optional(),
18871
+ sourceURI: z.string().url().optional(),
18872
+ status: SkillFrameworkStatusEnum.default("active"),
18873
+ createdAt: z.string().optional(),
18874
+ updatedAt: z.string().optional()
18875
+ });
18876
+ var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
18877
+ records: SkillFrameworkValidator.array()
18878
+ });
18879
+ var SkillTreeNodeValidator = SkillValidator.extend({
18880
+ children: z.array(z.lazy(() => SkillTreeNodeValidator)),
18881
+ hasChildren: z.boolean(),
18882
+ childrenCursor: z.string().nullable().optional()
18883
+ }).openapi({ ref: "SkillTreeNode" });
18884
+ var PaginatedSkillTreeValidator = z.object({
18885
+ hasMore: z.boolean(),
18886
+ cursor: z.string().nullable(),
18887
+ records: z.array(SkillTreeNodeValidator)
18888
+ });
18889
+ var SkillTreeNodeInputValidator = z.lazy(
18890
+ () => z.object({
18891
+ id: z.string().optional(),
18892
+ statement: z.string(),
18893
+ description: z.string().optional(),
18894
+ code: z.string().optional(),
18895
+ icon: z.string().optional(),
18896
+ type: z.string().optional(),
18897
+ status: SkillStatusEnum.optional(),
18898
+ children: z.array(SkillTreeNodeInputValidator).optional()
18899
+ })
18900
+ ).openapi({ ref: "SkillTreeNodeInput" });
18901
+ var LinkProviderFrameworkInputValidator = z.object({
18902
+ frameworkId: z.string()
18903
+ });
18904
+ var CreateManagedFrameworkInputValidator = z.object({
18905
+ id: z.string().optional(),
18906
+ name: z.string().min(1),
18907
+ description: z.string().optional(),
18908
+ image: z.string().optional(),
18909
+ sourceURI: z.string().url().optional(),
18910
+ status: SkillFrameworkStatusEnum.optional(),
18911
+ skills: z.array(SkillTreeNodeInputValidator).optional(),
18912
+ boostUris: z.array(z.string()).optional()
18913
+ });
18914
+ var UpdateFrameworkInputValidator = z.object({
18915
+ id: z.string(),
18916
+ name: z.string().min(1).optional(),
18917
+ description: z.string().optional(),
18918
+ image: z.string().optional(),
18919
+ sourceURI: z.string().url().optional(),
18920
+ status: SkillFrameworkStatusEnum.optional()
18921
+ }).refine(
18922
+ (data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
18923
+ {
18924
+ message: "At least one field must be provided to update",
18925
+ path: ["name"]
18926
+ }
18927
+ );
18928
+ var DeleteFrameworkInputValidator = z.object({ id: z.string() });
18929
+ var CreateManagedFrameworkBatchInputValidator = z.object({
18930
+ frameworks: z.array(
18931
+ CreateManagedFrameworkInputValidator.extend({
18932
+ skills: z.array(SkillTreeNodeInputValidator).optional()
18933
+ })
18934
+ ).min(1)
18935
+ });
18936
+ var SkillFrameworkAdminInputValidator = z.object({
18937
+ frameworkId: z.string(),
18938
+ profileId: z.string()
18939
+ });
18940
+ var SkillFrameworkIdInputValidator = z.object({ frameworkId: z.string() });
18941
+ var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
18942
+ var SyncFrameworkInputValidator = z.object({ id: z.string() });
18943
+ var AddTagInputValidator = z.object({
18944
+ slug: z.string().min(1),
18945
+ name: z.string().min(1)
18946
+ });
18947
+ var CreateSkillInputValidator = z.object({
18948
+ frameworkId: z.string(),
18949
+ skill: SkillTreeNodeInputValidator,
18950
+ parentId: z.string().nullable().optional()
18951
+ });
18952
+ var UpdateSkillInputValidator = z.object({
18953
+ frameworkId: z.string(),
18954
+ id: z.string(),
18955
+ statement: z.string().optional(),
18956
+ description: z.string().optional(),
18957
+ code: z.string().optional(),
18958
+ icon: z.string().optional(),
18959
+ type: z.string().optional(),
18960
+ status: SkillStatusEnum.optional()
18961
+ }).refine(
18962
+ (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,
18963
+ {
18964
+ message: "At least one field must be provided to update a skill",
18965
+ path: ["statement"]
18966
+ }
18967
+ );
18968
+ var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
18969
+ var DeleteSkillInputValidator = z.object({
18970
+ frameworkId: z.string(),
18971
+ id: z.string(),
18972
+ strategy: SkillDeletionStrategyValidator.optional().default("reparent")
18973
+ });
18974
+ var CreateSkillsBatchInputValidator = z.object({
18975
+ frameworkId: z.string(),
18976
+ skills: z.array(SkillTreeNodeInputValidator).min(1),
18977
+ parentId: z.string().nullable().optional()
18978
+ });
18979
+ var ReplaceSkillFrameworkSkillsInputValidator = z.object({
18980
+ frameworkId: z.string(),
18981
+ skills: z.array(SkillTreeNodeInputValidator).min(0)
18982
+ });
18983
+ var ReplaceSkillFrameworkSkillsResultValidator = z.object({
18984
+ created: z.number().int().min(0),
18985
+ updated: z.number().int().min(0),
18986
+ deleted: z.number().int().min(0),
18987
+ unchanged: z.number().int().min(0),
18988
+ total: z.number().int().min(0)
18989
+ });
18990
+ var CountSkillsInputValidator = z.object({
18991
+ frameworkId: z.string(),
18992
+ skillId: z.string().optional(),
18993
+ recursive: z.boolean().optional().default(false),
18994
+ onlyCountCompetencies: z.boolean().optional().default(false)
18995
+ });
18996
+ var CountSkillsResultValidator = z.object({
18997
+ count: z.number().int().min(0)
18998
+ });
18999
+ var GetFullSkillTreeInputValidator = z.object({
19000
+ frameworkId: z.string()
19001
+ });
19002
+ var GetFullSkillTreeResultValidator = z.object({
19003
+ skills: z.array(SkillTreeNodeValidator)
19004
+ });
19005
+ var GetSkillPathInputValidator = z.object({
19006
+ frameworkId: z.string(),
19007
+ skillId: z.string()
19008
+ });
19009
+ var GetSkillPathResultValidator = z.object({
19010
+ path: z.array(SkillValidator)
19011
+ });
19012
+ var FrameworkWithSkillsValidator = z.object({
19013
+ framework: SkillFrameworkValidator,
19014
+ skills: PaginatedSkillTreeValidator
19015
+ });
18487
19016
 
18488
19017
  // src/helpers.ts
18489
19018
  var import_json_stringify_deterministic = __toESM(require_lib());