@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
|
@@ -191,6 +191,12 @@ var require_types_cjs_development = __commonJS({
|
|
|
191
191
|
LCNBoostClaimLinkSigningAuthorityValidator: /* @__PURE__ */ __name(() => LCNBoostClaimLinkSigningAuthorityValidator, "LCNBoostClaimLinkSigningAuthorityValidator"),
|
|
192
192
|
LCNBoostStatus: /* @__PURE__ */ __name(() => LCNBoostStatus, "LCNBoostStatus"),
|
|
193
193
|
LCNConnectionProfileValidator: /* @__PURE__ */ __name(() => LCNConnectionProfileValidator, "LCNConnectionProfileValidator"),
|
|
194
|
+
LCNConnectionPromptActionResultValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptActionResultValidator, "LCNConnectionPromptActionResultValidator"),
|
|
195
|
+
LCNConnectionPromptActionStatusValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptActionStatusValidator, "LCNConnectionPromptActionStatusValidator"),
|
|
196
|
+
LCNConnectionPromptMetadataValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptMetadataValidator, "LCNConnectionPromptMetadataValidator"),
|
|
197
|
+
LCNConnectionPromptStatusValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptStatusValidator, "LCNConnectionPromptStatusValidator"),
|
|
198
|
+
LCNConnectionPromptSurfaceValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptSurfaceValidator, "LCNConnectionPromptSurfaceValidator"),
|
|
199
|
+
LCNConnectionPromptValidator: /* @__PURE__ */ __name(() => LCNConnectionPromptValidator, "LCNConnectionPromptValidator"),
|
|
194
200
|
LCNDomainOrOriginValidator: /* @__PURE__ */ __name(() => LCNDomainOrOriginValidator, "LCNDomainOrOriginValidator"),
|
|
195
201
|
LCNInboxContactMethodValidator: /* @__PURE__ */ __name(() => LCNInboxContactMethodValidator, "LCNInboxContactMethodValidator"),
|
|
196
202
|
LCNInboxStatusEnumValidator: /* @__PURE__ */ __name(() => LCNInboxStatusEnumValidator, "LCNInboxStatusEnumValidator"),
|
|
@@ -202,6 +208,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
202
208
|
LCNNotificationDataValidator: /* @__PURE__ */ __name(() => LCNNotificationDataValidator, "LCNNotificationDataValidator"),
|
|
203
209
|
LCNNotificationInboxValidator: /* @__PURE__ */ __name(() => LCNNotificationInboxValidator, "LCNNotificationInboxValidator"),
|
|
204
210
|
LCNNotificationMessageValidator: /* @__PURE__ */ __name(() => LCNNotificationMessageValidator, "LCNNotificationMessageValidator"),
|
|
211
|
+
LCNNotificationMetadataValidator: /* @__PURE__ */ __name(() => LCNNotificationMetadataValidator, "LCNNotificationMetadataValidator"),
|
|
205
212
|
LCNNotificationTypeEnumValidator: /* @__PURE__ */ __name(() => LCNNotificationTypeEnumValidator, "LCNNotificationTypeEnumValidator"),
|
|
206
213
|
LCNNotificationValidator: /* @__PURE__ */ __name(() => LCNNotificationValidator, "LCNNotificationValidator"),
|
|
207
214
|
LCNProfileConnectionStatusEnum: /* @__PURE__ */ __name(() => LCNProfileConnectionStatusEnum, "LCNProfileConnectionStatusEnum"),
|
|
@@ -15671,7 +15678,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15671
15678
|
}).catchall(external_exports.any())
|
|
15672
15679
|
);
|
|
15673
15680
|
var CredentialSubjectValidator = external_exports.object({ id: external_exports.string().optional() }).catchall(external_exports.any());
|
|
15674
|
-
var CredentialStatusValidator = external_exports.object({ type: external_exports.string(), id: external_exports.string() }).catchall(external_exports.any());
|
|
15681
|
+
var CredentialStatusValidator = external_exports.object({ type: external_exports.string(), id: external_exports.string().optional() }).catchall(external_exports.any());
|
|
15675
15682
|
var CredentialSchemaValidator = external_exports.object({ id: external_exports.string(), type: external_exports.string() }).catchall(external_exports.any());
|
|
15676
15683
|
var RefreshServiceValidator = external_exports.object({ id: external_exports.string().optional(), type: external_exports.string() }).catchall(external_exports.any());
|
|
15677
15684
|
var TermsOfUseValidator = external_exports.object({ type: external_exports.string(), id: external_exports.string().optional() }).catchall(external_exports.any());
|
|
@@ -16072,8 +16079,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16072
16079
|
statusListIndex: external_exports.string().optional()
|
|
16073
16080
|
});
|
|
16074
16081
|
var VerificationCheckValidator = external_exports.object({
|
|
16082
|
+
/**
|
|
16083
|
+
* Checks that completed successfully. This does not imply that warnings can be ignored.
|
|
16084
|
+
*/
|
|
16075
16085
|
checks: external_exports.string().array(),
|
|
16086
|
+
/**
|
|
16087
|
+
* Security-relevant conditions that did not prevent the requested cryptographic checks from
|
|
16088
|
+
* completing. In particular, a non-DID issuer warning means the signature is valid but the
|
|
16089
|
+
* named URL issuer's authorization of that signing key was not established.
|
|
16090
|
+
*/
|
|
16076
16091
|
warnings: external_exports.string().array(),
|
|
16092
|
+
/** Verification failures that prevented one or more requested checks from succeeding. */
|
|
16077
16093
|
errors: external_exports.string().array(),
|
|
16078
16094
|
/**
|
|
16079
16095
|
* Per-entry results for the `credentialStatus` check, populated
|
|
@@ -16217,6 +16233,31 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16217
16233
|
isServiceProfile: true,
|
|
16218
16234
|
display: true
|
|
16219
16235
|
});
|
|
16236
|
+
var LCNConnectionPromptStatusValidator = external_exports.enum(["PENDING", "SKIPPED", "CONNECTED"]);
|
|
16237
|
+
var LCNConnectionPromptSurfaceValidator = external_exports.enum(["POST_CLAIM", "NOTIFICATION"]);
|
|
16238
|
+
var LCNConnectionPromptActionStatusValidator = external_exports.enum([
|
|
16239
|
+
"PENDING",
|
|
16240
|
+
"SKIPPED",
|
|
16241
|
+
"CONNECTED",
|
|
16242
|
+
"STALE"
|
|
16243
|
+
]);
|
|
16244
|
+
var LCNConnectionPromptValidator = external_exports.object({
|
|
16245
|
+
promptId: external_exports.string().uuid(),
|
|
16246
|
+
status: LCNConnectionPromptStatusValidator,
|
|
16247
|
+
surface: LCNConnectionPromptSurfaceValidator,
|
|
16248
|
+
triggerId: external_exports.string(),
|
|
16249
|
+
triggeredAt: external_exports.iso.datetime(),
|
|
16250
|
+
updatedAt: external_exports.iso.datetime(),
|
|
16251
|
+
counterpart: LCNPublicProfileValidator
|
|
16252
|
+
});
|
|
16253
|
+
var LCNConnectionPromptActionResultValidator = external_exports.object({
|
|
16254
|
+
promptId: external_exports.string().uuid(),
|
|
16255
|
+
status: LCNConnectionPromptActionStatusValidator
|
|
16256
|
+
});
|
|
16257
|
+
var LCNConnectionPromptMetadataValidator = external_exports.object({
|
|
16258
|
+
promptId: external_exports.string().uuid(),
|
|
16259
|
+
counterpartProfileId: external_exports.string()
|
|
16260
|
+
});
|
|
16220
16261
|
var LCNAuthedProfileValidator = LCNPublicProfileValidator.extend({
|
|
16221
16262
|
bio: LCNProfileValidator.shape.bio,
|
|
16222
16263
|
websiteLink: LCNProfileValidator.shape.websiteLink,
|
|
@@ -16781,12 +16822,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16781
16822
|
}),
|
|
16782
16823
|
timestamp: external_exports.iso.datetime().optional()
|
|
16783
16824
|
});
|
|
16825
|
+
var LCNNotificationMetadataValidator = external_exports.object({
|
|
16826
|
+
connectionPrompt: LCNConnectionPromptMetadataValidator.optional()
|
|
16827
|
+
}).catchall(external_exports.unknown());
|
|
16784
16828
|
var LCNNotificationDataValidator = external_exports.object({
|
|
16785
16829
|
vcUris: external_exports.array(external_exports.string()).optional(),
|
|
16786
16830
|
vpUris: external_exports.array(external_exports.string()).optional(),
|
|
16787
16831
|
transaction: ConsentFlowTransactionValidator.optional(),
|
|
16788
16832
|
inbox: LCNNotificationInboxValidator.optional(),
|
|
16789
|
-
metadata:
|
|
16833
|
+
metadata: LCNNotificationMetadataValidator.optional()
|
|
16790
16834
|
}).loose();
|
|
16791
16835
|
var LCNNotificationValidator = external_exports.object({
|
|
16792
16836
|
type: LCNNotificationTypeEnumValidator,
|
|
@@ -17534,7 +17578,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17534
17578
|
id: external_exports.string().optional(),
|
|
17535
17579
|
type: external_exports.literal("BitstringStatusListEntry"),
|
|
17536
17580
|
statusPurpose: BitstringStatusPurposeValidator,
|
|
17537
|
-
statusListIndex: external_exports.string(),
|
|
17581
|
+
statusListIndex: external_exports.string().or(external_exports.number().int().nonnegative()),
|
|
17538
17582
|
statusListCredential: external_exports.string()
|
|
17539
17583
|
});
|
|
17540
17584
|
var AllocatedBitstringStatusListEntryValidator = BitstringStatusListEntryValidator.extend({
|