@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
|
@@ -291,6 +291,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
291
291
|
SkillTreeNodeValidator: /* @__PURE__ */ __name(() => SkillTreeNodeValidator, "SkillTreeNodeValidator"),
|
|
292
292
|
SkillValidator: /* @__PURE__ */ __name(() => SkillValidator, "SkillValidator"),
|
|
293
293
|
StatusCheckEntryValidator: /* @__PURE__ */ __name(() => StatusCheckEntryValidator, "StatusCheckEntryValidator"),
|
|
294
|
+
StoredCredentialEnvelopeValidator: /* @__PURE__ */ __name(() => StoredCredentialEnvelopeValidator, "StoredCredentialEnvelopeValidator"),
|
|
294
295
|
StringQuery: /* @__PURE__ */ __name(() => StringQuery, "StringQuery"),
|
|
295
296
|
SummaryCredentialDataValidator: /* @__PURE__ */ __name(() => SummaryCredentialDataValidator, "SummaryCredentialDataValidator"),
|
|
296
297
|
SummaryCredentialKeywordValidator: /* @__PURE__ */ __name(() => SummaryCredentialKeywordValidator, "SummaryCredentialKeywordValidator"),
|
|
@@ -311,7 +312,8 @@ var require_types_cjs_development = __commonJS({
|
|
|
311
312
|
VerificationItemValidator: /* @__PURE__ */ __name(() => VerificationItemValidator, "VerificationItemValidator"),
|
|
312
313
|
VerificationMethodValidator: /* @__PURE__ */ __name(() => VerificationMethodValidator, "VerificationMethodValidator"),
|
|
313
314
|
VerificationStatusEnum: /* @__PURE__ */ __name(() => VerificationStatusEnum, "VerificationStatusEnum"),
|
|
314
|
-
VerificationStatusValidator: /* @__PURE__ */ __name(() => VerificationStatusValidator, "VerificationStatusValidator")
|
|
315
|
+
VerificationStatusValidator: /* @__PURE__ */ __name(() => VerificationStatusValidator, "VerificationStatusValidator"),
|
|
316
|
+
isStoredCredentialEnvelope: /* @__PURE__ */ __name(() => isStoredCredentialEnvelope, "isStoredCredentialEnvelope")
|
|
315
317
|
});
|
|
316
318
|
module2.exports = __toCommonJS2(index_exports2);
|
|
317
319
|
var external_exports = {};
|
|
@@ -14129,6 +14131,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14129
14131
|
"vc+sd-jwt",
|
|
14130
14132
|
"mso_mdoc"
|
|
14131
14133
|
]);
|
|
14134
|
+
var StoredCredentialEnvelopeValidator = external_exports.object({
|
|
14135
|
+
format: CredentialFormatValidator,
|
|
14136
|
+
data: external_exports.string()
|
|
14137
|
+
}).passthrough();
|
|
14138
|
+
var isStoredCredentialEnvelope = /* @__PURE__ */ __name2((value) => {
|
|
14139
|
+
if (!value || typeof value !== "object") return false;
|
|
14140
|
+
const candidate = value;
|
|
14141
|
+
if (typeof candidate.format !== "string") return false;
|
|
14142
|
+
if (!CredentialFormatValidator.safeParse(candidate.format).success) return false;
|
|
14143
|
+
return typeof candidate.data === "string" || candidate.data instanceof Uint8Array;
|
|
14144
|
+
}, "isStoredCredentialEnvelope");
|
|
14132
14145
|
var StatusCheckEntryValidator = external_exports.object({
|
|
14133
14146
|
/**
|
|
14134
14147
|
* The `credentialStatus.type` as it appeared on the credential.
|
|
@@ -14215,6 +14228,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14215
14228
|
if (!match) throw new Error("Invalid RegExp string format");
|
|
14216
14229
|
return { pattern: match[1], flags: match[2] };
|
|
14217
14230
|
}, "parseRegexString");
|
|
14231
|
+
var withStringOverride = /* @__PURE__ */ __name2((schema) => {
|
|
14232
|
+
const metaSchema = schema;
|
|
14233
|
+
if (typeof metaSchema.meta === "function") {
|
|
14234
|
+
return metaSchema.meta({ override: { type: "string" } });
|
|
14235
|
+
}
|
|
14236
|
+
return schema;
|
|
14237
|
+
}, "withStringOverride");
|
|
14218
14238
|
var RegExpStringValidator = external_exports.string().refine(
|
|
14219
14239
|
(str) => {
|
|
14220
14240
|
try {
|
|
@@ -14234,9 +14254,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14234
14254
|
} catch (error46) {
|
|
14235
14255
|
throw new Error(`Invalid RegExp: ${error46.message}`);
|
|
14236
14256
|
}
|
|
14237
|
-
})
|
|
14238
|
-
var RegExpValidator = external_exports.instanceof(RegExp).
|
|
14239
|
-
var BaseStringQuery = external_exports.string().or(external_exports.object({ $in: external_exports.string().array() })).or(external_exports.object({ $regex: RegExpValidator
|
|
14257
|
+
});
|
|
14258
|
+
var RegExpValidator = withStringOverride(external_exports.instanceof(RegExp).or(RegExpStringValidator));
|
|
14259
|
+
var BaseStringQuery = external_exports.string().or(external_exports.object({ $in: external_exports.string().array() })).or(external_exports.object({ $regex: RegExpValidator }));
|
|
14240
14260
|
var StringQuery = external_exports.union([
|
|
14241
14261
|
BaseStringQuery,
|
|
14242
14262
|
external_exports.object({
|
|
@@ -14460,7 +14480,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14460
14480
|
to: LCNVisibleProfileValidator,
|
|
14461
14481
|
from: external_exports.string(),
|
|
14462
14482
|
received: external_exports.string().optional(),
|
|
14463
|
-
uri: external_exports.string().optional()
|
|
14483
|
+
uri: external_exports.string().optional(),
|
|
14484
|
+
status: external_exports.enum(["active", "revoked", "suspended"]).optional()
|
|
14464
14485
|
});
|
|
14465
14486
|
var PaginatedBoostRecipientsValidator = PaginationResponseValidator.extend({
|
|
14466
14487
|
records: BoostRecipientValidator.array()
|
|
@@ -14470,7 +14491,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14470
14491
|
from: external_exports.string(),
|
|
14471
14492
|
received: external_exports.string().optional(),
|
|
14472
14493
|
boostUris: external_exports.array(external_exports.string()),
|
|
14473
|
-
credentialUris: external_exports.array(external_exports.string()).optional()
|
|
14494
|
+
credentialUris: external_exports.array(external_exports.string()).optional(),
|
|
14495
|
+
status: external_exports.enum(["active", "revoked", "suspended"]).optional()
|
|
14474
14496
|
});
|
|
14475
14497
|
var PaginatedBoostRecipientsWithChildrenValidator = PaginationResponseValidator.extend({
|
|
14476
14498
|
records: BoostRecipientWithChildrenValidator.array()
|
|
@@ -15556,7 +15578,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15556
15578
|
inboxCredentialId: external_exports.string().optional(),
|
|
15557
15579
|
integrationId: external_exports.string().optional(),
|
|
15558
15580
|
source: CredentialActivitySourceTypeValidator,
|
|
15559
|
-
metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
|
|
15581
|
+
metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
15582
|
+
status: external_exports.enum(["active", "revoked", "suspended"]).optional()
|
|
15560
15583
|
});
|
|
15561
15584
|
var CredentialActivityWithDetailsValidator = CredentialActivityValidator.extend({
|
|
15562
15585
|
boost: external_exports.object({
|