authhero 4.111.0 → 4.112.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;
@@ -52190,6 +52203,7 @@ declare const enrichedClientSchema: z.ZodObject<{
52190
52203
  twilio_token: z.ZodOptional<z.ZodString>;
52191
52204
  icon_url: z.ZodOptional<z.ZodString>;
52192
52205
  domain_aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
52206
+ callback_url: z.ZodOptional<z.ZodString>;
52193
52207
  passwordPolicy: z.ZodOptional<z.ZodEnum<[
52194
52208
  "none",
52195
52209
  "low",
@@ -52617,6 +52631,7 @@ declare const enrichedClientSchema: z.ZodObject<{
52617
52631
  twilio_token?: string | undefined;
52618
52632
  icon_url?: string | undefined;
52619
52633
  domain_aliases?: string[] | undefined;
52634
+ callback_url?: string | undefined;
52620
52635
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
52621
52636
  password_complexity_options?: {
52622
52637
  min_length?: number | undefined;
@@ -52721,6 +52736,7 @@ declare const enrichedClientSchema: z.ZodObject<{
52721
52736
  twilio_token?: string | undefined;
52722
52737
  icon_url?: string | undefined;
52723
52738
  domain_aliases?: string[] | undefined;
52739
+ callback_url?: string | undefined;
52724
52740
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
52725
52741
  password_complexity_options?: {
52726
52742
  min_length?: number | undefined;
@@ -52825,6 +52841,7 @@ declare const enrichedClientSchema: z.ZodObject<{
52825
52841
  twilio_token?: string | undefined;
52826
52842
  icon_url?: string | undefined;
52827
52843
  domain_aliases?: string[] | undefined;
52844
+ callback_url?: string | undefined;
52828
52845
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
52829
52846
  password_complexity_options?: {
52830
52847
  min_length?: number | undefined;
@@ -52940,6 +52957,7 @@ declare const enrichedClientSchema: z.ZodObject<{
52940
52957
  twilio_token?: string | undefined;
52941
52958
  icon_url?: string | undefined;
52942
52959
  domain_aliases?: string[] | undefined;
52960
+ callback_url?: string | undefined;
52943
52961
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
52944
52962
  password_complexity_options?: {
52945
52963
  min_length?: number | undefined;
@@ -53382,6 +53400,7 @@ declare const enrichedClientSchema: z.ZodObject<{
53382
53400
  twilio_token?: string | undefined;
53383
53401
  icon_url?: string | undefined;
53384
53402
  domain_aliases?: string[] | undefined;
53403
+ callback_url?: string | undefined;
53385
53404
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
53386
53405
  password_complexity_options?: {
53387
53406
  min_length?: number | undefined;
@@ -54741,6 +54760,30 @@ export interface InMemoryCacheConfig {
54741
54760
  * Create an in-memory cache adapter
54742
54761
  */
54743
54762
  export declare function createInMemoryCache(config?: InMemoryCacheConfig): CacheAdapter;
54763
+ export declare const mailgunCredentialsSchema: z.ZodObject<{
54764
+ api_key: z.ZodString;
54765
+ domain: z.ZodString;
54766
+ region: z.ZodOptional<z.ZodNullable<z.ZodEnum<[
54767
+ "eu"
54768
+ ]>>>;
54769
+ }, "strip", z.ZodTypeAny, {
54770
+ api_key: string;
54771
+ domain: string;
54772
+ region?: "eu" | null | undefined;
54773
+ }, {
54774
+ api_key: string;
54775
+ domain: string;
54776
+ region?: "eu" | null | undefined;
54777
+ }>;
54778
+ export type MailgunCredentials = z.infer<typeof mailgunCredentialsSchema>;
54779
+ export interface MailgunEmailServiceOptions {
54780
+ fetchImpl?: typeof fetch;
54781
+ }
54782
+ export declare class MailgunEmailService implements EmailServiceAdapter {
54783
+ private readonly fetchImpl;
54784
+ constructor(options?: MailgunEmailServiceOptions);
54785
+ send(params: EmailServiceSendParams): Promise<void>;
54786
+ }
54744
54787
  /**
54745
54788
  * Register a background promise tied to the current request.
54746
54789
  *
@@ -61956,6 +61999,7 @@ export declare function init(config: AuthHeroConfig): {
61956
61999
  twilio_token?: string | undefined | undefined;
61957
62000
  icon_url?: string | undefined | undefined;
61958
62001
  domain_aliases?: string[] | undefined | undefined;
62002
+ callback_url?: string | undefined | undefined;
61959
62003
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined | undefined;
61960
62004
  password_complexity_options?: {
61961
62005
  min_length?: number | undefined | undefined;
@@ -62079,6 +62123,7 @@ export declare function init(config: AuthHeroConfig): {
62079
62123
  twilio_token?: string | undefined | undefined;
62080
62124
  icon_url?: string | undefined | undefined;
62081
62125
  domain_aliases?: string[] | undefined | undefined;
62126
+ callback_url?: string | undefined | undefined;
62082
62127
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined | undefined;
62083
62128
  password_complexity_options?: {
62084
62129
  min_length?: number | undefined | undefined;
@@ -62221,6 +62266,7 @@ export declare function init(config: AuthHeroConfig): {
62221
62266
  twilio_token?: string | undefined | undefined;
62222
62267
  icon_url?: string | undefined | undefined;
62223
62268
  domain_aliases?: string[] | undefined | undefined;
62269
+ callback_url?: string | undefined | undefined;
62224
62270
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined | undefined;
62225
62271
  password_complexity_options?: {
62226
62272
  min_length?: number | undefined | undefined;
@@ -62391,6 +62437,7 @@ export declare function init(config: AuthHeroConfig): {
62391
62437
  twilio_token?: string | undefined | undefined;
62392
62438
  icon_url?: string | undefined | undefined;
62393
62439
  domain_aliases?: string[] | undefined | undefined;
62440
+ callback_url?: string | undefined | undefined;
62394
62441
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined | undefined;
62395
62442
  password_complexity_options?: {
62396
62443
  min_length?: number | undefined | undefined;
@@ -62540,6 +62587,7 @@ export declare function init(config: AuthHeroConfig): {
62540
62587
  twilio_token?: string | undefined | undefined;
62541
62588
  icon_url?: string | undefined | undefined;
62542
62589
  domain_aliases?: string[] | undefined | undefined;
62590
+ callback_url?: string | undefined | undefined;
62543
62591
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined | undefined;
62544
62592
  password_complexity_options?: {
62545
62593
  min_length?: number | undefined | undefined;
@@ -64774,6 +64822,7 @@ export declare function init(config: AuthHeroConfig): {
64774
64822
  twilio_token?: string | undefined | undefined;
64775
64823
  icon_url?: string | undefined | undefined;
64776
64824
  domain_aliases?: string[] | undefined | undefined;
64825
+ callback_url?: string | undefined | undefined;
64777
64826
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined | undefined;
64778
64827
  password_complexity_options?: {
64779
64828
  min_length?: number | undefined | undefined;
@@ -64919,6 +64968,7 @@ export declare function init(config: AuthHeroConfig): {
64919
64968
  twilio_token?: string | undefined | undefined;
64920
64969
  icon_url?: string | undefined | undefined;
64921
64970
  domain_aliases?: string[] | undefined | undefined;
64971
+ callback_url?: string | undefined | undefined;
64922
64972
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined | undefined;
64923
64973
  password_complexity_options?: {
64924
64974
  min_length?: number | undefined | undefined;
@@ -66215,6 +66265,23 @@ export declare function init(config: AuthHeroConfig): {
66215
66265
  } & {
66216
66266
  "/": {
66217
66267
  $post: {
66268
+ input: {
66269
+ header: {
66270
+ "tenant-id"?: string | undefined;
66271
+ };
66272
+ } & {
66273
+ json: {
66274
+ name: string;
66275
+ credentials: Record<string, unknown>;
66276
+ settings?: {} | undefined;
66277
+ enabled?: boolean | undefined;
66278
+ default_from_address?: string | undefined;
66279
+ };
66280
+ };
66281
+ output: {};
66282
+ outputFormat: string;
66283
+ status: 409;
66284
+ } | {
66218
66285
  input: {
66219
66286
  header: {
66220
66287
  "tenant-id"?: string | undefined;
@@ -66270,6 +66337,28 @@ export declare function init(config: AuthHeroConfig): {
66270
66337
  status: 200;
66271
66338
  };
66272
66339
  };
66340
+ } & {
66341
+ "/": {
66342
+ $delete: {
66343
+ input: {
66344
+ header: {
66345
+ "tenant-id"?: string | undefined;
66346
+ };
66347
+ };
66348
+ output: {};
66349
+ outputFormat: string;
66350
+ status: 204;
66351
+ } | {
66352
+ input: {
66353
+ header: {
66354
+ "tenant-id"?: string | undefined;
66355
+ };
66356
+ };
66357
+ output: {};
66358
+ outputFormat: string;
66359
+ status: 404;
66360
+ };
66361
+ };
66273
66362
  }, "/emails/provider"> & import("hono/types").MergeSchemaPath<{
66274
66363
  "/": {
66275
66364
  $get: {
@@ -66294,6 +66383,23 @@ export declare function init(config: AuthHeroConfig): {
66294
66383
  } & {
66295
66384
  "/": {
66296
66385
  $post: {
66386
+ input: {
66387
+ header: {
66388
+ "tenant-id"?: string | undefined;
66389
+ };
66390
+ } & {
66391
+ json: {
66392
+ name: string;
66393
+ credentials: Record<string, unknown>;
66394
+ settings?: {} | undefined;
66395
+ enabled?: boolean | undefined;
66396
+ default_from_address?: string | undefined;
66397
+ };
66398
+ };
66399
+ output: {};
66400
+ outputFormat: string;
66401
+ status: 409;
66402
+ } | {
66297
66403
  input: {
66298
66404
  header: {
66299
66405
  "tenant-id"?: string | undefined;
@@ -66349,6 +66455,28 @@ export declare function init(config: AuthHeroConfig): {
66349
66455
  status: 200;
66350
66456
  };
66351
66457
  };
66458
+ } & {
66459
+ "/": {
66460
+ $delete: {
66461
+ input: {
66462
+ header: {
66463
+ "tenant-id"?: string | undefined;
66464
+ };
66465
+ };
66466
+ output: {};
66467
+ outputFormat: string;
66468
+ status: 204;
66469
+ } | {
66470
+ input: {
66471
+ header: {
66472
+ "tenant-id"?: string | undefined;
66473
+ };
66474
+ };
66475
+ output: {};
66476
+ outputFormat: string;
66477
+ status: 404;
66478
+ };
66479
+ };
66352
66480
  }, "/email/providers"> & import("hono/types").MergeSchemaPath<{
66353
66481
  "/": {
66354
66482
  $get: {
@@ -67594,6 +67722,118 @@ export declare function init(config: AuthHeroConfig): {
67594
67722
  status: 500;
67595
67723
  };
67596
67724
  };
67725
+ }, "/login/callback"> & import("hono/types").MergeSchemaPath<{
67726
+ "/": {
67727
+ $get: {
67728
+ input: {
67729
+ query: {
67730
+ state: string;
67731
+ code?: string | undefined;
67732
+ scope?: string | undefined;
67733
+ error?: string | undefined;
67734
+ error_description?: string | undefined;
67735
+ error_code?: string | undefined;
67736
+ hd?: string | undefined;
67737
+ error_reason?: string | undefined;
67738
+ };
67739
+ };
67740
+ output: {};
67741
+ outputFormat: string;
67742
+ status: 302;
67743
+ } | {
67744
+ input: {
67745
+ query: {
67746
+ state: string;
67747
+ code?: string | undefined;
67748
+ scope?: string | undefined;
67749
+ error?: string | undefined;
67750
+ error_description?: string | undefined;
67751
+ error_code?: string | undefined;
67752
+ hd?: string | undefined;
67753
+ error_reason?: string | undefined;
67754
+ };
67755
+ };
67756
+ output: {
67757
+ message: string;
67758
+ };
67759
+ outputFormat: "json";
67760
+ status: 400;
67761
+ } | {
67762
+ input: {
67763
+ query: {
67764
+ state: string;
67765
+ code?: string | undefined;
67766
+ scope?: string | undefined;
67767
+ error?: string | undefined;
67768
+ error_description?: string | undefined;
67769
+ error_code?: string | undefined;
67770
+ hd?: string | undefined;
67771
+ error_reason?: string | undefined;
67772
+ };
67773
+ };
67774
+ output: {
67775
+ message: string;
67776
+ };
67777
+ outputFormat: "json";
67778
+ status: 500;
67779
+ };
67780
+ };
67781
+ } & {
67782
+ "/": {
67783
+ $post: {
67784
+ input: {
67785
+ form: {
67786
+ state: string;
67787
+ code?: string | undefined;
67788
+ scope?: string | undefined;
67789
+ error?: string | undefined;
67790
+ error_description?: string | undefined;
67791
+ error_code?: string | undefined;
67792
+ hd?: string | undefined;
67793
+ error_reason?: string | undefined;
67794
+ };
67795
+ };
67796
+ output: {};
67797
+ outputFormat: string;
67798
+ status: 302;
67799
+ } | {
67800
+ input: {
67801
+ form: {
67802
+ state: string;
67803
+ code?: string | undefined;
67804
+ scope?: string | undefined;
67805
+ error?: string | undefined;
67806
+ error_description?: string | undefined;
67807
+ error_code?: string | undefined;
67808
+ hd?: string | undefined;
67809
+ error_reason?: string | undefined;
67810
+ };
67811
+ };
67812
+ output: {
67813
+ message: string;
67814
+ };
67815
+ outputFormat: "json";
67816
+ status: 400;
67817
+ } | {
67818
+ input: {
67819
+ form: {
67820
+ state: string;
67821
+ code?: string | undefined;
67822
+ scope?: string | undefined;
67823
+ error?: string | undefined;
67824
+ error_description?: string | undefined;
67825
+ error_code?: string | undefined;
67826
+ hd?: string | undefined;
67827
+ error_reason?: string | undefined;
67828
+ };
67829
+ };
67830
+ output: {
67831
+ message: string;
67832
+ };
67833
+ outputFormat: "json";
67834
+ status: 500;
67835
+ };
67836
+ };
67597
67837
  }, "/callback"> & import("hono/types").MergeSchemaPath<{
67598
67838
  "/": {
67599
67839
  $get: {