@learncard/types 5.17.1 → 5.17.2
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/credential-format.d.ts +52 -12
- package/dist/credential-format.d.ts.map +1 -1
- package/dist/lcn.d.ts +35 -0
- package/dist/lcn.d.ts.map +1 -1
- package/dist/types.cjs.development.cjs +20 -4
- package/dist/types.cjs.development.cjs.map +2 -2
- package/dist/types.cjs.production.min.cjs +5 -5
- package/dist/types.cjs.production.min.cjs.map +3 -3
- package/dist/types.esm.js +20 -4
- package/dist/types.esm.js.map +3 -3
- package/package.json +1 -1
package/dist/types.esm.js
CHANGED
|
@@ -467,6 +467,17 @@ var CredentialFormatValidator = z6.enum([
|
|
|
467
467
|
"vc+sd-jwt",
|
|
468
468
|
"mso_mdoc"
|
|
469
469
|
]);
|
|
470
|
+
var StoredCredentialEnvelopeValidator = z6.object({
|
|
471
|
+
format: CredentialFormatValidator,
|
|
472
|
+
data: z6.string()
|
|
473
|
+
}).passthrough();
|
|
474
|
+
var isStoredCredentialEnvelope = /* @__PURE__ */ __name((value) => {
|
|
475
|
+
if (!value || typeof value !== "object") return false;
|
|
476
|
+
const candidate = value;
|
|
477
|
+
if (typeof candidate.format !== "string") return false;
|
|
478
|
+
if (!CredentialFormatValidator.safeParse(candidate.format).success) return false;
|
|
479
|
+
return typeof candidate.data === "string" || candidate.data instanceof Uint8Array;
|
|
480
|
+
}, "isStoredCredentialEnvelope");
|
|
470
481
|
|
|
471
482
|
// src/learncard.ts
|
|
472
483
|
import { z as z7 } from "zod";
|
|
@@ -817,7 +828,8 @@ var BoostRecipientValidator = z11.object({
|
|
|
817
828
|
to: LCNVisibleProfileValidator,
|
|
818
829
|
from: z11.string(),
|
|
819
830
|
received: z11.string().optional(),
|
|
820
|
-
uri: z11.string().optional()
|
|
831
|
+
uri: z11.string().optional(),
|
|
832
|
+
status: z11.enum(["active", "revoked", "suspended"]).optional()
|
|
821
833
|
});
|
|
822
834
|
var PaginatedBoostRecipientsValidator = PaginationResponseValidator.extend({
|
|
823
835
|
records: BoostRecipientValidator.array()
|
|
@@ -827,7 +839,8 @@ var BoostRecipientWithChildrenValidator = z11.object({
|
|
|
827
839
|
from: z11.string(),
|
|
828
840
|
received: z11.string().optional(),
|
|
829
841
|
boostUris: z11.array(z11.string()),
|
|
830
|
-
credentialUris: z11.array(z11.string()).optional()
|
|
842
|
+
credentialUris: z11.array(z11.string()).optional(),
|
|
843
|
+
status: z11.enum(["active", "revoked", "suspended"]).optional()
|
|
831
844
|
});
|
|
832
845
|
var PaginatedBoostRecipientsWithChildrenValidator = PaginationResponseValidator.extend({
|
|
833
846
|
records: BoostRecipientWithChildrenValidator.array()
|
|
@@ -1913,7 +1926,8 @@ var CredentialActivityValidator = z11.object({
|
|
|
1913
1926
|
inboxCredentialId: z11.string().optional(),
|
|
1914
1927
|
integrationId: z11.string().optional(),
|
|
1915
1928
|
source: CredentialActivitySourceTypeValidator,
|
|
1916
|
-
metadata: z11.record(z11.string(), z11.unknown()).optional()
|
|
1929
|
+
metadata: z11.record(z11.string(), z11.unknown()).optional(),
|
|
1930
|
+
status: z11.enum(["active", "revoked", "suspended"]).optional()
|
|
1917
1931
|
});
|
|
1918
1932
|
var CredentialActivityWithDetailsValidator = CredentialActivityValidator.extend({
|
|
1919
1933
|
boost: z11.object({
|
|
@@ -2213,6 +2227,7 @@ export {
|
|
|
2213
2227
|
SkillTreeNodeValidator,
|
|
2214
2228
|
SkillValidator,
|
|
2215
2229
|
StatusCheckEntryValidator,
|
|
2230
|
+
StoredCredentialEnvelopeValidator,
|
|
2216
2231
|
StringQuery,
|
|
2217
2232
|
SummaryCredentialDataValidator,
|
|
2218
2233
|
SummaryCredentialKeywordValidator,
|
|
@@ -2233,5 +2248,6 @@ export {
|
|
|
2233
2248
|
VerificationItemValidator,
|
|
2234
2249
|
VerificationMethodValidator,
|
|
2235
2250
|
VerificationStatusEnum,
|
|
2236
|
-
VerificationStatusValidator
|
|
2251
|
+
VerificationStatusValidator,
|
|
2252
|
+
isStoredCredentialEnvelope
|
|
2237
2253
|
};
|