@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
@@ -391,6 +391,41 @@
391
391
  }
392
392
  }
393
393
  ]
394
+ },
395
+ "role": {
396
+ "anyOf": [
397
+ {
398
+ "type": "string",
399
+ "pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
400
+ "patternErrorMessage": "A role key is lower-case: it starts with a letter and continues with letters, digits and underscores, up to 63 characters in all — `operate`, `night_shift`. A capital, a dash, a dot, a space or a leading digit is refused, and `defaults` is reserved."
401
+ },
402
+ {
403
+ "minItems": 1,
404
+ "maxItems": 50,
405
+ "type": "array",
406
+ "items": {
407
+ "type": "string",
408
+ "pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
409
+ "patternErrorMessage": "A role key is lower-case: it starts with a letter and continues with letters, digits and underscores, up to 63 characters in all — `operate`, `night_shift`. A capital, a dash, a dot, a space or a leading digit is refused, and `defaults` is reserved."
410
+ }
411
+ }
412
+ ],
413
+ "defaultSnippets": [
414
+ {
415
+ "label": "one role",
416
+ "description": "The role that may use this; a role that inherits from it may too.",
417
+ "body": "${1:operate}"
418
+ },
419
+ {
420
+ "label": "any of several roles",
421
+ "description": "A list of roles; holding one of them, or inheriting from one, is enough.",
422
+ "body": [
423
+ "${1:operate}",
424
+ "${2:admin}"
425
+ ]
426
+ }
427
+ ],
428
+ "description": "Which role may read this datapoint: one role key, or a list of keys when several roles qualify. A role qualifies when it, or a role it inherits from, is named. Without this, the first rule of `access.rules` that fits the entry decides, and without a fitting rule the organization's default for `read` applies. A key that names no role of the organization is a warning when you publish, never an error, and grants nothing. The robot ignores it; the cloud enforces it."
394
429
  }
395
430
  },
396
431
  "required": [
@@ -435,7 +470,7 @@
435
470
  }
436
471
  ]
437
472
  },
438
- "description": "Values the robot publishes, each one field of one topic or a whole topic, and **never several topics**. Keys are slugs, one namespace across all five exposure sections, which is what lets a role grant say `{robot, slug}` without naming a kind; `bridge_state` and `robot_details` are built-in, and `history` is reserved because `GET …/jobs/history` would shadow an action of that name; all three are refused when the document is validated.",
473
+ "description": "Values the robot publishes, each one field of one topic or a whole topic, and **never several topics**. Keys are slugs, one namespace across all five exposure sections, which is what lets an app lock name `{robot, slug}` without naming a kind; `bridge_state` and `robot_details` are built-in, `history` is reserved because `GET …/jobs/history` would shadow an action of that name, and `assets` and `job_history` are reserved because they name the robot-level capabilities; all five are refused when the document is validated.",
439
474
  "defaultSnippets": [
440
475
  {
441
476
  "label": "a datapoint",
@@ -664,6 +699,41 @@
664
699
  "type": "string",
665
700
  "minLength": 1,
666
701
  "maxLength": 2000
702
+ },
703
+ "role": {
704
+ "anyOf": [
705
+ {
706
+ "type": "string",
707
+ "pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
708
+ "patternErrorMessage": "A role key is lower-case: it starts with a letter and continues with letters, digits and underscores, up to 63 characters in all — `operate`, `night_shift`. A capital, a dash, a dot, a space or a leading digit is refused, and `defaults` is reserved."
709
+ },
710
+ {
711
+ "minItems": 1,
712
+ "maxItems": 50,
713
+ "type": "array",
714
+ "items": {
715
+ "type": "string",
716
+ "pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
717
+ "patternErrorMessage": "A role key is lower-case: it starts with a letter and continues with letters, digits and underscores, up to 63 characters in all — `operate`, `night_shift`. A capital, a dash, a dot, a space or a leading digit is refused, and `defaults` is reserved."
718
+ }
719
+ }
720
+ ],
721
+ "defaultSnippets": [
722
+ {
723
+ "label": "one role",
724
+ "description": "The role that may use this; a role that inherits from it may too.",
725
+ "body": "${1:operate}"
726
+ },
727
+ {
728
+ "label": "any of several roles",
729
+ "description": "A list of roles; holding one of them, or inheriting from one, is enough.",
730
+ "body": [
731
+ "${1:operate}",
732
+ "${2:admin}"
733
+ ]
734
+ }
735
+ ],
736
+ "description": "Which role may start this action: one role key, or a list of keys when several roles qualify. A role qualifies when it, or a role it inherits from, is named. Without this, the first rule of `access.rules` that fits the entry decides, and without a fitting rule the organization's default for `invoke` applies. A key that names no role of the organization is a warning when you publish, never an error, and grants nothing. The robot ignores it; the cloud enforces it."
667
737
  }
668
738
  },
669
739
  "required": [
@@ -683,7 +753,7 @@
683
753
  }
684
754
  ]
685
755
  },
686
- "description": "Things the robot does on request that take time, each reported as a job with progress. **At most one job runs per action slug**: a second call is refused `busy`, and every observer of that slug watches the same job. Keys are slugs, one namespace across all five exposure sections, which is what lets a role grant say `{robot, slug}` without naming a kind; `bridge_state` and `robot_details` are built-in, and `history` is reserved because `GET …/jobs/history` would shadow an action of that name; all three are refused when the document is validated.",
756
+ "description": "Things the robot does on request that take time, each reported as a job with progress. **At most one job runs per action slug**: a second call is refused `busy`, and every observer of that slug watches the same job. Keys are slugs, one namespace across all five exposure sections, which is what lets an app lock name `{robot, slug}` without naming a kind; `bridge_state` and `robot_details` are built-in, `history` is reserved because `GET …/jobs/history` would shadow an action of that name, and `assets` and `job_history` are reserved because they name the robot-level capabilities; all five are refused when the document is validated.",
687
757
  "defaultSnippets": [
688
758
  {
689
759
  "label": "an action",
@@ -885,6 +955,41 @@
885
955
  "type": "string",
886
956
  "minLength": 1,
887
957
  "maxLength": 2000
958
+ },
959
+ "role": {
960
+ "anyOf": [
961
+ {
962
+ "type": "string",
963
+ "pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
964
+ "patternErrorMessage": "A role key is lower-case: it starts with a letter and continues with letters, digits and underscores, up to 63 characters in all — `operate`, `night_shift`. A capital, a dash, a dot, a space or a leading digit is refused, and `defaults` is reserved."
965
+ },
966
+ {
967
+ "minItems": 1,
968
+ "maxItems": 50,
969
+ "type": "array",
970
+ "items": {
971
+ "type": "string",
972
+ "pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
973
+ "patternErrorMessage": "A role key is lower-case: it starts with a letter and continues with letters, digits and underscores, up to 63 characters in all — `operate`, `night_shift`. A capital, a dash, a dot, a space or a leading digit is refused, and `defaults` is reserved."
974
+ }
975
+ }
976
+ ],
977
+ "defaultSnippets": [
978
+ {
979
+ "label": "one role",
980
+ "description": "The role that may use this; a role that inherits from it may too.",
981
+ "body": "${1:operate}"
982
+ },
983
+ {
984
+ "label": "any of several roles",
985
+ "description": "A list of roles; holding one of them, or inheriting from one, is enough.",
986
+ "body": [
987
+ "${1:operate}",
988
+ "${2:admin}"
989
+ ]
990
+ }
991
+ ],
992
+ "description": "Which role may call this service: one role key, or a list of keys when several roles qualify. A role qualifies when it, or a role it inherits from, is named. Without this, the first rule of `access.rules` that fits the entry decides, and without a fitting rule the organization's default for `invoke` applies. A key that names no role of the organization is a warning when you publish, never an error, and grants nothing. The robot ignores it; the cloud enforces it."
888
993
  }
889
994
  },
890
995
  "required": [
@@ -904,7 +1009,7 @@
904
1009
  }
905
1010
  ]
906
1011
  },
907
- "description": "ROS service calls the robot answers — one request, one reply. Unlike an action a service reports **no progress** and the call returns with its result already on the job, so there is nothing left to observe; a second concurrent call is still refused `busy`, exactly as for an action. Keys are slugs, one namespace across all five exposure sections, which is what lets a role grant say `{robot, slug}` without naming a kind; `bridge_state` and `robot_details` are built-in, and `history` is reserved because `GET …/jobs/history` would shadow an action of that name; all three are refused when the document is validated.",
1012
+ "description": "ROS service calls the robot answers — one request, one reply. Unlike an action a service reports **no progress** and the call returns with its result already on the job, so there is nothing left to observe; a second concurrent call is still refused `busy`, exactly as for an action. Keys are slugs, one namespace across all five exposure sections, which is what lets an app lock name `{robot, slug}` without naming a kind; `bridge_state` and `robot_details` are built-in, `history` is reserved because `GET …/jobs/history` would shadow an action of that name, and `assets` and `job_history` are reserved because they name the robot-level capabilities; all five are refused when the document is validated.",
908
1013
  "defaultSnippets": [
909
1014
  {
910
1015
  "label": "a service",
@@ -1156,6 +1261,41 @@
1156
1261
  "type": "string",
1157
1262
  "minLength": 1,
1158
1263
  "maxLength": 2000
1264
+ },
1265
+ "role": {
1266
+ "anyOf": [
1267
+ {
1268
+ "type": "string",
1269
+ "pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
1270
+ "patternErrorMessage": "A role key is lower-case: it starts with a letter and continues with letters, digits and underscores, up to 63 characters in all — `operate`, `night_shift`. A capital, a dash, a dot, a space or a leading digit is refused, and `defaults` is reserved."
1271
+ },
1272
+ {
1273
+ "minItems": 1,
1274
+ "maxItems": 50,
1275
+ "type": "array",
1276
+ "items": {
1277
+ "type": "string",
1278
+ "pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
1279
+ "patternErrorMessage": "A role key is lower-case: it starts with a letter and continues with letters, digits and underscores, up to 63 characters in all — `operate`, `night_shift`. A capital, a dash, a dot, a space or a leading digit is refused, and `defaults` is reserved."
1280
+ }
1281
+ }
1282
+ ],
1283
+ "defaultSnippets": [
1284
+ {
1285
+ "label": "one role",
1286
+ "description": "The role that may use this; a role that inherits from it may too.",
1287
+ "body": "${1:operate}"
1288
+ },
1289
+ {
1290
+ "label": "any of several roles",
1291
+ "description": "A list of roles; holding one of them, or inheriting from one, is enough.",
1292
+ "body": [
1293
+ "${1:operate}",
1294
+ "${2:admin}"
1295
+ ]
1296
+ }
1297
+ ],
1298
+ "description": "Which role may send to this publisher, which is what driving the robot is: one role key, or a list of keys when several roles qualify. A role qualifies when it, or a role it inherits from, is named. Without this, the first rule of `access.rules` that fits the entry decides, and without a fitting rule the organization's default for `publish` applies. A key that names no role of the organization is a warning when you publish, never an error, and grants nothing. The robot ignores it; the cloud enforces it."
1159
1299
  }
1160
1300
  },
1161
1301
  "required": [
@@ -1212,7 +1352,7 @@
1212
1352
  }
1213
1353
  ]
1214
1354
  },
1215
- "description": "Topics clients may send to, and where the format's whole safety story lives. The `message` template fixes every value a caller cannot change, and **`failsafe` is required**: once a client falls silent the bridge sends the failsafe message itself, so an operator whose window closed does not leave a robot driving. Keys are slugs, one namespace across all five exposure sections, which is what lets a role grant say `{robot, slug}` without naming a kind; `bridge_state` and `robot_details` are built-in, and `history` is reserved because `GET …/jobs/history` would shadow an action of that name; all three are refused when the document is validated.",
1355
+ "description": "Topics clients may send to, and where the format's whole safety story lives. The `message` template fixes every value a caller cannot change, and **`failsafe` is required**: once a client falls silent the bridge sends the failsafe message itself, so an operator whose window closed does not leave a robot driving. Keys are slugs, one namespace across all five exposure sections, which is what lets an app lock name `{robot, slug}` without naming a kind; `bridge_state` and `robot_details` are built-in, `history` is reserved because `GET …/jobs/history` would shadow an action of that name, and `assets` and `job_history` are reserved because they name the robot-level capabilities; all five are refused when the document is validated.",
1216
1356
  "defaultSnippets": [
1217
1357
  {
1218
1358
  "label": "a publisher, with its parameters and its failsafe",
@@ -1566,6 +1706,41 @@
1566
1706
  "type": "string",
1567
1707
  "minLength": 1,
1568
1708
  "maxLength": 2000
1709
+ },
1710
+ "role": {
1711
+ "anyOf": [
1712
+ {
1713
+ "type": "string",
1714
+ "pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
1715
+ "patternErrorMessage": "A role key is lower-case: it starts with a letter and continues with letters, digits and underscores, up to 63 characters in all — `operate`, `night_shift`. A capital, a dash, a dot, a space or a leading digit is refused, and `defaults` is reserved."
1716
+ },
1717
+ {
1718
+ "minItems": 1,
1719
+ "maxItems": 50,
1720
+ "type": "array",
1721
+ "items": {
1722
+ "type": "string",
1723
+ "pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
1724
+ "patternErrorMessage": "A role key is lower-case: it starts with a letter and continues with letters, digits and underscores, up to 63 characters in all — `operate`, `night_shift`. A capital, a dash, a dot, a space or a leading digit is refused, and `defaults` is reserved."
1725
+ }
1726
+ }
1727
+ ],
1728
+ "defaultSnippets": [
1729
+ {
1730
+ "label": "one role",
1731
+ "description": "The role that may use this; a role that inherits from it may too.",
1732
+ "body": "${1:operate}"
1733
+ },
1734
+ {
1735
+ "label": "any of several roles",
1736
+ "description": "A list of roles; holding one of them, or inheriting from one, is enough.",
1737
+ "body": [
1738
+ "${1:operate}",
1739
+ "${2:admin}"
1740
+ ]
1741
+ }
1742
+ ],
1743
+ "description": "Which role may see this camera: one role key, or a list of keys when several roles qualify. A role qualifies when it, or a role it inherits from, is named. Without this, the first rule of `access.rules` that fits the entry decides, and without a fitting rule the organization's default for `read` applies. A key that names no role of the organization is a warning when you publish, never an error, and grants nothing. The robot ignores it; the cloud enforces it."
1569
1744
  }
1570
1745
  },
1571
1746
  "required": [
@@ -1596,7 +1771,7 @@
1596
1771
  }
1597
1772
  ]
1598
1773
  },
1599
- "description": "Video the robot streams, and the still frames the cloud serves from it. `width`, `height`, `fps` and `bitrate_kbps` are what **the bridge produces before sending**, not what the camera captures — they live in the configuration rather than in a viewer's request precisely so that no viewer can make a robot send more. Keys are slugs, one namespace across all five exposure sections, which is what lets a role grant say `{robot, slug}` without naming a kind; `bridge_state` and `robot_details` are built-in, and `history` is reserved because `GET …/jobs/history` would shadow an action of that name; all three are refused when the document is validated.",
1774
+ "description": "Video the robot streams, and the still frames the cloud serves from it. `width`, `height`, `fps` and `bitrate_kbps` are what **the bridge produces before sending**, not what the camera captures — they live in the configuration rather than in a viewer's request precisely so that no viewer can make a robot send more. Keys are slugs, one namespace across all five exposure sections, which is what lets an app lock name `{robot, slug}` without naming a kind; `bridge_state` and `robot_details` are built-in, `history` is reserved because `GET …/jobs/history` would shadow an action of that name, and `assets` and `job_history` are reserved because they name the robot-level capabilities; all five are refused when the document is validated.",
1600
1775
  "defaultSnippets": [
1601
1776
  {
1602
1777
  "label": "a camera",
@@ -1618,6 +1793,185 @@
1618
1793
  }
1619
1794
  ]
1620
1795
  },
1796
+ "access": {
1797
+ "type": "object",
1798
+ "properties": {
1799
+ "rules": {
1800
+ "maxItems": 100,
1801
+ "type": "array",
1802
+ "items": {
1803
+ "type": "object",
1804
+ "properties": {
1805
+ "match": {
1806
+ "type": "string",
1807
+ "maxLength": 255,
1808
+ "pattern": "^(?:\\/(?:\\*\\*|(?![A-Za-z0-9_*]*\\*\\*)(?:\\*|[A-Za-z_])[A-Za-z0-9_*]*))+$",
1809
+ "description": "A glob over the ROS name an entry is exposed by: the `topic` of a datapoint or a publisher, the `ros_name` of a service or an action, the source topic of a camera that reads a ROS topic. `*` stands for one name segment, or for any characters inside one (`/joint_*`); `**` stands for any number of segments, none included, so `/arm/**` fits `/arm` and everything below it. Always absolute.",
1810
+ "patternErrorMessage": "A match pattern is an absolute ROS graph name in which `*` stands for any characters inside one segment and `**` for any number of whole segments — `/arm/**`, `/diagnostics/*`, `/joint_*`. It begins with a slash. A relative pattern, a trailing slash, a dash, a dot, or `**` mixed into a longer segment is refused."
1811
+ },
1812
+ "kinds": {
1813
+ "minItems": 1,
1814
+ "maxItems": 3,
1815
+ "type": "array",
1816
+ "items": {
1817
+ "type": "string",
1818
+ "enum": [
1819
+ "read",
1820
+ "invoke",
1821
+ "publish"
1822
+ ],
1823
+ "enumDescriptions": [
1824
+ "Datapoints and cameras: seeing what the robot reports.",
1825
+ "Services and actions: asking the robot to do something.",
1826
+ "Publishers: sending to the robot, which is what driving it is."
1827
+ ]
1828
+ },
1829
+ "description": "Narrows the rule to some kinds of access. Without it the rule fits entries of every kind."
1830
+ },
1831
+ "role": {
1832
+ "anyOf": [
1833
+ {
1834
+ "type": "string",
1835
+ "pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
1836
+ "patternErrorMessage": "A role key is lower-case: it starts with a letter and continues with letters, digits and underscores, up to 63 characters in all — `operate`, `night_shift`. A capital, a dash, a dot, a space or a leading digit is refused, and `defaults` is reserved."
1837
+ },
1838
+ {
1839
+ "minItems": 1,
1840
+ "maxItems": 50,
1841
+ "type": "array",
1842
+ "items": {
1843
+ "type": "string",
1844
+ "pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
1845
+ "patternErrorMessage": "A role key is lower-case: it starts with a letter and continues with letters, digits and underscores, up to 63 characters in all — `operate`, `night_shift`. A capital, a dash, a dot, a space or a leading digit is refused, and `defaults` is reserved."
1846
+ }
1847
+ }
1848
+ ],
1849
+ "defaultSnippets": [
1850
+ {
1851
+ "label": "one role",
1852
+ "description": "The role that may use this; a role that inherits from it may too.",
1853
+ "body": "${1:operate}"
1854
+ },
1855
+ {
1856
+ "label": "any of several roles",
1857
+ "description": "A list of roles; holding one of them, or inheriting from one, is enough.",
1858
+ "body": [
1859
+ "${1:operate}",
1860
+ "${2:admin}"
1861
+ ]
1862
+ }
1863
+ ],
1864
+ "description": "The role that may use what this rule fits: one key, or a list of keys when several roles qualify. A role qualifies when it, or a role it inherits from, is named. A key that names no role of the organization is a warning when you publish and grants nothing."
1865
+ }
1866
+ },
1867
+ "required": [
1868
+ "match",
1869
+ "role"
1870
+ ],
1871
+ "additionalProperties": false
1872
+ },
1873
+ "description": "Ordered rules that give a role to every entry whose ROS name fits `match`, so a whole namespace is covered by one line. For an entry the order of precedence is its own `role`, then the first rule that fits it, then the organization's default for its kind. A rule that fits no entry of this document is a warning and changes nothing.",
1874
+ "defaultSnippets": [
1875
+ {
1876
+ "label": "a rule over a namespace",
1877
+ "description": "Gives everything under `/arm` to one role. The first rule that fits an entry decides, so a narrower rule goes above a wider one.",
1878
+ "body": [
1879
+ {
1880
+ "match": "${1:/arm/**}",
1881
+ "role": "${2:admin}"
1882
+ }
1883
+ ]
1884
+ }
1885
+ ]
1886
+ },
1887
+ "assets": {
1888
+ "anyOf": [
1889
+ {
1890
+ "type": "string",
1891
+ "pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
1892
+ "patternErrorMessage": "A role key is lower-case: it starts with a letter and continues with letters, digits and underscores, up to 63 characters in all — `operate`, `night_shift`. A capital, a dash, a dot, a space or a leading digit is refused, and `defaults` is reserved."
1893
+ },
1894
+ {
1895
+ "minItems": 1,
1896
+ "maxItems": 50,
1897
+ "type": "array",
1898
+ "items": {
1899
+ "type": "string",
1900
+ "pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
1901
+ "patternErrorMessage": "A role key is lower-case: it starts with a letter and continues with letters, digits and underscores, up to 63 characters in all — `operate`, `night_shift`. A capital, a dash, a dot, a space or a leading digit is refused, and `defaults` is reserved."
1902
+ }
1903
+ }
1904
+ ],
1905
+ "defaultSnippets": [
1906
+ {
1907
+ "label": "one role",
1908
+ "description": "The role that may use this; a role that inherits from it may too.",
1909
+ "body": "${1:operate}"
1910
+ },
1911
+ {
1912
+ "label": "any of several roles",
1913
+ "description": "A list of roles; holding one of them, or inheriting from one, is enough.",
1914
+ "body": [
1915
+ "${1:operate}",
1916
+ "${2:admin}"
1917
+ ]
1918
+ }
1919
+ ],
1920
+ "description": "Who may use this robot's asset store — the meshes and the URDF a viewer draws it from — in place of the organization's default for `assets`. One role key, or a list of keys."
1921
+ },
1922
+ "job_history": {
1923
+ "anyOf": [
1924
+ {
1925
+ "type": "string",
1926
+ "pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
1927
+ "patternErrorMessage": "A role key is lower-case: it starts with a letter and continues with letters, digits and underscores, up to 63 characters in all — `operate`, `night_shift`. A capital, a dash, a dot, a space or a leading digit is refused, and `defaults` is reserved."
1928
+ },
1929
+ {
1930
+ "minItems": 1,
1931
+ "maxItems": 50,
1932
+ "type": "array",
1933
+ "items": {
1934
+ "type": "string",
1935
+ "pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
1936
+ "patternErrorMessage": "A role key is lower-case: it starts with a letter and continues with letters, digits and underscores, up to 63 characters in all — `operate`, `night_shift`. A capital, a dash, a dot, a space or a leading digit is refused, and `defaults` is reserved."
1937
+ }
1938
+ }
1939
+ ],
1940
+ "defaultSnippets": [
1941
+ {
1942
+ "label": "one role",
1943
+ "description": "The role that may use this; a role that inherits from it may too.",
1944
+ "body": "${1:operate}"
1945
+ },
1946
+ {
1947
+ "label": "any of several roles",
1948
+ "description": "A list of roles; holding one of them, or inheriting from one, is enough.",
1949
+ "body": [
1950
+ "${1:operate}",
1951
+ "${2:admin}"
1952
+ ]
1953
+ }
1954
+ ],
1955
+ "description": "Who may read this robot's job history, in place of the organization's default for `job_history`. One role key, or a list of keys. A run names the person who started it, so whoever may read the history learns who else has been driving the robot."
1956
+ }
1957
+ },
1958
+ "additionalProperties": false,
1959
+ "description": "Who may use what on this robot, beyond the `role` an entry can carry itself: ordered `rules` over ROS name patterns, and the robot-level `assets` and `job_history`. Everything in it is optional. For an entry the precedence is its own `role`, then the first rule that fits, then the organization's default for its kind; only the published version counts. The robot ignores this section.",
1960
+ "defaultSnippets": [
1961
+ {
1962
+ "label": "access, with one rule",
1963
+ "description": "A rule that gives everything under `/arm` to one role; entries it does not fit keep the organization's defaults.",
1964
+ "body": {
1965
+ "rules": [
1966
+ {
1967
+ "match": "${1:/arm/**}",
1968
+ "role": "${2:admin}"
1969
+ }
1970
+ ]
1971
+ }
1972
+ }
1973
+ ]
1974
+ },
1621
1975
  "low_bandwidth": {
1622
1976
  "description": "Overrides for the bridge's low-bandwidth mode; see the section schema.",
1623
1977
  "defaultSnippets": [
@@ -1724,6 +2078,36 @@
1724
2078
  }
1725
2079
  ]
1726
2080
  },
2081
+ "updated_by": {
2082
+ "description": "Who saved the draft last. `null` when nobody has saved it yet, when the cloud itself rewrote it (a slug rename), when the member has since been removed, or when the draft is older than this field. Absent when the server predates this field: read an absent field as unknown, the same as `null`. The cloud always sends it.",
2083
+ "anyOf": [
2084
+ {
2085
+ "type": "object",
2086
+ "properties": {
2087
+ "id": {
2088
+ "type": "string",
2089
+ "format": "uuid",
2090
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
2091
+ "description": "The team member's id."
2092
+ },
2093
+ "name": {
2094
+ "type": "string",
2095
+ "minLength": 1,
2096
+ "maxLength": 200,
2097
+ "description": "The member's display name, or the local part of the email address when the member has none. Never a full email address."
2098
+ }
2099
+ },
2100
+ "required": [
2101
+ "id",
2102
+ "name"
2103
+ ],
2104
+ "additionalProperties": false
2105
+ },
2106
+ {
2107
+ "type": "null"
2108
+ }
2109
+ ]
2110
+ },
1727
2111
  "issues": {
1728
2112
  "type": "array",
1729
2113
  "items": {