@factiii/auth 0.5.6 → 0.5.7

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,12 +1,12 @@
1
- import { AnyPgTable, PgColumn, PgDatabase, PgQueryResultHKT } from 'drizzle-orm/pg-core';
1
+ import { AnyPgTable, PgDatabase, PgQueryResultHKT } from 'drizzle-orm/pg-core';
2
2
  import { D as DatabaseAdapter } from './database-CqnmD1HM.mjs';
3
3
 
4
4
  /**
5
5
  * A Postgres Drizzle table with column properties accessible by name.
6
- * `AnyPgTable` is Drizzle's base Postgres table type; intersecting with
7
- * `Record<string, Column>` exposes the column descriptors for index access.
6
+ * Uses `Record<string, any>` intersection so that `PgTableWithColumns`
7
+ * (which lacks a string index signature) can be assigned without error.
8
8
  */
9
- type DrizzleTable = AnyPgTable & Record<string, PgColumn>;
9
+ type DrizzleTable = AnyPgTable & Record<string, any>;
10
10
  /**
11
11
  * Drizzle table references required by the adapter.
12
12
  * Consumers pass their Drizzle Postgres table objects so the adapter
package/dist/drizzle.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { AnyPgTable, PgColumn, PgDatabase, PgQueryResultHKT } from 'drizzle-orm/pg-core';
1
+ import { AnyPgTable, PgDatabase, PgQueryResultHKT } from 'drizzle-orm/pg-core';
2
2
  import { D as DatabaseAdapter } from './database-CqnmD1HM.js';
3
3
 
4
4
  /**
5
5
  * A Postgres Drizzle table with column properties accessible by name.
6
- * `AnyPgTable` is Drizzle's base Postgres table type; intersecting with
7
- * `Record<string, Column>` exposes the column descriptors for index access.
6
+ * Uses `Record<string, any>` intersection so that `PgTableWithColumns`
7
+ * (which lacks a string index signature) can be assigned without error.
8
8
  */
9
- type DrizzleTable = AnyPgTable & Record<string, PgColumn>;
9
+ type DrizzleTable = AnyPgTable & Record<string, any>;
10
10
  /**
11
11
  * Drizzle table references required by the adapter.
12
12
  * Consumers pass their Drizzle Postgres table objects so the adapter
package/dist/index.d.mts CHANGED
@@ -6,8 +6,8 @@ import * as zod from 'zod';
6
6
  import { CreateHTTPContextOptions } from '@trpc/server/adapters/standalone';
7
7
  import { D as DatabaseAdapter } from './database-CqnmD1HM.mjs';
8
8
  export { A as AuthOTP, a as AuthPasswordReset, b as AuthSession, c as AuthUser, C as CreateSessionData, d as CreateUserData, S as SessionWithDevice, e as SessionWithUser } from './database-CqnmD1HM.mjs';
9
- import { S as SchemaExtensions, A as AuthHooks } from './hooks-yHGJ7C6_.mjs';
10
- export { C as ChangePasswordInput, L as LoginInput, O as OAuthLoginInput, R as ResetPasswordInput, a as SignupInput, T as TwoFaVerifyInput, V as VerifyEmailInput, b as biometricVerifySchema, c as changePasswordSchema, e as endAllSessionsSchema, l as loginSchema, o as oAuthLoginSchema, r as requestPasswordResetSchema, d as resetPasswordSchema, s as signupSchema, t as twoFaResetSchema, f as twoFaVerifySchema, v as verifyEmailSchema } from './hooks-yHGJ7C6_.mjs';
9
+ import { S as SchemaExtensions, A as AuthHooks } from './hooks-BXNxNK4S.mjs';
10
+ export { C as ChangePasswordInput, L as LoginInput, O as OAuthLoginInput, R as ResetPasswordInput, a as SignupInput, T as TwoFaVerifyInput, V as VerifyEmailInput, b as biometricVerifySchema, c as changePasswordSchema, e as endAllSessionsSchema, l as loginSchema, o as oAuthLoginSchema, r as requestPasswordResetSchema, d as resetPasswordSchema, s as signupSchema, t as twoFaResetSchema, f as twoFaVerifySchema, v as verifyEmailSchema } from './hooks-BXNxNK4S.mjs';
11
11
 
12
12
  //# sourceMappingURL=TRPCError.d.ts.map
13
13
  //#endregion
@@ -675,12 +675,12 @@ declare function createAuthRouter<TExtensions extends SchemaExtensions = {}>(con
675
675
  email: zod.ZodString;
676
676
  password: zod.ZodEffects<zod.ZodString, string, string>;
677
677
  }, "strip", zod.ZodTypeAny, {
678
- username: string;
679
678
  email: string;
679
+ username: string;
680
680
  password: string;
681
681
  }, {
682
- username: string;
683
682
  email: string;
683
+ username: string;
684
684
  password: string;
685
685
  }>>["in"] extends infer T_7 ? T_7 extends inferParser<[TExtensions["signup"]] extends [zod.AnyZodObject] ? zod.ZodObject<{
686
686
  username: zod.ZodString;
@@ -699,12 +699,12 @@ declare function createAuthRouter<TExtensions extends SchemaExtensions = {}>(con
699
699
  email: zod.ZodString;
700
700
  password: zod.ZodEffects<zod.ZodString, string, string>;
701
701
  }, "strip", zod.ZodTypeAny, {
702
- username: string;
703
702
  email: string;
703
+ username: string;
704
704
  password: string;
705
705
  }, {
706
- username: string;
707
706
  email: string;
707
+ username: string;
708
708
  password: string;
709
709
  }>>["in"] ? T_7 extends _trpc_server.TRPCUnsetMarker ? void : T_7 : never : never;
710
710
  output: {
@@ -884,17 +884,17 @@ declare function createAuthRouter<TExtensions extends SchemaExtensions = {}>(con
884
884
  transformer: true;
885
885
  }>;
886
886
  procedure: _trpc_server.TRPCProcedureBuilder<TrpcContext, Meta, {
887
- sessionId: number;
888
887
  userId: number;
889
888
  socketId: string | null;
889
+ sessionId: number;
890
890
  headers: http.IncomingHttpHeaders;
891
891
  res: http.ServerResponse<http.IncomingMessage>;
892
892
  ip: string | undefined;
893
893
  }, _trpc_server.TRPCUnsetMarker, _trpc_server.TRPCUnsetMarker, _trpc_server.TRPCUnsetMarker, _trpc_server.TRPCUnsetMarker, false>;
894
894
  authProcedure: _trpc_server.TRPCProcedureBuilder<TrpcContext, Meta, {
895
- sessionId: number;
896
895
  userId: number;
897
896
  socketId: string | null;
897
+ sessionId: number;
898
898
  headers: http.IncomingHttpHeaders;
899
899
  res: http.ServerResponse<http.IncomingMessage>;
900
900
  ip: string | undefined;
package/dist/index.d.ts CHANGED
@@ -6,8 +6,8 @@ import * as zod from 'zod';
6
6
  import { CreateHTTPContextOptions } from '@trpc/server/adapters/standalone';
7
7
  import { D as DatabaseAdapter } from './database-CqnmD1HM.js';
8
8
  export { A as AuthOTP, a as AuthPasswordReset, b as AuthSession, c as AuthUser, C as CreateSessionData, d as CreateUserData, S as SessionWithDevice, e as SessionWithUser } from './database-CqnmD1HM.js';
9
- import { S as SchemaExtensions, A as AuthHooks } from './hooks-yHGJ7C6_.js';
10
- export { C as ChangePasswordInput, L as LoginInput, O as OAuthLoginInput, R as ResetPasswordInput, a as SignupInput, T as TwoFaVerifyInput, V as VerifyEmailInput, b as biometricVerifySchema, c as changePasswordSchema, e as endAllSessionsSchema, l as loginSchema, o as oAuthLoginSchema, r as requestPasswordResetSchema, d as resetPasswordSchema, s as signupSchema, t as twoFaResetSchema, f as twoFaVerifySchema, v as verifyEmailSchema } from './hooks-yHGJ7C6_.js';
9
+ import { S as SchemaExtensions, A as AuthHooks } from './hooks-BXNxNK4S.js';
10
+ export { C as ChangePasswordInput, L as LoginInput, O as OAuthLoginInput, R as ResetPasswordInput, a as SignupInput, T as TwoFaVerifyInput, V as VerifyEmailInput, b as biometricVerifySchema, c as changePasswordSchema, e as endAllSessionsSchema, l as loginSchema, o as oAuthLoginSchema, r as requestPasswordResetSchema, d as resetPasswordSchema, s as signupSchema, t as twoFaResetSchema, f as twoFaVerifySchema, v as verifyEmailSchema } from './hooks-BXNxNK4S.js';
11
11
 
12
12
  //# sourceMappingURL=TRPCError.d.ts.map
13
13
  //#endregion
@@ -675,12 +675,12 @@ declare function createAuthRouter<TExtensions extends SchemaExtensions = {}>(con
675
675
  email: zod.ZodString;
676
676
  password: zod.ZodEffects<zod.ZodString, string, string>;
677
677
  }, "strip", zod.ZodTypeAny, {
678
- username: string;
679
678
  email: string;
679
+ username: string;
680
680
  password: string;
681
681
  }, {
682
- username: string;
683
682
  email: string;
683
+ username: string;
684
684
  password: string;
685
685
  }>>["in"] extends infer T_7 ? T_7 extends inferParser<[TExtensions["signup"]] extends [zod.AnyZodObject] ? zod.ZodObject<{
686
686
  username: zod.ZodString;
@@ -699,12 +699,12 @@ declare function createAuthRouter<TExtensions extends SchemaExtensions = {}>(con
699
699
  email: zod.ZodString;
700
700
  password: zod.ZodEffects<zod.ZodString, string, string>;
701
701
  }, "strip", zod.ZodTypeAny, {
702
- username: string;
703
702
  email: string;
703
+ username: string;
704
704
  password: string;
705
705
  }, {
706
- username: string;
707
706
  email: string;
707
+ username: string;
708
708
  password: string;
709
709
  }>>["in"] ? T_7 extends _trpc_server.TRPCUnsetMarker ? void : T_7 : never : never;
710
710
  output: {
@@ -884,17 +884,17 @@ declare function createAuthRouter<TExtensions extends SchemaExtensions = {}>(con
884
884
  transformer: true;
885
885
  }>;
886
886
  procedure: _trpc_server.TRPCProcedureBuilder<TrpcContext, Meta, {
887
- sessionId: number;
888
887
  userId: number;
889
888
  socketId: string | null;
889
+ sessionId: number;
890
890
  headers: http.IncomingHttpHeaders;
891
891
  res: http.ServerResponse<http.IncomingMessage>;
892
892
  ip: string | undefined;
893
893
  }, _trpc_server.TRPCUnsetMarker, _trpc_server.TRPCUnsetMarker, _trpc_server.TRPCUnsetMarker, _trpc_server.TRPCUnsetMarker, false>;
894
894
  authProcedure: _trpc_server.TRPCProcedureBuilder<TrpcContext, Meta, {
895
- sessionId: number;
896
895
  userId: number;
897
896
  socketId: string | null;
897
+ sessionId: number;
898
898
  headers: http.IncomingHttpHeaders;
899
899
  res: http.ServerResponse<http.IncomingMessage>;
900
900
  ip: string | undefined;
@@ -1,2 +1,2 @@
1
1
  import 'zod';
2
- export { g as AuthSchemas, C as ChangePasswordInput, h as CreatedSchemas, L as LoginInput, i as LoginSchemaInput, O as OAuthLoginInput, j as OAuthSchemaInput, R as ResetPasswordInput, a as SignupInput, k as SignupSchemaInput, T as TwoFaVerifyInput, V as VerifyEmailInput, b as biometricVerifySchema, c as changePasswordSchema, m as checkPasswordResetSchema, n as createSchemas, p as deregisterPushTokenSchema, q as disableTwofaSchema, e as endAllSessionsSchema, u as getTwofaSecretSchema, l as loginSchema, o as oAuthLoginSchema, w as registerPushTokenSchema, r as requestPasswordResetSchema, d as resetPasswordSchema, s as signupSchema, t as twoFaResetSchema, x as twoFaResetVerifySchema, f as twoFaVerifySchema, v as verifyEmailSchema } from './hooks-yHGJ7C6_.mjs';
2
+ export { g as AuthSchemas, C as ChangePasswordInput, h as CreatedSchemas, L as LoginInput, i as LoginSchemaInput, O as OAuthLoginInput, j as OAuthSchemaInput, R as ResetPasswordInput, a as SignupInput, k as SignupSchemaInput, T as TwoFaVerifyInput, V as VerifyEmailInput, b as biometricVerifySchema, c as changePasswordSchema, m as checkPasswordResetSchema, n as createSchemas, p as deregisterPushTokenSchema, q as disableTwofaSchema, e as endAllSessionsSchema, u as getTwofaSecretSchema, l as loginSchema, o as oAuthLoginSchema, w as registerPushTokenSchema, r as requestPasswordResetSchema, d as resetPasswordSchema, s as signupSchema, t as twoFaResetSchema, x as twoFaResetVerifySchema, f as twoFaVerifySchema, v as verifyEmailSchema } from './hooks-BXNxNK4S.mjs';
@@ -1,2 +1,2 @@
1
1
  import 'zod';
2
- export { g as AuthSchemas, C as ChangePasswordInput, h as CreatedSchemas, L as LoginInput, i as LoginSchemaInput, O as OAuthLoginInput, j as OAuthSchemaInput, R as ResetPasswordInput, a as SignupInput, k as SignupSchemaInput, T as TwoFaVerifyInput, V as VerifyEmailInput, b as biometricVerifySchema, c as changePasswordSchema, m as checkPasswordResetSchema, n as createSchemas, p as deregisterPushTokenSchema, q as disableTwofaSchema, e as endAllSessionsSchema, u as getTwofaSecretSchema, l as loginSchema, o as oAuthLoginSchema, w as registerPushTokenSchema, r as requestPasswordResetSchema, d as resetPasswordSchema, s as signupSchema, t as twoFaResetSchema, x as twoFaResetVerifySchema, f as twoFaVerifySchema, v as verifyEmailSchema } from './hooks-yHGJ7C6_.js';
2
+ export { g as AuthSchemas, C as ChangePasswordInput, h as CreatedSchemas, L as LoginInput, i as LoginSchemaInput, O as OAuthLoginInput, j as OAuthSchemaInput, R as ResetPasswordInput, a as SignupInput, k as SignupSchemaInput, T as TwoFaVerifyInput, V as VerifyEmailInput, b as biometricVerifySchema, c as changePasswordSchema, m as checkPasswordResetSchema, n as createSchemas, p as deregisterPushTokenSchema, q as disableTwofaSchema, e as endAllSessionsSchema, u as getTwofaSecretSchema, l as loginSchema, o as oAuthLoginSchema, w as registerPushTokenSchema, r as requestPasswordResetSchema, d as resetPasswordSchema, s as signupSchema, t as twoFaResetSchema, x as twoFaResetVerifySchema, f as twoFaVerifySchema, v as verifyEmailSchema } from './hooks-BXNxNK4S.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factiii/auth",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -8,12 +8,12 @@ declare const signupSchema: z.ZodObject<{
8
8
  email: z.ZodString;
9
9
  password: z.ZodEffects<z.ZodString, string, string>;
10
10
  }, "strip", z.ZodTypeAny, {
11
- username: string;
12
11
  email: string;
12
+ username: string;
13
13
  password: string;
14
14
  }, {
15
- username: string;
16
15
  email: string;
16
+ username: string;
17
17
  password: string;
18
18
  }>;
19
19
  /**
@@ -8,12 +8,12 @@ declare const signupSchema: z.ZodObject<{
8
8
  email: z.ZodString;
9
9
  password: z.ZodEffects<z.ZodString, string, string>;
10
10
  }, "strip", z.ZodTypeAny, {
11
- username: string;
12
11
  email: string;
12
+ username: string;
13
13
  password: string;
14
14
  }, {
15
- username: string;
16
15
  email: string;
16
+ username: string;
17
17
  password: string;
18
18
  }>;
19
19
  /**