@fleetless/contracts 6.4.0 → 6.5.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/CHANGELOG.md +15 -0
- package/artifacts/routes.json +29 -4
- package/dist/routes.js +29 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,21 @@ version.
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [6.5.0] — 2026-10-11
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- The internal auth-portal route template `GET /waitlist-invite/:token`,
|
|
17
|
+
unauthenticated and rate-limited, for waiting-list invitations to a new
|
|
18
|
+
Basic organization. It describes the browser-proof redirect and invalid
|
|
19
|
+
link handling without publishing recipient links or secret values.
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- Console signup route notes describe the invite-bound exception under
|
|
24
|
+
`SIGNUP_MODE=closed`. Ordinary public signup remains closed; the existing
|
|
25
|
+
signup auth/rate-limit metadata and team invitation routes are unchanged.
|
|
26
|
+
|
|
12
27
|
## [6.4.0] — 2026-10-09
|
|
13
28
|
|
|
14
29
|
### Changed
|
package/artifacts/routes.json
CHANGED
|
@@ -3186,6 +3186,31 @@
|
|
|
3186
3186
|
"transport": "http",
|
|
3187
3187
|
"notes": "`I saved my recovery codes` gates the button on the page; the step itself only checks that a second factor now exists. A browser gets a `303` to the console callback with the authorization code; a JSON caller that URL as `redirect_to`."
|
|
3188
3188
|
},
|
|
3189
|
+
{
|
|
3190
|
+
"method": "GET",
|
|
3191
|
+
"path": "/waitlist-invite/:token",
|
|
3192
|
+
"section": "developer-auth",
|
|
3193
|
+
"summary": "Starts invite-bound console sign-up for a new Basic organization.",
|
|
3194
|
+
"audience": "internal",
|
|
3195
|
+
"auth": "none",
|
|
3196
|
+
"rateLimited": true,
|
|
3197
|
+
"ownerTier": false,
|
|
3198
|
+
"status": 303,
|
|
3199
|
+
"params": [
|
|
3200
|
+
{
|
|
3201
|
+
"name": "token",
|
|
3202
|
+
"description": "The opaque waiting-list invitation token from the mailed link; never a query parameter."
|
|
3203
|
+
}
|
|
3204
|
+
],
|
|
3205
|
+
"query": null,
|
|
3206
|
+
"request": null,
|
|
3207
|
+
"response": null,
|
|
3208
|
+
"errors": [
|
|
3209
|
+
"rate_limited"
|
|
3210
|
+
],
|
|
3211
|
+
"transport": "http",
|
|
3212
|
+
"notes": "Exchanges a valid seven-day invitation for a short-lived browser-proof cookie, then redirects with `303` into console sign-up. The response uses `Cache-Control: no-store` and `Referrer-Policy: no-referrer`; no caller-supplied redirect is accepted. Invalid, expired, used, declined or replaced links render the same `410` page; the per-IP backstop answers `429 rate_limited`. Only the invited normalized email address may register a new Basic organization under `SIGNUP_MODE=closed`, and the signup code still proves control of that address. Every step rechecks the unspent generation, expiry and address; re-inviting immediately invalidates the old link and any signup it started. The GET does not consume the invitation: final organization/Owner creation, waiting-list transition and single-use consumption share one transaction. The interaction binds the invitation id/generation, never the raw token. Tokens, proof values and recipient links stay out of the directory, logs and operator responses. Team invitations through `/accept-invite/:token` still join an existing organization."
|
|
3213
|
+
},
|
|
3189
3214
|
{
|
|
3190
3215
|
"method": "GET",
|
|
3191
3216
|
"path": "/console/oauth/signup/:id",
|
|
@@ -3207,7 +3232,7 @@
|
|
|
3207
3232
|
"response": null,
|
|
3208
3233
|
"errors": [],
|
|
3209
3234
|
"transport": "http",
|
|
3210
|
-
"notes": "HTML: the email field and `Email me a code`, the first of three steps — email, code, organization. While the deployment runs in closed beta this renders the \"sign-up is closed\" card at `403` instead, keeping the interaction alive and pointing back at sign-in and the waiting list — the person may well already have an account."
|
|
3235
|
+
"notes": "HTML: the email field and `Email me a code`, the first of three steps — email, code, organization. While the deployment runs in closed beta this renders the \"sign-up is closed\" card at `403` instead, keeping the interaction alive and pointing back at sign-in and the waiting list — the person may well already have an account. Under `SIGNUP_MODE=closed`, only a valid invite-bound interaction may continue for the invited normalized email address and a new Basic organization. Each step rechecks its unspent invitation generation, expiry and address; ordinary public sign-up remains refused."
|
|
3211
3236
|
},
|
|
3212
3237
|
{
|
|
3213
3238
|
"method": "POST",
|
|
@@ -3231,7 +3256,7 @@
|
|
|
3231
3256
|
"email_taken"
|
|
3232
3257
|
],
|
|
3233
3258
|
"transport": "http",
|
|
3234
|
-
"notes": "A browser form post gets the code card; a JSON caller gets `{ \"next\", \"email\" }`, which has no schema. **No password**: the code mailed here, six digits valid ten minutes, proves the address. A per-interaction proof cookie is set here — it is what stops a third party from finishing a sign-up somebody else started. Sign-up is the one surface whose job is to say an address is taken, so `409 email_taken` is not a leak here."
|
|
3259
|
+
"notes": "A browser form post gets the code card; a JSON caller gets `{ \"next\", \"email\" }`, which has no schema. **No password**: the code mailed here, six digits valid ten minutes, proves the address. A per-interaction proof cookie is set here — it is what stops a third party from finishing a sign-up somebody else started. Sign-up is the one surface whose job is to say an address is taken, so `409 email_taken` is not a leak here. Under `SIGNUP_MODE=closed`, only a valid invite-bound interaction may request the code for the invited normalized email address; the unspent invitation generation, expiry and address are rechecked. Ordinary public sign-up still answers `403 signup_closed`."
|
|
3235
3260
|
},
|
|
3236
3261
|
{
|
|
3237
3262
|
"method": "POST",
|
|
@@ -3256,7 +3281,7 @@
|
|
|
3256
3281
|
"invalid_code"
|
|
3257
3282
|
],
|
|
3258
3283
|
"transport": "http",
|
|
3259
|
-
"notes": "A wrong code renders the code card again with the attempts left (`400 invalid_code`); a spent, expired or exhausted one is `410 token_spent`. The step before must have run in **this** browser (`401 wrong_browser`). A browser form post gets the organization card, the address shown `confirmed`; a JSON caller gets `{ \"next\" }`, which has no schema."
|
|
3284
|
+
"notes": "A wrong code renders the code card again with the attempts left (`400 invalid_code`); a spent, expired or exhausted one is `410 token_spent`. The step before must have run in **this** browser (`401 wrong_browser`). A browser form post gets the organization card, the address shown `confirmed`; a JSON caller gets `{ \"next\" }`, which has no schema. Under `SIGNUP_MODE=closed`, only a valid invite-bound interaction may continue after rechecking its unspent invitation generation, expiry and invited normalized email address. Ordinary public sign-up still answers `403 signup_closed`."
|
|
3260
3285
|
},
|
|
3261
3286
|
{
|
|
3262
3287
|
"method": "POST",
|
|
@@ -3281,7 +3306,7 @@
|
|
|
3281
3306
|
"email_taken"
|
|
3282
3307
|
],
|
|
3283
3308
|
"transport": "http",
|
|
3284
|
-
"notes": "The form carries `org_name` only. The org and its founding Owner are created in one transaction, and only after the code step confirmed the address. Both steps before must have run in **this** browser: a missing or mismatched proof cookie is `401 wrong_browser` and the person is sent back to step one. `409 email_taken` when the address was taken meanwhile. A browser form post gets a `303` to the console callback; a JSON caller gets `redirect_to` at `200`. This is the only way an organisation is created: `POST /api/auth/signup` is gone, because without a password it would hand a session to anybody who names an address."
|
|
3309
|
+
"notes": "The form carries `org_name` only. The org and its founding Owner are created in one transaction, and only after the code step confirmed the address. Both steps before must have run in **this** browser: a missing or mismatched proof cookie is `401 wrong_browser` and the person is sent back to step one. `409 email_taken` when the address was taken meanwhile. A browser form post gets a `303` to the console callback; a JSON caller gets `redirect_to` at `200`. This is the only way an organisation is created: `POST /api/auth/signup` is gone, because without a password it would hand a session to anybody who names an address. Under `SIGNUP_MODE=closed`, only a valid invite-bound interaction may create a new Basic organization for the invited normalized email address. Rechecking the unspent invitation generation, expiry and address, creating the org/Owner, transitioning the waiting-list entry and consuming the invitation happen in that same transaction. Ordinary public sign-up still answers `403 signup_closed`."
|
|
3285
3310
|
},
|
|
3286
3311
|
{
|
|
3287
3312
|
"method": "POST",
|
package/dist/routes.js
CHANGED
|
@@ -1406,6 +1406,22 @@ export const ROUTES = [
|
|
|
1406
1406
|
'page resolves nothing about the address typed into it, so there is no enumeration oracle here at all.',
|
|
1407
1407
|
},
|
|
1408
1408
|
...developerSignInRoutes('/console/oauth'),
|
|
1409
|
+
{
|
|
1410
|
+
method: 'GET', path: '/waitlist-invite/:token', section: 'developer-auth',
|
|
1411
|
+
summary: 'Starts invite-bound console sign-up for a new Basic organization.',
|
|
1412
|
+
audience: 'internal', auth: 'none', rateLimited: true, ownerTier: false, status: 303,
|
|
1413
|
+
params: [{ name: 'token', description: 'The opaque waiting-list invitation token from the mailed link; never a query parameter.' }],
|
|
1414
|
+
query: null, request: null, response: null, errors: ['rate_limited'], transport: 'http',
|
|
1415
|
+
notes: 'Exchanges a valid seven-day invitation for a short-lived browser-proof cookie, then redirects with `303` into console sign-up. ' +
|
|
1416
|
+
'The response uses `Cache-Control: no-store` and `Referrer-Policy: no-referrer`; no caller-supplied redirect is accepted. ' +
|
|
1417
|
+
'Invalid, expired, used, declined or replaced links render the same `410` page; the per-IP backstop answers `429 rate_limited`. ' +
|
|
1418
|
+
'Only the invited normalized email address may register a new Basic organization under `SIGNUP_MODE=closed`, and the signup code ' +
|
|
1419
|
+
'still proves control of that address. Every step rechecks the unspent generation, expiry and address; re-inviting immediately ' +
|
|
1420
|
+
'invalidates the old link and any signup it started. The GET does not consume the invitation: final organization/Owner creation, ' +
|
|
1421
|
+
'waiting-list transition and single-use consumption share one transaction. The interaction binds the invitation id/generation, ' +
|
|
1422
|
+
'never the raw token. Tokens, proof values and recipient links stay out of the directory, logs and operator responses. ' +
|
|
1423
|
+
'Team invitations through `/accept-invite/:token` still join an existing organization.',
|
|
1424
|
+
},
|
|
1409
1425
|
{
|
|
1410
1426
|
method: 'GET', path: '/console/oauth/signup/:id', section: 'developer-auth',
|
|
1411
1427
|
summary: 'Serves step one of console sign-up, the email card.',
|
|
@@ -1414,7 +1430,9 @@ export const ROUTES = [
|
|
|
1414
1430
|
query: null, request: null, response: null, errors: [], transport: 'http',
|
|
1415
1431
|
notes: 'HTML: the email field and `Email me a code`, the first of three steps — email, code, organization. While the deployment runs in ' +
|
|
1416
1432
|
'closed beta this renders the "sign-up is closed" card at `403` instead, keeping the interaction alive and pointing back at sign-in and ' +
|
|
1417
|
-
'the waiting list — the person may well already have an account.'
|
|
1433
|
+
'the waiting list — the person may well already have an account. Under `SIGNUP_MODE=closed`, only a valid invite-bound interaction ' +
|
|
1434
|
+
'may continue for the invited normalized email address and a new Basic organization. Each step rechecks its unspent invitation ' +
|
|
1435
|
+
'generation, expiry and address; ordinary public sign-up remains refused.',
|
|
1418
1436
|
},
|
|
1419
1437
|
{
|
|
1420
1438
|
method: 'POST', path: '/console/oauth/signup', section: 'developer-auth',
|
|
@@ -1425,7 +1443,9 @@ export const ROUTES = [
|
|
|
1425
1443
|
notes: 'A browser form post gets the code card; a JSON caller gets `{ "next", "email" }`, which has no schema. **No password**: the code ' +
|
|
1426
1444
|
'mailed here, six digits valid ten minutes, proves the address. A per-interaction proof cookie is set here — it is what stops a third ' +
|
|
1427
1445
|
'party from finishing a sign-up somebody else started. Sign-up is the one surface whose job is to say an address is taken, so `409 ' +
|
|
1428
|
-
'email_taken` is not a leak here.'
|
|
1446
|
+
'email_taken` is not a leak here. Under `SIGNUP_MODE=closed`, only a valid invite-bound interaction may request the code for the ' +
|
|
1447
|
+
'invited normalized email address; the unspent invitation generation, expiry and address are rechecked. Ordinary public sign-up ' +
|
|
1448
|
+
'still answers `403 signup_closed`.',
|
|
1429
1449
|
},
|
|
1430
1450
|
{
|
|
1431
1451
|
method: 'POST', path: '/console/oauth/signup/code', section: 'developer-auth',
|
|
@@ -1435,7 +1455,9 @@ export const ROUTES = [
|
|
|
1435
1455
|
errors: ['rate_limited', 'token_spent', 'signup_closed', 'wrong_browser', 'validation_error', 'invalid_code'], transport: 'http',
|
|
1436
1456
|
notes: 'A wrong code renders the code card again with the attempts left (`400 invalid_code`); a spent, expired or exhausted one is `410 ' +
|
|
1437
1457
|
'token_spent`. The step before must have run in **this** browser (`401 wrong_browser`). A browser form post gets the organization card, ' +
|
|
1438
|
-
'the address shown `confirmed`; a JSON caller gets `{ "next" }`, which has no schema.'
|
|
1458
|
+
'the address shown `confirmed`; a JSON caller gets `{ "next" }`, which has no schema. Under `SIGNUP_MODE=closed`, only a valid ' +
|
|
1459
|
+
'invite-bound interaction may continue after rechecking its unspent invitation generation, expiry and invited normalized email ' +
|
|
1460
|
+
'address. Ordinary public sign-up still answers `403 signup_closed`.',
|
|
1439
1461
|
},
|
|
1440
1462
|
{
|
|
1441
1463
|
method: 'POST', path: '/console/oauth/signup/organization', section: 'developer-auth',
|
|
@@ -1447,7 +1469,10 @@ export const ROUTES = [
|
|
|
1447
1469
|
'confirmed the address. Both steps before must have run in **this** browser: a missing or mismatched proof cookie is `401 ' +
|
|
1448
1470
|
'wrong_browser` and the person is sent back to step one. `409 email_taken` when the address was taken meanwhile. A browser form post ' +
|
|
1449
1471
|
'gets a `303` to the console callback; a JSON caller gets `redirect_to` at `200`. This is the only way an organisation is created: ' +
|
|
1450
|
-
'`POST /api/auth/signup` is gone, because without a password it would hand a session to anybody who names an address.'
|
|
1472
|
+
'`POST /api/auth/signup` is gone, because without a password it would hand a session to anybody who names an address. Under ' +
|
|
1473
|
+
'`SIGNUP_MODE=closed`, only a valid invite-bound interaction may create a new Basic organization for the invited normalized email ' +
|
|
1474
|
+
'address. Rechecking the unspent invitation generation, expiry and address, creating the org/Owner, transitioning the waiting-list ' +
|
|
1475
|
+
'entry and consuming the invitation happen in that same transaction. Ordinary public sign-up still answers `403 signup_closed`.',
|
|
1451
1476
|
},
|
|
1452
1477
|
{
|
|
1453
1478
|
method: 'POST', path: '/console/oauth/token', section: 'developer-auth',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fleetless/contracts",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.5.0",
|
|
4
4
|
"description": "Fleetless wire contracts: the bridge-cloud protocol, the REST API schemas and the error codes, as zod schemas with generated JSON Schema and OpenAPI artifacts.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Dehne Robotik GmbH",
|
|
@@ -62,6 +62,6 @@
|
|
|
62
62
|
"@types/node": "^26.2.0",
|
|
63
63
|
"tsx": "^4.19.0",
|
|
64
64
|
"typescript": "^5.7.0",
|
|
65
|
-
"vitest": "^
|
|
65
|
+
"vitest": "^4.1.11"
|
|
66
66
|
}
|
|
67
67
|
}
|