@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
@@ -4779,7 +4779,14 @@ var RegExpValidator = z.instanceof(RegExp).or(
4779
4779
  }
4780
4780
  })
4781
4781
  );
4782
- var StringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
4782
+ var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
4783
+ var StringQuery = z.union([
4784
+ BaseStringQuery,
4785
+ z.object({
4786
+ $or: BaseStringQuery.array()
4787
+ })
4788
+ ]);
4789
+ extendZodWithOpenApi(z);
4783
4790
  var LCNProfileDisplayValidator = z.object({
4784
4791
  backgroundColor: z.string().optional(),
4785
4792
  backgroundImage: z.string().optional(),
@@ -4937,7 +4944,7 @@ var BoostValidator = z.object({
4937
4944
  claimPermissions: BoostPermissionsValidator.optional(),
4938
4945
  allowAnyoneToCreateChildren: z.boolean().optional()
4939
4946
  });
4940
- z.object({
4947
+ var BaseBoostQueryValidator = z.object({
4941
4948
  uri: StringQuery,
4942
4949
  name: StringQuery,
4943
4950
  type: StringQuery,
@@ -4946,6 +4953,12 @@ z.object({
4946
4953
  status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
4947
4954
  autoConnectRecipients: z.boolean()
4948
4955
  }).partial();
4956
+ z.union([
4957
+ z.object({
4958
+ $or: BaseBoostQueryValidator.array()
4959
+ }),
4960
+ BaseBoostQueryValidator
4961
+ ]);
4949
4962
  PaginationResponseValidator.extend({
4950
4963
  records: BoostValidator.array()
4951
4964
  });
@@ -5001,11 +5014,25 @@ var ConsentFlowTermsStatusValidator = z.enum(["live", "stale", "withdrawn"]);
5001
5014
  var ConsentFlowContractValidator = z.object({
5002
5015
  read: z.object({
5003
5016
  anonymize: z.boolean().optional(),
5004
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
5017
+ credentials: z.object({
5018
+ categories: z.record(
5019
+ z.object({
5020
+ required: z.boolean(),
5021
+ defaultEnabled: z.boolean().optional()
5022
+ })
5023
+ ).default({})
5024
+ }).default({}),
5005
5025
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
5006
5026
  }).default({}),
5007
5027
  write: z.object({
5008
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
5028
+ credentials: z.object({
5029
+ categories: z.record(
5030
+ z.object({
5031
+ required: z.boolean(),
5032
+ defaultEnabled: z.boolean().optional()
5033
+ })
5034
+ ).default({})
5035
+ }).default({}),
5009
5036
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
5010
5037
  }).default({})
5011
5038
  });
@@ -5148,6 +5175,17 @@ var ConsentFlowTransactionValidator = z.object({
5148
5175
  PaginationResponseValidator.extend({
5149
5176
  records: ConsentFlowTransactionValidator.array()
5150
5177
  });
5178
+ var BaseSkillFrameworkQueryValidator = z.object({
5179
+ id: StringQuery,
5180
+ name: StringQuery,
5181
+ description: StringQuery,
5182
+ sourceURI: StringQuery,
5183
+ status: StringQuery
5184
+ }).partial();
5185
+ z.union([
5186
+ z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
5187
+ BaseSkillFrameworkQueryValidator
5188
+ ]);
5151
5189
  var ContractCredentialValidator = z.object({
5152
5190
  credentialUri: z.string(),
5153
5191
  termsUri: z.string(),
@@ -5326,31 +5364,55 @@ var IssueInboxSigningAuthorityValidator = z.object({
5326
5364
  });
5327
5365
  z.object({
5328
5366
  recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
5329
- 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."),
5367
+ credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
5368
+ "The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
5369
+ ),
5330
5370
  configuration: z.object({
5331
- 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."),
5371
+ signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
5372
+ "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
+ ),
5332
5374
  webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
5333
5375
  expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
5334
5376
  delivery: z.object({
5335
- 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."),
5377
+ suppress: z.boolean().optional().default(false).describe(
5378
+ "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
+ ),
5336
5380
  template: z.object({
5337
- 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."),
5381
+ id: z.enum(["universal-inbox-claim"]).optional().describe(
5382
+ "The template ID to use for the credential delivery. If not provided, the default template will be used."
5383
+ ),
5338
5384
  model: z.object({
5339
5385
  issuer: z.object({
5340
- name: z.string().optional().describe('The name of the organization (e.g., "State University").'),
5386
+ name: z.string().optional().describe(
5387
+ 'The name of the organization (e.g., "State University").'
5388
+ ),
5341
5389
  logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
5342
5390
  }).optional(),
5343
5391
  credential: z.object({
5344
- name: z.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),
5345
- type: z.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')
5392
+ name: z.string().optional().describe(
5393
+ 'The name of the credential (e.g., "Bachelor of Science").'
5394
+ ),
5395
+ type: z.string().optional().describe(
5396
+ 'The type of the credential (e.g., "degree", "certificate").'
5397
+ )
5346
5398
  }).optional(),
5347
5399
  recipient: z.object({
5348
- name: z.string().optional().describe('The name of the recipient (e.g., "John Doe").')
5400
+ name: z.string().optional().describe(
5401
+ 'The name of the recipient (e.g., "John Doe").'
5402
+ )
5349
5403
  }).optional()
5350
- }).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.")
5351
- }).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")
5352
- }).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.")
5353
- }).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")
5404
+ }).describe(
5405
+ "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."
5406
+ )
5407
+ }).optional().describe(
5408
+ "The template to use for the credential delivery. If not provided, the default template will be used."
5409
+ )
5410
+ }).optional().describe(
5411
+ "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."
5412
+ )
5413
+ }).optional().describe(
5414
+ "Configuration for the credential issuance. If not provided, the default configuration will be used."
5415
+ )
5354
5416
  });
5355
5417
  z.object({
5356
5418
  issuanceId: z.string(),
@@ -5412,6 +5474,191 @@ z.object({
5412
5474
  expiresAt: z.string(),
5413
5475
  used: z.boolean()
5414
5476
  });
5477
+ z.object({
5478
+ id: z.string(),
5479
+ name: z.string().min(1),
5480
+ slug: z.string().min(1),
5481
+ createdAt: z.string().optional(),
5482
+ updatedAt: z.string().optional()
5483
+ });
5484
+ var SkillStatusEnum = z.enum(["active", "archived"]);
5485
+ var SkillValidator = z.object({
5486
+ id: z.string(),
5487
+ statement: z.string(),
5488
+ description: z.string().optional(),
5489
+ code: z.string().optional(),
5490
+ icon: z.string().optional(),
5491
+ type: z.string().default("skill"),
5492
+ status: SkillStatusEnum.default("active"),
5493
+ frameworkId: z.string().optional(),
5494
+ createdAt: z.string().optional(),
5495
+ updatedAt: z.string().optional()
5496
+ });
5497
+ var BaseSkillQueryValidator = z.object({
5498
+ id: StringQuery,
5499
+ statement: StringQuery,
5500
+ description: StringQuery,
5501
+ code: StringQuery,
5502
+ type: StringQuery,
5503
+ status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
5504
+ }).partial();
5505
+ z.union([
5506
+ z.object({
5507
+ $or: BaseSkillQueryValidator.array()
5508
+ }),
5509
+ BaseSkillQueryValidator
5510
+ ]);
5511
+ var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
5512
+ var SkillFrameworkValidator = z.object({
5513
+ id: z.string(),
5514
+ name: z.string(),
5515
+ description: z.string().optional(),
5516
+ image: z.string().optional(),
5517
+ sourceURI: z.string().url().optional(),
5518
+ status: SkillFrameworkStatusEnum.default("active"),
5519
+ createdAt: z.string().optional(),
5520
+ updatedAt: z.string().optional()
5521
+ });
5522
+ PaginationResponseValidator.extend({
5523
+ records: SkillFrameworkValidator.array()
5524
+ });
5525
+ var SkillTreeNodeValidator = SkillValidator.extend({
5526
+ children: z.array(z.lazy(() => SkillTreeNodeValidator)),
5527
+ hasChildren: z.boolean(),
5528
+ childrenCursor: z.string().nullable().optional()
5529
+ }).openapi({ ref: "SkillTreeNode" });
5530
+ var PaginatedSkillTreeValidator = z.object({
5531
+ hasMore: z.boolean(),
5532
+ cursor: z.string().nullable(),
5533
+ records: z.array(SkillTreeNodeValidator)
5534
+ });
5535
+ var SkillTreeNodeInputValidator = z.lazy(
5536
+ () => z.object({
5537
+ id: z.string().optional(),
5538
+ statement: z.string(),
5539
+ description: z.string().optional(),
5540
+ code: z.string().optional(),
5541
+ icon: z.string().optional(),
5542
+ type: z.string().optional(),
5543
+ status: SkillStatusEnum.optional(),
5544
+ children: z.array(SkillTreeNodeInputValidator).optional()
5545
+ })
5546
+ ).openapi({ ref: "SkillTreeNodeInput" });
5547
+ z.object({
5548
+ frameworkId: z.string()
5549
+ });
5550
+ var CreateManagedFrameworkInputValidator = z.object({
5551
+ id: z.string().optional(),
5552
+ name: z.string().min(1),
5553
+ description: z.string().optional(),
5554
+ image: z.string().optional(),
5555
+ sourceURI: z.string().url().optional(),
5556
+ status: SkillFrameworkStatusEnum.optional(),
5557
+ skills: z.array(SkillTreeNodeInputValidator).optional(),
5558
+ boostUris: z.array(z.string()).optional()
5559
+ });
5560
+ z.object({
5561
+ id: z.string(),
5562
+ name: z.string().min(1).optional(),
5563
+ description: z.string().optional(),
5564
+ image: z.string().optional(),
5565
+ sourceURI: z.string().url().optional(),
5566
+ status: SkillFrameworkStatusEnum.optional()
5567
+ }).refine(
5568
+ (data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
5569
+ {
5570
+ message: "At least one field must be provided to update",
5571
+ path: ["name"]
5572
+ }
5573
+ );
5574
+ z.object({ id: z.string() });
5575
+ z.object({
5576
+ frameworks: z.array(
5577
+ CreateManagedFrameworkInputValidator.extend({
5578
+ skills: z.array(SkillTreeNodeInputValidator).optional()
5579
+ })
5580
+ ).min(1)
5581
+ });
5582
+ z.object({
5583
+ frameworkId: z.string(),
5584
+ profileId: z.string()
5585
+ });
5586
+ z.object({ frameworkId: z.string() });
5587
+ LCNProfileValidator.array();
5588
+ z.object({ id: z.string() });
5589
+ z.object({
5590
+ slug: z.string().min(1),
5591
+ name: z.string().min(1)
5592
+ });
5593
+ z.object({
5594
+ frameworkId: z.string(),
5595
+ skill: SkillTreeNodeInputValidator,
5596
+ parentId: z.string().nullable().optional()
5597
+ });
5598
+ z.object({
5599
+ frameworkId: z.string(),
5600
+ id: z.string(),
5601
+ statement: z.string().optional(),
5602
+ description: z.string().optional(),
5603
+ code: z.string().optional(),
5604
+ icon: z.string().optional(),
5605
+ type: z.string().optional(),
5606
+ status: SkillStatusEnum.optional()
5607
+ }).refine(
5608
+ (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,
5609
+ {
5610
+ message: "At least one field must be provided to update a skill",
5611
+ path: ["statement"]
5612
+ }
5613
+ );
5614
+ var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
5615
+ z.object({
5616
+ frameworkId: z.string(),
5617
+ id: z.string(),
5618
+ strategy: SkillDeletionStrategyValidator.optional().default("reparent")
5619
+ });
5620
+ z.object({
5621
+ frameworkId: z.string(),
5622
+ skills: z.array(SkillTreeNodeInputValidator).min(1),
5623
+ parentId: z.string().nullable().optional()
5624
+ });
5625
+ z.object({
5626
+ frameworkId: z.string(),
5627
+ skills: z.array(SkillTreeNodeInputValidator).min(0)
5628
+ });
5629
+ z.object({
5630
+ created: z.number().int().min(0),
5631
+ updated: z.number().int().min(0),
5632
+ deleted: z.number().int().min(0),
5633
+ unchanged: z.number().int().min(0),
5634
+ total: z.number().int().min(0)
5635
+ });
5636
+ z.object({
5637
+ frameworkId: z.string(),
5638
+ skillId: z.string().optional(),
5639
+ recursive: z.boolean().optional().default(false),
5640
+ onlyCountCompetencies: z.boolean().optional().default(false)
5641
+ });
5642
+ z.object({
5643
+ count: z.number().int().min(0)
5644
+ });
5645
+ z.object({
5646
+ frameworkId: z.string()
5647
+ });
5648
+ z.object({
5649
+ skills: z.array(SkillTreeNodeValidator)
5650
+ });
5651
+ z.object({
5652
+ frameworkId: z.string(),
5653
+ skillId: z.string()
5654
+ });
5655
+ z.object({
5656
+ path: z.array(SkillValidator)
5657
+ });
5658
+ z.object({
5659
+ framework: SkillFrameworkValidator,
5660
+ skills: PaginatedSkillTreeValidator
5661
+ });
5415
5662
 
5416
5663
  export { VerificationStatusEnum as V };
5417
- //# sourceMappingURL=types.esm-923eb477.js.map
5664
+ //# sourceMappingURL=types.esm-00c9f5ab.js.map