@learncard/network-brain-client 2.4.9 → 2.4.13
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/CHANGELOG.md +28 -0
- package/dist/brain-client.cjs.development.js +312 -20
- package/dist/brain-client.cjs.development.js.map +2 -2
- package/dist/brain-client.cjs.production.min.js +1 -1
- package/dist/brain-client.cjs.production.min.js.map +3 -3
- package/dist/brain-client.esm.js +312 -20
- package/dist/brain-client.esm.js.map +2 -2
- package/package.json +4 -4
package/dist/brain-client.esm.js
CHANGED
|
@@ -84,6 +84,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
84
84
|
AchievementSubjectValidator: () => AchievementSubjectValidator,
|
|
85
85
|
AchievementTypeValidator: () => AchievementTypeValidator,
|
|
86
86
|
AchievementValidator: () => AchievementValidator,
|
|
87
|
+
AddTagInputValidator: () => AddTagInputValidator,
|
|
87
88
|
AddressValidator: () => AddressValidator,
|
|
88
89
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator,
|
|
89
90
|
AlignmentValidator: () => AlignmentValidator,
|
|
@@ -123,14 +124,22 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
123
124
|
ContactMethodVerificationValidator: () => ContactMethodVerificationValidator,
|
|
124
125
|
ContextValidator: () => ContextValidator,
|
|
125
126
|
ContractCredentialValidator: () => ContractCredentialValidator,
|
|
127
|
+
CountSkillsInputValidator: () => CountSkillsInputValidator,
|
|
128
|
+
CountSkillsResultValidator: () => CountSkillsResultValidator,
|
|
126
129
|
CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator,
|
|
127
130
|
CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator,
|
|
131
|
+
CreateManagedFrameworkBatchInputValidator: () => CreateManagedFrameworkBatchInputValidator,
|
|
132
|
+
CreateManagedFrameworkInputValidator: () => CreateManagedFrameworkInputValidator,
|
|
133
|
+
CreateSkillInputValidator: () => CreateSkillInputValidator,
|
|
134
|
+
CreateSkillsBatchInputValidator: () => CreateSkillsBatchInputValidator,
|
|
128
135
|
CredentialInfoValidator: () => CredentialInfoValidator,
|
|
129
136
|
CredentialRecordValidator: () => CredentialRecordValidator,
|
|
130
137
|
CredentialSchemaValidator: () => CredentialSchemaValidator,
|
|
131
138
|
CredentialStatusValidator: () => CredentialStatusValidator,
|
|
132
139
|
CredentialSubjectValidator: () => CredentialSubjectValidator,
|
|
133
140
|
CriteriaValidator: () => CriteriaValidator,
|
|
141
|
+
DeleteFrameworkInputValidator: () => DeleteFrameworkInputValidator,
|
|
142
|
+
DeleteSkillInputValidator: () => DeleteSkillInputValidator,
|
|
134
143
|
DidDocumentValidator: () => DidDocumentValidator,
|
|
135
144
|
EncryptedCredentialRecordValidator: () => EncryptedCredentialRecordValidator,
|
|
136
145
|
EncryptedRecordValidator: () => EncryptedRecordValidator,
|
|
@@ -138,8 +147,13 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
138
147
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator,
|
|
139
148
|
EvidenceValidator: () => EvidenceValidator,
|
|
140
149
|
FlatAuthGrantValidator: () => FlatAuthGrantValidator,
|
|
150
|
+
FrameworkWithSkillsValidator: () => FrameworkWithSkillsValidator,
|
|
141
151
|
FullClaimHookValidator: () => FullClaimHookValidator,
|
|
142
152
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator,
|
|
153
|
+
GetFullSkillTreeInputValidator: () => GetFullSkillTreeInputValidator,
|
|
154
|
+
GetFullSkillTreeResultValidator: () => GetFullSkillTreeResultValidator,
|
|
155
|
+
GetSkillPathInputValidator: () => GetSkillPathInputValidator,
|
|
156
|
+
GetSkillPathResultValidator: () => GetSkillPathResultValidator,
|
|
143
157
|
IdentifierEntryValidator: () => IdentifierEntryValidator,
|
|
144
158
|
IdentifierTypeValidator: () => IdentifierTypeValidator,
|
|
145
159
|
IdentityObjectValidator: () => IdentityObjectValidator,
|
|
@@ -178,6 +192,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
178
192
|
LCNProfileValidator: () => LCNProfileValidator,
|
|
179
193
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator,
|
|
180
194
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
|
|
195
|
+
LinkProviderFrameworkInputValidator: () => LinkProviderFrameworkInputValidator,
|
|
181
196
|
PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator,
|
|
182
197
|
PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator,
|
|
183
198
|
PaginatedBoostsValidator: () => PaginatedBoostsValidator,
|
|
@@ -195,6 +210,8 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
195
210
|
PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator,
|
|
196
211
|
PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator,
|
|
197
212
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
|
|
213
|
+
PaginatedSkillFrameworksValidator: () => PaginatedSkillFrameworksValidator,
|
|
214
|
+
PaginatedSkillTreeValidator: () => PaginatedSkillTreeValidator,
|
|
198
215
|
PaginationOptionsValidator: () => PaginationOptionsValidator,
|
|
199
216
|
PaginationResponseValidator: () => PaginationResponseValidator,
|
|
200
217
|
ProfileValidator: () => ProfileValidator,
|
|
@@ -202,6 +219,8 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
202
219
|
RefreshServiceValidator: () => RefreshServiceValidator,
|
|
203
220
|
RegExpValidator: () => RegExpValidator,
|
|
204
221
|
RelatedValidator: () => RelatedValidator,
|
|
222
|
+
ReplaceSkillFrameworkSkillsInputValidator: () => ReplaceSkillFrameworkSkillsInputValidator,
|
|
223
|
+
ReplaceSkillFrameworkSkillsResultValidator: () => ReplaceSkillFrameworkSkillsResultValidator,
|
|
205
224
|
ResultDescriptionValidator: () => ResultDescriptionValidator,
|
|
206
225
|
ResultStatusTypeValidator: () => ResultStatusTypeValidator,
|
|
207
226
|
ResultTypeValidator: () => ResultTypeValidator,
|
|
@@ -210,11 +229,27 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
210
229
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator,
|
|
211
230
|
ServiceValidator: () => ServiceValidator,
|
|
212
231
|
SetPrimaryContactMethodValidator: () => SetPrimaryContactMethodValidator,
|
|
232
|
+
SkillDeletionStrategyValidator: () => SkillDeletionStrategyValidator,
|
|
233
|
+
SkillFrameworkAdminInputValidator: () => SkillFrameworkAdminInputValidator,
|
|
234
|
+
SkillFrameworkAdminsValidator: () => SkillFrameworkAdminsValidator,
|
|
235
|
+
SkillFrameworkIdInputValidator: () => SkillFrameworkIdInputValidator,
|
|
236
|
+
SkillFrameworkQueryValidator: () => SkillFrameworkQueryValidator,
|
|
237
|
+
SkillFrameworkStatusEnum: () => SkillFrameworkStatusEnum,
|
|
238
|
+
SkillFrameworkValidator: () => SkillFrameworkValidator,
|
|
239
|
+
SkillQueryValidator: () => SkillQueryValidator,
|
|
240
|
+
SkillStatusEnum: () => SkillStatusEnum,
|
|
241
|
+
SkillTreeNodeInputValidator: () => SkillTreeNodeInputValidator,
|
|
242
|
+
SkillTreeNodeValidator: () => SkillTreeNodeValidator,
|
|
243
|
+
SkillValidator: () => SkillValidator,
|
|
213
244
|
StringQuery: () => StringQuery,
|
|
245
|
+
SyncFrameworkInputValidator: () => SyncFrameworkInputValidator,
|
|
246
|
+
TagValidator: () => TagValidator,
|
|
214
247
|
TermsOfUseValidator: () => TermsOfUseValidator,
|
|
215
248
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator,
|
|
216
249
|
UnsignedVCValidator: () => UnsignedVCValidator,
|
|
217
250
|
UnsignedVPValidator: () => UnsignedVPValidator,
|
|
251
|
+
UpdateFrameworkInputValidator: () => UpdateFrameworkInputValidator,
|
|
252
|
+
UpdateSkillInputValidator: () => UpdateSkillInputValidator,
|
|
218
253
|
VC2EvidenceValidator: () => VC2EvidenceValidator,
|
|
219
254
|
VCValidator: () => VCValidator,
|
|
220
255
|
VPValidator: () => VPValidator,
|
|
@@ -4697,7 +4732,14 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
4697
4732
|
}
|
|
4698
4733
|
})
|
|
4699
4734
|
);
|
|
4700
|
-
var
|
|
4735
|
+
var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
|
|
4736
|
+
var StringQuery = z.union([
|
|
4737
|
+
BaseStringQuery,
|
|
4738
|
+
z.object({
|
|
4739
|
+
$or: BaseStringQuery.array()
|
|
4740
|
+
})
|
|
4741
|
+
]);
|
|
4742
|
+
extendZodWithOpenApi(z);
|
|
4701
4743
|
var LCNProfileDisplayValidator = z.object({
|
|
4702
4744
|
backgroundColor: z.string().optional(),
|
|
4703
4745
|
backgroundImage: z.string().optional(),
|
|
@@ -4782,7 +4824,8 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
4782
4824
|
to: z.string(),
|
|
4783
4825
|
from: z.string(),
|
|
4784
4826
|
sent: z.string().datetime(),
|
|
4785
|
-
received: z.string().datetime().optional()
|
|
4827
|
+
received: z.string().datetime().optional(),
|
|
4828
|
+
metadata: z.record(z.unknown()).optional()
|
|
4786
4829
|
});
|
|
4787
4830
|
var BoostPermissionsValidator = z.object({
|
|
4788
4831
|
role: z.string(),
|
|
@@ -4855,7 +4898,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
4855
4898
|
claimPermissions: BoostPermissionsValidator.optional(),
|
|
4856
4899
|
allowAnyoneToCreateChildren: z.boolean().optional()
|
|
4857
4900
|
});
|
|
4858
|
-
var
|
|
4901
|
+
var BaseBoostQueryValidator = z.object({
|
|
4859
4902
|
uri: StringQuery,
|
|
4860
4903
|
name: StringQuery,
|
|
4861
4904
|
type: StringQuery,
|
|
@@ -4864,6 +4907,12 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
4864
4907
|
status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
|
|
4865
4908
|
autoConnectRecipients: z.boolean()
|
|
4866
4909
|
}).partial();
|
|
4910
|
+
var BoostQueryValidator = z.union([
|
|
4911
|
+
z.object({
|
|
4912
|
+
$or: BaseBoostQueryValidator.array()
|
|
4913
|
+
}),
|
|
4914
|
+
BaseBoostQueryValidator
|
|
4915
|
+
]);
|
|
4867
4916
|
var PaginatedBoostsValidator = PaginationResponseValidator.extend({
|
|
4868
4917
|
records: BoostValidator.array()
|
|
4869
4918
|
});
|
|
@@ -4919,11 +4968,25 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
4919
4968
|
var ConsentFlowContractValidator = z.object({
|
|
4920
4969
|
read: z.object({
|
|
4921
4970
|
anonymize: z.boolean().optional(),
|
|
4922
|
-
credentials: z.object({
|
|
4971
|
+
credentials: z.object({
|
|
4972
|
+
categories: z.record(
|
|
4973
|
+
z.object({
|
|
4974
|
+
required: z.boolean(),
|
|
4975
|
+
defaultEnabled: z.boolean().optional()
|
|
4976
|
+
})
|
|
4977
|
+
).default({})
|
|
4978
|
+
}).default({}),
|
|
4923
4979
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
4924
4980
|
}).default({}),
|
|
4925
4981
|
write: z.object({
|
|
4926
|
-
credentials: z.object({
|
|
4982
|
+
credentials: z.object({
|
|
4983
|
+
categories: z.record(
|
|
4984
|
+
z.object({
|
|
4985
|
+
required: z.boolean(),
|
|
4986
|
+
defaultEnabled: z.boolean().optional()
|
|
4987
|
+
})
|
|
4988
|
+
).default({})
|
|
4989
|
+
}).default({}),
|
|
4927
4990
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
4928
4991
|
}).default({})
|
|
4929
4992
|
});
|
|
@@ -5066,6 +5129,17 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
5066
5129
|
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
|
5067
5130
|
records: ConsentFlowTransactionValidator.array()
|
|
5068
5131
|
});
|
|
5132
|
+
var BaseSkillFrameworkQueryValidator = z.object({
|
|
5133
|
+
id: StringQuery,
|
|
5134
|
+
name: StringQuery,
|
|
5135
|
+
description: StringQuery,
|
|
5136
|
+
sourceURI: StringQuery,
|
|
5137
|
+
status: StringQuery
|
|
5138
|
+
}).partial();
|
|
5139
|
+
var SkillFrameworkQueryValidator = z.union([
|
|
5140
|
+
z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
|
|
5141
|
+
BaseSkillFrameworkQueryValidator
|
|
5142
|
+
]);
|
|
5069
5143
|
var ContractCredentialValidator = z.object({
|
|
5070
5144
|
credentialUri: z.string(),
|
|
5071
5145
|
termsUri: z.string(),
|
|
@@ -5120,8 +5194,9 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
5120
5194
|
vcUris: z.array(z.string()).optional(),
|
|
5121
5195
|
vpUris: z.array(z.string()).optional(),
|
|
5122
5196
|
transaction: ConsentFlowTransactionValidator.optional(),
|
|
5123
|
-
inbox: LCNNotificationInboxValidator.optional()
|
|
5124
|
-
|
|
5197
|
+
inbox: LCNNotificationInboxValidator.optional(),
|
|
5198
|
+
metadata: z.record(z.unknown()).optional()
|
|
5199
|
+
}).passthrough();
|
|
5125
5200
|
var LCNNotificationValidator = z.object({
|
|
5126
5201
|
type: LCNNotificationTypeEnumValidator,
|
|
5127
5202
|
to: LCNProfileValidator.partial().and(z.object({ did: z.string() })),
|
|
@@ -5244,31 +5319,55 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
5244
5319
|
});
|
|
5245
5320
|
var IssueInboxCredentialValidator = z.object({
|
|
5246
5321
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
5247
|
-
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
5322
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
5323
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
5324
|
+
),
|
|
5248
5325
|
configuration: z.object({
|
|
5249
|
-
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
5326
|
+
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
5327
|
+
"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."
|
|
5328
|
+
),
|
|
5250
5329
|
webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
5251
5330
|
expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
5252
5331
|
delivery: z.object({
|
|
5253
|
-
suppress: z.boolean().optional().default(false).describe(
|
|
5332
|
+
suppress: z.boolean().optional().default(false).describe(
|
|
5333
|
+
"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."
|
|
5334
|
+
),
|
|
5254
5335
|
template: z.object({
|
|
5255
|
-
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
5336
|
+
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
5337
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
5338
|
+
),
|
|
5256
5339
|
model: z.object({
|
|
5257
5340
|
issuer: z.object({
|
|
5258
|
-
name: z.string().optional().describe(
|
|
5341
|
+
name: z.string().optional().describe(
|
|
5342
|
+
'The name of the organization (e.g., "State University").'
|
|
5343
|
+
),
|
|
5259
5344
|
logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
|
|
5260
5345
|
}).optional(),
|
|
5261
5346
|
credential: z.object({
|
|
5262
|
-
name: z.string().optional().describe(
|
|
5263
|
-
|
|
5347
|
+
name: z.string().optional().describe(
|
|
5348
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
5349
|
+
),
|
|
5350
|
+
type: z.string().optional().describe(
|
|
5351
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
5352
|
+
)
|
|
5264
5353
|
}).optional(),
|
|
5265
5354
|
recipient: z.object({
|
|
5266
|
-
name: z.string().optional().describe(
|
|
5355
|
+
name: z.string().optional().describe(
|
|
5356
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
5357
|
+
)
|
|
5267
5358
|
}).optional()
|
|
5268
|
-
}).describe(
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5359
|
+
}).describe(
|
|
5360
|
+
"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."
|
|
5361
|
+
)
|
|
5362
|
+
}).optional().describe(
|
|
5363
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
5364
|
+
)
|
|
5365
|
+
}).optional().describe(
|
|
5366
|
+
"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."
|
|
5367
|
+
)
|
|
5368
|
+
}).optional().describe(
|
|
5369
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
5370
|
+
)
|
|
5272
5371
|
});
|
|
5273
5372
|
var IssueInboxCredentialResponseValidator = z.object({
|
|
5274
5373
|
issuanceId: z.string(),
|
|
@@ -5330,6 +5429,191 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
5330
5429
|
expiresAt: z.string(),
|
|
5331
5430
|
used: z.boolean()
|
|
5332
5431
|
});
|
|
5432
|
+
var TagValidator = z.object({
|
|
5433
|
+
id: z.string(),
|
|
5434
|
+
name: z.string().min(1),
|
|
5435
|
+
slug: z.string().min(1),
|
|
5436
|
+
createdAt: z.string().optional(),
|
|
5437
|
+
updatedAt: z.string().optional()
|
|
5438
|
+
});
|
|
5439
|
+
var SkillStatusEnum = z.enum(["active", "archived"]);
|
|
5440
|
+
var SkillValidator = z.object({
|
|
5441
|
+
id: z.string(),
|
|
5442
|
+
statement: z.string(),
|
|
5443
|
+
description: z.string().optional(),
|
|
5444
|
+
code: z.string().optional(),
|
|
5445
|
+
icon: z.string().optional(),
|
|
5446
|
+
type: z.string().default("skill"),
|
|
5447
|
+
status: SkillStatusEnum.default("active"),
|
|
5448
|
+
frameworkId: z.string().optional(),
|
|
5449
|
+
createdAt: z.string().optional(),
|
|
5450
|
+
updatedAt: z.string().optional()
|
|
5451
|
+
});
|
|
5452
|
+
var BaseSkillQueryValidator = z.object({
|
|
5453
|
+
id: StringQuery,
|
|
5454
|
+
statement: StringQuery,
|
|
5455
|
+
description: StringQuery,
|
|
5456
|
+
code: StringQuery,
|
|
5457
|
+
type: StringQuery,
|
|
5458
|
+
status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
|
|
5459
|
+
}).partial();
|
|
5460
|
+
var SkillQueryValidator = z.union([
|
|
5461
|
+
z.object({
|
|
5462
|
+
$or: BaseSkillQueryValidator.array()
|
|
5463
|
+
}),
|
|
5464
|
+
BaseSkillQueryValidator
|
|
5465
|
+
]);
|
|
5466
|
+
var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
|
|
5467
|
+
var SkillFrameworkValidator = z.object({
|
|
5468
|
+
id: z.string(),
|
|
5469
|
+
name: z.string(),
|
|
5470
|
+
description: z.string().optional(),
|
|
5471
|
+
image: z.string().optional(),
|
|
5472
|
+
sourceURI: z.string().url().optional(),
|
|
5473
|
+
status: SkillFrameworkStatusEnum.default("active"),
|
|
5474
|
+
createdAt: z.string().optional(),
|
|
5475
|
+
updatedAt: z.string().optional()
|
|
5476
|
+
});
|
|
5477
|
+
var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
|
|
5478
|
+
records: SkillFrameworkValidator.array()
|
|
5479
|
+
});
|
|
5480
|
+
var SkillTreeNodeValidator = SkillValidator.extend({
|
|
5481
|
+
children: z.array(z.lazy(() => SkillTreeNodeValidator)),
|
|
5482
|
+
hasChildren: z.boolean(),
|
|
5483
|
+
childrenCursor: z.string().nullable().optional()
|
|
5484
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
5485
|
+
var PaginatedSkillTreeValidator = z.object({
|
|
5486
|
+
hasMore: z.boolean(),
|
|
5487
|
+
cursor: z.string().nullable(),
|
|
5488
|
+
records: z.array(SkillTreeNodeValidator)
|
|
5489
|
+
});
|
|
5490
|
+
var SkillTreeNodeInputValidator = z.lazy(
|
|
5491
|
+
() => z.object({
|
|
5492
|
+
id: z.string().optional(),
|
|
5493
|
+
statement: z.string(),
|
|
5494
|
+
description: z.string().optional(),
|
|
5495
|
+
code: z.string().optional(),
|
|
5496
|
+
icon: z.string().optional(),
|
|
5497
|
+
type: z.string().optional(),
|
|
5498
|
+
status: SkillStatusEnum.optional(),
|
|
5499
|
+
children: z.array(SkillTreeNodeInputValidator).optional()
|
|
5500
|
+
})
|
|
5501
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
5502
|
+
var LinkProviderFrameworkInputValidator = z.object({
|
|
5503
|
+
frameworkId: z.string()
|
|
5504
|
+
});
|
|
5505
|
+
var CreateManagedFrameworkInputValidator = z.object({
|
|
5506
|
+
id: z.string().optional(),
|
|
5507
|
+
name: z.string().min(1),
|
|
5508
|
+
description: z.string().optional(),
|
|
5509
|
+
image: z.string().optional(),
|
|
5510
|
+
sourceURI: z.string().url().optional(),
|
|
5511
|
+
status: SkillFrameworkStatusEnum.optional(),
|
|
5512
|
+
skills: z.array(SkillTreeNodeInputValidator).optional(),
|
|
5513
|
+
boostUris: z.array(z.string()).optional()
|
|
5514
|
+
});
|
|
5515
|
+
var UpdateFrameworkInputValidator = z.object({
|
|
5516
|
+
id: z.string(),
|
|
5517
|
+
name: z.string().min(1).optional(),
|
|
5518
|
+
description: z.string().optional(),
|
|
5519
|
+
image: z.string().optional(),
|
|
5520
|
+
sourceURI: z.string().url().optional(),
|
|
5521
|
+
status: SkillFrameworkStatusEnum.optional()
|
|
5522
|
+
}).refine(
|
|
5523
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
5524
|
+
{
|
|
5525
|
+
message: "At least one field must be provided to update",
|
|
5526
|
+
path: ["name"]
|
|
5527
|
+
}
|
|
5528
|
+
);
|
|
5529
|
+
var DeleteFrameworkInputValidator = z.object({ id: z.string() });
|
|
5530
|
+
var CreateManagedFrameworkBatchInputValidator = z.object({
|
|
5531
|
+
frameworks: z.array(
|
|
5532
|
+
CreateManagedFrameworkInputValidator.extend({
|
|
5533
|
+
skills: z.array(SkillTreeNodeInputValidator).optional()
|
|
5534
|
+
})
|
|
5535
|
+
).min(1)
|
|
5536
|
+
});
|
|
5537
|
+
var SkillFrameworkAdminInputValidator = z.object({
|
|
5538
|
+
frameworkId: z.string(),
|
|
5539
|
+
profileId: z.string()
|
|
5540
|
+
});
|
|
5541
|
+
var SkillFrameworkIdInputValidator = z.object({ frameworkId: z.string() });
|
|
5542
|
+
var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
|
|
5543
|
+
var SyncFrameworkInputValidator = z.object({ id: z.string() });
|
|
5544
|
+
var AddTagInputValidator = z.object({
|
|
5545
|
+
slug: z.string().min(1),
|
|
5546
|
+
name: z.string().min(1)
|
|
5547
|
+
});
|
|
5548
|
+
var CreateSkillInputValidator = z.object({
|
|
5549
|
+
frameworkId: z.string(),
|
|
5550
|
+
skill: SkillTreeNodeInputValidator,
|
|
5551
|
+
parentId: z.string().nullable().optional()
|
|
5552
|
+
});
|
|
5553
|
+
var UpdateSkillInputValidator = z.object({
|
|
5554
|
+
frameworkId: z.string(),
|
|
5555
|
+
id: z.string(),
|
|
5556
|
+
statement: z.string().optional(),
|
|
5557
|
+
description: z.string().optional(),
|
|
5558
|
+
code: z.string().optional(),
|
|
5559
|
+
icon: z.string().optional(),
|
|
5560
|
+
type: z.string().optional(),
|
|
5561
|
+
status: SkillStatusEnum.optional()
|
|
5562
|
+
}).refine(
|
|
5563
|
+
(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,
|
|
5564
|
+
{
|
|
5565
|
+
message: "At least one field must be provided to update a skill",
|
|
5566
|
+
path: ["statement"]
|
|
5567
|
+
}
|
|
5568
|
+
);
|
|
5569
|
+
var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
|
|
5570
|
+
var DeleteSkillInputValidator = z.object({
|
|
5571
|
+
frameworkId: z.string(),
|
|
5572
|
+
id: z.string(),
|
|
5573
|
+
strategy: SkillDeletionStrategyValidator.optional().default("reparent")
|
|
5574
|
+
});
|
|
5575
|
+
var CreateSkillsBatchInputValidator = z.object({
|
|
5576
|
+
frameworkId: z.string(),
|
|
5577
|
+
skills: z.array(SkillTreeNodeInputValidator).min(1),
|
|
5578
|
+
parentId: z.string().nullable().optional()
|
|
5579
|
+
});
|
|
5580
|
+
var ReplaceSkillFrameworkSkillsInputValidator = z.object({
|
|
5581
|
+
frameworkId: z.string(),
|
|
5582
|
+
skills: z.array(SkillTreeNodeInputValidator).min(0)
|
|
5583
|
+
});
|
|
5584
|
+
var ReplaceSkillFrameworkSkillsResultValidator = z.object({
|
|
5585
|
+
created: z.number().int().min(0),
|
|
5586
|
+
updated: z.number().int().min(0),
|
|
5587
|
+
deleted: z.number().int().min(0),
|
|
5588
|
+
unchanged: z.number().int().min(0),
|
|
5589
|
+
total: z.number().int().min(0)
|
|
5590
|
+
});
|
|
5591
|
+
var CountSkillsInputValidator = z.object({
|
|
5592
|
+
frameworkId: z.string(),
|
|
5593
|
+
skillId: z.string().optional(),
|
|
5594
|
+
recursive: z.boolean().optional().default(false),
|
|
5595
|
+
onlyCountCompetencies: z.boolean().optional().default(false)
|
|
5596
|
+
});
|
|
5597
|
+
var CountSkillsResultValidator = z.object({
|
|
5598
|
+
count: z.number().int().min(0)
|
|
5599
|
+
});
|
|
5600
|
+
var GetFullSkillTreeInputValidator = z.object({
|
|
5601
|
+
frameworkId: z.string()
|
|
5602
|
+
});
|
|
5603
|
+
var GetFullSkillTreeResultValidator = z.object({
|
|
5604
|
+
skills: z.array(SkillTreeNodeValidator)
|
|
5605
|
+
});
|
|
5606
|
+
var GetSkillPathInputValidator = z.object({
|
|
5607
|
+
frameworkId: z.string(),
|
|
5608
|
+
skillId: z.string()
|
|
5609
|
+
});
|
|
5610
|
+
var GetSkillPathResultValidator = z.object({
|
|
5611
|
+
path: z.array(SkillValidator)
|
|
5612
|
+
});
|
|
5613
|
+
var FrameworkWithSkillsValidator = z.object({
|
|
5614
|
+
framework: SkillFrameworkValidator,
|
|
5615
|
+
skills: PaginatedSkillTreeValidator
|
|
5616
|
+
});
|
|
5333
5617
|
}
|
|
5334
5618
|
});
|
|
5335
5619
|
var require_dist2 = __commonJS2({
|
|
@@ -5347,7 +5631,8 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
5347
5631
|
RegExpTransformer: () => RegExpTransformer2,
|
|
5348
5632
|
isEncrypted: () => isEncrypted,
|
|
5349
5633
|
isHex: () => isHex,
|
|
5350
|
-
isVC2Format: () => isVC2Format
|
|
5634
|
+
isVC2Format: () => isVC2Format,
|
|
5635
|
+
unwrapBoostCredential: () => unwrapBoostCredential
|
|
5351
5636
|
});
|
|
5352
5637
|
module.exports = __toCommonJS(src_exports);
|
|
5353
5638
|
var import_types = __toESM2(require_dist2());
|
|
@@ -5388,6 +5673,13 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
5388
5673
|
}
|
|
5389
5674
|
return credential["@context"].includes("https://www.w3.org/ns/credentials/v2");
|
|
5390
5675
|
}, "isVC2Format");
|
|
5676
|
+
var unwrapBoostCredential = /* @__PURE__ */ __name2((vc) => {
|
|
5677
|
+
if (vc?.type?.includes("CertifiedBoostCredential") && vc?.boostCredential) {
|
|
5678
|
+
return vc.boostCredential;
|
|
5679
|
+
} else {
|
|
5680
|
+
return vc;
|
|
5681
|
+
}
|
|
5682
|
+
}, "unwrapBoostCredential");
|
|
5391
5683
|
}
|
|
5392
5684
|
});
|
|
5393
5685
|
|