@authhero/kysely-adapter 12.11.1 → 12.13.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,11 @@
1
+ import { Kysely } from "kysely";
2
+ import { Database } from "../db";
3
+ /**
4
+ * Permanently delete a dead-lettered outbox event. Scoped to tenantId and
5
+ * restricted to dead-lettered rows, so this path can never remove a pending
6
+ * or processed event, or reach into another tenant's dead-letter queue.
7
+ *
8
+ * Returns true if a row was deleted, false otherwise (so the route handler's
9
+ * 404 branch still works).
10
+ */
11
+ export declare function discardOutboxEvent(db: Kysely<Database>): (id: string, tenantId: string) => Promise<boolean>;
@@ -11,4 +11,5 @@ export declare function rolePermissions(db: Kysely<Database>): {
11
11
  description: string | null | undefined;
12
12
  created_at: string;
13
13
  }[]>;
14
+ listCheckpoint: (tenant_id: string, role_id: string, params?: import("@authhero/adapter-interfaces").ListParams) => Promise<import("@authhero/adapter-interfaces").ListRolePermissionsCheckpointResponse>;
14
15
  };
@@ -1,6 +1,6 @@
1
1
  import { Kysely } from "kysely";
2
2
  import { Database } from "../db";
3
- import { ListParams } from "@authhero/adapter-interfaces";
3
+ import { ListParams, ListRolePermissionsCheckpointResponse } from "@authhero/adapter-interfaces";
4
4
  type RolePermissionWithDetails = {
5
5
  role_id: string;
6
6
  resource_server_identifier: string;
@@ -10,4 +10,5 @@ type RolePermissionWithDetails = {
10
10
  created_at: string;
11
11
  };
12
12
  export declare function list(db: Kysely<Database>): (tenant_id: string, role_id: string, params?: ListParams) => Promise<RolePermissionWithDetails[]>;
13
+ export declare function listCheckpoint(db: Kysely<Database>): (tenant_id: string, role_id: string, params?: ListParams) => Promise<ListRolePermissionsCheckpointResponse>;
13
14
  export {};