@learncard/sss-key-manager 0.1.11 → 0.1.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/dist/sss-key-manager.cjs.development.js +30 -7
- package/dist/sss-key-manager.cjs.development.js.map +2 -2
- package/dist/sss-key-manager.cjs.production.min.js +5 -5
- package/dist/sss-key-manager.cjs.production.min.js.map +3 -3
- package/dist/sss-key-manager.esm.js +30 -7
- package/dist/sss-key-manager.esm.js.map +2 -2
- package/package.json +2 -2
|
@@ -285,6 +285,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
285
285
|
SkillTreeNodeValidator: /* @__PURE__ */ __name(() => SkillTreeNodeValidator, "SkillTreeNodeValidator"),
|
|
286
286
|
SkillValidator: /* @__PURE__ */ __name(() => SkillValidator, "SkillValidator"),
|
|
287
287
|
StatusCheckEntryValidator: /* @__PURE__ */ __name(() => StatusCheckEntryValidator, "StatusCheckEntryValidator"),
|
|
288
|
+
StoredCredentialEnvelopeValidator: /* @__PURE__ */ __name(() => StoredCredentialEnvelopeValidator, "StoredCredentialEnvelopeValidator"),
|
|
288
289
|
StringQuery: /* @__PURE__ */ __name(() => StringQuery, "StringQuery"),
|
|
289
290
|
SummaryCredentialDataValidator: /* @__PURE__ */ __name(() => SummaryCredentialDataValidator, "SummaryCredentialDataValidator"),
|
|
290
291
|
SummaryCredentialKeywordValidator: /* @__PURE__ */ __name(() => SummaryCredentialKeywordValidator, "SummaryCredentialKeywordValidator"),
|
|
@@ -305,7 +306,8 @@ var require_types_cjs_development = __commonJS({
|
|
|
305
306
|
VerificationItemValidator: /* @__PURE__ */ __name(() => VerificationItemValidator, "VerificationItemValidator"),
|
|
306
307
|
VerificationMethodValidator: /* @__PURE__ */ __name(() => VerificationMethodValidator, "VerificationMethodValidator"),
|
|
307
308
|
VerificationStatusEnum: /* @__PURE__ */ __name(() => VerificationStatusEnum, "VerificationStatusEnum"),
|
|
308
|
-
VerificationStatusValidator: /* @__PURE__ */ __name(() => VerificationStatusValidator, "VerificationStatusValidator")
|
|
309
|
+
VerificationStatusValidator: /* @__PURE__ */ __name(() => VerificationStatusValidator, "VerificationStatusValidator"),
|
|
310
|
+
isStoredCredentialEnvelope: /* @__PURE__ */ __name(() => isStoredCredentialEnvelope, "isStoredCredentialEnvelope")
|
|
309
311
|
});
|
|
310
312
|
module.exports = __toCommonJS(index_exports);
|
|
311
313
|
var external_exports = {};
|
|
@@ -14123,6 +14125,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14123
14125
|
"vc+sd-jwt",
|
|
14124
14126
|
"mso_mdoc"
|
|
14125
14127
|
]);
|
|
14128
|
+
var StoredCredentialEnvelopeValidator = external_exports.object({
|
|
14129
|
+
format: CredentialFormatValidator,
|
|
14130
|
+
data: external_exports.string()
|
|
14131
|
+
}).passthrough();
|
|
14132
|
+
var isStoredCredentialEnvelope = /* @__PURE__ */ __name2((value) => {
|
|
14133
|
+
if (!value || typeof value !== "object") return false;
|
|
14134
|
+
const candidate = value;
|
|
14135
|
+
if (typeof candidate.format !== "string") return false;
|
|
14136
|
+
if (!CredentialFormatValidator.safeParse(candidate.format).success) return false;
|
|
14137
|
+
return typeof candidate.data === "string" || candidate.data instanceof Uint8Array;
|
|
14138
|
+
}, "isStoredCredentialEnvelope");
|
|
14126
14139
|
var StatusCheckEntryValidator = external_exports.object({
|
|
14127
14140
|
/**
|
|
14128
14141
|
* The `credentialStatus.type` as it appeared on the credential.
|
|
@@ -14209,6 +14222,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14209
14222
|
if (!match) throw new Error("Invalid RegExp string format");
|
|
14210
14223
|
return { pattern: match[1], flags: match[2] };
|
|
14211
14224
|
}, "parseRegexString");
|
|
14225
|
+
var withStringOverride = /* @__PURE__ */ __name2((schema) => {
|
|
14226
|
+
const metaSchema = schema;
|
|
14227
|
+
if (typeof metaSchema.meta === "function") {
|
|
14228
|
+
return metaSchema.meta({ override: { type: "string" } });
|
|
14229
|
+
}
|
|
14230
|
+
return schema;
|
|
14231
|
+
}, "withStringOverride");
|
|
14212
14232
|
var RegExpStringValidator = external_exports.string().refine(
|
|
14213
14233
|
(str) => {
|
|
14214
14234
|
try {
|
|
@@ -14228,9 +14248,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14228
14248
|
} catch (error46) {
|
|
14229
14249
|
throw new Error(`Invalid RegExp: ${error46.message}`);
|
|
14230
14250
|
}
|
|
14231
|
-
})
|
|
14232
|
-
var RegExpValidator = external_exports.instanceof(RegExp).
|
|
14233
|
-
var BaseStringQuery = external_exports.string().or(external_exports.object({ $in: external_exports.string().array() })).or(external_exports.object({ $regex: RegExpValidator
|
|
14251
|
+
});
|
|
14252
|
+
var RegExpValidator = withStringOverride(external_exports.instanceof(RegExp).or(RegExpStringValidator));
|
|
14253
|
+
var BaseStringQuery = external_exports.string().or(external_exports.object({ $in: external_exports.string().array() })).or(external_exports.object({ $regex: RegExpValidator }));
|
|
14234
14254
|
var StringQuery = external_exports.union([
|
|
14235
14255
|
BaseStringQuery,
|
|
14236
14256
|
external_exports.object({
|
|
@@ -14454,7 +14474,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14454
14474
|
to: LCNVisibleProfileValidator,
|
|
14455
14475
|
from: external_exports.string(),
|
|
14456
14476
|
received: external_exports.string().optional(),
|
|
14457
|
-
uri: external_exports.string().optional()
|
|
14477
|
+
uri: external_exports.string().optional(),
|
|
14478
|
+
status: external_exports.enum(["active", "revoked", "suspended"]).optional()
|
|
14458
14479
|
});
|
|
14459
14480
|
var PaginatedBoostRecipientsValidator = PaginationResponseValidator.extend({
|
|
14460
14481
|
records: BoostRecipientValidator.array()
|
|
@@ -14464,7 +14485,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14464
14485
|
from: external_exports.string(),
|
|
14465
14486
|
received: external_exports.string().optional(),
|
|
14466
14487
|
boostUris: external_exports.array(external_exports.string()),
|
|
14467
|
-
credentialUris: external_exports.array(external_exports.string()).optional()
|
|
14488
|
+
credentialUris: external_exports.array(external_exports.string()).optional(),
|
|
14489
|
+
status: external_exports.enum(["active", "revoked", "suspended"]).optional()
|
|
14468
14490
|
});
|
|
14469
14491
|
var PaginatedBoostRecipientsWithChildrenValidator = PaginationResponseValidator.extend({
|
|
14470
14492
|
records: BoostRecipientWithChildrenValidator.array()
|
|
@@ -15550,7 +15572,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15550
15572
|
inboxCredentialId: external_exports.string().optional(),
|
|
15551
15573
|
integrationId: external_exports.string().optional(),
|
|
15552
15574
|
source: CredentialActivitySourceTypeValidator,
|
|
15553
|
-
metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
|
|
15575
|
+
metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
15576
|
+
status: external_exports.enum(["active", "revoked", "suspended"]).optional()
|
|
15554
15577
|
});
|
|
15555
15578
|
var CredentialActivityWithDetailsValidator = CredentialActivityValidator.extend({
|
|
15556
15579
|
boost: external_exports.object({
|