@learncard/idx-plugin 1.0.32 → 1.0.34
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/idx-plugin.cjs.development.js +44 -0
- package/dist/idx-plugin.cjs.development.js.map +3 -3
- package/dist/idx-plugin.cjs.production.min.js +262 -262
- package/dist/idx-plugin.cjs.production.min.js.map +3 -3
- package/dist/idx-plugin.esm.js +44 -0
- package/dist/idx-plugin.esm.js.map +3 -3
- package/package.json +4 -4
|
@@ -11732,6 +11732,28 @@ var LCNNotificationValidator = mod.object({
|
|
|
11732
11732
|
data: LCNNotificationDataValidator.optional(),
|
|
11733
11733
|
sent: mod.string().datetime().optional()
|
|
11734
11734
|
});
|
|
11735
|
+
var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX = "auth-grant:";
|
|
11736
|
+
var AuthGrantValidator = mod.object({
|
|
11737
|
+
id: mod.string(),
|
|
11738
|
+
name: mod.string(),
|
|
11739
|
+
description: mod.string().optional(),
|
|
11740
|
+
challenge: mod.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
|
|
11741
|
+
status: mod.enum(["revoked", "active"], {
|
|
11742
|
+
required_error: "Status is required",
|
|
11743
|
+
invalid_type_error: "Status must be either active or revoked"
|
|
11744
|
+
}),
|
|
11745
|
+
scope: mod.string(),
|
|
11746
|
+
createdAt: mod.string().datetime({ message: "createdAt must be a valid ISO 8601 datetime string" }),
|
|
11747
|
+
expiresAt: mod.string().datetime({ message: "expiresAt must be a valid ISO 8601 datetime string" }).nullish().optional()
|
|
11748
|
+
});
|
|
11749
|
+
var FlatAuthGrantValidator = mod.object({ id: mod.string() }).catchall(mod.any());
|
|
11750
|
+
var AuthGrantStatusValidator = mod.enum(["active", "revoked"]);
|
|
11751
|
+
var AuthGrantQueryValidator = mod.object({
|
|
11752
|
+
id: StringQuery,
|
|
11753
|
+
name: StringQuery,
|
|
11754
|
+
description: StringQuery,
|
|
11755
|
+
status: AuthGrantStatusValidator
|
|
11756
|
+
}).partial();
|
|
11735
11757
|
|
|
11736
11758
|
// ../ceramic/dist/ceramic-plugin.esm.js
|
|
11737
11759
|
var __create2 = Object.create;
|
|
@@ -66748,6 +66770,28 @@ var LCNNotificationValidator2 = mod2.object({
|
|
|
66748
66770
|
data: LCNNotificationDataValidator2.optional(),
|
|
66749
66771
|
sent: mod2.string().datetime().optional()
|
|
66750
66772
|
});
|
|
66773
|
+
var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX2 = "auth-grant:";
|
|
66774
|
+
var AuthGrantValidator2 = mod2.object({
|
|
66775
|
+
id: mod2.string(),
|
|
66776
|
+
name: mod2.string(),
|
|
66777
|
+
description: mod2.string().optional(),
|
|
66778
|
+
challenge: mod2.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX2).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
|
|
66779
|
+
status: mod2.enum(["revoked", "active"], {
|
|
66780
|
+
required_error: "Status is required",
|
|
66781
|
+
invalid_type_error: "Status must be either active or revoked"
|
|
66782
|
+
}),
|
|
66783
|
+
scope: mod2.string(),
|
|
66784
|
+
createdAt: mod2.string().datetime({ message: "createdAt must be a valid ISO 8601 datetime string" }),
|
|
66785
|
+
expiresAt: mod2.string().datetime({ message: "expiresAt must be a valid ISO 8601 datetime string" }).nullish().optional()
|
|
66786
|
+
});
|
|
66787
|
+
var FlatAuthGrantValidator2 = mod2.object({ id: mod2.string() }).catchall(mod2.any());
|
|
66788
|
+
var AuthGrantStatusValidator2 = mod2.enum(["active", "revoked"]);
|
|
66789
|
+
var AuthGrantQueryValidator2 = mod2.object({
|
|
66790
|
+
id: StringQuery2,
|
|
66791
|
+
name: StringQuery2,
|
|
66792
|
+
description: StringQuery2,
|
|
66793
|
+
status: AuthGrantStatusValidator2
|
|
66794
|
+
}).partial();
|
|
66751
66795
|
var streamIdToCeramicURI = /* @__PURE__ */ __name3((id) => `lc:ceramic:${id}`, "streamIdToCeramicURI");
|
|
66752
66796
|
var CeramicURIValidator = mod2.string().refine(
|
|
66753
66797
|
(string22) => string22.split(":").length === 3 && string22.split(":")[0] === "lc",
|