@authhero/kysely-adapter 12.6.2 → 12.7.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>;
@@ -7,6 +7,7 @@ import * as actionExecutionsCreatedAtIndex from "./2026-08-10T12:00:00_action_ex
7
7
  import * as pageHooks from "./2026-08-11T12:00:00_page_hooks";
8
8
  import * as refreshTokenSessionId from "./2026-08-20T12:00:00_refresh_token_session_id";
9
9
  import * as refreshTokenSessionIdBackfill from "./2026-08-21T12:00:00_refresh_token_session_id_backfill";
10
+ import * as tenantOperationRows from "./2026-09-01T12:00:00_tenant_operation_rows";
10
11
  /**
11
12
  * Kysely runs these in key order and refuses to start if an already-executed
12
13
  * migration sorts after a pending one, so the keys must sort in execution
@@ -32,5 +33,6 @@ declare const _default: {
32
33
  "2026-08-11T12:00:00_page_hooks": typeof pageHooks;
33
34
  "2026-08-20T12:00:00_refresh_token_session_id": typeof refreshTokenSessionId;
34
35
  "2026-08-21T12:00:00_refresh_token_session_id_backfill": typeof refreshTokenSessionIdBackfill;
36
+ "2026-09-01T12:00:00_tenant_operation_rows": typeof tenantOperationRows;
35
37
  };
36
38
  export default _default;
@@ -976,10 +976,26 @@ export interface Database {
976
976
  target_database_version: string | null;
977
977
  error: string | null;
978
978
  initiated_by: string | null;
979
+ input: string | null;
980
+ result: string | null;
981
+ claimed_by: string | null;
982
+ claim_expires_at: string | null;
979
983
  created_at: string;
980
984
  updated_at: string;
981
985
  finished_at: string | null;
982
986
  };
987
+ tenant_operation_rows: {
988
+ operation_id: string;
989
+ seq: number;
990
+ payload: string;
991
+ status: string;
992
+ error_code: string | null;
993
+ error_message: string | null;
994
+ error_path: string | null;
995
+ entity_id: string | null;
996
+ created_at: string;
997
+ updated_at: string;
998
+ };
983
999
  tenant_operation_events: {
984
1000
  id: string;
985
1001
  operation_id: string;
@@ -0,0 +1,4 @@
1
+ import { Kysely } from "kysely";
2
+ import { TenantOperationRowsAdapter } from "@authhero/adapter-interfaces";
3
+ import { Database } from "../db";
4
+ export declare function createTenantOperationRowsAdapter(db: Kysely<Database>): TenantOperationRowsAdapter;