authhero 5.9.0 → 5.9.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.
@@ -12447,9 +12447,76 @@ declare function init(config: AuthHeroConfig): {
12447
12447
  "tenant-id"?: string | undefined;
12448
12448
  };
12449
12449
  };
12450
- output: Response;
12450
+ output: {
12451
+ connection: string;
12452
+ email_verified: boolean;
12453
+ created_at: string;
12454
+ updated_at: string;
12455
+ user_id: string;
12456
+ provider: string;
12457
+ is_social: boolean;
12458
+ login_count: number;
12459
+ name?: string | undefined;
12460
+ username?: string | undefined;
12461
+ given_name?: string | undefined;
12462
+ phone_number?: string | undefined;
12463
+ phone_verified?: boolean | undefined;
12464
+ family_name?: string | undefined;
12465
+ profileData?: string | undefined;
12466
+ address?: {
12467
+ formatted?: string | undefined;
12468
+ street_address?: string | undefined;
12469
+ locality?: string | undefined;
12470
+ region?: string | undefined;
12471
+ postal_code?: string | undefined;
12472
+ country?: string | undefined;
12473
+ } | undefined;
12474
+ nickname?: string | undefined;
12475
+ picture?: string | undefined;
12476
+ locale?: string | undefined;
12477
+ linked_to?: string | undefined;
12478
+ app_metadata?: any;
12479
+ user_metadata?: any;
12480
+ middle_name?: string | undefined;
12481
+ preferred_username?: string | undefined;
12482
+ profile?: string | undefined;
12483
+ website?: string | undefined;
12484
+ gender?: string | undefined;
12485
+ birthdate?: string | undefined;
12486
+ zoneinfo?: string | undefined;
12487
+ verify_email?: boolean | undefined;
12488
+ last_ip?: string | undefined;
12489
+ last_login?: string | undefined;
12490
+ registration_completed_at?: string | undefined;
12491
+ email?: string | undefined;
12492
+ identities?: {
12493
+ connection: string;
12494
+ user_id: string;
12495
+ provider: string;
12496
+ isSocial: boolean;
12497
+ email?: string | undefined;
12498
+ email_verified?: boolean | undefined;
12499
+ phone_number?: string | undefined;
12500
+ phone_verified?: boolean | undefined;
12501
+ username?: string | undefined;
12502
+ access_token?: string | undefined;
12503
+ access_token_secret?: string | undefined;
12504
+ refresh_token?: string | undefined;
12505
+ profileData?: {
12506
+ [x: string]: any;
12507
+ email?: string | undefined;
12508
+ email_verified?: boolean | undefined;
12509
+ name?: string | undefined;
12510
+ username?: string | undefined;
12511
+ given_name?: string | undefined;
12512
+ phone_number?: string | undefined;
12513
+ phone_verified?: boolean | undefined;
12514
+ family_name?: string | undefined;
12515
+ } | undefined;
12516
+ }[] | undefined;
12517
+ }[];
12451
12518
  outputFormat: "json";
12452
- status: hono_utils_http_status.StatusCode;
12519
+ status: 200;
12453
12520
  };
12454
12521
  };
12455
12522
  }, "/users-by-email"> & hono_types.MergeSchemaPath<{
@@ -17968,11 +18035,35 @@ declare function init(config: AuthHeroConfig): {
17968
18035
  Bindings: Bindings;
17969
18036
  Variables: Variables;
17970
18037
  }, hono_types.MergeSchemaPath<{
17971
- [x: string]: {
18038
+ "/guardian/enroll": {
17972
18039
  $get: {
17973
18040
  input: {
17974
18041
  query: {
17975
- state: string;
18042
+ ticket: string;
18043
+ };
18044
+ };
18045
+ output: Response;
18046
+ outputFormat: "json";
18047
+ status: hono_utils_http_status.StatusCode;
18048
+ } | {
18049
+ input: {
18050
+ query: {
18051
+ ticket: string;
18052
+ };
18053
+ };
18054
+ output: {};
18055
+ outputFormat: string;
18056
+ status: 302;
18057
+ };
18058
+ };
18059
+ } & {
18060
+ "/accept-invitation": {
18061
+ $get: {
18062
+ input: {
18063
+ query: {
18064
+ invitation?: string | undefined;
18065
+ organization?: string | undefined;
18066
+ state?: string | undefined;
17976
18067
  error?: string | undefined;
17977
18068
  error_description?: string | undefined;
17978
18069
  ui_locales?: string | undefined;
@@ -17981,10 +18072,24 @@ declare function init(config: AuthHeroConfig): {
17981
18072
  output: Response;
17982
18073
  outputFormat: "json";
17983
18074
  status: hono_utils_http_status.StatusCode;
18075
+ } | {
18076
+ input: {
18077
+ query: {
18078
+ invitation?: string | undefined;
18079
+ organization?: string | undefined;
18080
+ state?: string | undefined;
18081
+ error?: string | undefined;
18082
+ error_description?: string | undefined;
18083
+ ui_locales?: string | undefined;
18084
+ };
18085
+ };
18086
+ output: {};
18087
+ outputFormat: string;
18088
+ status: 302;
17984
18089
  };
17985
18090
  };
17986
18091
  } & {
17987
- [x: string]: {
18092
+ "/accept-invitation": {
17988
18093
  $post: {
17989
18094
  input: {
17990
18095
  query: {
@@ -18016,11 +18121,12 @@ declare function init(config: AuthHeroConfig): {
18016
18121
  };
18017
18122
  };
18018
18123
  } & {
18019
- "/guardian/enroll": {
18124
+ "/tickets/email-verification": {
18020
18125
  $get: {
18021
18126
  input: {
18022
18127
  query: {
18023
18128
  ticket: string;
18129
+ tenant_id?: string | undefined;
18024
18130
  };
18025
18131
  };
18026
18132
  output: Response;
@@ -18030,6 +18136,7 @@ declare function init(config: AuthHeroConfig): {
18030
18136
  input: {
18031
18137
  query: {
18032
18138
  ticket: string;
18139
+ tenant_id?: string | undefined;
18033
18140
  };
18034
18141
  };
18035
18142
  output: {};
@@ -18037,6 +18144,130 @@ declare function init(config: AuthHeroConfig): {
18037
18144
  status: 302;
18038
18145
  };
18039
18146
  };
18147
+ } & {
18148
+ "/tickets/password-change": {
18149
+ $get: {
18150
+ input: {
18151
+ query: {
18152
+ ticket: string;
18153
+ tenant_id?: string | undefined;
18154
+ };
18155
+ };
18156
+ output: {};
18157
+ outputFormat: string;
18158
+ status: 302;
18159
+ };
18160
+ };
18161
+ } & {
18162
+ "/:screen{.+}": {
18163
+ $get: {
18164
+ input: {
18165
+ param: {
18166
+ screen: "signup" | "login" | "reset-password" | "account" | "enter-password" | "impersonate" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant";
18167
+ };
18168
+ } & {
18169
+ query: {
18170
+ state: string;
18171
+ error?: string | undefined;
18172
+ error_description?: string | undefined;
18173
+ ui_locales?: string | undefined;
18174
+ };
18175
+ };
18176
+ output: Response;
18177
+ outputFormat: "json";
18178
+ status: hono_utils_http_status.StatusCode;
18179
+ } | {
18180
+ input: {
18181
+ param: {
18182
+ screen: "signup" | "login" | "reset-password" | "account" | "enter-password" | "impersonate" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant";
18183
+ };
18184
+ } & {
18185
+ query: {
18186
+ state: string;
18187
+ error?: string | undefined;
18188
+ error_description?: string | undefined;
18189
+ ui_locales?: string | undefined;
18190
+ };
18191
+ };
18192
+ output: {};
18193
+ outputFormat: string;
18194
+ status: 302;
18195
+ } | {
18196
+ input: {
18197
+ param: {
18198
+ screen: "signup" | "login" | "reset-password" | "account" | "enter-password" | "impersonate" | "try-connection-result" | "reset-password/request" | "reset-password/code" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant";
18199
+ };
18200
+ } & {
18201
+ query: {
18202
+ state: string;
18203
+ error?: string | undefined;
18204
+ error_description?: string | undefined;
18205
+ ui_locales?: string | undefined;
18206
+ };
18207
+ };
18208
+ output: {};
18209
+ outputFormat: string;
18210
+ status: 400;
18211
+ };
18212
+ };
18213
+ } & {
18214
+ "/:screen{.+}": {
18215
+ $post: {
18216
+ input: {
18217
+ param: {
18218
+ screen: "signup" | "login" | "reset-password" | "enter-password" | "impersonate" | "reset-password/request" | "reset-password/code" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant";
18219
+ };
18220
+ } & {
18221
+ query: {
18222
+ state: string;
18223
+ error?: string | undefined;
18224
+ error_description?: string | undefined;
18225
+ ui_locales?: string | undefined;
18226
+ };
18227
+ } & {
18228
+ form: Record<string, string>;
18229
+ };
18230
+ output: Response;
18231
+ outputFormat: "json";
18232
+ status: hono_utils_http_status.StatusCode;
18233
+ } | {
18234
+ input: {
18235
+ param: {
18236
+ screen: "signup" | "login" | "reset-password" | "enter-password" | "impersonate" | "reset-password/request" | "reset-password/code" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant";
18237
+ };
18238
+ } & {
18239
+ query: {
18240
+ state: string;
18241
+ error?: string | undefined;
18242
+ error_description?: string | undefined;
18243
+ ui_locales?: string | undefined;
18244
+ };
18245
+ } & {
18246
+ form: Record<string, string>;
18247
+ };
18248
+ output: {};
18249
+ outputFormat: string;
18250
+ status: 302;
18251
+ } | {
18252
+ input: {
18253
+ param: {
18254
+ screen: "signup" | "login" | "reset-password" | "enter-password" | "impersonate" | "reset-password/request" | "reset-password/code" | "login/identifier" | "login/email-otp-challenge" | "login/sms-otp-challenge" | "login/login-passwordless-identifier" | "mfa/login-options" | "mfa/totp-challenge" | "mfa/totp-enrollment" | "mfa/phone-challenge" | "mfa/phone-enrollment" | "passkey/challenge" | "passkey/enrollment" | "passkey/enrollment-nudge" | "account/profile" | "account/security" | "account/security/totp-enrollment" | "account/security/phone-enrollment" | "account/linked" | "account/delete" | "account/passkeys" | "connect/start" | "connect/select-tenant";
18255
+ };
18256
+ } & {
18257
+ query: {
18258
+ state: string;
18259
+ error?: string | undefined;
18260
+ error_description?: string | undefined;
18261
+ ui_locales?: string | undefined;
18262
+ };
18263
+ } & {
18264
+ form: Record<string, string>;
18265
+ };
18266
+ output: {};
18267
+ outputFormat: string;
18268
+ status: 400;
18269
+ };
18270
+ };
18040
18271
  }, "/"> & hono_types.MergeSchemaPath<{
18041
18272
  "/:formId/nodes/:nodeId": {
18042
18273
  $get: {