@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.
@@ -84,6 +84,7 @@ var require_helpers_cjs_development = __commonJS({
84
84
  AchievementSubjectValidator: () => AchievementSubjectValidator,
85
85
  AchievementTypeValidator: () => AchievementTypeValidator,
86
86
  AchievementValidator: () => AchievementValidator,
87
+ AddTagInputValidator: () => AddTagInputValidator,
87
88
  AddressValidator: () => AddressValidator,
88
89
  AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator,
89
90
  AlignmentValidator: () => AlignmentValidator,
@@ -123,14 +124,22 @@ var require_helpers_cjs_development = __commonJS({
123
124
  ContactMethodVerificationValidator: () => ContactMethodVerificationValidator,
124
125
  ContextValidator: () => ContextValidator,
125
126
  ContractCredentialValidator: () => ContractCredentialValidator,
127
+ CountSkillsInputValidator: () => CountSkillsInputValidator,
128
+ CountSkillsResultValidator: () => CountSkillsResultValidator,
126
129
  CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator,
127
130
  CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator,
131
+ CreateManagedFrameworkBatchInputValidator: () => CreateManagedFrameworkBatchInputValidator,
132
+ CreateManagedFrameworkInputValidator: () => CreateManagedFrameworkInputValidator,
133
+ CreateSkillInputValidator: () => CreateSkillInputValidator,
134
+ CreateSkillsBatchInputValidator: () => CreateSkillsBatchInputValidator,
128
135
  CredentialInfoValidator: () => CredentialInfoValidator,
129
136
  CredentialRecordValidator: () => CredentialRecordValidator,
130
137
  CredentialSchemaValidator: () => CredentialSchemaValidator,
131
138
  CredentialStatusValidator: () => CredentialStatusValidator,
132
139
  CredentialSubjectValidator: () => CredentialSubjectValidator,
133
140
  CriteriaValidator: () => CriteriaValidator,
141
+ DeleteFrameworkInputValidator: () => DeleteFrameworkInputValidator,
142
+ DeleteSkillInputValidator: () => DeleteSkillInputValidator,
134
143
  DidDocumentValidator: () => DidDocumentValidator,
135
144
  EncryptedCredentialRecordValidator: () => EncryptedCredentialRecordValidator,
136
145
  EncryptedRecordValidator: () => EncryptedRecordValidator,
@@ -138,8 +147,13 @@ var require_helpers_cjs_development = __commonJS({
138
147
  EndorsementSubjectValidator: () => EndorsementSubjectValidator,
139
148
  EvidenceValidator: () => EvidenceValidator,
140
149
  FlatAuthGrantValidator: () => FlatAuthGrantValidator,
150
+ FrameworkWithSkillsValidator: () => FrameworkWithSkillsValidator,
141
151
  FullClaimHookValidator: () => FullClaimHookValidator,
142
152
  GeoCoordinatesValidator: () => GeoCoordinatesValidator,
153
+ GetFullSkillTreeInputValidator: () => GetFullSkillTreeInputValidator,
154
+ GetFullSkillTreeResultValidator: () => GetFullSkillTreeResultValidator,
155
+ GetSkillPathInputValidator: () => GetSkillPathInputValidator,
156
+ GetSkillPathResultValidator: () => GetSkillPathResultValidator,
143
157
  IdentifierEntryValidator: () => IdentifierEntryValidator,
144
158
  IdentifierTypeValidator: () => IdentifierTypeValidator,
145
159
  IdentityObjectValidator: () => IdentityObjectValidator,
@@ -178,6 +192,7 @@ var require_helpers_cjs_development = __commonJS({
178
192
  LCNProfileValidator: () => LCNProfileValidator,
179
193
  LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator,
180
194
  LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
195
+ LinkProviderFrameworkInputValidator: () => LinkProviderFrameworkInputValidator,
181
196
  PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator,
182
197
  PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator,
183
198
  PaginatedBoostsValidator: () => PaginatedBoostsValidator,
@@ -195,6 +210,8 @@ var require_helpers_cjs_development = __commonJS({
195
210
  PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator,
196
211
  PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator,
197
212
  PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
213
+ PaginatedSkillFrameworksValidator: () => PaginatedSkillFrameworksValidator,
214
+ PaginatedSkillTreeValidator: () => PaginatedSkillTreeValidator,
198
215
  PaginationOptionsValidator: () => PaginationOptionsValidator,
199
216
  PaginationResponseValidator: () => PaginationResponseValidator,
200
217
  ProfileValidator: () => ProfileValidator,
@@ -202,6 +219,8 @@ var require_helpers_cjs_development = __commonJS({
202
219
  RefreshServiceValidator: () => RefreshServiceValidator,
203
220
  RegExpValidator: () => RegExpValidator,
204
221
  RelatedValidator: () => RelatedValidator,
222
+ ReplaceSkillFrameworkSkillsInputValidator: () => ReplaceSkillFrameworkSkillsInputValidator,
223
+ ReplaceSkillFrameworkSkillsResultValidator: () => ReplaceSkillFrameworkSkillsResultValidator,
205
224
  ResultDescriptionValidator: () => ResultDescriptionValidator,
206
225
  ResultStatusTypeValidator: () => ResultStatusTypeValidator,
207
226
  ResultTypeValidator: () => ResultTypeValidator,
@@ -210,11 +229,27 @@ var require_helpers_cjs_development = __commonJS({
210
229
  SentCredentialInfoValidator: () => SentCredentialInfoValidator,
211
230
  ServiceValidator: () => ServiceValidator,
212
231
  SetPrimaryContactMethodValidator: () => SetPrimaryContactMethodValidator,
232
+ SkillDeletionStrategyValidator: () => SkillDeletionStrategyValidator,
233
+ SkillFrameworkAdminInputValidator: () => SkillFrameworkAdminInputValidator,
234
+ SkillFrameworkAdminsValidator: () => SkillFrameworkAdminsValidator,
235
+ SkillFrameworkIdInputValidator: () => SkillFrameworkIdInputValidator,
236
+ SkillFrameworkQueryValidator: () => SkillFrameworkQueryValidator,
237
+ SkillFrameworkStatusEnum: () => SkillFrameworkStatusEnum,
238
+ SkillFrameworkValidator: () => SkillFrameworkValidator,
239
+ SkillQueryValidator: () => SkillQueryValidator,
240
+ SkillStatusEnum: () => SkillStatusEnum,
241
+ SkillTreeNodeInputValidator: () => SkillTreeNodeInputValidator,
242
+ SkillTreeNodeValidator: () => SkillTreeNodeValidator,
243
+ SkillValidator: () => SkillValidator,
213
244
  StringQuery: () => StringQuery,
245
+ SyncFrameworkInputValidator: () => SyncFrameworkInputValidator,
246
+ TagValidator: () => TagValidator,
214
247
  TermsOfUseValidator: () => TermsOfUseValidator,
215
248
  UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator,
216
249
  UnsignedVCValidator: () => UnsignedVCValidator,
217
250
  UnsignedVPValidator: () => UnsignedVPValidator,
251
+ UpdateFrameworkInputValidator: () => UpdateFrameworkInputValidator,
252
+ UpdateSkillInputValidator: () => UpdateSkillInputValidator,
218
253
  VC2EvidenceValidator: () => VC2EvidenceValidator,
219
254
  VCValidator: () => VCValidator,
220
255
  VPValidator: () => VPValidator,
@@ -4697,7 +4732,14 @@ var require_helpers_cjs_development = __commonJS({
4697
4732
  }
4698
4733
  })
4699
4734
  );
4700
- var StringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
4735
+ var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
4736
+ var StringQuery = z.union([
4737
+ BaseStringQuery,
4738
+ z.object({
4739
+ $or: BaseStringQuery.array()
4740
+ })
4741
+ ]);
4742
+ extendZodWithOpenApi(z);
4701
4743
  var LCNProfileDisplayValidator = z.object({
4702
4744
  backgroundColor: z.string().optional(),
4703
4745
  backgroundImage: z.string().optional(),
@@ -4855,7 +4897,7 @@ var require_helpers_cjs_development = __commonJS({
4855
4897
  claimPermissions: BoostPermissionsValidator.optional(),
4856
4898
  allowAnyoneToCreateChildren: z.boolean().optional()
4857
4899
  });
4858
- var BoostQueryValidator = z.object({
4900
+ var BaseBoostQueryValidator = z.object({
4859
4901
  uri: StringQuery,
4860
4902
  name: StringQuery,
4861
4903
  type: StringQuery,
@@ -4864,6 +4906,12 @@ var require_helpers_cjs_development = __commonJS({
4864
4906
  status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
4865
4907
  autoConnectRecipients: z.boolean()
4866
4908
  }).partial();
4909
+ var BoostQueryValidator = z.union([
4910
+ z.object({
4911
+ $or: BaseBoostQueryValidator.array()
4912
+ }),
4913
+ BaseBoostQueryValidator
4914
+ ]);
4867
4915
  var PaginatedBoostsValidator = PaginationResponseValidator.extend({
4868
4916
  records: BoostValidator.array()
4869
4917
  });
@@ -4919,11 +4967,25 @@ var require_helpers_cjs_development = __commonJS({
4919
4967
  var ConsentFlowContractValidator = z.object({
4920
4968
  read: z.object({
4921
4969
  anonymize: z.boolean().optional(),
4922
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
4970
+ credentials: z.object({
4971
+ categories: z.record(
4972
+ z.object({
4973
+ required: z.boolean(),
4974
+ defaultEnabled: z.boolean().optional()
4975
+ })
4976
+ ).default({})
4977
+ }).default({}),
4923
4978
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
4924
4979
  }).default({}),
4925
4980
  write: z.object({
4926
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
4981
+ credentials: z.object({
4982
+ categories: z.record(
4983
+ z.object({
4984
+ required: z.boolean(),
4985
+ defaultEnabled: z.boolean().optional()
4986
+ })
4987
+ ).default({})
4988
+ }).default({}),
4927
4989
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
4928
4990
  }).default({})
4929
4991
  });
@@ -5066,6 +5128,17 @@ var require_helpers_cjs_development = __commonJS({
5066
5128
  var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
5067
5129
  records: ConsentFlowTransactionValidator.array()
5068
5130
  });
5131
+ var BaseSkillFrameworkQueryValidator = z.object({
5132
+ id: StringQuery,
5133
+ name: StringQuery,
5134
+ description: StringQuery,
5135
+ sourceURI: StringQuery,
5136
+ status: StringQuery
5137
+ }).partial();
5138
+ var SkillFrameworkQueryValidator = z.union([
5139
+ z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
5140
+ BaseSkillFrameworkQueryValidator
5141
+ ]);
5069
5142
  var ContractCredentialValidator = z.object({
5070
5143
  credentialUri: z.string(),
5071
5144
  termsUri: z.string(),
@@ -5244,31 +5317,55 @@ var require_helpers_cjs_development = __commonJS({
5244
5317
  });
5245
5318
  var IssueInboxCredentialValidator = z.object({
5246
5319
  recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
5247
- 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."),
5320
+ credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
5321
+ "The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
5322
+ ),
5248
5323
  configuration: z.object({
5249
- 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."),
5324
+ signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
5325
+ "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."
5326
+ ),
5250
5327
  webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
5251
5328
  expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
5252
5329
  delivery: z.object({
5253
- 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."),
5330
+ suppress: z.boolean().optional().default(false).describe(
5331
+ "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."
5332
+ ),
5254
5333
  template: z.object({
5255
- 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."),
5334
+ id: z.enum(["universal-inbox-claim"]).optional().describe(
5335
+ "The template ID to use for the credential delivery. If not provided, the default template will be used."
5336
+ ),
5256
5337
  model: z.object({
5257
5338
  issuer: z.object({
5258
- name: z.string().optional().describe('The name of the organization (e.g., "State University").'),
5339
+ name: z.string().optional().describe(
5340
+ 'The name of the organization (e.g., "State University").'
5341
+ ),
5259
5342
  logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
5260
5343
  }).optional(),
5261
5344
  credential: z.object({
5262
- name: z.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),
5263
- type: z.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')
5345
+ name: z.string().optional().describe(
5346
+ 'The name of the credential (e.g., "Bachelor of Science").'
5347
+ ),
5348
+ type: z.string().optional().describe(
5349
+ 'The type of the credential (e.g., "degree", "certificate").'
5350
+ )
5264
5351
  }).optional(),
5265
5352
  recipient: z.object({
5266
- name: z.string().optional().describe('The name of the recipient (e.g., "John Doe").')
5353
+ name: z.string().optional().describe(
5354
+ 'The name of the recipient (e.g., "John Doe").'
5355
+ )
5267
5356
  }).optional()
5268
- }).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.")
5269
- }).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")
5270
- }).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.")
5271
- }).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")
5357
+ }).describe(
5358
+ "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."
5359
+ )
5360
+ }).optional().describe(
5361
+ "The template to use for the credential delivery. If not provided, the default template will be used."
5362
+ )
5363
+ }).optional().describe(
5364
+ "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."
5365
+ )
5366
+ }).optional().describe(
5367
+ "Configuration for the credential issuance. If not provided, the default configuration will be used."
5368
+ )
5272
5369
  });
5273
5370
  var IssueInboxCredentialResponseValidator = z.object({
5274
5371
  issuanceId: z.string(),
@@ -5330,6 +5427,191 @@ var require_helpers_cjs_development = __commonJS({
5330
5427
  expiresAt: z.string(),
5331
5428
  used: z.boolean()
5332
5429
  });
5430
+ var TagValidator = z.object({
5431
+ id: z.string(),
5432
+ name: z.string().min(1),
5433
+ slug: z.string().min(1),
5434
+ createdAt: z.string().optional(),
5435
+ updatedAt: z.string().optional()
5436
+ });
5437
+ var SkillStatusEnum = z.enum(["active", "archived"]);
5438
+ var SkillValidator = z.object({
5439
+ id: z.string(),
5440
+ statement: z.string(),
5441
+ description: z.string().optional(),
5442
+ code: z.string().optional(),
5443
+ icon: z.string().optional(),
5444
+ type: z.string().default("skill"),
5445
+ status: SkillStatusEnum.default("active"),
5446
+ frameworkId: z.string().optional(),
5447
+ createdAt: z.string().optional(),
5448
+ updatedAt: z.string().optional()
5449
+ });
5450
+ var BaseSkillQueryValidator = z.object({
5451
+ id: StringQuery,
5452
+ statement: StringQuery,
5453
+ description: StringQuery,
5454
+ code: StringQuery,
5455
+ type: StringQuery,
5456
+ status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
5457
+ }).partial();
5458
+ var SkillQueryValidator = z.union([
5459
+ z.object({
5460
+ $or: BaseSkillQueryValidator.array()
5461
+ }),
5462
+ BaseSkillQueryValidator
5463
+ ]);
5464
+ var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
5465
+ var SkillFrameworkValidator = z.object({
5466
+ id: z.string(),
5467
+ name: z.string(),
5468
+ description: z.string().optional(),
5469
+ image: z.string().optional(),
5470
+ sourceURI: z.string().url().optional(),
5471
+ status: SkillFrameworkStatusEnum.default("active"),
5472
+ createdAt: z.string().optional(),
5473
+ updatedAt: z.string().optional()
5474
+ });
5475
+ var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
5476
+ records: SkillFrameworkValidator.array()
5477
+ });
5478
+ var SkillTreeNodeValidator = SkillValidator.extend({
5479
+ children: z.array(z.lazy(() => SkillTreeNodeValidator)),
5480
+ hasChildren: z.boolean(),
5481
+ childrenCursor: z.string().nullable().optional()
5482
+ }).openapi({ ref: "SkillTreeNode" });
5483
+ var PaginatedSkillTreeValidator = z.object({
5484
+ hasMore: z.boolean(),
5485
+ cursor: z.string().nullable(),
5486
+ records: z.array(SkillTreeNodeValidator)
5487
+ });
5488
+ var SkillTreeNodeInputValidator = z.lazy(
5489
+ () => z.object({
5490
+ id: z.string().optional(),
5491
+ statement: z.string(),
5492
+ description: z.string().optional(),
5493
+ code: z.string().optional(),
5494
+ icon: z.string().optional(),
5495
+ type: z.string().optional(),
5496
+ status: SkillStatusEnum.optional(),
5497
+ children: z.array(SkillTreeNodeInputValidator).optional()
5498
+ })
5499
+ ).openapi({ ref: "SkillTreeNodeInput" });
5500
+ var LinkProviderFrameworkInputValidator = z.object({
5501
+ frameworkId: z.string()
5502
+ });
5503
+ var CreateManagedFrameworkInputValidator = z.object({
5504
+ id: z.string().optional(),
5505
+ name: z.string().min(1),
5506
+ description: z.string().optional(),
5507
+ image: z.string().optional(),
5508
+ sourceURI: z.string().url().optional(),
5509
+ status: SkillFrameworkStatusEnum.optional(),
5510
+ skills: z.array(SkillTreeNodeInputValidator).optional(),
5511
+ boostUris: z.array(z.string()).optional()
5512
+ });
5513
+ var UpdateFrameworkInputValidator = z.object({
5514
+ id: z.string(),
5515
+ name: z.string().min(1).optional(),
5516
+ description: z.string().optional(),
5517
+ image: z.string().optional(),
5518
+ sourceURI: z.string().url().optional(),
5519
+ status: SkillFrameworkStatusEnum.optional()
5520
+ }).refine(
5521
+ (data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
5522
+ {
5523
+ message: "At least one field must be provided to update",
5524
+ path: ["name"]
5525
+ }
5526
+ );
5527
+ var DeleteFrameworkInputValidator = z.object({ id: z.string() });
5528
+ var CreateManagedFrameworkBatchInputValidator = z.object({
5529
+ frameworks: z.array(
5530
+ CreateManagedFrameworkInputValidator.extend({
5531
+ skills: z.array(SkillTreeNodeInputValidator).optional()
5532
+ })
5533
+ ).min(1)
5534
+ });
5535
+ var SkillFrameworkAdminInputValidator = z.object({
5536
+ frameworkId: z.string(),
5537
+ profileId: z.string()
5538
+ });
5539
+ var SkillFrameworkIdInputValidator = z.object({ frameworkId: z.string() });
5540
+ var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
5541
+ var SyncFrameworkInputValidator = z.object({ id: z.string() });
5542
+ var AddTagInputValidator = z.object({
5543
+ slug: z.string().min(1),
5544
+ name: z.string().min(1)
5545
+ });
5546
+ var CreateSkillInputValidator = z.object({
5547
+ frameworkId: z.string(),
5548
+ skill: SkillTreeNodeInputValidator,
5549
+ parentId: z.string().nullable().optional()
5550
+ });
5551
+ var UpdateSkillInputValidator = z.object({
5552
+ frameworkId: z.string(),
5553
+ id: z.string(),
5554
+ statement: z.string().optional(),
5555
+ description: z.string().optional(),
5556
+ code: z.string().optional(),
5557
+ icon: z.string().optional(),
5558
+ type: z.string().optional(),
5559
+ status: SkillStatusEnum.optional()
5560
+ }).refine(
5561
+ (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,
5562
+ {
5563
+ message: "At least one field must be provided to update a skill",
5564
+ path: ["statement"]
5565
+ }
5566
+ );
5567
+ var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
5568
+ var DeleteSkillInputValidator = z.object({
5569
+ frameworkId: z.string(),
5570
+ id: z.string(),
5571
+ strategy: SkillDeletionStrategyValidator.optional().default("reparent")
5572
+ });
5573
+ var CreateSkillsBatchInputValidator = z.object({
5574
+ frameworkId: z.string(),
5575
+ skills: z.array(SkillTreeNodeInputValidator).min(1),
5576
+ parentId: z.string().nullable().optional()
5577
+ });
5578
+ var ReplaceSkillFrameworkSkillsInputValidator = z.object({
5579
+ frameworkId: z.string(),
5580
+ skills: z.array(SkillTreeNodeInputValidator).min(0)
5581
+ });
5582
+ var ReplaceSkillFrameworkSkillsResultValidator = z.object({
5583
+ created: z.number().int().min(0),
5584
+ updated: z.number().int().min(0),
5585
+ deleted: z.number().int().min(0),
5586
+ unchanged: z.number().int().min(0),
5587
+ total: z.number().int().min(0)
5588
+ });
5589
+ var CountSkillsInputValidator = z.object({
5590
+ frameworkId: z.string(),
5591
+ skillId: z.string().optional(),
5592
+ recursive: z.boolean().optional().default(false),
5593
+ onlyCountCompetencies: z.boolean().optional().default(false)
5594
+ });
5595
+ var CountSkillsResultValidator = z.object({
5596
+ count: z.number().int().min(0)
5597
+ });
5598
+ var GetFullSkillTreeInputValidator = z.object({
5599
+ frameworkId: z.string()
5600
+ });
5601
+ var GetFullSkillTreeResultValidator = z.object({
5602
+ skills: z.array(SkillTreeNodeValidator)
5603
+ });
5604
+ var GetSkillPathInputValidator = z.object({
5605
+ frameworkId: z.string(),
5606
+ skillId: z.string()
5607
+ });
5608
+ var GetSkillPathResultValidator = z.object({
5609
+ path: z.array(SkillValidator)
5610
+ });
5611
+ var FrameworkWithSkillsValidator = z.object({
5612
+ framework: SkillFrameworkValidator,
5613
+ skills: PaginatedSkillTreeValidator
5614
+ });
5333
5615
  }
5334
5616
  });
5335
5617
  var require_dist2 = __commonJS2({
@@ -5347,7 +5629,8 @@ var require_helpers_cjs_development = __commonJS({
5347
5629
  RegExpTransformer: () => RegExpTransformer2,
5348
5630
  isEncrypted: () => isEncrypted,
5349
5631
  isHex: () => isHex,
5350
- isVC2Format: () => isVC2Format
5632
+ isVC2Format: () => isVC2Format,
5633
+ unwrapBoostCredential: () => unwrapBoostCredential
5351
5634
  });
5352
5635
  module.exports = __toCommonJS(src_exports);
5353
5636
  var import_types = __toESM2(require_dist2());
@@ -5388,6 +5671,13 @@ var require_helpers_cjs_development = __commonJS({
5388
5671
  }
5389
5672
  return credential["@context"].includes("https://www.w3.org/ns/credentials/v2");
5390
5673
  }, "isVC2Format");
5674
+ var unwrapBoostCredential = /* @__PURE__ */ __name2((vc) => {
5675
+ if (vc?.type?.includes("CertifiedBoostCredential") && vc?.boostCredential) {
5676
+ return vc.boostCredential;
5677
+ } else {
5678
+ return vc;
5679
+ }
5680
+ }, "unwrapBoostCredential");
5391
5681
  }
5392
5682
  });
5393
5683