@the-inkwell/shared 0.2.77 → 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,6 +1,7 @@
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: {};
@@ -3,8 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AuthSignInCreateInputSchema = exports.AuthOtpCreateSchema = void 0;
4
4
  const drizzle_zod_1 = require("drizzle-zod");
5
5
  const core_1 = require("../core");
6
- exports.AuthOtpCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.person).pick({
6
+ const v4_1 = require("zod/v4");
7
+ exports.AuthOtpCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.person)
8
+ .pick({
7
9
  email: true
10
+ })
11
+ .extend({
12
+ isAdmin: v4_1.z.boolean().optional()
8
13
  });
9
14
  exports.AuthSignInCreateInputSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.otp).pick({
10
15
  code: true
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/auth/index.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,kCAAqC;AAGxB,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,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).pick({\n email: true\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"]}
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.77",
3
+ "version": "0.2.79",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",