@learncard/didkey-plugin 1.0.51 → 1.0.53

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.
@@ -66,6 +66,7 @@ var require_types_cjs_development = __commonJS({
66
66
  AchievementSubjectValidator: () => AchievementSubjectValidator,
67
67
  AchievementTypeValidator: () => AchievementTypeValidator,
68
68
  AchievementValidator: () => AchievementValidator,
69
+ AddTagInputValidator: () => AddTagInputValidator,
69
70
  AddressValidator: () => AddressValidator,
70
71
  AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator,
71
72
  AlignmentValidator: () => AlignmentValidator,
@@ -82,6 +83,7 @@ var require_types_cjs_development = __commonJS({
82
83
  ClaimHookQueryValidator: () => ClaimHookQueryValidator,
83
84
  ClaimHookTypeValidator: () => ClaimHookTypeValidator,
84
85
  ClaimHookValidator: () => ClaimHookValidator,
86
+ ClaimInboxCredentialValidator: () => ClaimInboxCredentialValidator,
85
87
  ClaimTokenValidator: () => ClaimTokenValidator,
86
88
  ConsentFlowContractDataForDidValidator: () => ConsentFlowContractDataForDidValidator,
87
89
  ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator,
@@ -104,12 +106,22 @@ var require_types_cjs_development = __commonJS({
104
106
  ContactMethodVerificationValidator: () => ContactMethodVerificationValidator,
105
107
  ContextValidator: () => ContextValidator,
106
108
  ContractCredentialValidator: () => ContractCredentialValidator,
109
+ CountSkillsInputValidator: () => CountSkillsInputValidator,
110
+ CountSkillsResultValidator: () => CountSkillsResultValidator,
111
+ CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator,
112
+ CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator,
113
+ CreateManagedFrameworkBatchInputValidator: () => CreateManagedFrameworkBatchInputValidator,
114
+ CreateManagedFrameworkInputValidator: () => CreateManagedFrameworkInputValidator,
115
+ CreateSkillInputValidator: () => CreateSkillInputValidator,
116
+ CreateSkillsBatchInputValidator: () => CreateSkillsBatchInputValidator,
107
117
  CredentialInfoValidator: () => CredentialInfoValidator,
108
118
  CredentialRecordValidator: () => CredentialRecordValidator,
109
119
  CredentialSchemaValidator: () => CredentialSchemaValidator,
110
120
  CredentialStatusValidator: () => CredentialStatusValidator,
111
121
  CredentialSubjectValidator: () => CredentialSubjectValidator,
112
122
  CriteriaValidator: () => CriteriaValidator,
123
+ DeleteFrameworkInputValidator: () => DeleteFrameworkInputValidator,
124
+ DeleteSkillInputValidator: () => DeleteSkillInputValidator,
113
125
  DidDocumentValidator: () => DidDocumentValidator,
114
126
  EncryptedCredentialRecordValidator: () => EncryptedCredentialRecordValidator,
115
127
  EncryptedRecordValidator: () => EncryptedRecordValidator,
@@ -117,8 +129,13 @@ var require_types_cjs_development = __commonJS({
117
129
  EndorsementSubjectValidator: () => EndorsementSubjectValidator,
118
130
  EvidenceValidator: () => EvidenceValidator,
119
131
  FlatAuthGrantValidator: () => FlatAuthGrantValidator,
132
+ FrameworkWithSkillsValidator: () => FrameworkWithSkillsValidator,
120
133
  FullClaimHookValidator: () => FullClaimHookValidator,
121
134
  GeoCoordinatesValidator: () => GeoCoordinatesValidator,
135
+ GetFullSkillTreeInputValidator: () => GetFullSkillTreeInputValidator,
136
+ GetFullSkillTreeResultValidator: () => GetFullSkillTreeResultValidator,
137
+ GetSkillPathInputValidator: () => GetSkillPathInputValidator,
138
+ GetSkillPathResultValidator: () => GetSkillPathResultValidator,
122
139
  IdentifierEntryValidator: () => IdentifierEntryValidator,
123
140
  IdentifierTypeValidator: () => IdentifierTypeValidator,
124
141
  IdentityObjectValidator: () => IdentityObjectValidator,
@@ -137,8 +154,13 @@ var require_types_cjs_development = __commonJS({
137
154
  LCNBoostClaimLinkOptionsValidator: () => LCNBoostClaimLinkOptionsValidator,
138
155
  LCNBoostClaimLinkSigningAuthorityValidator: () => LCNBoostClaimLinkSigningAuthorityValidator,
139
156
  LCNBoostStatus: () => LCNBoostStatus,
157
+ LCNDomainOrOriginValidator: () => LCNDomainOrOriginValidator,
140
158
  LCNInboxContactMethodValidator: () => LCNInboxContactMethodValidator,
141
159
  LCNInboxStatusEnumValidator: () => LCNInboxStatusEnumValidator,
160
+ LCNIntegrationCreateValidator: () => LCNIntegrationCreateValidator,
161
+ LCNIntegrationQueryValidator: () => LCNIntegrationQueryValidator,
162
+ LCNIntegrationUpdateValidator: () => LCNIntegrationUpdateValidator,
163
+ LCNIntegrationValidator: () => LCNIntegrationValidator,
142
164
  LCNNotificationDataValidator: () => LCNNotificationDataValidator,
143
165
  LCNNotificationInboxValidator: () => LCNNotificationInboxValidator,
144
166
  LCNNotificationMessageValidator: () => LCNNotificationMessageValidator,
@@ -152,6 +174,7 @@ var require_types_cjs_development = __commonJS({
152
174
  LCNProfileValidator: () => LCNProfileValidator,
153
175
  LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator,
154
176
  LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
177
+ LinkProviderFrameworkInputValidator: () => LinkProviderFrameworkInputValidator,
155
178
  PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator,
156
179
  PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator,
157
180
  PaginatedBoostsValidator: () => PaginatedBoostsValidator,
@@ -165,9 +188,12 @@ var require_types_cjs_development = __commonJS({
165
188
  PaginatedEncryptedCredentialRecordsValidator: () => PaginatedEncryptedCredentialRecordsValidator,
166
189
  PaginatedEncryptedRecordsValidator: () => PaginatedEncryptedRecordsValidator,
167
190
  PaginatedInboxCredentialsValidator: () => PaginatedInboxCredentialsValidator,
191
+ PaginatedLCNIntegrationsValidator: () => PaginatedLCNIntegrationsValidator,
168
192
  PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator,
169
193
  PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator,
170
194
  PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
195
+ PaginatedSkillFrameworksValidator: () => PaginatedSkillFrameworksValidator,
196
+ PaginatedSkillTreeValidator: () => PaginatedSkillTreeValidator,
171
197
  PaginationOptionsValidator: () => PaginationOptionsValidator,
172
198
  PaginationResponseValidator: () => PaginationResponseValidator,
173
199
  ProfileValidator: () => ProfileValidator,
@@ -175,6 +201,8 @@ var require_types_cjs_development = __commonJS({
175
201
  RefreshServiceValidator: () => RefreshServiceValidator,
176
202
  RegExpValidator: () => RegExpValidator,
177
203
  RelatedValidator: () => RelatedValidator,
204
+ ReplaceSkillFrameworkSkillsInputValidator: () => ReplaceSkillFrameworkSkillsInputValidator,
205
+ ReplaceSkillFrameworkSkillsResultValidator: () => ReplaceSkillFrameworkSkillsResultValidator,
178
206
  ResultDescriptionValidator: () => ResultDescriptionValidator,
179
207
  ResultStatusTypeValidator: () => ResultStatusTypeValidator,
180
208
  ResultTypeValidator: () => ResultTypeValidator,
@@ -183,11 +211,27 @@ var require_types_cjs_development = __commonJS({
183
211
  SentCredentialInfoValidator: () => SentCredentialInfoValidator,
184
212
  ServiceValidator: () => ServiceValidator,
185
213
  SetPrimaryContactMethodValidator: () => SetPrimaryContactMethodValidator,
214
+ SkillDeletionStrategyValidator: () => SkillDeletionStrategyValidator,
215
+ SkillFrameworkAdminInputValidator: () => SkillFrameworkAdminInputValidator,
216
+ SkillFrameworkAdminsValidator: () => SkillFrameworkAdminsValidator,
217
+ SkillFrameworkIdInputValidator: () => SkillFrameworkIdInputValidator,
218
+ SkillFrameworkQueryValidator: () => SkillFrameworkQueryValidator,
219
+ SkillFrameworkStatusEnum: () => SkillFrameworkStatusEnum,
220
+ SkillFrameworkValidator: () => SkillFrameworkValidator,
221
+ SkillQueryValidator: () => SkillQueryValidator,
222
+ SkillStatusEnum: () => SkillStatusEnum,
223
+ SkillTreeNodeInputValidator: () => SkillTreeNodeInputValidator,
224
+ SkillTreeNodeValidator: () => SkillTreeNodeValidator,
225
+ SkillValidator: () => SkillValidator,
186
226
  StringQuery: () => StringQuery,
227
+ SyncFrameworkInputValidator: () => SyncFrameworkInputValidator,
228
+ TagValidator: () => TagValidator,
187
229
  TermsOfUseValidator: () => TermsOfUseValidator,
188
230
  UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator,
189
231
  UnsignedVCValidator: () => UnsignedVCValidator,
190
232
  UnsignedVPValidator: () => UnsignedVPValidator,
233
+ UpdateFrameworkInputValidator: () => UpdateFrameworkInputValidator,
234
+ UpdateSkillInputValidator: () => UpdateSkillInputValidator,
191
235
  VC2EvidenceValidator: () => VC2EvidenceValidator,
192
236
  VCValidator: () => VCValidator,
193
237
  VPValidator: () => VPValidator,
@@ -4670,7 +4714,14 @@ var require_types_cjs_development = __commonJS({
4670
4714
  }
4671
4715
  })
4672
4716
  );
4673
- var StringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
4717
+ var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
4718
+ var StringQuery = z.union([
4719
+ BaseStringQuery,
4720
+ z.object({
4721
+ $or: BaseStringQuery.array()
4722
+ })
4723
+ ]);
4724
+ extendZodWithOpenApi(z);
4674
4725
  var LCNProfileDisplayValidator = z.object({
4675
4726
  backgroundColor: z.string().optional(),
4676
4727
  backgroundImage: z.string().optional(),
@@ -4828,7 +4879,7 @@ var require_types_cjs_development = __commonJS({
4828
4879
  claimPermissions: BoostPermissionsValidator.optional(),
4829
4880
  allowAnyoneToCreateChildren: z.boolean().optional()
4830
4881
  });
4831
- var BoostQueryValidator = z.object({
4882
+ var BaseBoostQueryValidator = z.object({
4832
4883
  uri: StringQuery,
4833
4884
  name: StringQuery,
4834
4885
  type: StringQuery,
@@ -4837,6 +4888,12 @@ var require_types_cjs_development = __commonJS({
4837
4888
  status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
4838
4889
  autoConnectRecipients: z.boolean()
4839
4890
  }).partial();
4891
+ var BoostQueryValidator = z.union([
4892
+ z.object({
4893
+ $or: BaseBoostQueryValidator.array()
4894
+ }),
4895
+ BaseBoostQueryValidator
4896
+ ]);
4840
4897
  var PaginatedBoostsValidator = PaginationResponseValidator.extend({
4841
4898
  records: BoostValidator.array()
4842
4899
  });
@@ -4892,11 +4949,25 @@ var require_types_cjs_development = __commonJS({
4892
4949
  var ConsentFlowContractValidator = z.object({
4893
4950
  read: z.object({
4894
4951
  anonymize: z.boolean().optional(),
4895
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
4952
+ credentials: z.object({
4953
+ categories: z.record(
4954
+ z.object({
4955
+ required: z.boolean(),
4956
+ defaultEnabled: z.boolean().optional()
4957
+ })
4958
+ ).default({})
4959
+ }).default({}),
4896
4960
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
4897
4961
  }).default({}),
4898
4962
  write: z.object({
4899
- credentials: z.object({ categories: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({}) }).default({}),
4963
+ credentials: z.object({
4964
+ categories: z.record(
4965
+ z.object({
4966
+ required: z.boolean(),
4967
+ defaultEnabled: z.boolean().optional()
4968
+ })
4969
+ ).default({})
4970
+ }).default({}),
4900
4971
  personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
4901
4972
  }).default({})
4902
4973
  });
@@ -5039,6 +5110,17 @@ var require_types_cjs_development = __commonJS({
5039
5110
  var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
5040
5111
  records: ConsentFlowTransactionValidator.array()
5041
5112
  });
5113
+ var BaseSkillFrameworkQueryValidator = z.object({
5114
+ id: StringQuery,
5115
+ name: StringQuery,
5116
+ description: StringQuery,
5117
+ sourceURI: StringQuery,
5118
+ status: StringQuery
5119
+ }).partial();
5120
+ var SkillFrameworkQueryValidator = z.union([
5121
+ z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
5122
+ BaseSkillFrameworkQueryValidator
5123
+ ]);
5042
5124
  var ContractCredentialValidator = z.object({
5043
5125
  credentialUri: z.string(),
5044
5126
  termsUri: z.string(),
@@ -5073,7 +5155,13 @@ var require_types_cjs_development = __commonJS({
5073
5155
  type: z.string(),
5074
5156
  value: z.string()
5075
5157
  });
5076
- var LCNInboxStatusEnumValidator = z.enum(["PENDING", "DELIVERED", "CLAIMED", "EXPIRED"]);
5158
+ var LCNInboxStatusEnumValidator = z.enum([
5159
+ "PENDING",
5160
+ "ISSUED",
5161
+ "EXPIRED",
5162
+ "DELIVERED",
5163
+ "CLAIMED"
5164
+ ]);
5077
5165
  var LCNNotificationInboxValidator = z.object({
5078
5166
  issuanceId: z.string(),
5079
5167
  status: LCNInboxStatusEnumValidator,
@@ -5171,11 +5259,19 @@ var require_types_cjs_development = __commonJS({
5171
5259
  var SetPrimaryContactMethodValidator = z.object({
5172
5260
  contactMethodId: z.string()
5173
5261
  });
5262
+ var CreateContactMethodSessionValidator = z.object({
5263
+ contactMethod: ContactMethodVerificationRequestValidator,
5264
+ otpChallenge: z.string()
5265
+ });
5266
+ var CreateContactMethodSessionResponseValidator = z.object({
5267
+ sessionJwt: z.string()
5268
+ });
5174
5269
  var InboxCredentialValidator = z.object({
5175
5270
  id: z.string(),
5176
5271
  credential: z.string(),
5177
5272
  isSigned: z.boolean(),
5178
5273
  currentStatus: LCNInboxStatusEnumValidator,
5274
+ isAccepted: z.boolean().optional(),
5179
5275
  expiresAt: z.string(),
5180
5276
  createdAt: z.string(),
5181
5277
  issuerDid: z.string(),
@@ -5194,6 +5290,7 @@ var require_types_cjs_development = __commonJS({
5194
5290
  currentStatus: LCNInboxStatusEnumValidator,
5195
5291
  id: z.string(),
5196
5292
  isSigned: z.boolean(),
5293
+ isAccepted: z.boolean().optional(),
5197
5294
  issuerDid: z.string()
5198
5295
  }).partial();
5199
5296
  var IssueInboxSigningAuthorityValidator = z.object({
@@ -5202,31 +5299,55 @@ var require_types_cjs_development = __commonJS({
5202
5299
  });
5203
5300
  var IssueInboxCredentialValidator = z.object({
5204
5301
  recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
5205
- 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."),
5302
+ credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
5303
+ "The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
5304
+ ),
5206
5305
  configuration: z.object({
5207
- 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."),
5306
+ signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
5307
+ "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."
5308
+ ),
5208
5309
  webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
5209
5310
  expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
5210
5311
  delivery: z.object({
5211
- 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."),
5312
+ suppress: z.boolean().optional().default(false).describe(
5313
+ "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."
5314
+ ),
5212
5315
  template: z.object({
5213
- 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."),
5316
+ id: z.enum(["universal-inbox-claim"]).optional().describe(
5317
+ "The template ID to use for the credential delivery. If not provided, the default template will be used."
5318
+ ),
5214
5319
  model: z.object({
5215
5320
  issuer: z.object({
5216
- name: z.string().optional().describe('The name of the organization (e.g., "State University").'),
5321
+ name: z.string().optional().describe(
5322
+ 'The name of the organization (e.g., "State University").'
5323
+ ),
5217
5324
  logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
5218
5325
  }).optional(),
5219
5326
  credential: z.object({
5220
- name: z.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),
5221
- type: z.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')
5327
+ name: z.string().optional().describe(
5328
+ 'The name of the credential (e.g., "Bachelor of Science").'
5329
+ ),
5330
+ type: z.string().optional().describe(
5331
+ 'The type of the credential (e.g., "degree", "certificate").'
5332
+ )
5222
5333
  }).optional(),
5223
5334
  recipient: z.object({
5224
- name: z.string().optional().describe('The name of the recipient (e.g., "John Doe").')
5335
+ name: z.string().optional().describe(
5336
+ 'The name of the recipient (e.g., "John Doe").'
5337
+ )
5225
5338
  }).optional()
5226
- }).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.")
5227
- }).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")
5228
- }).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.")
5229
- }).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")
5339
+ }).describe(
5340
+ "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."
5341
+ )
5342
+ }).optional().describe(
5343
+ "The template to use for the credential delivery. If not provided, the default template will be used."
5344
+ )
5345
+ }).optional().describe(
5346
+ "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."
5347
+ )
5348
+ }).optional().describe(
5349
+ "Configuration for the credential issuance. If not provided, the default configuration will be used."
5350
+ )
5230
5351
  });
5231
5352
  var IssueInboxCredentialResponseValidator = z.object({
5232
5353
  issuanceId: z.string(),
@@ -5235,6 +5356,51 @@ var require_types_cjs_development = __commonJS({
5235
5356
  claimUrl: z.string().url().optional(),
5236
5357
  recipientDid: z.string().optional()
5237
5358
  });
5359
+ var ClaimInboxCredentialValidator = z.object({
5360
+ credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe("The credential to issue."),
5361
+ configuration: z.object({
5362
+ publishableKey: z.string(),
5363
+ signingAuthorityName: z.string().optional()
5364
+ }).optional()
5365
+ });
5366
+ var LCNDomainOrOriginValidator = z.union([
5367
+ z.string().regex(
5368
+ /^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
5369
+ {
5370
+ message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
5371
+ }
5372
+ ),
5373
+ z.string().regex(
5374
+ /^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
5375
+ { message: "Must be a valid http(s) origin" }
5376
+ )
5377
+ ]);
5378
+ var LCNIntegrationValidator = z.object({
5379
+ id: z.string(),
5380
+ name: z.string(),
5381
+ description: z.string().optional(),
5382
+ publishableKey: z.string(),
5383
+ whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
5384
+ });
5385
+ var LCNIntegrationCreateValidator = z.object({
5386
+ name: z.string(),
5387
+ description: z.string().optional(),
5388
+ whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
5389
+ });
5390
+ var LCNIntegrationUpdateValidator = z.object({
5391
+ name: z.string().optional(),
5392
+ description: z.string().optional(),
5393
+ whitelistedDomains: z.array(LCNDomainOrOriginValidator).optional(),
5394
+ rotatePublishableKey: z.boolean().optional()
5395
+ });
5396
+ var LCNIntegrationQueryValidator = z.object({
5397
+ id: StringQuery,
5398
+ name: StringQuery,
5399
+ description: StringQuery
5400
+ }).partial();
5401
+ var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
5402
+ records: LCNIntegrationValidator.array()
5403
+ });
5238
5404
  var ClaimTokenValidator = z.object({
5239
5405
  token: z.string(),
5240
5406
  contactMethodId: z.string(),
@@ -5243,6 +5409,191 @@ var require_types_cjs_development = __commonJS({
5243
5409
  expiresAt: z.string(),
5244
5410
  used: z.boolean()
5245
5411
  });
5412
+ var TagValidator = z.object({
5413
+ id: z.string(),
5414
+ name: z.string().min(1),
5415
+ slug: z.string().min(1),
5416
+ createdAt: z.string().optional(),
5417
+ updatedAt: z.string().optional()
5418
+ });
5419
+ var SkillStatusEnum = z.enum(["active", "archived"]);
5420
+ var SkillValidator = z.object({
5421
+ id: z.string(),
5422
+ statement: z.string(),
5423
+ description: z.string().optional(),
5424
+ code: z.string().optional(),
5425
+ icon: z.string().optional(),
5426
+ type: z.string().default("skill"),
5427
+ status: SkillStatusEnum.default("active"),
5428
+ frameworkId: z.string().optional(),
5429
+ createdAt: z.string().optional(),
5430
+ updatedAt: z.string().optional()
5431
+ });
5432
+ var BaseSkillQueryValidator = z.object({
5433
+ id: StringQuery,
5434
+ statement: StringQuery,
5435
+ description: StringQuery,
5436
+ code: StringQuery,
5437
+ type: StringQuery,
5438
+ status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
5439
+ }).partial();
5440
+ var SkillQueryValidator = z.union([
5441
+ z.object({
5442
+ $or: BaseSkillQueryValidator.array()
5443
+ }),
5444
+ BaseSkillQueryValidator
5445
+ ]);
5446
+ var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
5447
+ var SkillFrameworkValidator = z.object({
5448
+ id: z.string(),
5449
+ name: z.string(),
5450
+ description: z.string().optional(),
5451
+ image: z.string().optional(),
5452
+ sourceURI: z.string().url().optional(),
5453
+ status: SkillFrameworkStatusEnum.default("active"),
5454
+ createdAt: z.string().optional(),
5455
+ updatedAt: z.string().optional()
5456
+ });
5457
+ var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
5458
+ records: SkillFrameworkValidator.array()
5459
+ });
5460
+ var SkillTreeNodeValidator = SkillValidator.extend({
5461
+ children: z.array(z.lazy(() => SkillTreeNodeValidator)),
5462
+ hasChildren: z.boolean(),
5463
+ childrenCursor: z.string().nullable().optional()
5464
+ }).openapi({ ref: "SkillTreeNode" });
5465
+ var PaginatedSkillTreeValidator = z.object({
5466
+ hasMore: z.boolean(),
5467
+ cursor: z.string().nullable(),
5468
+ records: z.array(SkillTreeNodeValidator)
5469
+ });
5470
+ var SkillTreeNodeInputValidator = z.lazy(
5471
+ () => z.object({
5472
+ id: z.string().optional(),
5473
+ statement: z.string(),
5474
+ description: z.string().optional(),
5475
+ code: z.string().optional(),
5476
+ icon: z.string().optional(),
5477
+ type: z.string().optional(),
5478
+ status: SkillStatusEnum.optional(),
5479
+ children: z.array(SkillTreeNodeInputValidator).optional()
5480
+ })
5481
+ ).openapi({ ref: "SkillTreeNodeInput" });
5482
+ var LinkProviderFrameworkInputValidator = z.object({
5483
+ frameworkId: z.string()
5484
+ });
5485
+ var CreateManagedFrameworkInputValidator = z.object({
5486
+ id: z.string().optional(),
5487
+ name: z.string().min(1),
5488
+ description: z.string().optional(),
5489
+ image: z.string().optional(),
5490
+ sourceURI: z.string().url().optional(),
5491
+ status: SkillFrameworkStatusEnum.optional(),
5492
+ skills: z.array(SkillTreeNodeInputValidator).optional(),
5493
+ boostUris: z.array(z.string()).optional()
5494
+ });
5495
+ var UpdateFrameworkInputValidator = z.object({
5496
+ id: z.string(),
5497
+ name: z.string().min(1).optional(),
5498
+ description: z.string().optional(),
5499
+ image: z.string().optional(),
5500
+ sourceURI: z.string().url().optional(),
5501
+ status: SkillFrameworkStatusEnum.optional()
5502
+ }).refine(
5503
+ (data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
5504
+ {
5505
+ message: "At least one field must be provided to update",
5506
+ path: ["name"]
5507
+ }
5508
+ );
5509
+ var DeleteFrameworkInputValidator = z.object({ id: z.string() });
5510
+ var CreateManagedFrameworkBatchInputValidator = z.object({
5511
+ frameworks: z.array(
5512
+ CreateManagedFrameworkInputValidator.extend({
5513
+ skills: z.array(SkillTreeNodeInputValidator).optional()
5514
+ })
5515
+ ).min(1)
5516
+ });
5517
+ var SkillFrameworkAdminInputValidator = z.object({
5518
+ frameworkId: z.string(),
5519
+ profileId: z.string()
5520
+ });
5521
+ var SkillFrameworkIdInputValidator = z.object({ frameworkId: z.string() });
5522
+ var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
5523
+ var SyncFrameworkInputValidator = z.object({ id: z.string() });
5524
+ var AddTagInputValidator = z.object({
5525
+ slug: z.string().min(1),
5526
+ name: z.string().min(1)
5527
+ });
5528
+ var CreateSkillInputValidator = z.object({
5529
+ frameworkId: z.string(),
5530
+ skill: SkillTreeNodeInputValidator,
5531
+ parentId: z.string().nullable().optional()
5532
+ });
5533
+ var UpdateSkillInputValidator = z.object({
5534
+ frameworkId: z.string(),
5535
+ id: z.string(),
5536
+ statement: z.string().optional(),
5537
+ description: z.string().optional(),
5538
+ code: z.string().optional(),
5539
+ icon: z.string().optional(),
5540
+ type: z.string().optional(),
5541
+ status: SkillStatusEnum.optional()
5542
+ }).refine(
5543
+ (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,
5544
+ {
5545
+ message: "At least one field must be provided to update a skill",
5546
+ path: ["statement"]
5547
+ }
5548
+ );
5549
+ var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
5550
+ var DeleteSkillInputValidator = z.object({
5551
+ frameworkId: z.string(),
5552
+ id: z.string(),
5553
+ strategy: SkillDeletionStrategyValidator.optional().default("reparent")
5554
+ });
5555
+ var CreateSkillsBatchInputValidator = z.object({
5556
+ frameworkId: z.string(),
5557
+ skills: z.array(SkillTreeNodeInputValidator).min(1),
5558
+ parentId: z.string().nullable().optional()
5559
+ });
5560
+ var ReplaceSkillFrameworkSkillsInputValidator = z.object({
5561
+ frameworkId: z.string(),
5562
+ skills: z.array(SkillTreeNodeInputValidator).min(0)
5563
+ });
5564
+ var ReplaceSkillFrameworkSkillsResultValidator = z.object({
5565
+ created: z.number().int().min(0),
5566
+ updated: z.number().int().min(0),
5567
+ deleted: z.number().int().min(0),
5568
+ unchanged: z.number().int().min(0),
5569
+ total: z.number().int().min(0)
5570
+ });
5571
+ var CountSkillsInputValidator = z.object({
5572
+ frameworkId: z.string(),
5573
+ skillId: z.string().optional(),
5574
+ recursive: z.boolean().optional().default(false),
5575
+ onlyCountCompetencies: z.boolean().optional().default(false)
5576
+ });
5577
+ var CountSkillsResultValidator = z.object({
5578
+ count: z.number().int().min(0)
5579
+ });
5580
+ var GetFullSkillTreeInputValidator = z.object({
5581
+ frameworkId: z.string()
5582
+ });
5583
+ var GetFullSkillTreeResultValidator = z.object({
5584
+ skills: z.array(SkillTreeNodeValidator)
5585
+ });
5586
+ var GetSkillPathInputValidator = z.object({
5587
+ frameworkId: z.string(),
5588
+ skillId: z.string()
5589
+ });
5590
+ var GetSkillPathResultValidator = z.object({
5591
+ path: z.array(SkillValidator)
5592
+ });
5593
+ var FrameworkWithSkillsValidator = z.object({
5594
+ framework: SkillFrameworkValidator,
5595
+ skills: PaginatedSkillTreeValidator
5596
+ });
5246
5597
  }
5247
5598
  });
5248
5599
  var require_dist = __commonJS({