@plyaz/types 1.37.1 → 1.37.3

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.
@@ -269,6 +269,11 @@ var SignupFormSchema = zod.z.object({
269
269
  email: zod.z.email({ error: "errors.form.emailInvalid" }),
270
270
  password: zod.z.string({ error: "errors.form.missingField" }).min(DEFAULT_PASSWORD, "errors.form.passwordTooShort")
271
271
  });
272
+ var AuthFormSchema = zod.z.object({
273
+ email: zod.z.string().email({ message: "auth.errors.emailInvalid" }),
274
+ password: zod.z.string().min(DEFAULT_PASSWORD, { message: "auth.errors.passwordTooShort" }),
275
+ keepLoggedIn: zod.z.boolean().optional()
276
+ });
272
277
 
273
278
  // src/auth/types.ts
274
279
  var AUTH_ERROR_CODES = {
@@ -378,6 +383,7 @@ exports.AUTH_ERROR_DEFINITIONS = AUTH_ERROR_DEFINITIONS;
378
383
  exports.AUTH_EVENTS = AUTH_EVENTS;
379
384
  exports.AUTH_PROVIDER = AUTH_PROVIDER;
380
385
  exports.AUTH_PROVIDER_TYPE = AUTH_PROVIDER_TYPE;
386
+ exports.AuthFormSchema = AuthFormSchema;
381
387
  exports.ContactUsFormSchema = ContactUsFormSchema;
382
388
  exports.ERROR_CODE_DESCRIPTIONS = ERROR_CODE_DESCRIPTIONS;
383
389
  exports.ERROR_CODE_TO_HTTP_STATUS = ERROR_CODE_TO_HTTP_STATUS;