@learncard/react 2.8.54 → 2.8.57

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.
Files changed (113) hide show
  1. package/dist/cjs/{BoostGenericCard-1b528dd6.js → BoostGenericCard-afe71d21.js} +3 -3
  2. package/dist/cjs/{BoostGenericCard-1b528dd6.js.map → BoostGenericCard-afe71d21.js.map} +1 -1
  3. package/dist/cjs/{BoostSmallCard-f3415f10.js → BoostSmallCard-dd1cbd51.js} +2 -2
  4. package/dist/cjs/{BoostSmallCard-f3415f10.js.map → BoostSmallCard-dd1cbd51.js.map} +1 -1
  5. package/dist/cjs/{CertDisplayCardSkillsCount-d5650805.js → CertDisplayCardSkillsCount-fdf378ba.js} +2 -2
  6. package/dist/cjs/{CertDisplayCardSkillsCount-d5650805.js.map → CertDisplayCardSkillsCount-fdf378ba.js.map} +1 -1
  7. package/dist/cjs/{CertificateDisplayCard-84615efb.js → CertificateDisplayCard-2e03854a.js} +8 -5
  8. package/dist/cjs/CertificateDisplayCard-2e03854a.js.map +1 -0
  9. package/dist/cjs/{MeritBadgeDisplayCard-0509fdf9.js → MeritBadgeDisplayCard-34d49d60.js} +7 -4
  10. package/dist/cjs/MeritBadgeDisplayCard-34d49d60.js.map +1 -0
  11. package/dist/cjs/{MeritBadgeSkillsCount-11d1a1f1.js → MeritBadgeSkillsCount-c0fad39e.js} +2 -2
  12. package/dist/cjs/{MeritBadgeSkillsCount-11d1a1f1.js.map → MeritBadgeSkillsCount-c0fad39e.js.map} +1 -1
  13. package/dist/cjs/{SchoolIDCard-da911949.js → SchoolIDCard-39a099d2.js} +1184 -3
  14. package/dist/cjs/SchoolIDCard-39a099d2.js.map +1 -0
  15. package/dist/cjs/{ThreeDotVertical-e39ac5df.js → ThreeDotVertical-1d221fc8.js} +10 -10
  16. package/dist/cjs/ThreeDotVertical-1d221fc8.js.map +1 -0
  17. package/dist/cjs/{VCCard-eca5f8c0.js → VCCard-b49cc67a.js} +3 -3
  18. package/dist/cjs/{VCCard-eca5f8c0.js.map → VCCard-b49cc67a.js.map} +1 -1
  19. package/dist/cjs/{VCDisplayBackFace-bcc73ae7.js → VCDisplayBackFace-9783ffbb.js} +3 -3
  20. package/dist/cjs/{VCDisplayBackFace-bcc73ae7.js.map → VCDisplayBackFace-9783ffbb.js.map} +1 -1
  21. package/dist/cjs/{VCDisplayCard-f54d8a34.js → VCDisplayCard-8bfdb4e1.js} +3 -3
  22. package/dist/cjs/{VCDisplayCard-f54d8a34.js.map → VCDisplayCard-8bfdb4e1.js.map} +1 -1
  23. package/dist/cjs/{VCDisplayCard2-9e48ec39.js → VCDisplayCard2-455a7052.js} +5 -6
  24. package/dist/cjs/{VCDisplayCard2-9e48ec39.js.map → VCDisplayCard2-455a7052.js.map} +1 -1
  25. package/dist/cjs/{VCVerificationPill-add1229a.js → VCVerificationPill-657635e5.js} +2 -2
  26. package/dist/cjs/{VCVerificationPill-add1229a.js.map → VCVerificationPill-657635e5.js.map} +1 -1
  27. package/dist/cjs/{credential.helpers-46ca268a.js → credential.helpers-58ab8ce7.js} +2 -2
  28. package/dist/cjs/{credential.helpers-46ca268a.js.map → credential.helpers-58ab8ce7.js.map} +1 -1
  29. package/dist/cjs/index.js +15 -16
  30. package/dist/cjs/index.js.map +1 -1
  31. package/dist/cjs/index13.js +15 -16
  32. package/dist/cjs/index13.js.map +1 -1
  33. package/dist/cjs/index21.js +4 -4
  34. package/dist/cjs/index3.js +5 -5
  35. package/dist/cjs/index30.js +1 -2
  36. package/dist/cjs/index30.js.map +1 -1
  37. package/dist/cjs/index36.js +1 -1
  38. package/dist/cjs/index38.js +10 -11
  39. package/dist/cjs/index38.js.map +1 -1
  40. package/dist/cjs/index39.js +4 -4
  41. package/dist/cjs/index4.js +2 -2
  42. package/dist/cjs/index40.js +5 -5
  43. package/dist/cjs/index41.js +6 -7
  44. package/dist/cjs/index41.js.map +1 -1
  45. package/dist/cjs/index42.js +1 -1
  46. package/dist/cjs/index45.js +2 -2
  47. package/dist/cjs/index6.js +4 -4
  48. package/dist/cjs/{types.esm-be352c42.js → types.esm-2bdf95c0.js} +264 -17
  49. package/dist/cjs/types.esm-2bdf95c0.js.map +1 -0
  50. package/dist/esm/{BoostGenericCard-7524a298.js → BoostGenericCard-a0ab8c42.js} +3 -3
  51. package/dist/esm/{BoostGenericCard-7524a298.js.map → BoostGenericCard-a0ab8c42.js.map} +1 -1
  52. package/dist/esm/{BoostSmallCard-e0afec44.js → BoostSmallCard-42980ebc.js} +2 -2
  53. package/dist/esm/{BoostSmallCard-e0afec44.js.map → BoostSmallCard-42980ebc.js.map} +1 -1
  54. package/dist/esm/{CertDisplayCardSkillsCount-7ddcd120.js → CertDisplayCardSkillsCount-b54ec3da.js} +2 -2
  55. package/dist/esm/{CertDisplayCardSkillsCount-7ddcd120.js.map → CertDisplayCardSkillsCount-b54ec3da.js.map} +1 -1
  56. package/dist/esm/{CertificateDisplayCard-3215eccc.js → CertificateDisplayCard-7ed890d5.js} +8 -5
  57. package/dist/esm/CertificateDisplayCard-7ed890d5.js.map +1 -0
  58. package/dist/esm/{MeritBadgeDisplayCard-4a34119e.js → MeritBadgeDisplayCard-15ea9ba7.js} +7 -4
  59. package/dist/esm/MeritBadgeDisplayCard-15ea9ba7.js.map +1 -0
  60. package/dist/esm/{MeritBadgeSkillsCount-2b4409a3.js → MeritBadgeSkillsCount-ad28942b.js} +2 -2
  61. package/dist/esm/{MeritBadgeSkillsCount-2b4409a3.js.map → MeritBadgeSkillsCount-ad28942b.js.map} +1 -1
  62. package/dist/esm/{SchoolIDCard-aedfa350.js → SchoolIDCard-752092fb.js} +1183 -2
  63. package/dist/esm/SchoolIDCard-752092fb.js.map +1 -0
  64. package/dist/esm/{ThreeDotVertical-e3144ad0.js → ThreeDotVertical-08294477.js} +10 -10
  65. package/dist/esm/ThreeDotVertical-08294477.js.map +1 -0
  66. package/dist/esm/{VCCard-8b9e1fe8.js → VCCard-4b7f73ca.js} +3 -3
  67. package/dist/esm/{VCCard-8b9e1fe8.js.map → VCCard-4b7f73ca.js.map} +1 -1
  68. package/dist/esm/{VCDisplayBackFace-60ca7b99.js → VCDisplayBackFace-3dcee2b3.js} +3 -3
  69. package/dist/esm/{VCDisplayBackFace-60ca7b99.js.map → VCDisplayBackFace-3dcee2b3.js.map} +1 -1
  70. package/dist/esm/{VCDisplayCard-43f2fa7d.js → VCDisplayCard-6aded764.js} +3 -3
  71. package/dist/esm/{VCDisplayCard-43f2fa7d.js.map → VCDisplayCard-6aded764.js.map} +1 -1
  72. package/dist/esm/{VCDisplayCard2-1d4957d9.js → VCDisplayCard2-f0c627c2.js} +5 -6
  73. package/dist/esm/{VCDisplayCard2-1d4957d9.js.map → VCDisplayCard2-f0c627c2.js.map} +1 -1
  74. package/dist/esm/{VCVerificationPill-52974d83.js → VCVerificationPill-9ce269be.js} +2 -2
  75. package/dist/esm/{VCVerificationPill-52974d83.js.map → VCVerificationPill-9ce269be.js.map} +1 -1
  76. package/dist/esm/{credential.helpers-251e3960.js → credential.helpers-b69b3a17.js} +2 -2
  77. package/dist/esm/{credential.helpers-251e3960.js.map → credential.helpers-b69b3a17.js.map} +1 -1
  78. package/dist/esm/index.js +15 -16
  79. package/dist/esm/index.js.map +1 -1
  80. package/dist/esm/index13.js +15 -16
  81. package/dist/esm/index13.js.map +1 -1
  82. package/dist/esm/index21.js +4 -4
  83. package/dist/esm/index3.js +5 -5
  84. package/dist/esm/index30.js +1 -2
  85. package/dist/esm/index30.js.map +1 -1
  86. package/dist/esm/index36.js +1 -1
  87. package/dist/esm/index38.js +10 -11
  88. package/dist/esm/index38.js.map +1 -1
  89. package/dist/esm/index39.js +4 -4
  90. package/dist/esm/index4.js +2 -2
  91. package/dist/esm/index40.js +5 -5
  92. package/dist/esm/index41.js +6 -7
  93. package/dist/esm/index41.js.map +1 -1
  94. package/dist/esm/index42.js +1 -1
  95. package/dist/esm/index45.js +2 -2
  96. package/dist/esm/index6.js +4 -4
  97. package/dist/esm/{types.esm-923eb477.js → types.esm-00c9f5ab.js} +264 -17
  98. package/dist/esm/types.esm-00c9f5ab.js.map +1 -0
  99. package/package.json +3 -3
  100. package/dist/cjs/CertificateDisplayCard-84615efb.js.map +0 -1
  101. package/dist/cjs/MeritBadgeDisplayCard-0509fdf9.js.map +0 -1
  102. package/dist/cjs/SchoolIDCard-da911949.js.map +0 -1
  103. package/dist/cjs/ThreeDotVertical-e39ac5df.js.map +0 -1
  104. package/dist/cjs/index-838fa72c.js +0 -1186
  105. package/dist/cjs/index-838fa72c.js.map +0 -1
  106. package/dist/cjs/types.esm-be352c42.js.map +0 -1
  107. package/dist/esm/CertificateDisplayCard-3215eccc.js.map +0 -1
  108. package/dist/esm/MeritBadgeDisplayCard-4a34119e.js.map +0 -1
  109. package/dist/esm/SchoolIDCard-aedfa350.js.map +0 -1
  110. package/dist/esm/ThreeDotVertical-e3144ad0.js.map +0 -1
  111. package/dist/esm/index-4fa491c1.js +0 -1184
  112. package/dist/esm/index-4fa491c1.js.map +0 -1
  113. package/dist/esm/types.esm-923eb477.js.map +0 -1
@@ -4781,7 +4781,14 @@ var RegExpValidator = z.instanceof(RegExp).or(
4781
4781
  }
4782
4782
  })
4783
4783
  );
4784
- var StringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
4784
+ var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
4785
+ var StringQuery = z.union([
4786
+ BaseStringQuery,
4787
+ z.object({
4788
+ $or: BaseStringQuery.array()
4789
+ })
4790
+ ]);
4791
+ extendZodWithOpenApi(z);
4785
4792
  var LCNProfileDisplayValidator = z.object({
4786
4793
  backgroundColor: z.string().optional(),
4787
4794
  backgroundImage: z.string().optional(),
@@ -4939,7 +4946,7 @@ var BoostValidator = z.object({
4939
4946
  claimPermissions: BoostPermissionsValidator.optional(),
4940
4947
  allowAnyoneToCreateChildren: z.boolean().optional()
4941
4948
  });
4942
- z.object({
4949
+ var BaseBoostQueryValidator = z.object({
4943
4950
  uri: StringQuery,
4944
4951
  name: StringQuery,
4945
4952
  type: StringQuery,
@@ -4948,6 +4955,12 @@ z.object({
4948
4955
  status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
4949
4956
  autoConnectRecipients: z.boolean()
4950
4957
  }).partial();
4958
+ z.union([
4959
+ z.object({
4960
+ $or: BaseBoostQueryValidator.array()
4961
+ }),
4962
+ BaseBoostQueryValidator
4963
+ ]);
4951
4964
  PaginationResponseValidator.extend({
4952
4965
  records: BoostValidator.array()
4953
4966
  });
@@ -5003,11 +5016,25 @@ var ConsentFlowTermsStatusValidator = z.enum(["live", "stale", "withdrawn"]);
5003
5016
  var ConsentFlowContractValidator = z.object({
5004
5017
  read: z.object({
5005
5018
  anonymize: z.boolean().optional(),
5006
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
5019
+ credentials: z.object({
5020
+ categories: z.record(
5021
+ z.object({
5022
+ required: z.boolean(),
5023
+ defaultEnabled: z.boolean().optional()
5024
+ })
5025
+ ).default({})
5026
+ }).default({}),
5007
5027
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
5008
5028
  }).default({}),
5009
5029
  write: z.object({
5010
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
5030
+ credentials: z.object({
5031
+ categories: z.record(
5032
+ z.object({
5033
+ required: z.boolean(),
5034
+ defaultEnabled: z.boolean().optional()
5035
+ })
5036
+ ).default({})
5037
+ }).default({}),
5011
5038
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
5012
5039
  }).default({})
5013
5040
  });
@@ -5150,6 +5177,17 @@ var ConsentFlowTransactionValidator = z.object({
5150
5177
  PaginationResponseValidator.extend({
5151
5178
  records: ConsentFlowTransactionValidator.array()
5152
5179
  });
5180
+ var BaseSkillFrameworkQueryValidator = z.object({
5181
+ id: StringQuery,
5182
+ name: StringQuery,
5183
+ description: StringQuery,
5184
+ sourceURI: StringQuery,
5185
+ status: StringQuery
5186
+ }).partial();
5187
+ z.union([
5188
+ z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
5189
+ BaseSkillFrameworkQueryValidator
5190
+ ]);
5153
5191
  var ContractCredentialValidator = z.object({
5154
5192
  credentialUri: z.string(),
5155
5193
  termsUri: z.string(),
@@ -5328,31 +5366,55 @@ var IssueInboxSigningAuthorityValidator = z.object({
5328
5366
  });
5329
5367
  z.object({
5330
5368
  recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
5331
- 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."),
5369
+ credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
5370
+ "The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
5371
+ ),
5332
5372
  configuration: z.object({
5333
- 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."),
5373
+ signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
5374
+ "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."
5375
+ ),
5334
5376
  webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
5335
5377
  expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
5336
5378
  delivery: z.object({
5337
- 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."),
5379
+ suppress: z.boolean().optional().default(false).describe(
5380
+ "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."
5381
+ ),
5338
5382
  template: z.object({
5339
- 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."),
5383
+ id: z.enum(["universal-inbox-claim"]).optional().describe(
5384
+ "The template ID to use for the credential delivery. If not provided, the default template will be used."
5385
+ ),
5340
5386
  model: z.object({
5341
5387
  issuer: z.object({
5342
- name: z.string().optional().describe('The name of the organization (e.g., "State University").'),
5388
+ name: z.string().optional().describe(
5389
+ 'The name of the organization (e.g., "State University").'
5390
+ ),
5343
5391
  logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
5344
5392
  }).optional(),
5345
5393
  credential: z.object({
5346
- name: z.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),
5347
- type: z.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')
5394
+ name: z.string().optional().describe(
5395
+ 'The name of the credential (e.g., "Bachelor of Science").'
5396
+ ),
5397
+ type: z.string().optional().describe(
5398
+ 'The type of the credential (e.g., "degree", "certificate").'
5399
+ )
5348
5400
  }).optional(),
5349
5401
  recipient: z.object({
5350
- name: z.string().optional().describe('The name of the recipient (e.g., "John Doe").')
5402
+ name: z.string().optional().describe(
5403
+ 'The name of the recipient (e.g., "John Doe").'
5404
+ )
5351
5405
  }).optional()
5352
- }).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.")
5353
- }).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")
5354
- }).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.")
5355
- }).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")
5406
+ }).describe(
5407
+ "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."
5408
+ )
5409
+ }).optional().describe(
5410
+ "The template to use for the credential delivery. If not provided, the default template will be used."
5411
+ )
5412
+ }).optional().describe(
5413
+ "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."
5414
+ )
5415
+ }).optional().describe(
5416
+ "Configuration for the credential issuance. If not provided, the default configuration will be used."
5417
+ )
5356
5418
  });
5357
5419
  z.object({
5358
5420
  issuanceId: z.string(),
@@ -5414,6 +5476,191 @@ z.object({
5414
5476
  expiresAt: z.string(),
5415
5477
  used: z.boolean()
5416
5478
  });
5479
+ z.object({
5480
+ id: z.string(),
5481
+ name: z.string().min(1),
5482
+ slug: z.string().min(1),
5483
+ createdAt: z.string().optional(),
5484
+ updatedAt: z.string().optional()
5485
+ });
5486
+ var SkillStatusEnum = z.enum(["active", "archived"]);
5487
+ var SkillValidator = z.object({
5488
+ id: z.string(),
5489
+ statement: z.string(),
5490
+ description: z.string().optional(),
5491
+ code: z.string().optional(),
5492
+ icon: z.string().optional(),
5493
+ type: z.string().default("skill"),
5494
+ status: SkillStatusEnum.default("active"),
5495
+ frameworkId: z.string().optional(),
5496
+ createdAt: z.string().optional(),
5497
+ updatedAt: z.string().optional()
5498
+ });
5499
+ var BaseSkillQueryValidator = z.object({
5500
+ id: StringQuery,
5501
+ statement: StringQuery,
5502
+ description: StringQuery,
5503
+ code: StringQuery,
5504
+ type: StringQuery,
5505
+ status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
5506
+ }).partial();
5507
+ z.union([
5508
+ z.object({
5509
+ $or: BaseSkillQueryValidator.array()
5510
+ }),
5511
+ BaseSkillQueryValidator
5512
+ ]);
5513
+ var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
5514
+ var SkillFrameworkValidator = z.object({
5515
+ id: z.string(),
5516
+ name: z.string(),
5517
+ description: z.string().optional(),
5518
+ image: z.string().optional(),
5519
+ sourceURI: z.string().url().optional(),
5520
+ status: SkillFrameworkStatusEnum.default("active"),
5521
+ createdAt: z.string().optional(),
5522
+ updatedAt: z.string().optional()
5523
+ });
5524
+ PaginationResponseValidator.extend({
5525
+ records: SkillFrameworkValidator.array()
5526
+ });
5527
+ var SkillTreeNodeValidator = SkillValidator.extend({
5528
+ children: z.array(z.lazy(() => SkillTreeNodeValidator)),
5529
+ hasChildren: z.boolean(),
5530
+ childrenCursor: z.string().nullable().optional()
5531
+ }).openapi({ ref: "SkillTreeNode" });
5532
+ var PaginatedSkillTreeValidator = z.object({
5533
+ hasMore: z.boolean(),
5534
+ cursor: z.string().nullable(),
5535
+ records: z.array(SkillTreeNodeValidator)
5536
+ });
5537
+ var SkillTreeNodeInputValidator = z.lazy(
5538
+ () => z.object({
5539
+ id: z.string().optional(),
5540
+ statement: z.string(),
5541
+ description: z.string().optional(),
5542
+ code: z.string().optional(),
5543
+ icon: z.string().optional(),
5544
+ type: z.string().optional(),
5545
+ status: SkillStatusEnum.optional(),
5546
+ children: z.array(SkillTreeNodeInputValidator).optional()
5547
+ })
5548
+ ).openapi({ ref: "SkillTreeNodeInput" });
5549
+ z.object({
5550
+ frameworkId: z.string()
5551
+ });
5552
+ var CreateManagedFrameworkInputValidator = z.object({
5553
+ id: z.string().optional(),
5554
+ name: z.string().min(1),
5555
+ description: z.string().optional(),
5556
+ image: z.string().optional(),
5557
+ sourceURI: z.string().url().optional(),
5558
+ status: SkillFrameworkStatusEnum.optional(),
5559
+ skills: z.array(SkillTreeNodeInputValidator).optional(),
5560
+ boostUris: z.array(z.string()).optional()
5561
+ });
5562
+ z.object({
5563
+ id: z.string(),
5564
+ name: z.string().min(1).optional(),
5565
+ description: z.string().optional(),
5566
+ image: z.string().optional(),
5567
+ sourceURI: z.string().url().optional(),
5568
+ status: SkillFrameworkStatusEnum.optional()
5569
+ }).refine(
5570
+ (data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
5571
+ {
5572
+ message: "At least one field must be provided to update",
5573
+ path: ["name"]
5574
+ }
5575
+ );
5576
+ z.object({ id: z.string() });
5577
+ z.object({
5578
+ frameworks: z.array(
5579
+ CreateManagedFrameworkInputValidator.extend({
5580
+ skills: z.array(SkillTreeNodeInputValidator).optional()
5581
+ })
5582
+ ).min(1)
5583
+ });
5584
+ z.object({
5585
+ frameworkId: z.string(),
5586
+ profileId: z.string()
5587
+ });
5588
+ z.object({ frameworkId: z.string() });
5589
+ LCNProfileValidator.array();
5590
+ z.object({ id: z.string() });
5591
+ z.object({
5592
+ slug: z.string().min(1),
5593
+ name: z.string().min(1)
5594
+ });
5595
+ z.object({
5596
+ frameworkId: z.string(),
5597
+ skill: SkillTreeNodeInputValidator,
5598
+ parentId: z.string().nullable().optional()
5599
+ });
5600
+ z.object({
5601
+ frameworkId: z.string(),
5602
+ id: z.string(),
5603
+ statement: z.string().optional(),
5604
+ description: z.string().optional(),
5605
+ code: z.string().optional(),
5606
+ icon: z.string().optional(),
5607
+ type: z.string().optional(),
5608
+ status: SkillStatusEnum.optional()
5609
+ }).refine(
5610
+ (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,
5611
+ {
5612
+ message: "At least one field must be provided to update a skill",
5613
+ path: ["statement"]
5614
+ }
5615
+ );
5616
+ var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
5617
+ z.object({
5618
+ frameworkId: z.string(),
5619
+ id: z.string(),
5620
+ strategy: SkillDeletionStrategyValidator.optional().default("reparent")
5621
+ });
5622
+ z.object({
5623
+ frameworkId: z.string(),
5624
+ skills: z.array(SkillTreeNodeInputValidator).min(1),
5625
+ parentId: z.string().nullable().optional()
5626
+ });
5627
+ z.object({
5628
+ frameworkId: z.string(),
5629
+ skills: z.array(SkillTreeNodeInputValidator).min(0)
5630
+ });
5631
+ z.object({
5632
+ created: z.number().int().min(0),
5633
+ updated: z.number().int().min(0),
5634
+ deleted: z.number().int().min(0),
5635
+ unchanged: z.number().int().min(0),
5636
+ total: z.number().int().min(0)
5637
+ });
5638
+ z.object({
5639
+ frameworkId: z.string(),
5640
+ skillId: z.string().optional(),
5641
+ recursive: z.boolean().optional().default(false),
5642
+ onlyCountCompetencies: z.boolean().optional().default(false)
5643
+ });
5644
+ z.object({
5645
+ count: z.number().int().min(0)
5646
+ });
5647
+ z.object({
5648
+ frameworkId: z.string()
5649
+ });
5650
+ z.object({
5651
+ skills: z.array(SkillTreeNodeValidator)
5652
+ });
5653
+ z.object({
5654
+ frameworkId: z.string(),
5655
+ skillId: z.string()
5656
+ });
5657
+ z.object({
5658
+ path: z.array(SkillValidator)
5659
+ });
5660
+ z.object({
5661
+ framework: SkillFrameworkValidator,
5662
+ skills: PaginatedSkillTreeValidator
5663
+ });
5417
5664
 
5418
5665
  exports.VerificationStatusEnum = VerificationStatusEnum;
5419
- //# sourceMappingURL=types.esm-be352c42.js.map
5666
+ //# sourceMappingURL=types.esm-2bdf95c0.js.map