@authhero/kysely-adapter 11.11.0 → 11.13.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.
@@ -72,11 +72,16 @@ declare const sqlPasswordSchema: z.ZodObject<{
72
72
  is_current: z.ZodNumber;
73
73
  }, z.core.$strip>;
74
74
  declare const sqlUserSchema: z.ZodObject<{
75
+ username: z.ZodOptional<z.ZodString>;
76
+ user_id: z.ZodString;
77
+ created_at: z.ZodString;
78
+ updated_at: z.ZodString;
75
79
  name: z.ZodOptional<z.ZodString>;
80
+ provider: z.ZodString;
81
+ email: z.ZodOptional<z.ZodString>;
82
+ phone_number: z.ZodOptional<z.ZodString>;
76
83
  connection: z.ZodString;
77
- username: z.ZodOptional<z.ZodString>;
78
84
  given_name: z.ZodOptional<z.ZodString>;
79
- phone_number: z.ZodOptional<z.ZodString>;
80
85
  family_name: z.ZodOptional<z.ZodString>;
81
86
  profileData: z.ZodOptional<z.ZodString>;
82
87
  nickname: z.ZodOptional<z.ZodString>;
@@ -91,15 +96,7 @@ declare const sqlUserSchema: z.ZodObject<{
91
96
  birthdate: z.ZodOptional<z.ZodString>;
92
97
  zoneinfo: z.ZodOptional<z.ZodString>;
93
98
  verify_email: z.ZodOptional<z.ZodBoolean>;
94
- last_ip: z.ZodOptional<z.ZodString>;
95
- last_login: z.ZodOptional<z.ZodString>;
96
99
  registration_completed_at: z.ZodOptional<z.ZodString>;
97
- created_at: z.ZodString;
98
- updated_at: z.ZodString;
99
- user_id: z.ZodString;
100
- provider: z.ZodString;
101
- email: z.ZodOptional<z.ZodString>;
102
- login_count: z.ZodDefault<z.ZodNumber>;
103
100
  identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
104
101
  connection: z.ZodString;
105
102
  user_id: z.ZodString;
@@ -124,6 +121,7 @@ declare const sqlUserSchema: z.ZodObject<{
124
121
  family_name: z.ZodOptional<z.ZodString>;
125
122
  }, z.core.$catchall<z.ZodAny>>>;
126
123
  }, z.core.$strip>>>;
124
+ login_count: z.ZodOptional<z.ZodNumber>;
127
125
  email_verified: z.ZodNumber;
128
126
  phone_verified: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
129
127
  is_social: z.ZodNumber;
@@ -941,6 +939,46 @@ interface Database {
941
939
  created_at: string;
942
940
  updated_at: string;
943
941
  };
942
+ tenant_operations: {
943
+ id: string;
944
+ tenant_id: string | null;
945
+ rollout_id: string | null;
946
+ kind: string;
947
+ status: string;
948
+ current_step: string | null;
949
+ engine: string;
950
+ engine_instance_id: string | null;
951
+ target_worker_version: string | null;
952
+ target_database_version: string | null;
953
+ error: string | null;
954
+ initiated_by: string | null;
955
+ created_at: string;
956
+ updated_at: string;
957
+ finished_at: string | null;
958
+ };
959
+ tenant_operation_events: {
960
+ id: string;
961
+ operation_id: string;
962
+ step: string;
963
+ outcome: string;
964
+ detail: string | null;
965
+ attempt: number;
966
+ created_at: string;
967
+ };
968
+ rollouts: {
969
+ id: string;
970
+ kind: string;
971
+ status: string;
972
+ target_worker_version: string | null;
973
+ target_database_version: string | null;
974
+ wave_size: number;
975
+ canary_tenant_ids: string | null;
976
+ filter: string | null;
977
+ initiated_by: string | null;
978
+ created_at: string;
979
+ updated_at: string;
980
+ finished_at: string | null;
981
+ };
944
982
  }
945
983
 
946
984
  declare function migrateToLatest(db: Kysely<Database>, debug?: boolean): Promise<void>;