@learncard/learn-card-plugin 1.1.36 → 1.1.37
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/learn-card-plugin.cjs.development.js +22 -0
- package/dist/learn-card-plugin.cjs.development.js.map +2 -2
- package/dist/learn-card-plugin.cjs.production.min.js +1 -1
- package/dist/learn-card-plugin.cjs.production.min.js.map +3 -3
- package/dist/learn-card-plugin.esm.js +22 -0
- package/dist/learn-card-plugin.esm.js.map +2 -2
- package/package.json +4 -4
|
@@ -4167,6 +4167,28 @@ var LCNNotificationValidator = mod.object({
|
|
|
4167
4167
|
data: LCNNotificationDataValidator.optional(),
|
|
4168
4168
|
sent: mod.string().datetime().optional()
|
|
4169
4169
|
});
|
|
4170
|
+
var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX = "auth-grant:";
|
|
4171
|
+
var AuthGrantValidator = mod.object({
|
|
4172
|
+
id: mod.string(),
|
|
4173
|
+
name: mod.string(),
|
|
4174
|
+
description: mod.string().optional(),
|
|
4175
|
+
challenge: mod.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
|
|
4176
|
+
status: mod.enum(["revoked", "active"], {
|
|
4177
|
+
required_error: "Status is required",
|
|
4178
|
+
invalid_type_error: "Status must be either active or revoked"
|
|
4179
|
+
}),
|
|
4180
|
+
scope: mod.string(),
|
|
4181
|
+
createdAt: mod.string().datetime({ message: "createdAt must be a valid ISO 8601 datetime string" }),
|
|
4182
|
+
expiresAt: mod.string().datetime({ message: "expiresAt must be a valid ISO 8601 datetime string" }).nullish().optional()
|
|
4183
|
+
});
|
|
4184
|
+
var FlatAuthGrantValidator = mod.object({ id: mod.string() }).catchall(mod.any());
|
|
4185
|
+
var AuthGrantStatusValidator = mod.enum(["active", "revoked"]);
|
|
4186
|
+
var AuthGrantQueryValidator = mod.object({
|
|
4187
|
+
id: StringQuery,
|
|
4188
|
+
name: StringQuery,
|
|
4189
|
+
description: StringQuery,
|
|
4190
|
+
status: AuthGrantStatusValidator
|
|
4191
|
+
}).partial();
|
|
4170
4192
|
|
|
4171
4193
|
// ../../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
4172
4194
|
function _typeof(o) {
|