@authhero/kysely-adapter 11.10.2 → 11.12.0
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.
- package/dist/kysely-adapter.cjs +52 -35
- package/dist/kysely-adapter.d.ts +16 -10
- package/dist/kysely-adapter.mjs +2327 -2188
- package/dist/types/migrate/migrations/2026-06-30T12:00:00_user_activity_and_user_column_cleanup.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-07-02T12:00:00_drop_user_activity_columns_from_users.d.ts +14 -0
- package/dist/types/migrate/migrations/index.d.ts +4 -0
- package/dist/types/src/db.d.ts +16 -10
- package/dist/types/src/helpers/filter.d.ts +7 -1
- package/dist/types/src/userActivity/index.d.ts +4 -0
- package/dist/types/src/users/update.d.ts +2 -2
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +3 -3
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -72,11 +72,16 @@ declare const sqlPasswordSchema: z.ZodObject<{
|
|
|
72
72
|
is_current: z.ZodNumber;
|
|
73
73
|
}, z.core.$strip>;
|
|
74
74
|
declare const sqlUserSchema: z.ZodObject<{
|
|
75
|
+
username: z.ZodOptional<z.ZodString>;
|
|
76
|
+
user_id: z.ZodString;
|
|
77
|
+
created_at: z.ZodString;
|
|
78
|
+
updated_at: z.ZodString;
|
|
75
79
|
name: z.ZodOptional<z.ZodString>;
|
|
80
|
+
provider: z.ZodString;
|
|
81
|
+
email: z.ZodOptional<z.ZodString>;
|
|
82
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
76
83
|
connection: z.ZodString;
|
|
77
|
-
username: z.ZodOptional<z.ZodString>;
|
|
78
84
|
given_name: z.ZodOptional<z.ZodString>;
|
|
79
|
-
phone_number: z.ZodOptional<z.ZodString>;
|
|
80
85
|
family_name: z.ZodOptional<z.ZodString>;
|
|
81
86
|
profileData: z.ZodOptional<z.ZodString>;
|
|
82
87
|
nickname: z.ZodOptional<z.ZodString>;
|
|
@@ -91,15 +96,7 @@ declare const sqlUserSchema: z.ZodObject<{
|
|
|
91
96
|
birthdate: z.ZodOptional<z.ZodString>;
|
|
92
97
|
zoneinfo: z.ZodOptional<z.ZodString>;
|
|
93
98
|
verify_email: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
-
last_ip: z.ZodOptional<z.ZodString>;
|
|
95
|
-
last_login: z.ZodOptional<z.ZodString>;
|
|
96
99
|
registration_completed_at: z.ZodOptional<z.ZodString>;
|
|
97
|
-
created_at: z.ZodString;
|
|
98
|
-
updated_at: z.ZodString;
|
|
99
|
-
user_id: z.ZodString;
|
|
100
|
-
provider: z.ZodString;
|
|
101
|
-
email: z.ZodOptional<z.ZodString>;
|
|
102
|
-
login_count: z.ZodDefault<z.ZodNumber>;
|
|
103
100
|
identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
104
101
|
connection: z.ZodString;
|
|
105
102
|
user_id: z.ZodString;
|
|
@@ -856,6 +853,15 @@ interface Database {
|
|
|
856
853
|
prompt_settings: z.infer<typeof sqlPromptSettingSchema>;
|
|
857
854
|
refresh_tokens: z.infer<typeof sqlRefreshTokensSchema>;
|
|
858
855
|
users: z.infer<typeof sqlUserSchema>;
|
|
856
|
+
user_activity: {
|
|
857
|
+
tenant_id: string;
|
|
858
|
+
user_id: string;
|
|
859
|
+
last_login: string | null;
|
|
860
|
+
last_ip: string | null;
|
|
861
|
+
login_count: number;
|
|
862
|
+
failed_logins: string | null;
|
|
863
|
+
last_password_reset: string | null;
|
|
864
|
+
};
|
|
859
865
|
sessions: z.infer<typeof sqlSessionSchema>;
|
|
860
866
|
tenants: z.infer<typeof sqlTenantSchema>;
|
|
861
867
|
themes: z.infer<typeof sqlThemeSchema>;
|