authhero 0.140.0 → 0.141.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.
@@ -17032,6 +17032,42 @@ export declare function init(config: AuthHeroConfig): {
17032
17032
  output: {};
17033
17033
  outputFormat: string;
17034
17034
  status: 302;
17035
+ } | {
17036
+ input: {
17037
+ query: {
17038
+ state: string;
17039
+ code?: string | undefined;
17040
+ error?: string | undefined;
17041
+ scope?: string | undefined;
17042
+ error_description?: string | undefined;
17043
+ error_reason?: string | undefined;
17044
+ error_code?: string | undefined;
17045
+ hd?: string | undefined;
17046
+ };
17047
+ };
17048
+ output: {
17049
+ message: string;
17050
+ };
17051
+ outputFormat: "json";
17052
+ status: 400;
17053
+ } | {
17054
+ input: {
17055
+ query: {
17056
+ state: string;
17057
+ code?: string | undefined;
17058
+ error?: string | undefined;
17059
+ scope?: string | undefined;
17060
+ error_description?: string | undefined;
17061
+ error_reason?: string | undefined;
17062
+ error_code?: string | undefined;
17063
+ hd?: string | undefined;
17064
+ };
17065
+ };
17066
+ output: {
17067
+ message: string;
17068
+ };
17069
+ outputFormat: "json";
17070
+ status: 500;
17035
17071
  };
17036
17072
  };
17037
17073
  } & {
@@ -17052,6 +17088,42 @@ export declare function init(config: AuthHeroConfig): {
17052
17088
  output: {};
17053
17089
  outputFormat: string;
17054
17090
  status: 302;
17091
+ } | {
17092
+ input: {
17093
+ form: {
17094
+ state: string;
17095
+ code?: string | undefined;
17096
+ error?: string | undefined;
17097
+ scope?: string | undefined;
17098
+ error_description?: string | undefined;
17099
+ error_reason?: string | undefined;
17100
+ error_code?: string | undefined;
17101
+ hd?: string | undefined;
17102
+ };
17103
+ };
17104
+ output: {
17105
+ message: string;
17106
+ };
17107
+ outputFormat: "json";
17108
+ status: 400;
17109
+ } | {
17110
+ input: {
17111
+ form: {
17112
+ state: string;
17113
+ code?: string | undefined;
17114
+ error?: string | undefined;
17115
+ scope?: string | undefined;
17116
+ error_description?: string | undefined;
17117
+ error_reason?: string | undefined;
17118
+ error_code?: string | undefined;
17119
+ hd?: string | undefined;
17120
+ };
17121
+ };
17122
+ output: {
17123
+ message: string;
17124
+ };
17125
+ outputFormat: "json";
17126
+ status: 500;
17055
17127
  };
17056
17128
  };
17057
17129
  }, "/callback"> & import("hono/types").MergeSchemaPath<{
@@ -17082,9 +17154,9 @@ export declare function init(config: AuthHeroConfig): {
17082
17154
  max_age?: string | undefined;
17083
17155
  };
17084
17156
  };
17085
- output: {};
17086
- outputFormat: string;
17087
- status: 200;
17157
+ output: Response;
17158
+ outputFormat: "json";
17159
+ status: import("hono/utils/http-status").StatusCode;
17088
17160
  } | {
17089
17161
  input: {
17090
17162
  query: {
@@ -17114,6 +17186,105 @@ export declare function init(config: AuthHeroConfig): {
17114
17186
  output: {};
17115
17187
  outputFormat: string;
17116
17188
  status: 302;
17189
+ } | {
17190
+ input: {
17191
+ query: {
17192
+ client_id: string;
17193
+ state: string;
17194
+ redirect_uri: string;
17195
+ nonce?: string | undefined;
17196
+ response_mode?: AuthorizationResponseMode | undefined;
17197
+ connection?: string | undefined;
17198
+ response_type?: AuthorizationResponseType | undefined;
17199
+ audience?: string | undefined;
17200
+ auth0Client?: string | undefined;
17201
+ scope?: string | undefined;
17202
+ login_ticket?: string | undefined;
17203
+ screen_hint?: string | undefined;
17204
+ code_challenge_method?: CodeChallengeMethod | undefined;
17205
+ realm?: string | undefined;
17206
+ code_challenge?: string | undefined;
17207
+ organization?: string | undefined;
17208
+ prompt?: string | undefined;
17209
+ ui_locales?: string | undefined;
17210
+ vendor_id?: string | undefined;
17211
+ login_hint?: string | undefined;
17212
+ max_age?: string | undefined;
17213
+ };
17214
+ };
17215
+ output: string | {
17216
+ access_token: string;
17217
+ token_type: string;
17218
+ expires_in: number;
17219
+ refresh_token?: string | undefined | undefined;
17220
+ state?: string | undefined | undefined;
17221
+ scope?: string | undefined | undefined;
17222
+ id_token?: string | undefined | undefined;
17223
+ };
17224
+ outputFormat: "json";
17225
+ status: 200;
17226
+ } | {
17227
+ input: {
17228
+ query: {
17229
+ client_id: string;
17230
+ state: string;
17231
+ redirect_uri: string;
17232
+ nonce?: string | undefined;
17233
+ response_mode?: AuthorizationResponseMode | undefined;
17234
+ connection?: string | undefined;
17235
+ response_type?: AuthorizationResponseType | undefined;
17236
+ audience?: string | undefined;
17237
+ auth0Client?: string | undefined;
17238
+ scope?: string | undefined;
17239
+ login_ticket?: string | undefined;
17240
+ screen_hint?: string | undefined;
17241
+ code_challenge_method?: CodeChallengeMethod | undefined;
17242
+ realm?: string | undefined;
17243
+ code_challenge?: string | undefined;
17244
+ organization?: string | undefined;
17245
+ prompt?: string | undefined;
17246
+ ui_locales?: string | undefined;
17247
+ vendor_id?: string | undefined;
17248
+ login_hint?: string | undefined;
17249
+ max_age?: string | undefined;
17250
+ };
17251
+ };
17252
+ output: {
17253
+ message: string;
17254
+ };
17255
+ outputFormat: "json";
17256
+ status: 400;
17257
+ } | {
17258
+ input: {
17259
+ query: {
17260
+ client_id: string;
17261
+ state: string;
17262
+ redirect_uri: string;
17263
+ nonce?: string | undefined;
17264
+ response_mode?: AuthorizationResponseMode | undefined;
17265
+ connection?: string | undefined;
17266
+ response_type?: AuthorizationResponseType | undefined;
17267
+ audience?: string | undefined;
17268
+ auth0Client?: string | undefined;
17269
+ scope?: string | undefined;
17270
+ login_ticket?: string | undefined;
17271
+ screen_hint?: string | undefined;
17272
+ code_challenge_method?: CodeChallengeMethod | undefined;
17273
+ realm?: string | undefined;
17274
+ code_challenge?: string | undefined;
17275
+ organization?: string | undefined;
17276
+ prompt?: string | undefined;
17277
+ ui_locales?: string | undefined;
17278
+ vendor_id?: string | undefined;
17279
+ login_hint?: string | undefined;
17280
+ max_age?: string | undefined;
17281
+ };
17282
+ };
17283
+ output: {
17284
+ message: string;
17285
+ };
17286
+ outputFormat: "json";
17287
+ status: 403;
17117
17288
  };
17118
17289
  };
17119
17290
  }, "/authorize"> & import("hono/types").MergeSchemaPath<{
@@ -17216,6 +17387,48 @@ export declare function init(config: AuthHeroConfig): {
17216
17387
  output: {};
17217
17388
  outputFormat: string;
17218
17389
  status: 302;
17390
+ } | {
17391
+ input: {
17392
+ query: {
17393
+ email: string;
17394
+ client_id: string;
17395
+ connection: string;
17396
+ response_type: AuthorizationResponseType;
17397
+ state: string;
17398
+ scope: string;
17399
+ redirect_uri: string;
17400
+ verification_code: string;
17401
+ nonce?: string | undefined;
17402
+ audience?: string | undefined;
17403
+ };
17404
+ };
17405
+ output: {
17406
+ error: string;
17407
+ error_description?: string | undefined;
17408
+ };
17409
+ outputFormat: "json";
17410
+ status: 400;
17411
+ } | {
17412
+ input: {
17413
+ query: {
17414
+ email: string;
17415
+ client_id: string;
17416
+ connection: string;
17417
+ response_type: AuthorizationResponseType;
17418
+ state: string;
17419
+ scope: string;
17420
+ redirect_uri: string;
17421
+ verification_code: string;
17422
+ nonce?: string | undefined;
17423
+ audience?: string | undefined;
17424
+ };
17425
+ };
17426
+ output: {
17427
+ error: string;
17428
+ error_description?: string | undefined;
17429
+ };
17430
+ outputFormat: "json";
17431
+ status: 500;
17219
17432
  };
17220
17433
  };
17221
17434
  }, "/passwordless"> & import("hono/types").MergeSchemaPath<{
@@ -17258,6 +17471,42 @@ export declare function init(config: AuthHeroConfig): {
17258
17471
  }, "/dbconnections"> & import("hono/types").MergeSchemaPath<{
17259
17472
  "/": {
17260
17473
  $post: {
17474
+ input: {
17475
+ form: {
17476
+ grant_type: "client_credentials";
17477
+ client_id?: string | undefined;
17478
+ audience?: string | undefined;
17479
+ scope?: string | undefined;
17480
+ client_secret?: string | undefined;
17481
+ } | {
17482
+ code: string;
17483
+ client_id: string;
17484
+ redirect_uri: string;
17485
+ grant_type: "authorization_code";
17486
+ code_verifier: string;
17487
+ } | {
17488
+ code: string;
17489
+ grant_type: "authorization_code";
17490
+ client_id?: string | undefined;
17491
+ client_secret?: string | undefined;
17492
+ redirect_uri?: string | undefined;
17493
+ } | {
17494
+ client_id: string;
17495
+ refresh_token: string;
17496
+ grant_type: "refresh_token";
17497
+ redirect_uri?: string | undefined;
17498
+ } | {
17499
+ client_id: string;
17500
+ username: string;
17501
+ otp: string;
17502
+ grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
17503
+ realm: "email" | "sms";
17504
+ };
17505
+ };
17506
+ output: {};
17507
+ outputFormat: string;
17508
+ status: 302;
17509
+ } | {
17261
17510
  input: {
17262
17511
  form: {
17263
17512
  grant_type: "client_credentials";
@@ -17301,6 +17550,84 @@ export declare function init(config: AuthHeroConfig): {
17301
17550
  };
17302
17551
  outputFormat: "json";
17303
17552
  status: 200;
17553
+ } | {
17554
+ input: {
17555
+ form: {
17556
+ grant_type: "client_credentials";
17557
+ client_id?: string | undefined;
17558
+ audience?: string | undefined;
17559
+ scope?: string | undefined;
17560
+ client_secret?: string | undefined;
17561
+ } | {
17562
+ code: string;
17563
+ client_id: string;
17564
+ redirect_uri: string;
17565
+ grant_type: "authorization_code";
17566
+ code_verifier: string;
17567
+ } | {
17568
+ code: string;
17569
+ grant_type: "authorization_code";
17570
+ client_id?: string | undefined;
17571
+ client_secret?: string | undefined;
17572
+ redirect_uri?: string | undefined;
17573
+ } | {
17574
+ client_id: string;
17575
+ refresh_token: string;
17576
+ grant_type: "refresh_token";
17577
+ redirect_uri?: string | undefined;
17578
+ } | {
17579
+ client_id: string;
17580
+ username: string;
17581
+ otp: string;
17582
+ grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
17583
+ realm: "email" | "sms";
17584
+ };
17585
+ };
17586
+ output: {
17587
+ error: string;
17588
+ error_description?: string | undefined;
17589
+ };
17590
+ outputFormat: "json";
17591
+ status: 400;
17592
+ } | {
17593
+ input: {
17594
+ form: {
17595
+ grant_type: "client_credentials";
17596
+ client_id?: string | undefined;
17597
+ audience?: string | undefined;
17598
+ scope?: string | undefined;
17599
+ client_secret?: string | undefined;
17600
+ } | {
17601
+ code: string;
17602
+ client_id: string;
17603
+ redirect_uri: string;
17604
+ grant_type: "authorization_code";
17605
+ code_verifier: string;
17606
+ } | {
17607
+ code: string;
17608
+ grant_type: "authorization_code";
17609
+ client_id?: string | undefined;
17610
+ client_secret?: string | undefined;
17611
+ redirect_uri?: string | undefined;
17612
+ } | {
17613
+ client_id: string;
17614
+ refresh_token: string;
17615
+ grant_type: "refresh_token";
17616
+ redirect_uri?: string | undefined;
17617
+ } | {
17618
+ client_id: string;
17619
+ username: string;
17620
+ otp: string;
17621
+ grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
17622
+ realm: "email" | "sms";
17623
+ };
17624
+ };
17625
+ output: {
17626
+ error: string;
17627
+ error_description?: string | undefined;
17628
+ };
17629
+ outputFormat: "json";
17630
+ status: 401;
17304
17631
  };
17305
17632
  };
17306
17633
  }, "/oauth/token"> & import("hono/types").MergeSchemaPath<{
@@ -17471,6 +17798,21 @@ export declare function init(config: AuthHeroConfig): {
17471
17798
  } & {
17472
17799
  "/": {
17473
17800
  $post: {
17801
+ input: {
17802
+ query: {
17803
+ state: string;
17804
+ };
17805
+ } & {
17806
+ form: {
17807
+ password: string;
17808
+ "re-enter-password": string;
17809
+ code?: string | undefined;
17810
+ };
17811
+ };
17812
+ output: Response;
17813
+ outputFormat: "json";
17814
+ status: import("hono/utils/http-status").StatusCode;
17815
+ } | {
17474
17816
  input: {
17475
17817
  query: {
17476
17818
  state: string;
@@ -17484,7 +17826,7 @@ export declare function init(config: AuthHeroConfig): {
17484
17826
  };
17485
17827
  output: {};
17486
17828
  outputFormat: string;
17487
- status: 200;
17829
+ status: 302;
17488
17830
  };
17489
17831
  };
17490
17832
  }, "/signup"> & import("hono/types").MergeSchemaPath<{
@@ -17628,6 +17970,19 @@ export declare function init(config: AuthHeroConfig): {
17628
17970
  } & {
17629
17971
  "/": {
17630
17972
  $post: {
17973
+ input: {
17974
+ query: {
17975
+ state: string;
17976
+ };
17977
+ } & {
17978
+ form: {
17979
+ password: string;
17980
+ };
17981
+ };
17982
+ output: Response;
17983
+ outputFormat: "json";
17984
+ status: import("hono/utils/http-status").StatusCode;
17985
+ } | {
17631
17986
  input: {
17632
17987
  query: {
17633
17988
  state: string;
@@ -17639,7 +17994,7 @@ export declare function init(config: AuthHeroConfig): {
17639
17994
  };
17640
17995
  output: {};
17641
17996
  outputFormat: string;
17642
- status: 200;
17997
+ status: 302;
17643
17998
  };
17644
17999
  };
17645
18000
  }, "/enter-password"> & import("hono/types").MergeSchemaPath<{
@@ -17650,14 +18005,27 @@ export declare function init(config: AuthHeroConfig): {
17650
18005
  state: string;
17651
18006
  };
17652
18007
  };
17653
- output: {};
17654
- outputFormat: string;
17655
- status: 200;
18008
+ output: Response;
18009
+ outputFormat: "json";
18010
+ status: import("hono/utils/http-status").StatusCode;
17656
18011
  };
17657
18012
  };
17658
18013
  } & {
17659
18014
  "/": {
17660
18015
  $post: {
18016
+ input: {
18017
+ query: {
18018
+ state: string;
18019
+ };
18020
+ } & {
18021
+ form: {
18022
+ code: string;
18023
+ };
18024
+ };
18025
+ output: Response;
18026
+ outputFormat: "json";
18027
+ status: import("hono/utils/http-status").StatusCode;
18028
+ } | {
17661
18029
  input: {
17662
18030
  query: {
17663
18031
  state: string;
@@ -17669,7 +18037,7 @@ export declare function init(config: AuthHeroConfig): {
17669
18037
  };
17670
18038
  output: {};
17671
18039
  outputFormat: string;
17672
- status: 200;
18040
+ status: 302;
17673
18041
  };
17674
18042
  };
17675
18043
  }, "/enter-code"> & import("hono/types").MergeSchemaPath<{
@@ -17707,6 +18075,15 @@ export declare function init(config: AuthHeroConfig): {
17707
18075
  }, "/login/identifier"> & import("hono/types").MergeSchemaPath<{
17708
18076
  "/": {
17709
18077
  $get: {
18078
+ input: {
18079
+ query: {
18080
+ state: string;
18081
+ };
18082
+ };
18083
+ output: Response;
18084
+ outputFormat: "json";
18085
+ status: import("hono/utils/http-status").StatusCode;
18086
+ } | {
17710
18087
  input: {
17711
18088
  query: {
17712
18089
  state: string;
@@ -17714,12 +18091,21 @@ export declare function init(config: AuthHeroConfig): {
17714
18091
  };
17715
18092
  output: {};
17716
18093
  outputFormat: string;
17717
- status: 200;
18094
+ status: 302;
17718
18095
  };
17719
18096
  };
17720
18097
  } & {
17721
18098
  "/": {
17722
18099
  $post: {
18100
+ input: {
18101
+ query: {
18102
+ state: string;
18103
+ };
18104
+ };
18105
+ output: Response;
18106
+ outputFormat: "json";
18107
+ status: import("hono/utils/http-status").StatusCode;
18108
+ } | {
17723
18109
  input: {
17724
18110
  query: {
17725
18111
  state: string;