@learncard/didkey-plugin 1.0.52 → 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.
- package/dist/didkey-plugin.cjs.development.js +298 -16
- 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 +298 -16
- package/dist/didkey-plugin.esm.js.map +2 -2
- package/package.json +4 -4
|
@@ -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,
|
|
@@ -105,14 +106,22 @@ var require_types_cjs_development = __commonJS({
|
|
|
105
106
|
ContactMethodVerificationValidator: () => ContactMethodVerificationValidator,
|
|
106
107
|
ContextValidator: () => ContextValidator,
|
|
107
108
|
ContractCredentialValidator: () => ContractCredentialValidator,
|
|
109
|
+
CountSkillsInputValidator: () => CountSkillsInputValidator,
|
|
110
|
+
CountSkillsResultValidator: () => CountSkillsResultValidator,
|
|
108
111
|
CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator,
|
|
109
112
|
CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator,
|
|
113
|
+
CreateManagedFrameworkBatchInputValidator: () => CreateManagedFrameworkBatchInputValidator,
|
|
114
|
+
CreateManagedFrameworkInputValidator: () => CreateManagedFrameworkInputValidator,
|
|
115
|
+
CreateSkillInputValidator: () => CreateSkillInputValidator,
|
|
116
|
+
CreateSkillsBatchInputValidator: () => CreateSkillsBatchInputValidator,
|
|
110
117
|
CredentialInfoValidator: () => CredentialInfoValidator,
|
|
111
118
|
CredentialRecordValidator: () => CredentialRecordValidator,
|
|
112
119
|
CredentialSchemaValidator: () => CredentialSchemaValidator,
|
|
113
120
|
CredentialStatusValidator: () => CredentialStatusValidator,
|
|
114
121
|
CredentialSubjectValidator: () => CredentialSubjectValidator,
|
|
115
122
|
CriteriaValidator: () => CriteriaValidator,
|
|
123
|
+
DeleteFrameworkInputValidator: () => DeleteFrameworkInputValidator,
|
|
124
|
+
DeleteSkillInputValidator: () => DeleteSkillInputValidator,
|
|
116
125
|
DidDocumentValidator: () => DidDocumentValidator,
|
|
117
126
|
EncryptedCredentialRecordValidator: () => EncryptedCredentialRecordValidator,
|
|
118
127
|
EncryptedRecordValidator: () => EncryptedRecordValidator,
|
|
@@ -120,8 +129,13 @@ var require_types_cjs_development = __commonJS({
|
|
|
120
129
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator,
|
|
121
130
|
EvidenceValidator: () => EvidenceValidator,
|
|
122
131
|
FlatAuthGrantValidator: () => FlatAuthGrantValidator,
|
|
132
|
+
FrameworkWithSkillsValidator: () => FrameworkWithSkillsValidator,
|
|
123
133
|
FullClaimHookValidator: () => FullClaimHookValidator,
|
|
124
134
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator,
|
|
135
|
+
GetFullSkillTreeInputValidator: () => GetFullSkillTreeInputValidator,
|
|
136
|
+
GetFullSkillTreeResultValidator: () => GetFullSkillTreeResultValidator,
|
|
137
|
+
GetSkillPathInputValidator: () => GetSkillPathInputValidator,
|
|
138
|
+
GetSkillPathResultValidator: () => GetSkillPathResultValidator,
|
|
125
139
|
IdentifierEntryValidator: () => IdentifierEntryValidator,
|
|
126
140
|
IdentifierTypeValidator: () => IdentifierTypeValidator,
|
|
127
141
|
IdentityObjectValidator: () => IdentityObjectValidator,
|
|
@@ -160,6 +174,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
160
174
|
LCNProfileValidator: () => LCNProfileValidator,
|
|
161
175
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator,
|
|
162
176
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
|
|
177
|
+
LinkProviderFrameworkInputValidator: () => LinkProviderFrameworkInputValidator,
|
|
163
178
|
PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator,
|
|
164
179
|
PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator,
|
|
165
180
|
PaginatedBoostsValidator: () => PaginatedBoostsValidator,
|
|
@@ -177,6 +192,8 @@ var require_types_cjs_development = __commonJS({
|
|
|
177
192
|
PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator,
|
|
178
193
|
PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator,
|
|
179
194
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
|
|
195
|
+
PaginatedSkillFrameworksValidator: () => PaginatedSkillFrameworksValidator,
|
|
196
|
+
PaginatedSkillTreeValidator: () => PaginatedSkillTreeValidator,
|
|
180
197
|
PaginationOptionsValidator: () => PaginationOptionsValidator,
|
|
181
198
|
PaginationResponseValidator: () => PaginationResponseValidator,
|
|
182
199
|
ProfileValidator: () => ProfileValidator,
|
|
@@ -184,6 +201,8 @@ var require_types_cjs_development = __commonJS({
|
|
|
184
201
|
RefreshServiceValidator: () => RefreshServiceValidator,
|
|
185
202
|
RegExpValidator: () => RegExpValidator,
|
|
186
203
|
RelatedValidator: () => RelatedValidator,
|
|
204
|
+
ReplaceSkillFrameworkSkillsInputValidator: () => ReplaceSkillFrameworkSkillsInputValidator,
|
|
205
|
+
ReplaceSkillFrameworkSkillsResultValidator: () => ReplaceSkillFrameworkSkillsResultValidator,
|
|
187
206
|
ResultDescriptionValidator: () => ResultDescriptionValidator,
|
|
188
207
|
ResultStatusTypeValidator: () => ResultStatusTypeValidator,
|
|
189
208
|
ResultTypeValidator: () => ResultTypeValidator,
|
|
@@ -192,11 +211,27 @@ var require_types_cjs_development = __commonJS({
|
|
|
192
211
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator,
|
|
193
212
|
ServiceValidator: () => ServiceValidator,
|
|
194
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,
|
|
195
226
|
StringQuery: () => StringQuery,
|
|
227
|
+
SyncFrameworkInputValidator: () => SyncFrameworkInputValidator,
|
|
228
|
+
TagValidator: () => TagValidator,
|
|
196
229
|
TermsOfUseValidator: () => TermsOfUseValidator,
|
|
197
230
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator,
|
|
198
231
|
UnsignedVCValidator: () => UnsignedVCValidator,
|
|
199
232
|
UnsignedVPValidator: () => UnsignedVPValidator,
|
|
233
|
+
UpdateFrameworkInputValidator: () => UpdateFrameworkInputValidator,
|
|
234
|
+
UpdateSkillInputValidator: () => UpdateSkillInputValidator,
|
|
200
235
|
VC2EvidenceValidator: () => VC2EvidenceValidator,
|
|
201
236
|
VCValidator: () => VCValidator,
|
|
202
237
|
VPValidator: () => VPValidator,
|
|
@@ -4679,7 +4714,14 @@ var require_types_cjs_development = __commonJS({
|
|
|
4679
4714
|
}
|
|
4680
4715
|
})
|
|
4681
4716
|
);
|
|
4682
|
-
var
|
|
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);
|
|
4683
4725
|
var LCNProfileDisplayValidator = z.object({
|
|
4684
4726
|
backgroundColor: z.string().optional(),
|
|
4685
4727
|
backgroundImage: z.string().optional(),
|
|
@@ -4837,7 +4879,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
4837
4879
|
claimPermissions: BoostPermissionsValidator.optional(),
|
|
4838
4880
|
allowAnyoneToCreateChildren: z.boolean().optional()
|
|
4839
4881
|
});
|
|
4840
|
-
var
|
|
4882
|
+
var BaseBoostQueryValidator = z.object({
|
|
4841
4883
|
uri: StringQuery,
|
|
4842
4884
|
name: StringQuery,
|
|
4843
4885
|
type: StringQuery,
|
|
@@ -4846,6 +4888,12 @@ var require_types_cjs_development = __commonJS({
|
|
|
4846
4888
|
status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
|
|
4847
4889
|
autoConnectRecipients: z.boolean()
|
|
4848
4890
|
}).partial();
|
|
4891
|
+
var BoostQueryValidator = z.union([
|
|
4892
|
+
z.object({
|
|
4893
|
+
$or: BaseBoostQueryValidator.array()
|
|
4894
|
+
}),
|
|
4895
|
+
BaseBoostQueryValidator
|
|
4896
|
+
]);
|
|
4849
4897
|
var PaginatedBoostsValidator = PaginationResponseValidator.extend({
|
|
4850
4898
|
records: BoostValidator.array()
|
|
4851
4899
|
});
|
|
@@ -4901,11 +4949,25 @@ var require_types_cjs_development = __commonJS({
|
|
|
4901
4949
|
var ConsentFlowContractValidator = z.object({
|
|
4902
4950
|
read: z.object({
|
|
4903
4951
|
anonymize: z.boolean().optional(),
|
|
4904
|
-
credentials: z.object({
|
|
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({}),
|
|
4905
4960
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
4906
4961
|
}).default({}),
|
|
4907
4962
|
write: z.object({
|
|
4908
|
-
credentials: z.object({
|
|
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({}),
|
|
4909
4971
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
4910
4972
|
}).default({})
|
|
4911
4973
|
});
|
|
@@ -5048,6 +5110,17 @@ var require_types_cjs_development = __commonJS({
|
|
|
5048
5110
|
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
|
5049
5111
|
records: ConsentFlowTransactionValidator.array()
|
|
5050
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
|
+
]);
|
|
5051
5124
|
var ContractCredentialValidator = z.object({
|
|
5052
5125
|
credentialUri: z.string(),
|
|
5053
5126
|
termsUri: z.string(),
|
|
@@ -5226,31 +5299,55 @@ var require_types_cjs_development = __commonJS({
|
|
|
5226
5299
|
});
|
|
5227
5300
|
var IssueInboxCredentialValidator = z.object({
|
|
5228
5301
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
5229
|
-
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
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
|
+
),
|
|
5230
5305
|
configuration: z.object({
|
|
5231
|
-
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
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
|
+
),
|
|
5232
5309
|
webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
5233
5310
|
expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
5234
5311
|
delivery: z.object({
|
|
5235
|
-
suppress: z.boolean().optional().default(false).describe(
|
|
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
|
+
),
|
|
5236
5315
|
template: z.object({
|
|
5237
|
-
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
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
|
+
),
|
|
5238
5319
|
model: z.object({
|
|
5239
5320
|
issuer: z.object({
|
|
5240
|
-
name: z.string().optional().describe(
|
|
5321
|
+
name: z.string().optional().describe(
|
|
5322
|
+
'The name of the organization (e.g., "State University").'
|
|
5323
|
+
),
|
|
5241
5324
|
logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
|
|
5242
5325
|
}).optional(),
|
|
5243
5326
|
credential: z.object({
|
|
5244
|
-
name: z.string().optional().describe(
|
|
5245
|
-
|
|
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
|
+
)
|
|
5246
5333
|
}).optional(),
|
|
5247
5334
|
recipient: z.object({
|
|
5248
|
-
name: z.string().optional().describe(
|
|
5335
|
+
name: z.string().optional().describe(
|
|
5336
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
5337
|
+
)
|
|
5249
5338
|
}).optional()
|
|
5250
|
-
}).describe(
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
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
|
+
)
|
|
5254
5351
|
});
|
|
5255
5352
|
var IssueInboxCredentialResponseValidator = z.object({
|
|
5256
5353
|
issuanceId: z.string(),
|
|
@@ -5312,6 +5409,191 @@ var require_types_cjs_development = __commonJS({
|
|
|
5312
5409
|
expiresAt: z.string(),
|
|
5313
5410
|
used: z.boolean()
|
|
5314
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
|
+
});
|
|
5315
5597
|
}
|
|
5316
5598
|
});
|
|
5317
5599
|
var require_dist = __commonJS({
|