@authhero/kysely-adapter 12.17.0 → 12.18.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 type { Database } from "../../src/db";
3
+ export declare function up(db: Kysely<Database>): Promise<void>;
4
+ export declare function down(db: Kysely<Database>): Promise<void>;
@@ -0,0 +1,4 @@
1
+ import { Kysely } from "kysely";
2
+ import type { Database } from "../../src/db";
3
+ export declare function up(db: Kysely<Database>): Promise<void>;
4
+ export declare function down(db: Kysely<Database>): Promise<void>;
@@ -29,6 +29,8 @@ import * as rolloutConfig from "./2026-10-28T12:00:00_rollout_config";
29
29
  * is no migrations directory on disk to read at runtime. Static imports are
30
30
  * what survive bundling.
31
31
  */
32
+ import * as deviceCodes from "./2026-10-29T12:00:00_device_codes";
33
+ import * as tenantMemberRequests from "./2026-10-30T12:00:00_tenant_member_requests";
32
34
  declare const _default: {
33
35
  "2026-07-16T14:00:00_baseline": typeof baseline;
34
36
  "2026-07-16T15:00:00_codes_expires_at_ts": typeof codesExpiresAtTs;
@@ -46,5 +48,7 @@ declare const _default: {
46
48
  "2026-10-26T12:00:00_config_sync_hash": typeof configSyncHash;
47
49
  "2026-10-27T12:00:00_config_sync_mode": typeof configSyncMode;
48
50
  "2026-10-28T12:00:00_rollout_config": typeof rolloutConfig;
51
+ "2026-10-29T12:00:00_device_codes": typeof deviceCodes;
52
+ "2026-10-30T12:00:00_tenant_member_requests": typeof tenantMemberRequests;
49
53
  };
50
54
  export default _default;
@@ -466,6 +466,7 @@ export declare const sqlTenantSchema: z.ZodObject<{
466
466
  config_sync: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
467
467
  "inherit-on-read": "inherit-on-read";
468
468
  synced: "synced";
469
+ detached: "detached";
469
470
  }>>>;
470
471
  config_sync_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
471
472
  config_synced_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -672,6 +673,7 @@ export declare const sqlTenantSchema: z.ZodObject<{
672
673
  }, z.core.$strip>>;
673
674
  id: z.ZodString;
674
675
  is_control_plane: z.ZodOptional<z.ZodBoolean>;
676
+ has_children: z.ZodOptional<z.ZodBoolean>;
675
677
  }, z.core.$strip>;
676
678
  export declare const sqlClientGrantSchema: z.ZodObject<{
677
679
  id: z.ZodString;
@@ -905,6 +907,29 @@ export interface Database {
905
907
  clients: z.infer<typeof sqlClientSchema>;
906
908
  client_grants: z.infer<typeof sqlClientGrantSchema>;
907
909
  client_registration_tokens: z.infer<typeof sqlClientRegistrationTokenSchema>;
910
+ device_codes: import("@authhero/adapter-interfaces").DeviceCode & {
911
+ tenant_id: string;
912
+ };
913
+ tenant_member_requests: {
914
+ tenant_id: string;
915
+ id: string;
916
+ kind: string;
917
+ status: string;
918
+ requested_by: string;
919
+ payload: string;
920
+ result: string | null;
921
+ error: string | null;
922
+ notified_at: string | null;
923
+ created_at: string;
924
+ updated_at: string;
925
+ finished_at: string | null;
926
+ };
927
+ device_flow_limits: {
928
+ tenant_id: string;
929
+ key: string;
930
+ attempts: number;
931
+ expires_at: string;
932
+ };
908
933
  codes: Code & {
909
934
  tenant_id: string;
910
935
  expires_at_ts?: number | null;
@@ -0,0 +1,4 @@
1
+ import { Kysely } from "kysely";
2
+ import { type DeviceCodesAdapter } from "@authhero/adapter-interfaces";
3
+ import type { Database } from "../db";
4
+ export declare function createDeviceCodesAdapter(db: Kysely<Database>): DeviceCodesAdapter;
@@ -0,0 +1,4 @@
1
+ import { Kysely } from "kysely";
2
+ import { type TenantMemberRequestsAdapter } from "@authhero/adapter-interfaces";
3
+ import type { Database } from "../db";
4
+ export declare function createTenantMemberRequestsAdapter(db: Kysely<Database>): TenantMemberRequestsAdapter;
@@ -8,7 +8,7 @@ export declare function list(db: Kysely<Database>): (params?: ListParams) => Pro
8
8
  friendly_name: string;
9
9
  id: string;
10
10
  parent_tenant_id?: string | null | undefined;
11
- config_sync?: "inherit-on-read" | "synced" | null | undefined;
11
+ config_sync?: "inherit-on-read" | "synced" | "detached" | null | undefined;
12
12
  config_sync_hash?: string | null | undefined;
13
13
  config_synced_at?: string | null | undefined;
14
14
  audience?: string | undefined;
@@ -187,6 +187,7 @@ export declare function list(db: Kysely<Database>): (params?: ListParams) => Pro
187
187
  } | undefined;
188
188
  } | undefined;
189
189
  is_control_plane?: boolean | undefined;
190
+ has_children?: boolean | undefined;
190
191
  }[];
191
192
  totals?: undefined;
192
193
  } | {
@@ -196,7 +197,7 @@ export declare function list(db: Kysely<Database>): (params?: ListParams) => Pro
196
197
  friendly_name: string;
197
198
  id: string;
198
199
  parent_tenant_id?: string | null | undefined;
199
- config_sync?: "inherit-on-read" | "synced" | null | undefined;
200
+ config_sync?: "inherit-on-read" | "synced" | "detached" | null | undefined;
200
201
  config_sync_hash?: string | null | undefined;
201
202
  config_synced_at?: string | null | undefined;
202
203
  audience?: string | undefined;
@@ -375,6 +376,7 @@ export declare function list(db: Kysely<Database>): (params?: ListParams) => Pro
375
376
  } | undefined;
376
377
  } | undefined;
377
378
  is_control_plane?: boolean | undefined;
379
+ has_children?: boolean | undefined;
378
380
  }[];
379
381
  totals: {
380
382
  start: number;