@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.
@@ -1,6 +1,7 @@
1
1
  import { Kysely } from 'kysely';
2
- import { z } from '@hono/zod-openapi';
2
+ import * as _authhero_adapter_interfaces from '@authhero/adapter-interfaces';
3
3
  import { Code, SigningKey, ProxyRoutesAdapter, DataAdapters } from '@authhero/adapter-interfaces';
4
+ import { z } from '@hono/zod-openapi';
4
5
  import { ProxyDataAdapter } from '@authhero/proxy';
5
6
 
6
7
  declare const sqlThemeSchema: z.ZodObject<{
@@ -466,6 +467,7 @@ declare const sqlTenantSchema: z.ZodObject<{
466
467
  config_sync: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
467
468
  "inherit-on-read": "inherit-on-read";
468
469
  synced: "synced";
470
+ detached: "detached";
469
471
  }>>>;
470
472
  config_sync_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
471
473
  config_synced_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -672,6 +674,7 @@ declare const sqlTenantSchema: z.ZodObject<{
672
674
  }, z.core.$strip>>;
673
675
  id: z.ZodString;
674
676
  is_control_plane: z.ZodOptional<z.ZodBoolean>;
677
+ has_children: z.ZodOptional<z.ZodBoolean>;
675
678
  }, z.core.$strip>;
676
679
  declare const sqlClientGrantSchema: z.ZodObject<{
677
680
  id: z.ZodString;
@@ -905,6 +908,29 @@ interface Database {
905
908
  clients: z.infer<typeof sqlClientSchema>;
906
909
  client_grants: z.infer<typeof sqlClientGrantSchema>;
907
910
  client_registration_tokens: z.infer<typeof sqlClientRegistrationTokenSchema>;
911
+ device_codes: _authhero_adapter_interfaces.DeviceCode & {
912
+ tenant_id: string;
913
+ };
914
+ tenant_member_requests: {
915
+ tenant_id: string;
916
+ id: string;
917
+ kind: string;
918
+ status: string;
919
+ requested_by: string;
920
+ payload: string;
921
+ result: string | null;
922
+ error: string | null;
923
+ notified_at: string | null;
924
+ created_at: string;
925
+ updated_at: string;
926
+ finished_at: string | null;
927
+ };
928
+ device_flow_limits: {
929
+ tenant_id: string;
930
+ key: string;
931
+ attempts: number;
932
+ expires_at: string;
933
+ };
908
934
  codes: Code & {
909
935
  tenant_id: string;
910
936
  expires_at_ts?: number | null;