@learncard/learn-card-plugin 1.1.63 → 1.1.65
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-card-plugin.cjs.development.js +268 -19
- package/dist/learn-card-plugin.cjs.development.js.map +2 -2
- package/dist/learn-card-plugin.cjs.production.min.js +1 -1
- package/dist/learn-card-plugin.cjs.production.min.js.map +3 -3
- package/dist/learn-card-plugin.esm.js +268 -19
- package/dist/learn-card-plugin.esm.js.map +2 -2
- package/package.json +4 -4
|
@@ -4438,7 +4438,14 @@ var RegExpValidator = z.instanceof(RegExp).or(
|
|
|
4438
4438
|
}
|
|
4439
4439
|
})
|
|
4440
4440
|
);
|
|
4441
|
-
var
|
|
4441
|
+
var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
|
|
4442
|
+
var StringQuery = z.union([
|
|
4443
|
+
BaseStringQuery,
|
|
4444
|
+
z.object({
|
|
4445
|
+
$or: BaseStringQuery.array()
|
|
4446
|
+
})
|
|
4447
|
+
]);
|
|
4448
|
+
extendZodWithOpenApi(z);
|
|
4442
4449
|
var LCNProfileDisplayValidator = z.object({
|
|
4443
4450
|
backgroundColor: z.string().optional(),
|
|
4444
4451
|
backgroundImage: z.string().optional(),
|
|
@@ -4523,7 +4530,8 @@ var SentCredentialInfoValidator = z.object({
|
|
|
4523
4530
|
to: z.string(),
|
|
4524
4531
|
from: z.string(),
|
|
4525
4532
|
sent: z.string().datetime(),
|
|
4526
|
-
received: z.string().datetime().optional()
|
|
4533
|
+
received: z.string().datetime().optional(),
|
|
4534
|
+
metadata: z.record(z.unknown()).optional()
|
|
4527
4535
|
});
|
|
4528
4536
|
var BoostPermissionsValidator = z.object({
|
|
4529
4537
|
role: z.string(),
|
|
@@ -4596,7 +4604,7 @@ var BoostValidator = z.object({
|
|
|
4596
4604
|
claimPermissions: BoostPermissionsValidator.optional(),
|
|
4597
4605
|
allowAnyoneToCreateChildren: z.boolean().optional()
|
|
4598
4606
|
});
|
|
4599
|
-
var
|
|
4607
|
+
var BaseBoostQueryValidator = z.object({
|
|
4600
4608
|
uri: StringQuery,
|
|
4601
4609
|
name: StringQuery,
|
|
4602
4610
|
type: StringQuery,
|
|
@@ -4605,6 +4613,12 @@ var BoostQueryValidator = z.object({
|
|
|
4605
4613
|
status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
|
|
4606
4614
|
autoConnectRecipients: z.boolean()
|
|
4607
4615
|
}).partial();
|
|
4616
|
+
var BoostQueryValidator = z.union([
|
|
4617
|
+
z.object({
|
|
4618
|
+
$or: BaseBoostQueryValidator.array()
|
|
4619
|
+
}),
|
|
4620
|
+
BaseBoostQueryValidator
|
|
4621
|
+
]);
|
|
4608
4622
|
var PaginatedBoostsValidator = PaginationResponseValidator.extend({
|
|
4609
4623
|
records: BoostValidator.array()
|
|
4610
4624
|
});
|
|
@@ -4660,11 +4674,25 @@ var ConsentFlowTermsStatusValidator = z.enum(["live", "stale", "withdrawn"]);
|
|
|
4660
4674
|
var ConsentFlowContractValidator = z.object({
|
|
4661
4675
|
read: z.object({
|
|
4662
4676
|
anonymize: z.boolean().optional(),
|
|
4663
|
-
credentials: z.object({
|
|
4677
|
+
credentials: z.object({
|
|
4678
|
+
categories: z.record(
|
|
4679
|
+
z.object({
|
|
4680
|
+
required: z.boolean(),
|
|
4681
|
+
defaultEnabled: z.boolean().optional()
|
|
4682
|
+
})
|
|
4683
|
+
).default({})
|
|
4684
|
+
}).default({}),
|
|
4664
4685
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
4665
4686
|
}).default({}),
|
|
4666
4687
|
write: z.object({
|
|
4667
|
-
credentials: z.object({
|
|
4688
|
+
credentials: z.object({
|
|
4689
|
+
categories: z.record(
|
|
4690
|
+
z.object({
|
|
4691
|
+
required: z.boolean(),
|
|
4692
|
+
defaultEnabled: z.boolean().optional()
|
|
4693
|
+
})
|
|
4694
|
+
).default({})
|
|
4695
|
+
}).default({}),
|
|
4668
4696
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
4669
4697
|
}).default({})
|
|
4670
4698
|
});
|
|
@@ -4807,6 +4835,17 @@ var ConsentFlowTransactionValidator = z.object({
|
|
|
4807
4835
|
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
|
4808
4836
|
records: ConsentFlowTransactionValidator.array()
|
|
4809
4837
|
});
|
|
4838
|
+
var BaseSkillFrameworkQueryValidator = z.object({
|
|
4839
|
+
id: StringQuery,
|
|
4840
|
+
name: StringQuery,
|
|
4841
|
+
description: StringQuery,
|
|
4842
|
+
sourceURI: StringQuery,
|
|
4843
|
+
status: StringQuery
|
|
4844
|
+
}).partial();
|
|
4845
|
+
var SkillFrameworkQueryValidator = z.union([
|
|
4846
|
+
z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
|
|
4847
|
+
BaseSkillFrameworkQueryValidator
|
|
4848
|
+
]);
|
|
4810
4849
|
var ContractCredentialValidator = z.object({
|
|
4811
4850
|
credentialUri: z.string(),
|
|
4812
4851
|
termsUri: z.string(),
|
|
@@ -4861,8 +4900,9 @@ var LCNNotificationDataValidator = z.object({
|
|
|
4861
4900
|
vcUris: z.array(z.string()).optional(),
|
|
4862
4901
|
vpUris: z.array(z.string()).optional(),
|
|
4863
4902
|
transaction: ConsentFlowTransactionValidator.optional(),
|
|
4864
|
-
inbox: LCNNotificationInboxValidator.optional()
|
|
4865
|
-
|
|
4903
|
+
inbox: LCNNotificationInboxValidator.optional(),
|
|
4904
|
+
metadata: z.record(z.unknown()).optional()
|
|
4905
|
+
}).passthrough();
|
|
4866
4906
|
var LCNNotificationValidator = z.object({
|
|
4867
4907
|
type: LCNNotificationTypeEnumValidator,
|
|
4868
4908
|
to: LCNProfileValidator.partial().and(z.object({ did: z.string() })),
|
|
@@ -4985,31 +5025,55 @@ var IssueInboxSigningAuthorityValidator = z.object({
|
|
|
4985
5025
|
});
|
|
4986
5026
|
var IssueInboxCredentialValidator = z.object({
|
|
4987
5027
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
4988
|
-
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
5028
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
5029
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
5030
|
+
),
|
|
4989
5031
|
configuration: z.object({
|
|
4990
|
-
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
5032
|
+
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
5033
|
+
"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."
|
|
5034
|
+
),
|
|
4991
5035
|
webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
4992
5036
|
expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
4993
5037
|
delivery: z.object({
|
|
4994
|
-
suppress: z.boolean().optional().default(false).describe(
|
|
5038
|
+
suppress: z.boolean().optional().default(false).describe(
|
|
5039
|
+
"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."
|
|
5040
|
+
),
|
|
4995
5041
|
template: z.object({
|
|
4996
|
-
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
5042
|
+
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
5043
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
5044
|
+
),
|
|
4997
5045
|
model: z.object({
|
|
4998
5046
|
issuer: z.object({
|
|
4999
|
-
name: z.string().optional().describe(
|
|
5047
|
+
name: z.string().optional().describe(
|
|
5048
|
+
'The name of the organization (e.g., "State University").'
|
|
5049
|
+
),
|
|
5000
5050
|
logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
|
|
5001
5051
|
}).optional(),
|
|
5002
5052
|
credential: z.object({
|
|
5003
|
-
name: z.string().optional().describe(
|
|
5004
|
-
|
|
5053
|
+
name: z.string().optional().describe(
|
|
5054
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
5055
|
+
),
|
|
5056
|
+
type: z.string().optional().describe(
|
|
5057
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
5058
|
+
)
|
|
5005
5059
|
}).optional(),
|
|
5006
5060
|
recipient: z.object({
|
|
5007
|
-
name: z.string().optional().describe(
|
|
5061
|
+
name: z.string().optional().describe(
|
|
5062
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
5063
|
+
)
|
|
5008
5064
|
}).optional()
|
|
5009
|
-
}).describe(
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5065
|
+
}).describe(
|
|
5066
|
+
"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."
|
|
5067
|
+
)
|
|
5068
|
+
}).optional().describe(
|
|
5069
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
5070
|
+
)
|
|
5071
|
+
}).optional().describe(
|
|
5072
|
+
"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."
|
|
5073
|
+
)
|
|
5074
|
+
}).optional().describe(
|
|
5075
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
5076
|
+
)
|
|
5013
5077
|
});
|
|
5014
5078
|
var IssueInboxCredentialResponseValidator = z.object({
|
|
5015
5079
|
issuanceId: z.string(),
|
|
@@ -5071,6 +5135,191 @@ var ClaimTokenValidator = z.object({
|
|
|
5071
5135
|
expiresAt: z.string(),
|
|
5072
5136
|
used: z.boolean()
|
|
5073
5137
|
});
|
|
5138
|
+
var TagValidator = z.object({
|
|
5139
|
+
id: z.string(),
|
|
5140
|
+
name: z.string().min(1),
|
|
5141
|
+
slug: z.string().min(1),
|
|
5142
|
+
createdAt: z.string().optional(),
|
|
5143
|
+
updatedAt: z.string().optional()
|
|
5144
|
+
});
|
|
5145
|
+
var SkillStatusEnum = z.enum(["active", "archived"]);
|
|
5146
|
+
var SkillValidator = z.object({
|
|
5147
|
+
id: z.string(),
|
|
5148
|
+
statement: z.string(),
|
|
5149
|
+
description: z.string().optional(),
|
|
5150
|
+
code: z.string().optional(),
|
|
5151
|
+
icon: z.string().optional(),
|
|
5152
|
+
type: z.string().default("skill"),
|
|
5153
|
+
status: SkillStatusEnum.default("active"),
|
|
5154
|
+
frameworkId: z.string().optional(),
|
|
5155
|
+
createdAt: z.string().optional(),
|
|
5156
|
+
updatedAt: z.string().optional()
|
|
5157
|
+
});
|
|
5158
|
+
var BaseSkillQueryValidator = z.object({
|
|
5159
|
+
id: StringQuery,
|
|
5160
|
+
statement: StringQuery,
|
|
5161
|
+
description: StringQuery,
|
|
5162
|
+
code: StringQuery,
|
|
5163
|
+
type: StringQuery,
|
|
5164
|
+
status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
|
|
5165
|
+
}).partial();
|
|
5166
|
+
var SkillQueryValidator = z.union([
|
|
5167
|
+
z.object({
|
|
5168
|
+
$or: BaseSkillQueryValidator.array()
|
|
5169
|
+
}),
|
|
5170
|
+
BaseSkillQueryValidator
|
|
5171
|
+
]);
|
|
5172
|
+
var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
|
|
5173
|
+
var SkillFrameworkValidator = z.object({
|
|
5174
|
+
id: z.string(),
|
|
5175
|
+
name: z.string(),
|
|
5176
|
+
description: z.string().optional(),
|
|
5177
|
+
image: z.string().optional(),
|
|
5178
|
+
sourceURI: z.string().url().optional(),
|
|
5179
|
+
status: SkillFrameworkStatusEnum.default("active"),
|
|
5180
|
+
createdAt: z.string().optional(),
|
|
5181
|
+
updatedAt: z.string().optional()
|
|
5182
|
+
});
|
|
5183
|
+
var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
|
|
5184
|
+
records: SkillFrameworkValidator.array()
|
|
5185
|
+
});
|
|
5186
|
+
var SkillTreeNodeValidator = SkillValidator.extend({
|
|
5187
|
+
children: z.array(z.lazy(() => SkillTreeNodeValidator)),
|
|
5188
|
+
hasChildren: z.boolean(),
|
|
5189
|
+
childrenCursor: z.string().nullable().optional()
|
|
5190
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
5191
|
+
var PaginatedSkillTreeValidator = z.object({
|
|
5192
|
+
hasMore: z.boolean(),
|
|
5193
|
+
cursor: z.string().nullable(),
|
|
5194
|
+
records: z.array(SkillTreeNodeValidator)
|
|
5195
|
+
});
|
|
5196
|
+
var SkillTreeNodeInputValidator = z.lazy(
|
|
5197
|
+
() => z.object({
|
|
5198
|
+
id: z.string().optional(),
|
|
5199
|
+
statement: z.string(),
|
|
5200
|
+
description: z.string().optional(),
|
|
5201
|
+
code: z.string().optional(),
|
|
5202
|
+
icon: z.string().optional(),
|
|
5203
|
+
type: z.string().optional(),
|
|
5204
|
+
status: SkillStatusEnum.optional(),
|
|
5205
|
+
children: z.array(SkillTreeNodeInputValidator).optional()
|
|
5206
|
+
})
|
|
5207
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
5208
|
+
var LinkProviderFrameworkInputValidator = z.object({
|
|
5209
|
+
frameworkId: z.string()
|
|
5210
|
+
});
|
|
5211
|
+
var CreateManagedFrameworkInputValidator = z.object({
|
|
5212
|
+
id: z.string().optional(),
|
|
5213
|
+
name: z.string().min(1),
|
|
5214
|
+
description: z.string().optional(),
|
|
5215
|
+
image: z.string().optional(),
|
|
5216
|
+
sourceURI: z.string().url().optional(),
|
|
5217
|
+
status: SkillFrameworkStatusEnum.optional(),
|
|
5218
|
+
skills: z.array(SkillTreeNodeInputValidator).optional(),
|
|
5219
|
+
boostUris: z.array(z.string()).optional()
|
|
5220
|
+
});
|
|
5221
|
+
var UpdateFrameworkInputValidator = z.object({
|
|
5222
|
+
id: z.string(),
|
|
5223
|
+
name: z.string().min(1).optional(),
|
|
5224
|
+
description: z.string().optional(),
|
|
5225
|
+
image: z.string().optional(),
|
|
5226
|
+
sourceURI: z.string().url().optional(),
|
|
5227
|
+
status: SkillFrameworkStatusEnum.optional()
|
|
5228
|
+
}).refine(
|
|
5229
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
5230
|
+
{
|
|
5231
|
+
message: "At least one field must be provided to update",
|
|
5232
|
+
path: ["name"]
|
|
5233
|
+
}
|
|
5234
|
+
);
|
|
5235
|
+
var DeleteFrameworkInputValidator = z.object({ id: z.string() });
|
|
5236
|
+
var CreateManagedFrameworkBatchInputValidator = z.object({
|
|
5237
|
+
frameworks: z.array(
|
|
5238
|
+
CreateManagedFrameworkInputValidator.extend({
|
|
5239
|
+
skills: z.array(SkillTreeNodeInputValidator).optional()
|
|
5240
|
+
})
|
|
5241
|
+
).min(1)
|
|
5242
|
+
});
|
|
5243
|
+
var SkillFrameworkAdminInputValidator = z.object({
|
|
5244
|
+
frameworkId: z.string(),
|
|
5245
|
+
profileId: z.string()
|
|
5246
|
+
});
|
|
5247
|
+
var SkillFrameworkIdInputValidator = z.object({ frameworkId: z.string() });
|
|
5248
|
+
var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
|
|
5249
|
+
var SyncFrameworkInputValidator = z.object({ id: z.string() });
|
|
5250
|
+
var AddTagInputValidator = z.object({
|
|
5251
|
+
slug: z.string().min(1),
|
|
5252
|
+
name: z.string().min(1)
|
|
5253
|
+
});
|
|
5254
|
+
var CreateSkillInputValidator = z.object({
|
|
5255
|
+
frameworkId: z.string(),
|
|
5256
|
+
skill: SkillTreeNodeInputValidator,
|
|
5257
|
+
parentId: z.string().nullable().optional()
|
|
5258
|
+
});
|
|
5259
|
+
var UpdateSkillInputValidator = z.object({
|
|
5260
|
+
frameworkId: z.string(),
|
|
5261
|
+
id: z.string(),
|
|
5262
|
+
statement: z.string().optional(),
|
|
5263
|
+
description: z.string().optional(),
|
|
5264
|
+
code: z.string().optional(),
|
|
5265
|
+
icon: z.string().optional(),
|
|
5266
|
+
type: z.string().optional(),
|
|
5267
|
+
status: SkillStatusEnum.optional()
|
|
5268
|
+
}).refine(
|
|
5269
|
+
(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,
|
|
5270
|
+
{
|
|
5271
|
+
message: "At least one field must be provided to update a skill",
|
|
5272
|
+
path: ["statement"]
|
|
5273
|
+
}
|
|
5274
|
+
);
|
|
5275
|
+
var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
|
|
5276
|
+
var DeleteSkillInputValidator = z.object({
|
|
5277
|
+
frameworkId: z.string(),
|
|
5278
|
+
id: z.string(),
|
|
5279
|
+
strategy: SkillDeletionStrategyValidator.optional().default("reparent")
|
|
5280
|
+
});
|
|
5281
|
+
var CreateSkillsBatchInputValidator = z.object({
|
|
5282
|
+
frameworkId: z.string(),
|
|
5283
|
+
skills: z.array(SkillTreeNodeInputValidator).min(1),
|
|
5284
|
+
parentId: z.string().nullable().optional()
|
|
5285
|
+
});
|
|
5286
|
+
var ReplaceSkillFrameworkSkillsInputValidator = z.object({
|
|
5287
|
+
frameworkId: z.string(),
|
|
5288
|
+
skills: z.array(SkillTreeNodeInputValidator).min(0)
|
|
5289
|
+
});
|
|
5290
|
+
var ReplaceSkillFrameworkSkillsResultValidator = z.object({
|
|
5291
|
+
created: z.number().int().min(0),
|
|
5292
|
+
updated: z.number().int().min(0),
|
|
5293
|
+
deleted: z.number().int().min(0),
|
|
5294
|
+
unchanged: z.number().int().min(0),
|
|
5295
|
+
total: z.number().int().min(0)
|
|
5296
|
+
});
|
|
5297
|
+
var CountSkillsInputValidator = z.object({
|
|
5298
|
+
frameworkId: z.string(),
|
|
5299
|
+
skillId: z.string().optional(),
|
|
5300
|
+
recursive: z.boolean().optional().default(false),
|
|
5301
|
+
onlyCountCompetencies: z.boolean().optional().default(false)
|
|
5302
|
+
});
|
|
5303
|
+
var CountSkillsResultValidator = z.object({
|
|
5304
|
+
count: z.number().int().min(0)
|
|
5305
|
+
});
|
|
5306
|
+
var GetFullSkillTreeInputValidator = z.object({
|
|
5307
|
+
frameworkId: z.string()
|
|
5308
|
+
});
|
|
5309
|
+
var GetFullSkillTreeResultValidator = z.object({
|
|
5310
|
+
skills: z.array(SkillTreeNodeValidator)
|
|
5311
|
+
});
|
|
5312
|
+
var GetSkillPathInputValidator = z.object({
|
|
5313
|
+
frameworkId: z.string(),
|
|
5314
|
+
skillId: z.string()
|
|
5315
|
+
});
|
|
5316
|
+
var GetSkillPathResultValidator = z.object({
|
|
5317
|
+
path: z.array(SkillValidator)
|
|
5318
|
+
});
|
|
5319
|
+
var FrameworkWithSkillsValidator = z.object({
|
|
5320
|
+
framework: SkillFrameworkValidator,
|
|
5321
|
+
skills: PaginatedSkillTreeValidator
|
|
5322
|
+
});
|
|
5074
5323
|
|
|
5075
5324
|
// ../../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
5076
5325
|
function _typeof(o) {
|