@learncard/idx-plugin 1.0.33 → 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
package/dist/idx-plugin.esm.js
CHANGED
|
@@ -11726,6 +11726,28 @@ var LCNNotificationValidator = mod.object({
|
|
|
11726
11726
|
data: LCNNotificationDataValidator.optional(),
|
|
11727
11727
|
sent: mod.string().datetime().optional()
|
|
11728
11728
|
});
|
|
11729
|
+
var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX = "auth-grant:";
|
|
11730
|
+
var AuthGrantValidator = mod.object({
|
|
11731
|
+
id: mod.string(),
|
|
11732
|
+
name: mod.string(),
|
|
11733
|
+
description: mod.string().optional(),
|
|
11734
|
+
challenge: mod.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
|
|
11735
|
+
status: mod.enum(["revoked", "active"], {
|
|
11736
|
+
required_error: "Status is required",
|
|
11737
|
+
invalid_type_error: "Status must be either active or revoked"
|
|
11738
|
+
}),
|
|
11739
|
+
scope: mod.string(),
|
|
11740
|
+
createdAt: mod.string().datetime({ message: "createdAt must be a valid ISO 8601 datetime string" }),
|
|
11741
|
+
expiresAt: mod.string().datetime({ message: "expiresAt must be a valid ISO 8601 datetime string" }).nullish().optional()
|
|
11742
|
+
});
|
|
11743
|
+
var FlatAuthGrantValidator = mod.object({ id: mod.string() }).catchall(mod.any());
|
|
11744
|
+
var AuthGrantStatusValidator = mod.enum(["active", "revoked"]);
|
|
11745
|
+
var AuthGrantQueryValidator = mod.object({
|
|
11746
|
+
id: StringQuery,
|
|
11747
|
+
name: StringQuery,
|
|
11748
|
+
description: StringQuery,
|
|
11749
|
+
status: AuthGrantStatusValidator
|
|
11750
|
+
}).partial();
|
|
11729
11751
|
|
|
11730
11752
|
// ../ceramic/dist/ceramic-plugin.esm.js
|
|
11731
11753
|
var __create2 = Object.create;
|
|
@@ -66742,6 +66764,28 @@ var LCNNotificationValidator2 = mod2.object({
|
|
|
66742
66764
|
data: LCNNotificationDataValidator2.optional(),
|
|
66743
66765
|
sent: mod2.string().datetime().optional()
|
|
66744
66766
|
});
|
|
66767
|
+
var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX2 = "auth-grant:";
|
|
66768
|
+
var AuthGrantValidator2 = mod2.object({
|
|
66769
|
+
id: mod2.string(),
|
|
66770
|
+
name: mod2.string(),
|
|
66771
|
+
description: mod2.string().optional(),
|
|
66772
|
+
challenge: mod2.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX2).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
|
|
66773
|
+
status: mod2.enum(["revoked", "active"], {
|
|
66774
|
+
required_error: "Status is required",
|
|
66775
|
+
invalid_type_error: "Status must be either active or revoked"
|
|
66776
|
+
}),
|
|
66777
|
+
scope: mod2.string(),
|
|
66778
|
+
createdAt: mod2.string().datetime({ message: "createdAt must be a valid ISO 8601 datetime string" }),
|
|
66779
|
+
expiresAt: mod2.string().datetime({ message: "expiresAt must be a valid ISO 8601 datetime string" }).nullish().optional()
|
|
66780
|
+
});
|
|
66781
|
+
var FlatAuthGrantValidator2 = mod2.object({ id: mod2.string() }).catchall(mod2.any());
|
|
66782
|
+
var AuthGrantStatusValidator2 = mod2.enum(["active", "revoked"]);
|
|
66783
|
+
var AuthGrantQueryValidator2 = mod2.object({
|
|
66784
|
+
id: StringQuery2,
|
|
66785
|
+
name: StringQuery2,
|
|
66786
|
+
description: StringQuery2,
|
|
66787
|
+
status: AuthGrantStatusValidator2
|
|
66788
|
+
}).partial();
|
|
66745
66789
|
var streamIdToCeramicURI = /* @__PURE__ */ __name3((id) => `lc:ceramic:${id}`, "streamIdToCeramicURI");
|
|
66746
66790
|
var CeramicURIValidator = mod2.string().refine(
|
|
66747
66791
|
(string22) => string22.split(":").length === 3 && string22.split(":")[0] === "lc",
|