@learncard/sss-key-manager 0.1.10 → 0.1.12

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.
@@ -31,9 +31,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
31
31
  ));
32
32
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
33
33
 
34
- // ../learn-card-types/dist/types.cjs.development.js
34
+ // ../learn-card-types/dist/types.cjs.development.cjs
35
35
  var require_types_cjs_development = __commonJS({
36
- "../learn-card-types/dist/types.cjs.development.js"(exports, module2) {
36
+ "../learn-card-types/dist/types.cjs.development.cjs"(exports, module2) {
37
37
  "use strict";
38
38
  var __defProp2 = Object.defineProperty;
39
39
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -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.
@@ -14460,7 +14473,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14460
14473
  to: LCNVisibleProfileValidator,
14461
14474
  from: external_exports.string(),
14462
14475
  received: external_exports.string().optional(),
14463
- uri: external_exports.string().optional()
14476
+ uri: external_exports.string().optional(),
14477
+ status: external_exports.enum(["active", "revoked", "suspended"]).optional()
14464
14478
  });
14465
14479
  var PaginatedBoostRecipientsValidator = PaginationResponseValidator.extend({
14466
14480
  records: BoostRecipientValidator.array()
@@ -14470,7 +14484,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14470
14484
  from: external_exports.string(),
14471
14485
  received: external_exports.string().optional(),
14472
14486
  boostUris: external_exports.array(external_exports.string()),
14473
- credentialUris: external_exports.array(external_exports.string()).optional()
14487
+ credentialUris: external_exports.array(external_exports.string()).optional(),
14488
+ status: external_exports.enum(["active", "revoked", "suspended"]).optional()
14474
14489
  });
14475
14490
  var PaginatedBoostRecipientsWithChildrenValidator = PaginationResponseValidator.extend({
14476
14491
  records: BoostRecipientWithChildrenValidator.array()
@@ -15556,7 +15571,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15556
15571
  inboxCredentialId: external_exports.string().optional(),
15557
15572
  integrationId: external_exports.string().optional(),
15558
15573
  source: CredentialActivitySourceTypeValidator,
15559
- metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
15574
+ metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
15575
+ status: external_exports.enum(["active", "revoked", "suspended"]).optional()
15560
15576
  });
15561
15577
  var CredentialActivityWithDetailsValidator = CredentialActivityValidator.extend({
15562
15578
  boost: external_exports.object({
@@ -15620,9 +15636,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15620
15636
  }
15621
15637
  });
15622
15638
 
15623
- // ../learn-card-types/dist/index.js
15639
+ // ../learn-card-types/dist/index.cjs
15624
15640
  var require_dist = __commonJS({
15625
- "../learn-card-types/dist/index.js"(exports, module2) {
15641
+ "../learn-card-types/dist/index.cjs"(exports, module2) {
15626
15642
  "use strict";
15627
15643
  if (false) {
15628
15644
  module2.exports = null;