authhero 4.111.0 → 4.113.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.
@@ -11703,6 +11703,7 @@ export declare const connectionOptionsSchema: z.ZodObject<{
11703
11703
  twilio_token: z.ZodOptional<z.ZodString>;
11704
11704
  icon_url: z.ZodOptional<z.ZodString>;
11705
11705
  domain_aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11706
+ callback_url: z.ZodOptional<z.ZodString>;
11706
11707
  passwordPolicy: z.ZodOptional<z.ZodEnum<[
11707
11708
  "none",
11708
11709
  "low",
@@ -12130,6 +12131,7 @@ export declare const connectionOptionsSchema: z.ZodObject<{
12130
12131
  twilio_token?: string | undefined;
12131
12132
  icon_url?: string | undefined;
12132
12133
  domain_aliases?: string[] | undefined;
12134
+ callback_url?: string | undefined;
12133
12135
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12134
12136
  password_complexity_options?: {
12135
12137
  min_length?: number | undefined;
@@ -12234,6 +12236,7 @@ export declare const connectionOptionsSchema: z.ZodObject<{
12234
12236
  twilio_token?: string | undefined;
12235
12237
  icon_url?: string | undefined;
12236
12238
  domain_aliases?: string[] | undefined;
12239
+ callback_url?: string | undefined;
12237
12240
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12238
12241
  password_complexity_options?: {
12239
12242
  min_length?: number | undefined;
@@ -12338,6 +12341,7 @@ export declare const connectionInsertSchema: z.ZodObject<{
12338
12341
  twilio_token: z.ZodOptional<z.ZodString>;
12339
12342
  icon_url: z.ZodOptional<z.ZodString>;
12340
12343
  domain_aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12344
+ callback_url: z.ZodOptional<z.ZodString>;
12341
12345
  passwordPolicy: z.ZodOptional<z.ZodEnum<[
12342
12346
  "none",
12343
12347
  "low",
@@ -12765,6 +12769,7 @@ export declare const connectionInsertSchema: z.ZodObject<{
12765
12769
  twilio_token?: string | undefined;
12766
12770
  icon_url?: string | undefined;
12767
12771
  domain_aliases?: string[] | undefined;
12772
+ callback_url?: string | undefined;
12768
12773
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12769
12774
  password_complexity_options?: {
12770
12775
  min_length?: number | undefined;
@@ -12869,6 +12874,7 @@ export declare const connectionInsertSchema: z.ZodObject<{
12869
12874
  twilio_token?: string | undefined;
12870
12875
  icon_url?: string | undefined;
12871
12876
  domain_aliases?: string[] | undefined;
12877
+ callback_url?: string | undefined;
12872
12878
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12873
12879
  password_complexity_options?: {
12874
12880
  min_length?: number | undefined;
@@ -12973,6 +12979,7 @@ export declare const connectionInsertSchema: z.ZodObject<{
12973
12979
  twilio_token?: string | undefined;
12974
12980
  icon_url?: string | undefined;
12975
12981
  domain_aliases?: string[] | undefined;
12982
+ callback_url?: string | undefined;
12976
12983
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12977
12984
  password_complexity_options?: {
12978
12985
  min_length?: number | undefined;
@@ -13086,6 +13093,7 @@ export declare const connectionInsertSchema: z.ZodObject<{
13086
13093
  twilio_token?: string | undefined;
13087
13094
  icon_url?: string | undefined;
13088
13095
  domain_aliases?: string[] | undefined;
13096
+ callback_url?: string | undefined;
13089
13097
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
13090
13098
  password_complexity_options?: {
13091
13099
  min_length?: number | undefined;
@@ -13219,6 +13227,7 @@ export declare const connectionSchema: z.ZodObject<{
13219
13227
  twilio_token: z.ZodOptional<z.ZodString>;
13220
13228
  icon_url: z.ZodOptional<z.ZodString>;
13221
13229
  domain_aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13230
+ callback_url: z.ZodOptional<z.ZodString>;
13222
13231
  passwordPolicy: z.ZodOptional<z.ZodEnum<[
13223
13232
  "none",
13224
13233
  "low",
@@ -13646,6 +13655,7 @@ export declare const connectionSchema: z.ZodObject<{
13646
13655
  twilio_token?: string | undefined;
13647
13656
  icon_url?: string | undefined;
13648
13657
  domain_aliases?: string[] | undefined;
13658
+ callback_url?: string | undefined;
13649
13659
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
13650
13660
  password_complexity_options?: {
13651
13661
  min_length?: number | undefined;
@@ -13750,6 +13760,7 @@ export declare const connectionSchema: z.ZodObject<{
13750
13760
  twilio_token?: string | undefined;
13751
13761
  icon_url?: string | undefined;
13752
13762
  domain_aliases?: string[] | undefined;
13763
+ callback_url?: string | undefined;
13753
13764
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
13754
13765
  password_complexity_options?: {
13755
13766
  min_length?: number | undefined;
@@ -13854,6 +13865,7 @@ export declare const connectionSchema: z.ZodObject<{
13854
13865
  twilio_token?: string | undefined;
13855
13866
  icon_url?: string | undefined;
13856
13867
  domain_aliases?: string[] | undefined;
13868
+ callback_url?: string | undefined;
13857
13869
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
13858
13870
  password_complexity_options?: {
13859
13871
  min_length?: number | undefined;
@@ -13969,6 +13981,7 @@ export declare const connectionSchema: z.ZodObject<{
13969
13981
  twilio_token?: string | undefined;
13970
13982
  icon_url?: string | undefined;
13971
13983
  domain_aliases?: string[] | undefined;
13984
+ callback_url?: string | undefined;
13972
13985
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
13973
13986
  password_complexity_options?: {
13974
13987
  min_length?: number | undefined;
@@ -50127,6 +50140,7 @@ export declare const Strategy: {
50127
50140
  readonly SAMLP: "samlp";
50128
50141
  readonly WAAD: "waad";
50129
50142
  readonly ADFS: "adfs";
50143
+ readonly AUTH0: "auth0";
50130
50144
  };
50131
50145
  export declare const StrategyType: {
50132
50146
  readonly DATABASE: "database";
@@ -52190,6 +52204,7 @@ declare const enrichedClientSchema: z.ZodObject<{
52190
52204
  twilio_token: z.ZodOptional<z.ZodString>;
52191
52205
  icon_url: z.ZodOptional<z.ZodString>;
52192
52206
  domain_aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
52207
+ callback_url: z.ZodOptional<z.ZodString>;
52193
52208
  passwordPolicy: z.ZodOptional<z.ZodEnum<[
52194
52209
  "none",
52195
52210
  "low",
@@ -52617,6 +52632,7 @@ declare const enrichedClientSchema: z.ZodObject<{
52617
52632
  twilio_token?: string | undefined;
52618
52633
  icon_url?: string | undefined;
52619
52634
  domain_aliases?: string[] | undefined;
52635
+ callback_url?: string | undefined;
52620
52636
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
52621
52637
  password_complexity_options?: {
52622
52638
  min_length?: number | undefined;
@@ -52721,6 +52737,7 @@ declare const enrichedClientSchema: z.ZodObject<{
52721
52737
  twilio_token?: string | undefined;
52722
52738
  icon_url?: string | undefined;
52723
52739
  domain_aliases?: string[] | undefined;
52740
+ callback_url?: string | undefined;
52724
52741
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
52725
52742
  password_complexity_options?: {
52726
52743
  min_length?: number | undefined;
@@ -52825,6 +52842,7 @@ declare const enrichedClientSchema: z.ZodObject<{
52825
52842
  twilio_token?: string | undefined;
52826
52843
  icon_url?: string | undefined;
52827
52844
  domain_aliases?: string[] | undefined;
52845
+ callback_url?: string | undefined;
52828
52846
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
52829
52847
  password_complexity_options?: {
52830
52848
  min_length?: number | undefined;
@@ -52940,6 +52958,7 @@ declare const enrichedClientSchema: z.ZodObject<{
52940
52958
  twilio_token?: string | undefined;
52941
52959
  icon_url?: string | undefined;
52942
52960
  domain_aliases?: string[] | undefined;
52961
+ callback_url?: string | undefined;
52943
52962
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
52944
52963
  password_complexity_options?: {
52945
52964
  min_length?: number | undefined;
@@ -53382,6 +53401,7 @@ declare const enrichedClientSchema: z.ZodObject<{
53382
53401
  twilio_token?: string | undefined;
53383
53402
  icon_url?: string | undefined;
53384
53403
  domain_aliases?: string[] | undefined;
53404
+ callback_url?: string | undefined;
53385
53405
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
53386
53406
  password_complexity_options?: {
53387
53407
  min_length?: number | undefined;
@@ -54154,6 +54174,21 @@ export type UserLinkingModeResolver = (params: {
54154
54174
  client_id?: string;
54155
54175
  }) => UserLinkingMode | Promise<UserLinkingMode>;
54156
54176
  export type UserLinkingModeOption = UserLinkingMode | UserLinkingModeResolver;
54177
+ /**
54178
+ * Resolver for the per-tenant username/password provider value.
54179
+ *
54180
+ * The native database provider has historically been written as `"auth2"`.
54181
+ * Returning `"auth0"` for selected tenants lets you migrate them onto the
54182
+ * `"auth0"` provider value (matching what the legacy Auth0 import format
54183
+ * used) one tenant at a time. Reads always accept both values, so existing
54184
+ * `auth2|*` rows keep resolving during and after the cutover.
54185
+ *
54186
+ * TRANSITIONAL: this resolver and the dual-read fallback can be removed
54187
+ * once every tenant has been migrated to a single value.
54188
+ */
54189
+ export type UsernamePasswordProviderResolver = (params: {
54190
+ tenant_id: string;
54191
+ }) => "auth0" | "auth2" | Promise<"auth0" | "auth2">;
54157
54192
  export interface AuthHeroConfig {
54158
54193
  dataAdapter: DataAdapters;
54159
54194
  /**
@@ -54357,6 +54392,18 @@ export interface AuthHeroConfig {
54357
54392
  * @default "builtin"
54358
54393
  */
54359
54394
  userLinkingMode?: UserLinkingModeOption;
54395
+ /**
54396
+ * Per-tenant override for the username/password provider value used on
54397
+ * NEW user rows. Returning `"auth0"` for a tenant migrates new signups,
54398
+ * password resets, etc. onto the `auth0|*` user_id format. Existing
54399
+ * `auth2|*` rows keep working — reads accept either value.
54400
+ *
54401
+ * Omit to keep the legacy `"auth2"` value for every tenant.
54402
+ *
54403
+ * TRANSITIONAL: this hook and the dual-read fallback in the password
54404
+ * flows can be removed once all tenants have been backfilled.
54405
+ */
54406
+ usernamePasswordProvider?: UsernamePasswordProviderResolver;
54360
54407
  }
54361
54408
  export type UserInfo = {
54362
54409
  sub: string;
@@ -54418,6 +54465,7 @@ export type Bindings = {
54418
54465
  webhookInvoker?: WebhookInvoker;
54419
54466
  outbox?: OutboxConfig;
54420
54467
  userLinkingMode?: UserLinkingModeOption;
54468
+ usernamePasswordProvider?: UsernamePasswordProviderResolver;
54421
54469
  /**
54422
54470
  * Allow outbound fetches (jwks_uri, request_uri) to localhost / private IP
54423
54471
  * ranges and over plain http. Intended for tests and local development;
@@ -54741,6 +54789,30 @@ export interface InMemoryCacheConfig {
54741
54789
  * Create an in-memory cache adapter
54742
54790
  */
54743
54791
  export declare function createInMemoryCache(config?: InMemoryCacheConfig): CacheAdapter;
54792
+ export declare const mailgunCredentialsSchema: z.ZodObject<{
54793
+ api_key: z.ZodString;
54794
+ domain: z.ZodString;
54795
+ region: z.ZodOptional<z.ZodNullable<z.ZodEnum<[
54796
+ "eu"
54797
+ ]>>>;
54798
+ }, "strip", z.ZodTypeAny, {
54799
+ api_key: string;
54800
+ domain: string;
54801
+ region?: "eu" | null | undefined;
54802
+ }, {
54803
+ api_key: string;
54804
+ domain: string;
54805
+ region?: "eu" | null | undefined;
54806
+ }>;
54807
+ export type MailgunCredentials = z.infer<typeof mailgunCredentialsSchema>;
54808
+ export interface MailgunEmailServiceOptions {
54809
+ fetchImpl?: typeof fetch;
54810
+ }
54811
+ export declare class MailgunEmailService implements EmailServiceAdapter {
54812
+ private readonly fetchImpl;
54813
+ constructor(options?: MailgunEmailServiceOptions);
54814
+ send(params: EmailServiceSendParams): Promise<void>;
54815
+ }
54744
54816
  /**
54745
54817
  * Register a background promise tied to the current request.
54746
54818
  *
@@ -61956,6 +62028,7 @@ export declare function init(config: AuthHeroConfig): {
61956
62028
  twilio_token?: string | undefined | undefined;
61957
62029
  icon_url?: string | undefined | undefined;
61958
62030
  domain_aliases?: string[] | undefined | undefined;
62031
+ callback_url?: string | undefined | undefined;
61959
62032
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined | undefined;
61960
62033
  password_complexity_options?: {
61961
62034
  min_length?: number | undefined | undefined;
@@ -62079,6 +62152,7 @@ export declare function init(config: AuthHeroConfig): {
62079
62152
  twilio_token?: string | undefined | undefined;
62080
62153
  icon_url?: string | undefined | undefined;
62081
62154
  domain_aliases?: string[] | undefined | undefined;
62155
+ callback_url?: string | undefined | undefined;
62082
62156
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined | undefined;
62083
62157
  password_complexity_options?: {
62084
62158
  min_length?: number | undefined | undefined;
@@ -62221,6 +62295,7 @@ export declare function init(config: AuthHeroConfig): {
62221
62295
  twilio_token?: string | undefined | undefined;
62222
62296
  icon_url?: string | undefined | undefined;
62223
62297
  domain_aliases?: string[] | undefined | undefined;
62298
+ callback_url?: string | undefined | undefined;
62224
62299
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined | undefined;
62225
62300
  password_complexity_options?: {
62226
62301
  min_length?: number | undefined | undefined;
@@ -62391,6 +62466,7 @@ export declare function init(config: AuthHeroConfig): {
62391
62466
  twilio_token?: string | undefined | undefined;
62392
62467
  icon_url?: string | undefined | undefined;
62393
62468
  domain_aliases?: string[] | undefined | undefined;
62469
+ callback_url?: string | undefined | undefined;
62394
62470
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined | undefined;
62395
62471
  password_complexity_options?: {
62396
62472
  min_length?: number | undefined | undefined;
@@ -62540,6 +62616,7 @@ export declare function init(config: AuthHeroConfig): {
62540
62616
  twilio_token?: string | undefined | undefined;
62541
62617
  icon_url?: string | undefined | undefined;
62542
62618
  domain_aliases?: string[] | undefined | undefined;
62619
+ callback_url?: string | undefined | undefined;
62543
62620
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined | undefined;
62544
62621
  password_complexity_options?: {
62545
62622
  min_length?: number | undefined | undefined;
@@ -64774,6 +64851,7 @@ export declare function init(config: AuthHeroConfig): {
64774
64851
  twilio_token?: string | undefined | undefined;
64775
64852
  icon_url?: string | undefined | undefined;
64776
64853
  domain_aliases?: string[] | undefined | undefined;
64854
+ callback_url?: string | undefined | undefined;
64777
64855
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined | undefined;
64778
64856
  password_complexity_options?: {
64779
64857
  min_length?: number | undefined | undefined;
@@ -64919,6 +64997,7 @@ export declare function init(config: AuthHeroConfig): {
64919
64997
  twilio_token?: string | undefined | undefined;
64920
64998
  icon_url?: string | undefined | undefined;
64921
64999
  domain_aliases?: string[] | undefined | undefined;
65000
+ callback_url?: string | undefined | undefined;
64922
65001
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined | undefined;
64923
65002
  password_complexity_options?: {
64924
65003
  min_length?: number | undefined | undefined;
@@ -66200,13 +66279,13 @@ export declare function init(config: AuthHeroConfig): {
66200
66279
  };
66201
66280
  };
66202
66281
  output: {
66203
- name: string;
66204
- enabled: boolean;
66205
- credentials: {
66282
+ name?: string | undefined;
66283
+ credentials?: {
66206
66284
  [x: string]: import("hono/utils/types").JSONValue;
66207
- };
66208
- default_from_address?: string | undefined | undefined;
66209
- settings?: {} | undefined | undefined;
66285
+ } | undefined;
66286
+ settings?: {} | undefined;
66287
+ enabled?: boolean | undefined;
66288
+ default_from_address?: string | undefined;
66210
66289
  };
66211
66290
  outputFormat: "json";
66212
66291
  status: 200;
@@ -66215,6 +66294,23 @@ export declare function init(config: AuthHeroConfig): {
66215
66294
  } & {
66216
66295
  "/": {
66217
66296
  $post: {
66297
+ input: {
66298
+ header: {
66299
+ "tenant-id"?: string | undefined;
66300
+ };
66301
+ } & {
66302
+ json: {
66303
+ name: string;
66304
+ credentials: Record<string, unknown>;
66305
+ settings?: {} | undefined;
66306
+ enabled?: boolean | undefined;
66307
+ default_from_address?: string | undefined;
66308
+ };
66309
+ };
66310
+ output: {};
66311
+ outputFormat: string;
66312
+ status: 409;
66313
+ } | {
66218
66314
  input: {
66219
66315
  header: {
66220
66316
  "tenant-id"?: string | undefined;
@@ -66270,6 +66366,28 @@ export declare function init(config: AuthHeroConfig): {
66270
66366
  status: 200;
66271
66367
  };
66272
66368
  };
66369
+ } & {
66370
+ "/": {
66371
+ $delete: {
66372
+ input: {
66373
+ header: {
66374
+ "tenant-id"?: string | undefined;
66375
+ };
66376
+ };
66377
+ output: {};
66378
+ outputFormat: string;
66379
+ status: 204;
66380
+ } | {
66381
+ input: {
66382
+ header: {
66383
+ "tenant-id"?: string | undefined;
66384
+ };
66385
+ };
66386
+ output: {};
66387
+ outputFormat: string;
66388
+ status: 404;
66389
+ };
66390
+ };
66273
66391
  }, "/emails/provider"> & import("hono/types").MergeSchemaPath<{
66274
66392
  "/": {
66275
66393
  $get: {
@@ -66279,13 +66397,13 @@ export declare function init(config: AuthHeroConfig): {
66279
66397
  };
66280
66398
  };
66281
66399
  output: {
66282
- name: string;
66283
- enabled: boolean;
66284
- credentials: {
66400
+ name?: string | undefined;
66401
+ credentials?: {
66285
66402
  [x: string]: import("hono/utils/types").JSONValue;
66286
- };
66287
- default_from_address?: string | undefined | undefined;
66288
- settings?: {} | undefined | undefined;
66403
+ } | undefined;
66404
+ settings?: {} | undefined;
66405
+ enabled?: boolean | undefined;
66406
+ default_from_address?: string | undefined;
66289
66407
  };
66290
66408
  outputFormat: "json";
66291
66409
  status: 200;
@@ -66294,6 +66412,23 @@ export declare function init(config: AuthHeroConfig): {
66294
66412
  } & {
66295
66413
  "/": {
66296
66414
  $post: {
66415
+ input: {
66416
+ header: {
66417
+ "tenant-id"?: string | undefined;
66418
+ };
66419
+ } & {
66420
+ json: {
66421
+ name: string;
66422
+ credentials: Record<string, unknown>;
66423
+ settings?: {} | undefined;
66424
+ enabled?: boolean | undefined;
66425
+ default_from_address?: string | undefined;
66426
+ };
66427
+ };
66428
+ output: {};
66429
+ outputFormat: string;
66430
+ status: 409;
66431
+ } | {
66297
66432
  input: {
66298
66433
  header: {
66299
66434
  "tenant-id"?: string | undefined;
@@ -66349,6 +66484,28 @@ export declare function init(config: AuthHeroConfig): {
66349
66484
  status: 200;
66350
66485
  };
66351
66486
  };
66487
+ } & {
66488
+ "/": {
66489
+ $delete: {
66490
+ input: {
66491
+ header: {
66492
+ "tenant-id"?: string | undefined;
66493
+ };
66494
+ };
66495
+ output: {};
66496
+ outputFormat: string;
66497
+ status: 204;
66498
+ } | {
66499
+ input: {
66500
+ header: {
66501
+ "tenant-id"?: string | undefined;
66502
+ };
66503
+ };
66504
+ output: {};
66505
+ outputFormat: string;
66506
+ status: 404;
66507
+ };
66508
+ };
66352
66509
  }, "/email/providers"> & import("hono/types").MergeSchemaPath<{
66353
66510
  "/": {
66354
66511
  $get: {
@@ -67594,6 +67751,118 @@ export declare function init(config: AuthHeroConfig): {
67594
67751
  status: 500;
67595
67752
  };
67596
67753
  };
67754
+ }, "/login/callback"> & import("hono/types").MergeSchemaPath<{
67755
+ "/": {
67756
+ $get: {
67757
+ input: {
67758
+ query: {
67759
+ state: string;
67760
+ code?: string | undefined;
67761
+ scope?: string | undefined;
67762
+ error?: string | undefined;
67763
+ error_description?: string | undefined;
67764
+ error_code?: string | undefined;
67765
+ hd?: string | undefined;
67766
+ error_reason?: string | undefined;
67767
+ };
67768
+ };
67769
+ output: {};
67770
+ outputFormat: string;
67771
+ status: 302;
67772
+ } | {
67773
+ input: {
67774
+ query: {
67775
+ state: string;
67776
+ code?: string | undefined;
67777
+ scope?: string | undefined;
67778
+ error?: string | undefined;
67779
+ error_description?: string | undefined;
67780
+ error_code?: string | undefined;
67781
+ hd?: string | undefined;
67782
+ error_reason?: string | undefined;
67783
+ };
67784
+ };
67785
+ output: {
67786
+ message: string;
67787
+ };
67788
+ outputFormat: "json";
67789
+ status: 400;
67790
+ } | {
67791
+ input: {
67792
+ query: {
67793
+ state: string;
67794
+ code?: string | undefined;
67795
+ scope?: string | undefined;
67796
+ error?: string | undefined;
67797
+ error_description?: string | undefined;
67798
+ error_code?: string | undefined;
67799
+ hd?: string | undefined;
67800
+ error_reason?: string | undefined;
67801
+ };
67802
+ };
67803
+ output: {
67804
+ message: string;
67805
+ };
67806
+ outputFormat: "json";
67807
+ status: 500;
67808
+ };
67809
+ };
67810
+ } & {
67811
+ "/": {
67812
+ $post: {
67813
+ input: {
67814
+ form: {
67815
+ state: string;
67816
+ code?: string | undefined;
67817
+ scope?: string | undefined;
67818
+ error?: string | undefined;
67819
+ error_description?: string | undefined;
67820
+ error_code?: string | undefined;
67821
+ hd?: string | undefined;
67822
+ error_reason?: string | undefined;
67823
+ };
67824
+ };
67825
+ output: {};
67826
+ outputFormat: string;
67827
+ status: 302;
67828
+ } | {
67829
+ input: {
67830
+ form: {
67831
+ state: string;
67832
+ code?: string | undefined;
67833
+ scope?: string | undefined;
67834
+ error?: string | undefined;
67835
+ error_description?: string | undefined;
67836
+ error_code?: string | undefined;
67837
+ hd?: string | undefined;
67838
+ error_reason?: string | undefined;
67839
+ };
67840
+ };
67841
+ output: {
67842
+ message: string;
67843
+ };
67844
+ outputFormat: "json";
67845
+ status: 400;
67846
+ } | {
67847
+ input: {
67848
+ form: {
67849
+ state: string;
67850
+ code?: string | undefined;
67851
+ scope?: string | undefined;
67852
+ error?: string | undefined;
67853
+ error_description?: string | undefined;
67854
+ error_code?: string | undefined;
67855
+ hd?: string | undefined;
67856
+ error_reason?: string | undefined;
67857
+ };
67858
+ };
67859
+ output: {
67860
+ message: string;
67861
+ };
67862
+ outputFormat: "json";
67863
+ status: 500;
67864
+ };
67865
+ };
67597
67866
  }, "/callback"> & import("hono/types").MergeSchemaPath<{
67598
67867
  "/": {
67599
67868
  $get: {