@authhero/kysely-adapter 12.18.2 → 12.19.1

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>;
@@ -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>;
@@ -31,6 +31,8 @@ import * as rolloutConfig from "./2026-10-28T12:00:00_rollout_config";
31
31
  */
32
32
  import * as deviceCodes from "./2026-10-29T12:00:00_device_codes";
33
33
  import * as tenantMemberRequests from "./2026-10-30T12:00:00_tenant_member_requests";
34
+ import * as sessionAuthentication from "./2026-11-05T12:00:00_session_authentication";
35
+ import * as authenticationMethodsTotpLastStep from "./2026-11-05T13:00:00_authentication_methods_totp_last_step";
34
36
  declare const _default: {
35
37
  "2026-07-16T14:00:00_baseline": typeof baseline;
36
38
  "2026-07-16T15:00:00_codes_expires_at_ts": typeof codesExpiresAtTs;
@@ -50,5 +52,7 @@ declare const _default: {
50
52
  "2026-10-28T12:00:00_rollout_config": typeof rolloutConfig;
51
53
  "2026-10-29T12:00:00_device_codes": typeof deviceCodes;
52
54
  "2026-10-30T12:00:00_tenant_member_requests": typeof tenantMemberRequests;
55
+ "2026-11-05T12:00:00_session_authentication": typeof sessionAuthentication;
56
+ "2026-11-05T13:00:00_authentication_methods_totp_last_step": typeof authenticationMethodsTotpLastStep;
53
57
  };
54
58
  export default _default;
@@ -0,0 +1,3 @@
1
+ import { Kysely } from "kysely";
2
+ import { Database } from "../db";
3
+ export declare function consumeTotpStep(db: Kysely<Database>): (tenant_id: string, method_id: string, step: number) => Promise<boolean>;
@@ -280,6 +280,7 @@ declare const sqlSessionSchema: z.ZodObject<{
280
280
  tenant_id: z.ZodString;
281
281
  device: z.ZodString;
282
282
  clients: z.ZodString;
283
+ authentication: z.ZodOptional<z.ZodNullable<z.ZodString>>;
283
284
  created_at_ts: z.ZodNumber;
284
285
  updated_at_ts: z.ZodNumber;
285
286
  expires_at_ts: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -642,6 +643,8 @@ export declare const sqlTenantSchema: z.ZodObject<{
642
643
  policy: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
643
644
  never: "never";
644
645
  always: "always";
646
+ "all-applications": "all-applications";
647
+ "confidence-score": "confidence-score";
645
648
  }>>>;
646
649
  factors: z.ZodOptional<z.ZodObject<{
647
650
  sms: z.ZodDefault<z.ZodBoolean>;
@@ -888,6 +891,7 @@ export declare const sqlAuthenticationMethodSchema: z.ZodObject<{
888
891
  type: z.ZodString;
889
892
  phone_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
890
893
  totp_secret: z.ZodNullable<z.ZodOptional<z.ZodString>>;
894
+ totp_last_step: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
891
895
  credential_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
892
896
  public_key: z.ZodNullable<z.ZodOptional<z.ZodString>>;
893
897
  sign_count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -162,7 +162,7 @@ export declare function list(db: Kysely<Database>): (params?: ListParams) => Pro
162
162
  } | undefined;
163
163
  } | undefined;
164
164
  mfa?: {
165
- policy?: "never" | "always" | undefined;
165
+ policy?: "never" | "always" | "all-applications" | "confidence-score" | undefined;
166
166
  factors?: {
167
167
  sms: boolean;
168
168
  otp: boolean;
@@ -351,7 +351,7 @@ export declare function list(db: Kysely<Database>): (params?: ListParams) => Pro
351
351
  } | undefined;
352
352
  } | undefined;
353
353
  mfa?: {
354
- policy?: "never" | "always" | undefined;
354
+ policy?: "never" | "always" | "all-applications" | "confidence-score" | undefined;
355
355
  factors?: {
356
356
  sms: boolean;
357
357
  otp: boolean;