@authhero/kysely-adapter 8.0.0 → 8.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.
@@ -1933,7 +1933,6 @@ declare const passwordSchema: z.ZodObject<{
1933
1933
  export type Password = z.infer<typeof passwordSchema>;
1934
1934
  declare const sessionInsertSchema: z.ZodObject<{
1935
1935
  id: z.ZodString;
1936
- client_id: z.ZodString;
1937
1936
  revoked_at: z.ZodOptional<z.ZodString>;
1938
1937
  used_at: z.ZodString;
1939
1938
  user_id: z.ZodString;
@@ -1965,7 +1964,6 @@ declare const sessionInsertSchema: z.ZodObject<{
1965
1964
  }, "strip", z.ZodTypeAny, {
1966
1965
  user_id: string;
1967
1966
  id: string;
1968
- client_id: string;
1969
1967
  used_at: string;
1970
1968
  device: {
1971
1969
  last_ip: string;
@@ -1982,7 +1980,6 @@ declare const sessionInsertSchema: z.ZodObject<{
1982
1980
  }, {
1983
1981
  user_id: string;
1984
1982
  id: string;
1985
- client_id: string;
1986
1983
  used_at: string;
1987
1984
  device: {
1988
1985
  last_ip: string;
@@ -2000,7 +1997,6 @@ declare const sessionInsertSchema: z.ZodObject<{
2000
1997
  export type SessionInsert = z.infer<typeof sessionInsertSchema>;
2001
1998
  declare const sessionSchema: z.ZodObject<{
2002
1999
  id: z.ZodString;
2003
- client_id: z.ZodString;
2004
2000
  revoked_at: z.ZodOptional<z.ZodString>;
2005
2001
  used_at: z.ZodString;
2006
2002
  user_id: z.ZodString;
@@ -2038,7 +2034,6 @@ declare const sessionSchema: z.ZodObject<{
2038
2034
  updated_at: string;
2039
2035
  user_id: string;
2040
2036
  id: string;
2041
- client_id: string;
2042
2037
  used_at: string;
2043
2038
  device: {
2044
2039
  last_ip: string;
@@ -2059,7 +2054,6 @@ declare const sessionSchema: z.ZodObject<{
2059
2054
  updated_at: string;
2060
2055
  user_id: string;
2061
2056
  id: string;
2062
- client_id: string;
2063
2057
  used_at: string;
2064
2058
  device: {
2065
2059
  last_ip: string;
@@ -3130,13 +3124,14 @@ declare const emailProviderSchema: z.ZodObject<{
3130
3124
  }>;
3131
3125
  export type EmailProvider = z.infer<typeof emailProviderSchema>;
3132
3126
  declare const refreshTokenInsertSchema: z.ZodObject<{
3133
- token: z.ZodString;
3127
+ id: z.ZodString;
3134
3128
  session_id: z.ZodString;
3135
3129
  user_id: z.ZodString;
3130
+ client_id: z.ZodString;
3136
3131
  expires_at: z.ZodOptional<z.ZodString>;
3137
3132
  idle_expires_at: z.ZodOptional<z.ZodString>;
3138
3133
  last_exchanged_at: z.ZodOptional<z.ZodString>;
3139
- device: z.ZodOptional<z.ZodObject<{
3134
+ device: z.ZodObject<{
3140
3135
  initial_user_agent: z.ZodString;
3141
3136
  initial_ip: z.ZodString;
3142
3137
  initial_asn: z.ZodString;
@@ -3157,7 +3152,7 @@ declare const refreshTokenInsertSchema: z.ZodObject<{
3157
3152
  initial_asn: string;
3158
3153
  last_user_agent: string;
3159
3154
  last_asn: string;
3160
- }>>;
3155
+ }>;
3161
3156
  resource_servers: z.ZodArray<z.ZodObject<{
3162
3157
  audience: z.ZodString;
3163
3158
  scopes: z.ZodString;
@@ -3171,7 +3166,16 @@ declare const refreshTokenInsertSchema: z.ZodObject<{
3171
3166
  rotating: z.ZodBoolean;
3172
3167
  }, "strip", z.ZodTypeAny, {
3173
3168
  user_id: string;
3174
- token: string;
3169
+ id: string;
3170
+ client_id: string;
3171
+ device: {
3172
+ last_ip: string;
3173
+ initial_user_agent: string;
3174
+ initial_ip: string;
3175
+ initial_asn: string;
3176
+ last_user_agent: string;
3177
+ last_asn: string;
3178
+ };
3175
3179
  session_id: string;
3176
3180
  resource_servers: {
3177
3181
  audience: string;
@@ -3180,18 +3184,19 @@ declare const refreshTokenInsertSchema: z.ZodObject<{
3180
3184
  rotating: boolean;
3181
3185
  expires_at?: string | undefined;
3182
3186
  idle_expires_at?: string | undefined;
3183
- device?: {
3187
+ last_exchanged_at?: string | undefined;
3188
+ }, {
3189
+ user_id: string;
3190
+ id: string;
3191
+ client_id: string;
3192
+ device: {
3184
3193
  last_ip: string;
3185
3194
  initial_user_agent: string;
3186
3195
  initial_ip: string;
3187
3196
  initial_asn: string;
3188
3197
  last_user_agent: string;
3189
3198
  last_asn: string;
3190
- } | undefined;
3191
- last_exchanged_at?: string | undefined;
3192
- }, {
3193
- user_id: string;
3194
- token: string;
3199
+ };
3195
3200
  session_id: string;
3196
3201
  resource_servers: {
3197
3202
  audience: string;
@@ -3200,25 +3205,18 @@ declare const refreshTokenInsertSchema: z.ZodObject<{
3200
3205
  rotating: boolean;
3201
3206
  expires_at?: string | undefined;
3202
3207
  idle_expires_at?: string | undefined;
3203
- device?: {
3204
- last_ip: string;
3205
- initial_user_agent: string;
3206
- initial_ip: string;
3207
- initial_asn: string;
3208
- last_user_agent: string;
3209
- last_asn: string;
3210
- } | undefined;
3211
3208
  last_exchanged_at?: string | undefined;
3212
3209
  }>;
3213
3210
  export type RefreshTokenInsert = z.infer<typeof refreshTokenInsertSchema>;
3214
3211
  declare const refreshTokenSchema: z.ZodObject<{
3215
- token: z.ZodString;
3212
+ id: z.ZodString;
3216
3213
  session_id: z.ZodString;
3217
3214
  user_id: z.ZodString;
3215
+ client_id: z.ZodString;
3218
3216
  expires_at: z.ZodOptional<z.ZodString>;
3219
3217
  idle_expires_at: z.ZodOptional<z.ZodString>;
3220
3218
  last_exchanged_at: z.ZodOptional<z.ZodString>;
3221
- device: z.ZodOptional<z.ZodObject<{
3219
+ device: z.ZodObject<{
3222
3220
  initial_user_agent: z.ZodString;
3223
3221
  initial_ip: z.ZodString;
3224
3222
  initial_asn: z.ZodString;
@@ -3239,7 +3237,7 @@ declare const refreshTokenSchema: z.ZodObject<{
3239
3237
  initial_asn: string;
3240
3238
  last_user_agent: string;
3241
3239
  last_asn: string;
3242
- }>>;
3240
+ }>;
3243
3241
  resource_servers: z.ZodArray<z.ZodObject<{
3244
3242
  audience: z.ZodString;
3245
3243
  scopes: z.ZodString;
@@ -3255,7 +3253,16 @@ declare const refreshTokenSchema: z.ZodObject<{
3255
3253
  }, "strip", z.ZodTypeAny, {
3256
3254
  created_at: string;
3257
3255
  user_id: string;
3258
- token: string;
3256
+ id: string;
3257
+ client_id: string;
3258
+ device: {
3259
+ last_ip: string;
3260
+ initial_user_agent: string;
3261
+ initial_ip: string;
3262
+ initial_asn: string;
3263
+ last_user_agent: string;
3264
+ last_asn: string;
3265
+ };
3259
3266
  session_id: string;
3260
3267
  resource_servers: {
3261
3268
  audience: string;
@@ -3264,19 +3271,20 @@ declare const refreshTokenSchema: z.ZodObject<{
3264
3271
  rotating: boolean;
3265
3272
  expires_at?: string | undefined;
3266
3273
  idle_expires_at?: string | undefined;
3267
- device?: {
3274
+ last_exchanged_at?: string | undefined;
3275
+ }, {
3276
+ created_at: string;
3277
+ user_id: string;
3278
+ id: string;
3279
+ client_id: string;
3280
+ device: {
3268
3281
  last_ip: string;
3269
3282
  initial_user_agent: string;
3270
3283
  initial_ip: string;
3271
3284
  initial_asn: string;
3272
3285
  last_user_agent: string;
3273
3286
  last_asn: string;
3274
- } | undefined;
3275
- last_exchanged_at?: string | undefined;
3276
- }, {
3277
- created_at: string;
3278
- user_id: string;
3279
- token: string;
3287
+ };
3280
3288
  session_id: string;
3281
3289
  resource_servers: {
3282
3290
  audience: string;
@@ -3285,14 +3293,6 @@ declare const refreshTokenSchema: z.ZodObject<{
3285
3293
  rotating: boolean;
3286
3294
  expires_at?: string | undefined;
3287
3295
  idle_expires_at?: string | undefined;
3288
- device?: {
3289
- last_ip: string;
3290
- initial_user_agent: string;
3291
- initial_ip: string;
3292
- initial_asn: string;
3293
- last_user_agent: string;
3294
- last_asn: string;
3295
- } | undefined;
3296
3296
  last_exchanged_at?: string | undefined;
3297
3297
  }>;
3298
3298
  export type RefreshToken = z.infer<typeof refreshTokenSchema>;
@@ -3844,7 +3844,6 @@ declare const sqlSessionSchema: z.ZodObject<{
3844
3844
  device: z.ZodString;
3845
3845
  clients: z.ZodString;
3846
3846
  id: z.ZodString;
3847
- client_id: z.ZodString;
3848
3847
  revoked_at: z.ZodOptional<z.ZodString>;
3849
3848
  used_at: z.ZodString;
3850
3849
  user_id: z.ZodString;
@@ -3862,7 +3861,6 @@ declare const sqlSessionSchema: z.ZodObject<{
3862
3861
  user_id: string;
3863
3862
  device: string;
3864
3863
  clients: string;
3865
- client_id: string;
3866
3864
  used_at: string;
3867
3865
  authenticated_at: string;
3868
3866
  last_interaction_at: string;
@@ -3877,7 +3875,6 @@ declare const sqlSessionSchema: z.ZodObject<{
3877
3875
  user_id: string;
3878
3876
  device: string;
3879
3877
  clients: string;
3880
- client_id: string;
3881
3878
  used_at: string;
3882
3879
  authenticated_at: string;
3883
3880
  last_interaction_at: string;
@@ -3890,34 +3887,37 @@ declare const sqlRefreshTokensSchema: z.ZodObject<{
3890
3887
  device: z.ZodString;
3891
3888
  resource_servers: z.ZodString;
3892
3889
  rotating: z.ZodNumber;
3893
- token: z.ZodString;
3890
+ id: z.ZodString;
3894
3891
  session_id: z.ZodString;
3895
3892
  user_id: z.ZodString;
3893
+ client_id: z.ZodString;
3896
3894
  expires_at: z.ZodOptional<z.ZodString>;
3897
3895
  idle_expires_at: z.ZodOptional<z.ZodString>;
3898
3896
  last_exchanged_at: z.ZodOptional<z.ZodString>;
3899
3897
  created_at: z.ZodString;
3900
3898
  }, "strip", z.ZodTypeAny, {
3901
3899
  tenant_id: string;
3900
+ id: string;
3902
3901
  created_at: string;
3903
3902
  user_id: string;
3904
3903
  device: string;
3905
3904
  resource_servers: string;
3906
3905
  rotating: number;
3907
- token: string;
3908
3906
  session_id: string;
3907
+ client_id: string;
3909
3908
  expires_at?: string | undefined;
3910
3909
  idle_expires_at?: string | undefined;
3911
3910
  last_exchanged_at?: string | undefined;
3912
3911
  }, {
3913
3912
  tenant_id: string;
3913
+ id: string;
3914
3914
  created_at: string;
3915
3915
  user_id: string;
3916
3916
  device: string;
3917
3917
  resource_servers: string;
3918
3918
  rotating: number;
3919
- token: string;
3920
3919
  session_id: string;
3920
+ client_id: string;
3921
3921
  expires_at?: string | undefined;
3922
3922
  idle_expires_at?: string | undefined;
3923
3923
  last_exchanged_at?: string | undefined;