@learncard/learn-cloud-plugin 2.2.6 → 2.2.9
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/learn-cloud-plugin.cjs.development.js +571 -38
- package/dist/learn-cloud-plugin.cjs.development.js.map +3 -3
- package/dist/learn-cloud-plugin.cjs.production.min.js +16 -16
- package/dist/learn-cloud-plugin.cjs.production.min.js.map +3 -3
- package/dist/learn-cloud-plugin.esm.js +571 -38
- package/dist/learn-cloud-plugin.esm.js.map +3 -3
- package/package.json +7 -7
|
@@ -8151,6 +8151,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
8151
8151
|
AchievementSubjectValidator: () => AchievementSubjectValidator2,
|
|
8152
8152
|
AchievementTypeValidator: () => AchievementTypeValidator2,
|
|
8153
8153
|
AchievementValidator: () => AchievementValidator2,
|
|
8154
|
+
AddTagInputValidator: () => AddTagInputValidator2,
|
|
8154
8155
|
AddressValidator: () => AddressValidator2,
|
|
8155
8156
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator2,
|
|
8156
8157
|
AlignmentValidator: () => AlignmentValidator2,
|
|
@@ -8190,14 +8191,22 @@ var require_types_cjs_development = __commonJS2({
|
|
|
8190
8191
|
ContactMethodVerificationValidator: () => ContactMethodVerificationValidator2,
|
|
8191
8192
|
ContextValidator: () => ContextValidator2,
|
|
8192
8193
|
ContractCredentialValidator: () => ContractCredentialValidator2,
|
|
8194
|
+
CountSkillsInputValidator: () => CountSkillsInputValidator2,
|
|
8195
|
+
CountSkillsResultValidator: () => CountSkillsResultValidator2,
|
|
8193
8196
|
CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator2,
|
|
8194
8197
|
CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator2,
|
|
8198
|
+
CreateManagedFrameworkBatchInputValidator: () => CreateManagedFrameworkBatchInputValidator2,
|
|
8199
|
+
CreateManagedFrameworkInputValidator: () => CreateManagedFrameworkInputValidator2,
|
|
8200
|
+
CreateSkillInputValidator: () => CreateSkillInputValidator2,
|
|
8201
|
+
CreateSkillsBatchInputValidator: () => CreateSkillsBatchInputValidator2,
|
|
8195
8202
|
CredentialInfoValidator: () => CredentialInfoValidator2,
|
|
8196
8203
|
CredentialRecordValidator: () => CredentialRecordValidator2,
|
|
8197
8204
|
CredentialSchemaValidator: () => CredentialSchemaValidator2,
|
|
8198
8205
|
CredentialStatusValidator: () => CredentialStatusValidator2,
|
|
8199
8206
|
CredentialSubjectValidator: () => CredentialSubjectValidator2,
|
|
8200
8207
|
CriteriaValidator: () => CriteriaValidator2,
|
|
8208
|
+
DeleteFrameworkInputValidator: () => DeleteFrameworkInputValidator2,
|
|
8209
|
+
DeleteSkillInputValidator: () => DeleteSkillInputValidator2,
|
|
8201
8210
|
DidDocumentValidator: () => DidDocumentValidator2,
|
|
8202
8211
|
EncryptedCredentialRecordValidator: () => EncryptedCredentialRecordValidator2,
|
|
8203
8212
|
EncryptedRecordValidator: () => EncryptedRecordValidator2,
|
|
@@ -8205,8 +8214,13 @@ var require_types_cjs_development = __commonJS2({
|
|
|
8205
8214
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator2,
|
|
8206
8215
|
EvidenceValidator: () => EvidenceValidator2,
|
|
8207
8216
|
FlatAuthGrantValidator: () => FlatAuthGrantValidator2,
|
|
8217
|
+
FrameworkWithSkillsValidator: () => FrameworkWithSkillsValidator2,
|
|
8208
8218
|
FullClaimHookValidator: () => FullClaimHookValidator2,
|
|
8209
8219
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator2,
|
|
8220
|
+
GetFullSkillTreeInputValidator: () => GetFullSkillTreeInputValidator2,
|
|
8221
|
+
GetFullSkillTreeResultValidator: () => GetFullSkillTreeResultValidator2,
|
|
8222
|
+
GetSkillPathInputValidator: () => GetSkillPathInputValidator2,
|
|
8223
|
+
GetSkillPathResultValidator: () => GetSkillPathResultValidator2,
|
|
8210
8224
|
IdentifierEntryValidator: () => IdentifierEntryValidator2,
|
|
8211
8225
|
IdentifierTypeValidator: () => IdentifierTypeValidator2,
|
|
8212
8226
|
IdentityObjectValidator: () => IdentityObjectValidator2,
|
|
@@ -8245,6 +8259,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
8245
8259
|
LCNProfileValidator: () => LCNProfileValidator2,
|
|
8246
8260
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator2,
|
|
8247
8261
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator2,
|
|
8262
|
+
LinkProviderFrameworkInputValidator: () => LinkProviderFrameworkInputValidator2,
|
|
8248
8263
|
PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator2,
|
|
8249
8264
|
PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator2,
|
|
8250
8265
|
PaginatedBoostsValidator: () => PaginatedBoostsValidator2,
|
|
@@ -8262,6 +8277,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
8262
8277
|
PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator2,
|
|
8263
8278
|
PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator2,
|
|
8264
8279
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator2,
|
|
8280
|
+
PaginatedSkillFrameworksValidator: () => PaginatedSkillFrameworksValidator2,
|
|
8281
|
+
PaginatedSkillTreeValidator: () => PaginatedSkillTreeValidator2,
|
|
8265
8282
|
PaginationOptionsValidator: () => PaginationOptionsValidator2,
|
|
8266
8283
|
PaginationResponseValidator: () => PaginationResponseValidator2,
|
|
8267
8284
|
ProfileValidator: () => ProfileValidator2,
|
|
@@ -8269,6 +8286,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
8269
8286
|
RefreshServiceValidator: () => RefreshServiceValidator2,
|
|
8270
8287
|
RegExpValidator: () => RegExpValidator2,
|
|
8271
8288
|
RelatedValidator: () => RelatedValidator2,
|
|
8289
|
+
ReplaceSkillFrameworkSkillsInputValidator: () => ReplaceSkillFrameworkSkillsInputValidator2,
|
|
8290
|
+
ReplaceSkillFrameworkSkillsResultValidator: () => ReplaceSkillFrameworkSkillsResultValidator2,
|
|
8272
8291
|
ResultDescriptionValidator: () => ResultDescriptionValidator2,
|
|
8273
8292
|
ResultStatusTypeValidator: () => ResultStatusTypeValidator2,
|
|
8274
8293
|
ResultTypeValidator: () => ResultTypeValidator2,
|
|
@@ -8277,11 +8296,27 @@ var require_types_cjs_development = __commonJS2({
|
|
|
8277
8296
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator2,
|
|
8278
8297
|
ServiceValidator: () => ServiceValidator2,
|
|
8279
8298
|
SetPrimaryContactMethodValidator: () => SetPrimaryContactMethodValidator2,
|
|
8299
|
+
SkillDeletionStrategyValidator: () => SkillDeletionStrategyValidator2,
|
|
8300
|
+
SkillFrameworkAdminInputValidator: () => SkillFrameworkAdminInputValidator2,
|
|
8301
|
+
SkillFrameworkAdminsValidator: () => SkillFrameworkAdminsValidator2,
|
|
8302
|
+
SkillFrameworkIdInputValidator: () => SkillFrameworkIdInputValidator2,
|
|
8303
|
+
SkillFrameworkQueryValidator: () => SkillFrameworkQueryValidator2,
|
|
8304
|
+
SkillFrameworkStatusEnum: () => SkillFrameworkStatusEnum2,
|
|
8305
|
+
SkillFrameworkValidator: () => SkillFrameworkValidator2,
|
|
8306
|
+
SkillQueryValidator: () => SkillQueryValidator2,
|
|
8307
|
+
SkillStatusEnum: () => SkillStatusEnum2,
|
|
8308
|
+
SkillTreeNodeInputValidator: () => SkillTreeNodeInputValidator2,
|
|
8309
|
+
SkillTreeNodeValidator: () => SkillTreeNodeValidator2,
|
|
8310
|
+
SkillValidator: () => SkillValidator2,
|
|
8280
8311
|
StringQuery: () => StringQuery2,
|
|
8312
|
+
SyncFrameworkInputValidator: () => SyncFrameworkInputValidator2,
|
|
8313
|
+
TagValidator: () => TagValidator2,
|
|
8281
8314
|
TermsOfUseValidator: () => TermsOfUseValidator2,
|
|
8282
8315
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator2,
|
|
8283
8316
|
UnsignedVCValidator: () => UnsignedVCValidator2,
|
|
8284
8317
|
UnsignedVPValidator: () => UnsignedVPValidator2,
|
|
8318
|
+
UpdateFrameworkInputValidator: () => UpdateFrameworkInputValidator2,
|
|
8319
|
+
UpdateSkillInputValidator: () => UpdateSkillInputValidator2,
|
|
8285
8320
|
VC2EvidenceValidator: () => VC2EvidenceValidator2,
|
|
8286
8321
|
VCValidator: () => VCValidator2,
|
|
8287
8322
|
VPValidator: () => VPValidator2,
|
|
@@ -12764,7 +12799,14 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12764
12799
|
}
|
|
12765
12800
|
})
|
|
12766
12801
|
);
|
|
12767
|
-
var
|
|
12802
|
+
var BaseStringQuery2 = z2.string().or(z2.object({ $in: z2.string().array() })).or(z2.object({ $regex: RegExpValidator2 }));
|
|
12803
|
+
var StringQuery2 = z2.union([
|
|
12804
|
+
BaseStringQuery2,
|
|
12805
|
+
z2.object({
|
|
12806
|
+
$or: BaseStringQuery2.array()
|
|
12807
|
+
})
|
|
12808
|
+
]);
|
|
12809
|
+
extendZodWithOpenApi2(z2);
|
|
12768
12810
|
var LCNProfileDisplayValidator2 = z2.object({
|
|
12769
12811
|
backgroundColor: z2.string().optional(),
|
|
12770
12812
|
backgroundImage: z2.string().optional(),
|
|
@@ -12849,7 +12891,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12849
12891
|
to: z2.string(),
|
|
12850
12892
|
from: z2.string(),
|
|
12851
12893
|
sent: z2.string().datetime(),
|
|
12852
|
-
received: z2.string().datetime().optional()
|
|
12894
|
+
received: z2.string().datetime().optional(),
|
|
12895
|
+
metadata: z2.record(z2.unknown()).optional()
|
|
12853
12896
|
});
|
|
12854
12897
|
var BoostPermissionsValidator2 = z2.object({
|
|
12855
12898
|
role: z2.string(),
|
|
@@ -12922,7 +12965,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12922
12965
|
claimPermissions: BoostPermissionsValidator2.optional(),
|
|
12923
12966
|
allowAnyoneToCreateChildren: z2.boolean().optional()
|
|
12924
12967
|
});
|
|
12925
|
-
var
|
|
12968
|
+
var BaseBoostQueryValidator2 = z2.object({
|
|
12926
12969
|
uri: StringQuery2,
|
|
12927
12970
|
name: StringQuery2,
|
|
12928
12971
|
type: StringQuery2,
|
|
@@ -12931,6 +12974,12 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12931
12974
|
status: LCNBoostStatus2.or(z2.object({ $in: LCNBoostStatus2.array() })),
|
|
12932
12975
|
autoConnectRecipients: z2.boolean()
|
|
12933
12976
|
}).partial();
|
|
12977
|
+
var BoostQueryValidator2 = z2.union([
|
|
12978
|
+
z2.object({
|
|
12979
|
+
$or: BaseBoostQueryValidator2.array()
|
|
12980
|
+
}),
|
|
12981
|
+
BaseBoostQueryValidator2
|
|
12982
|
+
]);
|
|
12934
12983
|
var PaginatedBoostsValidator2 = PaginationResponseValidator2.extend({
|
|
12935
12984
|
records: BoostValidator2.array()
|
|
12936
12985
|
});
|
|
@@ -12986,11 +13035,25 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12986
13035
|
var ConsentFlowContractValidator2 = z2.object({
|
|
12987
13036
|
read: z2.object({
|
|
12988
13037
|
anonymize: z2.boolean().optional(),
|
|
12989
|
-
credentials: z2.object({
|
|
13038
|
+
credentials: z2.object({
|
|
13039
|
+
categories: z2.record(
|
|
13040
|
+
z2.object({
|
|
13041
|
+
required: z2.boolean(),
|
|
13042
|
+
defaultEnabled: z2.boolean().optional()
|
|
13043
|
+
})
|
|
13044
|
+
).default({})
|
|
13045
|
+
}).default({}),
|
|
12990
13046
|
personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
|
|
12991
13047
|
}).default({}),
|
|
12992
13048
|
write: z2.object({
|
|
12993
|
-
credentials: z2.object({
|
|
13049
|
+
credentials: z2.object({
|
|
13050
|
+
categories: z2.record(
|
|
13051
|
+
z2.object({
|
|
13052
|
+
required: z2.boolean(),
|
|
13053
|
+
defaultEnabled: z2.boolean().optional()
|
|
13054
|
+
})
|
|
13055
|
+
).default({})
|
|
13056
|
+
}).default({}),
|
|
12994
13057
|
personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
|
|
12995
13058
|
}).default({})
|
|
12996
13059
|
});
|
|
@@ -13133,6 +13196,17 @@ var require_types_cjs_development = __commonJS2({
|
|
|
13133
13196
|
var PaginatedConsentFlowTransactionsValidator2 = PaginationResponseValidator2.extend({
|
|
13134
13197
|
records: ConsentFlowTransactionValidator2.array()
|
|
13135
13198
|
});
|
|
13199
|
+
var BaseSkillFrameworkQueryValidator2 = z2.object({
|
|
13200
|
+
id: StringQuery2,
|
|
13201
|
+
name: StringQuery2,
|
|
13202
|
+
description: StringQuery2,
|
|
13203
|
+
sourceURI: StringQuery2,
|
|
13204
|
+
status: StringQuery2
|
|
13205
|
+
}).partial();
|
|
13206
|
+
var SkillFrameworkQueryValidator2 = z2.union([
|
|
13207
|
+
z2.object({ $or: BaseSkillFrameworkQueryValidator2.array() }),
|
|
13208
|
+
BaseSkillFrameworkQueryValidator2
|
|
13209
|
+
]);
|
|
13136
13210
|
var ContractCredentialValidator2 = z2.object({
|
|
13137
13211
|
credentialUri: z2.string(),
|
|
13138
13212
|
termsUri: z2.string(),
|
|
@@ -13187,8 +13261,9 @@ var require_types_cjs_development = __commonJS2({
|
|
|
13187
13261
|
vcUris: z2.array(z2.string()).optional(),
|
|
13188
13262
|
vpUris: z2.array(z2.string()).optional(),
|
|
13189
13263
|
transaction: ConsentFlowTransactionValidator2.optional(),
|
|
13190
|
-
inbox: LCNNotificationInboxValidator2.optional()
|
|
13191
|
-
|
|
13264
|
+
inbox: LCNNotificationInboxValidator2.optional(),
|
|
13265
|
+
metadata: z2.record(z2.unknown()).optional()
|
|
13266
|
+
}).passthrough();
|
|
13192
13267
|
var LCNNotificationValidator2 = z2.object({
|
|
13193
13268
|
type: LCNNotificationTypeEnumValidator2,
|
|
13194
13269
|
to: LCNProfileValidator2.partial().and(z2.object({ did: z2.string() })),
|
|
@@ -13311,31 +13386,55 @@ var require_types_cjs_development = __commonJS2({
|
|
|
13311
13386
|
});
|
|
13312
13387
|
var IssueInboxCredentialValidator2 = z2.object({
|
|
13313
13388
|
recipient: ContactMethodQueryValidator2.describe("The recipient of the credential"),
|
|
13314
|
-
credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
|
|
13389
|
+
credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
|
|
13390
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
13391
|
+
),
|
|
13315
13392
|
configuration: z2.object({
|
|
13316
|
-
signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
|
|
13393
|
+
signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
|
|
13394
|
+
"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."
|
|
13395
|
+
),
|
|
13317
13396
|
webhookUrl: z2.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
13318
13397
|
expiresInDays: z2.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
13319
13398
|
delivery: z2.object({
|
|
13320
|
-
suppress: z2.boolean().optional().default(false).describe(
|
|
13399
|
+
suppress: z2.boolean().optional().default(false).describe(
|
|
13400
|
+
"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."
|
|
13401
|
+
),
|
|
13321
13402
|
template: z2.object({
|
|
13322
|
-
id: z2.enum(["universal-inbox-claim"]).optional().describe(
|
|
13403
|
+
id: z2.enum(["universal-inbox-claim"]).optional().describe(
|
|
13404
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
13405
|
+
),
|
|
13323
13406
|
model: z2.object({
|
|
13324
13407
|
issuer: z2.object({
|
|
13325
|
-
name: z2.string().optional().describe(
|
|
13408
|
+
name: z2.string().optional().describe(
|
|
13409
|
+
'The name of the organization (e.g., "State University").'
|
|
13410
|
+
),
|
|
13326
13411
|
logoUrl: z2.string().url().optional().describe("The URL of the organization's logo.")
|
|
13327
13412
|
}).optional(),
|
|
13328
13413
|
credential: z2.object({
|
|
13329
|
-
name: z2.string().optional().describe(
|
|
13330
|
-
|
|
13414
|
+
name: z2.string().optional().describe(
|
|
13415
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
13416
|
+
),
|
|
13417
|
+
type: z2.string().optional().describe(
|
|
13418
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
13419
|
+
)
|
|
13331
13420
|
}).optional(),
|
|
13332
13421
|
recipient: z2.object({
|
|
13333
|
-
name: z2.string().optional().describe(
|
|
13422
|
+
name: z2.string().optional().describe(
|
|
13423
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
13424
|
+
)
|
|
13334
13425
|
}).optional()
|
|
13335
|
-
}).describe(
|
|
13336
|
-
|
|
13337
|
-
|
|
13338
|
-
|
|
13426
|
+
}).describe(
|
|
13427
|
+
"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."
|
|
13428
|
+
)
|
|
13429
|
+
}).optional().describe(
|
|
13430
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
13431
|
+
)
|
|
13432
|
+
}).optional().describe(
|
|
13433
|
+
"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."
|
|
13434
|
+
)
|
|
13435
|
+
}).optional().describe(
|
|
13436
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
13437
|
+
)
|
|
13339
13438
|
});
|
|
13340
13439
|
var IssueInboxCredentialResponseValidator2 = z2.object({
|
|
13341
13440
|
issuanceId: z2.string(),
|
|
@@ -13397,6 +13496,191 @@ var require_types_cjs_development = __commonJS2({
|
|
|
13397
13496
|
expiresAt: z2.string(),
|
|
13398
13497
|
used: z2.boolean()
|
|
13399
13498
|
});
|
|
13499
|
+
var TagValidator2 = z2.object({
|
|
13500
|
+
id: z2.string(),
|
|
13501
|
+
name: z2.string().min(1),
|
|
13502
|
+
slug: z2.string().min(1),
|
|
13503
|
+
createdAt: z2.string().optional(),
|
|
13504
|
+
updatedAt: z2.string().optional()
|
|
13505
|
+
});
|
|
13506
|
+
var SkillStatusEnum2 = z2.enum(["active", "archived"]);
|
|
13507
|
+
var SkillValidator2 = z2.object({
|
|
13508
|
+
id: z2.string(),
|
|
13509
|
+
statement: z2.string(),
|
|
13510
|
+
description: z2.string().optional(),
|
|
13511
|
+
code: z2.string().optional(),
|
|
13512
|
+
icon: z2.string().optional(),
|
|
13513
|
+
type: z2.string().default("skill"),
|
|
13514
|
+
status: SkillStatusEnum2.default("active"),
|
|
13515
|
+
frameworkId: z2.string().optional(),
|
|
13516
|
+
createdAt: z2.string().optional(),
|
|
13517
|
+
updatedAt: z2.string().optional()
|
|
13518
|
+
});
|
|
13519
|
+
var BaseSkillQueryValidator2 = z2.object({
|
|
13520
|
+
id: StringQuery2,
|
|
13521
|
+
statement: StringQuery2,
|
|
13522
|
+
description: StringQuery2,
|
|
13523
|
+
code: StringQuery2,
|
|
13524
|
+
type: StringQuery2,
|
|
13525
|
+
status: SkillStatusEnum2.or(z2.object({ $in: SkillStatusEnum2.array() }))
|
|
13526
|
+
}).partial();
|
|
13527
|
+
var SkillQueryValidator2 = z2.union([
|
|
13528
|
+
z2.object({
|
|
13529
|
+
$or: BaseSkillQueryValidator2.array()
|
|
13530
|
+
}),
|
|
13531
|
+
BaseSkillQueryValidator2
|
|
13532
|
+
]);
|
|
13533
|
+
var SkillFrameworkStatusEnum2 = z2.enum(["active", "archived"]);
|
|
13534
|
+
var SkillFrameworkValidator2 = z2.object({
|
|
13535
|
+
id: z2.string(),
|
|
13536
|
+
name: z2.string(),
|
|
13537
|
+
description: z2.string().optional(),
|
|
13538
|
+
image: z2.string().optional(),
|
|
13539
|
+
sourceURI: z2.string().url().optional(),
|
|
13540
|
+
status: SkillFrameworkStatusEnum2.default("active"),
|
|
13541
|
+
createdAt: z2.string().optional(),
|
|
13542
|
+
updatedAt: z2.string().optional()
|
|
13543
|
+
});
|
|
13544
|
+
var PaginatedSkillFrameworksValidator2 = PaginationResponseValidator2.extend({
|
|
13545
|
+
records: SkillFrameworkValidator2.array()
|
|
13546
|
+
});
|
|
13547
|
+
var SkillTreeNodeValidator2 = SkillValidator2.extend({
|
|
13548
|
+
children: z2.array(z2.lazy(() => SkillTreeNodeValidator2)),
|
|
13549
|
+
hasChildren: z2.boolean(),
|
|
13550
|
+
childrenCursor: z2.string().nullable().optional()
|
|
13551
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
13552
|
+
var PaginatedSkillTreeValidator2 = z2.object({
|
|
13553
|
+
hasMore: z2.boolean(),
|
|
13554
|
+
cursor: z2.string().nullable(),
|
|
13555
|
+
records: z2.array(SkillTreeNodeValidator2)
|
|
13556
|
+
});
|
|
13557
|
+
var SkillTreeNodeInputValidator2 = z2.lazy(
|
|
13558
|
+
() => z2.object({
|
|
13559
|
+
id: z2.string().optional(),
|
|
13560
|
+
statement: z2.string(),
|
|
13561
|
+
description: z2.string().optional(),
|
|
13562
|
+
code: z2.string().optional(),
|
|
13563
|
+
icon: z2.string().optional(),
|
|
13564
|
+
type: z2.string().optional(),
|
|
13565
|
+
status: SkillStatusEnum2.optional(),
|
|
13566
|
+
children: z2.array(SkillTreeNodeInputValidator2).optional()
|
|
13567
|
+
})
|
|
13568
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
13569
|
+
var LinkProviderFrameworkInputValidator2 = z2.object({
|
|
13570
|
+
frameworkId: z2.string()
|
|
13571
|
+
});
|
|
13572
|
+
var CreateManagedFrameworkInputValidator2 = z2.object({
|
|
13573
|
+
id: z2.string().optional(),
|
|
13574
|
+
name: z2.string().min(1),
|
|
13575
|
+
description: z2.string().optional(),
|
|
13576
|
+
image: z2.string().optional(),
|
|
13577
|
+
sourceURI: z2.string().url().optional(),
|
|
13578
|
+
status: SkillFrameworkStatusEnum2.optional(),
|
|
13579
|
+
skills: z2.array(SkillTreeNodeInputValidator2).optional(),
|
|
13580
|
+
boostUris: z2.array(z2.string()).optional()
|
|
13581
|
+
});
|
|
13582
|
+
var UpdateFrameworkInputValidator2 = z2.object({
|
|
13583
|
+
id: z2.string(),
|
|
13584
|
+
name: z2.string().min(1).optional(),
|
|
13585
|
+
description: z2.string().optional(),
|
|
13586
|
+
image: z2.string().optional(),
|
|
13587
|
+
sourceURI: z2.string().url().optional(),
|
|
13588
|
+
status: SkillFrameworkStatusEnum2.optional()
|
|
13589
|
+
}).refine(
|
|
13590
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
13591
|
+
{
|
|
13592
|
+
message: "At least one field must be provided to update",
|
|
13593
|
+
path: ["name"]
|
|
13594
|
+
}
|
|
13595
|
+
);
|
|
13596
|
+
var DeleteFrameworkInputValidator2 = z2.object({ id: z2.string() });
|
|
13597
|
+
var CreateManagedFrameworkBatchInputValidator2 = z2.object({
|
|
13598
|
+
frameworks: z2.array(
|
|
13599
|
+
CreateManagedFrameworkInputValidator2.extend({
|
|
13600
|
+
skills: z2.array(SkillTreeNodeInputValidator2).optional()
|
|
13601
|
+
})
|
|
13602
|
+
).min(1)
|
|
13603
|
+
});
|
|
13604
|
+
var SkillFrameworkAdminInputValidator2 = z2.object({
|
|
13605
|
+
frameworkId: z2.string(),
|
|
13606
|
+
profileId: z2.string()
|
|
13607
|
+
});
|
|
13608
|
+
var SkillFrameworkIdInputValidator2 = z2.object({ frameworkId: z2.string() });
|
|
13609
|
+
var SkillFrameworkAdminsValidator2 = LCNProfileValidator2.array();
|
|
13610
|
+
var SyncFrameworkInputValidator2 = z2.object({ id: z2.string() });
|
|
13611
|
+
var AddTagInputValidator2 = z2.object({
|
|
13612
|
+
slug: z2.string().min(1),
|
|
13613
|
+
name: z2.string().min(1)
|
|
13614
|
+
});
|
|
13615
|
+
var CreateSkillInputValidator2 = z2.object({
|
|
13616
|
+
frameworkId: z2.string(),
|
|
13617
|
+
skill: SkillTreeNodeInputValidator2,
|
|
13618
|
+
parentId: z2.string().nullable().optional()
|
|
13619
|
+
});
|
|
13620
|
+
var UpdateSkillInputValidator2 = z2.object({
|
|
13621
|
+
frameworkId: z2.string(),
|
|
13622
|
+
id: z2.string(),
|
|
13623
|
+
statement: z2.string().optional(),
|
|
13624
|
+
description: z2.string().optional(),
|
|
13625
|
+
code: z2.string().optional(),
|
|
13626
|
+
icon: z2.string().optional(),
|
|
13627
|
+
type: z2.string().optional(),
|
|
13628
|
+
status: SkillStatusEnum2.optional()
|
|
13629
|
+
}).refine(
|
|
13630
|
+
(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,
|
|
13631
|
+
{
|
|
13632
|
+
message: "At least one field must be provided to update a skill",
|
|
13633
|
+
path: ["statement"]
|
|
13634
|
+
}
|
|
13635
|
+
);
|
|
13636
|
+
var SkillDeletionStrategyValidator2 = z2.enum(["recursive", "reparent"]);
|
|
13637
|
+
var DeleteSkillInputValidator2 = z2.object({
|
|
13638
|
+
frameworkId: z2.string(),
|
|
13639
|
+
id: z2.string(),
|
|
13640
|
+
strategy: SkillDeletionStrategyValidator2.optional().default("reparent")
|
|
13641
|
+
});
|
|
13642
|
+
var CreateSkillsBatchInputValidator2 = z2.object({
|
|
13643
|
+
frameworkId: z2.string(),
|
|
13644
|
+
skills: z2.array(SkillTreeNodeInputValidator2).min(1),
|
|
13645
|
+
parentId: z2.string().nullable().optional()
|
|
13646
|
+
});
|
|
13647
|
+
var ReplaceSkillFrameworkSkillsInputValidator2 = z2.object({
|
|
13648
|
+
frameworkId: z2.string(),
|
|
13649
|
+
skills: z2.array(SkillTreeNodeInputValidator2).min(0)
|
|
13650
|
+
});
|
|
13651
|
+
var ReplaceSkillFrameworkSkillsResultValidator2 = z2.object({
|
|
13652
|
+
created: z2.number().int().min(0),
|
|
13653
|
+
updated: z2.number().int().min(0),
|
|
13654
|
+
deleted: z2.number().int().min(0),
|
|
13655
|
+
unchanged: z2.number().int().min(0),
|
|
13656
|
+
total: z2.number().int().min(0)
|
|
13657
|
+
});
|
|
13658
|
+
var CountSkillsInputValidator2 = z2.object({
|
|
13659
|
+
frameworkId: z2.string(),
|
|
13660
|
+
skillId: z2.string().optional(),
|
|
13661
|
+
recursive: z2.boolean().optional().default(false),
|
|
13662
|
+
onlyCountCompetencies: z2.boolean().optional().default(false)
|
|
13663
|
+
});
|
|
13664
|
+
var CountSkillsResultValidator2 = z2.object({
|
|
13665
|
+
count: z2.number().int().min(0)
|
|
13666
|
+
});
|
|
13667
|
+
var GetFullSkillTreeInputValidator2 = z2.object({
|
|
13668
|
+
frameworkId: z2.string()
|
|
13669
|
+
});
|
|
13670
|
+
var GetFullSkillTreeResultValidator2 = z2.object({
|
|
13671
|
+
skills: z2.array(SkillTreeNodeValidator2)
|
|
13672
|
+
});
|
|
13673
|
+
var GetSkillPathInputValidator2 = z2.object({
|
|
13674
|
+
frameworkId: z2.string(),
|
|
13675
|
+
skillId: z2.string()
|
|
13676
|
+
});
|
|
13677
|
+
var GetSkillPathResultValidator2 = z2.object({
|
|
13678
|
+
path: z2.array(SkillValidator2)
|
|
13679
|
+
});
|
|
13680
|
+
var FrameworkWithSkillsValidator2 = z2.object({
|
|
13681
|
+
framework: SkillFrameworkValidator2,
|
|
13682
|
+
skills: PaginatedSkillTreeValidator2
|
|
13683
|
+
});
|
|
13400
13684
|
}
|
|
13401
13685
|
});
|
|
13402
13686
|
var require_dist = __commonJS2({
|
|
@@ -17851,7 +18135,14 @@ var RegExpValidator = z.instanceof(RegExp).or(
|
|
|
17851
18135
|
}
|
|
17852
18136
|
})
|
|
17853
18137
|
);
|
|
17854
|
-
var
|
|
18138
|
+
var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
|
|
18139
|
+
var StringQuery = z.union([
|
|
18140
|
+
BaseStringQuery,
|
|
18141
|
+
z.object({
|
|
18142
|
+
$or: BaseStringQuery.array()
|
|
18143
|
+
})
|
|
18144
|
+
]);
|
|
18145
|
+
extendZodWithOpenApi(z);
|
|
17855
18146
|
var LCNProfileDisplayValidator = z.object({
|
|
17856
18147
|
backgroundColor: z.string().optional(),
|
|
17857
18148
|
backgroundImage: z.string().optional(),
|
|
@@ -17936,7 +18227,8 @@ var SentCredentialInfoValidator = z.object({
|
|
|
17936
18227
|
to: z.string(),
|
|
17937
18228
|
from: z.string(),
|
|
17938
18229
|
sent: z.string().datetime(),
|
|
17939
|
-
received: z.string().datetime().optional()
|
|
18230
|
+
received: z.string().datetime().optional(),
|
|
18231
|
+
metadata: z.record(z.unknown()).optional()
|
|
17940
18232
|
});
|
|
17941
18233
|
var BoostPermissionsValidator = z.object({
|
|
17942
18234
|
role: z.string(),
|
|
@@ -18009,7 +18301,7 @@ var BoostValidator = z.object({
|
|
|
18009
18301
|
claimPermissions: BoostPermissionsValidator.optional(),
|
|
18010
18302
|
allowAnyoneToCreateChildren: z.boolean().optional()
|
|
18011
18303
|
});
|
|
18012
|
-
var
|
|
18304
|
+
var BaseBoostQueryValidator = z.object({
|
|
18013
18305
|
uri: StringQuery,
|
|
18014
18306
|
name: StringQuery,
|
|
18015
18307
|
type: StringQuery,
|
|
@@ -18018,6 +18310,12 @@ var BoostQueryValidator = z.object({
|
|
|
18018
18310
|
status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
|
|
18019
18311
|
autoConnectRecipients: z.boolean()
|
|
18020
18312
|
}).partial();
|
|
18313
|
+
var BoostQueryValidator = z.union([
|
|
18314
|
+
z.object({
|
|
18315
|
+
$or: BaseBoostQueryValidator.array()
|
|
18316
|
+
}),
|
|
18317
|
+
BaseBoostQueryValidator
|
|
18318
|
+
]);
|
|
18021
18319
|
var PaginatedBoostsValidator = PaginationResponseValidator.extend({
|
|
18022
18320
|
records: BoostValidator.array()
|
|
18023
18321
|
});
|
|
@@ -18073,11 +18371,25 @@ var ConsentFlowTermsStatusValidator = z.enum(["live", "stale", "withdrawn"]);
|
|
|
18073
18371
|
var ConsentFlowContractValidator = z.object({
|
|
18074
18372
|
read: z.object({
|
|
18075
18373
|
anonymize: z.boolean().optional(),
|
|
18076
|
-
credentials: z.object({
|
|
18374
|
+
credentials: z.object({
|
|
18375
|
+
categories: z.record(
|
|
18376
|
+
z.object({
|
|
18377
|
+
required: z.boolean(),
|
|
18378
|
+
defaultEnabled: z.boolean().optional()
|
|
18379
|
+
})
|
|
18380
|
+
).default({})
|
|
18381
|
+
}).default({}),
|
|
18077
18382
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
18078
18383
|
}).default({}),
|
|
18079
18384
|
write: z.object({
|
|
18080
|
-
credentials: z.object({
|
|
18385
|
+
credentials: z.object({
|
|
18386
|
+
categories: z.record(
|
|
18387
|
+
z.object({
|
|
18388
|
+
required: z.boolean(),
|
|
18389
|
+
defaultEnabled: z.boolean().optional()
|
|
18390
|
+
})
|
|
18391
|
+
).default({})
|
|
18392
|
+
}).default({}),
|
|
18081
18393
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
18082
18394
|
}).default({})
|
|
18083
18395
|
});
|
|
@@ -18220,6 +18532,17 @@ var ConsentFlowTransactionValidator = z.object({
|
|
|
18220
18532
|
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
|
18221
18533
|
records: ConsentFlowTransactionValidator.array()
|
|
18222
18534
|
});
|
|
18535
|
+
var BaseSkillFrameworkQueryValidator = z.object({
|
|
18536
|
+
id: StringQuery,
|
|
18537
|
+
name: StringQuery,
|
|
18538
|
+
description: StringQuery,
|
|
18539
|
+
sourceURI: StringQuery,
|
|
18540
|
+
status: StringQuery
|
|
18541
|
+
}).partial();
|
|
18542
|
+
var SkillFrameworkQueryValidator = z.union([
|
|
18543
|
+
z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
|
|
18544
|
+
BaseSkillFrameworkQueryValidator
|
|
18545
|
+
]);
|
|
18223
18546
|
var ContractCredentialValidator = z.object({
|
|
18224
18547
|
credentialUri: z.string(),
|
|
18225
18548
|
termsUri: z.string(),
|
|
@@ -18274,8 +18597,9 @@ var LCNNotificationDataValidator = z.object({
|
|
|
18274
18597
|
vcUris: z.array(z.string()).optional(),
|
|
18275
18598
|
vpUris: z.array(z.string()).optional(),
|
|
18276
18599
|
transaction: ConsentFlowTransactionValidator.optional(),
|
|
18277
|
-
inbox: LCNNotificationInboxValidator.optional()
|
|
18278
|
-
|
|
18600
|
+
inbox: LCNNotificationInboxValidator.optional(),
|
|
18601
|
+
metadata: z.record(z.unknown()).optional()
|
|
18602
|
+
}).passthrough();
|
|
18279
18603
|
var LCNNotificationValidator = z.object({
|
|
18280
18604
|
type: LCNNotificationTypeEnumValidator,
|
|
18281
18605
|
to: LCNProfileValidator.partial().and(z.object({ did: z.string() })),
|
|
@@ -18398,31 +18722,55 @@ var IssueInboxSigningAuthorityValidator = z.object({
|
|
|
18398
18722
|
});
|
|
18399
18723
|
var IssueInboxCredentialValidator = z.object({
|
|
18400
18724
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
18401
|
-
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
18725
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
18726
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
18727
|
+
),
|
|
18402
18728
|
configuration: z.object({
|
|
18403
|
-
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
18729
|
+
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
18730
|
+
"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."
|
|
18731
|
+
),
|
|
18404
18732
|
webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
18405
18733
|
expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
18406
18734
|
delivery: z.object({
|
|
18407
|
-
suppress: z.boolean().optional().default(false).describe(
|
|
18735
|
+
suppress: z.boolean().optional().default(false).describe(
|
|
18736
|
+
"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."
|
|
18737
|
+
),
|
|
18408
18738
|
template: z.object({
|
|
18409
|
-
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
18739
|
+
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
18740
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
18741
|
+
),
|
|
18410
18742
|
model: z.object({
|
|
18411
18743
|
issuer: z.object({
|
|
18412
|
-
name: z.string().optional().describe(
|
|
18744
|
+
name: z.string().optional().describe(
|
|
18745
|
+
'The name of the organization (e.g., "State University").'
|
|
18746
|
+
),
|
|
18413
18747
|
logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
|
|
18414
18748
|
}).optional(),
|
|
18415
18749
|
credential: z.object({
|
|
18416
|
-
name: z.string().optional().describe(
|
|
18417
|
-
|
|
18750
|
+
name: z.string().optional().describe(
|
|
18751
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
18752
|
+
),
|
|
18753
|
+
type: z.string().optional().describe(
|
|
18754
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
18755
|
+
)
|
|
18418
18756
|
}).optional(),
|
|
18419
18757
|
recipient: z.object({
|
|
18420
|
-
name: z.string().optional().describe(
|
|
18758
|
+
name: z.string().optional().describe(
|
|
18759
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
18760
|
+
)
|
|
18421
18761
|
}).optional()
|
|
18422
|
-
}).describe(
|
|
18423
|
-
|
|
18424
|
-
|
|
18425
|
-
|
|
18762
|
+
}).describe(
|
|
18763
|
+
"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."
|
|
18764
|
+
)
|
|
18765
|
+
}).optional().describe(
|
|
18766
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
18767
|
+
)
|
|
18768
|
+
}).optional().describe(
|
|
18769
|
+
"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."
|
|
18770
|
+
)
|
|
18771
|
+
}).optional().describe(
|
|
18772
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
18773
|
+
)
|
|
18426
18774
|
});
|
|
18427
18775
|
var IssueInboxCredentialResponseValidator = z.object({
|
|
18428
18776
|
issuanceId: z.string(),
|
|
@@ -18484,6 +18832,191 @@ var ClaimTokenValidator = z.object({
|
|
|
18484
18832
|
expiresAt: z.string(),
|
|
18485
18833
|
used: z.boolean()
|
|
18486
18834
|
});
|
|
18835
|
+
var TagValidator = z.object({
|
|
18836
|
+
id: z.string(),
|
|
18837
|
+
name: z.string().min(1),
|
|
18838
|
+
slug: z.string().min(1),
|
|
18839
|
+
createdAt: z.string().optional(),
|
|
18840
|
+
updatedAt: z.string().optional()
|
|
18841
|
+
});
|
|
18842
|
+
var SkillStatusEnum = z.enum(["active", "archived"]);
|
|
18843
|
+
var SkillValidator = z.object({
|
|
18844
|
+
id: z.string(),
|
|
18845
|
+
statement: z.string(),
|
|
18846
|
+
description: z.string().optional(),
|
|
18847
|
+
code: z.string().optional(),
|
|
18848
|
+
icon: z.string().optional(),
|
|
18849
|
+
type: z.string().default("skill"),
|
|
18850
|
+
status: SkillStatusEnum.default("active"),
|
|
18851
|
+
frameworkId: z.string().optional(),
|
|
18852
|
+
createdAt: z.string().optional(),
|
|
18853
|
+
updatedAt: z.string().optional()
|
|
18854
|
+
});
|
|
18855
|
+
var BaseSkillQueryValidator = z.object({
|
|
18856
|
+
id: StringQuery,
|
|
18857
|
+
statement: StringQuery,
|
|
18858
|
+
description: StringQuery,
|
|
18859
|
+
code: StringQuery,
|
|
18860
|
+
type: StringQuery,
|
|
18861
|
+
status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
|
|
18862
|
+
}).partial();
|
|
18863
|
+
var SkillQueryValidator = z.union([
|
|
18864
|
+
z.object({
|
|
18865
|
+
$or: BaseSkillQueryValidator.array()
|
|
18866
|
+
}),
|
|
18867
|
+
BaseSkillQueryValidator
|
|
18868
|
+
]);
|
|
18869
|
+
var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
|
|
18870
|
+
var SkillFrameworkValidator = z.object({
|
|
18871
|
+
id: z.string(),
|
|
18872
|
+
name: z.string(),
|
|
18873
|
+
description: z.string().optional(),
|
|
18874
|
+
image: z.string().optional(),
|
|
18875
|
+
sourceURI: z.string().url().optional(),
|
|
18876
|
+
status: SkillFrameworkStatusEnum.default("active"),
|
|
18877
|
+
createdAt: z.string().optional(),
|
|
18878
|
+
updatedAt: z.string().optional()
|
|
18879
|
+
});
|
|
18880
|
+
var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
|
|
18881
|
+
records: SkillFrameworkValidator.array()
|
|
18882
|
+
});
|
|
18883
|
+
var SkillTreeNodeValidator = SkillValidator.extend({
|
|
18884
|
+
children: z.array(z.lazy(() => SkillTreeNodeValidator)),
|
|
18885
|
+
hasChildren: z.boolean(),
|
|
18886
|
+
childrenCursor: z.string().nullable().optional()
|
|
18887
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
18888
|
+
var PaginatedSkillTreeValidator = z.object({
|
|
18889
|
+
hasMore: z.boolean(),
|
|
18890
|
+
cursor: z.string().nullable(),
|
|
18891
|
+
records: z.array(SkillTreeNodeValidator)
|
|
18892
|
+
});
|
|
18893
|
+
var SkillTreeNodeInputValidator = z.lazy(
|
|
18894
|
+
() => z.object({
|
|
18895
|
+
id: z.string().optional(),
|
|
18896
|
+
statement: z.string(),
|
|
18897
|
+
description: z.string().optional(),
|
|
18898
|
+
code: z.string().optional(),
|
|
18899
|
+
icon: z.string().optional(),
|
|
18900
|
+
type: z.string().optional(),
|
|
18901
|
+
status: SkillStatusEnum.optional(),
|
|
18902
|
+
children: z.array(SkillTreeNodeInputValidator).optional()
|
|
18903
|
+
})
|
|
18904
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
18905
|
+
var LinkProviderFrameworkInputValidator = z.object({
|
|
18906
|
+
frameworkId: z.string()
|
|
18907
|
+
});
|
|
18908
|
+
var CreateManagedFrameworkInputValidator = z.object({
|
|
18909
|
+
id: z.string().optional(),
|
|
18910
|
+
name: z.string().min(1),
|
|
18911
|
+
description: z.string().optional(),
|
|
18912
|
+
image: z.string().optional(),
|
|
18913
|
+
sourceURI: z.string().url().optional(),
|
|
18914
|
+
status: SkillFrameworkStatusEnum.optional(),
|
|
18915
|
+
skills: z.array(SkillTreeNodeInputValidator).optional(),
|
|
18916
|
+
boostUris: z.array(z.string()).optional()
|
|
18917
|
+
});
|
|
18918
|
+
var UpdateFrameworkInputValidator = z.object({
|
|
18919
|
+
id: z.string(),
|
|
18920
|
+
name: z.string().min(1).optional(),
|
|
18921
|
+
description: z.string().optional(),
|
|
18922
|
+
image: z.string().optional(),
|
|
18923
|
+
sourceURI: z.string().url().optional(),
|
|
18924
|
+
status: SkillFrameworkStatusEnum.optional()
|
|
18925
|
+
}).refine(
|
|
18926
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
18927
|
+
{
|
|
18928
|
+
message: "At least one field must be provided to update",
|
|
18929
|
+
path: ["name"]
|
|
18930
|
+
}
|
|
18931
|
+
);
|
|
18932
|
+
var DeleteFrameworkInputValidator = z.object({ id: z.string() });
|
|
18933
|
+
var CreateManagedFrameworkBatchInputValidator = z.object({
|
|
18934
|
+
frameworks: z.array(
|
|
18935
|
+
CreateManagedFrameworkInputValidator.extend({
|
|
18936
|
+
skills: z.array(SkillTreeNodeInputValidator).optional()
|
|
18937
|
+
})
|
|
18938
|
+
).min(1)
|
|
18939
|
+
});
|
|
18940
|
+
var SkillFrameworkAdminInputValidator = z.object({
|
|
18941
|
+
frameworkId: z.string(),
|
|
18942
|
+
profileId: z.string()
|
|
18943
|
+
});
|
|
18944
|
+
var SkillFrameworkIdInputValidator = z.object({ frameworkId: z.string() });
|
|
18945
|
+
var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
|
|
18946
|
+
var SyncFrameworkInputValidator = z.object({ id: z.string() });
|
|
18947
|
+
var AddTagInputValidator = z.object({
|
|
18948
|
+
slug: z.string().min(1),
|
|
18949
|
+
name: z.string().min(1)
|
|
18950
|
+
});
|
|
18951
|
+
var CreateSkillInputValidator = z.object({
|
|
18952
|
+
frameworkId: z.string(),
|
|
18953
|
+
skill: SkillTreeNodeInputValidator,
|
|
18954
|
+
parentId: z.string().nullable().optional()
|
|
18955
|
+
});
|
|
18956
|
+
var UpdateSkillInputValidator = z.object({
|
|
18957
|
+
frameworkId: z.string(),
|
|
18958
|
+
id: z.string(),
|
|
18959
|
+
statement: z.string().optional(),
|
|
18960
|
+
description: z.string().optional(),
|
|
18961
|
+
code: z.string().optional(),
|
|
18962
|
+
icon: z.string().optional(),
|
|
18963
|
+
type: z.string().optional(),
|
|
18964
|
+
status: SkillStatusEnum.optional()
|
|
18965
|
+
}).refine(
|
|
18966
|
+
(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,
|
|
18967
|
+
{
|
|
18968
|
+
message: "At least one field must be provided to update a skill",
|
|
18969
|
+
path: ["statement"]
|
|
18970
|
+
}
|
|
18971
|
+
);
|
|
18972
|
+
var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
|
|
18973
|
+
var DeleteSkillInputValidator = z.object({
|
|
18974
|
+
frameworkId: z.string(),
|
|
18975
|
+
id: z.string(),
|
|
18976
|
+
strategy: SkillDeletionStrategyValidator.optional().default("reparent")
|
|
18977
|
+
});
|
|
18978
|
+
var CreateSkillsBatchInputValidator = z.object({
|
|
18979
|
+
frameworkId: z.string(),
|
|
18980
|
+
skills: z.array(SkillTreeNodeInputValidator).min(1),
|
|
18981
|
+
parentId: z.string().nullable().optional()
|
|
18982
|
+
});
|
|
18983
|
+
var ReplaceSkillFrameworkSkillsInputValidator = z.object({
|
|
18984
|
+
frameworkId: z.string(),
|
|
18985
|
+
skills: z.array(SkillTreeNodeInputValidator).min(0)
|
|
18986
|
+
});
|
|
18987
|
+
var ReplaceSkillFrameworkSkillsResultValidator = z.object({
|
|
18988
|
+
created: z.number().int().min(0),
|
|
18989
|
+
updated: z.number().int().min(0),
|
|
18990
|
+
deleted: z.number().int().min(0),
|
|
18991
|
+
unchanged: z.number().int().min(0),
|
|
18992
|
+
total: z.number().int().min(0)
|
|
18993
|
+
});
|
|
18994
|
+
var CountSkillsInputValidator = z.object({
|
|
18995
|
+
frameworkId: z.string(),
|
|
18996
|
+
skillId: z.string().optional(),
|
|
18997
|
+
recursive: z.boolean().optional().default(false),
|
|
18998
|
+
onlyCountCompetencies: z.boolean().optional().default(false)
|
|
18999
|
+
});
|
|
19000
|
+
var CountSkillsResultValidator = z.object({
|
|
19001
|
+
count: z.number().int().min(0)
|
|
19002
|
+
});
|
|
19003
|
+
var GetFullSkillTreeInputValidator = z.object({
|
|
19004
|
+
frameworkId: z.string()
|
|
19005
|
+
});
|
|
19006
|
+
var GetFullSkillTreeResultValidator = z.object({
|
|
19007
|
+
skills: z.array(SkillTreeNodeValidator)
|
|
19008
|
+
});
|
|
19009
|
+
var GetSkillPathInputValidator = z.object({
|
|
19010
|
+
frameworkId: z.string(),
|
|
19011
|
+
skillId: z.string()
|
|
19012
|
+
});
|
|
19013
|
+
var GetSkillPathResultValidator = z.object({
|
|
19014
|
+
path: z.array(SkillValidator)
|
|
19015
|
+
});
|
|
19016
|
+
var FrameworkWithSkillsValidator = z.object({
|
|
19017
|
+
framework: SkillFrameworkValidator,
|
|
19018
|
+
skills: PaginatedSkillTreeValidator
|
|
19019
|
+
});
|
|
18487
19020
|
|
|
18488
19021
|
// src/helpers.ts
|
|
18489
19022
|
var import_json_stringify_deterministic = __toESM(require_lib());
|