@fleetless/contracts 13.3.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.
- package/CHANGELOG.md +141 -0
- package/artifacts/openapi.json +1983 -784
- package/artifacts/routes.json +224 -208
- package/artifacts/schema/access-warning.schema.json +51 -0
- package/artifacts/schema/action-config.schema.json +35 -0
- package/artifacts/schema/app-access-response.schema.json +136 -0
- package/artifacts/schema/app-access.schema.json +80 -0
- package/artifacts/schema/app-deletion-summary.schema.json +0 -7
- package/artifacts/schema/app-invitation-list-response.schema.json +13 -6
- package/artifacts/schema/app-invitation.schema.json +5 -5
- package/artifacts/schema/app-list-response.schema.json +6 -6
- package/artifacts/schema/app-lock.schema.json +30 -0
- package/artifacts/schema/app-user-list-response.schema.json +13 -6
- package/artifacts/schema/app-user.schema.json +13 -6
- package/artifacts/schema/app.schema.json +6 -6
- package/artifacts/schema/auth-ok.schema.json +20 -6
- package/artifacts/schema/camera-list-response.schema.json +1 -1
- package/artifacts/schema/client-identity.schema.json +21 -6
- package/artifacts/schema/cloud-config.schema.json +359 -5
- package/artifacts/schema/config-draft-response.schema.json +359 -5
- package/artifacts/schema/config-version-response.schema.json +359 -5
- package/artifacts/schema/create-app-invitation-request.schema.json +4 -4
- package/artifacts/schema/create-app-user-request.schema.json +4 -4
- package/artifacts/schema/create-org-role-request.schema.json +33 -0
- package/artifacts/schema/dangling-reference.schema.json +129 -0
- package/artifacts/schema/datapoint-config.schema.json +35 -0
- package/artifacts/schema/datapoint-list-response.schema.json +1 -1
- package/artifacts/schema/effective-capability.schema.json +104 -0
- package/artifacts/schema/effective-rights-query.schema.json +19 -0
- package/artifacts/schema/effective-rights-response.schema.json +310 -0
- package/artifacts/schema/effective-robot-rights.schema.json +266 -0
- package/artifacts/schema/invoke-or-service-response.schema.json +1 -1
- package/artifacts/schema/invoke-response.schema.json +1 -1
- package/artifacts/schema/journal-intent-v2-body.schema.json +74 -0
- package/artifacts/schema/journal-intent-v2.schema.json +84 -0
- package/artifacts/schema/journal-replay-receipt-body.schema.json +1 -0
- package/artifacts/schema/journal-replay-receipt.schema.json +1 -0
- package/artifacts/schema/mcp-robot-datasheet.schema.json +2 -2
- package/artifacts/schema/org-role-list-response.schema.json +205 -0
- package/artifacts/schema/org-role.schema.json +59 -0
- package/artifacts/schema/patch-app-user-request.schema.json +4 -4
- package/artifacts/schema/patch-org-role-request.schema.json +38 -0
- package/artifacts/schema/publish-config-response.schema.json +48 -1
- package/artifacts/schema/publisher-config.schema.json +35 -0
- package/artifacts/schema/put-role-defaults-request.schema.json +127 -0
- package/artifacts/schema/reference-place.schema.json +111 -0
- package/artifacts/schema/rename-slug-response.schema.json +4 -3
- package/artifacts/schema/robot-config-doc.schema.json +359 -5
- package/artifacts/schema/role-cycle-details.schema.json +18 -0
- package/artifacts/schema/role-defaults-response.schema.json +59 -0
- package/artifacts/schema/role-rename-preview.schema.json +146 -0
- package/artifacts/schema/service-config.schema.json +35 -0
- package/artifacts/schema/slug-usage-response.schema.json +4 -3
- package/artifacts/schema/update-app-request.schema.json +0 -12
- package/dist/app-users.d.ts +11 -8
- package/dist/app-users.js +18 -10
- package/dist/apps.d.ts +242 -71
- package/dist/apps.js +205 -151
- package/dist/audit.d.ts +3 -3
- package/dist/billing.d.ts +10 -10
- package/dist/client-auth.d.ts +5 -2
- package/dist/client-auth.js +11 -3
- package/dist/client-robots.d.ts +1 -1
- package/dist/client-robots.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/config-issues.d.ts +1 -1
- package/dist/config-issues.js +1 -1
- package/dist/config.d.ts +77 -11
- package/dist/config.js +108 -14
- package/dist/errors.d.ts +14 -5
- package/dist/errors.js +37 -24
- package/dist/index.d.ts +18 -8
- package/dist/index.js +14 -4
- package/dist/journal-intents.d.ts +30 -0
- package/dist/journal-intents.js +3 -0
- package/dist/legal-acceptances.d.ts +2 -2
- package/dist/mcp.d.ts +5 -37
- package/dist/mcp.js +4 -14
- package/dist/org-roles.d.ts +182 -0
- package/dist/org-roles.js +198 -0
- package/dist/plans.d.ts +6 -6
- package/dist/protocol.d.ts +19 -1
- package/dist/realtime.d.ts +6 -3
- package/dist/realtime.js +1 -1
- package/dist/rest.d.ts +76 -25
- package/dist/rest.js +41 -29
- package/dist/rights.d.ts +197 -0
- package/dist/rights.js +396 -0
- package/dist/routes.js +185 -134
- package/package.json +1 -1
- package/artifacts/schema/mcp-role-preview-response.schema.json +0 -134
- package/artifacts/schema/role-delete-query.schema.json +0 -13
- package/artifacts/schema/role-in-use-details.schema.json +0 -28
- package/artifacts/schema/role-list-response.schema.json +0 -48
- package/artifacts/schema/role-permissions.schema.json +0 -61
- package/artifacts/schema/role-rename-request.schema.json +0 -16
- package/artifacts/schema/role.schema.json +0 -35
|
@@ -63,18 +63,33 @@
|
|
|
63
63
|
],
|
|
64
64
|
"description": "The app this session belongs to, and `null` for a developer — a developer is organisation-scoped and owns the configuration of every robot in the organisation rather than reaching one through an app."
|
|
65
65
|
},
|
|
66
|
-
"
|
|
66
|
+
"role": {
|
|
67
67
|
"anyOf": [
|
|
68
68
|
{
|
|
69
|
-
"type": "
|
|
70
|
-
"
|
|
71
|
-
|
|
69
|
+
"type": "object",
|
|
70
|
+
"properties": {
|
|
71
|
+
"key": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
74
|
+
"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.",
|
|
75
|
+
"description": "The role's key, the same string `fleetless.yaml` and the organization's role list write."
|
|
76
|
+
},
|
|
77
|
+
"name": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"description": "The role's display name, for showing the caller what they hold. Changing it changes nothing about rights."
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"required": [
|
|
83
|
+
"key",
|
|
84
|
+
"name"
|
|
85
|
+
],
|
|
86
|
+
"additionalProperties": false
|
|
72
87
|
},
|
|
73
88
|
{
|
|
74
89
|
"type": "null"
|
|
75
90
|
}
|
|
76
91
|
],
|
|
77
|
-
"description": "The role that decides what this caller may reach
|
|
92
|
+
"description": "The organization role that decides what this caller may reach: its key and display name. `null` when there is no role to name: for a developer and for a server key, which are not filtered by a role, and for an app user whose key names no role (the role was deleted), who then reaches nothing."
|
|
78
93
|
},
|
|
79
94
|
"email": {
|
|
80
95
|
"anyOf": [
|
|
@@ -107,7 +122,7 @@
|
|
|
107
122
|
"app_user_id",
|
|
108
123
|
"server_key_id",
|
|
109
124
|
"app_id",
|
|
110
|
-
"
|
|
125
|
+
"role",
|
|
111
126
|
"email",
|
|
112
127
|
"two_factor_enabled"
|
|
113
128
|
],
|
|
@@ -398,6 +398,41 @@
|
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
]
|
|
401
|
+
},
|
|
402
|
+
"role": {
|
|
403
|
+
"anyOf": [
|
|
404
|
+
{
|
|
405
|
+
"type": "string",
|
|
406
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
407
|
+
"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."
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"minItems": 1,
|
|
411
|
+
"maxItems": 50,
|
|
412
|
+
"type": "array",
|
|
413
|
+
"items": {
|
|
414
|
+
"type": "string",
|
|
415
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
416
|
+
"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."
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
],
|
|
420
|
+
"defaultSnippets": [
|
|
421
|
+
{
|
|
422
|
+
"label": "one role",
|
|
423
|
+
"description": "The role that may use this; a role that inherits from it may too.",
|
|
424
|
+
"body": "${1:operate}"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"label": "any of several roles",
|
|
428
|
+
"description": "A list of roles; holding one of them, or inheriting from one, is enough.",
|
|
429
|
+
"body": [
|
|
430
|
+
"${1:operate}",
|
|
431
|
+
"${2:admin}"
|
|
432
|
+
]
|
|
433
|
+
}
|
|
434
|
+
],
|
|
435
|
+
"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."
|
|
401
436
|
}
|
|
402
437
|
},
|
|
403
438
|
"required": [
|
|
@@ -442,7 +477,7 @@
|
|
|
442
477
|
}
|
|
443
478
|
]
|
|
444
479
|
},
|
|
445
|
-
"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
|
|
480
|
+
"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.",
|
|
446
481
|
"defaultSnippets": [
|
|
447
482
|
{
|
|
448
483
|
"label": "a datapoint",
|
|
@@ -671,6 +706,41 @@
|
|
|
671
706
|
"type": "string",
|
|
672
707
|
"minLength": 1,
|
|
673
708
|
"maxLength": 2000
|
|
709
|
+
},
|
|
710
|
+
"role": {
|
|
711
|
+
"anyOf": [
|
|
712
|
+
{
|
|
713
|
+
"type": "string",
|
|
714
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
715
|
+
"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."
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"minItems": 1,
|
|
719
|
+
"maxItems": 50,
|
|
720
|
+
"type": "array",
|
|
721
|
+
"items": {
|
|
722
|
+
"type": "string",
|
|
723
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
724
|
+
"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."
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
],
|
|
728
|
+
"defaultSnippets": [
|
|
729
|
+
{
|
|
730
|
+
"label": "one role",
|
|
731
|
+
"description": "The role that may use this; a role that inherits from it may too.",
|
|
732
|
+
"body": "${1:operate}"
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"label": "any of several roles",
|
|
736
|
+
"description": "A list of roles; holding one of them, or inheriting from one, is enough.",
|
|
737
|
+
"body": [
|
|
738
|
+
"${1:operate}",
|
|
739
|
+
"${2:admin}"
|
|
740
|
+
]
|
|
741
|
+
}
|
|
742
|
+
],
|
|
743
|
+
"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."
|
|
674
744
|
}
|
|
675
745
|
},
|
|
676
746
|
"required": [
|
|
@@ -690,7 +760,7 @@
|
|
|
690
760
|
}
|
|
691
761
|
]
|
|
692
762
|
},
|
|
693
|
-
"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
|
|
763
|
+
"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.",
|
|
694
764
|
"defaultSnippets": [
|
|
695
765
|
{
|
|
696
766
|
"label": "an action",
|
|
@@ -892,6 +962,41 @@
|
|
|
892
962
|
"type": "string",
|
|
893
963
|
"minLength": 1,
|
|
894
964
|
"maxLength": 2000
|
|
965
|
+
},
|
|
966
|
+
"role": {
|
|
967
|
+
"anyOf": [
|
|
968
|
+
{
|
|
969
|
+
"type": "string",
|
|
970
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
971
|
+
"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."
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
"minItems": 1,
|
|
975
|
+
"maxItems": 50,
|
|
976
|
+
"type": "array",
|
|
977
|
+
"items": {
|
|
978
|
+
"type": "string",
|
|
979
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
980
|
+
"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."
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
],
|
|
984
|
+
"defaultSnippets": [
|
|
985
|
+
{
|
|
986
|
+
"label": "one role",
|
|
987
|
+
"description": "The role that may use this; a role that inherits from it may too.",
|
|
988
|
+
"body": "${1:operate}"
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
"label": "any of several roles",
|
|
992
|
+
"description": "A list of roles; holding one of them, or inheriting from one, is enough.",
|
|
993
|
+
"body": [
|
|
994
|
+
"${1:operate}",
|
|
995
|
+
"${2:admin}"
|
|
996
|
+
]
|
|
997
|
+
}
|
|
998
|
+
],
|
|
999
|
+
"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."
|
|
895
1000
|
}
|
|
896
1001
|
},
|
|
897
1002
|
"required": [
|
|
@@ -911,7 +1016,7 @@
|
|
|
911
1016
|
}
|
|
912
1017
|
]
|
|
913
1018
|
},
|
|
914
|
-
"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
|
|
1019
|
+
"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.",
|
|
915
1020
|
"defaultSnippets": [
|
|
916
1021
|
{
|
|
917
1022
|
"label": "a service",
|
|
@@ -1163,6 +1268,41 @@
|
|
|
1163
1268
|
"type": "string",
|
|
1164
1269
|
"minLength": 1,
|
|
1165
1270
|
"maxLength": 2000
|
|
1271
|
+
},
|
|
1272
|
+
"role": {
|
|
1273
|
+
"anyOf": [
|
|
1274
|
+
{
|
|
1275
|
+
"type": "string",
|
|
1276
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
1277
|
+
"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."
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
"minItems": 1,
|
|
1281
|
+
"maxItems": 50,
|
|
1282
|
+
"type": "array",
|
|
1283
|
+
"items": {
|
|
1284
|
+
"type": "string",
|
|
1285
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
1286
|
+
"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."
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
],
|
|
1290
|
+
"defaultSnippets": [
|
|
1291
|
+
{
|
|
1292
|
+
"label": "one role",
|
|
1293
|
+
"description": "The role that may use this; a role that inherits from it may too.",
|
|
1294
|
+
"body": "${1:operate}"
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
"label": "any of several roles",
|
|
1298
|
+
"description": "A list of roles; holding one of them, or inheriting from one, is enough.",
|
|
1299
|
+
"body": [
|
|
1300
|
+
"${1:operate}",
|
|
1301
|
+
"${2:admin}"
|
|
1302
|
+
]
|
|
1303
|
+
}
|
|
1304
|
+
],
|
|
1305
|
+
"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."
|
|
1166
1306
|
}
|
|
1167
1307
|
},
|
|
1168
1308
|
"required": [
|
|
@@ -1219,7 +1359,7 @@
|
|
|
1219
1359
|
}
|
|
1220
1360
|
]
|
|
1221
1361
|
},
|
|
1222
|
-
"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
|
|
1362
|
+
"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.",
|
|
1223
1363
|
"defaultSnippets": [
|
|
1224
1364
|
{
|
|
1225
1365
|
"label": "a publisher, with its parameters and its failsafe",
|
|
@@ -1573,6 +1713,41 @@
|
|
|
1573
1713
|
"type": "string",
|
|
1574
1714
|
"minLength": 1,
|
|
1575
1715
|
"maxLength": 2000
|
|
1716
|
+
},
|
|
1717
|
+
"role": {
|
|
1718
|
+
"anyOf": [
|
|
1719
|
+
{
|
|
1720
|
+
"type": "string",
|
|
1721
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
1722
|
+
"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."
|
|
1723
|
+
},
|
|
1724
|
+
{
|
|
1725
|
+
"minItems": 1,
|
|
1726
|
+
"maxItems": 50,
|
|
1727
|
+
"type": "array",
|
|
1728
|
+
"items": {
|
|
1729
|
+
"type": "string",
|
|
1730
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
1731
|
+
"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."
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
],
|
|
1735
|
+
"defaultSnippets": [
|
|
1736
|
+
{
|
|
1737
|
+
"label": "one role",
|
|
1738
|
+
"description": "The role that may use this; a role that inherits from it may too.",
|
|
1739
|
+
"body": "${1:operate}"
|
|
1740
|
+
},
|
|
1741
|
+
{
|
|
1742
|
+
"label": "any of several roles",
|
|
1743
|
+
"description": "A list of roles; holding one of them, or inheriting from one, is enough.",
|
|
1744
|
+
"body": [
|
|
1745
|
+
"${1:operate}",
|
|
1746
|
+
"${2:admin}"
|
|
1747
|
+
]
|
|
1748
|
+
}
|
|
1749
|
+
],
|
|
1750
|
+
"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."
|
|
1576
1751
|
}
|
|
1577
1752
|
},
|
|
1578
1753
|
"required": [
|
|
@@ -1603,7 +1778,7 @@
|
|
|
1603
1778
|
}
|
|
1604
1779
|
]
|
|
1605
1780
|
},
|
|
1606
|
-
"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
|
|
1781
|
+
"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.",
|
|
1607
1782
|
"defaultSnippets": [
|
|
1608
1783
|
{
|
|
1609
1784
|
"label": "a camera",
|
|
@@ -1625,6 +1800,185 @@
|
|
|
1625
1800
|
}
|
|
1626
1801
|
]
|
|
1627
1802
|
},
|
|
1803
|
+
"access": {
|
|
1804
|
+
"type": "object",
|
|
1805
|
+
"properties": {
|
|
1806
|
+
"rules": {
|
|
1807
|
+
"maxItems": 100,
|
|
1808
|
+
"type": "array",
|
|
1809
|
+
"items": {
|
|
1810
|
+
"type": "object",
|
|
1811
|
+
"properties": {
|
|
1812
|
+
"match": {
|
|
1813
|
+
"type": "string",
|
|
1814
|
+
"maxLength": 255,
|
|
1815
|
+
"pattern": "^(?:\\/(?:\\*\\*|(?![A-Za-z0-9_*]*\\*\\*)(?:\\*|[A-Za-z_])[A-Za-z0-9_*]*))+$",
|
|
1816
|
+
"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.",
|
|
1817
|
+
"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."
|
|
1818
|
+
},
|
|
1819
|
+
"kinds": {
|
|
1820
|
+
"minItems": 1,
|
|
1821
|
+
"maxItems": 3,
|
|
1822
|
+
"type": "array",
|
|
1823
|
+
"items": {
|
|
1824
|
+
"type": "string",
|
|
1825
|
+
"enum": [
|
|
1826
|
+
"read",
|
|
1827
|
+
"invoke",
|
|
1828
|
+
"publish"
|
|
1829
|
+
],
|
|
1830
|
+
"enumDescriptions": [
|
|
1831
|
+
"Datapoints and cameras: seeing what the robot reports.",
|
|
1832
|
+
"Services and actions: asking the robot to do something.",
|
|
1833
|
+
"Publishers: sending to the robot, which is what driving it is."
|
|
1834
|
+
]
|
|
1835
|
+
},
|
|
1836
|
+
"description": "Narrows the rule to some kinds of access. Without it the rule fits entries of every kind."
|
|
1837
|
+
},
|
|
1838
|
+
"role": {
|
|
1839
|
+
"anyOf": [
|
|
1840
|
+
{
|
|
1841
|
+
"type": "string",
|
|
1842
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
1843
|
+
"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."
|
|
1844
|
+
},
|
|
1845
|
+
{
|
|
1846
|
+
"minItems": 1,
|
|
1847
|
+
"maxItems": 50,
|
|
1848
|
+
"type": "array",
|
|
1849
|
+
"items": {
|
|
1850
|
+
"type": "string",
|
|
1851
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
1852
|
+
"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."
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
],
|
|
1856
|
+
"defaultSnippets": [
|
|
1857
|
+
{
|
|
1858
|
+
"label": "one role",
|
|
1859
|
+
"description": "The role that may use this; a role that inherits from it may too.",
|
|
1860
|
+
"body": "${1:operate}"
|
|
1861
|
+
},
|
|
1862
|
+
{
|
|
1863
|
+
"label": "any of several roles",
|
|
1864
|
+
"description": "A list of roles; holding one of them, or inheriting from one, is enough.",
|
|
1865
|
+
"body": [
|
|
1866
|
+
"${1:operate}",
|
|
1867
|
+
"${2:admin}"
|
|
1868
|
+
]
|
|
1869
|
+
}
|
|
1870
|
+
],
|
|
1871
|
+
"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."
|
|
1872
|
+
}
|
|
1873
|
+
},
|
|
1874
|
+
"required": [
|
|
1875
|
+
"match",
|
|
1876
|
+
"role"
|
|
1877
|
+
],
|
|
1878
|
+
"additionalProperties": false
|
|
1879
|
+
},
|
|
1880
|
+
"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.",
|
|
1881
|
+
"defaultSnippets": [
|
|
1882
|
+
{
|
|
1883
|
+
"label": "a rule over a namespace",
|
|
1884
|
+
"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.",
|
|
1885
|
+
"body": [
|
|
1886
|
+
{
|
|
1887
|
+
"match": "${1:/arm/**}",
|
|
1888
|
+
"role": "${2:admin}"
|
|
1889
|
+
}
|
|
1890
|
+
]
|
|
1891
|
+
}
|
|
1892
|
+
]
|
|
1893
|
+
},
|
|
1894
|
+
"assets": {
|
|
1895
|
+
"anyOf": [
|
|
1896
|
+
{
|
|
1897
|
+
"type": "string",
|
|
1898
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
1899
|
+
"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."
|
|
1900
|
+
},
|
|
1901
|
+
{
|
|
1902
|
+
"minItems": 1,
|
|
1903
|
+
"maxItems": 50,
|
|
1904
|
+
"type": "array",
|
|
1905
|
+
"items": {
|
|
1906
|
+
"type": "string",
|
|
1907
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
1908
|
+
"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."
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
],
|
|
1912
|
+
"defaultSnippets": [
|
|
1913
|
+
{
|
|
1914
|
+
"label": "one role",
|
|
1915
|
+
"description": "The role that may use this; a role that inherits from it may too.",
|
|
1916
|
+
"body": "${1:operate}"
|
|
1917
|
+
},
|
|
1918
|
+
{
|
|
1919
|
+
"label": "any of several roles",
|
|
1920
|
+
"description": "A list of roles; holding one of them, or inheriting from one, is enough.",
|
|
1921
|
+
"body": [
|
|
1922
|
+
"${1:operate}",
|
|
1923
|
+
"${2:admin}"
|
|
1924
|
+
]
|
|
1925
|
+
}
|
|
1926
|
+
],
|
|
1927
|
+
"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."
|
|
1928
|
+
},
|
|
1929
|
+
"job_history": {
|
|
1930
|
+
"anyOf": [
|
|
1931
|
+
{
|
|
1932
|
+
"type": "string",
|
|
1933
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
1934
|
+
"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."
|
|
1935
|
+
},
|
|
1936
|
+
{
|
|
1937
|
+
"minItems": 1,
|
|
1938
|
+
"maxItems": 50,
|
|
1939
|
+
"type": "array",
|
|
1940
|
+
"items": {
|
|
1941
|
+
"type": "string",
|
|
1942
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
1943
|
+
"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."
|
|
1944
|
+
}
|
|
1945
|
+
}
|
|
1946
|
+
],
|
|
1947
|
+
"defaultSnippets": [
|
|
1948
|
+
{
|
|
1949
|
+
"label": "one role",
|
|
1950
|
+
"description": "The role that may use this; a role that inherits from it may too.",
|
|
1951
|
+
"body": "${1:operate}"
|
|
1952
|
+
},
|
|
1953
|
+
{
|
|
1954
|
+
"label": "any of several roles",
|
|
1955
|
+
"description": "A list of roles; holding one of them, or inheriting from one, is enough.",
|
|
1956
|
+
"body": [
|
|
1957
|
+
"${1:operate}",
|
|
1958
|
+
"${2:admin}"
|
|
1959
|
+
]
|
|
1960
|
+
}
|
|
1961
|
+
],
|
|
1962
|
+
"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."
|
|
1963
|
+
}
|
|
1964
|
+
},
|
|
1965
|
+
"additionalProperties": false,
|
|
1966
|
+
"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.",
|
|
1967
|
+
"defaultSnippets": [
|
|
1968
|
+
{
|
|
1969
|
+
"label": "access, with one rule",
|
|
1970
|
+
"description": "A rule that gives everything under `/arm` to one role; entries it does not fit keep the organization's defaults.",
|
|
1971
|
+
"body": {
|
|
1972
|
+
"rules": [
|
|
1973
|
+
{
|
|
1974
|
+
"match": "${1:/arm/**}",
|
|
1975
|
+
"role": "${2:admin}"
|
|
1976
|
+
}
|
|
1977
|
+
]
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1980
|
+
]
|
|
1981
|
+
},
|
|
1628
1982
|
"low_bandwidth": {
|
|
1629
1983
|
"description": "Overrides for the bridge's low-bandwidth mode; see the section schema.",
|
|
1630
1984
|
"defaultSnippets": [
|