@authhero/kysely-adapter 0.11.2 → 0.12.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.
@@ -19,68 +19,7 @@ export interface Totals {
19
19
  limit: number;
20
20
  length: number;
21
21
  }
22
- declare const baseUserSchema: z.ZodObject<{
23
- email: z.ZodOptional<z.ZodString>;
24
- username: z.ZodOptional<z.ZodString>;
25
- given_name: z.ZodOptional<z.ZodString>;
26
- family_name: z.ZodOptional<z.ZodString>;
27
- nickname: z.ZodOptional<z.ZodString>;
28
- name: z.ZodOptional<z.ZodString>;
29
- picture: z.ZodOptional<z.ZodString>;
30
- locale: z.ZodOptional<z.ZodString>;
31
- linked_to: z.ZodOptional<z.ZodString>;
32
- profileData: z.ZodOptional<z.ZodString>;
33
- user_id: z.ZodOptional<z.ZodString>;
34
- }, "strip", z.ZodTypeAny, {
35
- email?: string | undefined;
36
- name?: string | undefined;
37
- username?: string | undefined;
38
- given_name?: string | undefined;
39
- family_name?: string | undefined;
40
- user_id?: string | undefined;
41
- profileData?: string | undefined;
42
- nickname?: string | undefined;
43
- picture?: string | undefined;
44
- locale?: string | undefined;
45
- linked_to?: string | undefined;
46
- }, {
47
- email?: string | undefined;
48
- name?: string | undefined;
49
- username?: string | undefined;
50
- given_name?: string | undefined;
51
- family_name?: string | undefined;
52
- user_id?: string | undefined;
53
- profileData?: string | undefined;
54
- nickname?: string | undefined;
55
- picture?: string | undefined;
56
- locale?: string | undefined;
57
- linked_to?: string | undefined;
58
- }>;
59
- export type BaseUser = z.infer<typeof baseUserSchema>;
60
- declare const userSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
61
- email: z.ZodOptional<z.ZodString>;
62
- username: z.ZodOptional<z.ZodString>;
63
- given_name: z.ZodOptional<z.ZodString>;
64
- family_name: z.ZodOptional<z.ZodString>;
65
- nickname: z.ZodOptional<z.ZodString>;
66
- name: z.ZodOptional<z.ZodString>;
67
- picture: z.ZodOptional<z.ZodString>;
68
- locale: z.ZodOptional<z.ZodString>;
69
- linked_to: z.ZodOptional<z.ZodString>;
70
- profileData: z.ZodOptional<z.ZodString>;
71
- user_id: z.ZodOptional<z.ZodString>;
72
- }, {
73
- email_verified: z.ZodDefault<z.ZodBoolean>;
74
- verify_email: z.ZodOptional<z.ZodBoolean>;
75
- last_ip: z.ZodOptional<z.ZodString>;
76
- last_login: z.ZodOptional<z.ZodString>;
77
- user_id: z.ZodOptional<z.ZodString>;
78
- provider: z.ZodDefault<z.ZodString>;
79
- connection: z.ZodDefault<z.ZodString>;
80
- }>, {
81
- created_at: z.ZodString;
82
- updated_at: z.ZodString;
83
- }>, {
22
+ declare const userSchema: z.ZodObject<{
84
23
  user_id: z.ZodString;
85
24
  email: z.ZodString;
86
25
  is_social: z.ZodBoolean;
@@ -158,7 +97,26 @@ declare const userSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
158
97
  family_name: z.ZodOptional<z.ZodString>;
159
98
  }, z.ZodAny, "strip"> | undefined;
160
99
  }>, "many">>;
161
- }>, "strip", z.ZodTypeAny, {
100
+ created_at: z.ZodString;
101
+ updated_at: z.ZodString;
102
+ username: z.ZodOptional<z.ZodString>;
103
+ given_name: z.ZodOptional<z.ZodString>;
104
+ family_name: z.ZodOptional<z.ZodString>;
105
+ nickname: z.ZodOptional<z.ZodString>;
106
+ name: z.ZodOptional<z.ZodString>;
107
+ picture: z.ZodOptional<z.ZodString>;
108
+ locale: z.ZodOptional<z.ZodString>;
109
+ linked_to: z.ZodOptional<z.ZodString>;
110
+ profileData: z.ZodOptional<z.ZodString>;
111
+ app_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
112
+ user_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
113
+ email_verified: z.ZodDefault<z.ZodBoolean>;
114
+ verify_email: z.ZodOptional<z.ZodBoolean>;
115
+ last_ip: z.ZodOptional<z.ZodString>;
116
+ last_login: z.ZodOptional<z.ZodString>;
117
+ provider: z.ZodDefault<z.ZodString>;
118
+ connection: z.ZodDefault<z.ZodString>;
119
+ }, "strip", z.ZodTypeAny, {
162
120
  created_at: string;
163
121
  updated_at: string;
164
122
  email: string;
@@ -177,6 +135,8 @@ declare const userSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
177
135
  picture?: string | undefined;
178
136
  locale?: string | undefined;
179
137
  linked_to?: string | undefined;
138
+ app_metadata?: any;
139
+ user_metadata?: any;
180
140
  verify_email?: boolean | undefined;
181
141
  last_ip?: string | undefined;
182
142
  last_login?: string | undefined;
@@ -218,6 +178,8 @@ declare const userSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
218
178
  picture?: string | undefined;
219
179
  locale?: string | undefined;
220
180
  linked_to?: string | undefined;
181
+ app_metadata?: any;
182
+ user_metadata?: any;
221
183
  verify_email?: boolean | undefined;
222
184
  last_ip?: string | undefined;
223
185
  last_login?: string | undefined;
@@ -757,6 +719,7 @@ declare const ClientSchema: z.ZodObject<{
757
719
  "google-oauth2",
758
720
  "facebook",
759
721
  "vipps",
722
+ "freja",
760
723
  "apple",
761
724
  "email",
762
725
  "Username-Password-Authentication",
@@ -832,7 +795,7 @@ declare const ClientSchema: z.ZodObject<{
832
795
  id?: string | undefined;
833
796
  response_type?: AuthorizationResponseType | undefined;
834
797
  response_mode?: AuthorizationResponseMode | undefined;
835
- strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
798
+ strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
836
799
  enabled_clients?: string[] | undefined;
837
800
  }, {
838
801
  created_at: string;
@@ -856,7 +819,7 @@ declare const ClientSchema: z.ZodObject<{
856
819
  id?: string | undefined;
857
820
  response_type?: AuthorizationResponseType | undefined;
858
821
  response_mode?: AuthorizationResponseMode | undefined;
859
- strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
822
+ strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
860
823
  enabled_clients?: string[] | undefined;
861
824
  }>, "many">;
862
825
  id: z.ZodString;
@@ -1016,7 +979,7 @@ declare const ClientSchema: z.ZodObject<{
1016
979
  id?: string | undefined;
1017
980
  response_type?: AuthorizationResponseType | undefined;
1018
981
  response_mode?: AuthorizationResponseMode | undefined;
1019
- strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
982
+ strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1020
983
  enabled_clients?: string[] | undefined;
1021
984
  }[];
1022
985
  callbacks?: string[] | undefined;
@@ -1094,7 +1057,7 @@ declare const ClientSchema: z.ZodObject<{
1094
1057
  id?: string | undefined;
1095
1058
  response_type?: AuthorizationResponseType | undefined;
1096
1059
  response_mode?: AuthorizationResponseMode | undefined;
1097
- strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1060
+ strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1098
1061
  enabled_clients?: string[] | undefined;
1099
1062
  }[];
1100
1063
  callbacks?: string[] | undefined;
@@ -1212,6 +1175,7 @@ declare const connectionInsertSchema: z.ZodObject<{
1212
1175
  "google-oauth2",
1213
1176
  "facebook",
1214
1177
  "vipps",
1178
+ "freja",
1215
1179
  "apple",
1216
1180
  "email",
1217
1181
  "Username-Password-Authentication",
@@ -1285,7 +1249,7 @@ declare const connectionInsertSchema: z.ZodObject<{
1285
1249
  id?: string | undefined;
1286
1250
  response_type?: AuthorizationResponseType | undefined;
1287
1251
  response_mode?: AuthorizationResponseMode | undefined;
1288
- strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1252
+ strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1289
1253
  enabled_clients?: string[] | undefined;
1290
1254
  }, {
1291
1255
  name: string;
@@ -1307,7 +1271,7 @@ declare const connectionInsertSchema: z.ZodObject<{
1307
1271
  id?: string | undefined;
1308
1272
  response_type?: AuthorizationResponseType | undefined;
1309
1273
  response_mode?: AuthorizationResponseMode | undefined;
1310
- strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1274
+ strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1311
1275
  enabled_clients?: string[] | undefined;
1312
1276
  }>;
1313
1277
  export type ConnectionInsert = z.infer<typeof connectionInsertSchema>;
@@ -1322,6 +1286,7 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1322
1286
  "google-oauth2",
1323
1287
  "facebook",
1324
1288
  "vipps",
1289
+ "freja",
1325
1290
  "apple",
1326
1291
  "email",
1327
1292
  "Username-Password-Authentication",
@@ -1397,7 +1362,7 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1397
1362
  id?: string | undefined;
1398
1363
  response_type?: AuthorizationResponseType | undefined;
1399
1364
  response_mode?: AuthorizationResponseMode | undefined;
1400
- strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1365
+ strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1401
1366
  enabled_clients?: string[] | undefined;
1402
1367
  }, {
1403
1368
  created_at: string;
@@ -1421,7 +1386,7 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
1421
1386
  id?: string | undefined;
1422
1387
  response_type?: AuthorizationResponseType | undefined;
1423
1388
  response_mode?: AuthorizationResponseMode | undefined;
1424
- strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1389
+ strategy?: "email" | "custom" | "google-oauth2" | "facebook" | "vipps" | "freja" | "apple" | "Username-Password-Authentication" | "oidc" | "oauth2" | undefined;
1425
1390
  enabled_clients?: string[] | undefined;
1426
1391
  }>;
1427
1392
  export type Connection = z.infer<typeof connectionSchema>;
@@ -3033,19 +2998,6 @@ export interface DataAdapters {
3033
2998
  tickets: TicketsAdapter;
3034
2999
  users: UserDataAdapter;
3035
3000
  }
3036
- export interface SqlUser extends BaseUser {
3037
- user_id: string;
3038
- email_verified: number;
3039
- last_ip?: string;
3040
- last_login?: string;
3041
- login_count: number;
3042
- provider: string;
3043
- connection: string;
3044
- is_social: number;
3045
- tenant_id: string;
3046
- created_at: string;
3047
- updated_at: string;
3048
- }
3049
3001
  export interface SqlTicket {
3050
3002
  id: string;
3051
3003
  tenant_id: string;
@@ -3094,7 +3046,6 @@ declare const sqlThemeSchema: z.ZodObject<z.objectUtil.extendShape<any, {
3094
3046
  [x: string]: any;
3095
3047
  tenant_id?: unknown;
3096
3048
  }>;
3097
- export type SqlTheme = z.infer<typeof sqlThemeSchema>;
3098
3049
  declare const sqlLoginSchema: z.ZodObject<z.objectUtil.extendShape<any, {
3099
3050
  tenant_id: z.ZodString;
3100
3051
  }>, "strip", z.ZodTypeAny, {
@@ -3104,7 +3055,6 @@ declare const sqlLoginSchema: z.ZodObject<z.objectUtil.extendShape<any, {
3104
3055
  [x: string]: any;
3105
3056
  tenant_id?: unknown;
3106
3057
  }>;
3107
- export type SqlLogin = z.infer<typeof sqlLoginSchema>;
3108
3058
  declare const sqlConnectionSchema: z.ZodObject<z.objectUtil.extendShape<any, {
3109
3059
  tenant_id: z.ZodString;
3110
3060
  }>, "strip", z.ZodTypeAny, {
@@ -3114,7 +3064,6 @@ declare const sqlConnectionSchema: z.ZodObject<z.objectUtil.extendShape<any, {
3114
3064
  [x: string]: any;
3115
3065
  tenant_id?: unknown;
3116
3066
  }>;
3117
- export type SqlConnection = z.infer<typeof sqlConnectionSchema>;
3118
3067
  declare const sqlApplicationSchema: z.ZodObject<{
3119
3068
  tenant_id: z.ZodString;
3120
3069
  addons: z.ZodString;
@@ -3187,13 +3136,200 @@ declare const sqlPromptSettingSchema: z.ZodObject<{
3187
3136
  webauthn_platform_first_factor: number;
3188
3137
  universal_login_experience?: "new" | "classic" | undefined;
3189
3138
  }>;
3139
+ declare const sqlUserSchema: z.ZodObject<{
3140
+ email_verified: z.ZodNumber;
3141
+ is_social: z.ZodNumber;
3142
+ app_metadata: z.ZodString;
3143
+ user_metadata: z.ZodString;
3144
+ tenant_id: z.ZodString;
3145
+ user_id: z.ZodString;
3146
+ email: z.ZodString;
3147
+ login_count: z.ZodNumber;
3148
+ identities: z.ZodOptional<z.ZodArray<z.ZodObject<{
3149
+ connection: z.ZodString;
3150
+ user_id: z.ZodString;
3151
+ provider: z.ZodString;
3152
+ isSocial: z.ZodBoolean;
3153
+ access_token: z.ZodOptional<z.ZodString>;
3154
+ access_token_secret: z.ZodOptional<z.ZodString>;
3155
+ refresh_token: z.ZodOptional<z.ZodString>;
3156
+ profileData: z.ZodOptional<z.ZodObject<{
3157
+ email: z.ZodOptional<z.ZodString>;
3158
+ email_verified: z.ZodOptional<z.ZodBoolean>;
3159
+ name: z.ZodOptional<z.ZodString>;
3160
+ username: z.ZodOptional<z.ZodString>;
3161
+ given_name: z.ZodOptional<z.ZodString>;
3162
+ phone_number: z.ZodOptional<z.ZodString>;
3163
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
3164
+ family_name: z.ZodOptional<z.ZodString>;
3165
+ }, "strip", z.ZodAny, z.objectOutputType<{
3166
+ email: z.ZodOptional<z.ZodString>;
3167
+ email_verified: z.ZodOptional<z.ZodBoolean>;
3168
+ name: z.ZodOptional<z.ZodString>;
3169
+ username: z.ZodOptional<z.ZodString>;
3170
+ given_name: z.ZodOptional<z.ZodString>;
3171
+ phone_number: z.ZodOptional<z.ZodString>;
3172
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
3173
+ family_name: z.ZodOptional<z.ZodString>;
3174
+ }, z.ZodAny, "strip">, z.objectInputType<{
3175
+ email: z.ZodOptional<z.ZodString>;
3176
+ email_verified: z.ZodOptional<z.ZodBoolean>;
3177
+ name: z.ZodOptional<z.ZodString>;
3178
+ username: z.ZodOptional<z.ZodString>;
3179
+ given_name: z.ZodOptional<z.ZodString>;
3180
+ phone_number: z.ZodOptional<z.ZodString>;
3181
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
3182
+ family_name: z.ZodOptional<z.ZodString>;
3183
+ }, z.ZodAny, "strip">>>;
3184
+ }, "strip", z.ZodTypeAny, {
3185
+ connection: string;
3186
+ user_id: string;
3187
+ provider: string;
3188
+ isSocial: boolean;
3189
+ access_token?: string | undefined;
3190
+ access_token_secret?: string | undefined;
3191
+ refresh_token?: string | undefined;
3192
+ profileData?: z.objectOutputType<{
3193
+ email: z.ZodOptional<z.ZodString>;
3194
+ email_verified: z.ZodOptional<z.ZodBoolean>;
3195
+ name: z.ZodOptional<z.ZodString>;
3196
+ username: z.ZodOptional<z.ZodString>;
3197
+ given_name: z.ZodOptional<z.ZodString>;
3198
+ phone_number: z.ZodOptional<z.ZodString>;
3199
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
3200
+ family_name: z.ZodOptional<z.ZodString>;
3201
+ }, z.ZodAny, "strip"> | undefined;
3202
+ }, {
3203
+ connection: string;
3204
+ user_id: string;
3205
+ provider: string;
3206
+ isSocial: boolean;
3207
+ access_token?: string | undefined;
3208
+ access_token_secret?: string | undefined;
3209
+ refresh_token?: string | undefined;
3210
+ profileData?: z.objectInputType<{
3211
+ email: z.ZodOptional<z.ZodString>;
3212
+ email_verified: z.ZodOptional<z.ZodBoolean>;
3213
+ name: z.ZodOptional<z.ZodString>;
3214
+ username: z.ZodOptional<z.ZodString>;
3215
+ given_name: z.ZodOptional<z.ZodString>;
3216
+ phone_number: z.ZodOptional<z.ZodString>;
3217
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
3218
+ family_name: z.ZodOptional<z.ZodString>;
3219
+ }, z.ZodAny, "strip"> | undefined;
3220
+ }>, "many">>;
3221
+ created_at: z.ZodString;
3222
+ updated_at: z.ZodString;
3223
+ username: z.ZodOptional<z.ZodString>;
3224
+ given_name: z.ZodOptional<z.ZodString>;
3225
+ family_name: z.ZodOptional<z.ZodString>;
3226
+ nickname: z.ZodOptional<z.ZodString>;
3227
+ name: z.ZodOptional<z.ZodString>;
3228
+ picture: z.ZodOptional<z.ZodString>;
3229
+ locale: z.ZodOptional<z.ZodString>;
3230
+ linked_to: z.ZodOptional<z.ZodString>;
3231
+ profileData: z.ZodOptional<z.ZodString>;
3232
+ verify_email: z.ZodOptional<z.ZodBoolean>;
3233
+ last_ip: z.ZodOptional<z.ZodString>;
3234
+ last_login: z.ZodOptional<z.ZodString>;
3235
+ provider: z.ZodDefault<z.ZodString>;
3236
+ connection: z.ZodDefault<z.ZodString>;
3237
+ }, "strip", z.ZodTypeAny, {
3238
+ tenant_id: string;
3239
+ created_at: string;
3240
+ updated_at: string;
3241
+ email_verified: number;
3242
+ is_social: number;
3243
+ app_metadata: string;
3244
+ user_metadata: string;
3245
+ user_id: string;
3246
+ email: string;
3247
+ login_count: number;
3248
+ provider: string;
3249
+ connection: string;
3250
+ name?: string | undefined;
3251
+ identities?: {
3252
+ connection: string;
3253
+ user_id: string;
3254
+ provider: string;
3255
+ isSocial: boolean;
3256
+ access_token?: string | undefined;
3257
+ access_token_secret?: string | undefined;
3258
+ refresh_token?: string | undefined;
3259
+ profileData?: z.objectOutputType<{
3260
+ email: z.ZodOptional<z.ZodString>;
3261
+ email_verified: z.ZodOptional<z.ZodBoolean>;
3262
+ name: z.ZodOptional<z.ZodString>;
3263
+ username: z.ZodOptional<z.ZodString>;
3264
+ given_name: z.ZodOptional<z.ZodString>;
3265
+ phone_number: z.ZodOptional<z.ZodString>;
3266
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
3267
+ family_name: z.ZodOptional<z.ZodString>;
3268
+ }, z.ZodAny, "strip"> | undefined;
3269
+ }[] | undefined;
3270
+ username?: string | undefined;
3271
+ given_name?: string | undefined;
3272
+ family_name?: string | undefined;
3273
+ nickname?: string | undefined;
3274
+ picture?: string | undefined;
3275
+ locale?: string | undefined;
3276
+ linked_to?: string | undefined;
3277
+ profileData?: string | undefined;
3278
+ verify_email?: boolean | undefined;
3279
+ last_ip?: string | undefined;
3280
+ last_login?: string | undefined;
3281
+ }, {
3282
+ tenant_id: string;
3283
+ created_at: string;
3284
+ updated_at: string;
3285
+ email_verified: number;
3286
+ is_social: number;
3287
+ app_metadata: string;
3288
+ user_metadata: string;
3289
+ user_id: string;
3290
+ email: string;
3291
+ login_count: number;
3292
+ name?: string | undefined;
3293
+ identities?: {
3294
+ connection: string;
3295
+ user_id: string;
3296
+ provider: string;
3297
+ isSocial: boolean;
3298
+ access_token?: string | undefined;
3299
+ access_token_secret?: string | undefined;
3300
+ refresh_token?: string | undefined;
3301
+ profileData?: z.objectInputType<{
3302
+ email: z.ZodOptional<z.ZodString>;
3303
+ email_verified: z.ZodOptional<z.ZodBoolean>;
3304
+ name: z.ZodOptional<z.ZodString>;
3305
+ username: z.ZodOptional<z.ZodString>;
3306
+ given_name: z.ZodOptional<z.ZodString>;
3307
+ phone_number: z.ZodOptional<z.ZodString>;
3308
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
3309
+ family_name: z.ZodOptional<z.ZodString>;
3310
+ }, z.ZodAny, "strip"> | undefined;
3311
+ }[] | undefined;
3312
+ username?: string | undefined;
3313
+ given_name?: string | undefined;
3314
+ family_name?: string | undefined;
3315
+ nickname?: string | undefined;
3316
+ picture?: string | undefined;
3317
+ locale?: string | undefined;
3318
+ linked_to?: string | undefined;
3319
+ profileData?: string | undefined;
3320
+ verify_email?: boolean | undefined;
3321
+ last_ip?: string | undefined;
3322
+ last_login?: string | undefined;
3323
+ provider?: string | undefined;
3324
+ connection?: string | undefined;
3325
+ }>;
3190
3326
  export interface Database {
3191
3327
  applications: z.infer<typeof sqlApplicationSchema>;
3192
3328
  branding: SqlBranding;
3193
3329
  codes: Code & {
3194
3330
  tenant_id: string;
3195
3331
  };
3196
- connections: SqlConnection;
3332
+ connections: z.infer<typeof sqlConnectionSchema>;
3197
3333
  domains: Domain & {
3198
3334
  tenant_id: string;
3199
3335
  };
@@ -3203,18 +3339,18 @@ export interface Database {
3203
3339
  keys: SigningKey & {
3204
3340
  created_at: string;
3205
3341
  };
3206
- logins: SqlLogin;
3342
+ logins: z.infer<typeof sqlLoginSchema>;
3207
3343
  logs: SqlLog;
3208
3344
  passwords: Password & {
3209
3345
  tenant_id: string;
3210
3346
  };
3211
3347
  prompt_settings: z.infer<typeof sqlPromptSettingSchema>;
3212
- users: SqlUser;
3348
+ users: z.infer<typeof sqlUserSchema>;
3213
3349
  sessions: Session & {
3214
3350
  tenant_id: string;
3215
3351
  };
3216
3352
  tenants: Tenant;
3217
- themes: SqlTheme;
3353
+ themes: z.infer<typeof sqlThemeSchema>;
3218
3354
  tickets: SqlTicket;
3219
3355
  }
3220
3356
  declare function createAdapters(db: Kysely<Database>): DataAdapters;