@fleetless/contracts 13.3.0 → 15.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 +304 -0
- package/artifacts/openapi.json +20156 -10513
- package/artifacts/routes.json +1429 -292
- package/artifacts/schema/access-warning.schema.json +51 -0
- package/artifacts/schema/action-config.schema.json +35 -0
- package/artifacts/schema/addon-catalogue-entry.schema.json +3 -1
- package/artifacts/schema/admin-plan-change-request.schema.json +26 -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 +15 -8
- 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/asset-plan-limit-details.schema.json +3 -1
- 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/collection-actor.schema.json +35 -0
- package/artifacts/schema/collection-definitions-response.schema.json +612 -0
- package/artifacts/schema/collection-event.schema.json +216 -0
- package/artifacts/schema/collection-export-query.schema.json +56 -0
- package/artifacts/schema/collection-filter.schema.json +9 -0
- package/artifacts/schema/collection-import-preview.schema.json +143 -0
- package/artifacts/schema/collection-import-request.schema.json +105 -0
- package/artifacts/schema/collection-import-result.schema.json +38 -0
- package/artifacts/schema/collection-list-response.schema.json +119 -0
- package/artifacts/schema/collection-record-get-query.schema.json +12 -0
- package/artifacts/schema/collection-record-history-query.schema.json +35 -0
- package/artifacts/schema/collection-record-history-response.schema.json +389 -0
- package/artifacts/schema/collection-record-list-query.schema.json +67 -0
- package/artifacts/schema/collection-record-list-response.schema.json +212 -0
- package/artifacts/schema/collection-record-restore-request.schema.json +14 -0
- package/artifacts/schema/collection-record-write.schema.json +31 -0
- package/artifacts/schema/collection-record.schema.json +180 -0
- package/artifacts/schema/collection-revision.schema.json +295 -0
- package/artifacts/schema/collection-subscribe-error.schema.json +31 -0
- package/artifacts/schema/collection-subscribe.schema.json +48 -0
- package/artifacts/schema/collection-subscribed.schema.json +22 -0
- package/artifacts/schema/collection-summary.schema.json +92 -0
- package/artifacts/schema/collection-unsubscribe.schema.json +22 -0
- package/artifacts/schema/collections-access-change.schema.json +34 -0
- package/artifacts/schema/collections-document.schema.json +732 -0
- package/artifacts/schema/collections-draft-response.schema.json +845 -0
- package/artifacts/schema/collections-effect.schema.json +384 -0
- package/artifacts/schema/collections-issue.schema.json +36 -0
- package/artifacts/schema/collections-publish-request.schema.json +18 -0
- package/artifacts/schema/collections-publish-response.schema.json +450 -0
- package/artifacts/schema/collections-purge-preview.schema.json +60 -0
- package/artifacts/schema/collections-purge-request.schema.json +27 -0
- package/artifacts/schema/collections-purge-response.schema.json +30 -0
- package/artifacts/schema/collections-restore-preview-query.schema.json +20 -0
- package/artifacts/schema/collections-restore-preview.schema.json +581 -0
- package/artifacts/schema/collections-restore-request.schema.json +27 -0
- package/artifacts/schema/collections-restore-response.schema.json +455 -0
- package/artifacts/schema/collections-schema-preview.schema.json +519 -0
- package/artifacts/schema/collections-schema-published.schema.json +22 -0
- package/artifacts/schema/collections-version-response.schema.json +869 -0
- package/artifacts/schema/collections-version-summary.schema.json +139 -0
- package/artifacts/schema/collections-versions-response.schema.json +167 -0
- package/artifacts/schema/config-draft-response.schema.json +359 -5
- package/artifacts/schema/config-version-response.schema.json +359 -5
- package/artifacts/schema/confirmation-required-details.schema.json +13 -0
- 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 +130 -0
- package/artifacts/schema/datapoint-config.schema.json +35 -0
- package/artifacts/schema/datapoint-list-response.schema.json +2 -2
- 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 +396 -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-plan.schema.json +29 -1
- package/artifacts/schema/org-quota-usage-counts.schema.json +18 -0
- package/artifacts/schema/org-quota-usage.schema.json +47 -1
- package/artifacts/schema/org-quotas.schema.json +29 -1
- package/artifacts/schema/org-role-list-response.schema.json +206 -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/plan-catalogue-entry.schema.json +29 -1
- package/artifacts/schema/plan-change-decision-status-response.schema.json +29 -1
- package/artifacts/schema/plan-limit-details.schema.json +3 -1
- package/artifacts/schema/plan-limits.schema.json +29 -1
- package/artifacts/schema/plan-overrides.schema.json +26 -0
- package/artifacts/schema/publish-config-response.schema.json +48 -1
- package/artifacts/schema/publisher-config.schema.json +35 -0
- package/artifacts/schema/put-collections-draft-request.schema.json +16 -0
- package/artifacts/schema/put-role-defaults-request.schema.json +127 -0
- package/artifacts/schema/record-changed-details.schema.json +16 -0
- package/artifacts/schema/record-referenced-details.schema.json +35 -0
- package/artifacts/schema/reference-invalid-details.schema.json +25 -0
- package/artifacts/schema/reference-place.schema.json +112 -0
- package/artifacts/schema/rename-slug-response.schema.json +4 -3
- package/artifacts/schema/required-missing-details.schema.json +19 -0
- package/artifacts/schema/robot-config-doc.schema.json +359 -5
- package/artifacts/schema/robot-deletion-summary.schema.json +33 -1
- package/artifacts/schema/role-collection-rights.schema.json +82 -0
- 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 +147 -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 +258 -71
- package/dist/apps.js +215 -151
- package/dist/audit.d.ts +35 -5
- package/dist/audit.js +40 -2
- 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/collections-issues.d.ts +67 -0
- package/dist/collections-issues.js +340 -0
- package/dist/collections-records.d.ts +562 -0
- package/dist/collections-records.js +525 -0
- package/dist/collections-rights.d.ts +17 -0
- package/dist/collections-rights.js +41 -0
- package/dist/collections-schema.d.ts +1064 -0
- package/dist/collections-schema.js +386 -0
- package/dist/collections-templates.d.ts +55 -0
- package/dist/collections-templates.js +137 -0
- package/dist/collections-transfer.d.ts +101 -0
- package/dist/collections-transfer.js +206 -0
- package/dist/collections-values.d.ts +67 -0
- package/dist/collections-values.js +284 -0
- package/dist/collections.d.ts +568 -0
- package/dist/collections.js +332 -0
- 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 +78 -12
- package/dist/config.js +109 -15
- package/dist/errors.d.ts +63 -5
- package/dist/errors.js +152 -24
- package/dist/index.d.ts +40 -14
- package/dist/index.js +27 -7
- 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 +186 -0
- package/dist/org-roles.js +199 -0
- package/dist/plans.d.ts +25 -7
- package/dist/plans.js +21 -1
- package/dist/protocol.d.ts +19 -1
- package/dist/realtime.d.ts +172 -3
- package/dist/realtime.js +164 -1
- package/dist/rest.d.ts +104 -53
- package/dist/rest.js +79 -55
- package/dist/rights.d.ts +197 -0
- package/dist/rights.js +396 -0
- package/dist/routes.d.ts +1 -1
- package/dist/routes.js +675 -150
- package/package.json +1 -1
- package/artifacts/schema/mcp-role-preview-response.schema.json +0 -134
- package/artifacts/schema/put-robot-details-request.schema.json +0 -41
- package/artifacts/schema/put-robot-details-response.schema.json +0 -43
- package/artifacts/schema/robot-details-doc.schema.json +0 -33
- 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
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"type": "object",
|
|
4
4
|
"properties": {
|
|
5
|
-
"
|
|
5
|
+
"rewritten_locks": {
|
|
6
6
|
"type": "integer",
|
|
7
7
|
"minimum": 0,
|
|
8
|
-
"maximum": 9007199254740991
|
|
8
|
+
"maximum": 9007199254740991,
|
|
9
|
+
"description": "The app locks that listed the old slug and now list the new one as well. Locks follow a rename, in every app of the organization, so a renamed capability stays locked."
|
|
9
10
|
},
|
|
10
11
|
"history_moved": {
|
|
11
12
|
"type": "boolean"
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
}
|
|
17
18
|
},
|
|
18
19
|
"required": [
|
|
19
|
-
"
|
|
20
|
+
"rewritten_locks",
|
|
20
21
|
"history_moved",
|
|
21
22
|
"requires_publish"
|
|
22
23
|
],
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"fields": {
|
|
6
|
+
"minItems": 1,
|
|
7
|
+
"type": "array",
|
|
8
|
+
"items": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"minLength": 1
|
|
11
|
+
},
|
|
12
|
+
"description": "The keys of the required fields that have no value."
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": [
|
|
16
|
+
"fields"
|
|
17
|
+
],
|
|
18
|
+
"additionalProperties": false
|
|
19
|
+
}
|
|
@@ -386,6 +386,41 @@
|
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
388
|
]
|
|
389
|
+
},
|
|
390
|
+
"role": {
|
|
391
|
+
"anyOf": [
|
|
392
|
+
{
|
|
393
|
+
"type": "string",
|
|
394
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
395
|
+
"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."
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"minItems": 1,
|
|
399
|
+
"maxItems": 50,
|
|
400
|
+
"type": "array",
|
|
401
|
+
"items": {
|
|
402
|
+
"type": "string",
|
|
403
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
404
|
+
"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."
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
],
|
|
408
|
+
"defaultSnippets": [
|
|
409
|
+
{
|
|
410
|
+
"label": "one role",
|
|
411
|
+
"description": "The role that may use this; a role that inherits from it may too.",
|
|
412
|
+
"body": "${1:operate}"
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"label": "any of several roles",
|
|
416
|
+
"description": "A list of roles; holding one of them, or inheriting from one, is enough.",
|
|
417
|
+
"body": [
|
|
418
|
+
"${1:operate}",
|
|
419
|
+
"${2:admin}"
|
|
420
|
+
]
|
|
421
|
+
}
|
|
422
|
+
],
|
|
423
|
+
"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."
|
|
389
424
|
}
|
|
390
425
|
},
|
|
391
426
|
"required": [
|
|
@@ -430,7 +465,7 @@
|
|
|
430
465
|
}
|
|
431
466
|
]
|
|
432
467
|
},
|
|
433
|
-
"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
|
|
468
|
+
"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` is 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 four are refused when the document is validated.",
|
|
434
469
|
"defaultSnippets": [
|
|
435
470
|
{
|
|
436
471
|
"label": "a datapoint",
|
|
@@ -659,6 +694,41 @@
|
|
|
659
694
|
"type": "string",
|
|
660
695
|
"minLength": 1,
|
|
661
696
|
"maxLength": 2000
|
|
697
|
+
},
|
|
698
|
+
"role": {
|
|
699
|
+
"anyOf": [
|
|
700
|
+
{
|
|
701
|
+
"type": "string",
|
|
702
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
703
|
+
"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."
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"minItems": 1,
|
|
707
|
+
"maxItems": 50,
|
|
708
|
+
"type": "array",
|
|
709
|
+
"items": {
|
|
710
|
+
"type": "string",
|
|
711
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
712
|
+
"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."
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
],
|
|
716
|
+
"defaultSnippets": [
|
|
717
|
+
{
|
|
718
|
+
"label": "one role",
|
|
719
|
+
"description": "The role that may use this; a role that inherits from it may too.",
|
|
720
|
+
"body": "${1:operate}"
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
"label": "any of several roles",
|
|
724
|
+
"description": "A list of roles; holding one of them, or inheriting from one, is enough.",
|
|
725
|
+
"body": [
|
|
726
|
+
"${1:operate}",
|
|
727
|
+
"${2:admin}"
|
|
728
|
+
]
|
|
729
|
+
}
|
|
730
|
+
],
|
|
731
|
+
"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."
|
|
662
732
|
}
|
|
663
733
|
},
|
|
664
734
|
"required": [
|
|
@@ -678,7 +748,7 @@
|
|
|
678
748
|
}
|
|
679
749
|
]
|
|
680
750
|
},
|
|
681
|
-
"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
|
|
751
|
+
"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` is 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 four are refused when the document is validated.",
|
|
682
752
|
"defaultSnippets": [
|
|
683
753
|
{
|
|
684
754
|
"label": "an action",
|
|
@@ -880,6 +950,41 @@
|
|
|
880
950
|
"type": "string",
|
|
881
951
|
"minLength": 1,
|
|
882
952
|
"maxLength": 2000
|
|
953
|
+
},
|
|
954
|
+
"role": {
|
|
955
|
+
"anyOf": [
|
|
956
|
+
{
|
|
957
|
+
"type": "string",
|
|
958
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
959
|
+
"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."
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
"minItems": 1,
|
|
963
|
+
"maxItems": 50,
|
|
964
|
+
"type": "array",
|
|
965
|
+
"items": {
|
|
966
|
+
"type": "string",
|
|
967
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
968
|
+
"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."
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
],
|
|
972
|
+
"defaultSnippets": [
|
|
973
|
+
{
|
|
974
|
+
"label": "one role",
|
|
975
|
+
"description": "The role that may use this; a role that inherits from it may too.",
|
|
976
|
+
"body": "${1:operate}"
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"label": "any of several roles",
|
|
980
|
+
"description": "A list of roles; holding one of them, or inheriting from one, is enough.",
|
|
981
|
+
"body": [
|
|
982
|
+
"${1:operate}",
|
|
983
|
+
"${2:admin}"
|
|
984
|
+
]
|
|
985
|
+
}
|
|
986
|
+
],
|
|
987
|
+
"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."
|
|
883
988
|
}
|
|
884
989
|
},
|
|
885
990
|
"required": [
|
|
@@ -899,7 +1004,7 @@
|
|
|
899
1004
|
}
|
|
900
1005
|
]
|
|
901
1006
|
},
|
|
902
|
-
"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
|
|
1007
|
+
"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` is 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 four are refused when the document is validated.",
|
|
903
1008
|
"defaultSnippets": [
|
|
904
1009
|
{
|
|
905
1010
|
"label": "a service",
|
|
@@ -1151,6 +1256,41 @@
|
|
|
1151
1256
|
"type": "string",
|
|
1152
1257
|
"minLength": 1,
|
|
1153
1258
|
"maxLength": 2000
|
|
1259
|
+
},
|
|
1260
|
+
"role": {
|
|
1261
|
+
"anyOf": [
|
|
1262
|
+
{
|
|
1263
|
+
"type": "string",
|
|
1264
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
1265
|
+
"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."
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
"minItems": 1,
|
|
1269
|
+
"maxItems": 50,
|
|
1270
|
+
"type": "array",
|
|
1271
|
+
"items": {
|
|
1272
|
+
"type": "string",
|
|
1273
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
1274
|
+
"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."
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
],
|
|
1278
|
+
"defaultSnippets": [
|
|
1279
|
+
{
|
|
1280
|
+
"label": "one role",
|
|
1281
|
+
"description": "The role that may use this; a role that inherits from it may too.",
|
|
1282
|
+
"body": "${1:operate}"
|
|
1283
|
+
},
|
|
1284
|
+
{
|
|
1285
|
+
"label": "any of several roles",
|
|
1286
|
+
"description": "A list of roles; holding one of them, or inheriting from one, is enough.",
|
|
1287
|
+
"body": [
|
|
1288
|
+
"${1:operate}",
|
|
1289
|
+
"${2:admin}"
|
|
1290
|
+
]
|
|
1291
|
+
}
|
|
1292
|
+
],
|
|
1293
|
+
"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."
|
|
1154
1294
|
}
|
|
1155
1295
|
},
|
|
1156
1296
|
"required": [
|
|
@@ -1207,7 +1347,7 @@
|
|
|
1207
1347
|
}
|
|
1208
1348
|
]
|
|
1209
1349
|
},
|
|
1210
|
-
"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
|
|
1350
|
+
"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` is 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 four are refused when the document is validated.",
|
|
1211
1351
|
"defaultSnippets": [
|
|
1212
1352
|
{
|
|
1213
1353
|
"label": "a publisher, with its parameters and its failsafe",
|
|
@@ -1561,6 +1701,41 @@
|
|
|
1561
1701
|
"type": "string",
|
|
1562
1702
|
"minLength": 1,
|
|
1563
1703
|
"maxLength": 2000
|
|
1704
|
+
},
|
|
1705
|
+
"role": {
|
|
1706
|
+
"anyOf": [
|
|
1707
|
+
{
|
|
1708
|
+
"type": "string",
|
|
1709
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
1710
|
+
"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."
|
|
1711
|
+
},
|
|
1712
|
+
{
|
|
1713
|
+
"minItems": 1,
|
|
1714
|
+
"maxItems": 50,
|
|
1715
|
+
"type": "array",
|
|
1716
|
+
"items": {
|
|
1717
|
+
"type": "string",
|
|
1718
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
1719
|
+
"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."
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
],
|
|
1723
|
+
"defaultSnippets": [
|
|
1724
|
+
{
|
|
1725
|
+
"label": "one role",
|
|
1726
|
+
"description": "The role that may use this; a role that inherits from it may too.",
|
|
1727
|
+
"body": "${1:operate}"
|
|
1728
|
+
},
|
|
1729
|
+
{
|
|
1730
|
+
"label": "any of several roles",
|
|
1731
|
+
"description": "A list of roles; holding one of them, or inheriting from one, is enough.",
|
|
1732
|
+
"body": [
|
|
1733
|
+
"${1:operate}",
|
|
1734
|
+
"${2:admin}"
|
|
1735
|
+
]
|
|
1736
|
+
}
|
|
1737
|
+
],
|
|
1738
|
+
"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."
|
|
1564
1739
|
}
|
|
1565
1740
|
},
|
|
1566
1741
|
"required": [
|
|
@@ -1591,7 +1766,7 @@
|
|
|
1591
1766
|
}
|
|
1592
1767
|
]
|
|
1593
1768
|
},
|
|
1594
|
-
"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
|
|
1769
|
+
"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` is 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 four are refused when the document is validated.",
|
|
1595
1770
|
"defaultSnippets": [
|
|
1596
1771
|
{
|
|
1597
1772
|
"label": "a camera",
|
|
@@ -1613,6 +1788,185 @@
|
|
|
1613
1788
|
}
|
|
1614
1789
|
]
|
|
1615
1790
|
},
|
|
1791
|
+
"access": {
|
|
1792
|
+
"type": "object",
|
|
1793
|
+
"properties": {
|
|
1794
|
+
"rules": {
|
|
1795
|
+
"maxItems": 100,
|
|
1796
|
+
"type": "array",
|
|
1797
|
+
"items": {
|
|
1798
|
+
"type": "object",
|
|
1799
|
+
"properties": {
|
|
1800
|
+
"match": {
|
|
1801
|
+
"type": "string",
|
|
1802
|
+
"maxLength": 255,
|
|
1803
|
+
"pattern": "^(?:\\/(?:\\*\\*|(?![A-Za-z0-9_*]*\\*\\*)(?:\\*|[A-Za-z_])[A-Za-z0-9_*]*))+$",
|
|
1804
|
+
"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.",
|
|
1805
|
+
"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."
|
|
1806
|
+
},
|
|
1807
|
+
"kinds": {
|
|
1808
|
+
"minItems": 1,
|
|
1809
|
+
"maxItems": 3,
|
|
1810
|
+
"type": "array",
|
|
1811
|
+
"items": {
|
|
1812
|
+
"type": "string",
|
|
1813
|
+
"enum": [
|
|
1814
|
+
"read",
|
|
1815
|
+
"invoke",
|
|
1816
|
+
"publish"
|
|
1817
|
+
],
|
|
1818
|
+
"enumDescriptions": [
|
|
1819
|
+
"Datapoints and cameras: seeing what the robot reports.",
|
|
1820
|
+
"Services and actions: asking the robot to do something.",
|
|
1821
|
+
"Publishers: sending to the robot, which is what driving it is."
|
|
1822
|
+
]
|
|
1823
|
+
},
|
|
1824
|
+
"description": "Narrows the rule to some kinds of access. Without it the rule fits entries of every kind."
|
|
1825
|
+
},
|
|
1826
|
+
"role": {
|
|
1827
|
+
"anyOf": [
|
|
1828
|
+
{
|
|
1829
|
+
"type": "string",
|
|
1830
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
1831
|
+
"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."
|
|
1832
|
+
},
|
|
1833
|
+
{
|
|
1834
|
+
"minItems": 1,
|
|
1835
|
+
"maxItems": 50,
|
|
1836
|
+
"type": "array",
|
|
1837
|
+
"items": {
|
|
1838
|
+
"type": "string",
|
|
1839
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
1840
|
+
"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."
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
],
|
|
1844
|
+
"defaultSnippets": [
|
|
1845
|
+
{
|
|
1846
|
+
"label": "one role",
|
|
1847
|
+
"description": "The role that may use this; a role that inherits from it may too.",
|
|
1848
|
+
"body": "${1:operate}"
|
|
1849
|
+
},
|
|
1850
|
+
{
|
|
1851
|
+
"label": "any of several roles",
|
|
1852
|
+
"description": "A list of roles; holding one of them, or inheriting from one, is enough.",
|
|
1853
|
+
"body": [
|
|
1854
|
+
"${1:operate}",
|
|
1855
|
+
"${2:admin}"
|
|
1856
|
+
]
|
|
1857
|
+
}
|
|
1858
|
+
],
|
|
1859
|
+
"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."
|
|
1860
|
+
}
|
|
1861
|
+
},
|
|
1862
|
+
"required": [
|
|
1863
|
+
"match",
|
|
1864
|
+
"role"
|
|
1865
|
+
],
|
|
1866
|
+
"additionalProperties": false
|
|
1867
|
+
},
|
|
1868
|
+
"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.",
|
|
1869
|
+
"defaultSnippets": [
|
|
1870
|
+
{
|
|
1871
|
+
"label": "a rule over a namespace",
|
|
1872
|
+
"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.",
|
|
1873
|
+
"body": [
|
|
1874
|
+
{
|
|
1875
|
+
"match": "${1:/arm/**}",
|
|
1876
|
+
"role": "${2:admin}"
|
|
1877
|
+
}
|
|
1878
|
+
]
|
|
1879
|
+
}
|
|
1880
|
+
]
|
|
1881
|
+
},
|
|
1882
|
+
"assets": {
|
|
1883
|
+
"anyOf": [
|
|
1884
|
+
{
|
|
1885
|
+
"type": "string",
|
|
1886
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
1887
|
+
"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."
|
|
1888
|
+
},
|
|
1889
|
+
{
|
|
1890
|
+
"minItems": 1,
|
|
1891
|
+
"maxItems": 50,
|
|
1892
|
+
"type": "array",
|
|
1893
|
+
"items": {
|
|
1894
|
+
"type": "string",
|
|
1895
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
1896
|
+
"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."
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1899
|
+
],
|
|
1900
|
+
"defaultSnippets": [
|
|
1901
|
+
{
|
|
1902
|
+
"label": "one role",
|
|
1903
|
+
"description": "The role that may use this; a role that inherits from it may too.",
|
|
1904
|
+
"body": "${1:operate}"
|
|
1905
|
+
},
|
|
1906
|
+
{
|
|
1907
|
+
"label": "any of several roles",
|
|
1908
|
+
"description": "A list of roles; holding one of them, or inheriting from one, is enough.",
|
|
1909
|
+
"body": [
|
|
1910
|
+
"${1:operate}",
|
|
1911
|
+
"${2:admin}"
|
|
1912
|
+
]
|
|
1913
|
+
}
|
|
1914
|
+
],
|
|
1915
|
+
"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."
|
|
1916
|
+
},
|
|
1917
|
+
"job_history": {
|
|
1918
|
+
"anyOf": [
|
|
1919
|
+
{
|
|
1920
|
+
"type": "string",
|
|
1921
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
1922
|
+
"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."
|
|
1923
|
+
},
|
|
1924
|
+
{
|
|
1925
|
+
"minItems": 1,
|
|
1926
|
+
"maxItems": 50,
|
|
1927
|
+
"type": "array",
|
|
1928
|
+
"items": {
|
|
1929
|
+
"type": "string",
|
|
1930
|
+
"pattern": "^(?!defaults$)[a-z][a-z0-9_]{0,62}$",
|
|
1931
|
+
"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."
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
],
|
|
1935
|
+
"defaultSnippets": [
|
|
1936
|
+
{
|
|
1937
|
+
"label": "one role",
|
|
1938
|
+
"description": "The role that may use this; a role that inherits from it may too.",
|
|
1939
|
+
"body": "${1:operate}"
|
|
1940
|
+
},
|
|
1941
|
+
{
|
|
1942
|
+
"label": "any of several roles",
|
|
1943
|
+
"description": "A list of roles; holding one of them, or inheriting from one, is enough.",
|
|
1944
|
+
"body": [
|
|
1945
|
+
"${1:operate}",
|
|
1946
|
+
"${2:admin}"
|
|
1947
|
+
]
|
|
1948
|
+
}
|
|
1949
|
+
],
|
|
1950
|
+
"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."
|
|
1951
|
+
}
|
|
1952
|
+
},
|
|
1953
|
+
"additionalProperties": false,
|
|
1954
|
+
"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.",
|
|
1955
|
+
"defaultSnippets": [
|
|
1956
|
+
{
|
|
1957
|
+
"label": "access, with one rule",
|
|
1958
|
+
"description": "A rule that gives everything under `/arm` to one role; entries it does not fit keep the organization's defaults.",
|
|
1959
|
+
"body": {
|
|
1960
|
+
"rules": [
|
|
1961
|
+
{
|
|
1962
|
+
"match": "${1:/arm/**}",
|
|
1963
|
+
"role": "${2:admin}"
|
|
1964
|
+
}
|
|
1965
|
+
]
|
|
1966
|
+
}
|
|
1967
|
+
}
|
|
1968
|
+
]
|
|
1969
|
+
},
|
|
1616
1970
|
"low_bandwidth": {
|
|
1617
1971
|
"description": "Overrides for the bridge's low-bandwidth mode; see the section schema.",
|
|
1618
1972
|
"defaultSnippets": [
|
|
@@ -47,6 +47,37 @@
|
|
|
47
47
|
},
|
|
48
48
|
"had_unpublished_draft": {
|
|
49
49
|
"type": "boolean"
|
|
50
|
+
},
|
|
51
|
+
"collection_records": {
|
|
52
|
+
"type": "array",
|
|
53
|
+
"items": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"properties": {
|
|
56
|
+
"app_id": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"format": "uuid",
|
|
59
|
+
"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)$",
|
|
60
|
+
"description": "The app whose collections hold records of the robot."
|
|
61
|
+
},
|
|
62
|
+
"app_name": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"description": "The app's name."
|
|
65
|
+
},
|
|
66
|
+
"records": {
|
|
67
|
+
"type": "integer",
|
|
68
|
+
"minimum": 0,
|
|
69
|
+
"maximum": 9007199254740991,
|
|
70
|
+
"description": "How many records of the robot the app's collections hold, deleted with the robot."
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": [
|
|
74
|
+
"app_id",
|
|
75
|
+
"app_name",
|
|
76
|
+
"records"
|
|
77
|
+
],
|
|
78
|
+
"additionalProperties": false
|
|
79
|
+
},
|
|
80
|
+
"description": "App collection records that go with the robot, per app. A robot's records are kept in every app it was attached to, also in one it was detached from, and are deleted with their history when the robot is; apps without records of this robot are left out."
|
|
50
81
|
}
|
|
51
82
|
},
|
|
52
83
|
"required": [
|
|
@@ -58,7 +89,8 @@
|
|
|
58
89
|
"asset_bytes_freed",
|
|
59
90
|
"job_run_count",
|
|
60
91
|
"had_live_session",
|
|
61
|
-
"had_unpublished_draft"
|
|
92
|
+
"had_unpublished_draft",
|
|
93
|
+
"collection_records"
|
|
62
94
|
],
|
|
63
95
|
"additionalProperties": false
|
|
64
96
|
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"collection": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"pattern": "^[a-z][a-z0-9_]{0,62}$",
|
|
8
|
+
"description": "The collection's key."
|
|
9
|
+
},
|
|
10
|
+
"label": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "The collection's label for people to read; its key when the schema gives none."
|
|
13
|
+
},
|
|
14
|
+
"binding": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"enum": [
|
|
17
|
+
"global",
|
|
18
|
+
"per_robot",
|
|
19
|
+
"one_per_robot"
|
|
20
|
+
],
|
|
21
|
+
"description": "`global`: records belong to the app and no robot. `per_robot`: every record belongs to one robot (system field `robot_id`, fixed when the record is created). `one_per_robot`: every robot of the app has exactly one record, which Fleetless creates itself."
|
|
22
|
+
},
|
|
23
|
+
"read": {
|
|
24
|
+
"type": "boolean",
|
|
25
|
+
"description": "Whether the role may read the records."
|
|
26
|
+
},
|
|
27
|
+
"create": {
|
|
28
|
+
"type": "boolean",
|
|
29
|
+
"description": "Whether the role may create records."
|
|
30
|
+
},
|
|
31
|
+
"update": {
|
|
32
|
+
"anyOf": [
|
|
33
|
+
{
|
|
34
|
+
"type": "string",
|
|
35
|
+
"const": "all"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"type": "string",
|
|
39
|
+
"const": "own"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"const": false
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"description": "`all`: the role may change every record. `own`: only records its user created. `false`: none."
|
|
47
|
+
},
|
|
48
|
+
"delete": {
|
|
49
|
+
"anyOf": [
|
|
50
|
+
{
|
|
51
|
+
"type": "string",
|
|
52
|
+
"const": "all"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "string",
|
|
56
|
+
"const": "own"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"type": "boolean",
|
|
60
|
+
"const": false
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"description": "`all`: the role may delete every record. `own`: only records its user created. `false`: none."
|
|
64
|
+
},
|
|
65
|
+
"robot_filter": {
|
|
66
|
+
"type": "boolean",
|
|
67
|
+
"description": "`true` on a collection that belongs to robots (`per_robot`, `one_per_robot`): the role sees and writes only the records of robots a session of the role reaches, whatever the rights above say. `false` on a `global` collection."
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"required": [
|
|
71
|
+
"collection",
|
|
72
|
+
"label",
|
|
73
|
+
"binding",
|
|
74
|
+
"read",
|
|
75
|
+
"create",
|
|
76
|
+
"update",
|
|
77
|
+
"delete",
|
|
78
|
+
"robot_filter"
|
|
79
|
+
],
|
|
80
|
+
"additionalProperties": false,
|
|
81
|
+
"description": "What one role may do with the records of one collection."
|
|
82
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"cycle": {
|
|
6
|
+
"minItems": 2,
|
|
7
|
+
"type": "array",
|
|
8
|
+
"items": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"description": "The keys along the loop, in order, ending with the key the loop started from: `[\"a\", \"b\", \"a\"]`."
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"required": [
|
|
15
|
+
"cycle"
|
|
16
|
+
],
|
|
17
|
+
"additionalProperties": false
|
|
18
|
+
}
|