@learncard/helpers 1.1.29 → 1.1.30

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.
@@ -56,6 +56,7 @@ var require_types_cjs_development = __commonJS({
56
56
  AchievementSubjectValidator: () => AchievementSubjectValidator,
57
57
  AchievementTypeValidator: () => AchievementTypeValidator,
58
58
  AchievementValidator: () => AchievementValidator,
59
+ AddTagInputValidator: () => AddTagInputValidator,
59
60
  AddressValidator: () => AddressValidator,
60
61
  AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator,
61
62
  AlignmentValidator: () => AlignmentValidator,
@@ -95,14 +96,22 @@ var require_types_cjs_development = __commonJS({
95
96
  ContactMethodVerificationValidator: () => ContactMethodVerificationValidator,
96
97
  ContextValidator: () => ContextValidator,
97
98
  ContractCredentialValidator: () => ContractCredentialValidator,
99
+ CountSkillsInputValidator: () => CountSkillsInputValidator,
100
+ CountSkillsResultValidator: () => CountSkillsResultValidator,
98
101
  CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator,
99
102
  CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator,
103
+ CreateManagedFrameworkBatchInputValidator: () => CreateManagedFrameworkBatchInputValidator,
104
+ CreateManagedFrameworkInputValidator: () => CreateManagedFrameworkInputValidator,
105
+ CreateSkillInputValidator: () => CreateSkillInputValidator,
106
+ CreateSkillsBatchInputValidator: () => CreateSkillsBatchInputValidator,
100
107
  CredentialInfoValidator: () => CredentialInfoValidator,
101
108
  CredentialRecordValidator: () => CredentialRecordValidator,
102
109
  CredentialSchemaValidator: () => CredentialSchemaValidator,
103
110
  CredentialStatusValidator: () => CredentialStatusValidator,
104
111
  CredentialSubjectValidator: () => CredentialSubjectValidator,
105
112
  CriteriaValidator: () => CriteriaValidator,
113
+ DeleteFrameworkInputValidator: () => DeleteFrameworkInputValidator,
114
+ DeleteSkillInputValidator: () => DeleteSkillInputValidator,
106
115
  DidDocumentValidator: () => DidDocumentValidator,
107
116
  EncryptedCredentialRecordValidator: () => EncryptedCredentialRecordValidator,
108
117
  EncryptedRecordValidator: () => EncryptedRecordValidator,
@@ -110,8 +119,13 @@ var require_types_cjs_development = __commonJS({
110
119
  EndorsementSubjectValidator: () => EndorsementSubjectValidator,
111
120
  EvidenceValidator: () => EvidenceValidator,
112
121
  FlatAuthGrantValidator: () => FlatAuthGrantValidator,
122
+ FrameworkWithSkillsValidator: () => FrameworkWithSkillsValidator,
113
123
  FullClaimHookValidator: () => FullClaimHookValidator,
114
124
  GeoCoordinatesValidator: () => GeoCoordinatesValidator,
125
+ GetFullSkillTreeInputValidator: () => GetFullSkillTreeInputValidator,
126
+ GetFullSkillTreeResultValidator: () => GetFullSkillTreeResultValidator,
127
+ GetSkillPathInputValidator: () => GetSkillPathInputValidator,
128
+ GetSkillPathResultValidator: () => GetSkillPathResultValidator,
115
129
  IdentifierEntryValidator: () => IdentifierEntryValidator,
116
130
  IdentifierTypeValidator: () => IdentifierTypeValidator,
117
131
  IdentityObjectValidator: () => IdentityObjectValidator,
@@ -150,6 +164,7 @@ var require_types_cjs_development = __commonJS({
150
164
  LCNProfileValidator: () => LCNProfileValidator,
151
165
  LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator,
152
166
  LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
167
+ LinkProviderFrameworkInputValidator: () => LinkProviderFrameworkInputValidator,
153
168
  PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator,
154
169
  PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator,
155
170
  PaginatedBoostsValidator: () => PaginatedBoostsValidator,
@@ -167,6 +182,8 @@ var require_types_cjs_development = __commonJS({
167
182
  PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator,
168
183
  PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator,
169
184
  PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
185
+ PaginatedSkillFrameworksValidator: () => PaginatedSkillFrameworksValidator,
186
+ PaginatedSkillTreeValidator: () => PaginatedSkillTreeValidator,
170
187
  PaginationOptionsValidator: () => PaginationOptionsValidator,
171
188
  PaginationResponseValidator: () => PaginationResponseValidator,
172
189
  ProfileValidator: () => ProfileValidator,
@@ -174,6 +191,8 @@ var require_types_cjs_development = __commonJS({
174
191
  RefreshServiceValidator: () => RefreshServiceValidator,
175
192
  RegExpValidator: () => RegExpValidator,
176
193
  RelatedValidator: () => RelatedValidator,
194
+ ReplaceSkillFrameworkSkillsInputValidator: () => ReplaceSkillFrameworkSkillsInputValidator,
195
+ ReplaceSkillFrameworkSkillsResultValidator: () => ReplaceSkillFrameworkSkillsResultValidator,
177
196
  ResultDescriptionValidator: () => ResultDescriptionValidator,
178
197
  ResultStatusTypeValidator: () => ResultStatusTypeValidator,
179
198
  ResultTypeValidator: () => ResultTypeValidator,
@@ -182,11 +201,27 @@ var require_types_cjs_development = __commonJS({
182
201
  SentCredentialInfoValidator: () => SentCredentialInfoValidator,
183
202
  ServiceValidator: () => ServiceValidator,
184
203
  SetPrimaryContactMethodValidator: () => SetPrimaryContactMethodValidator,
204
+ SkillDeletionStrategyValidator: () => SkillDeletionStrategyValidator,
205
+ SkillFrameworkAdminInputValidator: () => SkillFrameworkAdminInputValidator,
206
+ SkillFrameworkAdminsValidator: () => SkillFrameworkAdminsValidator,
207
+ SkillFrameworkIdInputValidator: () => SkillFrameworkIdInputValidator,
208
+ SkillFrameworkQueryValidator: () => SkillFrameworkQueryValidator,
209
+ SkillFrameworkStatusEnum: () => SkillFrameworkStatusEnum,
210
+ SkillFrameworkValidator: () => SkillFrameworkValidator,
211
+ SkillQueryValidator: () => SkillQueryValidator,
212
+ SkillStatusEnum: () => SkillStatusEnum,
213
+ SkillTreeNodeInputValidator: () => SkillTreeNodeInputValidator,
214
+ SkillTreeNodeValidator: () => SkillTreeNodeValidator,
215
+ SkillValidator: () => SkillValidator,
185
216
  StringQuery: () => StringQuery,
217
+ SyncFrameworkInputValidator: () => SyncFrameworkInputValidator,
218
+ TagValidator: () => TagValidator,
186
219
  TermsOfUseValidator: () => TermsOfUseValidator,
187
220
  UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator,
188
221
  UnsignedVCValidator: () => UnsignedVCValidator,
189
222
  UnsignedVPValidator: () => UnsignedVPValidator,
223
+ UpdateFrameworkInputValidator: () => UpdateFrameworkInputValidator,
224
+ UpdateSkillInputValidator: () => UpdateSkillInputValidator,
190
225
  VC2EvidenceValidator: () => VC2EvidenceValidator,
191
226
  VCValidator: () => VCValidator,
192
227
  VPValidator: () => VPValidator,
@@ -4646,7 +4681,14 @@ var require_types_cjs_development = __commonJS({
4646
4681
  }
4647
4682
  })
4648
4683
  );
4649
- var StringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
4684
+ var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
4685
+ var StringQuery = z.union([
4686
+ BaseStringQuery,
4687
+ z.object({
4688
+ $or: BaseStringQuery.array()
4689
+ })
4690
+ ]);
4691
+ extendZodWithOpenApi(z);
4650
4692
  var LCNProfileDisplayValidator = z.object({
4651
4693
  backgroundColor: z.string().optional(),
4652
4694
  backgroundImage: z.string().optional(),
@@ -4804,7 +4846,7 @@ var require_types_cjs_development = __commonJS({
4804
4846
  claimPermissions: BoostPermissionsValidator.optional(),
4805
4847
  allowAnyoneToCreateChildren: z.boolean().optional()
4806
4848
  });
4807
- var BoostQueryValidator = z.object({
4849
+ var BaseBoostQueryValidator = z.object({
4808
4850
  uri: StringQuery,
4809
4851
  name: StringQuery,
4810
4852
  type: StringQuery,
@@ -4813,6 +4855,12 @@ var require_types_cjs_development = __commonJS({
4813
4855
  status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
4814
4856
  autoConnectRecipients: z.boolean()
4815
4857
  }).partial();
4858
+ var BoostQueryValidator = z.union([
4859
+ z.object({
4860
+ $or: BaseBoostQueryValidator.array()
4861
+ }),
4862
+ BaseBoostQueryValidator
4863
+ ]);
4816
4864
  var PaginatedBoostsValidator = PaginationResponseValidator.extend({
4817
4865
  records: BoostValidator.array()
4818
4866
  });
@@ -4868,11 +4916,25 @@ var require_types_cjs_development = __commonJS({
4868
4916
  var ConsentFlowContractValidator = z.object({
4869
4917
  read: z.object({
4870
4918
  anonymize: z.boolean().optional(),
4871
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
4919
+ credentials: z.object({
4920
+ categories: z.record(
4921
+ z.object({
4922
+ required: z.boolean(),
4923
+ defaultEnabled: z.boolean().optional()
4924
+ })
4925
+ ).default({})
4926
+ }).default({}),
4872
4927
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
4873
4928
  }).default({}),
4874
4929
  write: z.object({
4875
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
4930
+ credentials: z.object({
4931
+ categories: z.record(
4932
+ z.object({
4933
+ required: z.boolean(),
4934
+ defaultEnabled: z.boolean().optional()
4935
+ })
4936
+ ).default({})
4937
+ }).default({}),
4876
4938
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
4877
4939
  }).default({})
4878
4940
  });
@@ -5015,6 +5077,17 @@ var require_types_cjs_development = __commonJS({
5015
5077
  var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
5016
5078
  records: ConsentFlowTransactionValidator.array()
5017
5079
  });
5080
+ var BaseSkillFrameworkQueryValidator = z.object({
5081
+ id: StringQuery,
5082
+ name: StringQuery,
5083
+ description: StringQuery,
5084
+ sourceURI: StringQuery,
5085
+ status: StringQuery
5086
+ }).partial();
5087
+ var SkillFrameworkQueryValidator = z.union([
5088
+ z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
5089
+ BaseSkillFrameworkQueryValidator
5090
+ ]);
5018
5091
  var ContractCredentialValidator = z.object({
5019
5092
  credentialUri: z.string(),
5020
5093
  termsUri: z.string(),
@@ -5193,31 +5266,55 @@ var require_types_cjs_development = __commonJS({
5193
5266
  });
5194
5267
  var IssueInboxCredentialValidator = z.object({
5195
5268
  recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
5196
- 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."),
5269
+ credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
5270
+ "The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
5271
+ ),
5197
5272
  configuration: z.object({
5198
- 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."),
5273
+ signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
5274
+ "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."
5275
+ ),
5199
5276
  webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
5200
5277
  expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
5201
5278
  delivery: z.object({
5202
- 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."),
5279
+ suppress: z.boolean().optional().default(false).describe(
5280
+ "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."
5281
+ ),
5203
5282
  template: z.object({
5204
- 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."),
5283
+ id: z.enum(["universal-inbox-claim"]).optional().describe(
5284
+ "The template ID to use for the credential delivery. If not provided, the default template will be used."
5285
+ ),
5205
5286
  model: z.object({
5206
5287
  issuer: z.object({
5207
- name: z.string().optional().describe('The name of the organization (e.g., "State University").'),
5288
+ name: z.string().optional().describe(
5289
+ 'The name of the organization (e.g., "State University").'
5290
+ ),
5208
5291
  logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
5209
5292
  }).optional(),
5210
5293
  credential: z.object({
5211
- name: z.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),
5212
- type: z.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')
5294
+ name: z.string().optional().describe(
5295
+ 'The name of the credential (e.g., "Bachelor of Science").'
5296
+ ),
5297
+ type: z.string().optional().describe(
5298
+ 'The type of the credential (e.g., "degree", "certificate").'
5299
+ )
5213
5300
  }).optional(),
5214
5301
  recipient: z.object({
5215
- name: z.string().optional().describe('The name of the recipient (e.g., "John Doe").')
5302
+ name: z.string().optional().describe(
5303
+ 'The name of the recipient (e.g., "John Doe").'
5304
+ )
5216
5305
  }).optional()
5217
- }).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.")
5218
- }).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")
5219
- }).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.")
5220
- }).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")
5306
+ }).describe(
5307
+ "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."
5308
+ )
5309
+ }).optional().describe(
5310
+ "The template to use for the credential delivery. If not provided, the default template will be used."
5311
+ )
5312
+ }).optional().describe(
5313
+ "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."
5314
+ )
5315
+ }).optional().describe(
5316
+ "Configuration for the credential issuance. If not provided, the default configuration will be used."
5317
+ )
5221
5318
  });
5222
5319
  var IssueInboxCredentialResponseValidator = z.object({
5223
5320
  issuanceId: z.string(),
@@ -5279,6 +5376,191 @@ var require_types_cjs_development = __commonJS({
5279
5376
  expiresAt: z.string(),
5280
5377
  used: z.boolean()
5281
5378
  });
5379
+ var TagValidator = z.object({
5380
+ id: z.string(),
5381
+ name: z.string().min(1),
5382
+ slug: z.string().min(1),
5383
+ createdAt: z.string().optional(),
5384
+ updatedAt: z.string().optional()
5385
+ });
5386
+ var SkillStatusEnum = z.enum(["active", "archived"]);
5387
+ var SkillValidator = z.object({
5388
+ id: z.string(),
5389
+ statement: z.string(),
5390
+ description: z.string().optional(),
5391
+ code: z.string().optional(),
5392
+ icon: z.string().optional(),
5393
+ type: z.string().default("skill"),
5394
+ status: SkillStatusEnum.default("active"),
5395
+ frameworkId: z.string().optional(),
5396
+ createdAt: z.string().optional(),
5397
+ updatedAt: z.string().optional()
5398
+ });
5399
+ var BaseSkillQueryValidator = z.object({
5400
+ id: StringQuery,
5401
+ statement: StringQuery,
5402
+ description: StringQuery,
5403
+ code: StringQuery,
5404
+ type: StringQuery,
5405
+ status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
5406
+ }).partial();
5407
+ var SkillQueryValidator = z.union([
5408
+ z.object({
5409
+ $or: BaseSkillQueryValidator.array()
5410
+ }),
5411
+ BaseSkillQueryValidator
5412
+ ]);
5413
+ var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
5414
+ var SkillFrameworkValidator = z.object({
5415
+ id: z.string(),
5416
+ name: z.string(),
5417
+ description: z.string().optional(),
5418
+ image: z.string().optional(),
5419
+ sourceURI: z.string().url().optional(),
5420
+ status: SkillFrameworkStatusEnum.default("active"),
5421
+ createdAt: z.string().optional(),
5422
+ updatedAt: z.string().optional()
5423
+ });
5424
+ var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
5425
+ records: SkillFrameworkValidator.array()
5426
+ });
5427
+ var SkillTreeNodeValidator = SkillValidator.extend({
5428
+ children: z.array(z.lazy(() => SkillTreeNodeValidator)),
5429
+ hasChildren: z.boolean(),
5430
+ childrenCursor: z.string().nullable().optional()
5431
+ }).openapi({ ref: "SkillTreeNode" });
5432
+ var PaginatedSkillTreeValidator = z.object({
5433
+ hasMore: z.boolean(),
5434
+ cursor: z.string().nullable(),
5435
+ records: z.array(SkillTreeNodeValidator)
5436
+ });
5437
+ var SkillTreeNodeInputValidator = z.lazy(
5438
+ () => z.object({
5439
+ id: z.string().optional(),
5440
+ statement: z.string(),
5441
+ description: z.string().optional(),
5442
+ code: z.string().optional(),
5443
+ icon: z.string().optional(),
5444
+ type: z.string().optional(),
5445
+ status: SkillStatusEnum.optional(),
5446
+ children: z.array(SkillTreeNodeInputValidator).optional()
5447
+ })
5448
+ ).openapi({ ref: "SkillTreeNodeInput" });
5449
+ var LinkProviderFrameworkInputValidator = z.object({
5450
+ frameworkId: z.string()
5451
+ });
5452
+ var CreateManagedFrameworkInputValidator = z.object({
5453
+ id: z.string().optional(),
5454
+ name: z.string().min(1),
5455
+ description: z.string().optional(),
5456
+ image: z.string().optional(),
5457
+ sourceURI: z.string().url().optional(),
5458
+ status: SkillFrameworkStatusEnum.optional(),
5459
+ skills: z.array(SkillTreeNodeInputValidator).optional(),
5460
+ boostUris: z.array(z.string()).optional()
5461
+ });
5462
+ var UpdateFrameworkInputValidator = z.object({
5463
+ id: z.string(),
5464
+ name: z.string().min(1).optional(),
5465
+ description: z.string().optional(),
5466
+ image: z.string().optional(),
5467
+ sourceURI: z.string().url().optional(),
5468
+ status: SkillFrameworkStatusEnum.optional()
5469
+ }).refine(
5470
+ (data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
5471
+ {
5472
+ message: "At least one field must be provided to update",
5473
+ path: ["name"]
5474
+ }
5475
+ );
5476
+ var DeleteFrameworkInputValidator = z.object({ id: z.string() });
5477
+ var CreateManagedFrameworkBatchInputValidator = z.object({
5478
+ frameworks: z.array(
5479
+ CreateManagedFrameworkInputValidator.extend({
5480
+ skills: z.array(SkillTreeNodeInputValidator).optional()
5481
+ })
5482
+ ).min(1)
5483
+ });
5484
+ var SkillFrameworkAdminInputValidator = z.object({
5485
+ frameworkId: z.string(),
5486
+ profileId: z.string()
5487
+ });
5488
+ var SkillFrameworkIdInputValidator = z.object({ frameworkId: z.string() });
5489
+ var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
5490
+ var SyncFrameworkInputValidator = z.object({ id: z.string() });
5491
+ var AddTagInputValidator = z.object({
5492
+ slug: z.string().min(1),
5493
+ name: z.string().min(1)
5494
+ });
5495
+ var CreateSkillInputValidator = z.object({
5496
+ frameworkId: z.string(),
5497
+ skill: SkillTreeNodeInputValidator,
5498
+ parentId: z.string().nullable().optional()
5499
+ });
5500
+ var UpdateSkillInputValidator = z.object({
5501
+ frameworkId: z.string(),
5502
+ id: z.string(),
5503
+ statement: z.string().optional(),
5504
+ description: z.string().optional(),
5505
+ code: z.string().optional(),
5506
+ icon: z.string().optional(),
5507
+ type: z.string().optional(),
5508
+ status: SkillStatusEnum.optional()
5509
+ }).refine(
5510
+ (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,
5511
+ {
5512
+ message: "At least one field must be provided to update a skill",
5513
+ path: ["statement"]
5514
+ }
5515
+ );
5516
+ var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
5517
+ var DeleteSkillInputValidator = z.object({
5518
+ frameworkId: z.string(),
5519
+ id: z.string(),
5520
+ strategy: SkillDeletionStrategyValidator.optional().default("reparent")
5521
+ });
5522
+ var CreateSkillsBatchInputValidator = z.object({
5523
+ frameworkId: z.string(),
5524
+ skills: z.array(SkillTreeNodeInputValidator).min(1),
5525
+ parentId: z.string().nullable().optional()
5526
+ });
5527
+ var ReplaceSkillFrameworkSkillsInputValidator = z.object({
5528
+ frameworkId: z.string(),
5529
+ skills: z.array(SkillTreeNodeInputValidator).min(0)
5530
+ });
5531
+ var ReplaceSkillFrameworkSkillsResultValidator = z.object({
5532
+ created: z.number().int().min(0),
5533
+ updated: z.number().int().min(0),
5534
+ deleted: z.number().int().min(0),
5535
+ unchanged: z.number().int().min(0),
5536
+ total: z.number().int().min(0)
5537
+ });
5538
+ var CountSkillsInputValidator = z.object({
5539
+ frameworkId: z.string(),
5540
+ skillId: z.string().optional(),
5541
+ recursive: z.boolean().optional().default(false),
5542
+ onlyCountCompetencies: z.boolean().optional().default(false)
5543
+ });
5544
+ var CountSkillsResultValidator = z.object({
5545
+ count: z.number().int().min(0)
5546
+ });
5547
+ var GetFullSkillTreeInputValidator = z.object({
5548
+ frameworkId: z.string()
5549
+ });
5550
+ var GetFullSkillTreeResultValidator = z.object({
5551
+ skills: z.array(SkillTreeNodeValidator)
5552
+ });
5553
+ var GetSkillPathInputValidator = z.object({
5554
+ frameworkId: z.string(),
5555
+ skillId: z.string()
5556
+ });
5557
+ var GetSkillPathResultValidator = z.object({
5558
+ path: z.array(SkillValidator)
5559
+ });
5560
+ var FrameworkWithSkillsValidator = z.object({
5561
+ framework: SkillFrameworkValidator,
5562
+ skills: PaginatedSkillTreeValidator
5563
+ });
5282
5564
  }
5283
5565
  });
5284
5566
 
@@ -5300,7 +5582,8 @@ __export(src_exports, {
5300
5582
  RegExpTransformer: () => RegExpTransformer,
5301
5583
  isEncrypted: () => isEncrypted,
5302
5584
  isHex: () => isHex,
5303
- isVC2Format: () => isVC2Format
5585
+ isVC2Format: () => isVC2Format,
5586
+ unwrapBoostCredential: () => unwrapBoostCredential
5304
5587
  });
5305
5588
  module.exports = __toCommonJS(src_exports);
5306
5589
  var import_types = __toESM(require_dist());
@@ -5341,3 +5624,10 @@ var isVC2Format = /* @__PURE__ */ __name((credential) => {
5341
5624
  }
5342
5625
  return credential["@context"].includes("https://www.w3.org/ns/credentials/v2");
5343
5626
  }, "isVC2Format");
5627
+ var unwrapBoostCredential = /* @__PURE__ */ __name((vc) => {
5628
+ if (vc?.type?.includes("CertifiedBoostCredential") && vc?.boostCredential) {
5629
+ return vc.boostCredential;
5630
+ } else {
5631
+ return vc;
5632
+ }
5633
+ }, "unwrapBoostCredential");