@authhero/kysely-adapter 10.126.0 → 10.127.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.
@@ -15749,6 +15749,17 @@ declare const loginSessionInsertSchema: z.ZodObject<{
15749
15749
  failure_reason: z.ZodOptional<z.ZodString>;
15750
15750
  user_id: z.ZodOptional<z.ZodString>;
15751
15751
  auth_connection: z.ZodOptional<z.ZodString>;
15752
+ auth_strategy: z.ZodOptional<z.ZodObject<{
15753
+ strategy: z.ZodString;
15754
+ strategy_type: z.ZodString;
15755
+ }, "strip", z.ZodTypeAny, {
15756
+ strategy: string;
15757
+ strategy_type: string;
15758
+ }, {
15759
+ strategy: string;
15760
+ strategy_type: string;
15761
+ }>>;
15762
+ authenticated_at: z.ZodOptional<z.ZodString>;
15752
15763
  }, "strip", z.ZodTypeAny, {
15753
15764
  state: LoginSessionState;
15754
15765
  expires_at: string;
@@ -15783,6 +15794,11 @@ declare const loginSessionInsertSchema: z.ZodObject<{
15783
15794
  state_data?: string | undefined;
15784
15795
  failure_reason?: string | undefined;
15785
15796
  auth_connection?: string | undefined;
15797
+ auth_strategy?: {
15798
+ strategy: string;
15799
+ strategy_type: string;
15800
+ } | undefined;
15801
+ authenticated_at?: string | undefined;
15786
15802
  }, {
15787
15803
  expires_at: string;
15788
15804
  csrf_token: string;
@@ -15817,6 +15833,11 @@ declare const loginSessionInsertSchema: z.ZodObject<{
15817
15833
  state_data?: string | undefined;
15818
15834
  failure_reason?: string | undefined;
15819
15835
  auth_connection?: string | undefined;
15836
+ auth_strategy?: {
15837
+ strategy: string;
15838
+ strategy_type: string;
15839
+ } | undefined;
15840
+ authenticated_at?: string | undefined;
15820
15841
  }>;
15821
15842
  export type LoginSessionInsert = z.input<typeof loginSessionInsertSchema>;
15822
15843
  declare const loginSessionSchema: z.ZodObject<{
@@ -15894,6 +15915,17 @@ declare const loginSessionSchema: z.ZodObject<{
15894
15915
  failure_reason: z.ZodOptional<z.ZodString>;
15895
15916
  user_id: z.ZodOptional<z.ZodString>;
15896
15917
  auth_connection: z.ZodOptional<z.ZodString>;
15918
+ auth_strategy: z.ZodOptional<z.ZodObject<{
15919
+ strategy: z.ZodString;
15920
+ strategy_type: z.ZodString;
15921
+ }, "strip", z.ZodTypeAny, {
15922
+ strategy: string;
15923
+ strategy_type: string;
15924
+ }, {
15925
+ strategy: string;
15926
+ strategy_type: string;
15927
+ }>>;
15928
+ authenticated_at: z.ZodOptional<z.ZodString>;
15897
15929
  }, "strip", z.ZodTypeAny, {
15898
15930
  created_at: string;
15899
15931
  updated_at: string;
@@ -15931,6 +15963,11 @@ declare const loginSessionSchema: z.ZodObject<{
15931
15963
  state_data?: string | undefined;
15932
15964
  failure_reason?: string | undefined;
15933
15965
  auth_connection?: string | undefined;
15966
+ auth_strategy?: {
15967
+ strategy: string;
15968
+ strategy_type: string;
15969
+ } | undefined;
15970
+ authenticated_at?: string | undefined;
15934
15971
  }, {
15935
15972
  created_at: string;
15936
15973
  updated_at: string;
@@ -15968,6 +16005,11 @@ declare const loginSessionSchema: z.ZodObject<{
15968
16005
  state_data?: string | undefined;
15969
16006
  failure_reason?: string | undefined;
15970
16007
  auth_connection?: string | undefined;
16008
+ auth_strategy?: {
16009
+ strategy: string;
16010
+ strategy_type: string;
16011
+ } | undefined;
16012
+ authenticated_at?: string | undefined;
15971
16013
  }>;
15972
16014
  export type LoginSession = z.infer<typeof loginSessionSchema>;
15973
16015
  declare const logInsertSchema: z.ZodObject<{
@@ -16404,6 +16446,7 @@ declare const sessionSchema: z.ZodObject<{
16404
16446
  updated_at: string;
16405
16447
  id: string;
16406
16448
  user_id: string;
16449
+ authenticated_at: string;
16407
16450
  login_session_id: string;
16408
16451
  device: {
16409
16452
  last_ip: string;
@@ -16414,7 +16457,6 @@ declare const sessionSchema: z.ZodObject<{
16414
16457
  last_asn: string;
16415
16458
  };
16416
16459
  clients: string[];
16417
- authenticated_at: string;
16418
16460
  last_interaction_at: string;
16419
16461
  expires_at?: string | undefined;
16420
16462
  used_at?: string | undefined;
@@ -16425,6 +16467,7 @@ declare const sessionSchema: z.ZodObject<{
16425
16467
  updated_at: string;
16426
16468
  id: string;
16427
16469
  user_id: string;
16470
+ authenticated_at: string;
16428
16471
  login_session_id: string;
16429
16472
  device: {
16430
16473
  last_ip: string;
@@ -16435,7 +16478,6 @@ declare const sessionSchema: z.ZodObject<{
16435
16478
  last_asn: string;
16436
16479
  };
16437
16480
  clients: string[];
16438
- authenticated_at: string;
16439
16481
  last_interaction_at: string;
16440
16482
  expires_at?: string | undefined;
16441
16483
  used_at?: string | undefined;
@@ -19733,6 +19775,9 @@ declare const sqlLoginSchema: z.ZodObject<{
19733
19775
  failure_reason: z.ZodOptional<z.ZodString>;
19734
19776
  user_id: z.ZodOptional<z.ZodString>;
19735
19777
  auth_connection: z.ZodOptional<z.ZodString>;
19778
+ auth_strategy_strategy: z.ZodOptional<z.ZodString>;
19779
+ auth_strategy_strategy_type: z.ZodOptional<z.ZodString>;
19780
+ authenticated_at: z.ZodOptional<z.ZodString>;
19736
19781
  created_at_ts: z.ZodNumber;
19737
19782
  updated_at_ts: z.ZodNumber;
19738
19783
  expires_at_ts: z.ZodNumber;
@@ -19746,6 +19791,9 @@ declare const sqlLoginSchema: z.ZodObject<{
19746
19791
  failure_reason?: unknown;
19747
19792
  user_id?: unknown;
19748
19793
  auth_connection?: unknown;
19794
+ auth_strategy_strategy?: unknown;
19795
+ auth_strategy_strategy_type?: unknown;
19796
+ authenticated_at?: unknown;
19749
19797
  created_at_ts?: unknown;
19750
19798
  updated_at_ts?: unknown;
19751
19799
  expires_at_ts?: unknown;
@@ -19759,6 +19807,9 @@ declare const sqlLoginSchema: z.ZodObject<{
19759
19807
  failure_reason?: unknown;
19760
19808
  user_id?: unknown;
19761
19809
  auth_connection?: unknown;
19810
+ auth_strategy_strategy?: unknown;
19811
+ auth_strategy_strategy_type?: unknown;
19812
+ authenticated_at?: unknown;
19762
19813
  created_at_ts?: unknown;
19763
19814
  updated_at_ts?: unknown;
19764
19815
  expires_at_ts?: unknown;
@@ -20289,7 +20340,7 @@ declare const sqlSessionSchema: z.ZodObject<Omit<{
20289
20340
  updated_at: z.ZodString;
20290
20341
  authenticated_at: z.ZodString;
20291
20342
  last_interaction_at: z.ZodString;
20292
- }, "created_at" | "updated_at" | "expires_at" | "revoked_at" | "used_at" | "idle_expires_at" | "device" | "clients" | "authenticated_at" | "last_interaction_at"> & {
20343
+ }, "created_at" | "updated_at" | "expires_at" | "authenticated_at" | "revoked_at" | "used_at" | "idle_expires_at" | "device" | "clients" | "last_interaction_at"> & {
20293
20344
  tenant_id: z.ZodString;
20294
20345
  device: z.ZodString;
20295
20346
  clients: z.ZodString;
@@ -21999,7 +22050,7 @@ export interface Database {
21999
22050
  };
22000
22051
  }
22001
22052
  export declare function migrateToLatest(db: Kysely<Database>, debug?: boolean): Promise<void>;
22002
- export declare function migrateDown(db: Kysely<Database>): Promise<void>;
22053
+ export declare function migrateDown(db: Kysely<Database>, debug?: boolean): Promise<void>;
22003
22054
  declare function createAdapters(db: Kysely<Database>, databaseOptions?: {
22004
22055
  useTransactions: boolean;
22005
22056
  }): DataAdapters;