@learncard/network-brain-client 2.5.48 → 2.5.50
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/brain-client.cjs.development.cjs +15 -5
- package/dist/brain-client.cjs.development.cjs.map +2 -2
- package/dist/brain-client.cjs.production.min.cjs +11 -11
- package/dist/brain-client.cjs.production.min.cjs.map +2 -2
- package/dist/brain-client.esm.js +707 -524
- package/dist/brain-client.esm.js.map +4 -4
- package/package.json +6 -6
|
@@ -7333,7 +7333,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7333
7333
|
var Rn = i.object({ type: i.string().min(1).or(i.string().array().nonempty()), identifier: i.string(), identifierType: Cp });
|
|
7334
7334
|
var _e = i.string().or(i.object({ id: i.string().optional(), type: i.string().or(i.string().array().nonempty().optional()), name: i.string().optional(), url: i.string().optional(), phone: i.string().optional(), description: i.string().optional(), endorsement: i.any().array().optional(), image: $e.optional(), email: i.string().email().optional(), address: jp.optional(), otherIdentifier: Rn.array().optional(), official: i.string().optional(), parentOrg: i.any().optional(), familyName: i.string().optional(), givenName: i.string().optional(), additionalName: i.string().optional(), patronymicName: i.string().optional(), honorificPrefix: i.string().optional(), honorificSuffix: i.string().optional(), familyNamePrefix: i.string().optional(), dateOfBirth: i.string().optional() }).catchall(i.any()));
|
|
7335
7335
|
var Qt = i.object({ id: i.string().optional() }).catchall(i.any());
|
|
7336
|
-
var qt = i.object({ type: i.string(), id: i.string() }).catchall(i.any());
|
|
7336
|
+
var qt = i.object({ type: i.string(), id: i.string().optional() }).catchall(i.any());
|
|
7337
7337
|
var tu = i.object({ id: i.string(), type: i.string() }).catchall(i.any());
|
|
7338
7338
|
var ru = i.object({ id: i.string().optional(), type: i.string() }).catchall(i.any());
|
|
7339
7339
|
var nu = i.object({ type: i.string(), id: i.string().optional() }).catchall(i.any());
|
|
@@ -7625,7 +7625,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7625
7625
|
var xf = ["revocation", "suspension"];
|
|
7626
7626
|
var Nx = 131072;
|
|
7627
7627
|
var to = i.enum(xf);
|
|
7628
|
-
var bf = i.object({ id: i.string().optional(), type: i.literal("BitstringStatusListEntry"), statusPurpose: to, statusListIndex: i.string(), statusListCredential: i.string() });
|
|
7628
|
+
var bf = i.object({ id: i.string().optional(), type: i.literal("BitstringStatusListEntry"), statusPurpose: to, statusListIndex: i.string().or(i.number().int().nonnegative()), statusListCredential: i.string() });
|
|
7629
7629
|
var Ax = bf.extend({ id: i.string() });
|
|
7630
7630
|
var Ox = i.object({ id: i.string().optional(), type: i.literal("BitstringStatusList"), statusPurpose: to, encodedList: i.string() });
|
|
7631
7631
|
var Zx = i.object({ statusPurposes: i.array(to).optional(), listSize: i.number().int().positive().optional() }).default({});
|
|
@@ -23753,7 +23753,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23753
23753
|
}).catchall(external_exports.any())
|
|
23754
23754
|
);
|
|
23755
23755
|
var CredentialSubjectValidator = external_exports.object({ id: external_exports.string().optional() }).catchall(external_exports.any());
|
|
23756
|
-
var CredentialStatusValidator = external_exports.object({ type: external_exports.string(), id: external_exports.string() }).catchall(external_exports.any());
|
|
23756
|
+
var CredentialStatusValidator = external_exports.object({ type: external_exports.string(), id: external_exports.string().optional() }).catchall(external_exports.any());
|
|
23757
23757
|
var CredentialSchemaValidator = external_exports.object({ id: external_exports.string(), type: external_exports.string() }).catchall(external_exports.any());
|
|
23758
23758
|
var RefreshServiceValidator = external_exports.object({ id: external_exports.string().optional(), type: external_exports.string() }).catchall(external_exports.any());
|
|
23759
23759
|
var TermsOfUseValidator = external_exports.object({ type: external_exports.string(), id: external_exports.string().optional() }).catchall(external_exports.any());
|
|
@@ -24154,8 +24154,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24154
24154
|
statusListIndex: external_exports.string().optional()
|
|
24155
24155
|
});
|
|
24156
24156
|
var VerificationCheckValidator = external_exports.object({
|
|
24157
|
+
/**
|
|
24158
|
+
* Checks that completed successfully. This does not imply that warnings can be ignored.
|
|
24159
|
+
*/
|
|
24157
24160
|
checks: external_exports.string().array(),
|
|
24161
|
+
/**
|
|
24162
|
+
* Security-relevant conditions that did not prevent the requested cryptographic checks from
|
|
24163
|
+
* completing. In particular, a non-DID issuer warning means the signature is valid but the
|
|
24164
|
+
* named URL issuer's authorization of that signing key was not established.
|
|
24165
|
+
*/
|
|
24158
24166
|
warnings: external_exports.string().array(),
|
|
24167
|
+
/** Verification failures that prevented one or more requested checks from succeeding. */
|
|
24159
24168
|
errors: external_exports.string().array(),
|
|
24160
24169
|
/**
|
|
24161
24170
|
* Per-entry results for the `credentialStatus` check, populated
|
|
@@ -25619,7 +25628,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25619
25628
|
id: external_exports.string().optional(),
|
|
25620
25629
|
type: external_exports.literal("BitstringStatusListEntry"),
|
|
25621
25630
|
statusPurpose: BitstringStatusPurposeValidator,
|
|
25622
|
-
statusListIndex: external_exports.string(),
|
|
25631
|
+
statusListIndex: external_exports.string().or(external_exports.number().int().nonnegative()),
|
|
25623
25632
|
statusListCredential: external_exports.string()
|
|
25624
25633
|
});
|
|
25625
25634
|
var AllocatedBitstringStatusListEntryValidator = BitstringStatusListEntryValidator.extend({
|
|
@@ -26159,7 +26168,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26159
26168
|
var isBitstringStatusListEntry = /* @__PURE__ */ __name2((status) => {
|
|
26160
26169
|
if (!status || typeof status !== "object") return false;
|
|
26161
26170
|
const record = status;
|
|
26162
|
-
|
|
26171
|
+
const statusListIndex = record.statusListIndex;
|
|
26172
|
+
return record.type === "BitstringStatusListEntry" && (record.statusPurpose === "revocation" || record.statusPurpose === "suspension") && (typeof statusListIndex === "string" || typeof statusListIndex === "number" && Number.isInteger(statusListIndex) && statusListIndex >= 0) && typeof record.statusListCredential === "string";
|
|
26163
26173
|
}, "isBitstringStatusListEntry");
|
|
26164
26174
|
var getBitstringStatusListEntries = /* @__PURE__ */ __name2((credential) => {
|
|
26165
26175
|
if (!credential || typeof credential !== "object" || Array.isArray(credential)) return [];
|