@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
|
@@ -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(),
|
|
@@ -4764,7 +4806,8 @@ var require_types_cjs_development = __commonJS({
|
|
|
4764
4806
|
to: z.string(),
|
|
4765
4807
|
from: z.string(),
|
|
4766
4808
|
sent: z.string().datetime(),
|
|
4767
|
-
received: z.string().datetime().optional()
|
|
4809
|
+
received: z.string().datetime().optional(),
|
|
4810
|
+
metadata: z.record(z.unknown()).optional()
|
|
4768
4811
|
});
|
|
4769
4812
|
var BoostPermissionsValidator = z.object({
|
|
4770
4813
|
role: z.string(),
|
|
@@ -4837,7 +4880,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
4837
4880
|
claimPermissions: BoostPermissionsValidator.optional(),
|
|
4838
4881
|
allowAnyoneToCreateChildren: z.boolean().optional()
|
|
4839
4882
|
});
|
|
4840
|
-
var
|
|
4883
|
+
var BaseBoostQueryValidator = z.object({
|
|
4841
4884
|
uri: StringQuery,
|
|
4842
4885
|
name: StringQuery,
|
|
4843
4886
|
type: StringQuery,
|
|
@@ -4846,6 +4889,12 @@ var require_types_cjs_development = __commonJS({
|
|
|
4846
4889
|
status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
|
|
4847
4890
|
autoConnectRecipients: z.boolean()
|
|
4848
4891
|
}).partial();
|
|
4892
|
+
var BoostQueryValidator = z.union([
|
|
4893
|
+
z.object({
|
|
4894
|
+
$or: BaseBoostQueryValidator.array()
|
|
4895
|
+
}),
|
|
4896
|
+
BaseBoostQueryValidator
|
|
4897
|
+
]);
|
|
4849
4898
|
var PaginatedBoostsValidator = PaginationResponseValidator.extend({
|
|
4850
4899
|
records: BoostValidator.array()
|
|
4851
4900
|
});
|
|
@@ -4901,11 +4950,25 @@ var require_types_cjs_development = __commonJS({
|
|
|
4901
4950
|
var ConsentFlowContractValidator = z.object({
|
|
4902
4951
|
read: z.object({
|
|
4903
4952
|
anonymize: z.boolean().optional(),
|
|
4904
|
-
credentials: z.object({
|
|
4953
|
+
credentials: z.object({
|
|
4954
|
+
categories: z.record(
|
|
4955
|
+
z.object({
|
|
4956
|
+
required: z.boolean(),
|
|
4957
|
+
defaultEnabled: z.boolean().optional()
|
|
4958
|
+
})
|
|
4959
|
+
).default({})
|
|
4960
|
+
}).default({}),
|
|
4905
4961
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
4906
4962
|
}).default({}),
|
|
4907
4963
|
write: z.object({
|
|
4908
|
-
credentials: z.object({
|
|
4964
|
+
credentials: z.object({
|
|
4965
|
+
categories: z.record(
|
|
4966
|
+
z.object({
|
|
4967
|
+
required: z.boolean(),
|
|
4968
|
+
defaultEnabled: z.boolean().optional()
|
|
4969
|
+
})
|
|
4970
|
+
).default({})
|
|
4971
|
+
}).default({}),
|
|
4909
4972
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
4910
4973
|
}).default({})
|
|
4911
4974
|
});
|
|
@@ -5048,6 +5111,17 @@ var require_types_cjs_development = __commonJS({
|
|
|
5048
5111
|
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
|
5049
5112
|
records: ConsentFlowTransactionValidator.array()
|
|
5050
5113
|
});
|
|
5114
|
+
var BaseSkillFrameworkQueryValidator = z.object({
|
|
5115
|
+
id: StringQuery,
|
|
5116
|
+
name: StringQuery,
|
|
5117
|
+
description: StringQuery,
|
|
5118
|
+
sourceURI: StringQuery,
|
|
5119
|
+
status: StringQuery
|
|
5120
|
+
}).partial();
|
|
5121
|
+
var SkillFrameworkQueryValidator = z.union([
|
|
5122
|
+
z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
|
|
5123
|
+
BaseSkillFrameworkQueryValidator
|
|
5124
|
+
]);
|
|
5051
5125
|
var ContractCredentialValidator = z.object({
|
|
5052
5126
|
credentialUri: z.string(),
|
|
5053
5127
|
termsUri: z.string(),
|
|
@@ -5102,8 +5176,9 @@ var require_types_cjs_development = __commonJS({
|
|
|
5102
5176
|
vcUris: z.array(z.string()).optional(),
|
|
5103
5177
|
vpUris: z.array(z.string()).optional(),
|
|
5104
5178
|
transaction: ConsentFlowTransactionValidator.optional(),
|
|
5105
|
-
inbox: LCNNotificationInboxValidator.optional()
|
|
5106
|
-
|
|
5179
|
+
inbox: LCNNotificationInboxValidator.optional(),
|
|
5180
|
+
metadata: z.record(z.unknown()).optional()
|
|
5181
|
+
}).passthrough();
|
|
5107
5182
|
var LCNNotificationValidator = z.object({
|
|
5108
5183
|
type: LCNNotificationTypeEnumValidator,
|
|
5109
5184
|
to: LCNProfileValidator.partial().and(z.object({ did: z.string() })),
|
|
@@ -5226,31 +5301,55 @@ var require_types_cjs_development = __commonJS({
|
|
|
5226
5301
|
});
|
|
5227
5302
|
var IssueInboxCredentialValidator = z.object({
|
|
5228
5303
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
5229
|
-
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
5304
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
5305
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
5306
|
+
),
|
|
5230
5307
|
configuration: z.object({
|
|
5231
|
-
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
5308
|
+
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
5309
|
+
"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."
|
|
5310
|
+
),
|
|
5232
5311
|
webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
5233
5312
|
expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
5234
5313
|
delivery: z.object({
|
|
5235
|
-
suppress: z.boolean().optional().default(false).describe(
|
|
5314
|
+
suppress: z.boolean().optional().default(false).describe(
|
|
5315
|
+
"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."
|
|
5316
|
+
),
|
|
5236
5317
|
template: z.object({
|
|
5237
|
-
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
5318
|
+
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
5319
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
5320
|
+
),
|
|
5238
5321
|
model: z.object({
|
|
5239
5322
|
issuer: z.object({
|
|
5240
|
-
name: z.string().optional().describe(
|
|
5323
|
+
name: z.string().optional().describe(
|
|
5324
|
+
'The name of the organization (e.g., "State University").'
|
|
5325
|
+
),
|
|
5241
5326
|
logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
|
|
5242
5327
|
}).optional(),
|
|
5243
5328
|
credential: z.object({
|
|
5244
|
-
name: z.string().optional().describe(
|
|
5245
|
-
|
|
5329
|
+
name: z.string().optional().describe(
|
|
5330
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
5331
|
+
),
|
|
5332
|
+
type: z.string().optional().describe(
|
|
5333
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
5334
|
+
)
|
|
5246
5335
|
}).optional(),
|
|
5247
5336
|
recipient: z.object({
|
|
5248
|
-
name: z.string().optional().describe(
|
|
5337
|
+
name: z.string().optional().describe(
|
|
5338
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
5339
|
+
)
|
|
5249
5340
|
}).optional()
|
|
5250
|
-
}).describe(
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5341
|
+
}).describe(
|
|
5342
|
+
"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."
|
|
5343
|
+
)
|
|
5344
|
+
}).optional().describe(
|
|
5345
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
5346
|
+
)
|
|
5347
|
+
}).optional().describe(
|
|
5348
|
+
"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."
|
|
5349
|
+
)
|
|
5350
|
+
}).optional().describe(
|
|
5351
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
5352
|
+
)
|
|
5254
5353
|
});
|
|
5255
5354
|
var IssueInboxCredentialResponseValidator = z.object({
|
|
5256
5355
|
issuanceId: z.string(),
|
|
@@ -5312,6 +5411,191 @@ var require_types_cjs_development = __commonJS({
|
|
|
5312
5411
|
expiresAt: z.string(),
|
|
5313
5412
|
used: z.boolean()
|
|
5314
5413
|
});
|
|
5414
|
+
var TagValidator = z.object({
|
|
5415
|
+
id: z.string(),
|
|
5416
|
+
name: z.string().min(1),
|
|
5417
|
+
slug: z.string().min(1),
|
|
5418
|
+
createdAt: z.string().optional(),
|
|
5419
|
+
updatedAt: z.string().optional()
|
|
5420
|
+
});
|
|
5421
|
+
var SkillStatusEnum = z.enum(["active", "archived"]);
|
|
5422
|
+
var SkillValidator = z.object({
|
|
5423
|
+
id: z.string(),
|
|
5424
|
+
statement: z.string(),
|
|
5425
|
+
description: z.string().optional(),
|
|
5426
|
+
code: z.string().optional(),
|
|
5427
|
+
icon: z.string().optional(),
|
|
5428
|
+
type: z.string().default("skill"),
|
|
5429
|
+
status: SkillStatusEnum.default("active"),
|
|
5430
|
+
frameworkId: z.string().optional(),
|
|
5431
|
+
createdAt: z.string().optional(),
|
|
5432
|
+
updatedAt: z.string().optional()
|
|
5433
|
+
});
|
|
5434
|
+
var BaseSkillQueryValidator = z.object({
|
|
5435
|
+
id: StringQuery,
|
|
5436
|
+
statement: StringQuery,
|
|
5437
|
+
description: StringQuery,
|
|
5438
|
+
code: StringQuery,
|
|
5439
|
+
type: StringQuery,
|
|
5440
|
+
status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
|
|
5441
|
+
}).partial();
|
|
5442
|
+
var SkillQueryValidator = z.union([
|
|
5443
|
+
z.object({
|
|
5444
|
+
$or: BaseSkillQueryValidator.array()
|
|
5445
|
+
}),
|
|
5446
|
+
BaseSkillQueryValidator
|
|
5447
|
+
]);
|
|
5448
|
+
var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
|
|
5449
|
+
var SkillFrameworkValidator = z.object({
|
|
5450
|
+
id: z.string(),
|
|
5451
|
+
name: z.string(),
|
|
5452
|
+
description: z.string().optional(),
|
|
5453
|
+
image: z.string().optional(),
|
|
5454
|
+
sourceURI: z.string().url().optional(),
|
|
5455
|
+
status: SkillFrameworkStatusEnum.default("active"),
|
|
5456
|
+
createdAt: z.string().optional(),
|
|
5457
|
+
updatedAt: z.string().optional()
|
|
5458
|
+
});
|
|
5459
|
+
var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
|
|
5460
|
+
records: SkillFrameworkValidator.array()
|
|
5461
|
+
});
|
|
5462
|
+
var SkillTreeNodeValidator = SkillValidator.extend({
|
|
5463
|
+
children: z.array(z.lazy(() => SkillTreeNodeValidator)),
|
|
5464
|
+
hasChildren: z.boolean(),
|
|
5465
|
+
childrenCursor: z.string().nullable().optional()
|
|
5466
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
5467
|
+
var PaginatedSkillTreeValidator = z.object({
|
|
5468
|
+
hasMore: z.boolean(),
|
|
5469
|
+
cursor: z.string().nullable(),
|
|
5470
|
+
records: z.array(SkillTreeNodeValidator)
|
|
5471
|
+
});
|
|
5472
|
+
var SkillTreeNodeInputValidator = z.lazy(
|
|
5473
|
+
() => z.object({
|
|
5474
|
+
id: z.string().optional(),
|
|
5475
|
+
statement: z.string(),
|
|
5476
|
+
description: z.string().optional(),
|
|
5477
|
+
code: z.string().optional(),
|
|
5478
|
+
icon: z.string().optional(),
|
|
5479
|
+
type: z.string().optional(),
|
|
5480
|
+
status: SkillStatusEnum.optional(),
|
|
5481
|
+
children: z.array(SkillTreeNodeInputValidator).optional()
|
|
5482
|
+
})
|
|
5483
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
5484
|
+
var LinkProviderFrameworkInputValidator = z.object({
|
|
5485
|
+
frameworkId: z.string()
|
|
5486
|
+
});
|
|
5487
|
+
var CreateManagedFrameworkInputValidator = z.object({
|
|
5488
|
+
id: z.string().optional(),
|
|
5489
|
+
name: z.string().min(1),
|
|
5490
|
+
description: z.string().optional(),
|
|
5491
|
+
image: z.string().optional(),
|
|
5492
|
+
sourceURI: z.string().url().optional(),
|
|
5493
|
+
status: SkillFrameworkStatusEnum.optional(),
|
|
5494
|
+
skills: z.array(SkillTreeNodeInputValidator).optional(),
|
|
5495
|
+
boostUris: z.array(z.string()).optional()
|
|
5496
|
+
});
|
|
5497
|
+
var UpdateFrameworkInputValidator = z.object({
|
|
5498
|
+
id: z.string(),
|
|
5499
|
+
name: z.string().min(1).optional(),
|
|
5500
|
+
description: z.string().optional(),
|
|
5501
|
+
image: z.string().optional(),
|
|
5502
|
+
sourceURI: z.string().url().optional(),
|
|
5503
|
+
status: SkillFrameworkStatusEnum.optional()
|
|
5504
|
+
}).refine(
|
|
5505
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
5506
|
+
{
|
|
5507
|
+
message: "At least one field must be provided to update",
|
|
5508
|
+
path: ["name"]
|
|
5509
|
+
}
|
|
5510
|
+
);
|
|
5511
|
+
var DeleteFrameworkInputValidator = z.object({ id: z.string() });
|
|
5512
|
+
var CreateManagedFrameworkBatchInputValidator = z.object({
|
|
5513
|
+
frameworks: z.array(
|
|
5514
|
+
CreateManagedFrameworkInputValidator.extend({
|
|
5515
|
+
skills: z.array(SkillTreeNodeInputValidator).optional()
|
|
5516
|
+
})
|
|
5517
|
+
).min(1)
|
|
5518
|
+
});
|
|
5519
|
+
var SkillFrameworkAdminInputValidator = z.object({
|
|
5520
|
+
frameworkId: z.string(),
|
|
5521
|
+
profileId: z.string()
|
|
5522
|
+
});
|
|
5523
|
+
var SkillFrameworkIdInputValidator = z.object({ frameworkId: z.string() });
|
|
5524
|
+
var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
|
|
5525
|
+
var SyncFrameworkInputValidator = z.object({ id: z.string() });
|
|
5526
|
+
var AddTagInputValidator = z.object({
|
|
5527
|
+
slug: z.string().min(1),
|
|
5528
|
+
name: z.string().min(1)
|
|
5529
|
+
});
|
|
5530
|
+
var CreateSkillInputValidator = z.object({
|
|
5531
|
+
frameworkId: z.string(),
|
|
5532
|
+
skill: SkillTreeNodeInputValidator,
|
|
5533
|
+
parentId: z.string().nullable().optional()
|
|
5534
|
+
});
|
|
5535
|
+
var UpdateSkillInputValidator = z.object({
|
|
5536
|
+
frameworkId: z.string(),
|
|
5537
|
+
id: z.string(),
|
|
5538
|
+
statement: z.string().optional(),
|
|
5539
|
+
description: z.string().optional(),
|
|
5540
|
+
code: z.string().optional(),
|
|
5541
|
+
icon: z.string().optional(),
|
|
5542
|
+
type: z.string().optional(),
|
|
5543
|
+
status: SkillStatusEnum.optional()
|
|
5544
|
+
}).refine(
|
|
5545
|
+
(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,
|
|
5546
|
+
{
|
|
5547
|
+
message: "At least one field must be provided to update a skill",
|
|
5548
|
+
path: ["statement"]
|
|
5549
|
+
}
|
|
5550
|
+
);
|
|
5551
|
+
var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
|
|
5552
|
+
var DeleteSkillInputValidator = z.object({
|
|
5553
|
+
frameworkId: z.string(),
|
|
5554
|
+
id: z.string(),
|
|
5555
|
+
strategy: SkillDeletionStrategyValidator.optional().default("reparent")
|
|
5556
|
+
});
|
|
5557
|
+
var CreateSkillsBatchInputValidator = z.object({
|
|
5558
|
+
frameworkId: z.string(),
|
|
5559
|
+
skills: z.array(SkillTreeNodeInputValidator).min(1),
|
|
5560
|
+
parentId: z.string().nullable().optional()
|
|
5561
|
+
});
|
|
5562
|
+
var ReplaceSkillFrameworkSkillsInputValidator = z.object({
|
|
5563
|
+
frameworkId: z.string(),
|
|
5564
|
+
skills: z.array(SkillTreeNodeInputValidator).min(0)
|
|
5565
|
+
});
|
|
5566
|
+
var ReplaceSkillFrameworkSkillsResultValidator = z.object({
|
|
5567
|
+
created: z.number().int().min(0),
|
|
5568
|
+
updated: z.number().int().min(0),
|
|
5569
|
+
deleted: z.number().int().min(0),
|
|
5570
|
+
unchanged: z.number().int().min(0),
|
|
5571
|
+
total: z.number().int().min(0)
|
|
5572
|
+
});
|
|
5573
|
+
var CountSkillsInputValidator = z.object({
|
|
5574
|
+
frameworkId: z.string(),
|
|
5575
|
+
skillId: z.string().optional(),
|
|
5576
|
+
recursive: z.boolean().optional().default(false),
|
|
5577
|
+
onlyCountCompetencies: z.boolean().optional().default(false)
|
|
5578
|
+
});
|
|
5579
|
+
var CountSkillsResultValidator = z.object({
|
|
5580
|
+
count: z.number().int().min(0)
|
|
5581
|
+
});
|
|
5582
|
+
var GetFullSkillTreeInputValidator = z.object({
|
|
5583
|
+
frameworkId: z.string()
|
|
5584
|
+
});
|
|
5585
|
+
var GetFullSkillTreeResultValidator = z.object({
|
|
5586
|
+
skills: z.array(SkillTreeNodeValidator)
|
|
5587
|
+
});
|
|
5588
|
+
var GetSkillPathInputValidator = z.object({
|
|
5589
|
+
frameworkId: z.string(),
|
|
5590
|
+
skillId: z.string()
|
|
5591
|
+
});
|
|
5592
|
+
var GetSkillPathResultValidator = z.object({
|
|
5593
|
+
path: z.array(SkillValidator)
|
|
5594
|
+
});
|
|
5595
|
+
var FrameworkWithSkillsValidator = z.object({
|
|
5596
|
+
framework: SkillFrameworkValidator,
|
|
5597
|
+
skills: PaginatedSkillTreeValidator
|
|
5598
|
+
});
|
|
5315
5599
|
}
|
|
5316
5600
|
});
|
|
5317
5601
|
var require_dist = __commonJS({
|