@fleetless/contracts 13.2.0 → 14.0.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.
Files changed (100) hide show
  1. package/CHANGELOG.md +169 -0
  2. package/artifacts/openapi.json +2092 -787
  3. package/artifacts/routes.json +229 -230
  4. package/artifacts/schema/access-warning.schema.json +51 -0
  5. package/artifacts/schema/action-config.schema.json +35 -0
  6. package/artifacts/schema/app-access-response.schema.json +136 -0
  7. package/artifacts/schema/app-access.schema.json +80 -0
  8. package/artifacts/schema/app-auth-config.schema.json +15 -0
  9. package/artifacts/schema/app-deletion-summary.schema.json +0 -7
  10. package/artifacts/schema/app-invitation-list-response.schema.json +13 -6
  11. package/artifacts/schema/app-invitation.schema.json +5 -5
  12. package/artifacts/schema/app-list-response.schema.json +6 -6
  13. package/artifacts/schema/app-lock.schema.json +30 -0
  14. package/artifacts/schema/app-user-list-response.schema.json +13 -6
  15. package/artifacts/schema/app-user.schema.json +13 -6
  16. package/artifacts/schema/app.schema.json +6 -6
  17. package/artifacts/schema/auth-ok.schema.json +20 -6
  18. package/artifacts/schema/camera-list-response.schema.json +1 -1
  19. package/artifacts/schema/client-identity.schema.json +21 -6
  20. package/artifacts/schema/cloud-config.schema.json +359 -5
  21. package/artifacts/schema/config-draft-response.schema.json +389 -5
  22. package/artifacts/schema/config-version-response.schema.json +389 -5
  23. package/artifacts/schema/config-versions-response.schema.json +30 -0
  24. package/artifacts/schema/create-app-invitation-request.schema.json +4 -4
  25. package/artifacts/schema/create-app-user-request.schema.json +4 -4
  26. package/artifacts/schema/create-org-role-request.schema.json +33 -0
  27. package/artifacts/schema/dangling-reference.schema.json +129 -0
  28. package/artifacts/schema/datapoint-config.schema.json +35 -0
  29. package/artifacts/schema/datapoint-list-response.schema.json +1 -1
  30. package/artifacts/schema/effective-capability.schema.json +104 -0
  31. package/artifacts/schema/effective-rights-query.schema.json +19 -0
  32. package/artifacts/schema/effective-rights-response.schema.json +310 -0
  33. package/artifacts/schema/effective-robot-rights.schema.json +266 -0
  34. package/artifacts/schema/invoke-or-service-response.schema.json +1 -1
  35. package/artifacts/schema/invoke-response.schema.json +1 -1
  36. package/artifacts/schema/journal-intent-v2-body.schema.json +74 -0
  37. package/artifacts/schema/journal-intent-v2.schema.json +84 -0
  38. package/artifacts/schema/journal-replay-receipt-body.schema.json +1 -0
  39. package/artifacts/schema/journal-replay-receipt.schema.json +1 -0
  40. package/artifacts/schema/mcp-robot-datasheet.schema.json +2 -2
  41. package/artifacts/schema/org-role-list-response.schema.json +205 -0
  42. package/artifacts/schema/org-role.schema.json +59 -0
  43. package/artifacts/schema/patch-app-user-request.schema.json +4 -4
  44. package/artifacts/schema/patch-org-role-request.schema.json +38 -0
  45. package/artifacts/schema/publish-config-response.schema.json +48 -1
  46. package/artifacts/schema/publisher-config.schema.json +35 -0
  47. package/artifacts/schema/put-role-defaults-request.schema.json +127 -0
  48. package/artifacts/schema/reference-place.schema.json +111 -0
  49. package/artifacts/schema/rename-slug-response.schema.json +4 -3
  50. package/artifacts/schema/robot-config-doc.schema.json +359 -5
  51. package/artifacts/schema/role-cycle-details.schema.json +18 -0
  52. package/artifacts/schema/role-defaults-response.schema.json +59 -0
  53. package/artifacts/schema/role-rename-preview.schema.json +146 -0
  54. package/artifacts/schema/service-config.schema.json +35 -0
  55. package/artifacts/schema/slug-usage-response.schema.json +4 -3
  56. package/artifacts/schema/update-app-request.schema.json +0 -12
  57. package/dist/app-users.d.ts +30 -10
  58. package/dist/app-users.js +32 -12
  59. package/dist/apps.d.ts +242 -71
  60. package/dist/apps.js +205 -151
  61. package/dist/audit.d.ts +3 -3
  62. package/dist/billing.d.ts +10 -10
  63. package/dist/client-auth.d.ts +5 -2
  64. package/dist/client-auth.js +11 -3
  65. package/dist/client-robots.d.ts +1 -1
  66. package/dist/client-robots.js +1 -1
  67. package/dist/common.d.ts +1 -1
  68. package/dist/common.js +1 -1
  69. package/dist/config-issues.d.ts +1 -1
  70. package/dist/config-issues.js +1 -1
  71. package/dist/config.d.ts +77 -11
  72. package/dist/config.js +108 -14
  73. package/dist/errors.d.ts +14 -5
  74. package/dist/errors.js +37 -24
  75. package/dist/index.d.ts +22 -12
  76. package/dist/index.js +16 -6
  77. package/dist/journal-intents.d.ts +30 -0
  78. package/dist/journal-intents.js +3 -0
  79. package/dist/legal-acceptances.d.ts +2 -2
  80. package/dist/mcp.d.ts +5 -37
  81. package/dist/mcp.js +4 -14
  82. package/dist/org-roles.d.ts +182 -0
  83. package/dist/org-roles.js +198 -0
  84. package/dist/plans.d.ts +6 -6
  85. package/dist/protocol.d.ts +19 -1
  86. package/dist/realtime.d.ts +6 -3
  87. package/dist/realtime.js +1 -1
  88. package/dist/rest.d.ts +104 -25
  89. package/dist/rest.js +67 -29
  90. package/dist/rights.d.ts +197 -0
  91. package/dist/rights.js +396 -0
  92. package/dist/routes.js +190 -148
  93. package/package.json +1 -1
  94. package/artifacts/schema/mcp-role-preview-response.schema.json +0 -134
  95. package/artifacts/schema/role-delete-query.schema.json +0 -13
  96. package/artifacts/schema/role-in-use-details.schema.json +0 -28
  97. package/artifacts/schema/role-list-response.schema.json +0 -48
  98. package/artifacts/schema/role-permissions.schema.json +0 -61
  99. package/artifacts/schema/role-rename-request.schema.json +0 -16
  100. package/artifacts/schema/role.schema.json +0 -35
@@ -416,7 +416,7 @@
416
416
  "method": "GET",
417
417
  "path": "/favicon.svg",
418
418
  "section": "client-auth",
419
- "summary": "Serves the Fleetless icon for the auth portal's and the MCP welcome page's browser tab.",
419
+ "summary": "Serves the Fleetless icon for the auth portal's browser tab.",
420
420
  "audience": "internal",
421
421
  "auth": "none",
422
422
  "rateLimited": false,
@@ -645,6 +645,159 @@
645
645
  "transport": "http",
646
646
  "notes": "The authenticated org is the only target. Null contacts explicitly clear earlier values. The write is atomic and audited; billing data is never an implicit source. Support sessions cannot write."
647
647
  },
648
+ {
649
+ "method": "GET",
650
+ "path": "/api/org/roles",
651
+ "section": "org",
652
+ "summary": "Lists the organization's roles with how much depends on each, and the keys that are written somewhere but are no role.",
653
+ "audience": "developer",
654
+ "auth": "developer",
655
+ "rateLimited": false,
656
+ "ownerTier": false,
657
+ "status": 200,
658
+ "params": [],
659
+ "query": null,
660
+ "request": null,
661
+ "response": "org-role-list-response",
662
+ "errors": [
663
+ "unauthorized",
664
+ "token_expired",
665
+ "token_revoked"
666
+ ],
667
+ "transport": "http",
668
+ "notes": "Roles belong to the organization and are shared by all its apps; console members hold none and are never filtered by them. Each role carries the number of app users that hold it, of invitations that carry it, of apps that use it as their default and of places in documents that name it. `dangling` lists the keys that are written somewhere and are no role, each with every place that writes it, so a deleted or misspelled key can be found. None of this is an error: a key that names no role grants nothing and is reported here."
669
+ },
670
+ {
671
+ "method": "POST",
672
+ "path": "/api/org/roles",
673
+ "section": "org",
674
+ "summary": "Creates an organization role.",
675
+ "audience": "developer",
676
+ "auth": "developer",
677
+ "rateLimited": false,
678
+ "ownerTier": false,
679
+ "status": 201,
680
+ "params": [],
681
+ "query": null,
682
+ "request": "create-org-role-request",
683
+ "response": "org-role",
684
+ "errors": [
685
+ "unauthorized",
686
+ "token_expired",
687
+ "token_revoked",
688
+ "validation_error",
689
+ "role_cycle",
690
+ "role_key_taken"
691
+ ],
692
+ "transport": "http",
693
+ "notes": "An organization holds at most 50 roles; the next one is `400 validation_error`. A key in `inherits` that names no role is accepted and warns: inheritance through it grants nothing until a role with that key exists. A role that would inherit from itself, as `inherits` naming its own key does, is `400 role_cycle`. A key that another role has is `409 role_key_taken`."
694
+ },
695
+ {
696
+ "method": "PATCH",
697
+ "path": "/api/org/roles/:key",
698
+ "section": "org",
699
+ "summary": "Changes a role's name, its parents or its key.",
700
+ "audience": "developer",
701
+ "auth": "developer",
702
+ "rateLimited": false,
703
+ "ownerTier": false,
704
+ "status": 200,
705
+ "params": [
706
+ {
707
+ "name": "key",
708
+ "description": "The role's key, as listed by `GET /api/org/roles`; a key that names no role answers `404`."
709
+ }
710
+ ],
711
+ "query": null,
712
+ "request": "patch-org-role-request",
713
+ "response": "org-role",
714
+ "errors": [
715
+ "unauthorized",
716
+ "token_expired",
717
+ "token_revoked",
718
+ "validation_error",
719
+ "not_found",
720
+ "role_cycle",
721
+ "role_key_taken",
722
+ "confirmation_required"
723
+ ],
724
+ "transport": "http",
725
+ "notes": "A field that is left out stays as it is; `inherits` replaces the whole list. A change to `inherits` that would lead back to the role is `400 role_cycle`, with the loop in `details`. \n\n**Renaming the key is one call or two.** Without `update_references`, the rename is accepted at once; everything that still names the old key, in documents, assignments, invitations, default roles, other roles and organization defaults, keeps it and turns into a warning. With `update_references: true` and no `confirm`, a rename that has places to rewrite changes nothing and answers `409 confirmation_required` whose `details` is a `roleRenamePreview`: every place that would be rewritten, the document it is in, the version a published document would get, and a `confirm` token. A rename with no place to rewrite applies at once and needs no token. The second call repeats the same body with `confirm` set to that token and rewrites all of it in one transaction. Assignments and role rows change directly; each affected published `fleetless.yaml` gets a new version that differs only in the key, and an existing draft is updated the same way. If the places changed between the two calls, the token is stale and the second call answers a new preview instead of applying. A new key that another role has is `409 role_key_taken`."
726
+ },
727
+ {
728
+ "method": "DELETE",
729
+ "path": "/api/org/roles/:key",
730
+ "section": "org",
731
+ "summary": "Deletes a role at once.",
732
+ "audience": "developer",
733
+ "auth": "developer",
734
+ "rateLimited": false,
735
+ "ownerTier": false,
736
+ "status": 204,
737
+ "params": [
738
+ {
739
+ "name": "key",
740
+ "description": "The role's key, as listed by `GET /api/org/roles`; a key that names no role answers `404`."
741
+ }
742
+ ],
743
+ "query": null,
744
+ "request": null,
745
+ "response": null,
746
+ "errors": [
747
+ "unauthorized",
748
+ "token_expired",
749
+ "token_revoked",
750
+ "validation_error",
751
+ "not_found"
752
+ ],
753
+ "transport": "http",
754
+ "notes": "Nothing is moved and nothing is refused for what depends on the role. App users that hold it keep their account and can sign in, with no rights from the role; everything that names the key turns into a warning and is listed under `dangling` of `GET /api/org/roles`. Live subscriptions that relied on the role are re-checked at once. Creating a role with the same key later makes the places that name it count again."
755
+ },
756
+ {
757
+ "method": "GET",
758
+ "path": "/api/org/roles/defaults",
759
+ "section": "org",
760
+ "summary": "Reads the organization's default roles for each kind of access.",
761
+ "audience": "developer",
762
+ "auth": "developer",
763
+ "rateLimited": false,
764
+ "ownerTier": false,
765
+ "status": 200,
766
+ "params": [],
767
+ "query": null,
768
+ "request": null,
769
+ "response": "role-defaults-response",
770
+ "errors": [
771
+ "unauthorized",
772
+ "token_expired",
773
+ "token_revoked"
774
+ ],
775
+ "transport": "http",
776
+ "notes": "Every kind of access is present; an empty list means nobody holds it, not even the most senior role. A default applies where a robot's published `fleetless.yaml` names no role for the thing asked about. A new organization starts with `observe` for `read` and `assets`, and `operate` for `invoke`, `publish` and `job_history`."
777
+ },
778
+ {
779
+ "method": "PUT",
780
+ "path": "/api/org/roles/defaults",
781
+ "section": "org",
782
+ "summary": "Changes the organization's default roles for the named kinds of access.",
783
+ "audience": "developer",
784
+ "auth": "developer",
785
+ "rateLimited": false,
786
+ "ownerTier": false,
787
+ "status": 200,
788
+ "params": [],
789
+ "query": null,
790
+ "request": "put-role-defaults-request",
791
+ "response": "role-defaults-response",
792
+ "errors": [
793
+ "unauthorized",
794
+ "token_expired",
795
+ "token_revoked",
796
+ "validation_error"
797
+ ],
798
+ "transport": "http",
799
+ "notes": "Despite the verb, kinds that are not named keep their default; `null` or `[]` sets a kind to nobody. A key that names no role is accepted and warns, and grants nothing. Answers all the defaults as they stand afterwards. A default that narrows who holds a kind re-checks the live subscriptions it affects."
800
+ },
648
801
  {
649
802
  "method": "GET",
650
803
  "path": "/api/audit",
@@ -715,7 +868,7 @@
715
868
  "quota_exceeded"
716
869
  ],
717
870
  "transport": "http",
718
- "notes": "Every robot id is checked before anything is created, so a bad one never leaves a robotless app to clean up. The identifier `mcp` is reserved by the central MCP server and refused as a `validation_error`. An app belongs to the org and to nothing inside it: the group an app used to be created in, and the `409 target_state_conflict` that refused the Org Admins one, are both gone with the group model."
871
+ "notes": "Every robot id is checked before anything is created, so a bad one never leaves a robotless app to clean up. The identifier `mcp` is reserved by the central MCP server and refused as a `validation_error`. An app belongs to the org and to nothing inside it: the group an app used to be created in, and the `409 target_state_conflict` that refused the Org Admins one, are both gone with the group model. A new app has no default role: `default_role` is `null` until `PUT /api/apps/:id/access` sets one."
719
872
  },
720
873
  {
721
874
  "method": "GET",
@@ -766,13 +919,13 @@
766
919
  "not_found"
767
920
  ],
768
921
  "transport": "http",
769
- "notes": "An app belonging to another org reads exactly like one that does not exist — `404`, never a `403`."
922
+ "notes": "An app belonging to another org reads exactly like one that does not exist — `404`, never a `403`. `default_role` is the key as stored, or `null` when the app has none; a key that names no role is shown as it is, and `GET /api/apps/:id/access` warns about it."
770
923
  },
771
924
  {
772
925
  "method": "PATCH",
773
926
  "path": "/api/apps/:id",
774
927
  "section": "apps",
775
- "summary": "Changes an app's name, its attached robots or its default role.",
928
+ "summary": "Changes an app's name or its attached robots.",
776
929
  "audience": "developer",
777
930
  "auth": "developer",
778
931
  "rateLimited": false,
@@ -796,7 +949,7 @@
796
949
  "not_found"
797
950
  ],
798
951
  "transport": "http",
799
- "notes": "A `default_role_id` naming a role of another app is refused: it is the one cross-app authorization check this shape can carry. Changing the robot set closes every live subscription the app's users hold, since a grant may no longer name a reachable robot."
952
+ "notes": "The default role is not set here: `PUT /api/apps/:id/access` replaces it together with the locks, and a body that names a default role, by id or by key, is `400 validation_error`. Changing the robot set closes every live subscription the app's users hold, since a robot they were using may no longer be reachable."
800
953
  },
801
954
  {
802
955
  "method": "GET",
@@ -854,13 +1007,13 @@
854
1007
  "not_found"
855
1008
  ],
856
1009
  "transport": "http",
857
- "notes": "An app outside the caller's org answers `404`, as an unknown id does. A full cascade — its users, roles, server keys, invitations, OIDC provider configuration and mail templates all go, recorded once as `app.deleted` carrying an `appDeletionSummary`. Its robots are untouched: they belong to the org, not to the app. \n\n**No `force` parameter** — see `GET /api/apps/:id/deletion-preview`."
1010
+ "notes": "An app outside the caller's org answers `404`, as an unknown id does. A full cascade — its users, server keys, invitations, OIDC provider configuration and mail templates all go, recorded once as `app.deleted` carrying an `appDeletionSummary`. Its robots and the organization's roles are untouched: they belong to the org, not to the app. \n\n**No `force` parameter** — see `GET /api/apps/:id/deletion-preview`."
858
1011
  },
859
1012
  {
860
1013
  "method": "POST",
861
- "path": "/api/apps/:id/roles",
1014
+ "path": "/api/apps/:id/server-keys",
862
1015
  "section": "apps",
863
- "summary": "Creates a custom role on the app.",
1016
+ "summary": "Mints a server key for the app and returns the raw secret once.",
864
1017
  "audience": "developer",
865
1018
  "auth": "developer",
866
1019
  "rateLimited": false,
@@ -874,7 +1027,7 @@
874
1027
  ],
875
1028
  "query": null,
876
1029
  "request": null,
877
- "response": "role",
1030
+ "response": "create-server-key-response",
878
1031
  "errors": [
879
1032
  "unauthorized",
880
1033
  "token_expired",
@@ -884,13 +1037,13 @@
884
1037
  "validation_error"
885
1038
  ],
886
1039
  "transport": "http",
887
- "notes": "The body is `{ \"name\": string }` — non-empty, trimmed, at most 60 characters as on `role.name` — and is deliberately not a contract shape: contracts define the `role` this answers with, not this one trivial request. **The answer is a bare `role`, not an envelope**, unlike the listing beside it."
1040
+ "notes": "A server key carries full app rights and outlives its creator's removal. The body is `{ \"name\": string }`, too trivial to be a contract shape. `key` is the only moment the raw secret exists outside the caller's hands — it is never in a listing, never in an audit event, and cannot be read back."
888
1041
  },
889
1042
  {
890
1043
  "method": "GET",
891
- "path": "/api/apps/:id/roles",
1044
+ "path": "/api/apps/:id/server-keys",
892
1045
  "section": "apps",
893
- "summary": "Lists the app's roles, builtin and custom.",
1046
+ "summary": "Lists the app's server keys as metadata, never the secrets.",
894
1047
  "audience": "developer",
895
1048
  "auth": "developer",
896
1049
  "rateLimited": false,
@@ -904,7 +1057,7 @@
904
1057
  ],
905
1058
  "query": null,
906
1059
  "request": null,
907
- "response": "role-list-response",
1060
+ "response": "server-key-list-response",
908
1061
  "errors": [
909
1062
  "unauthorized",
910
1063
  "token_expired",
@@ -913,79 +1066,13 @@
913
1066
  "not_found"
914
1067
  ],
915
1068
  "transport": "http",
916
- "notes": "Answers `{ \"roles\": [role, …] }`, builtin roles included — a role a developer never created is still one a user can hold."
917
- },
918
- {
919
- "method": "PUT",
920
- "path": "/api/apps/:id/roles/:roleId/permissions",
921
- "section": "apps",
922
- "summary": "Replaces a role's grants and capabilities in one write.",
923
- "audience": "developer",
924
- "auth": "developer",
925
- "rateLimited": false,
926
- "ownerTier": false,
927
- "status": 200,
928
- "params": [
929
- {
930
- "name": "id",
931
- "description": "The app's uuid, as returned by `POST /api/apps` or listed by `GET /api/apps`."
932
- },
933
- {
934
- "name": "roleId",
935
- "description": "The role's uuid, from `GET /api/apps/:id/roles`; a role of another app answers `404`."
936
- }
937
- ],
938
- "query": null,
939
- "request": "role-permissions",
940
- "response": "role-permissions",
941
- "errors": [
942
- "unauthorized",
943
- "token_expired",
944
- "token_revoked",
945
- "invalid_uuid",
946
- "not_found",
947
- "validation_error"
948
- ],
949
- "transport": "http",
950
- "notes": "`role_id` in the body must name the role in the path, compared case-insensitively — a uuid is a value, not a string, and a client that uppercases them consistently must not be refused for repeating what the path says. A grant naming a robot the app does not have is refused rather than stored: a permission for something the role cannot reach reads as authoritative to whoever writes the next consumer. Every user holding this role has their live subscriptions re-authorized."
951
- },
952
- {
953
- "method": "GET",
954
- "path": "/api/apps/:id/roles/:roleId/permissions",
955
- "section": "apps",
956
- "summary": "Reads a role's grants and capabilities.",
957
- "audience": "developer",
958
- "auth": "developer",
959
- "rateLimited": false,
960
- "ownerTier": false,
961
- "status": 200,
962
- "params": [
963
- {
964
- "name": "id",
965
- "description": "The app's uuid, as returned by `POST /api/apps` or listed by `GET /api/apps`."
966
- },
967
- {
968
- "name": "roleId",
969
- "description": "The role's uuid, from `GET /api/apps/:id/roles`; a role of another app answers `404`."
970
- }
971
- ],
972
- "query": null,
973
- "request": null,
974
- "response": "role-permissions",
975
- "errors": [
976
- "unauthorized",
977
- "token_expired",
978
- "token_revoked",
979
- "invalid_uuid",
980
- "not_found"
981
- ],
982
- "transport": "http"
1069
+ "notes": "Answers `{ \"server_keys\": [serverKey, …] }`. `serverKey` names the five fields it carries rather than spreading the stored row — that is what keeps this listing from becoming a second place a credential leaves the cloud."
983
1070
  },
984
1071
  {
985
- "method": "GET",
986
- "path": "/api/apps/:id/roles/:roleId/mcp-tools",
1072
+ "method": "POST",
1073
+ "path": "/api/apps/:id/server-keys/:keyId/rotate",
987
1074
  "section": "apps",
988
- "summary": "Previews the robot datasheets an MCP caller holding this role would be offered.",
1075
+ "summary": "Replaces a server key's secret in place and returns the new one once.",
989
1076
  "audience": "developer",
990
1077
  "auth": "developer",
991
1078
  "rateLimited": false,
@@ -997,13 +1084,13 @@
997
1084
  "description": "The app's uuid, as returned by `POST /api/apps` or listed by `GET /api/apps`."
998
1085
  },
999
1086
  {
1000
- "name": "roleId",
1001
- "description": "The role's uuid, from `GET /api/apps/:id/roles`; a role of another app answers `404`."
1087
+ "name": "keyId",
1088
+ "description": "The server key's uuid, from `GET /api/apps/:id/server-keys`; a key of another app answers `404`."
1002
1089
  }
1003
1090
  ],
1004
1091
  "query": null,
1005
1092
  "request": null,
1006
- "response": "mcp-role-preview-response",
1093
+ "response": "create-server-key-response",
1007
1094
  "errors": [
1008
1095
  "unauthorized",
1009
1096
  "token_expired",
@@ -1012,48 +1099,13 @@
1012
1099
  "not_found"
1013
1100
  ],
1014
1101
  "transport": "http",
1015
- "notes": "Built by the same builder the MCP server's own `robots.describe` uses, so the two cannot drift. It answers what the role *would* be offered and consults nothing about any user's actual MCP entitlement. A robot the role grants nothing on still appears, with an empty `exposures` — dropping it would read as \"not attached\", which is a different fact."
1016
- },
1017
- {
1018
- "method": "PATCH",
1019
- "path": "/api/apps/:id/roles/:roleId",
1020
- "section": "apps",
1021
- "summary": "Renames a role; its users keep it.",
1022
- "audience": "developer",
1023
- "auth": "developer",
1024
- "rateLimited": false,
1025
- "ownerTier": false,
1026
- "status": 200,
1027
- "params": [
1028
- {
1029
- "name": "id",
1030
- "description": "The app's uuid, as returned by `POST /api/apps` or listed by `GET /api/apps`."
1031
- },
1032
- {
1033
- "name": "roleId",
1034
- "description": "The role's uuid, from `GET /api/apps/:id/roles`; a role of another app answers `404`."
1035
- }
1036
- ],
1037
- "query": null,
1038
- "request": "role-rename-request",
1039
- "response": "role",
1040
- "errors": [
1041
- "unauthorized",
1042
- "token_expired",
1043
- "token_revoked",
1044
- "invalid_uuid",
1045
- "not_found",
1046
- "validation_error",
1047
- "role_name_taken"
1048
- ],
1049
- "transport": "http",
1050
- "notes": "Names are unique per app, compared exactly as stored after trimming. Built-in roles can be renamed."
1102
+ "notes": "The old secret is refused from this call on, and any `/realtime` socket that authenticated with it is closed — rotation is what a developer reaches for when a key has leaked, and the holder of that socket is exactly who they are rotating against."
1051
1103
  },
1052
1104
  {
1053
1105
  "method": "DELETE",
1054
- "path": "/api/apps/:id/roles/:roleId",
1106
+ "path": "/api/apps/:id/server-keys/:keyId",
1055
1107
  "section": "apps",
1056
- "summary": "Deletes a role, moving its users, pending invitations and default-role status to another role.",
1108
+ "summary": "Revokes a server key and closes every socket holding it.",
1057
1109
  "audience": "developer",
1058
1110
  "auth": "developer",
1059
1111
  "rateLimited": false,
@@ -1065,61 +1117,28 @@
1065
1117
  "description": "The app's uuid, as returned by `POST /api/apps` or listed by `GET /api/apps`."
1066
1118
  },
1067
1119
  {
1068
- "name": "roleId",
1069
- "description": "The role's uuid, from `GET /api/apps/:id/roles`; a role of another app answers `404`."
1070
- }
1071
- ],
1072
- "query": "role-delete-query",
1073
- "request": null,
1074
- "response": null,
1075
- "errors": [
1076
- "unauthorized",
1077
- "token_expired",
1078
- "token_revoked",
1079
- "invalid_uuid",
1080
- "not_found",
1081
- "validation_error",
1082
- "role_in_use",
1083
- "last_role"
1084
- ],
1085
- "transport": "http",
1086
- "notes": "Without `move_to`, a role that app users or pending invitations hold, or that is the app's default, answers `409 role_in_use` with `{ users, invitations, is_default }`. With `move_to` — another role of the same app, else `400 validation_error` — one transaction moves `app_users.role_id`, pending invitations and `default_role_id`, then deletes the role and its permissions. The app's only role answers `409 last_role`. Built-in roles can be deleted like any other."
1087
- },
1088
- {
1089
- "method": "POST",
1090
- "path": "/api/apps/:id/server-keys",
1091
- "section": "apps",
1092
- "summary": "Mints a server key for the app and returns the raw secret once.",
1093
- "audience": "developer",
1094
- "auth": "developer",
1095
- "rateLimited": false,
1096
- "ownerTier": false,
1097
- "status": 201,
1098
- "params": [
1099
- {
1100
- "name": "id",
1101
- "description": "The app's uuid, as returned by `POST /api/apps` or listed by `GET /api/apps`."
1120
+ "name": "keyId",
1121
+ "description": "The server key's uuid, from `GET /api/apps/:id/server-keys`; a key of another app answers `404`."
1102
1122
  }
1103
1123
  ],
1104
1124
  "query": null,
1105
1125
  "request": null,
1106
- "response": "create-server-key-response",
1126
+ "response": null,
1107
1127
  "errors": [
1108
1128
  "unauthorized",
1109
1129
  "token_expired",
1110
1130
  "token_revoked",
1111
1131
  "invalid_uuid",
1112
- "not_found",
1113
- "validation_error"
1132
+ "not_found"
1114
1133
  ],
1115
1134
  "transport": "http",
1116
- "notes": "A server key carries full app rights and outlives its creator's removal. The body is `{ \"name\": string }`, the same trivial shape role creation takes. `key` is the only moment the raw secret exists outside the caller's hands — it is never in a listing, never in an audit event, and cannot be read back."
1135
+ "notes": "The key stops working at once. Minting, rotating and revoking all decide who may speak for the whole app."
1117
1136
  },
1118
1137
  {
1119
1138
  "method": "GET",
1120
- "path": "/api/apps/:id/server-keys",
1139
+ "path": "/api/apps/:id/access",
1121
1140
  "section": "apps",
1122
- "summary": "Lists the app's server keys as metadata, never the secrets.",
1141
+ "summary": "Reads what an app locks and which role its users get by default, with what is out of step in it.",
1123
1142
  "audience": "developer",
1124
1143
  "auth": "developer",
1125
1144
  "rateLimited": false,
@@ -1133,7 +1152,7 @@
1133
1152
  ],
1134
1153
  "query": null,
1135
1154
  "request": null,
1136
- "response": "server-key-list-response",
1155
+ "response": "app-access-response",
1137
1156
  "errors": [
1138
1157
  "unauthorized",
1139
1158
  "token_expired",
@@ -1142,13 +1161,13 @@
1142
1161
  "not_found"
1143
1162
  ],
1144
1163
  "transport": "http",
1145
- "notes": "Answers `{ \"server_keys\": [serverKey, …] }`. `serverKey` names the five fields it carries rather than spreading the stored row — that is what keeps this listing from becoming a second place a credential leaves the cloud."
1164
+ "notes": "An app can only lock, never extend: roles decide who may use what, and a lock takes capabilities away from every user and server key of the app, whatever their role. `warnings` lists what the access names that does not exist as written, such as a default role that is no role or a lock on a slug the robot does not have. None of it is an error. `revision` identifies the access as it stands: send it back with the next `PUT` and a write composed from a stale read is refused."
1146
1165
  },
1147
1166
  {
1148
- "method": "POST",
1149
- "path": "/api/apps/:id/server-keys/:keyId/rotate",
1167
+ "method": "PUT",
1168
+ "path": "/api/apps/:id/access",
1150
1169
  "section": "apps",
1151
- "summary": "Replaces a server key's secret in place and returns the new one once.",
1170
+ "summary": "Replaces what an app locks and which role its users get by default.",
1152
1171
  "audience": "developer",
1153
1172
  "auth": "developer",
1154
1173
  "rateLimited": false,
@@ -1158,57 +1177,52 @@
1158
1177
  {
1159
1178
  "name": "id",
1160
1179
  "description": "The app's uuid, as returned by `POST /api/apps` or listed by `GET /api/apps`."
1161
- },
1162
- {
1163
- "name": "keyId",
1164
- "description": "The server key's uuid, from `GET /api/apps/:id/server-keys`; a key of another app answers `404`."
1165
1180
  }
1166
1181
  ],
1167
1182
  "query": null,
1168
- "request": null,
1169
- "response": "create-server-key-response",
1183
+ "request": "app-access",
1184
+ "response": "app-access-response",
1170
1185
  "errors": [
1171
1186
  "unauthorized",
1172
1187
  "token_expired",
1173
1188
  "token_revoked",
1174
1189
  "invalid_uuid",
1175
- "not_found"
1190
+ "validation_error",
1191
+ "not_found",
1192
+ "target_state_conflict"
1176
1193
  ],
1177
1194
  "transport": "http",
1178
- "notes": "The old secret is refused from this call on, and any `/realtime` socket that authenticated with it is closed — rotation is what a developer reaches for when a key has leaked, and the holder of that socket is exactly who they are rotating against."
1195
+ "notes": "A full replacement: the body is exactly what the app has afterwards, so a lock that is not in it is lifted. A default role that is no role, a lock on a slug the robot does not have and a lock on a robot the app does not attach are accepted and come back as `warnings`. A change that can narrow rights re-checks the live subscriptions of the app's users at once. \n\n**Send the `revision` you read.** The access can change under a caller without a write of its own: a slug rename adds the new name to every lock that lists the old one, and detaching a robot drops its lock. A body composed before such a change would lift the lock it added, so a `revision` that is no longer the stored one is `409 target_state_conflict` naming `revision` (rule `stale`), and nothing is written, audited or announced; read the access again and compose the body anew. Left out, the body replaces whatever is stored, as before: the last writer wins. A `revision` that is not a revision is `400 validation_error`."
1179
1196
  },
1180
1197
  {
1181
- "method": "DELETE",
1182
- "path": "/api/apps/:id/server-keys/:keyId",
1198
+ "method": "GET",
1199
+ "path": "/api/apps/:id/effective-rights",
1183
1200
  "section": "apps",
1184
- "summary": "Revokes a server key and closes every socket holding it.",
1201
+ "summary": "Shows what one role, or one app user, may use on each robot the app attaches.",
1185
1202
  "audience": "developer",
1186
1203
  "auth": "developer",
1187
1204
  "rateLimited": false,
1188
1205
  "ownerTier": false,
1189
- "status": 204,
1206
+ "status": 200,
1190
1207
  "params": [
1191
1208
  {
1192
1209
  "name": "id",
1193
1210
  "description": "The app's uuid, as returned by `POST /api/apps` or listed by `GET /api/apps`."
1194
- },
1195
- {
1196
- "name": "keyId",
1197
- "description": "The server key's uuid, from `GET /api/apps/:id/server-keys`; a key of another app answers `404`."
1198
1211
  }
1199
1212
  ],
1200
- "query": null,
1213
+ "query": "effective-rights-query",
1201
1214
  "request": null,
1202
- "response": null,
1215
+ "response": "effective-rights-response",
1203
1216
  "errors": [
1204
1217
  "unauthorized",
1205
1218
  "token_expired",
1206
1219
  "token_revoked",
1207
1220
  "invalid_uuid",
1221
+ "validation_error",
1208
1222
  "not_found"
1209
1223
  ],
1210
1224
  "transport": "http",
1211
- "notes": "The key stops working at once. Minting, rotating and revoking all decide who may speak for the whole app."
1225
+ "notes": "Name exactly one of `role` and `user`; both or neither is `400 validation_error`. Per attached robot, every capability is listed with whether it is granted, the requirement, where that came from (the entry, rule n of `access.rules`, or the organization default), the inherited role that satisfied it and whether the app locks it; the datasheet is the one an MCP session of that role would get. Only the published configuration counts: a robot with nothing published has no exposures, and its `assets` and `job_history` follow the organization defaults. `reachable` says whether a session of the role reaches the robot at all; a robot it does not reach is still listed, with every capability that explains why. A role that is no role is not an error; it answers `role_known: false` with nothing granted, and so does a user who is not `active`. A user of another app answers `404`."
1212
1226
  },
1213
1227
  {
1214
1228
  "method": "GET",
@@ -1237,7 +1251,7 @@
1237
1251
  "not_found"
1238
1252
  ],
1239
1253
  "transport": "http",
1240
- "notes": "Answers `{ \"users\": [appUser, …] }`. **A different identity space from `GET /api/org/users`**, and nothing joins the two: an app user belongs to exactly one app, their address is unique per app rather than globally, and the same address may exist as unrelated accounts in several apps of one org. No password hash, no token and no provider secret appears here — `appUser` names the fields it carries rather than spreading the stored row."
1254
+ "notes": "Answers `{ \"users\": [appUser, …] }`. **A different identity space from `GET /api/org/users`**, and nothing joins the two: an app user belongs to exactly one app, their address is unique per app rather than globally, and the same address may exist as unrelated accounts in several apps of one org. No password hash, no token and no provider secret appears here — `appUser` names the fields it carries rather than spreading the stored row. An account that holds no role key lists with `role: null`; it reaches nothing until `PATCH /api/apps/:id/users/:userId` gives it one."
1241
1255
  },
1242
1256
  {
1243
1257
  "method": "POST",
@@ -1270,7 +1284,7 @@
1270
1284
  "quota_exceeded"
1271
1285
  ],
1272
1286
  "transport": "http",
1273
- "notes": "The developer-authenticated door into the app's user table, and the one place `409 email_taken` is an honest answer about an app user: the caller is authenticated into this app already, so telling them the address is taken discloses nothing they could not read from the listing beside it. `POST /api/client/register` answers `202` to the same fact, because there the caller is a stranger. `404 not_found` is the app, or a `role_id` that is not a role of it — a role of another app is refused rather than stored, since a user holding one would carry rights nothing in this app can resolve. **The password policy answers `400 validation_error`**, not a code of its own: the twelve-character minimum is the `password` field's schema rule, and every route that takes a password refuses a short one exactly the way it refuses any other malformed field. An account created here is `active` immediately: a developer entering somebody by hand has made the decision the verification mail automates, and its address counts as proven. `409 target_state_conflict` names `default_role_id` when `role_id` is absent and the app has no default role, or its default names a role that no longer resolves — a user with no role holds rights nothing in this app can read, so nothing is created. \n\n**`409 quota_exceeded` when the org holds as many app users as `max_end_users` allows**, counted across every app of the org — the same number `GET /api/org/quotas` reports as `usage.max_end_users`, since the same address in two apps is two accounts. `details` carries `{ quota, limit }`, as every count quota's refusal does. The check is at **creation** only: an existing user signs in, is patched and is deleted at the quota exactly as under it, because a protection limit that also froze the accounts already made would be an outage rather than a limit."
1287
+ "notes": "The developer-authenticated door into the app's user table, and the one place `409 email_taken` is an honest answer about an app user: the caller is authenticated into this app already, so telling them the address is taken discloses nothing they could not read from the listing beside it. `POST /api/client/register` answers `202` to the same fact, because there the caller is a stranger. `404 not_found` is the app. The `role` is a key of the organization's roles: a malformed one is `400 validation_error`, and a well-formed one is stored as given even when it names no role, which grants nothing and shows up under `dangling` of `GET /api/org/roles`. **The password policy answers `400 validation_error`**, not a code of its own: the twelve-character minimum is the `password` field's schema rule, and every route that takes a password refuses a short one exactly the way it refuses any other malformed field. An account created here is `active` immediately: a developer entering somebody by hand has made the decision the verification mail automates, and its address counts as proven. `409 target_state_conflict` names `default_role` with rule `not_set` when `role` is absent and the app has no default role — there would be no role to give the user, so nothing is created. \n\n**`409 quota_exceeded` when the org holds as many app users as `max_end_users` allows**, counted across every app of the org — the same number `GET /api/org/quotas` reports as `usage.max_end_users`, since the same address in two apps is two accounts. `details` carries `{ quota, limit }`, as every count quota's refusal does. The check is at **creation** only: an existing user signs in, is patched and is deleted at the quota exactly as under it, because a protection limit that also froze the accounts already made would be an outage rather than a limit."
1274
1288
  },
1275
1289
  {
1276
1290
  "method": "GET",
@@ -1338,7 +1352,7 @@
1338
1352
  "target_state_conflict"
1339
1353
  ],
1340
1354
  "transport": "http",
1341
- "notes": "The address is immutable: it is half of what identifies the account within the app, and a rewrite would silently move every token and invitation addressed to the old one. Setting `status` to `blocked` ends every session the user holds and closes their live `/realtime` subscriptions — blocking somebody who keeps a working socket is not blocking them. Moving them back to `active` mints nothing; they log in again. \n\n**`active` is a way out of `blocked` and out of nothing else.** An account still `pending_verification` answers `409 target_state_conflict` naming `status` with rule `unverified`: activating it would let somebody who typed an address they do not own log in without ever spending the mailed token. Unblocking restores the status the account had — `active` for one whose address was proven, `pending_verification` for one blocked before it ever verified. A write that names the status the account already holds changes nothing and mints no event, so it does not end the sessions a re-sent form would otherwise have killed. A `role_id` naming a role of another app is `404 not_found`, the same refusal creation makes."
1355
+ "notes": "The address is immutable: it is half of what identifies the account within the app, and a rewrite would silently move every token and invitation addressed to the old one. Setting `status` to `blocked` ends every session the user holds and closes their live `/realtime` subscriptions — blocking somebody who keeps a working socket is not blocking them. Moving them back to `active` mints nothing; they log in again. \n\n**`active` is a way out of `blocked` and out of nothing else.** An account still `pending_verification` answers `409 target_state_conflict` naming `status` with rule `unverified`: activating it would let somebody who typed an address they do not own log in without ever spending the mailed token. Unblocking restores the status the account had — `active` for one whose address was proven, `pending_verification` for one blocked before it ever verified. A write that names the status the account already holds changes nothing and mints no event, so it does not end the sessions a re-sent form would otherwise have killed. A `role` is stored as given, as creation does: a malformed key is `400 validation_error`, one that names no role grants nothing, and the same key the user already holds changes nothing. A changed role is applied to the user's open subscriptions at once, and those the new role no longer allows end."
1342
1356
  },
1343
1357
  {
1344
1358
  "method": "DELETE",
@@ -1538,7 +1552,7 @@
1538
1552
  "not_found"
1539
1553
  ],
1540
1554
  "transport": "http",
1541
- "notes": "Answers `{ \"invitations\": [pendingAppInvitation, …] }` — pending only, since an accepted invitation is history rather than something to revoke. **No `accept_url`**, the rule the team listing already keeps: this list exists so a developer can see what is outstanding and withdraw it, and neither needs the token, while a list that carried it would turn every screenshot and browser-history entry of that page into a live credential for somebody else's account. `mail` is omitted too — it described what happened at creation time, and re-serving it invites a reader to take it as current."
1555
+ "notes": "Answers `{ \"invitations\": [pendingAppInvitation, …] }` — pending only, since an accepted invitation is history rather than something to revoke. **No `accept_url`**, the rule the team listing already keeps: this list exists so a developer can see what is outstanding and withdraw it, and neither needs the token, while a list that carried it would turn every screenshot and browser-history entry of that page into a live credential for somebody else's account. `mail` is omitted too — it described what happened at creation time, and re-serving it invites a reader to take it as current. An invitation that holds no role key and whose app has no default role lists with `role: null`; accepting or reissuing it is `409 target_state_conflict` naming `default_role`."
1542
1556
  },
1543
1557
  {
1544
1558
  "method": "POST",
@@ -1571,7 +1585,7 @@
1571
1585
  "rate_limited"
1572
1586
  ],
1573
1587
  "transport": "http",
1574
- "notes": "**An app user, not a team member.** `POST /api/org/invitations` is the other space and leads to the console; this link leads into the developer's own app. The role is resolved and stored now, so a later change to `default_role_id` does not re-aim a link already sent. An invitation **always bypasses `allowed_domains`**. \n\nThe answer carries `accept_url`: the app's `invite_url` with the token in it, or the Fleetless-hosted invitation page when the app has configured none — so mailing it is never refused for a missing URL. `409 target_state_conflict` names `default_role_id` when `role_id` is absent and the app has no default role, or its default no longer resolves: an invitation that names no role has nothing to hand its acceptor, so it is refused here rather than at the acceptance a week later. `409 email_taken` is an address the app already has as a user; `404 not_found` is the app or a `role_id` that is not one of its roles. \n\nCreating shares the reissue route's ceiling of **five invitation mails a minute per app**, answering `429 rate_limited` with `retry_after_ms`: re-creating an invitation for one address replaces it and mails again, so a limit that bound only reissue would be a limit on the wrong door."
1588
+ "notes": "**An app user, not a team member.** `POST /api/org/invitations` is the other space and leads to the console; this link leads into the developer's own app. The role is resolved and stored now, so a later change to `default_role` does not re-aim a link already sent. An invitation **always bypasses `allowed_domains`**. \n\nThe answer carries `accept_url`: the app's `invite_url` with the token in it, or the Fleetless-hosted invitation page when the app has configured none — so mailing it is never refused for a missing URL. `409 target_state_conflict` names `default_role` with rule `not_set` when `role` is absent and the app has no default role: an invitation that names no role has nothing to hand its acceptor, so it is refused here rather than at the acceptance a week later. A `role` that names no role is accepted and grants nothing; a malformed key is `400 validation_error`. `409 email_taken` is an address the app already has as a user; `404 not_found` is the app. \n\nCreating shares the reissue route's ceiling of **five invitation mails a minute per app**, answering `429 rate_limited` with `retry_after_ms`: re-creating an invitation for one address replaces it and mails again, so a limit that bound only reissue would be a limit on the wrong door."
1575
1589
  },
1576
1590
  {
1577
1591
  "method": "POST",
@@ -1602,10 +1616,11 @@
1602
1616
  "token_revoked",
1603
1617
  "invalid_uuid",
1604
1618
  "not_found",
1619
+ "target_state_conflict",
1605
1620
  "rate_limited"
1606
1621
  ],
1607
1622
  "transport": "http",
1608
- "notes": "The old link stops resolving the instant this returns: the row is found by token hash and the previous hash is gone. Two live links to one invitation would reopen the door the listing's missing `accept_url` closes. \n\n**The answer carries a new `id`.** The old row is revoked and a fresh one takes its place, so a caller holding the previous `id` gets `404` from its next revoke or reissue: re-read the listing after this call rather than keeping the id you sent. The seven days start again. \n\nLimited server-side to **five reissues a minute per app** — shared with `POST /api/apps/:id/invitations`, since both mint a link and mail it — answering `429 rate_limited` with `retry_after_ms`. A disabled button is a hint, this is the limit. An invitation that has already been accepted is not pending and answers `404`."
1623
+ "notes": "The old link stops resolving the instant this returns: the row is found by token hash and the previous hash is gone. Two live links to one invitation would reopen the door the listing's missing `accept_url` closes. \n\n**The answer carries a new `id`.** The old row is revoked and a fresh one takes its place, so a caller holding the previous `id` gets `404` from its next revoke or reissue: re-read the listing after this call rather than keeping the id you sent. The new invitation holds the same role, and the seven days start again. An invitation that holds no role key and whose app has no default role is refused with `409 target_state_conflict` naming `default_role` (rule `not_set`) before the old link is revoked: set the default role, or revoke it and invite again. \n\nLimited server-side to **five reissues a minute per app** — shared with `POST /api/apps/:id/invitations`, since both mint a link and mail it — answering `429 rate_limited` with `retry_after_ms`. A disabled button is a hint, this is the limit. An invitation that has already been accepted is not pending and answers `404`."
1609
1624
  },
1610
1625
  {
1611
1626
  "method": "DELETE",
@@ -2012,7 +2027,7 @@
2012
2027
  "unsupported_media_type"
2013
2028
  ],
2014
2029
  "transport": "http",
2015
- "notes": "The body is the **raw image**, not JSON, so it has no request schema: `Content-Type` is one of `HOSTED_LOGO_TYPES` (`image/png`, `image/svg+xml`) and anything else is `415 unsupported_media_type`. At most `HOSTED_LOGO_MAX_BYTES` (100 KB); a larger body, or one that is not the image its type names, is `400 validation_error`. A new logo replaces the stored one. The hosted pages load it from `hosted_logo_url` as an image only, and the cloud serves an SVG sandboxed, so a script inside one never runs."
2030
+ "notes": "The body is the **raw image**, not JSON, so it has no request schema: `Content-Type` is one of `HOSTED_LOGO_TYPES` (`image/png`, `image/svg+xml`) and anything else is `415 unsupported_media_type`. At most `HOSTED_LOGO_MAX_BYTES` (512 KB); a larger body, or one that is not the image its type names, is `400 validation_error`. A new logo replaces the stored one. The hosted pages load it from `hosted_logo_url` as an image only, and the cloud serves an SVG sandboxed, so a script inside one never runs."
2016
2031
  },
2017
2032
  {
2018
2033
  "method": "DELETE",
@@ -4075,24 +4090,6 @@
4075
4090
  "transport": "http",
4076
4091
  "notes": "HTML: the next page on success, the same page with the problem named on a refusal. Spends the token as `POST /api/client/verify-email` does; the two-factor setup follows when the app requires it, then the done page."
4077
4092
  },
4078
- {
4079
- "method": "GET",
4080
- "path": "/mcp/welcome",
4081
- "section": "mcp",
4082
- "summary": "Serves the page that tells a person which URL to paste into their MCP client.",
4083
- "audience": "internal",
4084
- "auth": "none",
4085
- "rateLimited": false,
4086
- "ownerTier": false,
4087
- "status": 200,
4088
- "params": [],
4089
- "query": null,
4090
- "request": null,
4091
- "response": null,
4092
- "errors": [],
4093
- "transport": "http",
4094
- "notes": "HTML, one fixed document rendered once at startup — its inputs are process configuration, not request state. Cached for five minutes rather than a day, because the URLs it names can change with a deployment. Its content security policy admits the page's own inline style and script by SHA-256 rather than by `unsafe-inline`, and forbids every external fetch outright. A configured friendly URL that is not a usable absolute http(s) URL is ignored rather than rendered: a typo in a deployment variable must not put a broken URL in front of every end user."
4095
- },
4096
4093
  {
4097
4094
  "method": "POST",
4098
4095
  "path": "/mcp",
@@ -4139,7 +4136,7 @@
4139
4136
  "forbidden"
4140
4137
  ],
4141
4138
  "transport": "http",
4142
- "notes": "JSON-RPC over MCP's Streamable HTTP, so neither the request nor the response is a shape contracts describes — exactly as `POST /mcp` is, and stateless for the same reason: a fresh transport per request, no session id, nothing surviving the call. **App users only.** The tools are this app's robots filtered by the caller's role, built by the same builder `GET /api/apps/:id/roles/:roleId/mcp-tools` previews, so the console's preview and the live catalog cannot drift. The console tool family belongs to the central endpoint and is offered here to nobody. \n\n**The bearer is verified inside the handler**, not by a route guard, for the two reasons the central endpoint gives — the identity comes from the token and the path names none of it, and the refusal has to carry a `WWW-Authenticate` challenge a guard shared with the REST surface does not send. The challenge names **this app's** protected-resource document (RFC 9728's `resource_metadata`), which is how an MCP client discovers the right authorization server from a bare `401`; pointing it at the central document would send every app's client to the wrong sign-in. \n\n**`404 not_found` covers an identifier no app carries AND an app whose `appAuthConfig.mcp_enabled` is off — one answer for both, the same one the two metadata documents and `register` give.** A separate `403 mcp_disabled` here would hand an anonymous caller a three-way oracle (`404` = no such app, `403` = the app exists with MCP off, `401` = the app exists and is live), which is exactly the distinction discovery collapses; there is no point collapsing it in one place and publishing it in another. The switch is re-read on every request rather than cached off the token, so a developer turning it off ends the sessions already running, and it is decided **before the bearer is looked at** — the reverse of the usual order, and deliberate: it is a fact about the path, an app identifier is public, and an absent server that answered `401` would send a client hunting a credential no credential can satisfy. `401 unauthorized` is a missing, unverifiable or expired bearer, an `aud` that is not this endpoint, or **a consent this person has since withdrawn from the client the token was minted for**: the access token names its client, and the standing consent is re-read here on every request exactly as the account is, so `DELETE /api/client/mcp/grants/:clientId` and its developer twin bite at the next call rather than when the token expires. `403 forbidden` is a token that verifies and is not this app's user: another app's session, a Fleetless user's central `mcp_session`, an account that is `blocked` or still `pending_verification`, or a foreign `Origin`."
4139
+ "notes": "JSON-RPC over MCP's Streamable HTTP, so neither the request nor the response is a shape contracts describes — exactly as `POST /mcp` is, and stateless for the same reason: a fresh transport per request, no session id, nothing surviving the call. **App users only.** The tools are this app's robots filtered by the caller's role, built by the same builder `GET /api/robots/:id/datasheet` answers, so the datasheet and the live catalog cannot drift. The console tool family belongs to the central endpoint and is offered here to nobody. \n\n**The bearer is verified inside the handler**, not by a route guard, for the two reasons the central endpoint gives — the identity comes from the token and the path names none of it, and the refusal has to carry a `WWW-Authenticate` challenge a guard shared with the REST surface does not send. The challenge names **this app's** protected-resource document (RFC 9728's `resource_metadata`), which is how an MCP client discovers the right authorization server from a bare `401`; pointing it at the central document would send every app's client to the wrong sign-in. \n\n**`404 not_found` covers an identifier no app carries AND an app whose `appAuthConfig.mcp_enabled` is off — one answer for both, the same one the two metadata documents and `register` give.** A separate `403 mcp_disabled` here would hand an anonymous caller a three-way oracle (`404` = no such app, `403` = the app exists with MCP off, `401` = the app exists and is live), which is exactly the distinction discovery collapses; there is no point collapsing it in one place and publishing it in another. The switch is re-read on every request rather than cached off the token, so a developer turning it off ends the sessions already running, and it is decided **before the bearer is looked at** — the reverse of the usual order, and deliberate: it is a fact about the path, an app identifier is public, and an absent server that answered `401` would send a client hunting a credential no credential can satisfy. `401 unauthorized` is a missing, unverifiable or expired bearer, an `aud` that is not this endpoint, or **a consent this person has since withdrawn from the client the token was minted for**: the access token names its client, and the standing consent is re-read here on every request exactly as the account is, so `DELETE /api/client/mcp/grants/:clientId` and its developer twin bite at the next call rather than when the token expires. `403 forbidden` is a token that verifies and is not this app's user: another app's session, a Fleetless user's central `mcp_session`, an account that is `blocked` or still `pending_verification`, or a foreign `Origin`."
4143
4140
  },
4144
4141
  {
4145
4142
  "method": "GET",
@@ -4413,7 +4410,7 @@
4413
4410
  "quota_exceeded"
4414
4411
  ],
4415
4412
  "transport": "http",
4416
- "notes": "**`202` and an empty body for every request policy allows** — a new address, one this app already knows and one it does not answer identically, in status, body and timing. An answer that depended on existence would be the account-enumeration oracle the whole client family is built to avoid. The account cannot log in until the mailed link is spent; `POST /api/client/verify-email` is what does that. \n\n**An address on an account still `pending_verification` is re-registered, not ignored.** The password and display name from this call replace what is stored, every outstanding verification link for the address stops working, and a fresh one is mailed. Otherwise whoever typed an address first would own the password of the account its real owner later verifies. An address on an `active` account changes nothing and sends nothing — that account has already been proven, and its way back in is `POST /api/client/password/reset`. Neither case is visible in the answer. \n\nThe refusals it *does* make are about policy or about what the caller typed, never about a person. `403 registration_closed` when the app has self-registration off and `403 domain_not_allowed` when the address is outside `allowed_domains`: both are the developer's own configuration, and a stranger learns the app's policy rather than who is in it. **A password under twelve characters is part of that `400 validation_error`** and not a code of its own — the minimum is the `password` field's schema rule, and the error names the field, which is what a form needs to mark it. The same `400` names `password` when one is missing while the app's password method is on, or sent while it is off: an email-code-only app registers people without one. `404 not_found` names an **app identifier no app carries**, and never an address: an app identifier is already public (it is in the MCP metadata path and in the developer's own URLs), while collapsing it into `registration_closed` sent a developer who mistyped their own identifier hunting a configuration bug that was not there. `409 target_state_conflict` when the app has no default role — there would be no role to give the person. An app with no `verify_url` is not refused: the mailed link points at the hosted confirmation page instead. \n\n**`409 quota_exceeded` when the org is at its `max_end_users` limit**, counted across every app of the org. It is the one refusal here that is answered **before the address is looked at** — and that ordering is the point rather than an implementation detail: a quota checked after the existence branch would answer `202` for an address the app already knows and `409` for one it does not, which is precisely the enumeration oracle every other line of this route exists to close. At the quota, every registration is refused identically, including one that would only have re-mailed a pending account's link."
4413
+ "notes": "**`202` and an empty body for every request policy allows** — a new address, one this app already knows and one it does not answer identically, in status, body and timing. An answer that depended on existence would be the account-enumeration oracle the whole client family is built to avoid. The account cannot log in until the mailed link is spent; `POST /api/client/verify-email` is what does that. \n\n**An address on an account still `pending_verification` is re-registered, not ignored.** The password and display name from this call replace what is stored, every outstanding verification link for the address stops working, and a fresh one is mailed. Otherwise whoever typed an address first would own the password of the account its real owner later verifies. An address on an `active` account changes nothing and sends nothing — that account has already been proven, and its way back in is `POST /api/client/password/reset`. Neither case is visible in the answer. \n\nThe refusals it *does* make are about policy or about what the caller typed, never about a person. `403 registration_closed` when the app has self-registration off and `403 domain_not_allowed` when the address is outside `allowed_domains`: both are the developer's own configuration, and a stranger learns the app's policy rather than who is in it. **A password under twelve characters is part of that `400 validation_error`** and not a code of its own — the minimum is the `password` field's schema rule, and the error names the field, which is what a form needs to mark it. The same `400` names `password` when one is missing while the app's password method is on, or sent while it is off: an email-code-only app registers people without one. `404 not_found` names an **app identifier no app carries**, and never an address: an app identifier is already public (it is in the MCP metadata path and in the developer's own URLs), while collapsing it into `registration_closed` sent a developer who mistyped their own identifier hunting a configuration bug that was not there. `409 target_state_conflict` naming `default_role` with rule `not_set` when the app has no default role — there would be no role to give the person. A default that names no role is not a refusal: the account holds the key and reaches nothing. An app with no `verify_url` is not refused: the mailed link points at the hosted confirmation page instead. \n\n**`409 quota_exceeded` when the org is at its `max_end_users` limit**, counted across every app of the org. It is the one refusal here that is answered **before the address is looked at** — and that ordering is the point rather than an implementation detail: a quota checked after the existence branch would answer `202` for an address the app already knows and `409` for one it does not, which is precisely the enumeration oracle every other line of this route exists to close. At the quota, every registration is refused identically, including one that would only have re-mailed a pending account's link."
4417
4414
  },
4418
4415
  {
4419
4416
  "method": "POST",
@@ -4528,7 +4525,7 @@
4528
4525
  "quota_exceeded"
4529
4526
  ],
4530
4527
  "transport": "http",
4531
- "notes": "**An app invitation, not a team one.** `POST /api/org/invitations/accept` is the other space and answers `204`; this one answers a session, because the person is landing in the developer's app and there is no second door for them to sign in through. The role is the one the invitation fixed at creation, so a later change to the app's default role does not re-aim a link already in somebody's inbox, and the invitation **bypasses `allowed_domains`** — a developer inviting somebody by hand has already made the decision the whitelist automates. The answer is a `clientSignInResult`: a `twoFactorChallenge` instead of tokens when the app requires two-factor. `password` is required while the app's password method is on and refused while it is off, both as `400 validation_error` naming the field. \n\n**One refusal for every token that does not work: `410 token_spent`** — unknown, expired past the seven days, revoked by the developer, or already accepted. There is one code because telling them apart would say whether a token ever existed, and because the one thing the holder of a dead link can do is ask the developer for a new one, whichever of the four it was. A chosen password under twelve characters is part of the `400 validation_error`, naming the `password` field. `409 email_taken` is an address this app has acquired since the invitation was written **as an account that is already in use** — the invitation stays outstanding rather than being spent, so the developer can revoke it or point the person at the login. An address that registered itself and is still `pending_verification` is not that state: accepting sets the password the invitee just chose, activates the account and gives it the invitation's role, because reading the invitation mail proves the address the verification link was waiting on. \n\n`409 target_state_conflict` names `role_id` with rule `not_set` when the role the invitation was fixed to has since been deleted and the app has no default role to fall back on: there is no access to hand the acceptor, and creating an account with none would be worse than saying so. \n\n**`409 quota_exceeded` when accepting would CREATE an account and the org is at its `max_end_users` limit**, counted across every app of the org. An invitation that names a row the developer already created, and one whose address is held by an unfinished self-registration, both finish an account that already counts — those are not refused, because the org is not one account larger afterwards. The token is not spent by the refusal: the developer can raise the limit, or delete somebody, and the same link still works."
4528
+ "notes": "**An app invitation, not a team one.** `POST /api/org/invitations/accept` is the other space and answers `204`; this one answers a session, because the person is landing in the developer's app and there is no second door for them to sign in through. The role is the one the invitation fixed at creation, so a later change to the app's default role does not re-aim a link already in somebody's inbox, and the invitation **bypasses `allowed_domains`** — a developer inviting somebody by hand has already made the decision the whitelist automates. The answer is a `clientSignInResult`: a `twoFactorChallenge` instead of tokens when the app requires two-factor. `password` is required while the app's password method is on and refused while it is off, both as `400 validation_error` naming the field. \n\n**One refusal for every token that does not work: `410 token_spent`** — unknown, expired past the seven days, revoked by the developer, or already accepted. There is one code because telling them apart would say whether a token ever existed, and because the one thing the holder of a dead link can do is ask the developer for a new one, whichever of the four it was. A chosen password under twelve characters is part of the `400 validation_error`, naming the `password` field. `409 email_taken` is an address this app has acquired since the invitation was written **as an account that is already in use** — the invitation stays outstanding rather than being spent, so the developer can revoke it or point the person at the login. An address that registered itself and is still `pending_verification` is not that state: accepting sets the password the invitee just chose, activates the account and gives it the invitation's role, because reading the invitation mail proves the address the verification link was waiting on. \n\n`409 target_state_conflict` names `default_role` with rule `not_set` when the invitation holds no role key (it lists with `role: null`) and the app has no default role to fall back on: there is no access to hand the acceptor, and creating an account with none would be worse than saying so. A role deleted since the invitation was issued is no obstacle: the account is created holding the key and reaches nothing. \n\n**`409 quota_exceeded` when accepting would CREATE an account and the org is at its `max_end_users` limit**, counted across every app of the org. An invitation that names a row the developer already created, and one whose address is held by an unfinished self-registration, both finish an account that already counts — those are not refused, because the org is not one account larger afterwards. The token is not spent by the refusal: the developer can raise the limit, or delete somebody, and the same link still works."
4532
4529
  },
4533
4530
  {
4534
4531
  "method": "POST",
@@ -4622,7 +4619,7 @@
4622
4619
  "forbidden"
4623
4620
  ],
4624
4621
  "transport": "http",
4625
- "notes": "The one route that answers for all three caller kinds — a developer bearer, an app-user bearer and a server key — which is why the shape names each of `developer_id`, `app_user_id` and `server_key_id` and fills exactly one."
4622
+ "notes": "The one route that answers for all three caller kinds — a developer bearer, an app-user bearer and a server key — which is why the shape names each of `developer_id`, `app_user_id` and `server_key_id` and fills exactly one. `role` is the organization role an app user holds, as its key and display name; it is `null` for a developer and a server key, and for an app user whose key names no role (the role was deleted), who signs in and reaches nothing."
4626
4623
  },
4627
4624
  {
4628
4625
  "method": "POST",
@@ -5236,13 +5233,13 @@
5236
5233
  "not_found"
5237
5234
  ],
5238
5235
  "transport": "http",
5239
- "notes": "A developer bearer sees the robot's whole list unfiltered; an end user or a server key sees only the slugs their role grants, and a robot their app does not attach answers `404` exactly as one that does not exist."
5236
+ "notes": "A developer bearer sees the robot's whole list unfiltered; an end user sees only the slugs their role grants, a server key every slug its app does not lock, and a robot their app does not attach answers `404` exactly as one that does not exist."
5240
5237
  },
5241
5238
  {
5242
5239
  "method": "GET",
5243
5240
  "path": "/api/robots/:id/exposures",
5244
5241
  "section": "robots",
5245
- "summary": "Lists every grantable slug of a robot with its kind — the material the roles matrix is built from.",
5242
+ "summary": "Lists every exposed slug of a robot with its kind — the material an app picks its locks from.",
5246
5243
  "audience": "developer",
5247
5244
  "auth": "developer",
5248
5245
  "rateLimited": false,
@@ -5265,7 +5262,7 @@
5265
5262
  "not_found"
5266
5263
  ],
5267
5264
  "transport": "http",
5268
- "notes": "Developer-only: this is what a role *could* be granted, which is a configuration fact rather than something an end user is entitled to enumerate."
5265
+ "notes": "Developer-only: this is what a role could be required to use and an app could lock, which is a configuration fact rather than something an end user is entitled to enumerate."
5269
5266
  },
5270
5267
  {
5271
5268
  "method": "GET",
@@ -5354,7 +5351,7 @@
5354
5351
  "not_found"
5355
5352
  ],
5356
5353
  "transport": "http",
5357
- "notes": "**The REST twin of the MCP action `robots.describe`**: one answer per robot — every datapoint, action, service, publisher and camera the role grants, each with its `input_schema` where it takes parameters, plus the two capabilities that gate whole features, `action_history` and `assets`. A robot with nothing published answers an empty `exposures` list, never a refusal. A robot the caller does not reach — not attached to their app, or attached with a role that grants nothing on it — answers `404` exactly as one that does not exist. The app-user datapoint and camera listings under this prefix stay; this is the one read that also names actions, services, publishers and capabilities, which is what an app needs before it can draw a screen."
5354
+ "notes": "**The REST twin of the MCP action `robots.describe`**: one answer per robot — every datapoint, action, service, publisher and camera the role grants, each with its `input_schema` where it takes parameters, plus the two capabilities that gate whole features, `job_history` and `assets`. A robot with nothing published answers an empty `exposures` list, never a refusal. A robot the caller does not reach — not attached to their app, or attached with a role that grants nothing on it — answers `404` exactly as one that does not exist. The app-user datapoint and camera listings under this prefix stay; this is the one read that also names actions, services, publishers and capabilities, which is what an app needs before it can draw a screen."
5358
5355
  },
5359
5356
  {
5360
5357
  "method": "GET",
@@ -5383,7 +5380,7 @@
5383
5380
  "not_found"
5384
5381
  ],
5385
5382
  "transport": "http",
5386
- "notes": "Issues are recomputed on every read and every write, so an editor never has to guess whether it may publish. `doc` is `null` for a draft that is valid YAML but not a Fleetless configuration — a state the format admits and the publish route refuses."
5383
+ "notes": "Issues are recomputed on every read and every write, so an editor never has to guess whether it may publish. `doc` is `null` for a draft that is valid YAML but not a Fleetless configuration — a state the format admits and the publish route refuses. `updated_by` names the team member who saved it last, and is `null` when nobody has, or when the cloud itself rewrote the draft."
5387
5384
  },
5388
5385
  {
5389
5386
  "method": "PUT",
@@ -5446,7 +5443,7 @@
5446
5443
  "draft_not_a_document"
5447
5444
  ],
5448
5445
  "transport": "http",
5449
- "notes": "A draft that is valid YAML but not a Fleetless configuration is `422 draft_not_a_document`, carrying every issue rather than the blocking subset — nothing about that text is publishable, so there is no subset to pick, and the warning naming the checks that could not run is part of reading the list correctly. A document with `severity: \"error\"` issues is `422 validation_error` with just those. The draft's own text travels into the version, so a restore later returns what the author wrote rather than a re-rendering of it."
5446
+ "notes": "A draft that is valid YAML but not a Fleetless configuration is `422 draft_not_a_document`, carrying every issue rather than the blocking subset — nothing about that text is publishable, so there is no subset to pick, and the warning naming the checks that could not run is part of reading the list correctly. A document with `severity: \"error\"` issues is `422 validation_error` with just those. The draft's own text travels into the version, so a restore later returns what the author wrote rather than a re-rendering of it. The answer carries `warnings`: every `warning` of the published document, role keys that name no role of the organization included. A warning never blocks a publish."
5450
5447
  },
5451
5448
  {
5452
5449
  "method": "GET",
@@ -5474,7 +5471,8 @@
5474
5471
  "invalid_uuid",
5475
5472
  "not_found"
5476
5473
  ],
5477
- "transport": "http"
5474
+ "transport": "http",
5475
+ "notes": "Each version carries `published_by`, the team member who published it, or `null` for a version published before the cloud recorded authors or by a member who has since been removed."
5478
5476
  },
5479
5477
  {
5480
5478
  "method": "GET",
@@ -5546,7 +5544,7 @@
5546
5544
  "method": "POST",
5547
5545
  "path": "/api/robots/:id/config/rename-slug",
5548
5546
  "section": "config",
5549
- "summary": "Renames a slug in the draft and moves every role grant and the recorded history with the name.",
5547
+ "summary": "Renames a slug in the draft and moves the app locks and the recorded history with the name.",
5550
5548
  "audience": "developer",
5551
5549
  "auth": "developer",
5552
5550
  "rateLimited": false,
@@ -5573,10 +5571,11 @@
5573
5571
  "reserved_slug",
5574
5572
  "duplicate_slug",
5575
5573
  "history_migrating",
5574
+ "target_state_conflict",
5576
5575
  "internal_error"
5577
5576
  ],
5578
5577
  "transport": "http",
5579
- "notes": "One transaction: the draft document and every app-role grant carrying the slug are rewritten, and the recorded history moves with the name without rewriting any stored sample, so a rename takes the same time however much history there is. Samples the robot still sends under the old slug until the next publish join the renamed history. The published configuration is immutable, so `requires_publish` says the rename is not live on the robot yet. A draft that is not a document is `409 draft_not_a_document` — the same word the usage preview uses for the same state. While the recorded history is being migrated the rename is refused with `409 history_migrating`; nothing is written, and the same request succeeds once the migration has finished."
5578
+ "notes": "One transaction: the draft document and every app lock that lists the slug are rewritten, and the recorded history moves with the name without rewriting any stored sample, so a rename takes the same time however much history there is. Locks follow the rename: a lock that listed the old slug lists the new one as well, in every app of the organization, so a locked capability stays locked; the old name stays in the lock until the next `PUT /api/apps/:id/access`, and `rewritten_locks` counts the locks touched. A lock that would grow past the most slugs it can hold refuses the whole rename with `409 target_state_conflict` naming `to` (rule `lock_full`); nothing is written. Samples the robot still sends under the old slug until the next publish join the renamed history. The published configuration is immutable, so `requires_publish` says the rename is not live on the robot yet. A draft that is not a document is `409 draft_not_a_document` — the same word the usage preview uses for the same state. While the recorded history is being migrated the rename is refused with `409 history_migrating`; nothing is written, and the same request succeeds once the migration has finished."
5580
5579
  },
5581
5580
  {
5582
5581
  "method": "GET",
@@ -5610,7 +5609,7 @@
5610
5609
  "draft_not_a_document"
5611
5610
  ],
5612
5611
  "transport": "http",
5613
- "notes": "A draft that is valid YAML but not a Fleetless document is refused rather than answered with `alert_count: 0`: the two states are *this slug has no alerts* and *there is no document to ask*, and a zero cannot tell them apart — it would show a smaller blast radius than the rename actually has. The other three counts are real whatever the draft holds, and a partial answer to a preview whose whole purpose is to be complete is not worth the ambiguity."
5612
+ "notes": "A draft that is valid YAML but not a Fleetless document is refused rather than answered with `alert_count: 0`: the two states are *this slug has no alerts* and *there is no document to ask*, and a zero cannot tell them apart — it would show a smaller blast radius than the rename actually has. The other three counts are real whatever the draft holds, and a partial answer to a preview whose whole purpose is to be complete is not worth the ambiguity. `lock_count` counts the app locks the rename would extend with the new name."
5614
5613
  },
5615
5614
  {
5616
5615
  "method": "GET",
@@ -5845,7 +5844,7 @@
5845
5844
  "validation_error"
5846
5845
  ],
5847
5846
  "transport": "http",
5848
- "notes": "Needs the `action_history` capability, and **this route is what makes that switch mean something** — it was unkeepable while nothing durable recorded what had run. Two residuals worth stating rather than implying away. `history` is a syntactically valid slug, and a static segment matches before a parameter, so a robot with a service literally slugged `history` can no longer be **read** through `GET /api/robots/:id/jobs/:slug`; invoking, cancelling and the listing are unaffected. And a run row names its actor by email address, so an end user holding this capability learns which other people have been driving the machine. `robot_id` in the query is shared with the org-wide read; a *different* one here is refused rather than quietly answered about the robot in the path."
5847
+ "notes": "Needs the `job_history` capability, and **this route is what makes that switch mean something** — it was unkeepable while nothing durable recorded what had run. Two residuals worth stating rather than implying away. `history` is a syntactically valid slug, and a static segment matches before a parameter, so a robot with a service literally slugged `history` can no longer be **read** through `GET /api/robots/:id/jobs/:slug`; invoking, cancelling and the listing are unaffected. And a run row names its actor by email address, so an end user holding this capability learns which other people have been driving the machine. `robot_id` in the query is shared with the org-wide read; a *different* one here is refused rather than quietly answered about the robot in the path."
5849
5848
  },
5850
5849
  {
5851
5850
  "method": "POST",
@@ -5885,7 +5884,7 @@
5885
5884
  "internal_error"
5886
5885
  ],
5887
5886
  "transport": "http",
5888
- "notes": "**One route for both kinds**, because a path segment naming the kind would demand a fact a role grant does not carry. An action answers `202` with an `invokeResponse` the moment the job exists; a service answers `200` with a `serviceCallResponse` once the result is in — two shapes, carried by one union (`invokeOrServiceResponse`) and told apart by whether `kind` or a bare `result` arrives. Parameters are checked **before** anything about the world (offline, busy): the same request must get the same verdict whether or not the robot happens to be reachable, or a developer testing against an offline robot never learns their parameters were wrong. A slug is `409 busy` while it holds a `running` job, an `unknown` one the robot has not accounted for yet, or an `external` goal someone else started; the refusal's `details.running` names that job, `state` and `origin` included. A service the robot reports as failed answers `502` carrying **the job's own error code**, which is an open set and not one of the codes above."
5887
+ "notes": "**One route for both kinds**, because a path segment naming the kind would demand a fact the rights model does not carry. An action answers `202` with an `invokeResponse` the moment the job exists; a service answers `200` with a `serviceCallResponse` once the result is in — two shapes, carried by one union (`invokeOrServiceResponse`) and told apart by whether `kind` or a bare `result` arrives. Parameters are checked **before** anything about the world (offline, busy): the same request must get the same verdict whether or not the robot happens to be reachable, or a developer testing against an offline robot never learns their parameters were wrong. A slug is `409 busy` while it holds a `running` job, an `unknown` one the robot has not accounted for yet, or an `external` goal someone else started; the refusal's `details.running` names that job, `state` and `origin` included. A service the robot reports as failed answers `502` carrying **the job's own error code**, which is an open set and not one of the codes above."
5889
5888
  },
5890
5889
  {
5891
5890
  "method": "GET",
@@ -7428,7 +7427,7 @@
7428
7427
  "method": "GET",
7429
7428
  "path": "/realtime",
7430
7429
  "section": "transports",
7431
- "summary": "The client WebSocket: subscriptions on datapoints, jobs, bridge state and presence, plus full command parity with REST.",
7430
+ "summary": "The client WebSocket: subscriptions on datapoints (the built-in bridge state included), jobs and cameras, plus full command parity with REST.",
7432
7431
  "audience": "client",
7433
7432
  "auth": "none",
7434
7433
  "rateLimited": false,