authhero 9.6.4 → 9.7.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/assets/u/widget/index.esm.js +1 -1
- package/dist/authhero.cjs +144 -144
- package/dist/authhero.d.ts +286 -66
- package/dist/authhero.mjs +13592 -13476
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/common.d.ts +17 -1
- package/dist/types/authentication-flows/passwordless.d.ts +5 -5
- package/dist/types/helpers/revoke-user-refresh-tokens.d.ts +21 -0
- package/dist/types/index.d.ts +286 -66
- package/dist/types/routes/auth-api/index.d.ts +6 -6
- package/dist/types/routes/auth-api/passwordless.d.ts +6 -6
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/clients.d.ts +6 -6
- package/dist/types/routes/management-api/connections.d.ts +15 -15
- package/dist/types/routes/management-api/email-templates.d.ts +18 -18
- package/dist/types/routes/management-api/index.d.ts +275 -55
- package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
- package/dist/types/routes/management-api/organizations.d.ts +5 -5
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/dist/types/routes/management-api/refresh_tokens.d.ts +7 -0
- package/dist/types/routes/management-api/users.d.ts +146 -0
- package/dist/types/routes/universal-login/common.d.ts +6 -6
- package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
- package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
- package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
- package/dist/types/utils/user-id.d.ts +19 -1
- package/package.json +6 -6
|
@@ -96,7 +96,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
96
96
|
};
|
|
97
97
|
} & {
|
|
98
98
|
json: {
|
|
99
|
-
type: "
|
|
99
|
+
type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
|
|
100
100
|
phone_number?: string | undefined;
|
|
101
101
|
totp_secret?: string | undefined;
|
|
102
102
|
credential_id?: string | undefined;
|
|
@@ -1196,19 +1196,19 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1196
1196
|
} & {
|
|
1197
1197
|
json: {
|
|
1198
1198
|
client_id: string;
|
|
1199
|
-
invitee: {
|
|
1200
|
-
email?: string | undefined;
|
|
1201
|
-
};
|
|
1202
1199
|
inviter: {
|
|
1203
1200
|
name?: string | undefined;
|
|
1204
1201
|
};
|
|
1202
|
+
invitee: {
|
|
1203
|
+
email?: string | undefined;
|
|
1204
|
+
};
|
|
1205
|
+
id?: string | undefined;
|
|
1205
1206
|
app_metadata?: Record<string, any> | undefined;
|
|
1206
1207
|
user_metadata?: Record<string, any> | undefined;
|
|
1207
|
-
id?: string | undefined;
|
|
1208
1208
|
connection_id?: string | undefined;
|
|
1209
1209
|
roles?: string[] | undefined;
|
|
1210
|
-
send_invitation_email?: boolean | undefined;
|
|
1211
1210
|
ttl_sec?: number | undefined;
|
|
1211
|
+
send_invitation_email?: boolean | undefined;
|
|
1212
1212
|
};
|
|
1213
1213
|
};
|
|
1214
1214
|
output: {
|
|
@@ -6810,6 +6810,13 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
6810
6810
|
scopes: string;
|
|
6811
6811
|
}[];
|
|
6812
6812
|
rotating: boolean;
|
|
6813
|
+
session_id?: string | undefined;
|
|
6814
|
+
organization?: string | undefined;
|
|
6815
|
+
auth_connection?: string | undefined;
|
|
6816
|
+
auth_strategy?: {
|
|
6817
|
+
strategy: string;
|
|
6818
|
+
strategy_type: string;
|
|
6819
|
+
} | undefined;
|
|
6813
6820
|
expires_at?: string | undefined;
|
|
6814
6821
|
idle_expires_at?: string | undefined;
|
|
6815
6822
|
last_exchanged_at?: string | undefined;
|
|
@@ -6841,6 +6848,73 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
6841
6848
|
};
|
|
6842
6849
|
};
|
|
6843
6850
|
}, "/refresh_tokens"> & import("hono/types").MergeSchemaPath<{
|
|
6851
|
+
"/:id": {
|
|
6852
|
+
$get: {
|
|
6853
|
+
input: {
|
|
6854
|
+
param: {
|
|
6855
|
+
id: string;
|
|
6856
|
+
};
|
|
6857
|
+
} & {
|
|
6858
|
+
header: {
|
|
6859
|
+
"tenant-id"?: string | undefined;
|
|
6860
|
+
};
|
|
6861
|
+
};
|
|
6862
|
+
output: {
|
|
6863
|
+
id: string;
|
|
6864
|
+
login_id: string;
|
|
6865
|
+
user_id: string;
|
|
6866
|
+
client_id: string;
|
|
6867
|
+
device: {
|
|
6868
|
+
initial_user_agent: string;
|
|
6869
|
+
initial_ip: string;
|
|
6870
|
+
initial_asn: string;
|
|
6871
|
+
last_user_agent: string;
|
|
6872
|
+
last_ip: string;
|
|
6873
|
+
last_asn: string;
|
|
6874
|
+
};
|
|
6875
|
+
resource_servers: {
|
|
6876
|
+
audience: string;
|
|
6877
|
+
scopes: string;
|
|
6878
|
+
}[];
|
|
6879
|
+
rotating: boolean;
|
|
6880
|
+
session_id?: string | undefined;
|
|
6881
|
+
organization?: string | undefined;
|
|
6882
|
+
auth_connection?: string | undefined;
|
|
6883
|
+
auth_strategy?: {
|
|
6884
|
+
strategy: string;
|
|
6885
|
+
strategy_type: string;
|
|
6886
|
+
} | undefined;
|
|
6887
|
+
expires_at?: string | undefined;
|
|
6888
|
+
idle_expires_at?: string | undefined;
|
|
6889
|
+
last_exchanged_at?: string | undefined;
|
|
6890
|
+
token_lookup?: string | undefined;
|
|
6891
|
+
token_hash?: string | undefined;
|
|
6892
|
+
family_id?: string | undefined;
|
|
6893
|
+
rotated_to?: string | undefined;
|
|
6894
|
+
rotated_at?: string | undefined;
|
|
6895
|
+
};
|
|
6896
|
+
outputFormat: "json";
|
|
6897
|
+
status: 200;
|
|
6898
|
+
};
|
|
6899
|
+
};
|
|
6900
|
+
} & {
|
|
6901
|
+
"/:id": {
|
|
6902
|
+
$delete: {
|
|
6903
|
+
input: {
|
|
6904
|
+
param: {
|
|
6905
|
+
id: string;
|
|
6906
|
+
};
|
|
6907
|
+
} & {
|
|
6908
|
+
header: {
|
|
6909
|
+
"tenant-id"?: string | undefined;
|
|
6910
|
+
};
|
|
6911
|
+
};
|
|
6912
|
+
output: {};
|
|
6913
|
+
outputFormat: string;
|
|
6914
|
+
status: 200;
|
|
6915
|
+
};
|
|
6916
|
+
};
|
|
6917
|
+
}, "/refresh-tokens"> & import("hono/types").MergeSchemaPath<{
|
|
6844
6918
|
"/:id": {
|
|
6845
6919
|
$get: {
|
|
6846
6920
|
input: {
|
|
@@ -6961,7 +7035,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
6961
7035
|
};
|
|
6962
7036
|
};
|
|
6963
7037
|
output: {
|
|
6964
|
-
prompt: "status" | "organizations" | "signup" | "
|
|
7038
|
+
prompt: "status" | "organizations" | "signup" | "login" | "mfa" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
|
|
6965
7039
|
language: string;
|
|
6966
7040
|
}[];
|
|
6967
7041
|
outputFormat: "json";
|
|
@@ -6999,7 +7073,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
6999
7073
|
$get: {
|
|
7000
7074
|
input: {
|
|
7001
7075
|
param: {
|
|
7002
|
-
prompt: "status" | "organizations" | "signup" | "
|
|
7076
|
+
prompt: "status" | "organizations" | "signup" | "login" | "mfa" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
|
|
7003
7077
|
language: string;
|
|
7004
7078
|
};
|
|
7005
7079
|
} & {
|
|
@@ -7021,7 +7095,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
7021
7095
|
$put: {
|
|
7022
7096
|
input: {
|
|
7023
7097
|
param: {
|
|
7024
|
-
prompt: "status" | "organizations" | "signup" | "
|
|
7098
|
+
prompt: "status" | "organizations" | "signup" | "login" | "mfa" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
|
|
7025
7099
|
language: string;
|
|
7026
7100
|
};
|
|
7027
7101
|
} & {
|
|
@@ -7045,7 +7119,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
7045
7119
|
$delete: {
|
|
7046
7120
|
input: {
|
|
7047
7121
|
param: {
|
|
7048
|
-
prompt: "status" | "organizations" | "signup" | "
|
|
7122
|
+
prompt: "status" | "organizations" | "signup" | "login" | "mfa" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
|
|
7049
7123
|
language: string;
|
|
7050
7124
|
};
|
|
7051
7125
|
} & {
|
|
@@ -7141,7 +7215,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
7141
7215
|
active?: boolean | undefined;
|
|
7142
7216
|
} | undefined;
|
|
7143
7217
|
signup?: {
|
|
7144
|
-
status?: "
|
|
7218
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
7145
7219
|
verification?: {
|
|
7146
7220
|
active?: boolean | undefined;
|
|
7147
7221
|
} | undefined;
|
|
@@ -7158,7 +7232,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
7158
7232
|
active?: boolean | undefined;
|
|
7159
7233
|
} | undefined;
|
|
7160
7234
|
signup?: {
|
|
7161
|
-
status?: "
|
|
7235
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
7162
7236
|
} | undefined;
|
|
7163
7237
|
validation?: {
|
|
7164
7238
|
max_length?: number | undefined;
|
|
@@ -7175,7 +7249,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
7175
7249
|
active?: boolean | undefined;
|
|
7176
7250
|
} | undefined;
|
|
7177
7251
|
signup?: {
|
|
7178
|
-
status?: "
|
|
7252
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
7179
7253
|
} | undefined;
|
|
7180
7254
|
} | undefined;
|
|
7181
7255
|
} | undefined;
|
|
@@ -7279,7 +7353,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
7279
7353
|
active?: boolean | undefined;
|
|
7280
7354
|
} | undefined;
|
|
7281
7355
|
signup?: {
|
|
7282
|
-
status?: "
|
|
7356
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
7283
7357
|
verification?: {
|
|
7284
7358
|
active?: boolean | undefined;
|
|
7285
7359
|
} | undefined;
|
|
@@ -7296,7 +7370,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
7296
7370
|
active?: boolean | undefined;
|
|
7297
7371
|
} | undefined;
|
|
7298
7372
|
signup?: {
|
|
7299
|
-
status?: "
|
|
7373
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
7300
7374
|
} | undefined;
|
|
7301
7375
|
validation?: {
|
|
7302
7376
|
max_length?: number | undefined;
|
|
@@ -7313,7 +7387,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
7313
7387
|
active?: boolean | undefined;
|
|
7314
7388
|
} | undefined;
|
|
7315
7389
|
signup?: {
|
|
7316
|
-
status?: "
|
|
7390
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
7317
7391
|
} | undefined;
|
|
7318
7392
|
} | undefined;
|
|
7319
7393
|
} | undefined;
|
|
@@ -7433,7 +7507,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
7433
7507
|
active?: boolean | undefined;
|
|
7434
7508
|
} | undefined;
|
|
7435
7509
|
signup?: {
|
|
7436
|
-
status?: "
|
|
7510
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
7437
7511
|
verification?: {
|
|
7438
7512
|
active?: boolean | undefined;
|
|
7439
7513
|
} | undefined;
|
|
@@ -7450,7 +7524,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
7450
7524
|
active?: boolean | undefined;
|
|
7451
7525
|
} | undefined;
|
|
7452
7526
|
signup?: {
|
|
7453
|
-
status?: "
|
|
7527
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
7454
7528
|
} | undefined;
|
|
7455
7529
|
validation?: {
|
|
7456
7530
|
max_length?: number | undefined;
|
|
@@ -7467,7 +7541,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
7467
7541
|
active?: boolean | undefined;
|
|
7468
7542
|
} | undefined;
|
|
7469
7543
|
signup?: {
|
|
7470
|
-
status?: "
|
|
7544
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
7471
7545
|
} | undefined;
|
|
7472
7546
|
} | undefined;
|
|
7473
7547
|
} | undefined;
|
|
@@ -7616,7 +7690,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
7616
7690
|
active?: boolean | undefined;
|
|
7617
7691
|
} | undefined;
|
|
7618
7692
|
signup?: {
|
|
7619
|
-
status?: "
|
|
7693
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
7620
7694
|
verification?: {
|
|
7621
7695
|
active?: boolean | undefined;
|
|
7622
7696
|
} | undefined;
|
|
@@ -7633,7 +7707,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
7633
7707
|
active?: boolean | undefined;
|
|
7634
7708
|
} | undefined;
|
|
7635
7709
|
signup?: {
|
|
7636
|
-
status?: "
|
|
7710
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
7637
7711
|
} | undefined;
|
|
7638
7712
|
validation?: {
|
|
7639
7713
|
max_length?: number | undefined;
|
|
@@ -7650,7 +7724,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
7650
7724
|
active?: boolean | undefined;
|
|
7651
7725
|
} | undefined;
|
|
7652
7726
|
signup?: {
|
|
7653
|
-
status?: "
|
|
7727
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
7654
7728
|
} | undefined;
|
|
7655
7729
|
} | undefined;
|
|
7656
7730
|
} | undefined;
|
|
@@ -7778,7 +7852,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
7778
7852
|
active?: boolean | undefined;
|
|
7779
7853
|
} | undefined;
|
|
7780
7854
|
signup?: {
|
|
7781
|
-
status?: "
|
|
7855
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
7782
7856
|
verification?: {
|
|
7783
7857
|
active?: boolean | undefined;
|
|
7784
7858
|
} | undefined;
|
|
@@ -7795,7 +7869,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
7795
7869
|
active?: boolean | undefined;
|
|
7796
7870
|
} | undefined;
|
|
7797
7871
|
signup?: {
|
|
7798
|
-
status?: "
|
|
7872
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
7799
7873
|
} | undefined;
|
|
7800
7874
|
validation?: {
|
|
7801
7875
|
max_length?: number | undefined;
|
|
@@ -7812,7 +7886,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
7812
7886
|
active?: boolean | undefined;
|
|
7813
7887
|
} | undefined;
|
|
7814
7888
|
signup?: {
|
|
7815
|
-
status?: "
|
|
7889
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
7816
7890
|
} | undefined;
|
|
7817
7891
|
} | undefined;
|
|
7818
7892
|
} | undefined;
|
|
@@ -8968,7 +9042,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
8968
9042
|
created_at: string;
|
|
8969
9043
|
updated_at: string;
|
|
8970
9044
|
name: string;
|
|
8971
|
-
provider: "auth0" | "
|
|
9045
|
+
provider: "auth0" | "cognito" | "okta" | "oidc";
|
|
8972
9046
|
connection: string;
|
|
8973
9047
|
enabled: boolean;
|
|
8974
9048
|
credentials: {
|
|
@@ -9000,7 +9074,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
9000
9074
|
created_at: string;
|
|
9001
9075
|
updated_at: string;
|
|
9002
9076
|
name: string;
|
|
9003
|
-
provider: "auth0" | "
|
|
9077
|
+
provider: "auth0" | "cognito" | "okta" | "oidc";
|
|
9004
9078
|
connection: string;
|
|
9005
9079
|
enabled: boolean;
|
|
9006
9080
|
credentials: {
|
|
@@ -9026,7 +9100,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
9026
9100
|
} & {
|
|
9027
9101
|
json: {
|
|
9028
9102
|
name: string;
|
|
9029
|
-
provider: "auth0" | "
|
|
9103
|
+
provider: "auth0" | "cognito" | "okta" | "oidc";
|
|
9030
9104
|
connection: string;
|
|
9031
9105
|
credentials: {
|
|
9032
9106
|
domain: string;
|
|
@@ -9043,7 +9117,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
9043
9117
|
created_at: string;
|
|
9044
9118
|
updated_at: string;
|
|
9045
9119
|
name: string;
|
|
9046
|
-
provider: "auth0" | "
|
|
9120
|
+
provider: "auth0" | "cognito" | "okta" | "oidc";
|
|
9047
9121
|
connection: string;
|
|
9048
9122
|
enabled: boolean;
|
|
9049
9123
|
credentials: {
|
|
@@ -9074,7 +9148,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
9074
9148
|
json: {
|
|
9075
9149
|
id?: string | undefined;
|
|
9076
9150
|
name?: string | undefined;
|
|
9077
|
-
provider?: "auth0" | "
|
|
9151
|
+
provider?: "auth0" | "cognito" | "okta" | "oidc" | undefined;
|
|
9078
9152
|
connection?: string | undefined;
|
|
9079
9153
|
enabled?: boolean | undefined;
|
|
9080
9154
|
credentials?: {
|
|
@@ -9090,7 +9164,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
9090
9164
|
created_at: string;
|
|
9091
9165
|
updated_at: string;
|
|
9092
9166
|
name: string;
|
|
9093
|
-
provider: "auth0" | "
|
|
9167
|
+
provider: "auth0" | "cognito" | "okta" | "oidc";
|
|
9094
9168
|
connection: string;
|
|
9095
9169
|
enabled: boolean;
|
|
9096
9170
|
credentials: {
|
|
@@ -10685,7 +10759,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
10685
10759
|
active?: boolean | undefined;
|
|
10686
10760
|
} | undefined;
|
|
10687
10761
|
signup?: {
|
|
10688
|
-
status?: "
|
|
10762
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
10689
10763
|
verification?: {
|
|
10690
10764
|
active?: boolean | undefined;
|
|
10691
10765
|
} | undefined;
|
|
@@ -10702,7 +10776,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
10702
10776
|
active?: boolean | undefined;
|
|
10703
10777
|
} | undefined;
|
|
10704
10778
|
signup?: {
|
|
10705
|
-
status?: "
|
|
10779
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
10706
10780
|
} | undefined;
|
|
10707
10781
|
validation?: {
|
|
10708
10782
|
max_length?: number | undefined;
|
|
@@ -10719,7 +10793,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
10719
10793
|
active?: boolean | undefined;
|
|
10720
10794
|
} | undefined;
|
|
10721
10795
|
signup?: {
|
|
10722
|
-
status?: "
|
|
10796
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
10723
10797
|
} | undefined;
|
|
10724
10798
|
} | undefined;
|
|
10725
10799
|
} | undefined;
|
|
@@ -10843,7 +10917,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
10843
10917
|
active?: boolean | undefined;
|
|
10844
10918
|
} | undefined;
|
|
10845
10919
|
signup?: {
|
|
10846
|
-
status?: "
|
|
10920
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
10847
10921
|
verification?: {
|
|
10848
10922
|
active?: boolean | undefined;
|
|
10849
10923
|
} | undefined;
|
|
@@ -10860,7 +10934,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
10860
10934
|
active?: boolean | undefined;
|
|
10861
10935
|
} | undefined;
|
|
10862
10936
|
signup?: {
|
|
10863
|
-
status?: "
|
|
10937
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
10864
10938
|
} | undefined;
|
|
10865
10939
|
validation?: {
|
|
10866
10940
|
max_length?: number | undefined;
|
|
@@ -10877,7 +10951,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
10877
10951
|
active?: boolean | undefined;
|
|
10878
10952
|
} | undefined;
|
|
10879
10953
|
signup?: {
|
|
10880
|
-
status?: "
|
|
10954
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
10881
10955
|
} | undefined;
|
|
10882
10956
|
} | undefined;
|
|
10883
10957
|
} | undefined;
|
|
@@ -11887,6 +11961,152 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
11887
11961
|
status: 200;
|
|
11888
11962
|
};
|
|
11889
11963
|
};
|
|
11964
|
+
} & {
|
|
11965
|
+
"/:user_id/refresh-tokens": {
|
|
11966
|
+
$get: {
|
|
11967
|
+
input: {
|
|
11968
|
+
param: {
|
|
11969
|
+
user_id: string;
|
|
11970
|
+
};
|
|
11971
|
+
} & {
|
|
11972
|
+
query: {
|
|
11973
|
+
page?: string | undefined;
|
|
11974
|
+
per_page?: string | undefined;
|
|
11975
|
+
include_totals?: string | undefined;
|
|
11976
|
+
from?: string | undefined;
|
|
11977
|
+
take?: string | undefined;
|
|
11978
|
+
sort?: string | undefined;
|
|
11979
|
+
q?: string | undefined;
|
|
11980
|
+
from_date?: unknown;
|
|
11981
|
+
to_date?: unknown;
|
|
11982
|
+
};
|
|
11983
|
+
} & {
|
|
11984
|
+
header: {
|
|
11985
|
+
"tenant-id"?: string | undefined;
|
|
11986
|
+
};
|
|
11987
|
+
};
|
|
11988
|
+
output: {
|
|
11989
|
+
id: string;
|
|
11990
|
+
created_at: string;
|
|
11991
|
+
user_id: string;
|
|
11992
|
+
client_id: string;
|
|
11993
|
+
rotating: boolean;
|
|
11994
|
+
device: {
|
|
11995
|
+
initial_user_agent: string;
|
|
11996
|
+
initial_ip: string;
|
|
11997
|
+
initial_asn: string;
|
|
11998
|
+
last_user_agent: string;
|
|
11999
|
+
last_ip: string;
|
|
12000
|
+
last_asn: string;
|
|
12001
|
+
};
|
|
12002
|
+
login_id: string;
|
|
12003
|
+
resource_servers: {
|
|
12004
|
+
audience: string;
|
|
12005
|
+
scopes: string;
|
|
12006
|
+
}[];
|
|
12007
|
+
revoked_at?: string | undefined;
|
|
12008
|
+
expires_at?: string | undefined;
|
|
12009
|
+
idle_expires_at?: string | undefined;
|
|
12010
|
+
session_id?: string | undefined;
|
|
12011
|
+
organization?: string | undefined;
|
|
12012
|
+
auth_connection?: string | undefined;
|
|
12013
|
+
auth_strategy?: {
|
|
12014
|
+
strategy: string;
|
|
12015
|
+
strategy_type: string;
|
|
12016
|
+
} | undefined;
|
|
12017
|
+
last_exchanged_at?: string | undefined;
|
|
12018
|
+
}[] | {
|
|
12019
|
+
tokens: {
|
|
12020
|
+
id: string;
|
|
12021
|
+
created_at: string;
|
|
12022
|
+
user_id: string;
|
|
12023
|
+
client_id: string;
|
|
12024
|
+
rotating: boolean;
|
|
12025
|
+
device: {
|
|
12026
|
+
initial_user_agent: string;
|
|
12027
|
+
initial_ip: string;
|
|
12028
|
+
initial_asn: string;
|
|
12029
|
+
last_user_agent: string;
|
|
12030
|
+
last_ip: string;
|
|
12031
|
+
last_asn: string;
|
|
12032
|
+
};
|
|
12033
|
+
login_id: string;
|
|
12034
|
+
resource_servers: {
|
|
12035
|
+
audience: string;
|
|
12036
|
+
scopes: string;
|
|
12037
|
+
}[];
|
|
12038
|
+
revoked_at?: string | undefined;
|
|
12039
|
+
expires_at?: string | undefined;
|
|
12040
|
+
idle_expires_at?: string | undefined;
|
|
12041
|
+
session_id?: string | undefined;
|
|
12042
|
+
organization?: string | undefined;
|
|
12043
|
+
auth_connection?: string | undefined;
|
|
12044
|
+
auth_strategy?: {
|
|
12045
|
+
strategy: string;
|
|
12046
|
+
strategy_type: string;
|
|
12047
|
+
} | undefined;
|
|
12048
|
+
last_exchanged_at?: string | undefined;
|
|
12049
|
+
}[];
|
|
12050
|
+
next?: string | undefined;
|
|
12051
|
+
} | {
|
|
12052
|
+
start: number;
|
|
12053
|
+
limit: number;
|
|
12054
|
+
length: number;
|
|
12055
|
+
tokens: {
|
|
12056
|
+
id: string;
|
|
12057
|
+
created_at: string;
|
|
12058
|
+
user_id: string;
|
|
12059
|
+
client_id: string;
|
|
12060
|
+
rotating: boolean;
|
|
12061
|
+
device: {
|
|
12062
|
+
initial_user_agent: string;
|
|
12063
|
+
initial_ip: string;
|
|
12064
|
+
initial_asn: string;
|
|
12065
|
+
last_user_agent: string;
|
|
12066
|
+
last_ip: string;
|
|
12067
|
+
last_asn: string;
|
|
12068
|
+
};
|
|
12069
|
+
login_id: string;
|
|
12070
|
+
resource_servers: {
|
|
12071
|
+
audience: string;
|
|
12072
|
+
scopes: string;
|
|
12073
|
+
}[];
|
|
12074
|
+
revoked_at?: string | undefined;
|
|
12075
|
+
expires_at?: string | undefined;
|
|
12076
|
+
idle_expires_at?: string | undefined;
|
|
12077
|
+
session_id?: string | undefined;
|
|
12078
|
+
organization?: string | undefined;
|
|
12079
|
+
auth_connection?: string | undefined;
|
|
12080
|
+
auth_strategy?: {
|
|
12081
|
+
strategy: string;
|
|
12082
|
+
strategy_type: string;
|
|
12083
|
+
} | undefined;
|
|
12084
|
+
last_exchanged_at?: string | undefined;
|
|
12085
|
+
}[];
|
|
12086
|
+
total?: number | undefined;
|
|
12087
|
+
next?: string | undefined;
|
|
12088
|
+
};
|
|
12089
|
+
outputFormat: "json";
|
|
12090
|
+
status: 200;
|
|
12091
|
+
};
|
|
12092
|
+
};
|
|
12093
|
+
} & {
|
|
12094
|
+
"/:user_id/refresh-tokens": {
|
|
12095
|
+
$delete: {
|
|
12096
|
+
input: {
|
|
12097
|
+
param: {
|
|
12098
|
+
user_id: string;
|
|
12099
|
+
};
|
|
12100
|
+
} & {
|
|
12101
|
+
header: {
|
|
12102
|
+
"tenant-id"?: string | undefined;
|
|
12103
|
+
};
|
|
12104
|
+
};
|
|
12105
|
+
output: {};
|
|
12106
|
+
outputFormat: string;
|
|
12107
|
+
status: 204;
|
|
12108
|
+
};
|
|
12109
|
+
};
|
|
11890
12110
|
} & {
|
|
11891
12111
|
"/:user_id/logs": {
|
|
11892
12112
|
$get: {
|
|
@@ -12270,7 +12490,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
12270
12490
|
};
|
|
12271
12491
|
} & {
|
|
12272
12492
|
json: {
|
|
12273
|
-
template: "verify_email" | "
|
|
12493
|
+
template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
12274
12494
|
body: string;
|
|
12275
12495
|
from: string;
|
|
12276
12496
|
subject: string;
|
|
@@ -12291,7 +12511,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
12291
12511
|
};
|
|
12292
12512
|
} & {
|
|
12293
12513
|
json: {
|
|
12294
|
-
template: "verify_email" | "
|
|
12514
|
+
template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
12295
12515
|
body: string;
|
|
12296
12516
|
from: string;
|
|
12297
12517
|
subject: string;
|
|
@@ -12303,7 +12523,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
12303
12523
|
};
|
|
12304
12524
|
};
|
|
12305
12525
|
output: {
|
|
12306
|
-
template: "verify_email" | "
|
|
12526
|
+
template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
12307
12527
|
body: string;
|
|
12308
12528
|
from: string;
|
|
12309
12529
|
subject: string;
|
|
@@ -12326,7 +12546,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
12326
12546
|
};
|
|
12327
12547
|
};
|
|
12328
12548
|
output: {
|
|
12329
|
-
name: "verify_email" | "
|
|
12549
|
+
name: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
12330
12550
|
body: string;
|
|
12331
12551
|
subject: string;
|
|
12332
12552
|
}[];
|
|
@@ -12339,7 +12559,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
12339
12559
|
$get: {
|
|
12340
12560
|
input: {
|
|
12341
12561
|
param: {
|
|
12342
|
-
templateName: "verify_email" | "
|
|
12562
|
+
templateName: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
12343
12563
|
};
|
|
12344
12564
|
} & {
|
|
12345
12565
|
header: {
|
|
@@ -12352,7 +12572,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
12352
12572
|
} | {
|
|
12353
12573
|
input: {
|
|
12354
12574
|
param: {
|
|
12355
|
-
templateName: "verify_email" | "
|
|
12575
|
+
templateName: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
12356
12576
|
};
|
|
12357
12577
|
} & {
|
|
12358
12578
|
header: {
|
|
@@ -12360,7 +12580,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
12360
12580
|
};
|
|
12361
12581
|
};
|
|
12362
12582
|
output: {
|
|
12363
|
-
template: "verify_email" | "
|
|
12583
|
+
template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
12364
12584
|
body: string;
|
|
12365
12585
|
from: string;
|
|
12366
12586
|
subject: string;
|
|
@@ -12379,7 +12599,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
12379
12599
|
$put: {
|
|
12380
12600
|
input: {
|
|
12381
12601
|
param: {
|
|
12382
|
-
templateName: "verify_email" | "
|
|
12602
|
+
templateName: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
12383
12603
|
};
|
|
12384
12604
|
} & {
|
|
12385
12605
|
header: {
|
|
@@ -12387,7 +12607,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
12387
12607
|
};
|
|
12388
12608
|
} & {
|
|
12389
12609
|
json: {
|
|
12390
|
-
template: "verify_email" | "
|
|
12610
|
+
template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
12391
12611
|
body: string;
|
|
12392
12612
|
subject: string;
|
|
12393
12613
|
syntax?: "liquid" | undefined;
|
|
@@ -12399,7 +12619,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
12399
12619
|
};
|
|
12400
12620
|
};
|
|
12401
12621
|
output: {
|
|
12402
|
-
template: "verify_email" | "
|
|
12622
|
+
template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
12403
12623
|
body: string;
|
|
12404
12624
|
from: string;
|
|
12405
12625
|
subject: string;
|
|
@@ -12418,7 +12638,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
12418
12638
|
$patch: {
|
|
12419
12639
|
input: {
|
|
12420
12640
|
param: {
|
|
12421
|
-
templateName: "verify_email" | "
|
|
12641
|
+
templateName: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
12422
12642
|
};
|
|
12423
12643
|
} & {
|
|
12424
12644
|
header: {
|
|
@@ -12426,7 +12646,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
12426
12646
|
};
|
|
12427
12647
|
} & {
|
|
12428
12648
|
json: {
|
|
12429
|
-
template?: "verify_email" | "
|
|
12649
|
+
template?: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation" | undefined;
|
|
12430
12650
|
body?: string | undefined;
|
|
12431
12651
|
from?: string | undefined;
|
|
12432
12652
|
subject?: string | undefined;
|
|
@@ -12443,7 +12663,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
12443
12663
|
} | {
|
|
12444
12664
|
input: {
|
|
12445
12665
|
param: {
|
|
12446
|
-
templateName: "verify_email" | "
|
|
12666
|
+
templateName: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
12447
12667
|
};
|
|
12448
12668
|
} & {
|
|
12449
12669
|
header: {
|
|
@@ -12451,7 +12671,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
12451
12671
|
};
|
|
12452
12672
|
} & {
|
|
12453
12673
|
json: {
|
|
12454
|
-
template?: "verify_email" | "
|
|
12674
|
+
template?: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation" | undefined;
|
|
12455
12675
|
body?: string | undefined;
|
|
12456
12676
|
from?: string | undefined;
|
|
12457
12677
|
subject?: string | undefined;
|
|
@@ -12463,7 +12683,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
12463
12683
|
};
|
|
12464
12684
|
};
|
|
12465
12685
|
output: {
|
|
12466
|
-
template: "verify_email" | "
|
|
12686
|
+
template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
12467
12687
|
body: string;
|
|
12468
12688
|
from: string;
|
|
12469
12689
|
subject: string;
|
|
@@ -12482,7 +12702,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
12482
12702
|
$delete: {
|
|
12483
12703
|
input: {
|
|
12484
12704
|
param: {
|
|
12485
|
-
templateName: "verify_email" | "
|
|
12705
|
+
templateName: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
12486
12706
|
};
|
|
12487
12707
|
} & {
|
|
12488
12708
|
header: {
|
|
@@ -12495,7 +12715,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
12495
12715
|
} | {
|
|
12496
12716
|
input: {
|
|
12497
12717
|
param: {
|
|
12498
|
-
templateName: "verify_email" | "
|
|
12718
|
+
templateName: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
12499
12719
|
};
|
|
12500
12720
|
} & {
|
|
12501
12721
|
header: {
|
|
@@ -12512,7 +12732,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
12512
12732
|
$post: {
|
|
12513
12733
|
input: {
|
|
12514
12734
|
param: {
|
|
12515
|
-
templateName: "verify_email" | "
|
|
12735
|
+
templateName: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
|
|
12516
12736
|
};
|
|
12517
12737
|
} & {
|
|
12518
12738
|
header: {
|