@authhero/kysely-adapter 12.12.0 → 12.14.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>;
@@ -9,6 +9,7 @@ import * as refreshTokenSessionId from "./2026-08-20T12:00:00_refresh_token_sess
9
9
  import * as refreshTokenSessionIdBackfill from "./2026-08-21T12:00:00_refresh_token_session_id_backfill";
10
10
  import * as tenantOperationRows from "./2026-09-01T12:00:00_tenant_operation_rows";
11
11
  import * as tokenExchangeProfiles from "./2026-09-25T12:00:00_token_exchange_profiles";
12
+ import * as promptPartials from "./2026-10-13T12:00:00_prompt_partials";
12
13
  /**
13
14
  * Kysely runs these in key order and refuses to start if an already-executed
14
15
  * migration sorts after a pending one, so the keys must sort in execution
@@ -36,5 +37,6 @@ declare const _default: {
36
37
  "2026-08-21T12:00:00_refresh_token_session_id_backfill": typeof refreshTokenSessionIdBackfill;
37
38
  "2026-09-01T12:00:00_tenant_operation_rows": typeof tenantOperationRows;
38
39
  "2026-09-25T12:00:00_token_exchange_profiles": typeof tokenExchangeProfiles;
40
+ "2026-10-13T12:00:00_prompt_partials": typeof promptPartials;
39
41
  };
40
42
  export default _default;
@@ -48,6 +48,13 @@ declare const sqlCustomTextSchema: z.ZodObject<{
48
48
  created_at_ts: z.ZodNumber;
49
49
  updated_at_ts: z.ZodNumber;
50
50
  }, z.core.$strip>;
51
+ declare const sqlPromptPartialsSchema: z.ZodObject<{
52
+ tenant_id: z.ZodString;
53
+ prompt: z.ZodString;
54
+ body: z.ZodString;
55
+ created_at_ts: z.ZodNumber;
56
+ updated_at_ts: z.ZodNumber;
57
+ }, z.core.$strip>;
51
58
  declare const sqlPromptSettingSchema: z.ZodObject<{
52
59
  universal_login_experience: z.ZodDefault<z.ZodEnum<{
53
60
  new: "new";
@@ -887,6 +894,7 @@ export interface Database {
887
894
  invites: z.infer<typeof sqlInviteSchema>;
888
895
  universal_login_templates: z.infer<typeof sqlUniversalLoginTemplateSchema>;
889
896
  custom_text: z.infer<typeof sqlCustomTextSchema>;
897
+ prompt_partials: z.infer<typeof sqlPromptPartialsSchema>;
890
898
  authentication_methods: z.infer<typeof sqlAuthenticationMethodSchema>;
891
899
  log_streams: {
892
900
  id: string;
@@ -0,0 +1,4 @@
1
+ import type { PromptPartialsAdapter } from "@authhero/adapter-interfaces";
2
+ import { Kysely } from "kysely";
3
+ import { Database } from "../db";
4
+ export declare function createPromptPartialsAdapter(db: Kysely<Database>): PromptPartialsAdapter;
@@ -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 {};