authhero 0.261.1 → 0.263.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.
@@ -17480,6 +17480,16 @@ export type OnExecutePostUserDeletionAPI = {
17480
17480
  export type OnExecutePostUserDeletion = (event: HookEvent & {
17481
17481
  user_id: string;
17482
17482
  }, api: OnExecutePostUserDeletionAPI) => Promise<void>;
17483
+ export type OnExecuteValidateSignupEmailAPI = {
17484
+ deny: (reason?: string) => void;
17485
+ token: TokenAPI;
17486
+ };
17487
+ export type OnExecuteValidateSignupEmail = (event: Omit<HookEvent, "user"> & {
17488
+ user: {
17489
+ email: string;
17490
+ connection: string;
17491
+ };
17492
+ }, api: OnExecuteValidateSignupEmailAPI) => Promise<void>;
17483
17493
  export type SendEmailParams = {
17484
17494
  emailProvider: EmailProvider;
17485
17495
  to: string;
@@ -17547,6 +17557,7 @@ export type Bindings = {
17547
17557
  onExecutePostLogin?: OnExecutePostLogin;
17548
17558
  onExecutePreUserDeletion?: OnExecutePreUserDeletion;
17549
17559
  onExecutePostUserDeletion?: OnExecutePostUserDeletion;
17560
+ onExecuteValidateSignupEmail?: OnExecuteValidateSignupEmail;
17550
17561
  };
17551
17562
  emailProviders?: {
17552
17563
  [key: string]: EmailService;
@@ -21039,8 +21050,8 @@ export declare function init(config: AuthHeroConfig): {
21039
21050
  };
21040
21051
  } & {
21041
21052
  json: {
21042
- id?: string | undefined;
21043
21053
  audience?: string | undefined;
21054
+ id?: string | undefined;
21044
21055
  sessions?: {
21045
21056
  oidc_logout_prompt_enabled?: boolean | undefined;
21046
21057
  } | undefined;
@@ -21299,8 +21310,8 @@ export declare function init(config: AuthHeroConfig): {
21299
21310
  };
21300
21311
  } & {
21301
21312
  json: {
21302
- id?: string | undefined;
21303
21313
  audience?: string | undefined;
21314
+ id?: string | undefined;
21304
21315
  sessions?: {
21305
21316
  oidc_logout_prompt_enabled?: boolean | undefined;
21306
21317
  } | undefined;
@@ -21517,11 +21528,11 @@ export declare function init(config: AuthHeroConfig): {
21517
21528
  $get: {
21518
21529
  input: {
21519
21530
  query: {
21531
+ audience?: string | undefined;
21520
21532
  client_id?: string | undefined;
21521
21533
  page?: string | undefined;
21522
21534
  per_page?: string | undefined;
21523
21535
  include_totals?: string | undefined;
21524
- audience?: string | undefined;
21525
21536
  from?: string | undefined;
21526
21537
  take?: string | undefined;
21527
21538
  allow_any_organization?: string | undefined;
@@ -21625,9 +21636,9 @@ export declare function init(config: AuthHeroConfig): {
21625
21636
  };
21626
21637
  } & {
21627
21638
  json: {
21628
- client_id?: string | undefined;
21629
- audience?: string | undefined;
21630
21639
  scope?: string[] | undefined;
21640
+ audience?: string | undefined;
21641
+ client_id?: string | undefined;
21631
21642
  organization_usage?: "deny" | "allow" | "require" | undefined;
21632
21643
  allow_any_organization?: boolean | undefined;
21633
21644
  subject_type?: "user" | "client" | undefined;
@@ -21661,8 +21672,8 @@ export declare function init(config: AuthHeroConfig): {
21661
21672
  };
21662
21673
  } & {
21663
21674
  json: {
21664
- client_id: string;
21665
21675
  audience: string;
21676
+ client_id: string;
21666
21677
  scope?: string[] | undefined;
21667
21678
  organization_usage?: "deny" | "allow" | "require" | undefined;
21668
21679
  allow_any_organization?: boolean | undefined;
@@ -22008,7 +22019,7 @@ export declare function init(config: AuthHeroConfig): {
22008
22019
  require_pushed_authorization_requests?: boolean | undefined;
22009
22020
  require_proof_of_possession?: boolean | undefined;
22010
22021
  client_secret?: string | undefined;
22011
- app_type?: "native" | "spa" | "regular_web" | "non_interactive" | "resource_server" | "express_configuration" | "rms" | "box" | "cloudbees" | "concur" | "dropbox" | "mscrm" | "echosign" | "egnyte" | "newrelic" | "office365" | "salesforce" | "sentry" | "sharepoint" | "slack" | "springcm" | "zendesk" | "zoom" | "sso_integration" | "oag" | undefined;
22022
+ app_type?: "resource_server" | "native" | "spa" | "regular_web" | "non_interactive" | "express_configuration" | "rms" | "box" | "cloudbees" | "concur" | "dropbox" | "mscrm" | "echosign" | "egnyte" | "newrelic" | "office365" | "salesforce" | "sentry" | "sharepoint" | "slack" | "springcm" | "zendesk" | "zoom" | "sso_integration" | "oag" | undefined;
22012
22023
  logo_uri?: string | undefined;
22013
22024
  allowed_origins?: string[] | undefined;
22014
22025
  web_origins?: string[] | undefined;
@@ -22147,7 +22158,7 @@ export declare function init(config: AuthHeroConfig): {
22147
22158
  require_pushed_authorization_requests?: boolean | undefined;
22148
22159
  require_proof_of_possession?: boolean | undefined;
22149
22160
  client_secret?: string | undefined;
22150
- app_type?: "native" | "spa" | "regular_web" | "non_interactive" | "resource_server" | "express_configuration" | "rms" | "box" | "cloudbees" | "concur" | "dropbox" | "mscrm" | "echosign" | "egnyte" | "newrelic" | "office365" | "salesforce" | "sentry" | "sharepoint" | "slack" | "springcm" | "zendesk" | "zoom" | "sso_integration" | "oag" | undefined;
22161
+ app_type?: "resource_server" | "native" | "spa" | "regular_web" | "non_interactive" | "express_configuration" | "rms" | "box" | "cloudbees" | "concur" | "dropbox" | "mscrm" | "echosign" | "egnyte" | "newrelic" | "office365" | "salesforce" | "sentry" | "sharepoint" | "slack" | "springcm" | "zendesk" | "zoom" | "sso_integration" | "oag" | undefined;
22151
22162
  logo_uri?: string | undefined;
22152
22163
  allowed_origins?: string[] | undefined;
22153
22164
  web_origins?: string[] | undefined;
@@ -22202,7 +22213,7 @@ export declare function init(config: AuthHeroConfig): {
22202
22213
  [x: string]: any;
22203
22214
  } | undefined;
22204
22215
  client_secret?: string | undefined;
22205
- app_type?: "native" | "spa" | "regular_web" | "non_interactive" | "resource_server" | "express_configuration" | "rms" | "box" | "cloudbees" | "concur" | "dropbox" | "mscrm" | "echosign" | "egnyte" | "newrelic" | "office365" | "salesforce" | "sentry" | "sharepoint" | "slack" | "springcm" | "zendesk" | "zoom" | "sso_integration" | "oag" | undefined;
22216
+ app_type?: "resource_server" | "native" | "spa" | "regular_web" | "non_interactive" | "express_configuration" | "rms" | "box" | "cloudbees" | "concur" | "dropbox" | "mscrm" | "echosign" | "egnyte" | "newrelic" | "office365" | "salesforce" | "sentry" | "sharepoint" | "slack" | "springcm" | "zendesk" | "zoom" | "sso_integration" | "oag" | undefined;
22206
22217
  logo_uri?: string | undefined;
22207
22218
  allowed_origins?: string[] | undefined;
22208
22219
  web_origins?: string[] | undefined;
@@ -22574,6 +22585,7 @@ export declare function init(config: AuthHeroConfig): {
22574
22585
  json: {
22575
22586
  name?: string | undefined;
22576
22587
  password?: string | undefined;
22588
+ connection?: string | undefined;
22577
22589
  email?: string | undefined;
22578
22590
  given_name?: string | undefined;
22579
22591
  family_name?: string | undefined;
@@ -22581,7 +22593,6 @@ export declare function init(config: AuthHeroConfig): {
22581
22593
  locale?: string | undefined;
22582
22594
  user_id?: string | undefined;
22583
22595
  username?: string | undefined;
22584
- connection?: string | undefined;
22585
22596
  verify_email?: boolean | undefined;
22586
22597
  last_ip?: string | undefined;
22587
22598
  last_login?: string | undefined;
@@ -22661,6 +22672,7 @@ export declare function init(config: AuthHeroConfig): {
22661
22672
  json: {
22662
22673
  name?: string | undefined;
22663
22674
  password?: string | undefined;
22675
+ connection?: string | undefined;
22664
22676
  email?: string | undefined;
22665
22677
  given_name?: string | undefined;
22666
22678
  family_name?: string | undefined;
@@ -22668,7 +22680,6 @@ export declare function init(config: AuthHeroConfig): {
22668
22680
  locale?: string | undefined;
22669
22681
  user_id?: string | undefined;
22670
22682
  username?: string | undefined;
22671
- connection?: string | undefined;
22672
22683
  verify_email?: boolean | undefined;
22673
22684
  last_ip?: string | undefined;
22674
22685
  last_login?: string | undefined;
@@ -22709,8 +22720,8 @@ export declare function init(config: AuthHeroConfig): {
22709
22720
  };
22710
22721
  };
22711
22722
  output: {
22712
- user_id: string;
22713
22723
  connection: string;
22724
+ user_id: string;
22714
22725
  provider: string;
22715
22726
  isSocial: boolean;
22716
22727
  }[];
@@ -23137,7 +23148,7 @@ export declare function init(config: AuthHeroConfig): {
23137
23148
  clientSecret: string;
23138
23149
  };
23139
23150
  default_from_address?: string | undefined | undefined;
23140
- settings?: {} | undefined;
23151
+ settings?: {} | undefined | undefined;
23141
23152
  };
23142
23153
  outputFormat: "json";
23143
23154
  status: 200;
@@ -23558,11 +23569,11 @@ export declare function init(config: AuthHeroConfig): {
23558
23569
  } | undefined;
23559
23570
  colors?: {
23560
23571
  header?: string | undefined;
23561
- error?: string | undefined;
23562
23572
  base_focus_color?: string | undefined;
23563
23573
  base_hover_color?: string | undefined;
23564
23574
  body_text?: string | undefined;
23565
23575
  captcha_widget_theme?: "auto" | "dark" | "light" | undefined;
23576
+ error?: string | undefined;
23566
23577
  icons?: string | undefined;
23567
23578
  input_background?: string | undefined;
23568
23579
  input_border?: string | undefined;
@@ -23780,9 +23791,9 @@ export declare function init(config: AuthHeroConfig): {
23780
23791
  query: {
23781
23792
  state: string;
23782
23793
  code?: string | undefined;
23794
+ scope?: string | undefined;
23783
23795
  error?: string | undefined;
23784
23796
  error_description?: string | undefined;
23785
- scope?: string | undefined;
23786
23797
  error_reason?: string | undefined;
23787
23798
  error_code?: string | undefined;
23788
23799
  hd?: string | undefined;
@@ -23796,9 +23807,9 @@ export declare function init(config: AuthHeroConfig): {
23796
23807
  query: {
23797
23808
  state: string;
23798
23809
  code?: string | undefined;
23810
+ scope?: string | undefined;
23799
23811
  error?: string | undefined;
23800
23812
  error_description?: string | undefined;
23801
- scope?: string | undefined;
23802
23813
  error_reason?: string | undefined;
23803
23814
  error_code?: string | undefined;
23804
23815
  hd?: string | undefined;
@@ -23814,9 +23825,9 @@ export declare function init(config: AuthHeroConfig): {
23814
23825
  query: {
23815
23826
  state: string;
23816
23827
  code?: string | undefined;
23828
+ scope?: string | undefined;
23817
23829
  error?: string | undefined;
23818
23830
  error_description?: string | undefined;
23819
- scope?: string | undefined;
23820
23831
  error_reason?: string | undefined;
23821
23832
  error_code?: string | undefined;
23822
23833
  hd?: string | undefined;
@@ -23836,9 +23847,9 @@ export declare function init(config: AuthHeroConfig): {
23836
23847
  form: {
23837
23848
  state: string;
23838
23849
  code?: string | undefined;
23850
+ scope?: string | undefined;
23839
23851
  error?: string | undefined;
23840
23852
  error_description?: string | undefined;
23841
- scope?: string | undefined;
23842
23853
  error_reason?: string | undefined;
23843
23854
  error_code?: string | undefined;
23844
23855
  hd?: string | undefined;
@@ -23852,9 +23863,9 @@ export declare function init(config: AuthHeroConfig): {
23852
23863
  form: {
23853
23864
  state: string;
23854
23865
  code?: string | undefined;
23866
+ scope?: string | undefined;
23855
23867
  error?: string | undefined;
23856
23868
  error_description?: string | undefined;
23857
- scope?: string | undefined;
23858
23869
  error_reason?: string | undefined;
23859
23870
  error_code?: string | undefined;
23860
23871
  hd?: string | undefined;
@@ -23870,9 +23881,9 @@ export declare function init(config: AuthHeroConfig): {
23870
23881
  form: {
23871
23882
  state: string;
23872
23883
  code?: string | undefined;
23884
+ scope?: string | undefined;
23873
23885
  error?: string | undefined;
23874
23886
  error_description?: string | undefined;
23875
- scope?: string | undefined;
23876
23887
  error_reason?: string | undefined;
23877
23888
  error_code?: string | undefined;
23878
23889
  hd?: string | undefined;
@@ -23923,13 +23934,13 @@ export declare function init(config: AuthHeroConfig): {
23923
23934
  client_id: string;
23924
23935
  state: string;
23925
23936
  redirect_uri: string;
23937
+ scope?: string | undefined;
23938
+ audience?: string | undefined;
23939
+ connection?: string | undefined;
23940
+ organization?: string | undefined;
23926
23941
  nonce?: string | undefined;
23927
23942
  response_mode?: AuthorizationResponseMode | undefined;
23928
- connection?: string | undefined;
23929
23943
  response_type?: AuthorizationResponseType | undefined;
23930
- audience?: string | undefined;
23931
- organization?: string | undefined;
23932
- scope?: string | undefined;
23933
23944
  auth0Client?: string | undefined;
23934
23945
  login_ticket?: string | undefined;
23935
23946
  screen_hint?: string | undefined;
@@ -23952,13 +23963,13 @@ export declare function init(config: AuthHeroConfig): {
23952
23963
  client_id: string;
23953
23964
  state: string;
23954
23965
  redirect_uri: string;
23966
+ scope?: string | undefined;
23967
+ audience?: string | undefined;
23968
+ connection?: string | undefined;
23969
+ organization?: string | undefined;
23955
23970
  nonce?: string | undefined;
23956
23971
  response_mode?: AuthorizationResponseMode | undefined;
23957
- connection?: string | undefined;
23958
23972
  response_type?: AuthorizationResponseType | undefined;
23959
- audience?: string | undefined;
23960
- organization?: string | undefined;
23961
- scope?: string | undefined;
23962
23973
  auth0Client?: string | undefined;
23963
23974
  login_ticket?: string | undefined;
23964
23975
  screen_hint?: string | undefined;
@@ -23981,13 +23992,13 @@ export declare function init(config: AuthHeroConfig): {
23981
23992
  client_id: string;
23982
23993
  state: string;
23983
23994
  redirect_uri: string;
23995
+ scope?: string | undefined;
23996
+ audience?: string | undefined;
23997
+ connection?: string | undefined;
23998
+ organization?: string | undefined;
23984
23999
  nonce?: string | undefined;
23985
24000
  response_mode?: AuthorizationResponseMode | undefined;
23986
- connection?: string | undefined;
23987
24001
  response_type?: AuthorizationResponseType | undefined;
23988
- audience?: string | undefined;
23989
- organization?: string | undefined;
23990
- scope?: string | undefined;
23991
24002
  auth0Client?: string | undefined;
23992
24003
  login_ticket?: string | undefined;
23993
24004
  screen_hint?: string | undefined;
@@ -24018,13 +24029,13 @@ export declare function init(config: AuthHeroConfig): {
24018
24029
  client_id: string;
24019
24030
  state: string;
24020
24031
  redirect_uri: string;
24032
+ scope?: string | undefined;
24033
+ audience?: string | undefined;
24034
+ connection?: string | undefined;
24035
+ organization?: string | undefined;
24021
24036
  nonce?: string | undefined;
24022
24037
  response_mode?: AuthorizationResponseMode | undefined;
24023
- connection?: string | undefined;
24024
24038
  response_type?: AuthorizationResponseType | undefined;
24025
- audience?: string | undefined;
24026
- organization?: string | undefined;
24027
- scope?: string | undefined;
24028
24039
  auth0Client?: string | undefined;
24029
24040
  login_ticket?: string | undefined;
24030
24041
  screen_hint?: string | undefined;
@@ -24049,13 +24060,13 @@ export declare function init(config: AuthHeroConfig): {
24049
24060
  client_id: string;
24050
24061
  state: string;
24051
24062
  redirect_uri: string;
24063
+ scope?: string | undefined;
24064
+ audience?: string | undefined;
24065
+ connection?: string | undefined;
24066
+ organization?: string | undefined;
24052
24067
  nonce?: string | undefined;
24053
24068
  response_mode?: AuthorizationResponseMode | undefined;
24054
- connection?: string | undefined;
24055
24069
  response_type?: AuthorizationResponseType | undefined;
24056
- audience?: string | undefined;
24057
- organization?: string | undefined;
24058
- scope?: string | undefined;
24059
24070
  auth0Client?: string | undefined;
24060
24071
  login_ticket?: string | undefined;
24061
24072
  screen_hint?: string | undefined;
@@ -24106,17 +24117,17 @@ export declare function init(config: AuthHeroConfig): {
24106
24117
  $post: {
24107
24118
  input: {
24108
24119
  json: {
24120
+ connection: "email";
24109
24121
  email: string;
24110
24122
  client_id: string;
24111
- connection: "email";
24112
24123
  authParams: {
24124
+ scope?: string | undefined;
24125
+ audience?: string | undefined;
24126
+ organization?: string | undefined;
24113
24127
  nonce?: string | undefined;
24114
24128
  response_mode?: AuthorizationResponseMode | undefined;
24115
24129
  username?: string | undefined;
24116
24130
  response_type?: AuthorizationResponseType | undefined;
24117
- audience?: string | undefined;
24118
- organization?: string | undefined;
24119
- scope?: string | undefined;
24120
24131
  state?: string | undefined;
24121
24132
  redirect_uri?: string | undefined;
24122
24133
  code_challenge?: string | undefined;
@@ -24128,17 +24139,17 @@ export declare function init(config: AuthHeroConfig): {
24128
24139
  };
24129
24140
  send: "code" | "link";
24130
24141
  } | {
24131
- client_id: string;
24132
24142
  connection: "sms";
24143
+ client_id: string;
24133
24144
  phone_number: string;
24134
24145
  authParams: {
24146
+ scope?: string | undefined;
24147
+ audience?: string | undefined;
24148
+ organization?: string | undefined;
24135
24149
  nonce?: string | undefined;
24136
24150
  response_mode?: AuthorizationResponseMode | undefined;
24137
24151
  username?: string | undefined;
24138
24152
  response_type?: AuthorizationResponseType | undefined;
24139
- audience?: string | undefined;
24140
- organization?: string | undefined;
24141
- scope?: string | undefined;
24142
24153
  state?: string | undefined;
24143
24154
  redirect_uri?: string | undefined;
24144
24155
  code_challenge?: string | undefined;
@@ -24161,16 +24172,16 @@ export declare function init(config: AuthHeroConfig): {
24161
24172
  $get: {
24162
24173
  input: {
24163
24174
  query: {
24175
+ scope: string;
24176
+ connection: string;
24164
24177
  email: string;
24165
24178
  client_id: string;
24166
- connection: string;
24167
24179
  response_type: AuthorizationResponseType;
24168
- scope: string;
24169
24180
  state: string;
24170
24181
  redirect_uri: string;
24171
24182
  verification_code: string;
24172
- nonce?: string | undefined;
24173
24183
  audience?: string | undefined;
24184
+ nonce?: string | undefined;
24174
24185
  };
24175
24186
  };
24176
24187
  output: {};
@@ -24179,16 +24190,16 @@ export declare function init(config: AuthHeroConfig): {
24179
24190
  } | {
24180
24191
  input: {
24181
24192
  query: {
24193
+ scope: string;
24194
+ connection: string;
24182
24195
  email: string;
24183
24196
  client_id: string;
24184
- connection: string;
24185
24197
  response_type: AuthorizationResponseType;
24186
- scope: string;
24187
24198
  state: string;
24188
24199
  redirect_uri: string;
24189
24200
  verification_code: string;
24190
- nonce?: string | undefined;
24191
24201
  audience?: string | undefined;
24202
+ nonce?: string | undefined;
24192
24203
  };
24193
24204
  };
24194
24205
  output: {
@@ -24200,16 +24211,16 @@ export declare function init(config: AuthHeroConfig): {
24200
24211
  } | {
24201
24212
  input: {
24202
24213
  query: {
24214
+ scope: string;
24215
+ connection: string;
24203
24216
  email: string;
24204
24217
  client_id: string;
24205
- connection: string;
24206
24218
  response_type: AuthorizationResponseType;
24207
- scope: string;
24208
24219
  state: string;
24209
24220
  redirect_uri: string;
24210
24221
  verification_code: string;
24211
- nonce?: string | undefined;
24212
24222
  audience?: string | undefined;
24223
+ nonce?: string | undefined;
24213
24224
  };
24214
24225
  };
24215
24226
  output: {
@@ -24226,9 +24237,9 @@ export declare function init(config: AuthHeroConfig): {
24226
24237
  input: {
24227
24238
  json: {
24228
24239
  password: string;
24240
+ connection: "Username-Password-Authentication";
24229
24241
  email: string;
24230
24242
  client_id: string;
24231
- connection: "Username-Password-Authentication";
24232
24243
  };
24233
24244
  };
24234
24245
  output: {
@@ -24247,9 +24258,9 @@ export declare function init(config: AuthHeroConfig): {
24247
24258
  $post: {
24248
24259
  input: {
24249
24260
  json: {
24261
+ connection: "Username-Password-Authentication";
24250
24262
  email: string;
24251
24263
  client_id: string;
24252
- connection: "Username-Password-Authentication";
24253
24264
  };
24254
24265
  };
24255
24266
  output: {};
@@ -24263,67 +24274,67 @@ export declare function init(config: AuthHeroConfig): {
24263
24274
  input: {
24264
24275
  form: {
24265
24276
  grant_type: "client_credentials";
24266
- client_id?: string | undefined;
24267
- audience?: string | undefined;
24268
24277
  scope?: string | undefined;
24278
+ audience?: string | undefined;
24279
+ client_id?: string | undefined;
24269
24280
  client_secret?: string | undefined;
24270
24281
  } | {
24271
24282
  code: string;
24283
+ grant_type: "authorization_code";
24272
24284
  client_id: string;
24273
24285
  redirect_uri: string;
24274
- grant_type: "authorization_code";
24275
24286
  code_verifier: string;
24276
24287
  organization?: string | undefined;
24277
24288
  } | {
24278
24289
  code: string;
24279
24290
  grant_type: "authorization_code";
24280
- client_id?: string | undefined;
24281
24291
  organization?: string | undefined;
24292
+ client_id?: string | undefined;
24282
24293
  client_secret?: string | undefined;
24283
24294
  redirect_uri?: string | undefined;
24284
24295
  } | {
24296
+ grant_type: "refresh_token";
24285
24297
  client_id: string;
24286
24298
  refresh_token: string;
24287
- grant_type: "refresh_token";
24288
24299
  redirect_uri?: string | undefined;
24289
24300
  } | {
24301
+ grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
24290
24302
  client_id: string;
24291
24303
  username: string;
24292
24304
  otp: string;
24293
- grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
24294
24305
  realm: "email" | "sms";
24295
24306
  };
24296
24307
  } & {
24297
24308
  json: {
24298
24309
  grant_type: "client_credentials";
24299
- client_id?: string | undefined;
24300
- audience?: string | undefined;
24301
24310
  scope?: string | undefined;
24311
+ audience?: string | undefined;
24312
+ client_id?: string | undefined;
24302
24313
  client_secret?: string | undefined;
24303
24314
  } | {
24304
24315
  code: string;
24316
+ grant_type: "authorization_code";
24305
24317
  client_id: string;
24306
24318
  redirect_uri: string;
24307
- grant_type: "authorization_code";
24308
24319
  code_verifier: string;
24309
24320
  organization?: string | undefined;
24310
24321
  } | {
24311
24322
  code: string;
24312
24323
  grant_type: "authorization_code";
24313
- client_id?: string | undefined;
24314
24324
  organization?: string | undefined;
24325
+ client_id?: string | undefined;
24315
24326
  client_secret?: string | undefined;
24316
24327
  redirect_uri?: string | undefined;
24317
24328
  } | {
24329
+ grant_type: "refresh_token";
24318
24330
  client_id: string;
24319
24331
  refresh_token: string;
24320
- grant_type: "refresh_token";
24321
24332
  redirect_uri?: string | undefined;
24322
24333
  } | {
24334
+ grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
24323
24335
  client_id: string;
24324
24336
  username: string;
24325
24337
  otp: string;
24326
- grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
24327
24338
  realm: "email" | "sms";
24328
24339
  };
24329
24340
  };
@@ -24334,67 +24345,67 @@ export declare function init(config: AuthHeroConfig): {
24334
24345
  input: {
24335
24346
  form: {
24336
24347
  grant_type: "client_credentials";
24337
- client_id?: string | undefined;
24338
- audience?: string | undefined;
24339
24348
  scope?: string | undefined;
24349
+ audience?: string | undefined;
24350
+ client_id?: string | undefined;
24340
24351
  client_secret?: string | undefined;
24341
24352
  } | {
24342
24353
  code: string;
24354
+ grant_type: "authorization_code";
24343
24355
  client_id: string;
24344
24356
  redirect_uri: string;
24345
- grant_type: "authorization_code";
24346
24357
  code_verifier: string;
24347
24358
  organization?: string | undefined;
24348
24359
  } | {
24349
24360
  code: string;
24350
24361
  grant_type: "authorization_code";
24351
- client_id?: string | undefined;
24352
24362
  organization?: string | undefined;
24363
+ client_id?: string | undefined;
24353
24364
  client_secret?: string | undefined;
24354
24365
  redirect_uri?: string | undefined;
24355
24366
  } | {
24367
+ grant_type: "refresh_token";
24356
24368
  client_id: string;
24357
24369
  refresh_token: string;
24358
- grant_type: "refresh_token";
24359
24370
  redirect_uri?: string | undefined;
24360
24371
  } | {
24372
+ grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
24361
24373
  client_id: string;
24362
24374
  username: string;
24363
24375
  otp: string;
24364
- grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
24365
24376
  realm: "email" | "sms";
24366
24377
  };
24367
24378
  } & {
24368
24379
  json: {
24369
24380
  grant_type: "client_credentials";
24370
- client_id?: string | undefined;
24371
- audience?: string | undefined;
24372
24381
  scope?: string | undefined;
24382
+ audience?: string | undefined;
24383
+ client_id?: string | undefined;
24373
24384
  client_secret?: string | undefined;
24374
24385
  } | {
24375
24386
  code: string;
24387
+ grant_type: "authorization_code";
24376
24388
  client_id: string;
24377
24389
  redirect_uri: string;
24378
- grant_type: "authorization_code";
24379
24390
  code_verifier: string;
24380
24391
  organization?: string | undefined;
24381
24392
  } | {
24382
24393
  code: string;
24383
24394
  grant_type: "authorization_code";
24384
- client_id?: string | undefined;
24385
24395
  organization?: string | undefined;
24396
+ client_id?: string | undefined;
24386
24397
  client_secret?: string | undefined;
24387
24398
  redirect_uri?: string | undefined;
24388
24399
  } | {
24400
+ grant_type: "refresh_token";
24389
24401
  client_id: string;
24390
24402
  refresh_token: string;
24391
- grant_type: "refresh_token";
24392
24403
  redirect_uri?: string | undefined;
24393
24404
  } | {
24405
+ grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
24394
24406
  client_id: string;
24395
24407
  username: string;
24396
24408
  otp: string;
24397
- grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
24398
24409
  realm: "email" | "sms";
24399
24410
  };
24400
24411
  };
@@ -24413,67 +24424,67 @@ export declare function init(config: AuthHeroConfig): {
24413
24424
  input: {
24414
24425
  form: {
24415
24426
  grant_type: "client_credentials";
24416
- client_id?: string | undefined;
24417
- audience?: string | undefined;
24418
24427
  scope?: string | undefined;
24428
+ audience?: string | undefined;
24429
+ client_id?: string | undefined;
24419
24430
  client_secret?: string | undefined;
24420
24431
  } | {
24421
24432
  code: string;
24433
+ grant_type: "authorization_code";
24422
24434
  client_id: string;
24423
24435
  redirect_uri: string;
24424
- grant_type: "authorization_code";
24425
24436
  code_verifier: string;
24426
24437
  organization?: string | undefined;
24427
24438
  } | {
24428
24439
  code: string;
24429
24440
  grant_type: "authorization_code";
24430
- client_id?: string | undefined;
24431
24441
  organization?: string | undefined;
24442
+ client_id?: string | undefined;
24432
24443
  client_secret?: string | undefined;
24433
24444
  redirect_uri?: string | undefined;
24434
24445
  } | {
24446
+ grant_type: "refresh_token";
24435
24447
  client_id: string;
24436
24448
  refresh_token: string;
24437
- grant_type: "refresh_token";
24438
24449
  redirect_uri?: string | undefined;
24439
24450
  } | {
24451
+ grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
24440
24452
  client_id: string;
24441
24453
  username: string;
24442
24454
  otp: string;
24443
- grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
24444
24455
  realm: "email" | "sms";
24445
24456
  };
24446
24457
  } & {
24447
24458
  json: {
24448
24459
  grant_type: "client_credentials";
24449
- client_id?: string | undefined;
24450
- audience?: string | undefined;
24451
24460
  scope?: string | undefined;
24461
+ audience?: string | undefined;
24462
+ client_id?: string | undefined;
24452
24463
  client_secret?: string | undefined;
24453
24464
  } | {
24454
24465
  code: string;
24466
+ grant_type: "authorization_code";
24455
24467
  client_id: string;
24456
24468
  redirect_uri: string;
24457
- grant_type: "authorization_code";
24458
24469
  code_verifier: string;
24459
24470
  organization?: string | undefined;
24460
24471
  } | {
24461
24472
  code: string;
24462
24473
  grant_type: "authorization_code";
24463
- client_id?: string | undefined;
24464
24474
  organization?: string | undefined;
24475
+ client_id?: string | undefined;
24465
24476
  client_secret?: string | undefined;
24466
24477
  redirect_uri?: string | undefined;
24467
24478
  } | {
24479
+ grant_type: "refresh_token";
24468
24480
  client_id: string;
24469
24481
  refresh_token: string;
24470
- grant_type: "refresh_token";
24471
24482
  redirect_uri?: string | undefined;
24472
24483
  } | {
24484
+ grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
24473
24485
  client_id: string;
24474
24486
  username: string;
24475
24487
  otp: string;
24476
- grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
24477
24488
  realm: "email" | "sms";
24478
24489
  };
24479
24490
  };
@@ -24487,67 +24498,67 @@ export declare function init(config: AuthHeroConfig): {
24487
24498
  input: {
24488
24499
  form: {
24489
24500
  grant_type: "client_credentials";
24490
- client_id?: string | undefined;
24491
- audience?: string | undefined;
24492
24501
  scope?: string | undefined;
24502
+ audience?: string | undefined;
24503
+ client_id?: string | undefined;
24493
24504
  client_secret?: string | undefined;
24494
24505
  } | {
24495
24506
  code: string;
24507
+ grant_type: "authorization_code";
24496
24508
  client_id: string;
24497
24509
  redirect_uri: string;
24498
- grant_type: "authorization_code";
24499
24510
  code_verifier: string;
24500
24511
  organization?: string | undefined;
24501
24512
  } | {
24502
24513
  code: string;
24503
24514
  grant_type: "authorization_code";
24504
- client_id?: string | undefined;
24505
24515
  organization?: string | undefined;
24516
+ client_id?: string | undefined;
24506
24517
  client_secret?: string | undefined;
24507
24518
  redirect_uri?: string | undefined;
24508
24519
  } | {
24520
+ grant_type: "refresh_token";
24509
24521
  client_id: string;
24510
24522
  refresh_token: string;
24511
- grant_type: "refresh_token";
24512
24523
  redirect_uri?: string | undefined;
24513
24524
  } | {
24525
+ grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
24514
24526
  client_id: string;
24515
24527
  username: string;
24516
24528
  otp: string;
24517
- grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
24518
24529
  realm: "email" | "sms";
24519
24530
  };
24520
24531
  } & {
24521
24532
  json: {
24522
24533
  grant_type: "client_credentials";
24523
- client_id?: string | undefined;
24524
- audience?: string | undefined;
24525
24534
  scope?: string | undefined;
24535
+ audience?: string | undefined;
24536
+ client_id?: string | undefined;
24526
24537
  client_secret?: string | undefined;
24527
24538
  } | {
24528
24539
  code: string;
24540
+ grant_type: "authorization_code";
24529
24541
  client_id: string;
24530
24542
  redirect_uri: string;
24531
- grant_type: "authorization_code";
24532
24543
  code_verifier: string;
24533
24544
  organization?: string | undefined;
24534
24545
  } | {
24535
24546
  code: string;
24536
24547
  grant_type: "authorization_code";
24537
- client_id?: string | undefined;
24538
24548
  organization?: string | undefined;
24549
+ client_id?: string | undefined;
24539
24550
  client_secret?: string | undefined;
24540
24551
  redirect_uri?: string | undefined;
24541
24552
  } | {
24553
+ grant_type: "refresh_token";
24542
24554
  client_id: string;
24543
24555
  refresh_token: string;
24544
- grant_type: "refresh_token";
24545
24556
  redirect_uri?: string | undefined;
24546
24557
  } | {
24558
+ grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
24547
24559
  client_id: string;
24548
24560
  username: string;
24549
24561
  otp: string;
24550
- grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
24551
24562
  realm: "email" | "sms";
24552
24563
  };
24553
24564
  };
@@ -24561,67 +24572,67 @@ export declare function init(config: AuthHeroConfig): {
24561
24572
  input: {
24562
24573
  form: {
24563
24574
  grant_type: "client_credentials";
24564
- client_id?: string | undefined;
24565
- audience?: string | undefined;
24566
24575
  scope?: string | undefined;
24576
+ audience?: string | undefined;
24577
+ client_id?: string | undefined;
24567
24578
  client_secret?: string | undefined;
24568
24579
  } | {
24569
24580
  code: string;
24581
+ grant_type: "authorization_code";
24570
24582
  client_id: string;
24571
24583
  redirect_uri: string;
24572
- grant_type: "authorization_code";
24573
24584
  code_verifier: string;
24574
24585
  organization?: string | undefined;
24575
24586
  } | {
24576
24587
  code: string;
24577
24588
  grant_type: "authorization_code";
24578
- client_id?: string | undefined;
24579
24589
  organization?: string | undefined;
24590
+ client_id?: string | undefined;
24580
24591
  client_secret?: string | undefined;
24581
24592
  redirect_uri?: string | undefined;
24582
24593
  } | {
24594
+ grant_type: "refresh_token";
24583
24595
  client_id: string;
24584
24596
  refresh_token: string;
24585
- grant_type: "refresh_token";
24586
24597
  redirect_uri?: string | undefined;
24587
24598
  } | {
24599
+ grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
24588
24600
  client_id: string;
24589
24601
  username: string;
24590
24602
  otp: string;
24591
- grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
24592
24603
  realm: "email" | "sms";
24593
24604
  };
24594
24605
  } & {
24595
24606
  json: {
24596
24607
  grant_type: "client_credentials";
24597
- client_id?: string | undefined;
24598
- audience?: string | undefined;
24599
24608
  scope?: string | undefined;
24609
+ audience?: string | undefined;
24610
+ client_id?: string | undefined;
24600
24611
  client_secret?: string | undefined;
24601
24612
  } | {
24602
24613
  code: string;
24614
+ grant_type: "authorization_code";
24603
24615
  client_id: string;
24604
24616
  redirect_uri: string;
24605
- grant_type: "authorization_code";
24606
24617
  code_verifier: string;
24607
24618
  organization?: string | undefined;
24608
24619
  } | {
24609
24620
  code: string;
24610
24621
  grant_type: "authorization_code";
24611
- client_id?: string | undefined;
24612
24622
  organization?: string | undefined;
24623
+ client_id?: string | undefined;
24613
24624
  client_secret?: string | undefined;
24614
24625
  redirect_uri?: string | undefined;
24615
24626
  } | {
24627
+ grant_type: "refresh_token";
24616
24628
  client_id: string;
24617
24629
  refresh_token: string;
24618
- grant_type: "refresh_token";
24619
24630
  redirect_uri?: string | undefined;
24620
24631
  } | {
24632
+ grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
24621
24633
  client_id: string;
24622
24634
  username: string;
24623
24635
  otp: string;
24624
- grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
24625
24636
  realm: "email" | "sms";
24626
24637
  };
24627
24638
  };