authhero 0.101.0 → 0.103.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 +33 -33
- package/dist/authhero.d.ts +52 -51
- package/dist/authhero.mjs +2448 -2390
- package/package.json +3 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -4970,6 +4970,7 @@ export type Bindings = {
|
|
|
4970
4970
|
};
|
|
4971
4971
|
export interface AuthHeroConfig {
|
|
4972
4972
|
dataAdapter: DataAdapters;
|
|
4973
|
+
allowedOrigins?: string[];
|
|
4973
4974
|
}
|
|
4974
4975
|
export interface CreateX509CertificateParams {
|
|
4975
4976
|
name: string;
|
|
@@ -5017,7 +5018,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5017
5018
|
idle_expires_at?: string | undefined;
|
|
5018
5019
|
last_exchanged_at?: string | undefined;
|
|
5019
5020
|
};
|
|
5020
|
-
outputFormat: "json"
|
|
5021
|
+
outputFormat: "json";
|
|
5021
5022
|
status: 200;
|
|
5022
5023
|
};
|
|
5023
5024
|
};
|
|
@@ -5071,7 +5072,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5071
5072
|
revoked_at?: string | undefined;
|
|
5072
5073
|
idle_expires_at?: string | undefined;
|
|
5073
5074
|
};
|
|
5074
|
-
outputFormat: "json"
|
|
5075
|
+
outputFormat: "json";
|
|
5075
5076
|
status: 200;
|
|
5076
5077
|
};
|
|
5077
5078
|
};
|
|
@@ -5123,7 +5124,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5123
5124
|
password_first: boolean;
|
|
5124
5125
|
webauthn_platform_first_factor: boolean;
|
|
5125
5126
|
};
|
|
5126
|
-
outputFormat: "json"
|
|
5127
|
+
outputFormat: "json";
|
|
5127
5128
|
status: 200;
|
|
5128
5129
|
};
|
|
5129
5130
|
};
|
|
@@ -5217,7 +5218,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5217
5218
|
enabled_clients?: string[] | undefined;
|
|
5218
5219
|
}[];
|
|
5219
5220
|
};
|
|
5220
|
-
outputFormat: "json"
|
|
5221
|
+
outputFormat: "json";
|
|
5221
5222
|
status: 200;
|
|
5222
5223
|
};
|
|
5223
5224
|
};
|
|
@@ -5258,7 +5259,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5258
5259
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
5259
5260
|
enabled_clients?: string[] | undefined;
|
|
5260
5261
|
};
|
|
5261
|
-
outputFormat: "json"
|
|
5262
|
+
outputFormat: "json";
|
|
5262
5263
|
status: 200;
|
|
5263
5264
|
};
|
|
5264
5265
|
};
|
|
@@ -5340,7 +5341,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5340
5341
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
5341
5342
|
enabled_clients?: string[] | undefined;
|
|
5342
5343
|
};
|
|
5343
|
-
outputFormat: "json"
|
|
5344
|
+
outputFormat: "json";
|
|
5344
5345
|
status: 200;
|
|
5345
5346
|
};
|
|
5346
5347
|
};
|
|
@@ -5401,7 +5402,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5401
5402
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
5402
5403
|
enabled_clients?: string[] | undefined;
|
|
5403
5404
|
};
|
|
5404
|
-
outputFormat: "json"
|
|
5405
|
+
outputFormat: "json";
|
|
5405
5406
|
status: 201;
|
|
5406
5407
|
};
|
|
5407
5408
|
};
|
|
@@ -5445,7 +5446,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5445
5446
|
priority?: number | undefined;
|
|
5446
5447
|
}[];
|
|
5447
5448
|
};
|
|
5448
|
-
outputFormat: "json"
|
|
5449
|
+
outputFormat: "json";
|
|
5449
5450
|
status: 200;
|
|
5450
5451
|
};
|
|
5451
5452
|
};
|
|
@@ -5476,7 +5477,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5476
5477
|
synchronous: boolean;
|
|
5477
5478
|
priority?: number | undefined;
|
|
5478
5479
|
};
|
|
5479
|
-
outputFormat: "json"
|
|
5480
|
+
outputFormat: "json";
|
|
5480
5481
|
status: 201;
|
|
5481
5482
|
};
|
|
5482
5483
|
};
|
|
@@ -5493,8 +5494,8 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5493
5494
|
};
|
|
5494
5495
|
} & {
|
|
5495
5496
|
json: {
|
|
5496
|
-
enabled?: boolean | undefined;
|
|
5497
5497
|
url?: string | undefined;
|
|
5498
|
+
enabled?: boolean | undefined;
|
|
5498
5499
|
trigger_id?: "post-user-login" | "post-user-registration" | "pre-user-signup" | undefined;
|
|
5499
5500
|
synchronous?: boolean | undefined;
|
|
5500
5501
|
priority?: number | undefined;
|
|
@@ -5514,15 +5515,15 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5514
5515
|
};
|
|
5515
5516
|
} & {
|
|
5516
5517
|
json: {
|
|
5517
|
-
enabled?: boolean | undefined;
|
|
5518
5518
|
url?: string | undefined;
|
|
5519
|
+
enabled?: boolean | undefined;
|
|
5519
5520
|
trigger_id?: "post-user-login" | "post-user-registration" | "pre-user-signup" | undefined;
|
|
5520
5521
|
synchronous?: boolean | undefined;
|
|
5521
5522
|
priority?: number | undefined;
|
|
5522
5523
|
};
|
|
5523
5524
|
};
|
|
5524
5525
|
output: never;
|
|
5525
|
-
outputFormat: "json"
|
|
5526
|
+
outputFormat: "json";
|
|
5526
5527
|
status: 200;
|
|
5527
5528
|
};
|
|
5528
5529
|
};
|
|
@@ -5561,7 +5562,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5561
5562
|
synchronous: boolean;
|
|
5562
5563
|
priority?: number | undefined;
|
|
5563
5564
|
};
|
|
5564
|
-
outputFormat: "json"
|
|
5565
|
+
outputFormat: "json";
|
|
5565
5566
|
status: 200;
|
|
5566
5567
|
};
|
|
5567
5568
|
};
|
|
@@ -5660,7 +5661,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5660
5661
|
} | undefined;
|
|
5661
5662
|
}[];
|
|
5662
5663
|
};
|
|
5663
|
-
outputFormat: "json"
|
|
5664
|
+
outputFormat: "json";
|
|
5664
5665
|
status: 200;
|
|
5665
5666
|
};
|
|
5666
5667
|
};
|
|
@@ -5705,7 +5706,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5705
5706
|
} | undefined;
|
|
5706
5707
|
} | undefined;
|
|
5707
5708
|
};
|
|
5708
|
-
outputFormat: "json"
|
|
5709
|
+
outputFormat: "json";
|
|
5709
5710
|
status: 200;
|
|
5710
5711
|
};
|
|
5711
5712
|
};
|
|
@@ -5721,9 +5722,9 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5721
5722
|
q?: string | undefined;
|
|
5722
5723
|
};
|
|
5723
5724
|
};
|
|
5724
|
-
output:
|
|
5725
|
-
outputFormat:
|
|
5726
|
-
status:
|
|
5725
|
+
output: Response;
|
|
5726
|
+
outputFormat: "json";
|
|
5727
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
5727
5728
|
};
|
|
5728
5729
|
};
|
|
5729
5730
|
} & {
|
|
@@ -5734,9 +5735,9 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5734
5735
|
id: string;
|
|
5735
5736
|
};
|
|
5736
5737
|
};
|
|
5737
|
-
output:
|
|
5738
|
-
outputFormat:
|
|
5739
|
-
status:
|
|
5738
|
+
output: Response;
|
|
5739
|
+
outputFormat: "json";
|
|
5740
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
5740
5741
|
};
|
|
5741
5742
|
};
|
|
5742
5743
|
} & {
|
|
@@ -5795,9 +5796,9 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5795
5796
|
language?: string | undefined;
|
|
5796
5797
|
};
|
|
5797
5798
|
};
|
|
5798
|
-
output:
|
|
5799
|
-
outputFormat:
|
|
5800
|
-
status:
|
|
5799
|
+
output: Response;
|
|
5800
|
+
outputFormat: "json";
|
|
5801
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
5801
5802
|
};
|
|
5802
5803
|
};
|
|
5803
5804
|
}, "/tenants"> & import("hono/types").MergeSchemaPath<{
|
|
@@ -5892,7 +5893,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5892
5893
|
client_secret?: string | undefined;
|
|
5893
5894
|
}[];
|
|
5894
5895
|
};
|
|
5895
|
-
outputFormat: "json"
|
|
5896
|
+
outputFormat: "json";
|
|
5896
5897
|
status: 200;
|
|
5897
5898
|
};
|
|
5898
5899
|
};
|
|
@@ -5944,7 +5945,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5944
5945
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
5945
5946
|
client_secret?: string | undefined;
|
|
5946
5947
|
};
|
|
5947
|
-
outputFormat: "json"
|
|
5948
|
+
outputFormat: "json";
|
|
5948
5949
|
status: 200;
|
|
5949
5950
|
};
|
|
5950
5951
|
};
|
|
@@ -6046,7 +6047,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6046
6047
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
6047
6048
|
client_secret?: string | undefined;
|
|
6048
6049
|
};
|
|
6049
|
-
outputFormat: "json"
|
|
6050
|
+
outputFormat: "json";
|
|
6050
6051
|
status: 200;
|
|
6051
6052
|
};
|
|
6052
6053
|
};
|
|
@@ -6127,7 +6128,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6127
6128
|
} | undefined;
|
|
6128
6129
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
6129
6130
|
};
|
|
6130
|
-
outputFormat: "json"
|
|
6131
|
+
outputFormat: "json";
|
|
6131
6132
|
status: 201;
|
|
6132
6133
|
};
|
|
6133
6134
|
};
|
|
@@ -6143,9 +6144,9 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6143
6144
|
"tenant-id": string;
|
|
6144
6145
|
};
|
|
6145
6146
|
};
|
|
6146
|
-
output:
|
|
6147
|
-
outputFormat:
|
|
6148
|
-
status:
|
|
6147
|
+
output: Response;
|
|
6148
|
+
outputFormat: "json";
|
|
6149
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
6149
6150
|
};
|
|
6150
6151
|
};
|
|
6151
6152
|
}, "/users-by-email"> & import("hono/types").MergeSchemaPath<{
|
|
@@ -6170,7 +6171,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6170
6171
|
current_until?: string | undefined;
|
|
6171
6172
|
revoked?: boolean | undefined;
|
|
6172
6173
|
}[];
|
|
6173
|
-
outputFormat: "json"
|
|
6174
|
+
outputFormat: "json";
|
|
6174
6175
|
status: 200;
|
|
6175
6176
|
};
|
|
6176
6177
|
};
|
|
@@ -6200,7 +6201,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6200
6201
|
current_until?: string | undefined;
|
|
6201
6202
|
revoked?: boolean | undefined;
|
|
6202
6203
|
};
|
|
6203
|
-
outputFormat: "json"
|
|
6204
|
+
outputFormat: "json";
|
|
6204
6205
|
status: 200;
|
|
6205
6206
|
};
|
|
6206
6207
|
};
|
|
@@ -6344,7 +6345,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6344
6345
|
}[] | undefined;
|
|
6345
6346
|
}[];
|
|
6346
6347
|
};
|
|
6347
|
-
outputFormat: "json"
|
|
6348
|
+
outputFormat: "json";
|
|
6348
6349
|
status: 200;
|
|
6349
6350
|
};
|
|
6350
6351
|
};
|
|
@@ -6405,7 +6406,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6405
6406
|
} | undefined;
|
|
6406
6407
|
}[] | undefined;
|
|
6407
6408
|
};
|
|
6408
|
-
outputFormat: "json"
|
|
6409
|
+
outputFormat: "json";
|
|
6409
6410
|
status: 200;
|
|
6410
6411
|
};
|
|
6411
6412
|
};
|
|
@@ -6502,7 +6503,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6502
6503
|
} | undefined;
|
|
6503
6504
|
}[] | undefined;
|
|
6504
6505
|
};
|
|
6505
|
-
outputFormat: "json"
|
|
6506
|
+
outputFormat: "json";
|
|
6506
6507
|
status: 200;
|
|
6507
6508
|
};
|
|
6508
6509
|
};
|
|
@@ -6573,7 +6574,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6573
6574
|
provider: string;
|
|
6574
6575
|
isSocial: boolean;
|
|
6575
6576
|
}[];
|
|
6576
|
-
outputFormat: "json"
|
|
6577
|
+
outputFormat: "json";
|
|
6577
6578
|
status: 200;
|
|
6578
6579
|
};
|
|
6579
6580
|
};
|
|
@@ -6636,7 +6637,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6636
6637
|
} | undefined;
|
|
6637
6638
|
}[] | undefined;
|
|
6638
6639
|
}[];
|
|
6639
|
-
outputFormat: "json"
|
|
6640
|
+
outputFormat: "json";
|
|
6640
6641
|
status: 200;
|
|
6641
6642
|
};
|
|
6642
6643
|
};
|
|
@@ -6706,7 +6707,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6706
6707
|
idle_expires_at?: string | undefined;
|
|
6707
6708
|
}[];
|
|
6708
6709
|
};
|
|
6709
|
-
outputFormat: "json"
|
|
6710
|
+
outputFormat: "json";
|
|
6710
6711
|
status: 200;
|
|
6711
6712
|
};
|
|
6712
6713
|
};
|
|
@@ -6743,7 +6744,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6743
6744
|
default_from_address?: string | undefined;
|
|
6744
6745
|
settings?: {} | undefined;
|
|
6745
6746
|
};
|
|
6746
|
-
outputFormat: "json"
|
|
6747
|
+
outputFormat: "json";
|
|
6747
6748
|
status: 200;
|
|
6748
6749
|
};
|
|
6749
6750
|
};
|
|
@@ -6862,7 +6863,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6862
6863
|
}[];
|
|
6863
6864
|
} | undefined;
|
|
6864
6865
|
}[];
|
|
6865
|
-
outputFormat: "json"
|
|
6866
|
+
outputFormat: "json";
|
|
6866
6867
|
status: 200;
|
|
6867
6868
|
};
|
|
6868
6869
|
};
|
|
@@ -6899,7 +6900,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6899
6900
|
}[];
|
|
6900
6901
|
} | undefined;
|
|
6901
6902
|
};
|
|
6902
|
-
outputFormat: "json"
|
|
6903
|
+
outputFormat: "json";
|
|
6903
6904
|
status: 200;
|
|
6904
6905
|
};
|
|
6905
6906
|
};
|
|
@@ -6973,7 +6974,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6973
6974
|
}[];
|
|
6974
6975
|
} | undefined;
|
|
6975
6976
|
};
|
|
6976
|
-
outputFormat: "json"
|
|
6977
|
+
outputFormat: "json";
|
|
6977
6978
|
status: 200;
|
|
6978
6979
|
};
|
|
6979
6980
|
};
|
|
@@ -7016,7 +7017,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
7016
7017
|
}[];
|
|
7017
7018
|
} | undefined;
|
|
7018
7019
|
};
|
|
7019
|
-
outputFormat: "json"
|
|
7020
|
+
outputFormat: "json";
|
|
7020
7021
|
status: 201;
|
|
7021
7022
|
};
|
|
7022
7023
|
};
|
|
@@ -7053,7 +7054,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
7053
7054
|
}[];
|
|
7054
7055
|
} | undefined;
|
|
7055
7056
|
};
|
|
7056
|
-
outputFormat: "json"
|
|
7057
|
+
outputFormat: "json";
|
|
7057
7058
|
status: 200;
|
|
7058
7059
|
};
|
|
7059
7060
|
};
|
|
@@ -7081,7 +7082,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
7081
7082
|
url: string;
|
|
7082
7083
|
} | undefined;
|
|
7083
7084
|
};
|
|
7084
|
-
outputFormat: "json"
|
|
7085
|
+
outputFormat: "json";
|
|
7085
7086
|
status: 200;
|
|
7086
7087
|
};
|
|
7087
7088
|
};
|
|
@@ -7317,7 +7318,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
7317
7318
|
email_verified: boolean;
|
|
7318
7319
|
_id: string;
|
|
7319
7320
|
};
|
|
7320
|
-
outputFormat: "json"
|
|
7321
|
+
outputFormat: "json";
|
|
7321
7322
|
status: 200;
|
|
7322
7323
|
};
|
|
7323
7324
|
};
|
|
@@ -7374,7 +7375,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
7374
7375
|
scope?: string | undefined;
|
|
7375
7376
|
id_token?: string | undefined;
|
|
7376
7377
|
};
|
|
7377
|
-
outputFormat: "json"
|
|
7378
|
+
outputFormat: "json";
|
|
7378
7379
|
status: 200;
|
|
7379
7380
|
};
|
|
7380
7381
|
};
|
|
@@ -7394,7 +7395,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
7394
7395
|
use?: "sig" | "enc" | undefined;
|
|
7395
7396
|
}[];
|
|
7396
7397
|
};
|
|
7397
|
-
outputFormat: "json"
|
|
7398
|
+
outputFormat: "json";
|
|
7398
7399
|
status: 200;
|
|
7399
7400
|
};
|
|
7400
7401
|
};
|
|
@@ -7424,7 +7425,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
7424
7425
|
request_parameter_supported: boolean;
|
|
7425
7426
|
token_endpoint_auth_signing_alg_values_supported: string[];
|
|
7426
7427
|
};
|
|
7427
|
-
outputFormat: "json"
|
|
7428
|
+
outputFormat: "json";
|
|
7428
7429
|
status: 200;
|
|
7429
7430
|
};
|
|
7430
7431
|
};
|
|
@@ -7439,7 +7440,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
7439
7440
|
given_name?: string | undefined;
|
|
7440
7441
|
family_name?: string | undefined;
|
|
7441
7442
|
};
|
|
7442
|
-
outputFormat: "json"
|
|
7443
|
+
outputFormat: "json";
|
|
7443
7444
|
status: 200;
|
|
7444
7445
|
};
|
|
7445
7446
|
};
|