@learncard/sss-key-manager 0.1.18 → 0.1.20
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 +47 -3
- package/dist/sss-key-manager.cjs.development.js.map +2 -2
- package/dist/sss-key-manager.cjs.production.min.js +20 -20
- package/dist/sss-key-manager.cjs.production.min.js.map +3 -3
- package/dist/sss-key-manager.esm.js +47 -3
- package/dist/sss-key-manager.esm.js.map +2 -2
- package/package.json +5 -4
- package/src/sss-strategy.test.ts +404 -246
|
@@ -197,6 +197,12 @@ var require_types_cjs_development = __commonJS({
|
|
|
197
197
|
LCNBoostClaimLinkSigningAuthorityValidator: /* @__PURE__ */ __name(() => LCNBoostClaimLinkSigningAuthorityValidator, "LCNBoostClaimLinkSigningAuthorityValidator"),
|
|
198
198
|
LCNBoostStatus: /* @__PURE__ */ __name(() => LCNBoostStatus, "LCNBoostStatus"),
|
|
199
199
|
LCNConnectionProfileValidator: /* @__PURE__ */ __name(() => LCNConnectionProfileValidator, "LCNConnectionProfileValidator"),
|
|
200
|
+
LCNConnectionPromptActionResultValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptActionResultValidator, "LCNConnectionPromptActionResultValidator"),
|
|
201
|
+
LCNConnectionPromptActionStatusValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptActionStatusValidator, "LCNConnectionPromptActionStatusValidator"),
|
|
202
|
+
LCNConnectionPromptMetadataValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptMetadataValidator, "LCNConnectionPromptMetadataValidator"),
|
|
203
|
+
LCNConnectionPromptStatusValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptStatusValidator, "LCNConnectionPromptStatusValidator"),
|
|
204
|
+
LCNConnectionPromptSurfaceValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptSurfaceValidator, "LCNConnectionPromptSurfaceValidator"),
|
|
205
|
+
LCNConnectionPromptValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptValidator, "LCNConnectionPromptValidator"),
|
|
200
206
|
LCNDomainOrOriginValidator: /* @__PURE__ */ __name(() => LCNDomainOrOriginValidator, "LCNDomainOrOriginValidator"),
|
|
201
207
|
LCNInboxContactMethodValidator: /* @__PURE__ */ __name(() => LCNInboxContactMethodValidator, "LCNInboxContactMethodValidator"),
|
|
202
208
|
LCNInboxStatusEnumValidator: /* @__PURE__ */ __name(() => LCNInboxStatusEnumValidator, "LCNInboxStatusEnumValidator"),
|
|
@@ -208,6 +214,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
208
214
|
LCNNotificationDataValidator: /* @__PURE__ */ __name(() => LCNNotificationDataValidator, "LCNNotificationDataValidator"),
|
|
209
215
|
LCNNotificationInboxValidator: /* @__PURE__ */ __name(() => LCNNotificationInboxValidator, "LCNNotificationInboxValidator"),
|
|
210
216
|
LCNNotificationMessageValidator: /* @__PURE__ */ __name(() => LCNNotificationMessageValidator, "LCNNotificationMessageValidator"),
|
|
217
|
+
LCNNotificationMetadataValidator: /* @__PURE__ */ __name(() => LCNNotificationMetadataValidator, "LCNNotificationMetadataValidator"),
|
|
211
218
|
LCNNotificationTypeEnumValidator: /* @__PURE__ */ __name(() => LCNNotificationTypeEnumValidator, "LCNNotificationTypeEnumValidator"),
|
|
212
219
|
LCNNotificationValidator: /* @__PURE__ */ __name(() => LCNNotificationValidator, "LCNNotificationValidator"),
|
|
213
220
|
LCNProfileConnectionStatusEnum: /* @__PURE__ */ __name(() => LCNProfileConnectionStatusEnum, "LCNProfileConnectionStatusEnum"),
|
|
@@ -15677,7 +15684,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15677
15684
|
}).catchall(external_exports.any())
|
|
15678
15685
|
);
|
|
15679
15686
|
var CredentialSubjectValidator = external_exports.object({ id: external_exports.string().optional() }).catchall(external_exports.any());
|
|
15680
|
-
var CredentialStatusValidator = external_exports.object({ type: external_exports.string(), id: external_exports.string() }).catchall(external_exports.any());
|
|
15687
|
+
var CredentialStatusValidator = external_exports.object({ type: external_exports.string(), id: external_exports.string().optional() }).catchall(external_exports.any());
|
|
15681
15688
|
var CredentialSchemaValidator = external_exports.object({ id: external_exports.string(), type: external_exports.string() }).catchall(external_exports.any());
|
|
15682
15689
|
var RefreshServiceValidator = external_exports.object({ id: external_exports.string().optional(), type: external_exports.string() }).catchall(external_exports.any());
|
|
15683
15690
|
var TermsOfUseValidator = external_exports.object({ type: external_exports.string(), id: external_exports.string().optional() }).catchall(external_exports.any());
|
|
@@ -16078,8 +16085,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16078
16085
|
statusListIndex: external_exports.string().optional()
|
|
16079
16086
|
});
|
|
16080
16087
|
var VerificationCheckValidator = external_exports.object({
|
|
16088
|
+
/**
|
|
16089
|
+
* Checks that completed successfully. This does not imply that warnings can be ignored.
|
|
16090
|
+
*/
|
|
16081
16091
|
checks: external_exports.string().array(),
|
|
16092
|
+
/**
|
|
16093
|
+
* Security-relevant conditions that did not prevent the requested cryptographic checks from
|
|
16094
|
+
* completing. In particular, a non-DID issuer warning means the signature is valid but the
|
|
16095
|
+
* named URL issuer's authorization of that signing key was not established.
|
|
16096
|
+
*/
|
|
16082
16097
|
warnings: external_exports.string().array(),
|
|
16098
|
+
/** Verification failures that prevented one or more requested checks from succeeding. */
|
|
16083
16099
|
errors: external_exports.string().array(),
|
|
16084
16100
|
/**
|
|
16085
16101
|
* Per-entry results for the `credentialStatus` check, populated
|
|
@@ -16223,6 +16239,31 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16223
16239
|
isServiceProfile: true,
|
|
16224
16240
|
display: true
|
|
16225
16241
|
});
|
|
16242
|
+
var LCNConnectionPromptStatusValidator = external_exports.enum(["PENDING", "SKIPPED", "CONNECTED"]);
|
|
16243
|
+
var LCNConnectionPromptSurfaceValidator = external_exports.enum(["POST_CLAIM", "NOTIFICATION"]);
|
|
16244
|
+
var LCNConnectionPromptActionStatusValidator = external_exports.enum([
|
|
16245
|
+
"PENDING",
|
|
16246
|
+
"SKIPPED",
|
|
16247
|
+
"CONNECTED",
|
|
16248
|
+
"STALE"
|
|
16249
|
+
]);
|
|
16250
|
+
var LCNConnectionPromptValidator = external_exports.object({
|
|
16251
|
+
promptId: external_exports.string().uuid(),
|
|
16252
|
+
status: LCNConnectionPromptStatusValidator,
|
|
16253
|
+
surface: LCNConnectionPromptSurfaceValidator,
|
|
16254
|
+
triggerId: external_exports.string(),
|
|
16255
|
+
triggeredAt: external_exports.iso.datetime(),
|
|
16256
|
+
updatedAt: external_exports.iso.datetime(),
|
|
16257
|
+
counterpart: LCNPublicProfileValidator
|
|
16258
|
+
});
|
|
16259
|
+
var LCNConnectionPromptActionResultValidator = external_exports.object({
|
|
16260
|
+
promptId: external_exports.string().uuid(),
|
|
16261
|
+
status: LCNConnectionPromptActionStatusValidator
|
|
16262
|
+
});
|
|
16263
|
+
var LCNConnectionPromptMetadataValidator = external_exports.object({
|
|
16264
|
+
promptId: external_exports.string().uuid(),
|
|
16265
|
+
counterpartProfileId: external_exports.string()
|
|
16266
|
+
});
|
|
16226
16267
|
var LCNAuthedProfileValidator = LCNPublicProfileValidator.extend({
|
|
16227
16268
|
bio: LCNProfileValidator.shape.bio,
|
|
16228
16269
|
websiteLink: LCNProfileValidator.shape.websiteLink,
|
|
@@ -16787,12 +16828,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16787
16828
|
}),
|
|
16788
16829
|
timestamp: external_exports.iso.datetime().optional()
|
|
16789
16830
|
});
|
|
16831
|
+
var LCNNotificationMetadataValidator = external_exports.object({
|
|
16832
|
+
connectionPrompt: LCNConnectionPromptMetadataValidator.optional()
|
|
16833
|
+
}).catchall(external_exports.unknown());
|
|
16790
16834
|
var LCNNotificationDataValidator = external_exports.object({
|
|
16791
16835
|
vcUris: external_exports.array(external_exports.string()).optional(),
|
|
16792
16836
|
vpUris: external_exports.array(external_exports.string()).optional(),
|
|
16793
16837
|
transaction: ConsentFlowTransactionValidator.optional(),
|
|
16794
16838
|
inbox: LCNNotificationInboxValidator.optional(),
|
|
16795
|
-
metadata:
|
|
16839
|
+
metadata: LCNNotificationMetadataValidator.optional()
|
|
16796
16840
|
}).loose();
|
|
16797
16841
|
var LCNNotificationValidator = external_exports.object({
|
|
16798
16842
|
type: LCNNotificationTypeEnumValidator,
|
|
@@ -17540,7 +17584,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17540
17584
|
id: external_exports.string().optional(),
|
|
17541
17585
|
type: external_exports.literal("BitstringStatusListEntry"),
|
|
17542
17586
|
statusPurpose: BitstringStatusPurposeValidator,
|
|
17543
|
-
statusListIndex: external_exports.string(),
|
|
17587
|
+
statusListIndex: external_exports.string().or(external_exports.number().int().nonnegative()),
|
|
17544
17588
|
statusListCredential: external_exports.string()
|
|
17545
17589
|
});
|
|
17546
17590
|
var AllocatedBitstringStatusListEntryValidator = BitstringStatusListEntryValidator.extend({
|