@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.
@@ -4143,6 +4143,28 @@ var LCNNotificationValidator = mod.object({
4143
4143
  data: LCNNotificationDataValidator.optional(),
4144
4144
  sent: mod.string().datetime().optional()
4145
4145
  });
4146
+ var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX = "auth-grant:";
4147
+ var AuthGrantValidator = mod.object({
4148
+ id: mod.string(),
4149
+ name: mod.string(),
4150
+ description: mod.string().optional(),
4151
+ challenge: mod.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
4152
+ status: mod.enum(["revoked", "active"], {
4153
+ required_error: "Status is required",
4154
+ invalid_type_error: "Status must be either active or revoked"
4155
+ }),
4156
+ scope: mod.string(),
4157
+ createdAt: mod.string().datetime({ message: "createdAt must be a valid ISO 8601 datetime string" }),
4158
+ expiresAt: mod.string().datetime({ message: "expiresAt must be a valid ISO 8601 datetime string" }).nullish().optional()
4159
+ });
4160
+ var FlatAuthGrantValidator = mod.object({ id: mod.string() }).catchall(mod.any());
4161
+ var AuthGrantStatusValidator = mod.enum(["active", "revoked"]);
4162
+ var AuthGrantQueryValidator = mod.object({
4163
+ id: StringQuery,
4164
+ name: StringQuery,
4165
+ description: StringQuery,
4166
+ status: AuthGrantStatusValidator
4167
+ }).partial();
4146
4168
 
4147
4169
  // ../../../node_modules/.pnpm/@babel+runtime@7.27.0/node_modules/@babel/runtime/helpers/esm/typeof.js
4148
4170
  function _typeof(o) {