@authhero/kysely-adapter 10.128.0 → 10.129.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.
- package/dist/kysely-adapter.cjs +42 -16
- package/dist/kysely-adapter.d.ts +9 -1
- package/dist/kysely-adapter.mjs +1555 -1445
- package/package.json +2 -2
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -18272,6 +18272,7 @@ declare const refreshTokenSchema: z.ZodObject<{
|
|
|
18272
18272
|
}>, "many">;
|
|
18273
18273
|
rotating: z.ZodBoolean;
|
|
18274
18274
|
created_at: z.ZodString;
|
|
18275
|
+
revoked_at: z.ZodOptional<z.ZodString>;
|
|
18275
18276
|
}, "strip", z.ZodTypeAny, {
|
|
18276
18277
|
created_at: string;
|
|
18277
18278
|
id: string;
|
|
@@ -18292,6 +18293,7 @@ declare const refreshTokenSchema: z.ZodObject<{
|
|
|
18292
18293
|
}[];
|
|
18293
18294
|
rotating: boolean;
|
|
18294
18295
|
expires_at?: string | undefined;
|
|
18296
|
+
revoked_at?: string | undefined;
|
|
18295
18297
|
idle_expires_at?: string | undefined;
|
|
18296
18298
|
last_exchanged_at?: string | undefined;
|
|
18297
18299
|
}, {
|
|
@@ -18314,6 +18316,7 @@ declare const refreshTokenSchema: z.ZodObject<{
|
|
|
18314
18316
|
}[];
|
|
18315
18317
|
rotating: boolean;
|
|
18316
18318
|
expires_at?: string | undefined;
|
|
18319
|
+
revoked_at?: string | undefined;
|
|
18317
18320
|
idle_expires_at?: string | undefined;
|
|
18318
18321
|
last_exchanged_at?: string | undefined;
|
|
18319
18322
|
}>;
|
|
@@ -19444,6 +19447,7 @@ export interface RefreshTokensAdapter {
|
|
|
19444
19447
|
list(tenant_id: string, params?: ListParams): Promise<ListRefreshTokenResponse>;
|
|
19445
19448
|
update: (tenant_id: string, id: string, refresh_token: Partial<RefreshToken>) => Promise<boolean>;
|
|
19446
19449
|
remove: (tenant_id: string, id: string) => Promise<boolean>;
|
|
19450
|
+
revokeByLoginSession: (tenant_id: string, login_session_id: string, revoked_at: string) => Promise<number>;
|
|
19447
19451
|
}
|
|
19448
19452
|
export interface ListFormsResponse extends Totals {
|
|
19449
19453
|
forms: Form[];
|
|
@@ -20428,7 +20432,8 @@ declare const sqlRefreshTokensSchema: z.ZodObject<Omit<{
|
|
|
20428
20432
|
}>, "many">;
|
|
20429
20433
|
rotating: z.ZodBoolean;
|
|
20430
20434
|
created_at: z.ZodString;
|
|
20431
|
-
|
|
20435
|
+
revoked_at: z.ZodOptional<z.ZodString>;
|
|
20436
|
+
}, "created_at" | "expires_at" | "revoked_at" | "idle_expires_at" | "device" | "last_exchanged_at" | "resource_servers" | "rotating"> & {
|
|
20432
20437
|
tenant_id: z.ZodString;
|
|
20433
20438
|
device: z.ZodString;
|
|
20434
20439
|
resource_servers: z.ZodString;
|
|
@@ -20437,6 +20442,7 @@ declare const sqlRefreshTokensSchema: z.ZodObject<Omit<{
|
|
|
20437
20442
|
expires_at_ts: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20438
20443
|
idle_expires_at_ts: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20439
20444
|
last_exchanged_at_ts: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20445
|
+
revoked_at_ts: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20440
20446
|
}, "strip", z.ZodTypeAny, {
|
|
20441
20447
|
tenant_id: string;
|
|
20442
20448
|
user_id: string;
|
|
@@ -20449,6 +20455,7 @@ declare const sqlRefreshTokensSchema: z.ZodObject<Omit<{
|
|
|
20449
20455
|
rotating: number;
|
|
20450
20456
|
expires_at_ts?: number | null | undefined;
|
|
20451
20457
|
idle_expires_at_ts?: number | null | undefined;
|
|
20458
|
+
revoked_at_ts?: number | null | undefined;
|
|
20452
20459
|
last_exchanged_at_ts?: number | null | undefined;
|
|
20453
20460
|
}, {
|
|
20454
20461
|
tenant_id: string;
|
|
@@ -20462,6 +20469,7 @@ declare const sqlRefreshTokensSchema: z.ZodObject<Omit<{
|
|
|
20462
20469
|
rotating: number;
|
|
20463
20470
|
expires_at_ts?: number | null | undefined;
|
|
20464
20471
|
idle_expires_at_ts?: number | null | undefined;
|
|
20472
|
+
revoked_at_ts?: number | null | undefined;
|
|
20465
20473
|
last_exchanged_at_ts?: number | null | undefined;
|
|
20466
20474
|
}>;
|
|
20467
20475
|
declare const sqlCustomDomainSchema: z.ZodObject<{
|