@learncard/types 5.17.4 → 5.17.6
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/README.md +5 -5
- package/dist/bitstring-status-list.d.ts +1 -1
- package/dist/bitstring-status-list.d.ts.map +1 -1
- package/dist/clr.d.ts +1 -1
- package/dist/clr.d.ts.map +1 -1
- package/dist/credential-format.d.ts +1 -1
- package/dist/credential-format.d.ts.map +1 -1
- package/dist/crypto.d.ts +1 -1
- package/dist/crypto.d.ts.map +1 -1
- package/dist/did.d.ts +1 -1
- package/dist/did.d.ts.map +1 -1
- package/dist/lcn.d.ts +9 -2
- package/dist/lcn.d.ts.map +1 -1
- package/dist/learncard.d.ts +1 -1
- package/dist/learncard.d.ts.map +1 -1
- package/dist/learncloud.d.ts +1 -1
- package/dist/learncloud.d.ts.map +1 -1
- package/dist/mongo.d.ts +1 -1
- package/dist/mongo.d.ts.map +1 -1
- package/dist/obv3.d.ts +1 -1
- package/dist/obv3.d.ts.map +1 -1
- package/dist/queries.d.ts +1 -1
- package/dist/queries.d.ts.map +1 -1
- package/dist/types.cjs.development.cjs +83 -81
- package/dist/types.cjs.development.cjs.map +3 -3
- package/dist/types.cjs.production.min.cjs +1 -1
- package/dist/types.cjs.production.min.cjs.map +3 -3
- package/dist/types.esm.js +15 -13
- package/dist/types.esm.js.map +2 -2
- package/dist/vc.d.ts +1 -1
- package/dist/vc.d.ts.map +1 -1
- package/package.json +64 -62
- package/src/auth.ts +460 -0
- package/src/bitstring-status-list.ts +44 -0
- package/src/clr.ts +68 -0
- package/src/credential-format.ts +154 -0
- package/src/crypto.ts +41 -0
- package/src/did.ts +47 -0
- package/src/helpers.ts +10 -0
- package/src/index.ts +17 -0
- package/src/lcn.ts +2182 -0
- package/src/learncard.ts +123 -0
- package/src/learncloud.ts +26 -0
- package/src/mongo.ts +14 -0
- package/src/obv3.ts +252 -0
- package/src/queries.ts +56 -0
- package/src/registries.ts +9 -0
- package/src/vc.ts +221 -0
- package/src/wasm.ts +1 -0
package/dist/types.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
3
|
|
|
4
4
|
// src/vc.ts
|
|
5
|
-
import { z } from "zod";
|
|
5
|
+
import { z } from "zod/v4";
|
|
6
6
|
var ContextValidator = z.array(z.string().or(z.record(z.string(), z.any())));
|
|
7
7
|
var AchievementCriteriaValidator = z.object({
|
|
8
8
|
type: z.string().optional(),
|
|
@@ -161,10 +161,10 @@ var VPValidator = UnsignedVPValidator.extend({
|
|
|
161
161
|
});
|
|
162
162
|
|
|
163
163
|
// src/did.ts
|
|
164
|
-
import { z as z3 } from "zod";
|
|
164
|
+
import { z as z3 } from "zod/v4";
|
|
165
165
|
|
|
166
166
|
// src/crypto.ts
|
|
167
|
-
import { z as z2 } from "zod";
|
|
167
|
+
import { z as z2 } from "zod/v4";
|
|
168
168
|
var JWKValidator = z2.object({
|
|
169
169
|
kty: z2.string(),
|
|
170
170
|
crv: z2.string(),
|
|
@@ -231,7 +231,7 @@ var DidDocumentValidator = z3.object({
|
|
|
231
231
|
}).catchall(z3.any());
|
|
232
232
|
|
|
233
233
|
// src/obv3.ts
|
|
234
|
-
import { z as z4 } from "zod";
|
|
234
|
+
import { z as z4 } from "zod/v4";
|
|
235
235
|
var AlignmentTargetTypeValidator = z4.enum([
|
|
236
236
|
"ceasn:Competency",
|
|
237
237
|
"ceterms:Credential",
|
|
@@ -419,7 +419,7 @@ var AchievementCredentialValidator = UnsignedAchievementCredentialValidator.exte
|
|
|
419
419
|
});
|
|
420
420
|
|
|
421
421
|
// src/clr.ts
|
|
422
|
-
import { z as z5 } from "zod";
|
|
422
|
+
import { z as z5 } from "zod/v4";
|
|
423
423
|
var AssociationTypeValidator = z5.enum([
|
|
424
424
|
"exactMatchOf",
|
|
425
425
|
"extends",
|
|
@@ -458,7 +458,7 @@ var ClrCredentialValidator = UnsignedClrCredentialValidator.extend({
|
|
|
458
458
|
});
|
|
459
459
|
|
|
460
460
|
// src/credential-format.ts
|
|
461
|
-
import { z as z6 } from "zod";
|
|
461
|
+
import { z as z6 } from "zod/v4";
|
|
462
462
|
var CredentialFormatValidator = z6.enum([
|
|
463
463
|
"w3c-vc-2.0",
|
|
464
464
|
"w3c-vc-1.1",
|
|
@@ -480,7 +480,7 @@ var isStoredCredentialEnvelope = /* @__PURE__ */ __name((value) => {
|
|
|
480
480
|
}, "isStoredCredentialEnvelope");
|
|
481
481
|
|
|
482
482
|
// src/learncard.ts
|
|
483
|
-
import { z as z7 } from "zod";
|
|
483
|
+
import { z as z7 } from "zod/v4";
|
|
484
484
|
var StatusCheckEntryValidator = z7.object({
|
|
485
485
|
/**
|
|
486
486
|
* The `credentialStatus.type` as it appeared on the credential.
|
|
@@ -545,10 +545,10 @@ var CredentialRecordValidator = z7.object({
|
|
|
545
545
|
}).catchall(z7.any());
|
|
546
546
|
|
|
547
547
|
// src/learncloud.ts
|
|
548
|
-
import { z as z9 } from "zod";
|
|
548
|
+
import { z as z9 } from "zod/v4";
|
|
549
549
|
|
|
550
550
|
// src/mongo.ts
|
|
551
|
-
import { z as z8 } from "zod";
|
|
551
|
+
import { z as z8 } from "zod/v4";
|
|
552
552
|
var PaginationOptionsValidator = z8.object({
|
|
553
553
|
limit: z8.number(),
|
|
554
554
|
cursor: z8.string().optional(),
|
|
@@ -572,10 +572,10 @@ var PaginatedEncryptedCredentialRecordsValidator = PaginationResponseValidator.e
|
|
|
572
572
|
});
|
|
573
573
|
|
|
574
574
|
// src/lcn.ts
|
|
575
|
-
import { z as z11 } from "zod";
|
|
575
|
+
import { z as z11 } from "zod/v4";
|
|
576
576
|
|
|
577
577
|
// src/queries.ts
|
|
578
|
-
import { z as z10 } from "zod";
|
|
578
|
+
import { z as z10 } from "zod/v4";
|
|
579
579
|
var parseRegexString = /* @__PURE__ */ __name((regexStr) => {
|
|
580
580
|
const match = regexStr.match(/^\/(.*)\/([gimsuy]*)$/);
|
|
581
581
|
if (!match) throw new Error("Invalid RegExp string format");
|
|
@@ -802,6 +802,7 @@ var BoostValidator = z11.object({
|
|
|
802
802
|
name: z11.string().optional(),
|
|
803
803
|
type: z11.string().optional(),
|
|
804
804
|
category: z11.string().optional(),
|
|
805
|
+
created: z11.string().optional(),
|
|
805
806
|
status: LCNBoostStatus.optional(),
|
|
806
807
|
autoConnectRecipients: z11.boolean().optional(),
|
|
807
808
|
meta: z11.record(z11.string(), z11.any()).optional(),
|
|
@@ -1817,7 +1818,8 @@ var RequestLearnerContextEventValidator = z11.object({
|
|
|
1817
1818
|
includePersonalData: z11.boolean().optional().default(false),
|
|
1818
1819
|
format: z11.enum(["prompt", "structured"]).optional().default("prompt"),
|
|
1819
1820
|
instructions: z11.string().optional(),
|
|
1820
|
-
detailLevel: z11.enum(["compact", "expanded"]).optional().default("compact")
|
|
1821
|
+
detailLevel: z11.enum(["compact", "expanded"]).optional().default("compact"),
|
|
1822
|
+
waitForSync: z11.boolean().optional().default(false)
|
|
1821
1823
|
});
|
|
1822
1824
|
var SummaryCredentialKeywordValidator = z11.object({
|
|
1823
1825
|
occupations: z11.array(z11.string()).nullable(),
|
|
@@ -1969,7 +1971,7 @@ var AuthSessionError = class extends Error {
|
|
|
1969
1971
|
};
|
|
1970
1972
|
|
|
1971
1973
|
// src/bitstring-status-list.ts
|
|
1972
|
-
import { z as z12 } from "zod";
|
|
1974
|
+
import { z as z12 } from "zod/v4";
|
|
1973
1975
|
var BITSTRING_STATUS_PURPOSES = ["revocation", "suspension"];
|
|
1974
1976
|
var DEFAULT_BITSTRING_STATUS_LIST_SIZE = 131072;
|
|
1975
1977
|
var BitstringStatusPurposeValidator = z12.enum(BITSTRING_STATUS_PURPOSES);
|