@faable/auth-sdk 2.9.28 → 2.9.30

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.
@@ -1051,6 +1051,7 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
1051
1051
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
1052
1052
  remember_device_days?: number | undefined;
1053
1053
  } | undefined;
1054
+ signup_protection?: "off" | "always" | "on_risk" | undefined;
1054
1055
  recovery_channels?: {
1055
1056
  enabled?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
1056
1057
  default?: "email" | "sms" | "whatsapp" | "factor" | undefined;
@@ -1155,6 +1156,7 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
1155
1156
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
1156
1157
  remember_device_days?: number | undefined;
1157
1158
  } | undefined;
1159
+ signup_protection?: "off" | "always" | "on_risk" | undefined;
1158
1160
  recovery_channels?: {
1159
1161
  enabled?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
1160
1162
  default?: "email" | "sms" | "whatsapp" | "factor" | undefined;
@@ -1262,6 +1264,7 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
1262
1264
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
1263
1265
  remember_device_days?: number | undefined;
1264
1266
  } | undefined;
1267
+ signup_protection?: "off" | "always" | "on_risk" | undefined;
1265
1268
  recovery_channels?: {
1266
1269
  enabled?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
1267
1270
  default?: "email" | "sms" | "whatsapp" | "factor" | undefined;
@@ -1368,6 +1371,7 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
1368
1371
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
1369
1372
  remember_device_days?: number | undefined;
1370
1373
  } | undefined;
1374
+ signup_protection?: "off" | "always" | "on_risk" | undefined;
1371
1375
  recovery_channels?: {
1372
1376
  enabled?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
1373
1377
  default?: "email" | "sms" | "whatsapp" | "factor" | undefined;
@@ -1611,6 +1611,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1611
1611
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
1612
1612
  remember_device_days?: number | undefined;
1613
1613
  } | undefined;
1614
+ signup_protection?: "off" | "always" | "on_risk" | undefined;
1614
1615
  recovery_channels?: {
1615
1616
  enabled?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
1616
1617
  default?: "email" | "sms" | "whatsapp" | "factor" | undefined;
@@ -1731,6 +1732,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1731
1732
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
1732
1733
  remember_device_days?: number | undefined;
1733
1734
  } | undefined;
1735
+ signup_protection?: "off" | "always" | "on_risk" | undefined;
1734
1736
  recovery_channels?: {
1735
1737
  enabled?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
1736
1738
  default?: "email" | "sms" | "whatsapp" | "factor" | undefined;
@@ -1852,6 +1854,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1852
1854
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
1853
1855
  remember_device_days?: number | undefined;
1854
1856
  } | undefined;
1857
+ signup_protection?: "off" | "always" | "on_risk" | undefined;
1855
1858
  recovery_channels?: {
1856
1859
  enabled?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
1857
1860
  default?: "email" | "sms" | "whatsapp" | "factor" | undefined;
@@ -1974,6 +1977,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1974
1977
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
1975
1978
  remember_device_days?: number | undefined;
1976
1979
  } | undefined;
1980
+ signup_protection?: "off" | "always" | "on_risk" | undefined;
1977
1981
  recovery_channels?: {
1978
1982
  enabled?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
1979
1983
  default?: "email" | "sms" | "whatsapp" | "factor" | undefined;
@@ -2078,6 +2082,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2078
2082
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
2079
2083
  remember_device_days?: number | undefined;
2080
2084
  } | undefined;
2085
+ signup_protection?: "off" | "always" | "on_risk" | undefined;
2081
2086
  recovery_channels?: {
2082
2087
  enabled?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
2083
2088
  default?: "email" | "sms" | "whatsapp" | "factor" | undefined;
@@ -2185,6 +2190,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2185
2190
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
2186
2191
  remember_device_days?: number | undefined;
2187
2192
  } | undefined;
2193
+ signup_protection?: "off" | "always" | "on_risk" | undefined;
2188
2194
  recovery_channels?: {
2189
2195
  enabled?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
2190
2196
  default?: "email" | "sms" | "whatsapp" | "factor" | undefined;
@@ -2308,6 +2314,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2308
2314
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
2309
2315
  remember_device_days?: number | undefined;
2310
2316
  } | undefined;
2317
+ signup_protection?: "off" | "always" | "on_risk" | undefined;
2311
2318
  recovery_channels?: {
2312
2319
  enabled?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
2313
2320
  default?: "email" | "sms" | "whatsapp" | "factor" | undefined;
@@ -2429,6 +2436,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2429
2436
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
2430
2437
  remember_device_days?: number | undefined;
2431
2438
  } | undefined;
2439
+ signup_protection?: "off" | "always" | "on_risk" | undefined;
2432
2440
  recovery_channels?: {
2433
2441
  enabled?: ("email" | "sms" | "whatsapp" | "factor")[] | undefined;
2434
2442
  default?: "email" | "sms" | "whatsapp" | "factor" | undefined;
@@ -6181,6 +6181,8 @@ export interface components {
6181
6181
  /** @description How long a browser that already passed a challenge may skip the next one. 0 (default) challenges every time. */
6182
6182
  remember_device_days?: number;
6183
6183
  };
6184
+ /** @description Bot protection for this client's signups and passwordless codes: `off` (Actions only), `on_risk` (a proof-of-work challenge when the request looks risky) or `always` (every signup solves it; clients that cannot are refused). New clients start at `on_risk`. */
6185
+ signup_protection?: "off" | "on_risk" | "always";
6184
6186
  /** @description Password-recovery delivery channels. Set on the Account as the tenant default; the same object on a Client overrides it field by field, like `login_methods` and `mfa_policy`. */
6185
6187
  recovery_channels?: {
6186
6188
  /** @description Channels the tenant has turned on. `email` is always on regardless of this list: it is what every other channel falls back to. A channel listed here is still offered only if the platform can send it, the plan allows it and the user has a verified destination for it. */
@@ -6244,6 +6246,8 @@ export interface components {
6244
6246
  logout_urls?: string[];
6245
6247
  web_origins?: string[];
6246
6248
  initiate_login_uri?: string;
6249
+ /** @description Bot protection for this client's signups and passwordless codes: `off` (Actions only), `on_risk` (a proof-of-work challenge when the request looks risky) or `always` (every signup solves it; clients that cannot are refused). New clients start at `on_risk`. */
6250
+ signup_protection?: "off" | "on_risk" | "always";
6247
6251
  grant_types?: ("authorization_code" | "client_credentials" | "refresh_token" | "password" | "http://auth0.com/oauth/grant-type/passwordless/otp" | "urn:ietf:params:oauth:grant-type:token-exchange" | "urn:ietf:params:oauth:grant-type:device_code" | "http://auth0.com/oauth/grant-type/mfa-otp" | "http://auth0.com/oauth/grant-type/mfa-recovery-code")[];
6248
6252
  /** @description Management API scopes (e.g. `read:rolemembers`) this client may obtain with client_credentials for the audience `faable:management:<account_id>`. A token request gets the requested scopes that are in this list, or the whole list when it asks for none. Empty = the client cannot obtain Management API tokens. Only scopes your own token holds can be granted. */
6249
6253
  management_scopes?: string[];
@@ -6360,6 +6364,8 @@ export interface components {
6360
6364
  /** @description How long a browser that already passed a challenge may skip the next one. 0 (default) challenges every time. */
6361
6365
  remember_device_days?: number;
6362
6366
  } | null;
6367
+ /** @description Bot protection for this client's signups and passwordless codes: `off` (Actions only), `on_risk` (a proof-of-work challenge when the request looks risky) or `always` (every signup solves it; clients that cannot are refused). New clients start at `on_risk`. */
6368
+ signup_protection?: "off" | "on_risk" | "always";
6363
6369
  recovery_channels?: {
6364
6370
  /** @description Channels the tenant has turned on. `email` is always on regardless of this list: it is what every other channel falls back to. A channel listed here is still offered only if the platform can send it, the plan allows it and the user has a verified destination for it. */
6365
6371
  enabled?: ("email" | "sms" | "whatsapp" | "factor")[];
@@ -13011,6 +13017,8 @@ export interface operations {
13011
13017
  logout_urls?: string[];
13012
13018
  web_origins?: string[];
13013
13019
  initiate_login_uri?: string;
13020
+ /** @description Bot protection for this client's signups and passwordless codes: `off` (Actions only), `on_risk` (a proof-of-work challenge when the request looks risky) or `always` (every signup solves it; clients that cannot are refused). New clients start at `on_risk`. */
13021
+ signup_protection?: "off" | "on_risk" | "always";
13014
13022
  grant_types?: ("authorization_code" | "client_credentials" | "refresh_token" | "password" | "http://auth0.com/oauth/grant-type/passwordless/otp" | "urn:ietf:params:oauth:grant-type:token-exchange" | "urn:ietf:params:oauth:grant-type:device_code" | "http://auth0.com/oauth/grant-type/mfa-otp" | "http://auth0.com/oauth/grant-type/mfa-recovery-code")[];
13015
13023
  /** @description Management API scopes (e.g. `read:rolemembers`) this client may obtain with client_credentials for the audience `faable:management:<account_id>`. A token request gets the requested scopes that are in this list, or the whole list when it asks for none. Empty = the client cannot obtain Management API tokens. Only scopes your own token holds can be granted. */
13016
13024
  management_scopes?: string[];
@@ -13140,6 +13148,8 @@ export interface operations {
13140
13148
  /** @description How long a browser that already passed a challenge may skip the next one. 0 (default) challenges every time. */
13141
13149
  remember_device_days?: number;
13142
13150
  };
13151
+ /** @description Bot protection for this client's signups and passwordless codes: `off` (Actions only), `on_risk` (a proof-of-work challenge when the request looks risky) or `always` (every signup solves it; clients that cannot are refused). New clients start at `on_risk`. */
13152
+ signup_protection?: "off" | "on_risk" | "always";
13143
13153
  /** @description Password-recovery delivery channels. Set on the Account as the tenant default; the same object on a Client overrides it field by field, like `login_methods` and `mfa_policy`. */
13144
13154
  recovery_channels?: {
13145
13155
  /** @description Channels the tenant has turned on. `email` is always on regardless of this list: it is what every other channel falls back to. A channel listed here is still offered only if the platform can send it, the plan allows it and the user has a verified destination for it. */
@@ -13403,6 +13413,8 @@ export interface operations {
13403
13413
  /** @description How long a browser that already passed a challenge may skip the next one. 0 (default) challenges every time. */
13404
13414
  remember_device_days?: number;
13405
13415
  };
13416
+ /** @description Bot protection for this client's signups and passwordless codes: `off` (Actions only), `on_risk` (a proof-of-work challenge when the request looks risky) or `always` (every signup solves it; clients that cannot are refused). New clients start at `on_risk`. */
13417
+ signup_protection?: "off" | "on_risk" | "always";
13406
13418
  /** @description Password-recovery delivery channels. Set on the Account as the tenant default; the same object on a Client overrides it field by field, like `login_methods` and `mfa_policy`. */
13407
13419
  recovery_channels?: {
13408
13420
  /** @description Channels the tenant has turned on. `email` is always on regardless of this list: it is what every other channel falls back to. A channel listed here is still offered only if the platform can send it, the plan allows it and the user has a verified destination for it. */
@@ -13656,6 +13668,8 @@ export interface operations {
13656
13668
  /** @description How long a browser that already passed a challenge may skip the next one. 0 (default) challenges every time. */
13657
13669
  remember_device_days?: number;
13658
13670
  } | null;
13671
+ /** @description Bot protection for this client's signups and passwordless codes: `off` (Actions only), `on_risk` (a proof-of-work challenge when the request looks risky) or `always` (every signup solves it; clients that cannot are refused). New clients start at `on_risk`. */
13672
+ signup_protection?: "off" | "on_risk" | "always";
13659
13673
  recovery_channels?: {
13660
13674
  /** @description Channels the tenant has turned on. `email` is always on regardless of this list: it is what every other channel falls back to. A channel listed here is still offered only if the platform can send it, the plan allows it and the user has a verified destination for it. */
13661
13675
  enabled?: ("email" | "sms" | "whatsapp" | "factor")[];
@@ -13814,6 +13828,8 @@ export interface operations {
13814
13828
  /** @description How long a browser that already passed a challenge may skip the next one. 0 (default) challenges every time. */
13815
13829
  remember_device_days?: number;
13816
13830
  };
13831
+ /** @description Bot protection for this client's signups and passwordless codes: `off` (Actions only), `on_risk` (a proof-of-work challenge when the request looks risky) or `always` (every signup solves it; clients that cannot are refused). New clients start at `on_risk`. */
13832
+ signup_protection?: "off" | "on_risk" | "always";
13817
13833
  /** @description Password-recovery delivery channels. Set on the Account as the tenant default; the same object on a Client overrides it field by field, like `login_methods` and `mfa_policy`. */
13818
13834
  recovery_channels?: {
13819
13835
  /** @description Channels the tenant has turned on. `email` is always on regardless of this list: it is what every other channel falls back to. A channel listed here is still offered only if the platform can send it, the plan allows it and the user has a verified destination for it. */
@@ -14083,6 +14099,8 @@ export interface operations {
14083
14099
  /** @description How long a browser that already passed a challenge may skip the next one. 0 (default) challenges every time. */
14084
14100
  remember_device_days?: number;
14085
14101
  };
14102
+ /** @description Bot protection for this client's signups and passwordless codes: `off` (Actions only), `on_risk` (a proof-of-work challenge when the request looks risky) or `always` (every signup solves it; clients that cannot are refused). New clients start at `on_risk`. */
14103
+ signup_protection?: "off" | "on_risk" | "always";
14086
14104
  /** @description Password-recovery delivery channels. Set on the Account as the tenant default; the same object on a Client overrides it field by field, like `login_methods` and `mfa_policy`. */
14087
14105
  recovery_channels?: {
14088
14106
  /** @description Channels the tenant has turned on. `email` is always on regardless of this list: it is what every other channel falls back to. A channel listed here is still offered only if the platform can send it, the plan allows it and the user has a verified destination for it. */
@@ -14350,6 +14368,8 @@ export interface operations {
14350
14368
  /** @description How long a browser that already passed a challenge may skip the next one. 0 (default) challenges every time. */
14351
14369
  remember_device_days?: number;
14352
14370
  };
14371
+ /** @description Bot protection for this client's signups and passwordless codes: `off` (Actions only), `on_risk` (a proof-of-work challenge when the request looks risky) or `always` (every signup solves it; clients that cannot are refused). New clients start at `on_risk`. */
14372
+ signup_protection?: "off" | "on_risk" | "always";
14353
14373
  /** @description Password-recovery delivery channels. Set on the Account as the tenant default; the same object on a Client overrides it field by field, like `login_methods` and `mfa_policy`. */
14354
14374
  recovery_channels?: {
14355
14375
  /** @description Channels the tenant has turned on. `email` is always on regardless of this list: it is what every other channel falls back to. A channel listed here is still offered only if the platform can send it, the plan allows it and the user has a verified destination for it. */
@@ -38443,6 +38463,8 @@ export interface operations {
38443
38463
  };
38444
38464
  /** @description Optional connection_name to disambiguate when the tenant has more than one database connection. Defaults to the tenant database connection. */
38445
38465
  connection?: string;
38466
+ /** @description The application's Client ID. auth-js sends it. When it names a client of the tenant, that client's Allowed Web Origins and signup protection apply; an unknown or missing one is accepted (as before) and recorded. */
38467
+ client_id?: string;
38446
38468
  };
38447
38469
  };
38448
38470
  };
@@ -38477,7 +38499,9 @@ export interface operations {
38477
38499
  };
38478
38500
  };
38479
38501
  /**
38480
- * @description `signup_denied` — A pre-signup Action or an active block denied the sign-up. `message` carries the reason.
38502
+ * @description `origin_not_allowed` — The request `Origin` is not in the client's Allowed Web Origins.
38503
+ *
38504
+ * `signup_denied` — A pre-signup Action or an active block denied the sign-up. `message` carries the reason.
38481
38505
  *
38482
38506
  * `signup_disabled` — Self-service sign-up is disabled on this connection.
38483
38507
  */
@@ -38488,7 +38512,7 @@ export interface operations {
38488
38512
  content: {
38489
38513
  "application/json": components["schemas"]["ErrorResponse"] & {
38490
38514
  /** @enum {string} */
38491
- error_code?: "signup_denied" | "signup_disabled";
38515
+ error_code?: "origin_not_allowed" | "signup_denied" | "signup_disabled";
38492
38516
  };
38493
38517
  };
38494
38518
  };
package/dist/version.js CHANGED
@@ -9,13 +9,13 @@
9
9
  // login pages could not import the SDK at all. Same pattern as auth-js.
10
10
  //
11
11
  // The sentinels MUST stay byte-identical to the `from` values in `.releaserc`.
12
- export const version = "2.9.28";
12
+ export const version = "2.9.30";
13
13
  // Short git SHA of the released commit. The version dates a build; this names
14
14
  // the exact tree, so a canonical log line or an audit entry leads straight to
15
15
  // `git show <sha>`. Deliberately NOT hex: an unreleased build (dev, a local
16
16
  // link) cannot be mistaken for a real commit — auth only records values that
17
17
  // look like a SHA, and this one never will.
18
- export const commit = "3bdafde";
18
+ export const commit = "d2a36e7";
19
19
  // What this SDK writes in `x-faable-client`. Exported for a consumer that
20
20
  // builds a strategy on its own (outside `FaableAuthApi`) and still wants the
21
21
  // token request attributed — a bare `authClientCredentials` stamps only what
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faable/auth-sdk",
3
- "version": "2.9.28",
3
+ "version": "2.9.30",
4
4
  "author": "Marc Pomar <marc@faable.com>",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/spec/openapi.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "@faablecloud/auth",
5
5
  "description": "Auth Platform made by Faable. Manage Users and Roles",
6
- "version": "2.106.1",
6
+ "version": "2.108.0",
7
7
  "license": {
8
8
  "name": "private",
9
9
  "url": "https://faable.com/docs/platform/privacy-policy"
@@ -2085,6 +2085,29 @@
2085
2085
  "additionalProperties": false,
2086
2086
  "description": "Second-factor policy. Set on the Account as the tenant default; the same object on a Client overrides it **field by field**, so one app can require MFA without changing the rest."
2087
2087
  },
2088
+ "signup_protection": {
2089
+ "anyOf": [
2090
+ {
2091
+ "type": "string",
2092
+ "enum": [
2093
+ "off"
2094
+ ]
2095
+ },
2096
+ {
2097
+ "type": "string",
2098
+ "enum": [
2099
+ "on_risk"
2100
+ ]
2101
+ },
2102
+ {
2103
+ "type": "string",
2104
+ "enum": [
2105
+ "always"
2106
+ ]
2107
+ }
2108
+ ],
2109
+ "description": "Bot protection for this client's signups and passwordless codes: `off` (Actions only), `on_risk` (a proof-of-work challenge when the request looks risky) or `always` (every signup solves it; clients that cannot are refused). New clients start at `on_risk`."
2110
+ },
2088
2111
  "recovery_channels": {
2089
2112
  "type": "object",
2090
2113
  "properties": {
@@ -2376,6 +2399,29 @@
2376
2399
  "initiate_login_uri": {
2377
2400
  "type": "string"
2378
2401
  },
2402
+ "signup_protection": {
2403
+ "anyOf": [
2404
+ {
2405
+ "type": "string",
2406
+ "enum": [
2407
+ "off"
2408
+ ]
2409
+ },
2410
+ {
2411
+ "type": "string",
2412
+ "enum": [
2413
+ "on_risk"
2414
+ ]
2415
+ },
2416
+ {
2417
+ "type": "string",
2418
+ "enum": [
2419
+ "always"
2420
+ ]
2421
+ }
2422
+ ],
2423
+ "description": "Bot protection for this client's signups and passwordless codes: `off` (Actions only), `on_risk` (a proof-of-work challenge when the request looks risky) or `always` (every signup solves it; clients that cannot are refused). New clients start at `on_risk`."
2424
+ },
2379
2425
  "grant_types": {
2380
2426
  "type": "array",
2381
2427
  "items": {
@@ -3001,6 +3047,29 @@
3001
3047
  }
3002
3048
  ]
3003
3049
  },
3050
+ "signup_protection": {
3051
+ "anyOf": [
3052
+ {
3053
+ "type": "string",
3054
+ "enum": [
3055
+ "off"
3056
+ ]
3057
+ },
3058
+ {
3059
+ "type": "string",
3060
+ "enum": [
3061
+ "on_risk"
3062
+ ]
3063
+ },
3064
+ {
3065
+ "type": "string",
3066
+ "enum": [
3067
+ "always"
3068
+ ]
3069
+ }
3070
+ ],
3071
+ "description": "Bot protection for this client's signups and passwordless codes: `off` (Actions only), `on_risk` (a proof-of-work challenge when the request looks risky) or `always` (every signup solves it; clients that cannot are refused). New clients start at `on_risk`."
3072
+ },
3004
3073
  "recovery_channels": {
3005
3074
  "anyOf": [
3006
3075
  {
@@ -21077,6 +21146,29 @@
21077
21146
  "initiate_login_uri": {
21078
21147
  "type": "string"
21079
21148
  },
21149
+ "signup_protection": {
21150
+ "anyOf": [
21151
+ {
21152
+ "type": "string",
21153
+ "enum": [
21154
+ "off"
21155
+ ]
21156
+ },
21157
+ {
21158
+ "type": "string",
21159
+ "enum": [
21160
+ "on_risk"
21161
+ ]
21162
+ },
21163
+ {
21164
+ "type": "string",
21165
+ "enum": [
21166
+ "always"
21167
+ ]
21168
+ }
21169
+ ],
21170
+ "description": "Bot protection for this client's signups and passwordless codes: `off` (Actions only), `on_risk` (a proof-of-work challenge when the request looks risky) or `always` (every signup solves it; clients that cannot are refused). New clients start at `on_risk`."
21171
+ },
21080
21172
  "grant_types": {
21081
21173
  "type": "array",
21082
21174
  "items": {
@@ -21629,6 +21721,29 @@
21629
21721
  "additionalProperties": false,
21630
21722
  "description": "Second-factor policy. Set on the Account as the tenant default; the same object on a Client overrides it **field by field**, so one app can require MFA without changing the rest."
21631
21723
  },
21724
+ "signup_protection": {
21725
+ "anyOf": [
21726
+ {
21727
+ "type": "string",
21728
+ "enum": [
21729
+ "off"
21730
+ ]
21731
+ },
21732
+ {
21733
+ "type": "string",
21734
+ "enum": [
21735
+ "on_risk"
21736
+ ]
21737
+ },
21738
+ {
21739
+ "type": "string",
21740
+ "enum": [
21741
+ "always"
21742
+ ]
21743
+ }
21744
+ ],
21745
+ "description": "Bot protection for this client's signups and passwordless codes: `off` (Actions only), `on_risk` (a proof-of-work challenge when the request looks risky) or `always` (every signup solves it; clients that cannot are refused). New clients start at `on_risk`."
21746
+ },
21632
21747
  "recovery_channels": {
21633
21748
  "type": "object",
21634
21749
  "properties": {
@@ -22524,6 +22639,29 @@
22524
22639
  "additionalProperties": false,
22525
22640
  "description": "Second-factor policy. Set on the Account as the tenant default; the same object on a Client overrides it **field by field**, so one app can require MFA without changing the rest."
22526
22641
  },
22642
+ "signup_protection": {
22643
+ "anyOf": [
22644
+ {
22645
+ "type": "string",
22646
+ "enum": [
22647
+ "off"
22648
+ ]
22649
+ },
22650
+ {
22651
+ "type": "string",
22652
+ "enum": [
22653
+ "on_risk"
22654
+ ]
22655
+ },
22656
+ {
22657
+ "type": "string",
22658
+ "enum": [
22659
+ "always"
22660
+ ]
22661
+ }
22662
+ ],
22663
+ "description": "Bot protection for this client's signups and passwordless codes: `off` (Actions only), `on_risk` (a proof-of-work challenge when the request looks risky) or `always` (every signup solves it; clients that cannot are refused). New clients start at `on_risk`."
22664
+ },
22527
22665
  "recovery_channels": {
22528
22666
  "type": "object",
22529
22667
  "properties": {
@@ -23425,6 +23563,29 @@
23425
23563
  }
23426
23564
  ]
23427
23565
  },
23566
+ "signup_protection": {
23567
+ "anyOf": [
23568
+ {
23569
+ "type": "string",
23570
+ "enum": [
23571
+ "off"
23572
+ ]
23573
+ },
23574
+ {
23575
+ "type": "string",
23576
+ "enum": [
23577
+ "on_risk"
23578
+ ]
23579
+ },
23580
+ {
23581
+ "type": "string",
23582
+ "enum": [
23583
+ "always"
23584
+ ]
23585
+ }
23586
+ ],
23587
+ "description": "Bot protection for this client's signups and passwordless codes: `off` (Actions only), `on_risk` (a proof-of-work challenge when the request looks risky) or `always` (every signup solves it; clients that cannot are refused). New clients start at `on_risk`."
23588
+ },
23428
23589
  "recovery_channels": {
23429
23590
  "anyOf": [
23430
23591
  {
@@ -24159,6 +24320,29 @@
24159
24320
  "additionalProperties": false,
24160
24321
  "description": "Second-factor policy. Set on the Account as the tenant default; the same object on a Client overrides it **field by field**, so one app can require MFA without changing the rest."
24161
24322
  },
24323
+ "signup_protection": {
24324
+ "anyOf": [
24325
+ {
24326
+ "type": "string",
24327
+ "enum": [
24328
+ "off"
24329
+ ]
24330
+ },
24331
+ {
24332
+ "type": "string",
24333
+ "enum": [
24334
+ "on_risk"
24335
+ ]
24336
+ },
24337
+ {
24338
+ "type": "string",
24339
+ "enum": [
24340
+ "always"
24341
+ ]
24342
+ }
24343
+ ],
24344
+ "description": "Bot protection for this client's signups and passwordless codes: `off` (Actions only), `on_risk` (a proof-of-work challenge when the request looks risky) or `always` (every signup solves it; clients that cannot are refused). New clients start at `on_risk`."
24345
+ },
24162
24346
  "recovery_channels": {
24163
24347
  "type": "object",
24164
24348
  "properties": {
@@ -25054,6 +25238,29 @@
25054
25238
  "additionalProperties": false,
25055
25239
  "description": "Second-factor policy. Set on the Account as the tenant default; the same object on a Client overrides it **field by field**, so one app can require MFA without changing the rest."
25056
25240
  },
25241
+ "signup_protection": {
25242
+ "anyOf": [
25243
+ {
25244
+ "type": "string",
25245
+ "enum": [
25246
+ "off"
25247
+ ]
25248
+ },
25249
+ {
25250
+ "type": "string",
25251
+ "enum": [
25252
+ "on_risk"
25253
+ ]
25254
+ },
25255
+ {
25256
+ "type": "string",
25257
+ "enum": [
25258
+ "always"
25259
+ ]
25260
+ }
25261
+ ],
25262
+ "description": "Bot protection for this client's signups and passwordless codes: `off` (Actions only), `on_risk` (a proof-of-work challenge when the request looks risky) or `always` (every signup solves it; clients that cannot are refused). New clients start at `on_risk`."
25263
+ },
25057
25264
  "recovery_channels": {
25058
25265
  "type": "object",
25059
25266
  "properties": {
@@ -25950,6 +26157,29 @@
25950
26157
  "additionalProperties": false,
25951
26158
  "description": "Second-factor policy. Set on the Account as the tenant default; the same object on a Client overrides it **field by field**, so one app can require MFA without changing the rest."
25952
26159
  },
26160
+ "signup_protection": {
26161
+ "anyOf": [
26162
+ {
26163
+ "type": "string",
26164
+ "enum": [
26165
+ "off"
26166
+ ]
26167
+ },
26168
+ {
26169
+ "type": "string",
26170
+ "enum": [
26171
+ "on_risk"
26172
+ ]
26173
+ },
26174
+ {
26175
+ "type": "string",
26176
+ "enum": [
26177
+ "always"
26178
+ ]
26179
+ }
26180
+ ],
26181
+ "description": "Bot protection for this client's signups and passwordless codes: `off` (Actions only), `on_risk` (a proof-of-work challenge when the request looks risky) or `always` (every signup solves it; clients that cannot are refused). New clients start at `on_risk`."
26182
+ },
25953
26183
  "recovery_channels": {
25954
26184
  "type": "object",
25955
26185
  "properties": {
@@ -82871,6 +83101,10 @@
82871
83101
  "connection": {
82872
83102
  "type": "string",
82873
83103
  "description": "Optional connection_name to disambiguate when the tenant has more than one database connection. Defaults to the tenant database connection."
83104
+ },
83105
+ "client_id": {
83106
+ "type": "string",
83107
+ "description": "The application's Client ID. auth-js sends it. When it names a client of the tenant, that client's Allowed Web Origins and signup protection apply; an unknown or missing one is accepted (as before) and recorded."
82874
83108
  }
82875
83109
  },
82876
83110
  "additionalProperties": false
@@ -82912,7 +83146,7 @@
82912
83146
  }
82913
83147
  },
82914
83148
  "403": {
82915
- "description": "`signup_denied` — A pre-signup Action or an active block denied the sign-up. `message` carries the reason.\n\n`signup_disabled` — Self-service sign-up is disabled on this connection.",
83149
+ "description": "`origin_not_allowed` — The request `Origin` is not in the client's Allowed Web Origins.\n\n`signup_denied` — A pre-signup Action or an active block denied the sign-up. `message` carries the reason.\n\n`signup_disabled` — Self-service sign-up is disabled on this connection.",
82916
83150
  "content": {
82917
83151
  "application/json": {
82918
83152
  "schema": {
@@ -82926,6 +83160,7 @@
82926
83160
  "error_code": {
82927
83161
  "type": "string",
82928
83162
  "enum": [
83163
+ "origin_not_allowed",
82929
83164
  "signup_denied",
82930
83165
  "signup_disabled"
82931
83166
  ]