@learncard/helpers 1.2.4 → 1.2.7
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.cjs.development.js +33 -2
- package/dist/helpers.cjs.development.js.map +2 -2
- package/dist/helpers.cjs.production.min.js +5 -5
- package/dist/helpers.cjs.production.min.js.map +3 -3
- package/dist/helpers.d.ts +9 -0
- package/dist/helpers.esm.js +33 -2
- package/dist/helpers.esm.js.map +2 -2
- package/package.json +3 -2
|
@@ -243,6 +243,9 @@ var require_types_cjs_development = __commonJS({
|
|
|
243
243
|
SkillFrameworkStatusEnum: /* @__PURE__ */ __name(() => SkillFrameworkStatusEnum, "SkillFrameworkStatusEnum"),
|
|
244
244
|
SkillFrameworkValidator: /* @__PURE__ */ __name(() => SkillFrameworkValidator, "SkillFrameworkValidator"),
|
|
245
245
|
SkillQueryValidator: /* @__PURE__ */ __name(() => SkillQueryValidator, "SkillQueryValidator"),
|
|
246
|
+
SkillSemanticSearchInputValidator: /* @__PURE__ */ __name(() => SkillSemanticSearchInputValidator, "SkillSemanticSearchInputValidator"),
|
|
247
|
+
SkillSemanticSearchResultItemValidator: /* @__PURE__ */ __name(() => SkillSemanticSearchResultItemValidator, "SkillSemanticSearchResultItemValidator"),
|
|
248
|
+
SkillSemanticSearchResultValidator: /* @__PURE__ */ __name(() => SkillSemanticSearchResultValidator, "SkillSemanticSearchResultValidator"),
|
|
246
249
|
SkillStatusEnum: /* @__PURE__ */ __name(() => SkillStatusEnum, "SkillStatusEnum"),
|
|
247
250
|
SkillTreeNodeInputValidator: /* @__PURE__ */ __name(() => SkillTreeNodeInputValidator, "SkillTreeNodeInputValidator"),
|
|
248
251
|
SkillTreeNodeValidator: /* @__PURE__ */ __name(() => SkillTreeNodeValidator, "SkillTreeNodeValidator"),
|
|
@@ -14185,6 +14188,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14185
14188
|
});
|
|
14186
14189
|
var BoostPermissionsValidator = external_exports.object({
|
|
14187
14190
|
role: external_exports.string(),
|
|
14191
|
+
canView: external_exports.boolean().default(true),
|
|
14188
14192
|
canEdit: external_exports.boolean(),
|
|
14189
14193
|
canIssue: external_exports.boolean(),
|
|
14190
14194
|
canRevoke: external_exports.boolean(),
|
|
@@ -14199,6 +14203,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14199
14203
|
});
|
|
14200
14204
|
var BoostPermissionsQueryValidator = external_exports.object({
|
|
14201
14205
|
role: StringQuery,
|
|
14206
|
+
canView: external_exports.boolean(),
|
|
14202
14207
|
canEdit: external_exports.boolean(),
|
|
14203
14208
|
canIssue: external_exports.boolean(),
|
|
14204
14209
|
canRevoke: external_exports.boolean(),
|
|
@@ -14324,7 +14329,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14324
14329
|
var SendBoostTemplateValidator = BoostValidator.partial().omit({ uri: true, claimPermissions: true }).extend({
|
|
14325
14330
|
credential: VCValidator.or(UnsignedVCValidator),
|
|
14326
14331
|
claimPermissions: BoostPermissionsValidator.partial().optional(),
|
|
14327
|
-
skills: external_exports.array(
|
|
14332
|
+
skills: external_exports.array(
|
|
14333
|
+
external_exports.object({
|
|
14334
|
+
frameworkId: external_exports.string(),
|
|
14335
|
+
id: external_exports.string(),
|
|
14336
|
+
proficiencyLevel: external_exports.number().optional()
|
|
14337
|
+
})
|
|
14338
|
+
).min(1).optional()
|
|
14328
14339
|
});
|
|
14329
14340
|
var SendBrandingOptionsValidator = external_exports.object({
|
|
14330
14341
|
issuerName: external_exports.string().optional().describe("Name of the issuing organization"),
|
|
@@ -14566,6 +14577,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14566
14577
|
});
|
|
14567
14578
|
var LCNNotificationTypeEnumValidator = external_exports.enum([
|
|
14568
14579
|
"CONNECTION_REQUEST",
|
|
14580
|
+
"CONNECTION_REQUEST_EXPIRED_INVITE",
|
|
14569
14581
|
"CONNECTION_ACCEPTED",
|
|
14570
14582
|
"CREDENTIAL_RECEIVED",
|
|
14571
14583
|
"CREDENTIAL_ACCEPTED",
|
|
@@ -14824,7 +14836,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14824
14836
|
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).describe("The credential to issue."),
|
|
14825
14837
|
configuration: external_exports.object({
|
|
14826
14838
|
publishableKey: external_exports.string(),
|
|
14827
|
-
signingAuthorityName: external_exports.string().optional()
|
|
14839
|
+
signingAuthorityName: external_exports.string().optional(),
|
|
14840
|
+
listingId: external_exports.string().optional(),
|
|
14841
|
+
listingSlug: external_exports.string().optional()
|
|
14828
14842
|
}).optional()
|
|
14829
14843
|
});
|
|
14830
14844
|
var LCNDomainOrOriginValidator = external_exports.union([
|
|
@@ -14922,6 +14936,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14922
14936
|
}),
|
|
14923
14937
|
BaseSkillQueryValidator
|
|
14924
14938
|
]);
|
|
14939
|
+
var SkillSemanticSearchInputValidator = external_exports.object({
|
|
14940
|
+
text: external_exports.string().min(1),
|
|
14941
|
+
frameworkId: external_exports.string().optional(),
|
|
14942
|
+
limit: external_exports.number().int().min(1).max(200).default(50)
|
|
14943
|
+
});
|
|
14944
|
+
var SkillSemanticSearchResultItemValidator = SkillValidator.extend({
|
|
14945
|
+
score: external_exports.number()
|
|
14946
|
+
});
|
|
14947
|
+
var SkillSemanticSearchResultValidator = external_exports.object({
|
|
14948
|
+
records: SkillSemanticSearchResultItemValidator.array()
|
|
14949
|
+
});
|
|
14925
14950
|
var SkillFrameworkStatusEnum = external_exports.enum(["active", "archived"]);
|
|
14926
14951
|
var SkillFrameworkValidator = external_exports.object({
|
|
14927
14952
|
id: external_exports.string(),
|
|
@@ -15242,6 +15267,7 @@ __export(index_exports, {
|
|
|
15242
15267
|
innerImmerOuterReact: () => innerImmerOuterReact,
|
|
15243
15268
|
innerReactOuterImmer: () => innerReactOuterImmer,
|
|
15244
15269
|
innerReactOuterReact: () => innerReactOuterReact,
|
|
15270
|
+
isAppDidWeb: () => isAppDidWeb,
|
|
15245
15271
|
isEncrypted: () => isEncrypted,
|
|
15246
15272
|
isHex: () => isHex,
|
|
15247
15273
|
isNotMaybe: () => isNotMaybe,
|
|
@@ -16109,3 +16135,8 @@ var unwrapBoostCredential = /* @__PURE__ */ __name((vc) => {
|
|
|
16109
16135
|
return vc;
|
|
16110
16136
|
}
|
|
16111
16137
|
}, "unwrapBoostCredential");
|
|
16138
|
+
var isAppDidWeb = /* @__PURE__ */ __name((did) => {
|
|
16139
|
+
if (!did) return false;
|
|
16140
|
+
const LCN_APP_DID_WEB_REGEX = /^did:web:.*:app:([^:]+)$/;
|
|
16141
|
+
return LCN_APP_DID_WEB_REGEX.test(did);
|
|
16142
|
+
}, "isAppDidWeb");
|