authhero 0.56.0 → 0.59.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.
@@ -2712,7 +2712,6 @@ export declare const passwordSchema: z.ZodObject<{
2712
2712
  export type Password = z.infer<typeof passwordSchema>;
2713
2713
  export declare const sessionInsertSchema: z.ZodObject<{
2714
2714
  id: z.ZodString;
2715
- client_id: z.ZodString;
2716
2715
  revoked_at: z.ZodOptional<z.ZodString>;
2717
2716
  used_at: z.ZodString;
2718
2717
  user_id: z.ZodString;
@@ -2744,7 +2743,6 @@ export declare const sessionInsertSchema: z.ZodObject<{
2744
2743
  }, "strip", z.ZodTypeAny, {
2745
2744
  user_id: string;
2746
2745
  id: string;
2747
- client_id: string;
2748
2746
  used_at: string;
2749
2747
  device: {
2750
2748
  last_ip: string;
@@ -2761,7 +2759,6 @@ export declare const sessionInsertSchema: z.ZodObject<{
2761
2759
  }, {
2762
2760
  user_id: string;
2763
2761
  id: string;
2764
- client_id: string;
2765
2762
  used_at: string;
2766
2763
  device: {
2767
2764
  last_ip: string;
@@ -2779,7 +2776,6 @@ export declare const sessionInsertSchema: z.ZodObject<{
2779
2776
  export type SessionInsert = z.infer<typeof sessionInsertSchema>;
2780
2777
  export declare const sessionSchema: z.ZodObject<{
2781
2778
  id: z.ZodString;
2782
- client_id: z.ZodString;
2783
2779
  revoked_at: z.ZodOptional<z.ZodString>;
2784
2780
  used_at: z.ZodString;
2785
2781
  user_id: z.ZodString;
@@ -2817,7 +2813,6 @@ export declare const sessionSchema: z.ZodObject<{
2817
2813
  updated_at: string;
2818
2814
  user_id: string;
2819
2815
  id: string;
2820
- client_id: string;
2821
2816
  used_at: string;
2822
2817
  device: {
2823
2818
  last_ip: string;
@@ -2838,7 +2833,6 @@ export declare const sessionSchema: z.ZodObject<{
2838
2833
  updated_at: string;
2839
2834
  user_id: string;
2840
2835
  id: string;
2841
- client_id: string;
2842
2836
  used_at: string;
2843
2837
  device: {
2844
2838
  last_ip: string;
@@ -4319,13 +4313,14 @@ export declare const emailProviderSchema: z.ZodObject<{
4319
4313
  }>;
4320
4314
  export type EmailProvider = z.infer<typeof emailProviderSchema>;
4321
4315
  export declare const refreshTokenInsertSchema: z.ZodObject<{
4322
- token: z.ZodString;
4316
+ id: z.ZodString;
4323
4317
  session_id: z.ZodString;
4324
4318
  user_id: z.ZodString;
4319
+ client_id: z.ZodString;
4325
4320
  expires_at: z.ZodOptional<z.ZodString>;
4326
4321
  idle_expires_at: z.ZodOptional<z.ZodString>;
4327
4322
  last_exchanged_at: z.ZodOptional<z.ZodString>;
4328
- device: z.ZodOptional<z.ZodObject<{
4323
+ device: z.ZodObject<{
4329
4324
  initial_user_agent: z.ZodString;
4330
4325
  initial_ip: z.ZodString;
4331
4326
  initial_asn: z.ZodString;
@@ -4346,7 +4341,7 @@ export declare const refreshTokenInsertSchema: z.ZodObject<{
4346
4341
  initial_asn: string;
4347
4342
  last_user_agent: string;
4348
4343
  last_asn: string;
4349
- }>>;
4344
+ }>;
4350
4345
  resource_servers: z.ZodArray<z.ZodObject<{
4351
4346
  audience: z.ZodString;
4352
4347
  scopes: z.ZodString;
@@ -4360,7 +4355,16 @@ export declare const refreshTokenInsertSchema: z.ZodObject<{
4360
4355
  rotating: z.ZodBoolean;
4361
4356
  }, "strip", z.ZodTypeAny, {
4362
4357
  user_id: string;
4363
- token: string;
4358
+ id: string;
4359
+ client_id: string;
4360
+ device: {
4361
+ last_ip: string;
4362
+ initial_user_agent: string;
4363
+ initial_ip: string;
4364
+ initial_asn: string;
4365
+ last_user_agent: string;
4366
+ last_asn: string;
4367
+ };
4364
4368
  session_id: string;
4365
4369
  resource_servers: {
4366
4370
  audience: string;
@@ -4369,18 +4373,19 @@ export declare const refreshTokenInsertSchema: z.ZodObject<{
4369
4373
  rotating: boolean;
4370
4374
  expires_at?: string | undefined;
4371
4375
  idle_expires_at?: string | undefined;
4372
- device?: {
4376
+ last_exchanged_at?: string | undefined;
4377
+ }, {
4378
+ user_id: string;
4379
+ id: string;
4380
+ client_id: string;
4381
+ device: {
4373
4382
  last_ip: string;
4374
4383
  initial_user_agent: string;
4375
4384
  initial_ip: string;
4376
4385
  initial_asn: string;
4377
4386
  last_user_agent: string;
4378
4387
  last_asn: string;
4379
- } | undefined;
4380
- last_exchanged_at?: string | undefined;
4381
- }, {
4382
- user_id: string;
4383
- token: string;
4388
+ };
4384
4389
  session_id: string;
4385
4390
  resource_servers: {
4386
4391
  audience: string;
@@ -4389,25 +4394,18 @@ export declare const refreshTokenInsertSchema: z.ZodObject<{
4389
4394
  rotating: boolean;
4390
4395
  expires_at?: string | undefined;
4391
4396
  idle_expires_at?: string | undefined;
4392
- device?: {
4393
- last_ip: string;
4394
- initial_user_agent: string;
4395
- initial_ip: string;
4396
- initial_asn: string;
4397
- last_user_agent: string;
4398
- last_asn: string;
4399
- } | undefined;
4400
4397
  last_exchanged_at?: string | undefined;
4401
4398
  }>;
4402
4399
  export type RefreshTokenInsert = z.infer<typeof refreshTokenInsertSchema>;
4403
4400
  export declare const refreshTokenSchema: z.ZodObject<{
4404
- token: z.ZodString;
4401
+ id: z.ZodString;
4405
4402
  session_id: z.ZodString;
4406
4403
  user_id: z.ZodString;
4404
+ client_id: z.ZodString;
4407
4405
  expires_at: z.ZodOptional<z.ZodString>;
4408
4406
  idle_expires_at: z.ZodOptional<z.ZodString>;
4409
4407
  last_exchanged_at: z.ZodOptional<z.ZodString>;
4410
- device: z.ZodOptional<z.ZodObject<{
4408
+ device: z.ZodObject<{
4411
4409
  initial_user_agent: z.ZodString;
4412
4410
  initial_ip: z.ZodString;
4413
4411
  initial_asn: z.ZodString;
@@ -4428,7 +4426,7 @@ export declare const refreshTokenSchema: z.ZodObject<{
4428
4426
  initial_asn: string;
4429
4427
  last_user_agent: string;
4430
4428
  last_asn: string;
4431
- }>>;
4429
+ }>;
4432
4430
  resource_servers: z.ZodArray<z.ZodObject<{
4433
4431
  audience: z.ZodString;
4434
4432
  scopes: z.ZodString;
@@ -4444,7 +4442,16 @@ export declare const refreshTokenSchema: z.ZodObject<{
4444
4442
  }, "strip", z.ZodTypeAny, {
4445
4443
  created_at: string;
4446
4444
  user_id: string;
4447
- token: string;
4445
+ id: string;
4446
+ client_id: string;
4447
+ device: {
4448
+ last_ip: string;
4449
+ initial_user_agent: string;
4450
+ initial_ip: string;
4451
+ initial_asn: string;
4452
+ last_user_agent: string;
4453
+ last_asn: string;
4454
+ };
4448
4455
  session_id: string;
4449
4456
  resource_servers: {
4450
4457
  audience: string;
@@ -4453,19 +4460,20 @@ export declare const refreshTokenSchema: z.ZodObject<{
4453
4460
  rotating: boolean;
4454
4461
  expires_at?: string | undefined;
4455
4462
  idle_expires_at?: string | undefined;
4456
- device?: {
4463
+ last_exchanged_at?: string | undefined;
4464
+ }, {
4465
+ created_at: string;
4466
+ user_id: string;
4467
+ id: string;
4468
+ client_id: string;
4469
+ device: {
4457
4470
  last_ip: string;
4458
4471
  initial_user_agent: string;
4459
4472
  initial_ip: string;
4460
4473
  initial_asn: string;
4461
4474
  last_user_agent: string;
4462
4475
  last_asn: string;
4463
- } | undefined;
4464
- last_exchanged_at?: string | undefined;
4465
- }, {
4466
- created_at: string;
4467
- user_id: string;
4468
- token: string;
4476
+ };
4469
4477
  session_id: string;
4470
4478
  resource_servers: {
4471
4479
  audience: string;
@@ -4474,14 +4482,6 @@ export declare const refreshTokenSchema: z.ZodObject<{
4474
4482
  rotating: boolean;
4475
4483
  expires_at?: string | undefined;
4476
4484
  idle_expires_at?: string | undefined;
4477
- device?: {
4478
- last_ip: string;
4479
- initial_user_agent: string;
4480
- initial_ip: string;
4481
- initial_asn: string;
4482
- last_user_agent: string;
4483
- last_asn: string;
4484
- } | undefined;
4485
4485
  last_exchanged_at?: string | undefined;
4486
4486
  }>;
4487
4487
  export type RefreshToken = z.infer<typeof refreshTokenSchema>;
@@ -4746,6 +4746,61 @@ export declare function init(config: AuthHeroConfig): {
4746
4746
  Bindings: Bindings;
4747
4747
  Variables: Variables;
4748
4748
  }, import("hono/types").MergeSchemaPath<{
4749
+ "/:id": {
4750
+ $get: {
4751
+ input: {
4752
+ param: {
4753
+ id: string;
4754
+ };
4755
+ } & {
4756
+ header: {
4757
+ "tenant-id": string;
4758
+ };
4759
+ };
4760
+ output: {
4761
+ user_id: string;
4762
+ id: string;
4763
+ client_id: string;
4764
+ device: {
4765
+ last_ip: string;
4766
+ initial_user_agent: string;
4767
+ initial_ip: string;
4768
+ initial_asn: string;
4769
+ last_user_agent: string;
4770
+ last_asn: string;
4771
+ };
4772
+ session_id: string;
4773
+ resource_servers: {
4774
+ audience: string;
4775
+ scopes: string;
4776
+ }[];
4777
+ rotating: boolean;
4778
+ expires_at?: string | undefined;
4779
+ idle_expires_at?: string | undefined;
4780
+ last_exchanged_at?: string | undefined;
4781
+ };
4782
+ outputFormat: "json" | "text";
4783
+ status: 200;
4784
+ };
4785
+ };
4786
+ } & {
4787
+ "/:id": {
4788
+ $delete: {
4789
+ input: {
4790
+ param: {
4791
+ id: string;
4792
+ };
4793
+ } & {
4794
+ header: {
4795
+ "tenant-id": string;
4796
+ };
4797
+ };
4798
+ output: {};
4799
+ outputFormat: string;
4800
+ status: 200;
4801
+ };
4802
+ };
4803
+ }, "/refresh_tokens"> & import("hono/types").MergeSchemaPath<{
4749
4804
  "/:id": {
4750
4805
  $get: {
4751
4806
  input: {
@@ -4762,7 +4817,6 @@ export declare function init(config: AuthHeroConfig): {
4762
4817
  updated_at: string;
4763
4818
  user_id: string;
4764
4819
  id: string;
4765
- client_id: string;
4766
4820
  used_at: string;
4767
4821
  device: {
4768
4822
  last_ip: string;
@@ -6373,7 +6427,6 @@ export declare function init(config: AuthHeroConfig): {
6373
6427
  updated_at: string;
6374
6428
  user_id: string;
6375
6429
  id: string;
6376
- client_id: string;
6377
6430
  used_at: string;
6378
6431
  device: {
6379
6432
  last_ip: string;
@@ -6398,7 +6451,6 @@ export declare function init(config: AuthHeroConfig): {
6398
6451
  updated_at: string;
6399
6452
  user_id: string;
6400
6453
  id: string;
6401
- client_id: string;
6402
6454
  used_at: string;
6403
6455
  device: {
6404
6456
  last_ip: string;