@authhero/kysely-adapter 11.10.1 → 11.11.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.
@@ -0,0 +1,4 @@
1
+ import { Kysely } from "kysely";
2
+ import { Database } from "../../src/db";
3
+ export declare function up(db: Kysely<Database>): Promise<void>;
4
+ export declare function down(db: Kysely<Database>): Promise<void>;
@@ -174,6 +174,7 @@ import * as o075_create_grants from "./2026-06-04T11:00:00_create_grants";
174
174
  import * as o076_default_first_party_true from "./2026-06-04T11:01:00_default_first_party_true";
175
175
  import * as o077_tenant_deployment_fields from "./2026-06-06T12:00:00_tenant_deployment_fields";
176
176
  import * as o078_tenant_database_version from "./2026-06-27T12:00:00_tenant_database_version";
177
+ import * as o079_user_activity_and_user_column_cleanup from "./2026-06-30T12:00:00_user_activity_and_user_column_cleanup";
177
178
  declare const _default: {
178
179
  m1_init: typeof m1_init;
179
180
  m2_magicLink: typeof m2_magicLink;
@@ -351,5 +352,6 @@ declare const _default: {
351
352
  o076_default_first_party_true: typeof o076_default_first_party_true;
352
353
  o077_tenant_deployment_fields: typeof o077_tenant_deployment_fields;
353
354
  o078_tenant_database_version: typeof o078_tenant_database_version;
355
+ o079_user_activity_and_user_column_cleanup: typeof o079_user_activity_and_user_column_cleanup;
354
356
  };
355
357
  export default _default;
@@ -856,6 +856,15 @@ export interface Database {
856
856
  prompt_settings: z.infer<typeof sqlPromptSettingSchema>;
857
857
  refresh_tokens: z.infer<typeof sqlRefreshTokensSchema>;
858
858
  users: z.infer<typeof sqlUserSchema>;
859
+ user_activity: {
860
+ tenant_id: string;
861
+ user_id: string;
862
+ last_login: string | null;
863
+ last_ip: string | null;
864
+ login_count: number;
865
+ failed_logins: string | null;
866
+ last_password_reset: string | null;
867
+ };
859
868
  sessions: z.infer<typeof sqlSessionSchema>;
860
869
  tenants: z.infer<typeof sqlTenantSchema>;
861
870
  themes: z.infer<typeof sqlThemeSchema>;
@@ -0,0 +1,4 @@
1
+ import { Kysely } from "kysely";
2
+ import { UserActivityAdapter } from "@authhero/adapter-interfaces";
3
+ import { Database } from "../db";
4
+ export declare function createUserActivityAdapter(db: Kysely<Database>): UserActivityAdapter;