authhero 0.140.0 → 0.142.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.
- package/dist/authhero.cjs +40 -40
- package/dist/authhero.d.ts +597 -77
- package/dist/authhero.mjs +6530 -6067
- package/package.json +3 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -10792,66 +10792,127 @@ export declare const formSchema: z.ZodObject<{
|
|
|
10792
10792
|
translations?: Record<string, any> | undefined;
|
|
10793
10793
|
}>;
|
|
10794
10794
|
export type Form = z.infer<typeof formSchema>;
|
|
10795
|
-
export declare const hookInsertSchema: z.
|
|
10796
|
-
|
|
10797
|
-
|
|
10798
|
-
|
|
10799
|
-
|
|
10800
|
-
|
|
10801
|
-
|
|
10802
|
-
|
|
10803
|
-
|
|
10804
|
-
|
|
10805
|
-
|
|
10806
|
-
|
|
10807
|
-
|
|
10808
|
-
|
|
10809
|
-
|
|
10810
|
-
|
|
10811
|
-
|
|
10812
|
-
|
|
10813
|
-
|
|
10814
|
-
|
|
10815
|
-
|
|
10816
|
-
|
|
10817
|
-
|
|
10818
|
-
|
|
10819
|
-
|
|
10820
|
-
|
|
10795
|
+
export declare const hookInsertSchema: z.ZodUnion<[
|
|
10796
|
+
z.ZodObject<{
|
|
10797
|
+
trigger_id: z.ZodEnum<[
|
|
10798
|
+
"pre-user-signup",
|
|
10799
|
+
"post-user-registration",
|
|
10800
|
+
"post-user-login"
|
|
10801
|
+
]>;
|
|
10802
|
+
url: z.ZodString;
|
|
10803
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
10804
|
+
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
10805
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
10806
|
+
hook_id: z.ZodOptional<z.ZodString>;
|
|
10807
|
+
}, "strip", z.ZodTypeAny, {
|
|
10808
|
+
enabled: boolean;
|
|
10809
|
+
url: string;
|
|
10810
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
10811
|
+
synchronous: boolean;
|
|
10812
|
+
priority?: number | undefined;
|
|
10813
|
+
hook_id?: string | undefined;
|
|
10814
|
+
}, {
|
|
10815
|
+
url: string;
|
|
10816
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
10817
|
+
enabled?: boolean | undefined;
|
|
10818
|
+
synchronous?: boolean | undefined;
|
|
10819
|
+
priority?: number | undefined;
|
|
10820
|
+
hook_id?: string | undefined;
|
|
10821
|
+
}>,
|
|
10822
|
+
z.ZodObject<{
|
|
10823
|
+
trigger_id: z.ZodEnum<[
|
|
10824
|
+
"pre-user-signup",
|
|
10825
|
+
"post-user-registration",
|
|
10826
|
+
"post-user-login"
|
|
10827
|
+
]>;
|
|
10828
|
+
form_id: z.ZodString;
|
|
10829
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
10830
|
+
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
10831
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
10832
|
+
hook_id: z.ZodOptional<z.ZodString>;
|
|
10833
|
+
}, "strip", z.ZodTypeAny, {
|
|
10834
|
+
enabled: boolean;
|
|
10835
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
10836
|
+
synchronous: boolean;
|
|
10837
|
+
form_id: string;
|
|
10838
|
+
priority?: number | undefined;
|
|
10839
|
+
hook_id?: string | undefined;
|
|
10840
|
+
}, {
|
|
10841
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
10842
|
+
form_id: string;
|
|
10843
|
+
enabled?: boolean | undefined;
|
|
10844
|
+
synchronous?: boolean | undefined;
|
|
10845
|
+
priority?: number | undefined;
|
|
10846
|
+
hook_id?: string | undefined;
|
|
10847
|
+
}>
|
|
10848
|
+
]>;
|
|
10821
10849
|
export type HookInsert = z.infer<typeof hookInsertSchema>;
|
|
10822
|
-
export declare const hookSchema: z.
|
|
10823
|
-
|
|
10824
|
-
|
|
10825
|
-
|
|
10826
|
-
|
|
10827
|
-
|
|
10828
|
-
|
|
10829
|
-
|
|
10830
|
-
|
|
10831
|
-
|
|
10832
|
-
|
|
10833
|
-
|
|
10834
|
-
|
|
10835
|
-
|
|
10836
|
-
}, "strip", z.ZodTypeAny, {
|
|
10837
|
-
|
|
10838
|
-
|
|
10839
|
-
|
|
10840
|
-
|
|
10841
|
-
|
|
10842
|
-
|
|
10843
|
-
|
|
10844
|
-
|
|
10845
|
-
}, {
|
|
10846
|
-
|
|
10847
|
-
|
|
10848
|
-
|
|
10849
|
-
|
|
10850
|
-
|
|
10851
|
-
|
|
10852
|
-
|
|
10853
|
-
|
|
10854
|
-
}
|
|
10850
|
+
export declare const hookSchema: z.ZodUnion<[
|
|
10851
|
+
z.ZodObject<{
|
|
10852
|
+
hook_id: z.ZodString;
|
|
10853
|
+
url: z.ZodString;
|
|
10854
|
+
created_at: z.ZodString;
|
|
10855
|
+
updated_at: z.ZodString;
|
|
10856
|
+
trigger_id: z.ZodEnum<[
|
|
10857
|
+
"pre-user-signup",
|
|
10858
|
+
"post-user-registration",
|
|
10859
|
+
"post-user-login"
|
|
10860
|
+
]>;
|
|
10861
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
10862
|
+
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
10863
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
10864
|
+
}, "strip", z.ZodTypeAny, {
|
|
10865
|
+
created_at: string;
|
|
10866
|
+
updated_at: string;
|
|
10867
|
+
enabled: boolean;
|
|
10868
|
+
url: string;
|
|
10869
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
10870
|
+
synchronous: boolean;
|
|
10871
|
+
hook_id: string;
|
|
10872
|
+
priority?: number | undefined;
|
|
10873
|
+
}, {
|
|
10874
|
+
created_at: string;
|
|
10875
|
+
updated_at: string;
|
|
10876
|
+
url: string;
|
|
10877
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
10878
|
+
hook_id: string;
|
|
10879
|
+
enabled?: boolean | undefined;
|
|
10880
|
+
synchronous?: boolean | undefined;
|
|
10881
|
+
priority?: number | undefined;
|
|
10882
|
+
}>,
|
|
10883
|
+
z.ZodObject<{
|
|
10884
|
+
hook_id: z.ZodString;
|
|
10885
|
+
form_id: z.ZodString;
|
|
10886
|
+
created_at: z.ZodString;
|
|
10887
|
+
updated_at: z.ZodString;
|
|
10888
|
+
trigger_id: z.ZodEnum<[
|
|
10889
|
+
"pre-user-signup",
|
|
10890
|
+
"post-user-registration",
|
|
10891
|
+
"post-user-login"
|
|
10892
|
+
]>;
|
|
10893
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
10894
|
+
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
10895
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
10896
|
+
}, "strip", z.ZodTypeAny, {
|
|
10897
|
+
created_at: string;
|
|
10898
|
+
updated_at: string;
|
|
10899
|
+
enabled: boolean;
|
|
10900
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
10901
|
+
synchronous: boolean;
|
|
10902
|
+
hook_id: string;
|
|
10903
|
+
form_id: string;
|
|
10904
|
+
priority?: number | undefined;
|
|
10905
|
+
}, {
|
|
10906
|
+
created_at: string;
|
|
10907
|
+
updated_at: string;
|
|
10908
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
10909
|
+
hook_id: string;
|
|
10910
|
+
form_id: string;
|
|
10911
|
+
enabled?: boolean | undefined;
|
|
10912
|
+
synchronous?: boolean | undefined;
|
|
10913
|
+
priority?: number | undefined;
|
|
10914
|
+
}>
|
|
10915
|
+
]>;
|
|
10855
10916
|
export type Hook = z.infer<typeof hookSchema>;
|
|
10856
10917
|
export declare const profileDataSchema: z.ZodObject<{
|
|
10857
10918
|
email: z.ZodOptional<z.ZodString>;
|
|
@@ -15309,29 +15370,47 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
15309
15370
|
"tenant-id": string;
|
|
15310
15371
|
};
|
|
15311
15372
|
};
|
|
15312
|
-
output: {
|
|
15373
|
+
output: ({
|
|
15313
15374
|
created_at: string;
|
|
15314
15375
|
updated_at: string;
|
|
15315
15376
|
enabled: boolean;
|
|
15316
15377
|
url: string;
|
|
15317
15378
|
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
15379
|
+
synchronous: boolean;
|
|
15318
15380
|
hook_id: string;
|
|
15381
|
+
priority?: number | undefined | undefined;
|
|
15382
|
+
} | {
|
|
15383
|
+
created_at: string;
|
|
15384
|
+
updated_at: string;
|
|
15385
|
+
enabled: boolean;
|
|
15386
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
15319
15387
|
synchronous: boolean;
|
|
15388
|
+
hook_id: string;
|
|
15389
|
+
form_id: string;
|
|
15320
15390
|
priority?: number | undefined | undefined;
|
|
15321
|
-
}[] | {
|
|
15391
|
+
})[] | {
|
|
15322
15392
|
length: number;
|
|
15323
15393
|
start: number;
|
|
15324
15394
|
limit: number;
|
|
15325
|
-
hooks: {
|
|
15395
|
+
hooks: ({
|
|
15326
15396
|
created_at: string;
|
|
15327
15397
|
updated_at: string;
|
|
15328
15398
|
enabled: boolean;
|
|
15329
15399
|
url: string;
|
|
15330
15400
|
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
15401
|
+
synchronous: boolean;
|
|
15331
15402
|
hook_id: string;
|
|
15403
|
+
priority?: number | undefined | undefined;
|
|
15404
|
+
} | {
|
|
15405
|
+
created_at: string;
|
|
15406
|
+
updated_at: string;
|
|
15407
|
+
enabled: boolean;
|
|
15408
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
15332
15409
|
synchronous: boolean;
|
|
15410
|
+
hook_id: string;
|
|
15411
|
+
form_id: string;
|
|
15333
15412
|
priority?: number | undefined | undefined;
|
|
15334
|
-
}[];
|
|
15413
|
+
})[];
|
|
15335
15414
|
};
|
|
15336
15415
|
outputFormat: "json";
|
|
15337
15416
|
status: 200;
|
|
@@ -15347,11 +15426,18 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
15347
15426
|
} & {
|
|
15348
15427
|
json: {
|
|
15349
15428
|
url: string;
|
|
15350
|
-
trigger_id: "
|
|
15429
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
15351
15430
|
enabled?: boolean | undefined;
|
|
15431
|
+
synchronous?: boolean | undefined;
|
|
15432
|
+
priority?: number | undefined;
|
|
15352
15433
|
hook_id?: string | undefined;
|
|
15434
|
+
} | {
|
|
15435
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
15436
|
+
form_id: string;
|
|
15437
|
+
enabled?: boolean | undefined;
|
|
15353
15438
|
synchronous?: boolean | undefined;
|
|
15354
15439
|
priority?: number | undefined;
|
|
15440
|
+
hook_id?: string | undefined;
|
|
15355
15441
|
};
|
|
15356
15442
|
};
|
|
15357
15443
|
output: {
|
|
@@ -15360,8 +15446,17 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
15360
15446
|
enabled: boolean;
|
|
15361
15447
|
url: string;
|
|
15362
15448
|
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
15449
|
+
synchronous: boolean;
|
|
15363
15450
|
hook_id: string;
|
|
15451
|
+
priority?: number | undefined | undefined;
|
|
15452
|
+
} | {
|
|
15453
|
+
created_at: string;
|
|
15454
|
+
updated_at: string;
|
|
15455
|
+
enabled: boolean;
|
|
15456
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
15364
15457
|
synchronous: boolean;
|
|
15458
|
+
hook_id: string;
|
|
15459
|
+
form_id: string;
|
|
15365
15460
|
priority?: number | undefined | undefined;
|
|
15366
15461
|
};
|
|
15367
15462
|
outputFormat: "json";
|
|
@@ -15383,9 +15478,15 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
15383
15478
|
json: {
|
|
15384
15479
|
url?: string | undefined;
|
|
15385
15480
|
enabled?: boolean | undefined;
|
|
15386
|
-
trigger_id?: "
|
|
15481
|
+
trigger_id?: "pre-user-signup" | "post-user-registration" | "post-user-login" | undefined;
|
|
15387
15482
|
synchronous?: boolean | undefined;
|
|
15388
15483
|
priority?: number | undefined;
|
|
15484
|
+
} | {
|
|
15485
|
+
enabled?: boolean | undefined;
|
|
15486
|
+
trigger_id?: "pre-user-signup" | "post-user-registration" | "post-user-login" | undefined;
|
|
15487
|
+
synchronous?: boolean | undefined;
|
|
15488
|
+
priority?: number | undefined;
|
|
15489
|
+
form_id?: string | undefined;
|
|
15389
15490
|
};
|
|
15390
15491
|
};
|
|
15391
15492
|
output: {};
|
|
@@ -15404,12 +15505,36 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
15404
15505
|
json: {
|
|
15405
15506
|
url?: string | undefined;
|
|
15406
15507
|
enabled?: boolean | undefined;
|
|
15407
|
-
trigger_id?: "
|
|
15508
|
+
trigger_id?: "pre-user-signup" | "post-user-registration" | "post-user-login" | undefined;
|
|
15509
|
+
synchronous?: boolean | undefined;
|
|
15510
|
+
priority?: number | undefined;
|
|
15511
|
+
} | {
|
|
15512
|
+
enabled?: boolean | undefined;
|
|
15513
|
+
trigger_id?: "pre-user-signup" | "post-user-registration" | "post-user-login" | undefined;
|
|
15408
15514
|
synchronous?: boolean | undefined;
|
|
15409
15515
|
priority?: number | undefined;
|
|
15516
|
+
form_id?: string | undefined;
|
|
15410
15517
|
};
|
|
15411
15518
|
};
|
|
15412
|
-
output:
|
|
15519
|
+
output: {
|
|
15520
|
+
created_at: string;
|
|
15521
|
+
updated_at: string;
|
|
15522
|
+
enabled: boolean;
|
|
15523
|
+
url: string;
|
|
15524
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
15525
|
+
synchronous: boolean;
|
|
15526
|
+
hook_id: string;
|
|
15527
|
+
priority?: number | undefined | undefined;
|
|
15528
|
+
} | {
|
|
15529
|
+
created_at: string;
|
|
15530
|
+
updated_at: string;
|
|
15531
|
+
enabled: boolean;
|
|
15532
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
15533
|
+
synchronous: boolean;
|
|
15534
|
+
hook_id: string;
|
|
15535
|
+
form_id: string;
|
|
15536
|
+
priority?: number | undefined | undefined;
|
|
15537
|
+
};
|
|
15413
15538
|
outputFormat: "json";
|
|
15414
15539
|
status: 200;
|
|
15415
15540
|
};
|
|
@@ -15445,8 +15570,17 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
15445
15570
|
enabled: boolean;
|
|
15446
15571
|
url: string;
|
|
15447
15572
|
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
15573
|
+
synchronous: boolean;
|
|
15448
15574
|
hook_id: string;
|
|
15575
|
+
priority?: number | undefined | undefined;
|
|
15576
|
+
} | {
|
|
15577
|
+
created_at: string;
|
|
15578
|
+
updated_at: string;
|
|
15579
|
+
enabled: boolean;
|
|
15580
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
15449
15581
|
synchronous: boolean;
|
|
15582
|
+
hook_id: string;
|
|
15583
|
+
form_id: string;
|
|
15450
15584
|
priority?: number | undefined | undefined;
|
|
15451
15585
|
};
|
|
15452
15586
|
outputFormat: "json";
|
|
@@ -17032,6 +17166,42 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
17032
17166
|
output: {};
|
|
17033
17167
|
outputFormat: string;
|
|
17034
17168
|
status: 302;
|
|
17169
|
+
} | {
|
|
17170
|
+
input: {
|
|
17171
|
+
query: {
|
|
17172
|
+
state: string;
|
|
17173
|
+
code?: string | undefined;
|
|
17174
|
+
error?: string | undefined;
|
|
17175
|
+
scope?: string | undefined;
|
|
17176
|
+
error_description?: string | undefined;
|
|
17177
|
+
error_reason?: string | undefined;
|
|
17178
|
+
error_code?: string | undefined;
|
|
17179
|
+
hd?: string | undefined;
|
|
17180
|
+
};
|
|
17181
|
+
};
|
|
17182
|
+
output: {
|
|
17183
|
+
message: string;
|
|
17184
|
+
};
|
|
17185
|
+
outputFormat: "json";
|
|
17186
|
+
status: 400;
|
|
17187
|
+
} | {
|
|
17188
|
+
input: {
|
|
17189
|
+
query: {
|
|
17190
|
+
state: string;
|
|
17191
|
+
code?: string | undefined;
|
|
17192
|
+
error?: string | undefined;
|
|
17193
|
+
scope?: string | undefined;
|
|
17194
|
+
error_description?: string | undefined;
|
|
17195
|
+
error_reason?: string | undefined;
|
|
17196
|
+
error_code?: string | undefined;
|
|
17197
|
+
hd?: string | undefined;
|
|
17198
|
+
};
|
|
17199
|
+
};
|
|
17200
|
+
output: {
|
|
17201
|
+
message: string;
|
|
17202
|
+
};
|
|
17203
|
+
outputFormat: "json";
|
|
17204
|
+
status: 500;
|
|
17035
17205
|
};
|
|
17036
17206
|
};
|
|
17037
17207
|
} & {
|
|
@@ -17052,6 +17222,42 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
17052
17222
|
output: {};
|
|
17053
17223
|
outputFormat: string;
|
|
17054
17224
|
status: 302;
|
|
17225
|
+
} | {
|
|
17226
|
+
input: {
|
|
17227
|
+
form: {
|
|
17228
|
+
state: string;
|
|
17229
|
+
code?: string | undefined;
|
|
17230
|
+
error?: string | undefined;
|
|
17231
|
+
scope?: string | undefined;
|
|
17232
|
+
error_description?: string | undefined;
|
|
17233
|
+
error_reason?: string | undefined;
|
|
17234
|
+
error_code?: string | undefined;
|
|
17235
|
+
hd?: string | undefined;
|
|
17236
|
+
};
|
|
17237
|
+
};
|
|
17238
|
+
output: {
|
|
17239
|
+
message: string;
|
|
17240
|
+
};
|
|
17241
|
+
outputFormat: "json";
|
|
17242
|
+
status: 400;
|
|
17243
|
+
} | {
|
|
17244
|
+
input: {
|
|
17245
|
+
form: {
|
|
17246
|
+
state: string;
|
|
17247
|
+
code?: string | undefined;
|
|
17248
|
+
error?: string | undefined;
|
|
17249
|
+
scope?: string | undefined;
|
|
17250
|
+
error_description?: string | undefined;
|
|
17251
|
+
error_reason?: string | undefined;
|
|
17252
|
+
error_code?: string | undefined;
|
|
17253
|
+
hd?: string | undefined;
|
|
17254
|
+
};
|
|
17255
|
+
};
|
|
17256
|
+
output: {
|
|
17257
|
+
message: string;
|
|
17258
|
+
};
|
|
17259
|
+
outputFormat: "json";
|
|
17260
|
+
status: 500;
|
|
17055
17261
|
};
|
|
17056
17262
|
};
|
|
17057
17263
|
}, "/callback"> & import("hono/types").MergeSchemaPath<{
|
|
@@ -17082,9 +17288,9 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
17082
17288
|
max_age?: string | undefined;
|
|
17083
17289
|
};
|
|
17084
17290
|
};
|
|
17085
|
-
output:
|
|
17086
|
-
outputFormat:
|
|
17087
|
-
status:
|
|
17291
|
+
output: Response;
|
|
17292
|
+
outputFormat: "json";
|
|
17293
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
17088
17294
|
} | {
|
|
17089
17295
|
input: {
|
|
17090
17296
|
query: {
|
|
@@ -17114,6 +17320,105 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
17114
17320
|
output: {};
|
|
17115
17321
|
outputFormat: string;
|
|
17116
17322
|
status: 302;
|
|
17323
|
+
} | {
|
|
17324
|
+
input: {
|
|
17325
|
+
query: {
|
|
17326
|
+
client_id: string;
|
|
17327
|
+
state: string;
|
|
17328
|
+
redirect_uri: string;
|
|
17329
|
+
nonce?: string | undefined;
|
|
17330
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
17331
|
+
connection?: string | undefined;
|
|
17332
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
17333
|
+
audience?: string | undefined;
|
|
17334
|
+
auth0Client?: string | undefined;
|
|
17335
|
+
scope?: string | undefined;
|
|
17336
|
+
login_ticket?: string | undefined;
|
|
17337
|
+
screen_hint?: string | undefined;
|
|
17338
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
17339
|
+
realm?: string | undefined;
|
|
17340
|
+
code_challenge?: string | undefined;
|
|
17341
|
+
organization?: string | undefined;
|
|
17342
|
+
prompt?: string | undefined;
|
|
17343
|
+
ui_locales?: string | undefined;
|
|
17344
|
+
vendor_id?: string | undefined;
|
|
17345
|
+
login_hint?: string | undefined;
|
|
17346
|
+
max_age?: string | undefined;
|
|
17347
|
+
};
|
|
17348
|
+
};
|
|
17349
|
+
output: string | {
|
|
17350
|
+
access_token: string;
|
|
17351
|
+
token_type: string;
|
|
17352
|
+
expires_in: number;
|
|
17353
|
+
refresh_token?: string | undefined | undefined;
|
|
17354
|
+
state?: string | undefined | undefined;
|
|
17355
|
+
scope?: string | undefined | undefined;
|
|
17356
|
+
id_token?: string | undefined | undefined;
|
|
17357
|
+
};
|
|
17358
|
+
outputFormat: "json";
|
|
17359
|
+
status: 200;
|
|
17360
|
+
} | {
|
|
17361
|
+
input: {
|
|
17362
|
+
query: {
|
|
17363
|
+
client_id: string;
|
|
17364
|
+
state: string;
|
|
17365
|
+
redirect_uri: string;
|
|
17366
|
+
nonce?: string | undefined;
|
|
17367
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
17368
|
+
connection?: string | undefined;
|
|
17369
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
17370
|
+
audience?: string | undefined;
|
|
17371
|
+
auth0Client?: string | undefined;
|
|
17372
|
+
scope?: string | undefined;
|
|
17373
|
+
login_ticket?: string | undefined;
|
|
17374
|
+
screen_hint?: string | undefined;
|
|
17375
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
17376
|
+
realm?: string | undefined;
|
|
17377
|
+
code_challenge?: string | undefined;
|
|
17378
|
+
organization?: string | undefined;
|
|
17379
|
+
prompt?: string | undefined;
|
|
17380
|
+
ui_locales?: string | undefined;
|
|
17381
|
+
vendor_id?: string | undefined;
|
|
17382
|
+
login_hint?: string | undefined;
|
|
17383
|
+
max_age?: string | undefined;
|
|
17384
|
+
};
|
|
17385
|
+
};
|
|
17386
|
+
output: {
|
|
17387
|
+
message: string;
|
|
17388
|
+
};
|
|
17389
|
+
outputFormat: "json";
|
|
17390
|
+
status: 400;
|
|
17391
|
+
} | {
|
|
17392
|
+
input: {
|
|
17393
|
+
query: {
|
|
17394
|
+
client_id: string;
|
|
17395
|
+
state: string;
|
|
17396
|
+
redirect_uri: string;
|
|
17397
|
+
nonce?: string | undefined;
|
|
17398
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
17399
|
+
connection?: string | undefined;
|
|
17400
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
17401
|
+
audience?: string | undefined;
|
|
17402
|
+
auth0Client?: string | undefined;
|
|
17403
|
+
scope?: string | undefined;
|
|
17404
|
+
login_ticket?: string | undefined;
|
|
17405
|
+
screen_hint?: string | undefined;
|
|
17406
|
+
code_challenge_method?: CodeChallengeMethod | undefined;
|
|
17407
|
+
realm?: string | undefined;
|
|
17408
|
+
code_challenge?: string | undefined;
|
|
17409
|
+
organization?: string | undefined;
|
|
17410
|
+
prompt?: string | undefined;
|
|
17411
|
+
ui_locales?: string | undefined;
|
|
17412
|
+
vendor_id?: string | undefined;
|
|
17413
|
+
login_hint?: string | undefined;
|
|
17414
|
+
max_age?: string | undefined;
|
|
17415
|
+
};
|
|
17416
|
+
};
|
|
17417
|
+
output: {
|
|
17418
|
+
message: string;
|
|
17419
|
+
};
|
|
17420
|
+
outputFormat: "json";
|
|
17421
|
+
status: 403;
|
|
17117
17422
|
};
|
|
17118
17423
|
};
|
|
17119
17424
|
}, "/authorize"> & import("hono/types").MergeSchemaPath<{
|
|
@@ -17216,6 +17521,48 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
17216
17521
|
output: {};
|
|
17217
17522
|
outputFormat: string;
|
|
17218
17523
|
status: 302;
|
|
17524
|
+
} | {
|
|
17525
|
+
input: {
|
|
17526
|
+
query: {
|
|
17527
|
+
email: string;
|
|
17528
|
+
client_id: string;
|
|
17529
|
+
connection: string;
|
|
17530
|
+
response_type: AuthorizationResponseType;
|
|
17531
|
+
state: string;
|
|
17532
|
+
scope: string;
|
|
17533
|
+
redirect_uri: string;
|
|
17534
|
+
verification_code: string;
|
|
17535
|
+
nonce?: string | undefined;
|
|
17536
|
+
audience?: string | undefined;
|
|
17537
|
+
};
|
|
17538
|
+
};
|
|
17539
|
+
output: {
|
|
17540
|
+
error: string;
|
|
17541
|
+
error_description?: string | undefined;
|
|
17542
|
+
};
|
|
17543
|
+
outputFormat: "json";
|
|
17544
|
+
status: 400;
|
|
17545
|
+
} | {
|
|
17546
|
+
input: {
|
|
17547
|
+
query: {
|
|
17548
|
+
email: string;
|
|
17549
|
+
client_id: string;
|
|
17550
|
+
connection: string;
|
|
17551
|
+
response_type: AuthorizationResponseType;
|
|
17552
|
+
state: string;
|
|
17553
|
+
scope: string;
|
|
17554
|
+
redirect_uri: string;
|
|
17555
|
+
verification_code: string;
|
|
17556
|
+
nonce?: string | undefined;
|
|
17557
|
+
audience?: string | undefined;
|
|
17558
|
+
};
|
|
17559
|
+
};
|
|
17560
|
+
output: {
|
|
17561
|
+
error: string;
|
|
17562
|
+
error_description?: string | undefined;
|
|
17563
|
+
};
|
|
17564
|
+
outputFormat: "json";
|
|
17565
|
+
status: 500;
|
|
17219
17566
|
};
|
|
17220
17567
|
};
|
|
17221
17568
|
}, "/passwordless"> & import("hono/types").MergeSchemaPath<{
|
|
@@ -17258,6 +17605,42 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
17258
17605
|
}, "/dbconnections"> & import("hono/types").MergeSchemaPath<{
|
|
17259
17606
|
"/": {
|
|
17260
17607
|
$post: {
|
|
17608
|
+
input: {
|
|
17609
|
+
form: {
|
|
17610
|
+
grant_type: "client_credentials";
|
|
17611
|
+
client_id?: string | undefined;
|
|
17612
|
+
audience?: string | undefined;
|
|
17613
|
+
scope?: string | undefined;
|
|
17614
|
+
client_secret?: string | undefined;
|
|
17615
|
+
} | {
|
|
17616
|
+
code: string;
|
|
17617
|
+
client_id: string;
|
|
17618
|
+
redirect_uri: string;
|
|
17619
|
+
grant_type: "authorization_code";
|
|
17620
|
+
code_verifier: string;
|
|
17621
|
+
} | {
|
|
17622
|
+
code: string;
|
|
17623
|
+
grant_type: "authorization_code";
|
|
17624
|
+
client_id?: string | undefined;
|
|
17625
|
+
client_secret?: string | undefined;
|
|
17626
|
+
redirect_uri?: string | undefined;
|
|
17627
|
+
} | {
|
|
17628
|
+
client_id: string;
|
|
17629
|
+
refresh_token: string;
|
|
17630
|
+
grant_type: "refresh_token";
|
|
17631
|
+
redirect_uri?: string | undefined;
|
|
17632
|
+
} | {
|
|
17633
|
+
client_id: string;
|
|
17634
|
+
username: string;
|
|
17635
|
+
otp: string;
|
|
17636
|
+
grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
|
|
17637
|
+
realm: "email" | "sms";
|
|
17638
|
+
};
|
|
17639
|
+
};
|
|
17640
|
+
output: {};
|
|
17641
|
+
outputFormat: string;
|
|
17642
|
+
status: 302;
|
|
17643
|
+
} | {
|
|
17261
17644
|
input: {
|
|
17262
17645
|
form: {
|
|
17263
17646
|
grant_type: "client_credentials";
|
|
@@ -17301,6 +17684,84 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
17301
17684
|
};
|
|
17302
17685
|
outputFormat: "json";
|
|
17303
17686
|
status: 200;
|
|
17687
|
+
} | {
|
|
17688
|
+
input: {
|
|
17689
|
+
form: {
|
|
17690
|
+
grant_type: "client_credentials";
|
|
17691
|
+
client_id?: string | undefined;
|
|
17692
|
+
audience?: string | undefined;
|
|
17693
|
+
scope?: string | undefined;
|
|
17694
|
+
client_secret?: string | undefined;
|
|
17695
|
+
} | {
|
|
17696
|
+
code: string;
|
|
17697
|
+
client_id: string;
|
|
17698
|
+
redirect_uri: string;
|
|
17699
|
+
grant_type: "authorization_code";
|
|
17700
|
+
code_verifier: string;
|
|
17701
|
+
} | {
|
|
17702
|
+
code: string;
|
|
17703
|
+
grant_type: "authorization_code";
|
|
17704
|
+
client_id?: string | undefined;
|
|
17705
|
+
client_secret?: string | undefined;
|
|
17706
|
+
redirect_uri?: string | undefined;
|
|
17707
|
+
} | {
|
|
17708
|
+
client_id: string;
|
|
17709
|
+
refresh_token: string;
|
|
17710
|
+
grant_type: "refresh_token";
|
|
17711
|
+
redirect_uri?: string | undefined;
|
|
17712
|
+
} | {
|
|
17713
|
+
client_id: string;
|
|
17714
|
+
username: string;
|
|
17715
|
+
otp: string;
|
|
17716
|
+
grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
|
|
17717
|
+
realm: "email" | "sms";
|
|
17718
|
+
};
|
|
17719
|
+
};
|
|
17720
|
+
output: {
|
|
17721
|
+
error: string;
|
|
17722
|
+
error_description?: string | undefined;
|
|
17723
|
+
};
|
|
17724
|
+
outputFormat: "json";
|
|
17725
|
+
status: 400;
|
|
17726
|
+
} | {
|
|
17727
|
+
input: {
|
|
17728
|
+
form: {
|
|
17729
|
+
grant_type: "client_credentials";
|
|
17730
|
+
client_id?: string | undefined;
|
|
17731
|
+
audience?: string | undefined;
|
|
17732
|
+
scope?: string | undefined;
|
|
17733
|
+
client_secret?: string | undefined;
|
|
17734
|
+
} | {
|
|
17735
|
+
code: string;
|
|
17736
|
+
client_id: string;
|
|
17737
|
+
redirect_uri: string;
|
|
17738
|
+
grant_type: "authorization_code";
|
|
17739
|
+
code_verifier: string;
|
|
17740
|
+
} | {
|
|
17741
|
+
code: string;
|
|
17742
|
+
grant_type: "authorization_code";
|
|
17743
|
+
client_id?: string | undefined;
|
|
17744
|
+
client_secret?: string | undefined;
|
|
17745
|
+
redirect_uri?: string | undefined;
|
|
17746
|
+
} | {
|
|
17747
|
+
client_id: string;
|
|
17748
|
+
refresh_token: string;
|
|
17749
|
+
grant_type: "refresh_token";
|
|
17750
|
+
redirect_uri?: string | undefined;
|
|
17751
|
+
} | {
|
|
17752
|
+
client_id: string;
|
|
17753
|
+
username: string;
|
|
17754
|
+
otp: string;
|
|
17755
|
+
grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
|
|
17756
|
+
realm: "email" | "sms";
|
|
17757
|
+
};
|
|
17758
|
+
};
|
|
17759
|
+
output: {
|
|
17760
|
+
error: string;
|
|
17761
|
+
error_description?: string | undefined;
|
|
17762
|
+
};
|
|
17763
|
+
outputFormat: "json";
|
|
17764
|
+
status: 401;
|
|
17304
17765
|
};
|
|
17305
17766
|
};
|
|
17306
17767
|
}, "/oauth/token"> & import("hono/types").MergeSchemaPath<{
|
|
@@ -17471,6 +17932,21 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
17471
17932
|
} & {
|
|
17472
17933
|
"/": {
|
|
17473
17934
|
$post: {
|
|
17935
|
+
input: {
|
|
17936
|
+
query: {
|
|
17937
|
+
state: string;
|
|
17938
|
+
};
|
|
17939
|
+
} & {
|
|
17940
|
+
form: {
|
|
17941
|
+
password: string;
|
|
17942
|
+
"re-enter-password": string;
|
|
17943
|
+
code?: string | undefined;
|
|
17944
|
+
};
|
|
17945
|
+
};
|
|
17946
|
+
output: Response;
|
|
17947
|
+
outputFormat: "json";
|
|
17948
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
17949
|
+
} | {
|
|
17474
17950
|
input: {
|
|
17475
17951
|
query: {
|
|
17476
17952
|
state: string;
|
|
@@ -17484,7 +17960,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
17484
17960
|
};
|
|
17485
17961
|
output: {};
|
|
17486
17962
|
outputFormat: string;
|
|
17487
|
-
status:
|
|
17963
|
+
status: 302;
|
|
17488
17964
|
};
|
|
17489
17965
|
};
|
|
17490
17966
|
}, "/signup"> & import("hono/types").MergeSchemaPath<{
|
|
@@ -17628,6 +18104,19 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
17628
18104
|
} & {
|
|
17629
18105
|
"/": {
|
|
17630
18106
|
$post: {
|
|
18107
|
+
input: {
|
|
18108
|
+
query: {
|
|
18109
|
+
state: string;
|
|
18110
|
+
};
|
|
18111
|
+
} & {
|
|
18112
|
+
form: {
|
|
18113
|
+
password: string;
|
|
18114
|
+
};
|
|
18115
|
+
};
|
|
18116
|
+
output: Response;
|
|
18117
|
+
outputFormat: "json";
|
|
18118
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
18119
|
+
} | {
|
|
17631
18120
|
input: {
|
|
17632
18121
|
query: {
|
|
17633
18122
|
state: string;
|
|
@@ -17639,7 +18128,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
17639
18128
|
};
|
|
17640
18129
|
output: {};
|
|
17641
18130
|
outputFormat: string;
|
|
17642
|
-
status:
|
|
18131
|
+
status: 302;
|
|
17643
18132
|
};
|
|
17644
18133
|
};
|
|
17645
18134
|
}, "/enter-password"> & import("hono/types").MergeSchemaPath<{
|
|
@@ -17650,14 +18139,27 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
17650
18139
|
state: string;
|
|
17651
18140
|
};
|
|
17652
18141
|
};
|
|
17653
|
-
output:
|
|
17654
|
-
outputFormat:
|
|
17655
|
-
status:
|
|
18142
|
+
output: Response;
|
|
18143
|
+
outputFormat: "json";
|
|
18144
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
17656
18145
|
};
|
|
17657
18146
|
};
|
|
17658
18147
|
} & {
|
|
17659
18148
|
"/": {
|
|
17660
18149
|
$post: {
|
|
18150
|
+
input: {
|
|
18151
|
+
query: {
|
|
18152
|
+
state: string;
|
|
18153
|
+
};
|
|
18154
|
+
} & {
|
|
18155
|
+
form: {
|
|
18156
|
+
code: string;
|
|
18157
|
+
};
|
|
18158
|
+
};
|
|
18159
|
+
output: Response;
|
|
18160
|
+
outputFormat: "json";
|
|
18161
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
18162
|
+
} | {
|
|
17661
18163
|
input: {
|
|
17662
18164
|
query: {
|
|
17663
18165
|
state: string;
|
|
@@ -17669,7 +18171,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
17669
18171
|
};
|
|
17670
18172
|
output: {};
|
|
17671
18173
|
outputFormat: string;
|
|
17672
|
-
status:
|
|
18174
|
+
status: 302;
|
|
17673
18175
|
};
|
|
17674
18176
|
};
|
|
17675
18177
|
}, "/enter-code"> & import("hono/types").MergeSchemaPath<{
|
|
@@ -17707,6 +18209,15 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
17707
18209
|
}, "/login/identifier"> & import("hono/types").MergeSchemaPath<{
|
|
17708
18210
|
"/": {
|
|
17709
18211
|
$get: {
|
|
18212
|
+
input: {
|
|
18213
|
+
query: {
|
|
18214
|
+
state: string;
|
|
18215
|
+
};
|
|
18216
|
+
};
|
|
18217
|
+
output: Response;
|
|
18218
|
+
outputFormat: "json";
|
|
18219
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
18220
|
+
} | {
|
|
17710
18221
|
input: {
|
|
17711
18222
|
query: {
|
|
17712
18223
|
state: string;
|
|
@@ -17714,12 +18225,21 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
17714
18225
|
};
|
|
17715
18226
|
output: {};
|
|
17716
18227
|
outputFormat: string;
|
|
17717
|
-
status:
|
|
18228
|
+
status: 302;
|
|
17718
18229
|
};
|
|
17719
18230
|
};
|
|
17720
18231
|
} & {
|
|
17721
18232
|
"/": {
|
|
17722
18233
|
$post: {
|
|
18234
|
+
input: {
|
|
18235
|
+
query: {
|
|
18236
|
+
state: string;
|
|
18237
|
+
};
|
|
18238
|
+
};
|
|
18239
|
+
output: Response;
|
|
18240
|
+
outputFormat: "json";
|
|
18241
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
18242
|
+
} | {
|
|
17723
18243
|
input: {
|
|
17724
18244
|
query: {
|
|
17725
18245
|
state: string;
|