@authhero/kysely-adapter 2.0.0 → 2.1.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.
@@ -3005,6 +3005,29 @@ declare const emailProviderSchema: z.ZodObject<{
3005
3005
  settings?: {} | undefined;
3006
3006
  }>;
3007
3007
  export type EmailProvider = z.infer<typeof emailProviderSchema>;
3008
+ declare const refreshTokenSchema: z.ZodObject<{
3009
+ refresh_token: z.ZodString;
3010
+ session_id: z.ZodString;
3011
+ expires_at: z.ZodString;
3012
+ used_at: z.ZodOptional<z.ZodString>;
3013
+ revoked_at: z.ZodOptional<z.ZodString>;
3014
+ created_at: z.ZodString;
3015
+ }, "strip", z.ZodTypeAny, {
3016
+ created_at: string;
3017
+ refresh_token: string;
3018
+ expires_at: string;
3019
+ session_id: string;
3020
+ used_at?: string | undefined;
3021
+ revoked_at?: string | undefined;
3022
+ }, {
3023
+ created_at: string;
3024
+ refresh_token: string;
3025
+ expires_at: string;
3026
+ session_id: string;
3027
+ used_at?: string | undefined;
3028
+ revoked_at?: string | undefined;
3029
+ }>;
3030
+ export type RefreshToken = z.infer<typeof refreshTokenSchema>;
3008
3031
  export interface ListCodesResponse extends Totals {
3009
3032
  codes: Code[];
3010
3033
  }
@@ -3560,6 +3583,9 @@ export interface Database {
3560
3583
  tenant_id: string;
3561
3584
  };
3562
3585
  prompt_settings: z.infer<typeof sqlPromptSettingSchema>;
3586
+ refresh_tokens: RefreshToken & {
3587
+ tenant_id: string;
3588
+ };
3563
3589
  users: z.infer<typeof sqlUserSchema>;
3564
3590
  sessions: Session & {
3565
3591
  tenant_id: string;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/markusahlstrand/authhero"
13
13
  },
14
- "version": "2.0.0",
14
+ "version": "2.1.0",
15
15
  "files": [
16
16
  "dist"
17
17
  ],