@the-inkwell/shared 0.2.78 → 0.2.79

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.
@@ -1,13 +1,13 @@
1
1
  import { z } from 'zod/v4';
2
2
  export declare const AuthOtpCreateSchema: z.ZodObject<{
3
3
  email: z.ZodString;
4
+ isAdmin: z.ZodOptional<z.ZodBoolean>;
4
5
  }, {
5
6
  out: {};
6
7
  in: {};
7
8
  }>;
8
9
  export declare const AuthSignInCreateInputSchema: z.ZodObject<{
9
10
  code: z.ZodString;
10
- isAdmin: z.ZodOptional<z.ZodBoolean>;
11
11
  }, {
12
12
  out: {};
13
13
  in: {};
@@ -4,14 +4,14 @@ exports.AuthSignInCreateInputSchema = exports.AuthOtpCreateSchema = void 0;
4
4
  const drizzle_zod_1 = require("drizzle-zod");
5
5
  const core_1 = require("../core");
6
6
  const v4_1 = require("zod/v4");
7
- exports.AuthOtpCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.person).pick({
8
- email: true
9
- });
10
- exports.AuthSignInCreateInputSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.otp)
7
+ exports.AuthOtpCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.person)
11
8
  .pick({
12
- code: true
9
+ email: true
13
10
  })
14
11
  .extend({
15
12
  isAdmin: v4_1.z.boolean().optional()
16
13
  });
14
+ exports.AuthSignInCreateInputSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.otp).pick({
15
+ code: true
16
+ });
17
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/auth/index.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,kCAAqC;AACrC,+BAA0B;AAEb,QAAA,mBAAmB,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;IACjE,KAAK,EAAE,IAAI;CACZ,CAAC,CAAA;AACW,QAAA,2BAA2B,GAAG,IAAA,gCAAkB,EAAC,UAAG,CAAC;KAC/D,IAAI,CAAC;IACJ,IAAI,EAAE,IAAI;CACX,CAAC;KACD,MAAM,CAAC;IACN,OAAO,EAAE,MAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAA","sourcesContent":["import { createInsertSchema } from 'drizzle-zod'\nimport { person, otp } from '../core'\nimport { z } from 'zod/v4'\n\nexport const AuthOtpCreateSchema = createInsertSchema(person).pick({\n email: true\n})\nexport const AuthSignInCreateInputSchema = createInsertSchema(otp)\n .pick({\n code: true\n })\n .extend({\n isAdmin: z.boolean().optional()\n })\n\nexport type AuthOtpCreateInput = z.infer<typeof AuthOtpCreateSchema>\n\nexport type AuthSignInCreateInput = z.infer<typeof AuthSignInCreateInputSchema>\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/auth/index.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,kCAAqC;AACrC,+BAA0B;AAEb,QAAA,mBAAmB,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC;KAC1D,IAAI,CAAC;IACJ,KAAK,EAAE,IAAI;CACZ,CAAC;KACD,MAAM,CAAC;IACN,OAAO,EAAE,MAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAA;AACS,QAAA,2BAA2B,GAAG,IAAA,gCAAkB,EAAC,UAAG,CAAC,CAAC,IAAI,CAAC;IACtE,IAAI,EAAE,IAAI;CACX,CAAC,CAAA","sourcesContent":["import { createInsertSchema } from 'drizzle-zod'\nimport { person, otp } from '../core'\nimport { z } from 'zod/v4'\n\nexport const AuthOtpCreateSchema = createInsertSchema(person)\n .pick({\n email: true\n })\n .extend({\n isAdmin: z.boolean().optional()\n })\nexport const AuthSignInCreateInputSchema = createInsertSchema(otp).pick({\n code: true\n})\n\nexport type AuthOtpCreateInput = z.infer<typeof AuthOtpCreateSchema>\n\nexport type AuthSignInCreateInput = z.infer<typeof AuthSignInCreateInputSchema>\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.2.78",
3
+ "version": "0.2.79",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",