@learncard/didkey-plugin 1.0.52 → 1.0.54
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/dist/didkey-plugin.cjs.development.js +303 -19
- package/dist/didkey-plugin.cjs.development.js.map +2 -2
- package/dist/didkey-plugin.cjs.production.min.js +1 -1
- package/dist/didkey-plugin.cjs.production.min.js.map +3 -3
- package/dist/didkey-plugin.esm.js +303 -19
- package/dist/didkey-plugin.esm.js.map +2 -2
- package/package.json +4 -4
|
@@ -90,6 +90,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
90
90
|
AchievementSubjectValidator: () => AchievementSubjectValidator,
|
|
91
91
|
AchievementTypeValidator: () => AchievementTypeValidator,
|
|
92
92
|
AchievementValidator: () => AchievementValidator,
|
|
93
|
+
AddTagInputValidator: () => AddTagInputValidator,
|
|
93
94
|
AddressValidator: () => AddressValidator,
|
|
94
95
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator,
|
|
95
96
|
AlignmentValidator: () => AlignmentValidator,
|
|
@@ -129,14 +130,22 @@ var require_types_cjs_development = __commonJS({
|
|
|
129
130
|
ContactMethodVerificationValidator: () => ContactMethodVerificationValidator,
|
|
130
131
|
ContextValidator: () => ContextValidator,
|
|
131
132
|
ContractCredentialValidator: () => ContractCredentialValidator,
|
|
133
|
+
CountSkillsInputValidator: () => CountSkillsInputValidator,
|
|
134
|
+
CountSkillsResultValidator: () => CountSkillsResultValidator,
|
|
132
135
|
CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator,
|
|
133
136
|
CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator,
|
|
137
|
+
CreateManagedFrameworkBatchInputValidator: () => CreateManagedFrameworkBatchInputValidator,
|
|
138
|
+
CreateManagedFrameworkInputValidator: () => CreateManagedFrameworkInputValidator,
|
|
139
|
+
CreateSkillInputValidator: () => CreateSkillInputValidator,
|
|
140
|
+
CreateSkillsBatchInputValidator: () => CreateSkillsBatchInputValidator,
|
|
134
141
|
CredentialInfoValidator: () => CredentialInfoValidator,
|
|
135
142
|
CredentialRecordValidator: () => CredentialRecordValidator,
|
|
136
143
|
CredentialSchemaValidator: () => CredentialSchemaValidator,
|
|
137
144
|
CredentialStatusValidator: () => CredentialStatusValidator,
|
|
138
145
|
CredentialSubjectValidator: () => CredentialSubjectValidator,
|
|
139
146
|
CriteriaValidator: () => CriteriaValidator,
|
|
147
|
+
DeleteFrameworkInputValidator: () => DeleteFrameworkInputValidator,
|
|
148
|
+
DeleteSkillInputValidator: () => DeleteSkillInputValidator,
|
|
140
149
|
DidDocumentValidator: () => DidDocumentValidator,
|
|
141
150
|
EncryptedCredentialRecordValidator: () => EncryptedCredentialRecordValidator,
|
|
142
151
|
EncryptedRecordValidator: () => EncryptedRecordValidator,
|
|
@@ -144,8 +153,13 @@ var require_types_cjs_development = __commonJS({
|
|
|
144
153
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator,
|
|
145
154
|
EvidenceValidator: () => EvidenceValidator,
|
|
146
155
|
FlatAuthGrantValidator: () => FlatAuthGrantValidator,
|
|
156
|
+
FrameworkWithSkillsValidator: () => FrameworkWithSkillsValidator,
|
|
147
157
|
FullClaimHookValidator: () => FullClaimHookValidator,
|
|
148
158
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator,
|
|
159
|
+
GetFullSkillTreeInputValidator: () => GetFullSkillTreeInputValidator,
|
|
160
|
+
GetFullSkillTreeResultValidator: () => GetFullSkillTreeResultValidator,
|
|
161
|
+
GetSkillPathInputValidator: () => GetSkillPathInputValidator,
|
|
162
|
+
GetSkillPathResultValidator: () => GetSkillPathResultValidator,
|
|
149
163
|
IdentifierEntryValidator: () => IdentifierEntryValidator,
|
|
150
164
|
IdentifierTypeValidator: () => IdentifierTypeValidator,
|
|
151
165
|
IdentityObjectValidator: () => IdentityObjectValidator,
|
|
@@ -184,6 +198,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
184
198
|
LCNProfileValidator: () => LCNProfileValidator,
|
|
185
199
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator,
|
|
186
200
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
|
|
201
|
+
LinkProviderFrameworkInputValidator: () => LinkProviderFrameworkInputValidator,
|
|
187
202
|
PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator,
|
|
188
203
|
PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator,
|
|
189
204
|
PaginatedBoostsValidator: () => PaginatedBoostsValidator,
|
|
@@ -201,6 +216,8 @@ var require_types_cjs_development = __commonJS({
|
|
|
201
216
|
PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator,
|
|
202
217
|
PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator,
|
|
203
218
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
|
|
219
|
+
PaginatedSkillFrameworksValidator: () => PaginatedSkillFrameworksValidator,
|
|
220
|
+
PaginatedSkillTreeValidator: () => PaginatedSkillTreeValidator,
|
|
204
221
|
PaginationOptionsValidator: () => PaginationOptionsValidator,
|
|
205
222
|
PaginationResponseValidator: () => PaginationResponseValidator,
|
|
206
223
|
ProfileValidator: () => ProfileValidator,
|
|
@@ -208,6 +225,8 @@ var require_types_cjs_development = __commonJS({
|
|
|
208
225
|
RefreshServiceValidator: () => RefreshServiceValidator,
|
|
209
226
|
RegExpValidator: () => RegExpValidator,
|
|
210
227
|
RelatedValidator: () => RelatedValidator,
|
|
228
|
+
ReplaceSkillFrameworkSkillsInputValidator: () => ReplaceSkillFrameworkSkillsInputValidator,
|
|
229
|
+
ReplaceSkillFrameworkSkillsResultValidator: () => ReplaceSkillFrameworkSkillsResultValidator,
|
|
211
230
|
ResultDescriptionValidator: () => ResultDescriptionValidator,
|
|
212
231
|
ResultStatusTypeValidator: () => ResultStatusTypeValidator,
|
|
213
232
|
ResultTypeValidator: () => ResultTypeValidator,
|
|
@@ -216,11 +235,27 @@ var require_types_cjs_development = __commonJS({
|
|
|
216
235
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator,
|
|
217
236
|
ServiceValidator: () => ServiceValidator,
|
|
218
237
|
SetPrimaryContactMethodValidator: () => SetPrimaryContactMethodValidator,
|
|
238
|
+
SkillDeletionStrategyValidator: () => SkillDeletionStrategyValidator,
|
|
239
|
+
SkillFrameworkAdminInputValidator: () => SkillFrameworkAdminInputValidator,
|
|
240
|
+
SkillFrameworkAdminsValidator: () => SkillFrameworkAdminsValidator,
|
|
241
|
+
SkillFrameworkIdInputValidator: () => SkillFrameworkIdInputValidator,
|
|
242
|
+
SkillFrameworkQueryValidator: () => SkillFrameworkQueryValidator,
|
|
243
|
+
SkillFrameworkStatusEnum: () => SkillFrameworkStatusEnum,
|
|
244
|
+
SkillFrameworkValidator: () => SkillFrameworkValidator,
|
|
245
|
+
SkillQueryValidator: () => SkillQueryValidator,
|
|
246
|
+
SkillStatusEnum: () => SkillStatusEnum,
|
|
247
|
+
SkillTreeNodeInputValidator: () => SkillTreeNodeInputValidator,
|
|
248
|
+
SkillTreeNodeValidator: () => SkillTreeNodeValidator,
|
|
249
|
+
SkillValidator: () => SkillValidator,
|
|
219
250
|
StringQuery: () => StringQuery,
|
|
251
|
+
SyncFrameworkInputValidator: () => SyncFrameworkInputValidator,
|
|
252
|
+
TagValidator: () => TagValidator,
|
|
220
253
|
TermsOfUseValidator: () => TermsOfUseValidator,
|
|
221
254
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator,
|
|
222
255
|
UnsignedVCValidator: () => UnsignedVCValidator,
|
|
223
256
|
UnsignedVPValidator: () => UnsignedVPValidator,
|
|
257
|
+
UpdateFrameworkInputValidator: () => UpdateFrameworkInputValidator,
|
|
258
|
+
UpdateSkillInputValidator: () => UpdateSkillInputValidator,
|
|
224
259
|
VC2EvidenceValidator: () => VC2EvidenceValidator,
|
|
225
260
|
VCValidator: () => VCValidator,
|
|
226
261
|
VPValidator: () => VPValidator,
|
|
@@ -4703,7 +4738,14 @@ var require_types_cjs_development = __commonJS({
|
|
|
4703
4738
|
}
|
|
4704
4739
|
})
|
|
4705
4740
|
);
|
|
4706
|
-
var
|
|
4741
|
+
var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
|
|
4742
|
+
var StringQuery = z.union([
|
|
4743
|
+
BaseStringQuery,
|
|
4744
|
+
z.object({
|
|
4745
|
+
$or: BaseStringQuery.array()
|
|
4746
|
+
})
|
|
4747
|
+
]);
|
|
4748
|
+
extendZodWithOpenApi(z);
|
|
4707
4749
|
var LCNProfileDisplayValidator = z.object({
|
|
4708
4750
|
backgroundColor: z.string().optional(),
|
|
4709
4751
|
backgroundImage: z.string().optional(),
|
|
@@ -4788,7 +4830,8 @@ var require_types_cjs_development = __commonJS({
|
|
|
4788
4830
|
to: z.string(),
|
|
4789
4831
|
from: z.string(),
|
|
4790
4832
|
sent: z.string().datetime(),
|
|
4791
|
-
received: z.string().datetime().optional()
|
|
4833
|
+
received: z.string().datetime().optional(),
|
|
4834
|
+
metadata: z.record(z.unknown()).optional()
|
|
4792
4835
|
});
|
|
4793
4836
|
var BoostPermissionsValidator = z.object({
|
|
4794
4837
|
role: z.string(),
|
|
@@ -4861,7 +4904,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
4861
4904
|
claimPermissions: BoostPermissionsValidator.optional(),
|
|
4862
4905
|
allowAnyoneToCreateChildren: z.boolean().optional()
|
|
4863
4906
|
});
|
|
4864
|
-
var
|
|
4907
|
+
var BaseBoostQueryValidator = z.object({
|
|
4865
4908
|
uri: StringQuery,
|
|
4866
4909
|
name: StringQuery,
|
|
4867
4910
|
type: StringQuery,
|
|
@@ -4870,6 +4913,12 @@ var require_types_cjs_development = __commonJS({
|
|
|
4870
4913
|
status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
|
|
4871
4914
|
autoConnectRecipients: z.boolean()
|
|
4872
4915
|
}).partial();
|
|
4916
|
+
var BoostQueryValidator = z.union([
|
|
4917
|
+
z.object({
|
|
4918
|
+
$or: BaseBoostQueryValidator.array()
|
|
4919
|
+
}),
|
|
4920
|
+
BaseBoostQueryValidator
|
|
4921
|
+
]);
|
|
4873
4922
|
var PaginatedBoostsValidator = PaginationResponseValidator.extend({
|
|
4874
4923
|
records: BoostValidator.array()
|
|
4875
4924
|
});
|
|
@@ -4925,11 +4974,25 @@ var require_types_cjs_development = __commonJS({
|
|
|
4925
4974
|
var ConsentFlowContractValidator = z.object({
|
|
4926
4975
|
read: z.object({
|
|
4927
4976
|
anonymize: z.boolean().optional(),
|
|
4928
|
-
credentials: z.object({
|
|
4977
|
+
credentials: z.object({
|
|
4978
|
+
categories: z.record(
|
|
4979
|
+
z.object({
|
|
4980
|
+
required: z.boolean(),
|
|
4981
|
+
defaultEnabled: z.boolean().optional()
|
|
4982
|
+
})
|
|
4983
|
+
).default({})
|
|
4984
|
+
}).default({}),
|
|
4929
4985
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
4930
4986
|
}).default({}),
|
|
4931
4987
|
write: z.object({
|
|
4932
|
-
credentials: z.object({
|
|
4988
|
+
credentials: z.object({
|
|
4989
|
+
categories: z.record(
|
|
4990
|
+
z.object({
|
|
4991
|
+
required: z.boolean(),
|
|
4992
|
+
defaultEnabled: z.boolean().optional()
|
|
4993
|
+
})
|
|
4994
|
+
).default({})
|
|
4995
|
+
}).default({}),
|
|
4933
4996
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
4934
4997
|
}).default({})
|
|
4935
4998
|
});
|
|
@@ -5072,6 +5135,17 @@ var require_types_cjs_development = __commonJS({
|
|
|
5072
5135
|
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
|
5073
5136
|
records: ConsentFlowTransactionValidator.array()
|
|
5074
5137
|
});
|
|
5138
|
+
var BaseSkillFrameworkQueryValidator = z.object({
|
|
5139
|
+
id: StringQuery,
|
|
5140
|
+
name: StringQuery,
|
|
5141
|
+
description: StringQuery,
|
|
5142
|
+
sourceURI: StringQuery,
|
|
5143
|
+
status: StringQuery
|
|
5144
|
+
}).partial();
|
|
5145
|
+
var SkillFrameworkQueryValidator = z.union([
|
|
5146
|
+
z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
|
|
5147
|
+
BaseSkillFrameworkQueryValidator
|
|
5148
|
+
]);
|
|
5075
5149
|
var ContractCredentialValidator = z.object({
|
|
5076
5150
|
credentialUri: z.string(),
|
|
5077
5151
|
termsUri: z.string(),
|
|
@@ -5126,8 +5200,9 @@ var require_types_cjs_development = __commonJS({
|
|
|
5126
5200
|
vcUris: z.array(z.string()).optional(),
|
|
5127
5201
|
vpUris: z.array(z.string()).optional(),
|
|
5128
5202
|
transaction: ConsentFlowTransactionValidator.optional(),
|
|
5129
|
-
inbox: LCNNotificationInboxValidator.optional()
|
|
5130
|
-
|
|
5203
|
+
inbox: LCNNotificationInboxValidator.optional(),
|
|
5204
|
+
metadata: z.record(z.unknown()).optional()
|
|
5205
|
+
}).passthrough();
|
|
5131
5206
|
var LCNNotificationValidator = z.object({
|
|
5132
5207
|
type: LCNNotificationTypeEnumValidator,
|
|
5133
5208
|
to: LCNProfileValidator.partial().and(z.object({ did: z.string() })),
|
|
@@ -5250,31 +5325,55 @@ var require_types_cjs_development = __commonJS({
|
|
|
5250
5325
|
});
|
|
5251
5326
|
var IssueInboxCredentialValidator = z.object({
|
|
5252
5327
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
5253
|
-
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
5328
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
5329
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
5330
|
+
),
|
|
5254
5331
|
configuration: z.object({
|
|
5255
|
-
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
5332
|
+
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
5333
|
+
"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."
|
|
5334
|
+
),
|
|
5256
5335
|
webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
5257
5336
|
expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
5258
5337
|
delivery: z.object({
|
|
5259
|
-
suppress: z.boolean().optional().default(false).describe(
|
|
5338
|
+
suppress: z.boolean().optional().default(false).describe(
|
|
5339
|
+
"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."
|
|
5340
|
+
),
|
|
5260
5341
|
template: z.object({
|
|
5261
|
-
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
5342
|
+
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
5343
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
5344
|
+
),
|
|
5262
5345
|
model: z.object({
|
|
5263
5346
|
issuer: z.object({
|
|
5264
|
-
name: z.string().optional().describe(
|
|
5347
|
+
name: z.string().optional().describe(
|
|
5348
|
+
'The name of the organization (e.g., "State University").'
|
|
5349
|
+
),
|
|
5265
5350
|
logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
|
|
5266
5351
|
}).optional(),
|
|
5267
5352
|
credential: z.object({
|
|
5268
|
-
name: z.string().optional().describe(
|
|
5269
|
-
|
|
5353
|
+
name: z.string().optional().describe(
|
|
5354
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
5355
|
+
),
|
|
5356
|
+
type: z.string().optional().describe(
|
|
5357
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
5358
|
+
)
|
|
5270
5359
|
}).optional(),
|
|
5271
5360
|
recipient: z.object({
|
|
5272
|
-
name: z.string().optional().describe(
|
|
5361
|
+
name: z.string().optional().describe(
|
|
5362
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
5363
|
+
)
|
|
5273
5364
|
}).optional()
|
|
5274
|
-
}).describe(
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5365
|
+
}).describe(
|
|
5366
|
+
"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."
|
|
5367
|
+
)
|
|
5368
|
+
}).optional().describe(
|
|
5369
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
5370
|
+
)
|
|
5371
|
+
}).optional().describe(
|
|
5372
|
+
"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."
|
|
5373
|
+
)
|
|
5374
|
+
}).optional().describe(
|
|
5375
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
5376
|
+
)
|
|
5278
5377
|
});
|
|
5279
5378
|
var IssueInboxCredentialResponseValidator = z.object({
|
|
5280
5379
|
issuanceId: z.string(),
|
|
@@ -5336,6 +5435,191 @@ var require_types_cjs_development = __commonJS({
|
|
|
5336
5435
|
expiresAt: z.string(),
|
|
5337
5436
|
used: z.boolean()
|
|
5338
5437
|
});
|
|
5438
|
+
var TagValidator = z.object({
|
|
5439
|
+
id: z.string(),
|
|
5440
|
+
name: z.string().min(1),
|
|
5441
|
+
slug: z.string().min(1),
|
|
5442
|
+
createdAt: z.string().optional(),
|
|
5443
|
+
updatedAt: z.string().optional()
|
|
5444
|
+
});
|
|
5445
|
+
var SkillStatusEnum = z.enum(["active", "archived"]);
|
|
5446
|
+
var SkillValidator = z.object({
|
|
5447
|
+
id: z.string(),
|
|
5448
|
+
statement: z.string(),
|
|
5449
|
+
description: z.string().optional(),
|
|
5450
|
+
code: z.string().optional(),
|
|
5451
|
+
icon: z.string().optional(),
|
|
5452
|
+
type: z.string().default("skill"),
|
|
5453
|
+
status: SkillStatusEnum.default("active"),
|
|
5454
|
+
frameworkId: z.string().optional(),
|
|
5455
|
+
createdAt: z.string().optional(),
|
|
5456
|
+
updatedAt: z.string().optional()
|
|
5457
|
+
});
|
|
5458
|
+
var BaseSkillQueryValidator = z.object({
|
|
5459
|
+
id: StringQuery,
|
|
5460
|
+
statement: StringQuery,
|
|
5461
|
+
description: StringQuery,
|
|
5462
|
+
code: StringQuery,
|
|
5463
|
+
type: StringQuery,
|
|
5464
|
+
status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
|
|
5465
|
+
}).partial();
|
|
5466
|
+
var SkillQueryValidator = z.union([
|
|
5467
|
+
z.object({
|
|
5468
|
+
$or: BaseSkillQueryValidator.array()
|
|
5469
|
+
}),
|
|
5470
|
+
BaseSkillQueryValidator
|
|
5471
|
+
]);
|
|
5472
|
+
var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
|
|
5473
|
+
var SkillFrameworkValidator = z.object({
|
|
5474
|
+
id: z.string(),
|
|
5475
|
+
name: z.string(),
|
|
5476
|
+
description: z.string().optional(),
|
|
5477
|
+
image: z.string().optional(),
|
|
5478
|
+
sourceURI: z.string().url().optional(),
|
|
5479
|
+
status: SkillFrameworkStatusEnum.default("active"),
|
|
5480
|
+
createdAt: z.string().optional(),
|
|
5481
|
+
updatedAt: z.string().optional()
|
|
5482
|
+
});
|
|
5483
|
+
var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
|
|
5484
|
+
records: SkillFrameworkValidator.array()
|
|
5485
|
+
});
|
|
5486
|
+
var SkillTreeNodeValidator = SkillValidator.extend({
|
|
5487
|
+
children: z.array(z.lazy(() => SkillTreeNodeValidator)),
|
|
5488
|
+
hasChildren: z.boolean(),
|
|
5489
|
+
childrenCursor: z.string().nullable().optional()
|
|
5490
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
5491
|
+
var PaginatedSkillTreeValidator = z.object({
|
|
5492
|
+
hasMore: z.boolean(),
|
|
5493
|
+
cursor: z.string().nullable(),
|
|
5494
|
+
records: z.array(SkillTreeNodeValidator)
|
|
5495
|
+
});
|
|
5496
|
+
var SkillTreeNodeInputValidator = z.lazy(
|
|
5497
|
+
() => z.object({
|
|
5498
|
+
id: z.string().optional(),
|
|
5499
|
+
statement: z.string(),
|
|
5500
|
+
description: z.string().optional(),
|
|
5501
|
+
code: z.string().optional(),
|
|
5502
|
+
icon: z.string().optional(),
|
|
5503
|
+
type: z.string().optional(),
|
|
5504
|
+
status: SkillStatusEnum.optional(),
|
|
5505
|
+
children: z.array(SkillTreeNodeInputValidator).optional()
|
|
5506
|
+
})
|
|
5507
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
5508
|
+
var LinkProviderFrameworkInputValidator = z.object({
|
|
5509
|
+
frameworkId: z.string()
|
|
5510
|
+
});
|
|
5511
|
+
var CreateManagedFrameworkInputValidator = z.object({
|
|
5512
|
+
id: z.string().optional(),
|
|
5513
|
+
name: z.string().min(1),
|
|
5514
|
+
description: z.string().optional(),
|
|
5515
|
+
image: z.string().optional(),
|
|
5516
|
+
sourceURI: z.string().url().optional(),
|
|
5517
|
+
status: SkillFrameworkStatusEnum.optional(),
|
|
5518
|
+
skills: z.array(SkillTreeNodeInputValidator).optional(),
|
|
5519
|
+
boostUris: z.array(z.string()).optional()
|
|
5520
|
+
});
|
|
5521
|
+
var UpdateFrameworkInputValidator = z.object({
|
|
5522
|
+
id: z.string(),
|
|
5523
|
+
name: z.string().min(1).optional(),
|
|
5524
|
+
description: z.string().optional(),
|
|
5525
|
+
image: z.string().optional(),
|
|
5526
|
+
sourceURI: z.string().url().optional(),
|
|
5527
|
+
status: SkillFrameworkStatusEnum.optional()
|
|
5528
|
+
}).refine(
|
|
5529
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
5530
|
+
{
|
|
5531
|
+
message: "At least one field must be provided to update",
|
|
5532
|
+
path: ["name"]
|
|
5533
|
+
}
|
|
5534
|
+
);
|
|
5535
|
+
var DeleteFrameworkInputValidator = z.object({ id: z.string() });
|
|
5536
|
+
var CreateManagedFrameworkBatchInputValidator = z.object({
|
|
5537
|
+
frameworks: z.array(
|
|
5538
|
+
CreateManagedFrameworkInputValidator.extend({
|
|
5539
|
+
skills: z.array(SkillTreeNodeInputValidator).optional()
|
|
5540
|
+
})
|
|
5541
|
+
).min(1)
|
|
5542
|
+
});
|
|
5543
|
+
var SkillFrameworkAdminInputValidator = z.object({
|
|
5544
|
+
frameworkId: z.string(),
|
|
5545
|
+
profileId: z.string()
|
|
5546
|
+
});
|
|
5547
|
+
var SkillFrameworkIdInputValidator = z.object({ frameworkId: z.string() });
|
|
5548
|
+
var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
|
|
5549
|
+
var SyncFrameworkInputValidator = z.object({ id: z.string() });
|
|
5550
|
+
var AddTagInputValidator = z.object({
|
|
5551
|
+
slug: z.string().min(1),
|
|
5552
|
+
name: z.string().min(1)
|
|
5553
|
+
});
|
|
5554
|
+
var CreateSkillInputValidator = z.object({
|
|
5555
|
+
frameworkId: z.string(),
|
|
5556
|
+
skill: SkillTreeNodeInputValidator,
|
|
5557
|
+
parentId: z.string().nullable().optional()
|
|
5558
|
+
});
|
|
5559
|
+
var UpdateSkillInputValidator = z.object({
|
|
5560
|
+
frameworkId: z.string(),
|
|
5561
|
+
id: z.string(),
|
|
5562
|
+
statement: z.string().optional(),
|
|
5563
|
+
description: z.string().optional(),
|
|
5564
|
+
code: z.string().optional(),
|
|
5565
|
+
icon: z.string().optional(),
|
|
5566
|
+
type: z.string().optional(),
|
|
5567
|
+
status: SkillStatusEnum.optional()
|
|
5568
|
+
}).refine(
|
|
5569
|
+
(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,
|
|
5570
|
+
{
|
|
5571
|
+
message: "At least one field must be provided to update a skill",
|
|
5572
|
+
path: ["statement"]
|
|
5573
|
+
}
|
|
5574
|
+
);
|
|
5575
|
+
var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
|
|
5576
|
+
var DeleteSkillInputValidator = z.object({
|
|
5577
|
+
frameworkId: z.string(),
|
|
5578
|
+
id: z.string(),
|
|
5579
|
+
strategy: SkillDeletionStrategyValidator.optional().default("reparent")
|
|
5580
|
+
});
|
|
5581
|
+
var CreateSkillsBatchInputValidator = z.object({
|
|
5582
|
+
frameworkId: z.string(),
|
|
5583
|
+
skills: z.array(SkillTreeNodeInputValidator).min(1),
|
|
5584
|
+
parentId: z.string().nullable().optional()
|
|
5585
|
+
});
|
|
5586
|
+
var ReplaceSkillFrameworkSkillsInputValidator = z.object({
|
|
5587
|
+
frameworkId: z.string(),
|
|
5588
|
+
skills: z.array(SkillTreeNodeInputValidator).min(0)
|
|
5589
|
+
});
|
|
5590
|
+
var ReplaceSkillFrameworkSkillsResultValidator = z.object({
|
|
5591
|
+
created: z.number().int().min(0),
|
|
5592
|
+
updated: z.number().int().min(0),
|
|
5593
|
+
deleted: z.number().int().min(0),
|
|
5594
|
+
unchanged: z.number().int().min(0),
|
|
5595
|
+
total: z.number().int().min(0)
|
|
5596
|
+
});
|
|
5597
|
+
var CountSkillsInputValidator = z.object({
|
|
5598
|
+
frameworkId: z.string(),
|
|
5599
|
+
skillId: z.string().optional(),
|
|
5600
|
+
recursive: z.boolean().optional().default(false),
|
|
5601
|
+
onlyCountCompetencies: z.boolean().optional().default(false)
|
|
5602
|
+
});
|
|
5603
|
+
var CountSkillsResultValidator = z.object({
|
|
5604
|
+
count: z.number().int().min(0)
|
|
5605
|
+
});
|
|
5606
|
+
var GetFullSkillTreeInputValidator = z.object({
|
|
5607
|
+
frameworkId: z.string()
|
|
5608
|
+
});
|
|
5609
|
+
var GetFullSkillTreeResultValidator = z.object({
|
|
5610
|
+
skills: z.array(SkillTreeNodeValidator)
|
|
5611
|
+
});
|
|
5612
|
+
var GetSkillPathInputValidator = z.object({
|
|
5613
|
+
frameworkId: z.string(),
|
|
5614
|
+
skillId: z.string()
|
|
5615
|
+
});
|
|
5616
|
+
var GetSkillPathResultValidator = z.object({
|
|
5617
|
+
path: z.array(SkillValidator)
|
|
5618
|
+
});
|
|
5619
|
+
var FrameworkWithSkillsValidator = z.object({
|
|
5620
|
+
framework: SkillFrameworkValidator,
|
|
5621
|
+
skills: PaginatedSkillTreeValidator
|
|
5622
|
+
});
|
|
5339
5623
|
}
|
|
5340
5624
|
});
|
|
5341
5625
|
var require_dist = __commonJS({
|