@learncard/network-brain-client 2.4.9 → 2.4.13

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.13
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`a8ba030d48e75094fd64cd3da0725c3c0f468cf2`](https://github.com/learningeconomy/LearnCard/commit/a8ba030d48e75094fd64cd3da0725c3c0f468cf2)]:
8
+ - @learncard/network-brain-service@3.7.1
9
+
10
+ ## 2.4.12
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`f56a417dc005623e793945e19808d6d9a9193357`](https://github.com/learningeconomy/LearnCard/commit/f56a417dc005623e793945e19808d6d9a9193357)]:
15
+ - @learncard/network-brain-service@3.7.0
16
+
17
+ ## 2.4.11
18
+
19
+ ### Patch Changes
20
+
21
+ - 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)]:
22
+ - @learncard/network-brain-service@3.6.13
23
+
24
+ ## 2.4.10
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies [[`c128a50ca1a6e544010e11009ed5a0b0404a9db5`](https://github.com/learningeconomy/LearnCard/commit/c128a50ca1a6e544010e11009ed5a0b0404a9db5)]:
29
+ - @learncard/network-brain-service@3.6.12
30
+
3
31
  ## 2.4.9
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(),
@@ -4787,7 +4829,8 @@ var require_helpers_cjs_development = __commonJS({
4787
4829
  to: z.string(),
4788
4830
  from: z.string(),
4789
4831
  sent: z.string().datetime(),
4790
- received: z.string().datetime().optional()
4832
+ received: z.string().datetime().optional(),
4833
+ metadata: z.record(z.unknown()).optional()
4791
4834
  });
4792
4835
  var BoostPermissionsValidator = z.object({
4793
4836
  role: z.string(),
@@ -4860,7 +4903,7 @@ var require_helpers_cjs_development = __commonJS({
4860
4903
  claimPermissions: BoostPermissionsValidator.optional(),
4861
4904
  allowAnyoneToCreateChildren: z.boolean().optional()
4862
4905
  });
4863
- var BoostQueryValidator = z.object({
4906
+ var BaseBoostQueryValidator = z.object({
4864
4907
  uri: StringQuery,
4865
4908
  name: StringQuery,
4866
4909
  type: StringQuery,
@@ -4869,6 +4912,12 @@ var require_helpers_cjs_development = __commonJS({
4869
4912
  status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
4870
4913
  autoConnectRecipients: z.boolean()
4871
4914
  }).partial();
4915
+ var BoostQueryValidator = z.union([
4916
+ z.object({
4917
+ $or: BaseBoostQueryValidator.array()
4918
+ }),
4919
+ BaseBoostQueryValidator
4920
+ ]);
4872
4921
  var PaginatedBoostsValidator = PaginationResponseValidator.extend({
4873
4922
  records: BoostValidator.array()
4874
4923
  });
@@ -4924,11 +4973,25 @@ var require_helpers_cjs_development = __commonJS({
4924
4973
  var ConsentFlowContractValidator = z.object({
4925
4974
  read: z.object({
4926
4975
  anonymize: z.boolean().optional(),
4927
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
4976
+ credentials: z.object({
4977
+ categories: z.record(
4978
+ z.object({
4979
+ required: z.boolean(),
4980
+ defaultEnabled: z.boolean().optional()
4981
+ })
4982
+ ).default({})
4983
+ }).default({}),
4928
4984
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
4929
4985
  }).default({}),
4930
4986
  write: z.object({
4931
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
4987
+ credentials: z.object({
4988
+ categories: z.record(
4989
+ z.object({
4990
+ required: z.boolean(),
4991
+ defaultEnabled: z.boolean().optional()
4992
+ })
4993
+ ).default({})
4994
+ }).default({}),
4932
4995
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
4933
4996
  }).default({})
4934
4997
  });
@@ -5071,6 +5134,17 @@ var require_helpers_cjs_development = __commonJS({
5071
5134
  var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
5072
5135
  records: ConsentFlowTransactionValidator.array()
5073
5136
  });
5137
+ var BaseSkillFrameworkQueryValidator = z.object({
5138
+ id: StringQuery,
5139
+ name: StringQuery,
5140
+ description: StringQuery,
5141
+ sourceURI: StringQuery,
5142
+ status: StringQuery
5143
+ }).partial();
5144
+ var SkillFrameworkQueryValidator = z.union([
5145
+ z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
5146
+ BaseSkillFrameworkQueryValidator
5147
+ ]);
5074
5148
  var ContractCredentialValidator = z.object({
5075
5149
  credentialUri: z.string(),
5076
5150
  termsUri: z.string(),
@@ -5125,8 +5199,9 @@ var require_helpers_cjs_development = __commonJS({
5125
5199
  vcUris: z.array(z.string()).optional(),
5126
5200
  vpUris: z.array(z.string()).optional(),
5127
5201
  transaction: ConsentFlowTransactionValidator.optional(),
5128
- inbox: LCNNotificationInboxValidator.optional()
5129
- });
5202
+ inbox: LCNNotificationInboxValidator.optional(),
5203
+ metadata: z.record(z.unknown()).optional()
5204
+ }).passthrough();
5130
5205
  var LCNNotificationValidator = z.object({
5131
5206
  type: LCNNotificationTypeEnumValidator,
5132
5207
  to: LCNProfileValidator.partial().and(z.object({ did: z.string() })),
@@ -5249,31 +5324,55 @@ var require_helpers_cjs_development = __commonJS({
5249
5324
  });
5250
5325
  var IssueInboxCredentialValidator = z.object({
5251
5326
  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."),
5327
+ credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
5328
+ "The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
5329
+ ),
5253
5330
  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."),
5331
+ signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
5332
+ "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."
5333
+ ),
5255
5334
  webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
5256
5335
  expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
5257
5336
  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."),
5337
+ suppress: z.boolean().optional().default(false).describe(
5338
+ "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."
5339
+ ),
5259
5340
  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."),
5341
+ id: z.enum(["universal-inbox-claim"]).optional().describe(
5342
+ "The template ID to use for the credential delivery. If not provided, the default template will be used."
5343
+ ),
5261
5344
  model: z.object({
5262
5345
  issuer: z.object({
5263
- name: z.string().optional().describe('The name of the organization (e.g., "State University").'),
5346
+ name: z.string().optional().describe(
5347
+ 'The name of the organization (e.g., "State University").'
5348
+ ),
5264
5349
  logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
5265
5350
  }).optional(),
5266
5351
  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").')
5352
+ name: z.string().optional().describe(
5353
+ 'The name of the credential (e.g., "Bachelor of Science").'
5354
+ ),
5355
+ type: z.string().optional().describe(
5356
+ 'The type of the credential (e.g., "degree", "certificate").'
5357
+ )
5269
5358
  }).optional(),
5270
5359
  recipient: z.object({
5271
- name: z.string().optional().describe('The name of the recipient (e.g., "John Doe").')
5360
+ name: z.string().optional().describe(
5361
+ 'The name of the recipient (e.g., "John Doe").'
5362
+ )
5272
5363
  }).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.")
5364
+ }).describe(
5365
+ "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."
5366
+ )
5367
+ }).optional().describe(
5368
+ "The template to use for the credential delivery. If not provided, the default template will be used."
5369
+ )
5370
+ }).optional().describe(
5371
+ "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."
5372
+ )
5373
+ }).optional().describe(
5374
+ "Configuration for the credential issuance. If not provided, the default configuration will be used."
5375
+ )
5277
5376
  });
5278
5377
  var IssueInboxCredentialResponseValidator = z.object({
5279
5378
  issuanceId: z.string(),
@@ -5335,6 +5434,191 @@ var require_helpers_cjs_development = __commonJS({
5335
5434
  expiresAt: z.string(),
5336
5435
  used: z.boolean()
5337
5436
  });
5437
+ var TagValidator = z.object({
5438
+ id: z.string(),
5439
+ name: z.string().min(1),
5440
+ slug: z.string().min(1),
5441
+ createdAt: z.string().optional(),
5442
+ updatedAt: z.string().optional()
5443
+ });
5444
+ var SkillStatusEnum = z.enum(["active", "archived"]);
5445
+ var SkillValidator = z.object({
5446
+ id: z.string(),
5447
+ statement: z.string(),
5448
+ description: z.string().optional(),
5449
+ code: z.string().optional(),
5450
+ icon: z.string().optional(),
5451
+ type: z.string().default("skill"),
5452
+ status: SkillStatusEnum.default("active"),
5453
+ frameworkId: z.string().optional(),
5454
+ createdAt: z.string().optional(),
5455
+ updatedAt: z.string().optional()
5456
+ });
5457
+ var BaseSkillQueryValidator = z.object({
5458
+ id: StringQuery,
5459
+ statement: StringQuery,
5460
+ description: StringQuery,
5461
+ code: StringQuery,
5462
+ type: StringQuery,
5463
+ status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
5464
+ }).partial();
5465
+ var SkillQueryValidator = z.union([
5466
+ z.object({
5467
+ $or: BaseSkillQueryValidator.array()
5468
+ }),
5469
+ BaseSkillQueryValidator
5470
+ ]);
5471
+ var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
5472
+ var SkillFrameworkValidator = z.object({
5473
+ id: z.string(),
5474
+ name: z.string(),
5475
+ description: z.string().optional(),
5476
+ image: z.string().optional(),
5477
+ sourceURI: z.string().url().optional(),
5478
+ status: SkillFrameworkStatusEnum.default("active"),
5479
+ createdAt: z.string().optional(),
5480
+ updatedAt: z.string().optional()
5481
+ });
5482
+ var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
5483
+ records: SkillFrameworkValidator.array()
5484
+ });
5485
+ var SkillTreeNodeValidator = SkillValidator.extend({
5486
+ children: z.array(z.lazy(() => SkillTreeNodeValidator)),
5487
+ hasChildren: z.boolean(),
5488
+ childrenCursor: z.string().nullable().optional()
5489
+ }).openapi({ ref: "SkillTreeNode" });
5490
+ var PaginatedSkillTreeValidator = z.object({
5491
+ hasMore: z.boolean(),
5492
+ cursor: z.string().nullable(),
5493
+ records: z.array(SkillTreeNodeValidator)
5494
+ });
5495
+ var SkillTreeNodeInputValidator = z.lazy(
5496
+ () => z.object({
5497
+ id: z.string().optional(),
5498
+ statement: z.string(),
5499
+ description: z.string().optional(),
5500
+ code: z.string().optional(),
5501
+ icon: z.string().optional(),
5502
+ type: z.string().optional(),
5503
+ status: SkillStatusEnum.optional(),
5504
+ children: z.array(SkillTreeNodeInputValidator).optional()
5505
+ })
5506
+ ).openapi({ ref: "SkillTreeNodeInput" });
5507
+ var LinkProviderFrameworkInputValidator = z.object({
5508
+ frameworkId: z.string()
5509
+ });
5510
+ var CreateManagedFrameworkInputValidator = z.object({
5511
+ id: z.string().optional(),
5512
+ name: z.string().min(1),
5513
+ description: z.string().optional(),
5514
+ image: z.string().optional(),
5515
+ sourceURI: z.string().url().optional(),
5516
+ status: SkillFrameworkStatusEnum.optional(),
5517
+ skills: z.array(SkillTreeNodeInputValidator).optional(),
5518
+ boostUris: z.array(z.string()).optional()
5519
+ });
5520
+ var UpdateFrameworkInputValidator = z.object({
5521
+ id: z.string(),
5522
+ name: z.string().min(1).optional(),
5523
+ description: z.string().optional(),
5524
+ image: z.string().optional(),
5525
+ sourceURI: z.string().url().optional(),
5526
+ status: SkillFrameworkStatusEnum.optional()
5527
+ }).refine(
5528
+ (data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
5529
+ {
5530
+ message: "At least one field must be provided to update",
5531
+ path: ["name"]
5532
+ }
5533
+ );
5534
+ var DeleteFrameworkInputValidator = z.object({ id: z.string() });
5535
+ var CreateManagedFrameworkBatchInputValidator = z.object({
5536
+ frameworks: z.array(
5537
+ CreateManagedFrameworkInputValidator.extend({
5538
+ skills: z.array(SkillTreeNodeInputValidator).optional()
5539
+ })
5540
+ ).min(1)
5541
+ });
5542
+ var SkillFrameworkAdminInputValidator = z.object({
5543
+ frameworkId: z.string(),
5544
+ profileId: z.string()
5545
+ });
5546
+ var SkillFrameworkIdInputValidator = z.object({ frameworkId: z.string() });
5547
+ var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
5548
+ var SyncFrameworkInputValidator = z.object({ id: z.string() });
5549
+ var AddTagInputValidator = z.object({
5550
+ slug: z.string().min(1),
5551
+ name: z.string().min(1)
5552
+ });
5553
+ var CreateSkillInputValidator = z.object({
5554
+ frameworkId: z.string(),
5555
+ skill: SkillTreeNodeInputValidator,
5556
+ parentId: z.string().nullable().optional()
5557
+ });
5558
+ var UpdateSkillInputValidator = z.object({
5559
+ frameworkId: z.string(),
5560
+ id: z.string(),
5561
+ statement: z.string().optional(),
5562
+ description: z.string().optional(),
5563
+ code: z.string().optional(),
5564
+ icon: z.string().optional(),
5565
+ type: z.string().optional(),
5566
+ status: SkillStatusEnum.optional()
5567
+ }).refine(
5568
+ (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,
5569
+ {
5570
+ message: "At least one field must be provided to update a skill",
5571
+ path: ["statement"]
5572
+ }
5573
+ );
5574
+ var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
5575
+ var DeleteSkillInputValidator = z.object({
5576
+ frameworkId: z.string(),
5577
+ id: z.string(),
5578
+ strategy: SkillDeletionStrategyValidator.optional().default("reparent")
5579
+ });
5580
+ var CreateSkillsBatchInputValidator = z.object({
5581
+ frameworkId: z.string(),
5582
+ skills: z.array(SkillTreeNodeInputValidator).min(1),
5583
+ parentId: z.string().nullable().optional()
5584
+ });
5585
+ var ReplaceSkillFrameworkSkillsInputValidator = z.object({
5586
+ frameworkId: z.string(),
5587
+ skills: z.array(SkillTreeNodeInputValidator).min(0)
5588
+ });
5589
+ var ReplaceSkillFrameworkSkillsResultValidator = z.object({
5590
+ created: z.number().int().min(0),
5591
+ updated: z.number().int().min(0),
5592
+ deleted: z.number().int().min(0),
5593
+ unchanged: z.number().int().min(0),
5594
+ total: z.number().int().min(0)
5595
+ });
5596
+ var CountSkillsInputValidator = z.object({
5597
+ frameworkId: z.string(),
5598
+ skillId: z.string().optional(),
5599
+ recursive: z.boolean().optional().default(false),
5600
+ onlyCountCompetencies: z.boolean().optional().default(false)
5601
+ });
5602
+ var CountSkillsResultValidator = z.object({
5603
+ count: z.number().int().min(0)
5604
+ });
5605
+ var GetFullSkillTreeInputValidator = z.object({
5606
+ frameworkId: z.string()
5607
+ });
5608
+ var GetFullSkillTreeResultValidator = z.object({
5609
+ skills: z.array(SkillTreeNodeValidator)
5610
+ });
5611
+ var GetSkillPathInputValidator = z.object({
5612
+ frameworkId: z.string(),
5613
+ skillId: z.string()
5614
+ });
5615
+ var GetSkillPathResultValidator = z.object({
5616
+ path: z.array(SkillValidator)
5617
+ });
5618
+ var FrameworkWithSkillsValidator = z.object({
5619
+ framework: SkillFrameworkValidator,
5620
+ skills: PaginatedSkillTreeValidator
5621
+ });
5338
5622
  }
5339
5623
  });
5340
5624
  var require_dist2 = __commonJS2({
@@ -5352,7 +5636,8 @@ var require_helpers_cjs_development = __commonJS({
5352
5636
  RegExpTransformer: () => RegExpTransformer2,
5353
5637
  isEncrypted: () => isEncrypted,
5354
5638
  isHex: () => isHex,
5355
- isVC2Format: () => isVC2Format
5639
+ isVC2Format: () => isVC2Format,
5640
+ unwrapBoostCredential: () => unwrapBoostCredential
5356
5641
  });
5357
5642
  module2.exports = __toCommonJS2(src_exports2);
5358
5643
  var import_types = __toESM2(require_dist2());
@@ -5393,6 +5678,13 @@ var require_helpers_cjs_development = __commonJS({
5393
5678
  }
5394
5679
  return credential["@context"].includes("https://www.w3.org/ns/credentials/v2");
5395
5680
  }, "isVC2Format");
5681
+ var unwrapBoostCredential = /* @__PURE__ */ __name2((vc) => {
5682
+ if (vc?.type?.includes("CertifiedBoostCredential") && vc?.boostCredential) {
5683
+ return vc.boostCredential;
5684
+ } else {
5685
+ return vc;
5686
+ }
5687
+ }, "unwrapBoostCredential");
5396
5688
  }
5397
5689
  });
5398
5690