@learncard/learn-cloud-plugin 2.2.5 → 2.2.8
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 +561 -32
- 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 +561 -32
- package/dist/learn-cloud-plugin.esm.js.map +3 -3
- package/package.json +7 -7
|
@@ -8138,6 +8138,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
8138
8138
|
AchievementSubjectValidator: () => AchievementSubjectValidator2,
|
|
8139
8139
|
AchievementTypeValidator: () => AchievementTypeValidator2,
|
|
8140
8140
|
AchievementValidator: () => AchievementValidator2,
|
|
8141
|
+
AddTagInputValidator: () => AddTagInputValidator2,
|
|
8141
8142
|
AddressValidator: () => AddressValidator2,
|
|
8142
8143
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator2,
|
|
8143
8144
|
AlignmentValidator: () => AlignmentValidator2,
|
|
@@ -8177,14 +8178,22 @@ var require_types_cjs_development = __commonJS2({
|
|
|
8177
8178
|
ContactMethodVerificationValidator: () => ContactMethodVerificationValidator2,
|
|
8178
8179
|
ContextValidator: () => ContextValidator2,
|
|
8179
8180
|
ContractCredentialValidator: () => ContractCredentialValidator2,
|
|
8181
|
+
CountSkillsInputValidator: () => CountSkillsInputValidator2,
|
|
8182
|
+
CountSkillsResultValidator: () => CountSkillsResultValidator2,
|
|
8180
8183
|
CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator2,
|
|
8181
8184
|
CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator2,
|
|
8185
|
+
CreateManagedFrameworkBatchInputValidator: () => CreateManagedFrameworkBatchInputValidator2,
|
|
8186
|
+
CreateManagedFrameworkInputValidator: () => CreateManagedFrameworkInputValidator2,
|
|
8187
|
+
CreateSkillInputValidator: () => CreateSkillInputValidator2,
|
|
8188
|
+
CreateSkillsBatchInputValidator: () => CreateSkillsBatchInputValidator2,
|
|
8182
8189
|
CredentialInfoValidator: () => CredentialInfoValidator2,
|
|
8183
8190
|
CredentialRecordValidator: () => CredentialRecordValidator2,
|
|
8184
8191
|
CredentialSchemaValidator: () => CredentialSchemaValidator2,
|
|
8185
8192
|
CredentialStatusValidator: () => CredentialStatusValidator2,
|
|
8186
8193
|
CredentialSubjectValidator: () => CredentialSubjectValidator2,
|
|
8187
8194
|
CriteriaValidator: () => CriteriaValidator2,
|
|
8195
|
+
DeleteFrameworkInputValidator: () => DeleteFrameworkInputValidator2,
|
|
8196
|
+
DeleteSkillInputValidator: () => DeleteSkillInputValidator2,
|
|
8188
8197
|
DidDocumentValidator: () => DidDocumentValidator2,
|
|
8189
8198
|
EncryptedCredentialRecordValidator: () => EncryptedCredentialRecordValidator2,
|
|
8190
8199
|
EncryptedRecordValidator: () => EncryptedRecordValidator2,
|
|
@@ -8192,8 +8201,13 @@ var require_types_cjs_development = __commonJS2({
|
|
|
8192
8201
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator2,
|
|
8193
8202
|
EvidenceValidator: () => EvidenceValidator2,
|
|
8194
8203
|
FlatAuthGrantValidator: () => FlatAuthGrantValidator2,
|
|
8204
|
+
FrameworkWithSkillsValidator: () => FrameworkWithSkillsValidator2,
|
|
8195
8205
|
FullClaimHookValidator: () => FullClaimHookValidator2,
|
|
8196
8206
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator2,
|
|
8207
|
+
GetFullSkillTreeInputValidator: () => GetFullSkillTreeInputValidator2,
|
|
8208
|
+
GetFullSkillTreeResultValidator: () => GetFullSkillTreeResultValidator2,
|
|
8209
|
+
GetSkillPathInputValidator: () => GetSkillPathInputValidator2,
|
|
8210
|
+
GetSkillPathResultValidator: () => GetSkillPathResultValidator2,
|
|
8197
8211
|
IdentifierEntryValidator: () => IdentifierEntryValidator2,
|
|
8198
8212
|
IdentifierTypeValidator: () => IdentifierTypeValidator2,
|
|
8199
8213
|
IdentityObjectValidator: () => IdentityObjectValidator2,
|
|
@@ -8232,6 +8246,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
8232
8246
|
LCNProfileValidator: () => LCNProfileValidator2,
|
|
8233
8247
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator2,
|
|
8234
8248
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator2,
|
|
8249
|
+
LinkProviderFrameworkInputValidator: () => LinkProviderFrameworkInputValidator2,
|
|
8235
8250
|
PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator2,
|
|
8236
8251
|
PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator2,
|
|
8237
8252
|
PaginatedBoostsValidator: () => PaginatedBoostsValidator2,
|
|
@@ -8249,6 +8264,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
8249
8264
|
PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator2,
|
|
8250
8265
|
PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator2,
|
|
8251
8266
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator2,
|
|
8267
|
+
PaginatedSkillFrameworksValidator: () => PaginatedSkillFrameworksValidator2,
|
|
8268
|
+
PaginatedSkillTreeValidator: () => PaginatedSkillTreeValidator2,
|
|
8252
8269
|
PaginationOptionsValidator: () => PaginationOptionsValidator2,
|
|
8253
8270
|
PaginationResponseValidator: () => PaginationResponseValidator2,
|
|
8254
8271
|
ProfileValidator: () => ProfileValidator2,
|
|
@@ -8256,6 +8273,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
8256
8273
|
RefreshServiceValidator: () => RefreshServiceValidator2,
|
|
8257
8274
|
RegExpValidator: () => RegExpValidator2,
|
|
8258
8275
|
RelatedValidator: () => RelatedValidator2,
|
|
8276
|
+
ReplaceSkillFrameworkSkillsInputValidator: () => ReplaceSkillFrameworkSkillsInputValidator2,
|
|
8277
|
+
ReplaceSkillFrameworkSkillsResultValidator: () => ReplaceSkillFrameworkSkillsResultValidator2,
|
|
8259
8278
|
ResultDescriptionValidator: () => ResultDescriptionValidator2,
|
|
8260
8279
|
ResultStatusTypeValidator: () => ResultStatusTypeValidator2,
|
|
8261
8280
|
ResultTypeValidator: () => ResultTypeValidator2,
|
|
@@ -8264,11 +8283,27 @@ var require_types_cjs_development = __commonJS2({
|
|
|
8264
8283
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator2,
|
|
8265
8284
|
ServiceValidator: () => ServiceValidator2,
|
|
8266
8285
|
SetPrimaryContactMethodValidator: () => SetPrimaryContactMethodValidator2,
|
|
8286
|
+
SkillDeletionStrategyValidator: () => SkillDeletionStrategyValidator2,
|
|
8287
|
+
SkillFrameworkAdminInputValidator: () => SkillFrameworkAdminInputValidator2,
|
|
8288
|
+
SkillFrameworkAdminsValidator: () => SkillFrameworkAdminsValidator2,
|
|
8289
|
+
SkillFrameworkIdInputValidator: () => SkillFrameworkIdInputValidator2,
|
|
8290
|
+
SkillFrameworkQueryValidator: () => SkillFrameworkQueryValidator2,
|
|
8291
|
+
SkillFrameworkStatusEnum: () => SkillFrameworkStatusEnum2,
|
|
8292
|
+
SkillFrameworkValidator: () => SkillFrameworkValidator2,
|
|
8293
|
+
SkillQueryValidator: () => SkillQueryValidator2,
|
|
8294
|
+
SkillStatusEnum: () => SkillStatusEnum2,
|
|
8295
|
+
SkillTreeNodeInputValidator: () => SkillTreeNodeInputValidator2,
|
|
8296
|
+
SkillTreeNodeValidator: () => SkillTreeNodeValidator2,
|
|
8297
|
+
SkillValidator: () => SkillValidator2,
|
|
8267
8298
|
StringQuery: () => StringQuery2,
|
|
8299
|
+
SyncFrameworkInputValidator: () => SyncFrameworkInputValidator2,
|
|
8300
|
+
TagValidator: () => TagValidator2,
|
|
8268
8301
|
TermsOfUseValidator: () => TermsOfUseValidator2,
|
|
8269
8302
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator2,
|
|
8270
8303
|
UnsignedVCValidator: () => UnsignedVCValidator2,
|
|
8271
8304
|
UnsignedVPValidator: () => UnsignedVPValidator2,
|
|
8305
|
+
UpdateFrameworkInputValidator: () => UpdateFrameworkInputValidator2,
|
|
8306
|
+
UpdateSkillInputValidator: () => UpdateSkillInputValidator2,
|
|
8272
8307
|
VC2EvidenceValidator: () => VC2EvidenceValidator2,
|
|
8273
8308
|
VCValidator: () => VCValidator2,
|
|
8274
8309
|
VPValidator: () => VPValidator2,
|
|
@@ -12751,7 +12786,14 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12751
12786
|
}
|
|
12752
12787
|
})
|
|
12753
12788
|
);
|
|
12754
|
-
var
|
|
12789
|
+
var BaseStringQuery2 = z2.string().or(z2.object({ $in: z2.string().array() })).or(z2.object({ $regex: RegExpValidator2 }));
|
|
12790
|
+
var StringQuery2 = z2.union([
|
|
12791
|
+
BaseStringQuery2,
|
|
12792
|
+
z2.object({
|
|
12793
|
+
$or: BaseStringQuery2.array()
|
|
12794
|
+
})
|
|
12795
|
+
]);
|
|
12796
|
+
extendZodWithOpenApi2(z2);
|
|
12755
12797
|
var LCNProfileDisplayValidator2 = z2.object({
|
|
12756
12798
|
backgroundColor: z2.string().optional(),
|
|
12757
12799
|
backgroundImage: z2.string().optional(),
|
|
@@ -12909,7 +12951,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12909
12951
|
claimPermissions: BoostPermissionsValidator2.optional(),
|
|
12910
12952
|
allowAnyoneToCreateChildren: z2.boolean().optional()
|
|
12911
12953
|
});
|
|
12912
|
-
var
|
|
12954
|
+
var BaseBoostQueryValidator2 = z2.object({
|
|
12913
12955
|
uri: StringQuery2,
|
|
12914
12956
|
name: StringQuery2,
|
|
12915
12957
|
type: StringQuery2,
|
|
@@ -12918,6 +12960,12 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12918
12960
|
status: LCNBoostStatus2.or(z2.object({ $in: LCNBoostStatus2.array() })),
|
|
12919
12961
|
autoConnectRecipients: z2.boolean()
|
|
12920
12962
|
}).partial();
|
|
12963
|
+
var BoostQueryValidator2 = z2.union([
|
|
12964
|
+
z2.object({
|
|
12965
|
+
$or: BaseBoostQueryValidator2.array()
|
|
12966
|
+
}),
|
|
12967
|
+
BaseBoostQueryValidator2
|
|
12968
|
+
]);
|
|
12921
12969
|
var PaginatedBoostsValidator2 = PaginationResponseValidator2.extend({
|
|
12922
12970
|
records: BoostValidator2.array()
|
|
12923
12971
|
});
|
|
@@ -12973,11 +13021,25 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12973
13021
|
var ConsentFlowContractValidator2 = z2.object({
|
|
12974
13022
|
read: z2.object({
|
|
12975
13023
|
anonymize: z2.boolean().optional(),
|
|
12976
|
-
credentials: z2.object({
|
|
13024
|
+
credentials: z2.object({
|
|
13025
|
+
categories: z2.record(
|
|
13026
|
+
z2.object({
|
|
13027
|
+
required: z2.boolean(),
|
|
13028
|
+
defaultEnabled: z2.boolean().optional()
|
|
13029
|
+
})
|
|
13030
|
+
).default({})
|
|
13031
|
+
}).default({}),
|
|
12977
13032
|
personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
|
|
12978
13033
|
}).default({}),
|
|
12979
13034
|
write: z2.object({
|
|
12980
|
-
credentials: z2.object({
|
|
13035
|
+
credentials: z2.object({
|
|
13036
|
+
categories: z2.record(
|
|
13037
|
+
z2.object({
|
|
13038
|
+
required: z2.boolean(),
|
|
13039
|
+
defaultEnabled: z2.boolean().optional()
|
|
13040
|
+
})
|
|
13041
|
+
).default({})
|
|
13042
|
+
}).default({}),
|
|
12981
13043
|
personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
|
|
12982
13044
|
}).default({})
|
|
12983
13045
|
});
|
|
@@ -13120,6 +13182,17 @@ var require_types_cjs_development = __commonJS2({
|
|
|
13120
13182
|
var PaginatedConsentFlowTransactionsValidator2 = PaginationResponseValidator2.extend({
|
|
13121
13183
|
records: ConsentFlowTransactionValidator2.array()
|
|
13122
13184
|
});
|
|
13185
|
+
var BaseSkillFrameworkQueryValidator2 = z2.object({
|
|
13186
|
+
id: StringQuery2,
|
|
13187
|
+
name: StringQuery2,
|
|
13188
|
+
description: StringQuery2,
|
|
13189
|
+
sourceURI: StringQuery2,
|
|
13190
|
+
status: StringQuery2
|
|
13191
|
+
}).partial();
|
|
13192
|
+
var SkillFrameworkQueryValidator2 = z2.union([
|
|
13193
|
+
z2.object({ $or: BaseSkillFrameworkQueryValidator2.array() }),
|
|
13194
|
+
BaseSkillFrameworkQueryValidator2
|
|
13195
|
+
]);
|
|
13123
13196
|
var ContractCredentialValidator2 = z2.object({
|
|
13124
13197
|
credentialUri: z2.string(),
|
|
13125
13198
|
termsUri: z2.string(),
|
|
@@ -13298,31 +13371,55 @@ var require_types_cjs_development = __commonJS2({
|
|
|
13298
13371
|
});
|
|
13299
13372
|
var IssueInboxCredentialValidator2 = z2.object({
|
|
13300
13373
|
recipient: ContactMethodQueryValidator2.describe("The recipient of the credential"),
|
|
13301
|
-
credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
|
|
13374
|
+
credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
|
|
13375
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
13376
|
+
),
|
|
13302
13377
|
configuration: z2.object({
|
|
13303
|
-
signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
|
|
13378
|
+
signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
|
|
13379
|
+
"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."
|
|
13380
|
+
),
|
|
13304
13381
|
webhookUrl: z2.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
13305
13382
|
expiresInDays: z2.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
13306
13383
|
delivery: z2.object({
|
|
13307
|
-
suppress: z2.boolean().optional().default(false).describe(
|
|
13384
|
+
suppress: z2.boolean().optional().default(false).describe(
|
|
13385
|
+
"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."
|
|
13386
|
+
),
|
|
13308
13387
|
template: z2.object({
|
|
13309
|
-
id: z2.enum(["universal-inbox-claim"]).optional().describe(
|
|
13388
|
+
id: z2.enum(["universal-inbox-claim"]).optional().describe(
|
|
13389
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
13390
|
+
),
|
|
13310
13391
|
model: z2.object({
|
|
13311
13392
|
issuer: z2.object({
|
|
13312
|
-
name: z2.string().optional().describe(
|
|
13393
|
+
name: z2.string().optional().describe(
|
|
13394
|
+
'The name of the organization (e.g., "State University").'
|
|
13395
|
+
),
|
|
13313
13396
|
logoUrl: z2.string().url().optional().describe("The URL of the organization's logo.")
|
|
13314
13397
|
}).optional(),
|
|
13315
13398
|
credential: z2.object({
|
|
13316
|
-
name: z2.string().optional().describe(
|
|
13317
|
-
|
|
13399
|
+
name: z2.string().optional().describe(
|
|
13400
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
13401
|
+
),
|
|
13402
|
+
type: z2.string().optional().describe(
|
|
13403
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
13404
|
+
)
|
|
13318
13405
|
}).optional(),
|
|
13319
13406
|
recipient: z2.object({
|
|
13320
|
-
name: z2.string().optional().describe(
|
|
13407
|
+
name: z2.string().optional().describe(
|
|
13408
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
13409
|
+
)
|
|
13321
13410
|
}).optional()
|
|
13322
|
-
}).describe(
|
|
13323
|
-
|
|
13324
|
-
|
|
13325
|
-
|
|
13411
|
+
}).describe(
|
|
13412
|
+
"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."
|
|
13413
|
+
)
|
|
13414
|
+
}).optional().describe(
|
|
13415
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
13416
|
+
)
|
|
13417
|
+
}).optional().describe(
|
|
13418
|
+
"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."
|
|
13419
|
+
)
|
|
13420
|
+
}).optional().describe(
|
|
13421
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
13422
|
+
)
|
|
13326
13423
|
});
|
|
13327
13424
|
var IssueInboxCredentialResponseValidator2 = z2.object({
|
|
13328
13425
|
issuanceId: z2.string(),
|
|
@@ -13384,6 +13481,191 @@ var require_types_cjs_development = __commonJS2({
|
|
|
13384
13481
|
expiresAt: z2.string(),
|
|
13385
13482
|
used: z2.boolean()
|
|
13386
13483
|
});
|
|
13484
|
+
var TagValidator2 = z2.object({
|
|
13485
|
+
id: z2.string(),
|
|
13486
|
+
name: z2.string().min(1),
|
|
13487
|
+
slug: z2.string().min(1),
|
|
13488
|
+
createdAt: z2.string().optional(),
|
|
13489
|
+
updatedAt: z2.string().optional()
|
|
13490
|
+
});
|
|
13491
|
+
var SkillStatusEnum2 = z2.enum(["active", "archived"]);
|
|
13492
|
+
var SkillValidator2 = z2.object({
|
|
13493
|
+
id: z2.string(),
|
|
13494
|
+
statement: z2.string(),
|
|
13495
|
+
description: z2.string().optional(),
|
|
13496
|
+
code: z2.string().optional(),
|
|
13497
|
+
icon: z2.string().optional(),
|
|
13498
|
+
type: z2.string().default("skill"),
|
|
13499
|
+
status: SkillStatusEnum2.default("active"),
|
|
13500
|
+
frameworkId: z2.string().optional(),
|
|
13501
|
+
createdAt: z2.string().optional(),
|
|
13502
|
+
updatedAt: z2.string().optional()
|
|
13503
|
+
});
|
|
13504
|
+
var BaseSkillQueryValidator2 = z2.object({
|
|
13505
|
+
id: StringQuery2,
|
|
13506
|
+
statement: StringQuery2,
|
|
13507
|
+
description: StringQuery2,
|
|
13508
|
+
code: StringQuery2,
|
|
13509
|
+
type: StringQuery2,
|
|
13510
|
+
status: SkillStatusEnum2.or(z2.object({ $in: SkillStatusEnum2.array() }))
|
|
13511
|
+
}).partial();
|
|
13512
|
+
var SkillQueryValidator2 = z2.union([
|
|
13513
|
+
z2.object({
|
|
13514
|
+
$or: BaseSkillQueryValidator2.array()
|
|
13515
|
+
}),
|
|
13516
|
+
BaseSkillQueryValidator2
|
|
13517
|
+
]);
|
|
13518
|
+
var SkillFrameworkStatusEnum2 = z2.enum(["active", "archived"]);
|
|
13519
|
+
var SkillFrameworkValidator2 = z2.object({
|
|
13520
|
+
id: z2.string(),
|
|
13521
|
+
name: z2.string(),
|
|
13522
|
+
description: z2.string().optional(),
|
|
13523
|
+
image: z2.string().optional(),
|
|
13524
|
+
sourceURI: z2.string().url().optional(),
|
|
13525
|
+
status: SkillFrameworkStatusEnum2.default("active"),
|
|
13526
|
+
createdAt: z2.string().optional(),
|
|
13527
|
+
updatedAt: z2.string().optional()
|
|
13528
|
+
});
|
|
13529
|
+
var PaginatedSkillFrameworksValidator2 = PaginationResponseValidator2.extend({
|
|
13530
|
+
records: SkillFrameworkValidator2.array()
|
|
13531
|
+
});
|
|
13532
|
+
var SkillTreeNodeValidator2 = SkillValidator2.extend({
|
|
13533
|
+
children: z2.array(z2.lazy(() => SkillTreeNodeValidator2)),
|
|
13534
|
+
hasChildren: z2.boolean(),
|
|
13535
|
+
childrenCursor: z2.string().nullable().optional()
|
|
13536
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
13537
|
+
var PaginatedSkillTreeValidator2 = z2.object({
|
|
13538
|
+
hasMore: z2.boolean(),
|
|
13539
|
+
cursor: z2.string().nullable(),
|
|
13540
|
+
records: z2.array(SkillTreeNodeValidator2)
|
|
13541
|
+
});
|
|
13542
|
+
var SkillTreeNodeInputValidator2 = z2.lazy(
|
|
13543
|
+
() => z2.object({
|
|
13544
|
+
id: z2.string().optional(),
|
|
13545
|
+
statement: z2.string(),
|
|
13546
|
+
description: z2.string().optional(),
|
|
13547
|
+
code: z2.string().optional(),
|
|
13548
|
+
icon: z2.string().optional(),
|
|
13549
|
+
type: z2.string().optional(),
|
|
13550
|
+
status: SkillStatusEnum2.optional(),
|
|
13551
|
+
children: z2.array(SkillTreeNodeInputValidator2).optional()
|
|
13552
|
+
})
|
|
13553
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
13554
|
+
var LinkProviderFrameworkInputValidator2 = z2.object({
|
|
13555
|
+
frameworkId: z2.string()
|
|
13556
|
+
});
|
|
13557
|
+
var CreateManagedFrameworkInputValidator2 = z2.object({
|
|
13558
|
+
id: z2.string().optional(),
|
|
13559
|
+
name: z2.string().min(1),
|
|
13560
|
+
description: z2.string().optional(),
|
|
13561
|
+
image: z2.string().optional(),
|
|
13562
|
+
sourceURI: z2.string().url().optional(),
|
|
13563
|
+
status: SkillFrameworkStatusEnum2.optional(),
|
|
13564
|
+
skills: z2.array(SkillTreeNodeInputValidator2).optional(),
|
|
13565
|
+
boostUris: z2.array(z2.string()).optional()
|
|
13566
|
+
});
|
|
13567
|
+
var UpdateFrameworkInputValidator2 = z2.object({
|
|
13568
|
+
id: z2.string(),
|
|
13569
|
+
name: z2.string().min(1).optional(),
|
|
13570
|
+
description: z2.string().optional(),
|
|
13571
|
+
image: z2.string().optional(),
|
|
13572
|
+
sourceURI: z2.string().url().optional(),
|
|
13573
|
+
status: SkillFrameworkStatusEnum2.optional()
|
|
13574
|
+
}).refine(
|
|
13575
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
13576
|
+
{
|
|
13577
|
+
message: "At least one field must be provided to update",
|
|
13578
|
+
path: ["name"]
|
|
13579
|
+
}
|
|
13580
|
+
);
|
|
13581
|
+
var DeleteFrameworkInputValidator2 = z2.object({ id: z2.string() });
|
|
13582
|
+
var CreateManagedFrameworkBatchInputValidator2 = z2.object({
|
|
13583
|
+
frameworks: z2.array(
|
|
13584
|
+
CreateManagedFrameworkInputValidator2.extend({
|
|
13585
|
+
skills: z2.array(SkillTreeNodeInputValidator2).optional()
|
|
13586
|
+
})
|
|
13587
|
+
).min(1)
|
|
13588
|
+
});
|
|
13589
|
+
var SkillFrameworkAdminInputValidator2 = z2.object({
|
|
13590
|
+
frameworkId: z2.string(),
|
|
13591
|
+
profileId: z2.string()
|
|
13592
|
+
});
|
|
13593
|
+
var SkillFrameworkIdInputValidator2 = z2.object({ frameworkId: z2.string() });
|
|
13594
|
+
var SkillFrameworkAdminsValidator2 = LCNProfileValidator2.array();
|
|
13595
|
+
var SyncFrameworkInputValidator2 = z2.object({ id: z2.string() });
|
|
13596
|
+
var AddTagInputValidator2 = z2.object({
|
|
13597
|
+
slug: z2.string().min(1),
|
|
13598
|
+
name: z2.string().min(1)
|
|
13599
|
+
});
|
|
13600
|
+
var CreateSkillInputValidator2 = z2.object({
|
|
13601
|
+
frameworkId: z2.string(),
|
|
13602
|
+
skill: SkillTreeNodeInputValidator2,
|
|
13603
|
+
parentId: z2.string().nullable().optional()
|
|
13604
|
+
});
|
|
13605
|
+
var UpdateSkillInputValidator2 = z2.object({
|
|
13606
|
+
frameworkId: z2.string(),
|
|
13607
|
+
id: z2.string(),
|
|
13608
|
+
statement: z2.string().optional(),
|
|
13609
|
+
description: z2.string().optional(),
|
|
13610
|
+
code: z2.string().optional(),
|
|
13611
|
+
icon: z2.string().optional(),
|
|
13612
|
+
type: z2.string().optional(),
|
|
13613
|
+
status: SkillStatusEnum2.optional()
|
|
13614
|
+
}).refine(
|
|
13615
|
+
(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,
|
|
13616
|
+
{
|
|
13617
|
+
message: "At least one field must be provided to update a skill",
|
|
13618
|
+
path: ["statement"]
|
|
13619
|
+
}
|
|
13620
|
+
);
|
|
13621
|
+
var SkillDeletionStrategyValidator2 = z2.enum(["recursive", "reparent"]);
|
|
13622
|
+
var DeleteSkillInputValidator2 = z2.object({
|
|
13623
|
+
frameworkId: z2.string(),
|
|
13624
|
+
id: z2.string(),
|
|
13625
|
+
strategy: SkillDeletionStrategyValidator2.optional().default("reparent")
|
|
13626
|
+
});
|
|
13627
|
+
var CreateSkillsBatchInputValidator2 = z2.object({
|
|
13628
|
+
frameworkId: z2.string(),
|
|
13629
|
+
skills: z2.array(SkillTreeNodeInputValidator2).min(1),
|
|
13630
|
+
parentId: z2.string().nullable().optional()
|
|
13631
|
+
});
|
|
13632
|
+
var ReplaceSkillFrameworkSkillsInputValidator2 = z2.object({
|
|
13633
|
+
frameworkId: z2.string(),
|
|
13634
|
+
skills: z2.array(SkillTreeNodeInputValidator2).min(0)
|
|
13635
|
+
});
|
|
13636
|
+
var ReplaceSkillFrameworkSkillsResultValidator2 = z2.object({
|
|
13637
|
+
created: z2.number().int().min(0),
|
|
13638
|
+
updated: z2.number().int().min(0),
|
|
13639
|
+
deleted: z2.number().int().min(0),
|
|
13640
|
+
unchanged: z2.number().int().min(0),
|
|
13641
|
+
total: z2.number().int().min(0)
|
|
13642
|
+
});
|
|
13643
|
+
var CountSkillsInputValidator2 = z2.object({
|
|
13644
|
+
frameworkId: z2.string(),
|
|
13645
|
+
skillId: z2.string().optional(),
|
|
13646
|
+
recursive: z2.boolean().optional().default(false),
|
|
13647
|
+
onlyCountCompetencies: z2.boolean().optional().default(false)
|
|
13648
|
+
});
|
|
13649
|
+
var CountSkillsResultValidator2 = z2.object({
|
|
13650
|
+
count: z2.number().int().min(0)
|
|
13651
|
+
});
|
|
13652
|
+
var GetFullSkillTreeInputValidator2 = z2.object({
|
|
13653
|
+
frameworkId: z2.string()
|
|
13654
|
+
});
|
|
13655
|
+
var GetFullSkillTreeResultValidator2 = z2.object({
|
|
13656
|
+
skills: z2.array(SkillTreeNodeValidator2)
|
|
13657
|
+
});
|
|
13658
|
+
var GetSkillPathInputValidator2 = z2.object({
|
|
13659
|
+
frameworkId: z2.string(),
|
|
13660
|
+
skillId: z2.string()
|
|
13661
|
+
});
|
|
13662
|
+
var GetSkillPathResultValidator2 = z2.object({
|
|
13663
|
+
path: z2.array(SkillValidator2)
|
|
13664
|
+
});
|
|
13665
|
+
var FrameworkWithSkillsValidator2 = z2.object({
|
|
13666
|
+
framework: SkillFrameworkValidator2,
|
|
13667
|
+
skills: PaginatedSkillTreeValidator2
|
|
13668
|
+
});
|
|
13387
13669
|
}
|
|
13388
13670
|
});
|
|
13389
13671
|
var require_dist = __commonJS2({
|
|
@@ -17838,7 +18120,14 @@ var RegExpValidator = z.instanceof(RegExp).or(
|
|
|
17838
18120
|
}
|
|
17839
18121
|
})
|
|
17840
18122
|
);
|
|
17841
|
-
var
|
|
18123
|
+
var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
|
|
18124
|
+
var StringQuery = z.union([
|
|
18125
|
+
BaseStringQuery,
|
|
18126
|
+
z.object({
|
|
18127
|
+
$or: BaseStringQuery.array()
|
|
18128
|
+
})
|
|
18129
|
+
]);
|
|
18130
|
+
extendZodWithOpenApi(z);
|
|
17842
18131
|
var LCNProfileDisplayValidator = z.object({
|
|
17843
18132
|
backgroundColor: z.string().optional(),
|
|
17844
18133
|
backgroundImage: z.string().optional(),
|
|
@@ -17996,7 +18285,7 @@ var BoostValidator = z.object({
|
|
|
17996
18285
|
claimPermissions: BoostPermissionsValidator.optional(),
|
|
17997
18286
|
allowAnyoneToCreateChildren: z.boolean().optional()
|
|
17998
18287
|
});
|
|
17999
|
-
var
|
|
18288
|
+
var BaseBoostQueryValidator = z.object({
|
|
18000
18289
|
uri: StringQuery,
|
|
18001
18290
|
name: StringQuery,
|
|
18002
18291
|
type: StringQuery,
|
|
@@ -18005,6 +18294,12 @@ var BoostQueryValidator = z.object({
|
|
|
18005
18294
|
status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
|
|
18006
18295
|
autoConnectRecipients: z.boolean()
|
|
18007
18296
|
}).partial();
|
|
18297
|
+
var BoostQueryValidator = z.union([
|
|
18298
|
+
z.object({
|
|
18299
|
+
$or: BaseBoostQueryValidator.array()
|
|
18300
|
+
}),
|
|
18301
|
+
BaseBoostQueryValidator
|
|
18302
|
+
]);
|
|
18008
18303
|
var PaginatedBoostsValidator = PaginationResponseValidator.extend({
|
|
18009
18304
|
records: BoostValidator.array()
|
|
18010
18305
|
});
|
|
@@ -18060,11 +18355,25 @@ var ConsentFlowTermsStatusValidator = z.enum(["live", "stale", "withdrawn"]);
|
|
|
18060
18355
|
var ConsentFlowContractValidator = z.object({
|
|
18061
18356
|
read: z.object({
|
|
18062
18357
|
anonymize: z.boolean().optional(),
|
|
18063
|
-
credentials: z.object({
|
|
18358
|
+
credentials: z.object({
|
|
18359
|
+
categories: z.record(
|
|
18360
|
+
z.object({
|
|
18361
|
+
required: z.boolean(),
|
|
18362
|
+
defaultEnabled: z.boolean().optional()
|
|
18363
|
+
})
|
|
18364
|
+
).default({})
|
|
18365
|
+
}).default({}),
|
|
18064
18366
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
18065
18367
|
}).default({}),
|
|
18066
18368
|
write: z.object({
|
|
18067
|
-
credentials: z.object({
|
|
18369
|
+
credentials: z.object({
|
|
18370
|
+
categories: z.record(
|
|
18371
|
+
z.object({
|
|
18372
|
+
required: z.boolean(),
|
|
18373
|
+
defaultEnabled: z.boolean().optional()
|
|
18374
|
+
})
|
|
18375
|
+
).default({})
|
|
18376
|
+
}).default({}),
|
|
18068
18377
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
18069
18378
|
}).default({})
|
|
18070
18379
|
});
|
|
@@ -18207,6 +18516,17 @@ var ConsentFlowTransactionValidator = z.object({
|
|
|
18207
18516
|
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
|
18208
18517
|
records: ConsentFlowTransactionValidator.array()
|
|
18209
18518
|
});
|
|
18519
|
+
var BaseSkillFrameworkQueryValidator = z.object({
|
|
18520
|
+
id: StringQuery,
|
|
18521
|
+
name: StringQuery,
|
|
18522
|
+
description: StringQuery,
|
|
18523
|
+
sourceURI: StringQuery,
|
|
18524
|
+
status: StringQuery
|
|
18525
|
+
}).partial();
|
|
18526
|
+
var SkillFrameworkQueryValidator = z.union([
|
|
18527
|
+
z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
|
|
18528
|
+
BaseSkillFrameworkQueryValidator
|
|
18529
|
+
]);
|
|
18210
18530
|
var ContractCredentialValidator = z.object({
|
|
18211
18531
|
credentialUri: z.string(),
|
|
18212
18532
|
termsUri: z.string(),
|
|
@@ -18385,31 +18705,55 @@ var IssueInboxSigningAuthorityValidator = z.object({
|
|
|
18385
18705
|
});
|
|
18386
18706
|
var IssueInboxCredentialValidator = z.object({
|
|
18387
18707
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
18388
|
-
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
18708
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
18709
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
18710
|
+
),
|
|
18389
18711
|
configuration: z.object({
|
|
18390
|
-
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
18712
|
+
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
18713
|
+
"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."
|
|
18714
|
+
),
|
|
18391
18715
|
webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
18392
18716
|
expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
18393
18717
|
delivery: z.object({
|
|
18394
|
-
suppress: z.boolean().optional().default(false).describe(
|
|
18718
|
+
suppress: z.boolean().optional().default(false).describe(
|
|
18719
|
+
"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."
|
|
18720
|
+
),
|
|
18395
18721
|
template: z.object({
|
|
18396
|
-
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
18722
|
+
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
18723
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
18724
|
+
),
|
|
18397
18725
|
model: z.object({
|
|
18398
18726
|
issuer: z.object({
|
|
18399
|
-
name: z.string().optional().describe(
|
|
18727
|
+
name: z.string().optional().describe(
|
|
18728
|
+
'The name of the organization (e.g., "State University").'
|
|
18729
|
+
),
|
|
18400
18730
|
logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
|
|
18401
18731
|
}).optional(),
|
|
18402
18732
|
credential: z.object({
|
|
18403
|
-
name: z.string().optional().describe(
|
|
18404
|
-
|
|
18733
|
+
name: z.string().optional().describe(
|
|
18734
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
18735
|
+
),
|
|
18736
|
+
type: z.string().optional().describe(
|
|
18737
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
18738
|
+
)
|
|
18405
18739
|
}).optional(),
|
|
18406
18740
|
recipient: z.object({
|
|
18407
|
-
name: z.string().optional().describe(
|
|
18741
|
+
name: z.string().optional().describe(
|
|
18742
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
18743
|
+
)
|
|
18408
18744
|
}).optional()
|
|
18409
|
-
}).describe(
|
|
18410
|
-
|
|
18411
|
-
|
|
18412
|
-
|
|
18745
|
+
}).describe(
|
|
18746
|
+
"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."
|
|
18747
|
+
)
|
|
18748
|
+
}).optional().describe(
|
|
18749
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
18750
|
+
)
|
|
18751
|
+
}).optional().describe(
|
|
18752
|
+
"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."
|
|
18753
|
+
)
|
|
18754
|
+
}).optional().describe(
|
|
18755
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
18756
|
+
)
|
|
18413
18757
|
});
|
|
18414
18758
|
var IssueInboxCredentialResponseValidator = z.object({
|
|
18415
18759
|
issuanceId: z.string(),
|
|
@@ -18471,6 +18815,191 @@ var ClaimTokenValidator = z.object({
|
|
|
18471
18815
|
expiresAt: z.string(),
|
|
18472
18816
|
used: z.boolean()
|
|
18473
18817
|
});
|
|
18818
|
+
var TagValidator = z.object({
|
|
18819
|
+
id: z.string(),
|
|
18820
|
+
name: z.string().min(1),
|
|
18821
|
+
slug: z.string().min(1),
|
|
18822
|
+
createdAt: z.string().optional(),
|
|
18823
|
+
updatedAt: z.string().optional()
|
|
18824
|
+
});
|
|
18825
|
+
var SkillStatusEnum = z.enum(["active", "archived"]);
|
|
18826
|
+
var SkillValidator = z.object({
|
|
18827
|
+
id: z.string(),
|
|
18828
|
+
statement: z.string(),
|
|
18829
|
+
description: z.string().optional(),
|
|
18830
|
+
code: z.string().optional(),
|
|
18831
|
+
icon: z.string().optional(),
|
|
18832
|
+
type: z.string().default("skill"),
|
|
18833
|
+
status: SkillStatusEnum.default("active"),
|
|
18834
|
+
frameworkId: z.string().optional(),
|
|
18835
|
+
createdAt: z.string().optional(),
|
|
18836
|
+
updatedAt: z.string().optional()
|
|
18837
|
+
});
|
|
18838
|
+
var BaseSkillQueryValidator = z.object({
|
|
18839
|
+
id: StringQuery,
|
|
18840
|
+
statement: StringQuery,
|
|
18841
|
+
description: StringQuery,
|
|
18842
|
+
code: StringQuery,
|
|
18843
|
+
type: StringQuery,
|
|
18844
|
+
status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
|
|
18845
|
+
}).partial();
|
|
18846
|
+
var SkillQueryValidator = z.union([
|
|
18847
|
+
z.object({
|
|
18848
|
+
$or: BaseSkillQueryValidator.array()
|
|
18849
|
+
}),
|
|
18850
|
+
BaseSkillQueryValidator
|
|
18851
|
+
]);
|
|
18852
|
+
var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
|
|
18853
|
+
var SkillFrameworkValidator = z.object({
|
|
18854
|
+
id: z.string(),
|
|
18855
|
+
name: z.string(),
|
|
18856
|
+
description: z.string().optional(),
|
|
18857
|
+
image: z.string().optional(),
|
|
18858
|
+
sourceURI: z.string().url().optional(),
|
|
18859
|
+
status: SkillFrameworkStatusEnum.default("active"),
|
|
18860
|
+
createdAt: z.string().optional(),
|
|
18861
|
+
updatedAt: z.string().optional()
|
|
18862
|
+
});
|
|
18863
|
+
var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
|
|
18864
|
+
records: SkillFrameworkValidator.array()
|
|
18865
|
+
});
|
|
18866
|
+
var SkillTreeNodeValidator = SkillValidator.extend({
|
|
18867
|
+
children: z.array(z.lazy(() => SkillTreeNodeValidator)),
|
|
18868
|
+
hasChildren: z.boolean(),
|
|
18869
|
+
childrenCursor: z.string().nullable().optional()
|
|
18870
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
18871
|
+
var PaginatedSkillTreeValidator = z.object({
|
|
18872
|
+
hasMore: z.boolean(),
|
|
18873
|
+
cursor: z.string().nullable(),
|
|
18874
|
+
records: z.array(SkillTreeNodeValidator)
|
|
18875
|
+
});
|
|
18876
|
+
var SkillTreeNodeInputValidator = z.lazy(
|
|
18877
|
+
() => z.object({
|
|
18878
|
+
id: z.string().optional(),
|
|
18879
|
+
statement: z.string(),
|
|
18880
|
+
description: z.string().optional(),
|
|
18881
|
+
code: z.string().optional(),
|
|
18882
|
+
icon: z.string().optional(),
|
|
18883
|
+
type: z.string().optional(),
|
|
18884
|
+
status: SkillStatusEnum.optional(),
|
|
18885
|
+
children: z.array(SkillTreeNodeInputValidator).optional()
|
|
18886
|
+
})
|
|
18887
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
18888
|
+
var LinkProviderFrameworkInputValidator = z.object({
|
|
18889
|
+
frameworkId: z.string()
|
|
18890
|
+
});
|
|
18891
|
+
var CreateManagedFrameworkInputValidator = z.object({
|
|
18892
|
+
id: z.string().optional(),
|
|
18893
|
+
name: z.string().min(1),
|
|
18894
|
+
description: z.string().optional(),
|
|
18895
|
+
image: z.string().optional(),
|
|
18896
|
+
sourceURI: z.string().url().optional(),
|
|
18897
|
+
status: SkillFrameworkStatusEnum.optional(),
|
|
18898
|
+
skills: z.array(SkillTreeNodeInputValidator).optional(),
|
|
18899
|
+
boostUris: z.array(z.string()).optional()
|
|
18900
|
+
});
|
|
18901
|
+
var UpdateFrameworkInputValidator = z.object({
|
|
18902
|
+
id: z.string(),
|
|
18903
|
+
name: z.string().min(1).optional(),
|
|
18904
|
+
description: z.string().optional(),
|
|
18905
|
+
image: z.string().optional(),
|
|
18906
|
+
sourceURI: z.string().url().optional(),
|
|
18907
|
+
status: SkillFrameworkStatusEnum.optional()
|
|
18908
|
+
}).refine(
|
|
18909
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
18910
|
+
{
|
|
18911
|
+
message: "At least one field must be provided to update",
|
|
18912
|
+
path: ["name"]
|
|
18913
|
+
}
|
|
18914
|
+
);
|
|
18915
|
+
var DeleteFrameworkInputValidator = z.object({ id: z.string() });
|
|
18916
|
+
var CreateManagedFrameworkBatchInputValidator = z.object({
|
|
18917
|
+
frameworks: z.array(
|
|
18918
|
+
CreateManagedFrameworkInputValidator.extend({
|
|
18919
|
+
skills: z.array(SkillTreeNodeInputValidator).optional()
|
|
18920
|
+
})
|
|
18921
|
+
).min(1)
|
|
18922
|
+
});
|
|
18923
|
+
var SkillFrameworkAdminInputValidator = z.object({
|
|
18924
|
+
frameworkId: z.string(),
|
|
18925
|
+
profileId: z.string()
|
|
18926
|
+
});
|
|
18927
|
+
var SkillFrameworkIdInputValidator = z.object({ frameworkId: z.string() });
|
|
18928
|
+
var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
|
|
18929
|
+
var SyncFrameworkInputValidator = z.object({ id: z.string() });
|
|
18930
|
+
var AddTagInputValidator = z.object({
|
|
18931
|
+
slug: z.string().min(1),
|
|
18932
|
+
name: z.string().min(1)
|
|
18933
|
+
});
|
|
18934
|
+
var CreateSkillInputValidator = z.object({
|
|
18935
|
+
frameworkId: z.string(),
|
|
18936
|
+
skill: SkillTreeNodeInputValidator,
|
|
18937
|
+
parentId: z.string().nullable().optional()
|
|
18938
|
+
});
|
|
18939
|
+
var UpdateSkillInputValidator = z.object({
|
|
18940
|
+
frameworkId: z.string(),
|
|
18941
|
+
id: z.string(),
|
|
18942
|
+
statement: z.string().optional(),
|
|
18943
|
+
description: z.string().optional(),
|
|
18944
|
+
code: z.string().optional(),
|
|
18945
|
+
icon: z.string().optional(),
|
|
18946
|
+
type: z.string().optional(),
|
|
18947
|
+
status: SkillStatusEnum.optional()
|
|
18948
|
+
}).refine(
|
|
18949
|
+
(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,
|
|
18950
|
+
{
|
|
18951
|
+
message: "At least one field must be provided to update a skill",
|
|
18952
|
+
path: ["statement"]
|
|
18953
|
+
}
|
|
18954
|
+
);
|
|
18955
|
+
var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
|
|
18956
|
+
var DeleteSkillInputValidator = z.object({
|
|
18957
|
+
frameworkId: z.string(),
|
|
18958
|
+
id: z.string(),
|
|
18959
|
+
strategy: SkillDeletionStrategyValidator.optional().default("reparent")
|
|
18960
|
+
});
|
|
18961
|
+
var CreateSkillsBatchInputValidator = z.object({
|
|
18962
|
+
frameworkId: z.string(),
|
|
18963
|
+
skills: z.array(SkillTreeNodeInputValidator).min(1),
|
|
18964
|
+
parentId: z.string().nullable().optional()
|
|
18965
|
+
});
|
|
18966
|
+
var ReplaceSkillFrameworkSkillsInputValidator = z.object({
|
|
18967
|
+
frameworkId: z.string(),
|
|
18968
|
+
skills: z.array(SkillTreeNodeInputValidator).min(0)
|
|
18969
|
+
});
|
|
18970
|
+
var ReplaceSkillFrameworkSkillsResultValidator = z.object({
|
|
18971
|
+
created: z.number().int().min(0),
|
|
18972
|
+
updated: z.number().int().min(0),
|
|
18973
|
+
deleted: z.number().int().min(0),
|
|
18974
|
+
unchanged: z.number().int().min(0),
|
|
18975
|
+
total: z.number().int().min(0)
|
|
18976
|
+
});
|
|
18977
|
+
var CountSkillsInputValidator = z.object({
|
|
18978
|
+
frameworkId: z.string(),
|
|
18979
|
+
skillId: z.string().optional(),
|
|
18980
|
+
recursive: z.boolean().optional().default(false),
|
|
18981
|
+
onlyCountCompetencies: z.boolean().optional().default(false)
|
|
18982
|
+
});
|
|
18983
|
+
var CountSkillsResultValidator = z.object({
|
|
18984
|
+
count: z.number().int().min(0)
|
|
18985
|
+
});
|
|
18986
|
+
var GetFullSkillTreeInputValidator = z.object({
|
|
18987
|
+
frameworkId: z.string()
|
|
18988
|
+
});
|
|
18989
|
+
var GetFullSkillTreeResultValidator = z.object({
|
|
18990
|
+
skills: z.array(SkillTreeNodeValidator)
|
|
18991
|
+
});
|
|
18992
|
+
var GetSkillPathInputValidator = z.object({
|
|
18993
|
+
frameworkId: z.string(),
|
|
18994
|
+
skillId: z.string()
|
|
18995
|
+
});
|
|
18996
|
+
var GetSkillPathResultValidator = z.object({
|
|
18997
|
+
path: z.array(SkillValidator)
|
|
18998
|
+
});
|
|
18999
|
+
var FrameworkWithSkillsValidator = z.object({
|
|
19000
|
+
framework: SkillFrameworkValidator,
|
|
19001
|
+
skills: PaginatedSkillTreeValidator
|
|
19002
|
+
});
|
|
18474
19003
|
|
|
18475
19004
|
// src/helpers.ts
|
|
18476
19005
|
var import_json_stringify_deterministic = __toESM(require_lib());
|