@learncard/network-brain-client 2.4.8 → 2.4.12

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @learncard/network-brain-client
2
2
 
3
+ ## 2.4.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`f56a417dc005623e793945e19808d6d9a9193357`](https://github.com/learningeconomy/LearnCard/commit/f56a417dc005623e793945e19808d6d9a9193357)]:
8
+ - @learncard/network-brain-service@3.7.0
9
+
10
+ ## 2.4.11
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`c00f3e3cceed125aa77bbca7d70c99cacfaae830`](https://github.com/learningeconomy/LearnCard/commit/c00f3e3cceed125aa77bbca7d70c99cacfaae830), [`56bcdc004441a84c8045a007944a394f48cb4bbc`](https://github.com/learningeconomy/LearnCard/commit/56bcdc004441a84c8045a007944a394f48cb4bbc), [`065b250ea165339a6f964ad1b97a352015b28262`](https://github.com/learningeconomy/LearnCard/commit/065b250ea165339a6f964ad1b97a352015b28262), [`c00f3e3cceed125aa77bbca7d70c99cacfaae830`](https://github.com/learningeconomy/LearnCard/commit/c00f3e3cceed125aa77bbca7d70c99cacfaae830)]:
15
+ - @learncard/network-brain-service@3.6.13
16
+
17
+ ## 2.4.10
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [[`c128a50ca1a6e544010e11009ed5a0b0404a9db5`](https://github.com/learningeconomy/LearnCard/commit/c128a50ca1a6e544010e11009ed5a0b0404a9db5)]:
22
+ - @learncard/network-brain-service@3.6.12
23
+
24
+ ## 2.4.9
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies []:
29
+ - @learncard/network-brain-service@3.6.11
30
+
3
31
  ## 2.4.8
4
32
 
5
33
  ### Patch Changes
@@ -89,6 +89,7 @@ var require_helpers_cjs_development = __commonJS({
89
89
  AchievementSubjectValidator: () => AchievementSubjectValidator,
90
90
  AchievementTypeValidator: () => AchievementTypeValidator,
91
91
  AchievementValidator: () => AchievementValidator,
92
+ AddTagInputValidator: () => AddTagInputValidator,
92
93
  AddressValidator: () => AddressValidator,
93
94
  AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator,
94
95
  AlignmentValidator: () => AlignmentValidator,
@@ -128,14 +129,22 @@ var require_helpers_cjs_development = __commonJS({
128
129
  ContactMethodVerificationValidator: () => ContactMethodVerificationValidator,
129
130
  ContextValidator: () => ContextValidator,
130
131
  ContractCredentialValidator: () => ContractCredentialValidator,
132
+ CountSkillsInputValidator: () => CountSkillsInputValidator,
133
+ CountSkillsResultValidator: () => CountSkillsResultValidator,
131
134
  CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator,
132
135
  CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator,
136
+ CreateManagedFrameworkBatchInputValidator: () => CreateManagedFrameworkBatchInputValidator,
137
+ CreateManagedFrameworkInputValidator: () => CreateManagedFrameworkInputValidator,
138
+ CreateSkillInputValidator: () => CreateSkillInputValidator,
139
+ CreateSkillsBatchInputValidator: () => CreateSkillsBatchInputValidator,
133
140
  CredentialInfoValidator: () => CredentialInfoValidator,
134
141
  CredentialRecordValidator: () => CredentialRecordValidator,
135
142
  CredentialSchemaValidator: () => CredentialSchemaValidator,
136
143
  CredentialStatusValidator: () => CredentialStatusValidator,
137
144
  CredentialSubjectValidator: () => CredentialSubjectValidator,
138
145
  CriteriaValidator: () => CriteriaValidator,
146
+ DeleteFrameworkInputValidator: () => DeleteFrameworkInputValidator,
147
+ DeleteSkillInputValidator: () => DeleteSkillInputValidator,
139
148
  DidDocumentValidator: () => DidDocumentValidator,
140
149
  EncryptedCredentialRecordValidator: () => EncryptedCredentialRecordValidator,
141
150
  EncryptedRecordValidator: () => EncryptedRecordValidator,
@@ -143,8 +152,13 @@ var require_helpers_cjs_development = __commonJS({
143
152
  EndorsementSubjectValidator: () => EndorsementSubjectValidator,
144
153
  EvidenceValidator: () => EvidenceValidator,
145
154
  FlatAuthGrantValidator: () => FlatAuthGrantValidator,
155
+ FrameworkWithSkillsValidator: () => FrameworkWithSkillsValidator,
146
156
  FullClaimHookValidator: () => FullClaimHookValidator,
147
157
  GeoCoordinatesValidator: () => GeoCoordinatesValidator,
158
+ GetFullSkillTreeInputValidator: () => GetFullSkillTreeInputValidator,
159
+ GetFullSkillTreeResultValidator: () => GetFullSkillTreeResultValidator,
160
+ GetSkillPathInputValidator: () => GetSkillPathInputValidator,
161
+ GetSkillPathResultValidator: () => GetSkillPathResultValidator,
148
162
  IdentifierEntryValidator: () => IdentifierEntryValidator,
149
163
  IdentifierTypeValidator: () => IdentifierTypeValidator,
150
164
  IdentityObjectValidator: () => IdentityObjectValidator,
@@ -183,6 +197,7 @@ var require_helpers_cjs_development = __commonJS({
183
197
  LCNProfileValidator: () => LCNProfileValidator,
184
198
  LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator,
185
199
  LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
200
+ LinkProviderFrameworkInputValidator: () => LinkProviderFrameworkInputValidator,
186
201
  PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator,
187
202
  PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator,
188
203
  PaginatedBoostsValidator: () => PaginatedBoostsValidator,
@@ -200,6 +215,8 @@ var require_helpers_cjs_development = __commonJS({
200
215
  PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator,
201
216
  PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator,
202
217
  PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
218
+ PaginatedSkillFrameworksValidator: () => PaginatedSkillFrameworksValidator,
219
+ PaginatedSkillTreeValidator: () => PaginatedSkillTreeValidator,
203
220
  PaginationOptionsValidator: () => PaginationOptionsValidator,
204
221
  PaginationResponseValidator: () => PaginationResponseValidator,
205
222
  ProfileValidator: () => ProfileValidator,
@@ -207,6 +224,8 @@ var require_helpers_cjs_development = __commonJS({
207
224
  RefreshServiceValidator: () => RefreshServiceValidator,
208
225
  RegExpValidator: () => RegExpValidator,
209
226
  RelatedValidator: () => RelatedValidator,
227
+ ReplaceSkillFrameworkSkillsInputValidator: () => ReplaceSkillFrameworkSkillsInputValidator,
228
+ ReplaceSkillFrameworkSkillsResultValidator: () => ReplaceSkillFrameworkSkillsResultValidator,
210
229
  ResultDescriptionValidator: () => ResultDescriptionValidator,
211
230
  ResultStatusTypeValidator: () => ResultStatusTypeValidator,
212
231
  ResultTypeValidator: () => ResultTypeValidator,
@@ -215,11 +234,27 @@ var require_helpers_cjs_development = __commonJS({
215
234
  SentCredentialInfoValidator: () => SentCredentialInfoValidator,
216
235
  ServiceValidator: () => ServiceValidator,
217
236
  SetPrimaryContactMethodValidator: () => SetPrimaryContactMethodValidator,
237
+ SkillDeletionStrategyValidator: () => SkillDeletionStrategyValidator,
238
+ SkillFrameworkAdminInputValidator: () => SkillFrameworkAdminInputValidator,
239
+ SkillFrameworkAdminsValidator: () => SkillFrameworkAdminsValidator,
240
+ SkillFrameworkIdInputValidator: () => SkillFrameworkIdInputValidator,
241
+ SkillFrameworkQueryValidator: () => SkillFrameworkQueryValidator,
242
+ SkillFrameworkStatusEnum: () => SkillFrameworkStatusEnum,
243
+ SkillFrameworkValidator: () => SkillFrameworkValidator,
244
+ SkillQueryValidator: () => SkillQueryValidator,
245
+ SkillStatusEnum: () => SkillStatusEnum,
246
+ SkillTreeNodeInputValidator: () => SkillTreeNodeInputValidator,
247
+ SkillTreeNodeValidator: () => SkillTreeNodeValidator,
248
+ SkillValidator: () => SkillValidator,
218
249
  StringQuery: () => StringQuery,
250
+ SyncFrameworkInputValidator: () => SyncFrameworkInputValidator,
251
+ TagValidator: () => TagValidator,
219
252
  TermsOfUseValidator: () => TermsOfUseValidator,
220
253
  UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator,
221
254
  UnsignedVCValidator: () => UnsignedVCValidator,
222
255
  UnsignedVPValidator: () => UnsignedVPValidator,
256
+ UpdateFrameworkInputValidator: () => UpdateFrameworkInputValidator,
257
+ UpdateSkillInputValidator: () => UpdateSkillInputValidator,
223
258
  VC2EvidenceValidator: () => VC2EvidenceValidator,
224
259
  VCValidator: () => VCValidator,
225
260
  VPValidator: () => VPValidator,
@@ -4702,7 +4737,14 @@ var require_helpers_cjs_development = __commonJS({
4702
4737
  }
4703
4738
  })
4704
4739
  );
4705
- var StringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
4740
+ var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
4741
+ var StringQuery = z.union([
4742
+ BaseStringQuery,
4743
+ z.object({
4744
+ $or: BaseStringQuery.array()
4745
+ })
4746
+ ]);
4747
+ extendZodWithOpenApi(z);
4706
4748
  var LCNProfileDisplayValidator = z.object({
4707
4749
  backgroundColor: z.string().optional(),
4708
4750
  backgroundImage: z.string().optional(),
@@ -4860,7 +4902,7 @@ var require_helpers_cjs_development = __commonJS({
4860
4902
  claimPermissions: BoostPermissionsValidator.optional(),
4861
4903
  allowAnyoneToCreateChildren: z.boolean().optional()
4862
4904
  });
4863
- var BoostQueryValidator = z.object({
4905
+ var BaseBoostQueryValidator = z.object({
4864
4906
  uri: StringQuery,
4865
4907
  name: StringQuery,
4866
4908
  type: StringQuery,
@@ -4869,6 +4911,12 @@ var require_helpers_cjs_development = __commonJS({
4869
4911
  status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
4870
4912
  autoConnectRecipients: z.boolean()
4871
4913
  }).partial();
4914
+ var BoostQueryValidator = z.union([
4915
+ z.object({
4916
+ $or: BaseBoostQueryValidator.array()
4917
+ }),
4918
+ BaseBoostQueryValidator
4919
+ ]);
4872
4920
  var PaginatedBoostsValidator = PaginationResponseValidator.extend({
4873
4921
  records: BoostValidator.array()
4874
4922
  });
@@ -4924,11 +4972,25 @@ var require_helpers_cjs_development = __commonJS({
4924
4972
  var ConsentFlowContractValidator = z.object({
4925
4973
  read: z.object({
4926
4974
  anonymize: z.boolean().optional(),
4927
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
4975
+ credentials: z.object({
4976
+ categories: z.record(
4977
+ z.object({
4978
+ required: z.boolean(),
4979
+ defaultEnabled: z.boolean().optional()
4980
+ })
4981
+ ).default({})
4982
+ }).default({}),
4928
4983
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
4929
4984
  }).default({}),
4930
4985
  write: z.object({
4931
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
4986
+ credentials: z.object({
4987
+ categories: z.record(
4988
+ z.object({
4989
+ required: z.boolean(),
4990
+ defaultEnabled: z.boolean().optional()
4991
+ })
4992
+ ).default({})
4993
+ }).default({}),
4932
4994
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
4933
4995
  }).default({})
4934
4996
  });
@@ -5071,6 +5133,17 @@ var require_helpers_cjs_development = __commonJS({
5071
5133
  var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
5072
5134
  records: ConsentFlowTransactionValidator.array()
5073
5135
  });
5136
+ var BaseSkillFrameworkQueryValidator = z.object({
5137
+ id: StringQuery,
5138
+ name: StringQuery,
5139
+ description: StringQuery,
5140
+ sourceURI: StringQuery,
5141
+ status: StringQuery
5142
+ }).partial();
5143
+ var SkillFrameworkQueryValidator = z.union([
5144
+ z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
5145
+ BaseSkillFrameworkQueryValidator
5146
+ ]);
5074
5147
  var ContractCredentialValidator = z.object({
5075
5148
  credentialUri: z.string(),
5076
5149
  termsUri: z.string(),
@@ -5249,31 +5322,55 @@ var require_helpers_cjs_development = __commonJS({
5249
5322
  });
5250
5323
  var IssueInboxCredentialValidator = z.object({
5251
5324
  recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
5252
- 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."),
5325
+ credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
5326
+ "The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
5327
+ ),
5253
5328
  configuration: z.object({
5254
- 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."),
5329
+ signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
5330
+ "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."
5331
+ ),
5255
5332
  webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
5256
5333
  expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
5257
5334
  delivery: z.object({
5258
- 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."),
5335
+ suppress: z.boolean().optional().default(false).describe(
5336
+ "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."
5337
+ ),
5259
5338
  template: z.object({
5260
- 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."),
5339
+ id: z.enum(["universal-inbox-claim"]).optional().describe(
5340
+ "The template ID to use for the credential delivery. If not provided, the default template will be used."
5341
+ ),
5261
5342
  model: z.object({
5262
5343
  issuer: z.object({
5263
- name: z.string().optional().describe('The name of the organization (e.g., "State University").'),
5344
+ name: z.string().optional().describe(
5345
+ 'The name of the organization (e.g., "State University").'
5346
+ ),
5264
5347
  logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
5265
5348
  }).optional(),
5266
5349
  credential: z.object({
5267
- name: z.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),
5268
- type: z.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')
5350
+ name: z.string().optional().describe(
5351
+ 'The name of the credential (e.g., "Bachelor of Science").'
5352
+ ),
5353
+ type: z.string().optional().describe(
5354
+ 'The type of the credential (e.g., "degree", "certificate").'
5355
+ )
5269
5356
  }).optional(),
5270
5357
  recipient: z.object({
5271
- name: z.string().optional().describe('The name of the recipient (e.g., "John Doe").')
5358
+ name: z.string().optional().describe(
5359
+ 'The name of the recipient (e.g., "John Doe").'
5360
+ )
5272
5361
  }).optional()
5273
- }).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.")
5274
- }).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")
5275
- }).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.")
5276
- }).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")
5362
+ }).describe(
5363
+ "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."
5364
+ )
5365
+ }).optional().describe(
5366
+ "The template to use for the credential delivery. If not provided, the default template will be used."
5367
+ )
5368
+ }).optional().describe(
5369
+ "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."
5370
+ )
5371
+ }).optional().describe(
5372
+ "Configuration for the credential issuance. If not provided, the default configuration will be used."
5373
+ )
5277
5374
  });
5278
5375
  var IssueInboxCredentialResponseValidator = z.object({
5279
5376
  issuanceId: z.string(),
@@ -5335,6 +5432,191 @@ var require_helpers_cjs_development = __commonJS({
5335
5432
  expiresAt: z.string(),
5336
5433
  used: z.boolean()
5337
5434
  });
5435
+ var TagValidator = z.object({
5436
+ id: z.string(),
5437
+ name: z.string().min(1),
5438
+ slug: z.string().min(1),
5439
+ createdAt: z.string().optional(),
5440
+ updatedAt: z.string().optional()
5441
+ });
5442
+ var SkillStatusEnum = z.enum(["active", "archived"]);
5443
+ var SkillValidator = z.object({
5444
+ id: z.string(),
5445
+ statement: z.string(),
5446
+ description: z.string().optional(),
5447
+ code: z.string().optional(),
5448
+ icon: z.string().optional(),
5449
+ type: z.string().default("skill"),
5450
+ status: SkillStatusEnum.default("active"),
5451
+ frameworkId: z.string().optional(),
5452
+ createdAt: z.string().optional(),
5453
+ updatedAt: z.string().optional()
5454
+ });
5455
+ var BaseSkillQueryValidator = z.object({
5456
+ id: StringQuery,
5457
+ statement: StringQuery,
5458
+ description: StringQuery,
5459
+ code: StringQuery,
5460
+ type: StringQuery,
5461
+ status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
5462
+ }).partial();
5463
+ var SkillQueryValidator = z.union([
5464
+ z.object({
5465
+ $or: BaseSkillQueryValidator.array()
5466
+ }),
5467
+ BaseSkillQueryValidator
5468
+ ]);
5469
+ var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
5470
+ var SkillFrameworkValidator = z.object({
5471
+ id: z.string(),
5472
+ name: z.string(),
5473
+ description: z.string().optional(),
5474
+ image: z.string().optional(),
5475
+ sourceURI: z.string().url().optional(),
5476
+ status: SkillFrameworkStatusEnum.default("active"),
5477
+ createdAt: z.string().optional(),
5478
+ updatedAt: z.string().optional()
5479
+ });
5480
+ var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
5481
+ records: SkillFrameworkValidator.array()
5482
+ });
5483
+ var SkillTreeNodeValidator = SkillValidator.extend({
5484
+ children: z.array(z.lazy(() => SkillTreeNodeValidator)),
5485
+ hasChildren: z.boolean(),
5486
+ childrenCursor: z.string().nullable().optional()
5487
+ }).openapi({ ref: "SkillTreeNode" });
5488
+ var PaginatedSkillTreeValidator = z.object({
5489
+ hasMore: z.boolean(),
5490
+ cursor: z.string().nullable(),
5491
+ records: z.array(SkillTreeNodeValidator)
5492
+ });
5493
+ var SkillTreeNodeInputValidator = z.lazy(
5494
+ () => z.object({
5495
+ id: z.string().optional(),
5496
+ statement: z.string(),
5497
+ description: z.string().optional(),
5498
+ code: z.string().optional(),
5499
+ icon: z.string().optional(),
5500
+ type: z.string().optional(),
5501
+ status: SkillStatusEnum.optional(),
5502
+ children: z.array(SkillTreeNodeInputValidator).optional()
5503
+ })
5504
+ ).openapi({ ref: "SkillTreeNodeInput" });
5505
+ var LinkProviderFrameworkInputValidator = z.object({
5506
+ frameworkId: z.string()
5507
+ });
5508
+ var CreateManagedFrameworkInputValidator = z.object({
5509
+ id: z.string().optional(),
5510
+ name: z.string().min(1),
5511
+ description: z.string().optional(),
5512
+ image: z.string().optional(),
5513
+ sourceURI: z.string().url().optional(),
5514
+ status: SkillFrameworkStatusEnum.optional(),
5515
+ skills: z.array(SkillTreeNodeInputValidator).optional(),
5516
+ boostUris: z.array(z.string()).optional()
5517
+ });
5518
+ var UpdateFrameworkInputValidator = z.object({
5519
+ id: z.string(),
5520
+ name: z.string().min(1).optional(),
5521
+ description: z.string().optional(),
5522
+ image: z.string().optional(),
5523
+ sourceURI: z.string().url().optional(),
5524
+ status: SkillFrameworkStatusEnum.optional()
5525
+ }).refine(
5526
+ (data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
5527
+ {
5528
+ message: "At least one field must be provided to update",
5529
+ path: ["name"]
5530
+ }
5531
+ );
5532
+ var DeleteFrameworkInputValidator = z.object({ id: z.string() });
5533
+ var CreateManagedFrameworkBatchInputValidator = z.object({
5534
+ frameworks: z.array(
5535
+ CreateManagedFrameworkInputValidator.extend({
5536
+ skills: z.array(SkillTreeNodeInputValidator).optional()
5537
+ })
5538
+ ).min(1)
5539
+ });
5540
+ var SkillFrameworkAdminInputValidator = z.object({
5541
+ frameworkId: z.string(),
5542
+ profileId: z.string()
5543
+ });
5544
+ var SkillFrameworkIdInputValidator = z.object({ frameworkId: z.string() });
5545
+ var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
5546
+ var SyncFrameworkInputValidator = z.object({ id: z.string() });
5547
+ var AddTagInputValidator = z.object({
5548
+ slug: z.string().min(1),
5549
+ name: z.string().min(1)
5550
+ });
5551
+ var CreateSkillInputValidator = z.object({
5552
+ frameworkId: z.string(),
5553
+ skill: SkillTreeNodeInputValidator,
5554
+ parentId: z.string().nullable().optional()
5555
+ });
5556
+ var UpdateSkillInputValidator = z.object({
5557
+ frameworkId: z.string(),
5558
+ id: z.string(),
5559
+ statement: z.string().optional(),
5560
+ description: z.string().optional(),
5561
+ code: z.string().optional(),
5562
+ icon: z.string().optional(),
5563
+ type: z.string().optional(),
5564
+ status: SkillStatusEnum.optional()
5565
+ }).refine(
5566
+ (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,
5567
+ {
5568
+ message: "At least one field must be provided to update a skill",
5569
+ path: ["statement"]
5570
+ }
5571
+ );
5572
+ var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
5573
+ var DeleteSkillInputValidator = z.object({
5574
+ frameworkId: z.string(),
5575
+ id: z.string(),
5576
+ strategy: SkillDeletionStrategyValidator.optional().default("reparent")
5577
+ });
5578
+ var CreateSkillsBatchInputValidator = z.object({
5579
+ frameworkId: z.string(),
5580
+ skills: z.array(SkillTreeNodeInputValidator).min(1),
5581
+ parentId: z.string().nullable().optional()
5582
+ });
5583
+ var ReplaceSkillFrameworkSkillsInputValidator = z.object({
5584
+ frameworkId: z.string(),
5585
+ skills: z.array(SkillTreeNodeInputValidator).min(0)
5586
+ });
5587
+ var ReplaceSkillFrameworkSkillsResultValidator = z.object({
5588
+ created: z.number().int().min(0),
5589
+ updated: z.number().int().min(0),
5590
+ deleted: z.number().int().min(0),
5591
+ unchanged: z.number().int().min(0),
5592
+ total: z.number().int().min(0)
5593
+ });
5594
+ var CountSkillsInputValidator = z.object({
5595
+ frameworkId: z.string(),
5596
+ skillId: z.string().optional(),
5597
+ recursive: z.boolean().optional().default(false),
5598
+ onlyCountCompetencies: z.boolean().optional().default(false)
5599
+ });
5600
+ var CountSkillsResultValidator = z.object({
5601
+ count: z.number().int().min(0)
5602
+ });
5603
+ var GetFullSkillTreeInputValidator = z.object({
5604
+ frameworkId: z.string()
5605
+ });
5606
+ var GetFullSkillTreeResultValidator = z.object({
5607
+ skills: z.array(SkillTreeNodeValidator)
5608
+ });
5609
+ var GetSkillPathInputValidator = z.object({
5610
+ frameworkId: z.string(),
5611
+ skillId: z.string()
5612
+ });
5613
+ var GetSkillPathResultValidator = z.object({
5614
+ path: z.array(SkillValidator)
5615
+ });
5616
+ var FrameworkWithSkillsValidator = z.object({
5617
+ framework: SkillFrameworkValidator,
5618
+ skills: PaginatedSkillTreeValidator
5619
+ });
5338
5620
  }
5339
5621
  });
5340
5622
  var require_dist2 = __commonJS2({
@@ -5352,7 +5634,8 @@ var require_helpers_cjs_development = __commonJS({
5352
5634
  RegExpTransformer: () => RegExpTransformer2,
5353
5635
  isEncrypted: () => isEncrypted,
5354
5636
  isHex: () => isHex,
5355
- isVC2Format: () => isVC2Format
5637
+ isVC2Format: () => isVC2Format,
5638
+ unwrapBoostCredential: () => unwrapBoostCredential
5356
5639
  });
5357
5640
  module2.exports = __toCommonJS2(src_exports2);
5358
5641
  var import_types = __toESM2(require_dist2());
@@ -5393,6 +5676,13 @@ var require_helpers_cjs_development = __commonJS({
5393
5676
  }
5394
5677
  return credential["@context"].includes("https://www.w3.org/ns/credentials/v2");
5395
5678
  }, "isVC2Format");
5679
+ var unwrapBoostCredential = /* @__PURE__ */ __name2((vc) => {
5680
+ if (vc?.type?.includes("CertifiedBoostCredential") && vc?.boostCredential) {
5681
+ return vc.boostCredential;
5682
+ } else {
5683
+ return vc;
5684
+ }
5685
+ }, "unwrapBoostCredential");
5396
5686
  }
5397
5687
  });
5398
5688