@learncard/helpers 1.2.6 → 1.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/helpers.esm.js
CHANGED
|
@@ -14186,6 +14186,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14186
14186
|
});
|
|
14187
14187
|
var BoostPermissionsValidator = external_exports.object({
|
|
14188
14188
|
role: external_exports.string(),
|
|
14189
|
+
canView: external_exports.boolean().default(true),
|
|
14189
14190
|
canEdit: external_exports.boolean(),
|
|
14190
14191
|
canIssue: external_exports.boolean(),
|
|
14191
14192
|
canRevoke: external_exports.boolean(),
|
|
@@ -14200,6 +14201,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14200
14201
|
});
|
|
14201
14202
|
var BoostPermissionsQueryValidator = external_exports.object({
|
|
14202
14203
|
role: StringQuery,
|
|
14204
|
+
canView: external_exports.boolean(),
|
|
14203
14205
|
canEdit: external_exports.boolean(),
|
|
14204
14206
|
canIssue: external_exports.boolean(),
|
|
14205
14207
|
canRevoke: external_exports.boolean(),
|
|
@@ -14325,7 +14327,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14325
14327
|
var SendBoostTemplateValidator = BoostValidator.partial().omit({ uri: true, claimPermissions: true }).extend({
|
|
14326
14328
|
credential: VCValidator.or(UnsignedVCValidator),
|
|
14327
14329
|
claimPermissions: BoostPermissionsValidator.partial().optional(),
|
|
14328
|
-
skills: external_exports.array(
|
|
14330
|
+
skills: external_exports.array(
|
|
14331
|
+
external_exports.object({
|
|
14332
|
+
frameworkId: external_exports.string(),
|
|
14333
|
+
id: external_exports.string(),
|
|
14334
|
+
proficiencyLevel: external_exports.number().optional()
|
|
14335
|
+
})
|
|
14336
|
+
).min(1).optional()
|
|
14329
14337
|
});
|
|
14330
14338
|
var SendBrandingOptionsValidator = external_exports.object({
|
|
14331
14339
|
issuerName: external_exports.string().optional().describe("Name of the issuing organization"),
|
|
@@ -14944,6 +14952,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14944
14952
|
description: external_exports.string().optional(),
|
|
14945
14953
|
image: external_exports.string().optional(),
|
|
14946
14954
|
sourceURI: external_exports.string().url().optional(),
|
|
14955
|
+
isPublic: external_exports.boolean().default(false),
|
|
14947
14956
|
status: SkillFrameworkStatusEnum.default("active"),
|
|
14948
14957
|
createdAt: external_exports.string().optional(),
|
|
14949
14958
|
updatedAt: external_exports.string().optional()
|
|
@@ -14982,6 +14991,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14982
14991
|
description: external_exports.string().optional(),
|
|
14983
14992
|
image: external_exports.string().optional(),
|
|
14984
14993
|
sourceURI: external_exports.string().url().optional(),
|
|
14994
|
+
isPublic: external_exports.boolean().optional(),
|
|
14985
14995
|
status: SkillFrameworkStatusEnum.optional(),
|
|
14986
14996
|
skills: external_exports.array(SkillTreeNodeInputValidator).optional(),
|
|
14987
14997
|
boostUris: external_exports.array(external_exports.string()).optional()
|
|
@@ -14992,9 +15002,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14992
15002
|
description: external_exports.string().optional(),
|
|
14993
15003
|
image: external_exports.string().optional(),
|
|
14994
15004
|
sourceURI: external_exports.string().url().optional(),
|
|
15005
|
+
isPublic: external_exports.boolean().optional(),
|
|
14995
15006
|
status: SkillFrameworkStatusEnum.optional()
|
|
14996
15007
|
}).refine(
|
|
14997
|
-
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
15008
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.isPublic !== void 0 || data.status !== void 0,
|
|
14998
15009
|
{
|
|
14999
15010
|
message: "At least one field must be provided to update",
|
|
15000
15011
|
path: ["name"]
|
|
@@ -15174,7 +15185,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15174
15185
|
"claim",
|
|
15175
15186
|
"inbox",
|
|
15176
15187
|
"claimLink",
|
|
15177
|
-
"acceptCredential"
|
|
15188
|
+
"acceptCredential",
|
|
15189
|
+
"appEvent"
|
|
15178
15190
|
]);
|
|
15179
15191
|
var CredentialActivityValidator = external_exports.object({
|
|
15180
15192
|
id: external_exports.string(),
|