@fleetless/contracts 14.0.0 → 15.0.1
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 +184 -0
- package/artifacts/openapi.json +20210 -11764
- package/artifacts/routes.json +1160 -39
- 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-deletion-summary.schema.json +15 -1
- package/artifacts/schema/asset-plan-limit-details.schema.json +3 -1
- package/artifacts/schema/billing-change-response.schema.json +9 -8
- package/artifacts/schema/checkout-response.schema.json +6 -6
- package/artifacts/schema/cloud-config.schema.json +5 -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 +5 -5
- package/artifacts/schema/config-version-response.schema.json +5 -5
- package/artifacts/schema/confirmation-required-details.schema.json +13 -0
- package/artifacts/schema/dangling-reference.schema.json +7 -6
- package/artifacts/schema/datapoint-list-response.schema.json +2 -2
- package/artifacts/schema/effective-rights-response.schema.json +87 -1
- 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 +8 -7
- package/artifacts/schema/org-role.schema.json +1 -1
- 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/purchase-conflict-details.schema.json +6 -6
- package/artifacts/schema/purchase-intent-draft.schema.json +5 -5
- package/artifacts/schema/purchase-intent-payment-started.schema.json +1 -1
- package/artifacts/schema/purchase-intent-response.schema.json +10 -9
- package/artifacts/schema/put-collections-draft-request.schema.json +16 -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 +7 -6
- package/artifacts/schema/required-missing-details.schema.json +19 -0
- package/artifacts/schema/robot-config-doc.schema.json +5 -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-rename-preview.schema.json +7 -6
- package/dist/apps.d.ts +18 -2
- package/dist/apps.js +12 -2
- package/dist/audit.d.ts +32 -2
- package/dist/audit.js +40 -2
- package/dist/billing.js +12 -3
- 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/config.d.ts +8 -8
- package/dist/config.js +13 -13
- package/dist/errors.d.ts +50 -1
- package/dist/errors.js +117 -2
- package/dist/index.d.ts +24 -8
- package/dist/index.js +13 -3
- package/dist/org-roles.d.ts +4 -0
- package/dist/org-roles.js +10 -9
- package/dist/plans.d.ts +22 -2
- package/dist/plans.js +26 -4
- package/dist/realtime.d.ts +166 -0
- package/dist/realtime.js +163 -0
- package/dist/rest.d.ts +28 -28
- package/dist/rest.js +39 -27
- package/dist/rights.d.ts +2 -2
- package/dist/rights.js +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/routes.js +495 -21
- package/package.json +1 -1
- 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
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"version": {
|
|
6
|
+
"type": "integer",
|
|
7
|
+
"minimum": 1,
|
|
8
|
+
"maximum": 9007199254740991
|
|
9
|
+
},
|
|
10
|
+
"published_at": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"format": "date-time",
|
|
13
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
14
|
+
},
|
|
15
|
+
"published_by": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"properties": {
|
|
18
|
+
"kind": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"enum": [
|
|
21
|
+
"developer",
|
|
22
|
+
"app_user",
|
|
23
|
+
"server_key",
|
|
24
|
+
"fleetless"
|
|
25
|
+
],
|
|
26
|
+
"description": "What made the change: a developer, a user of the app, a server key of the app, or the platform itself."
|
|
27
|
+
},
|
|
28
|
+
"id": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"format": "uuid",
|
|
31
|
+
"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)$",
|
|
32
|
+
"description": "The id of the developer, app user or server key. The nil id for the platform."
|
|
33
|
+
},
|
|
34
|
+
"label": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"minLength": 1,
|
|
37
|
+
"maxLength": 200,
|
|
38
|
+
"description": "A name to show: the person's display name, the name of a server key, `Fleetless`, `Deleted user` when the user no longer exists, or `Deleted key` when the key does. A person without a display name reads as their email address to a developer or a server key and to themselves, and to an app user reading someone else as `Team member` (a developer) or `User` (an app user): an app user never learns another person's address."
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"required": [
|
|
42
|
+
"kind",
|
|
43
|
+
"id",
|
|
44
|
+
"label"
|
|
45
|
+
],
|
|
46
|
+
"additionalProperties": false,
|
|
47
|
+
"description": "Who or what made a change to a record."
|
|
48
|
+
},
|
|
49
|
+
"effect_counts": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"propertyNames": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"additionalProperties": {
|
|
55
|
+
"type": "integer",
|
|
56
|
+
"minimum": 0,
|
|
57
|
+
"maximum": 9007199254740991
|
|
58
|
+
},
|
|
59
|
+
"description": "For each kind of effect the publish had, how many records or values it touched, by effect `kind`. Empty when it had none."
|
|
60
|
+
},
|
|
61
|
+
"restored_from": {
|
|
62
|
+
"anyOf": [
|
|
63
|
+
{
|
|
64
|
+
"type": "integer",
|
|
65
|
+
"minimum": 1,
|
|
66
|
+
"maximum": 9007199254740991
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "null"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"description": "The version this one restored. Null for an ordinary publish."
|
|
73
|
+
},
|
|
74
|
+
"restore_with_data": {
|
|
75
|
+
"type": "boolean",
|
|
76
|
+
"description": "Whether restoring this version can also put records back: its restore point is at most 90 days old, has not been purged, and it is not the current version."
|
|
77
|
+
},
|
|
78
|
+
"with_data": {
|
|
79
|
+
"type": "boolean",
|
|
80
|
+
"description": "Whether this version came from a restore that also put records back. `false` for an ordinary publish and for a restore of the document alone."
|
|
81
|
+
},
|
|
82
|
+
"reverted_totals": {
|
|
83
|
+
"anyOf": [
|
|
84
|
+
{
|
|
85
|
+
"type": "object",
|
|
86
|
+
"properties": {
|
|
87
|
+
"changes": {
|
|
88
|
+
"type": "integer",
|
|
89
|
+
"minimum": 0,
|
|
90
|
+
"maximum": 9007199254740991,
|
|
91
|
+
"description": "Changes made since the restore point that were reverted."
|
|
92
|
+
},
|
|
93
|
+
"records_back": {
|
|
94
|
+
"type": "integer",
|
|
95
|
+
"minimum": 0,
|
|
96
|
+
"maximum": 9007199254740991,
|
|
97
|
+
"description": "Deleted records that came back."
|
|
98
|
+
},
|
|
99
|
+
"records_deleted": {
|
|
100
|
+
"type": "integer",
|
|
101
|
+
"minimum": 0,
|
|
102
|
+
"maximum": 9007199254740991,
|
|
103
|
+
"description": "Records created since the restore point that were deleted."
|
|
104
|
+
},
|
|
105
|
+
"robots_gone": {
|
|
106
|
+
"type": "integer",
|
|
107
|
+
"minimum": 0,
|
|
108
|
+
"maximum": 9007199254740991,
|
|
109
|
+
"description": "Records of robots that were deleted since, which could not come back."
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"required": [
|
|
113
|
+
"changes",
|
|
114
|
+
"records_back",
|
|
115
|
+
"records_deleted",
|
|
116
|
+
"robots_gone"
|
|
117
|
+
],
|
|
118
|
+
"additionalProperties": false
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"type": "null"
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"description": "What putting the records back did, in all the collections together, so that the history of versions can say what came back. Null unless `with_data`."
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"required": [
|
|
128
|
+
"version",
|
|
129
|
+
"published_at",
|
|
130
|
+
"published_by",
|
|
131
|
+
"effect_counts",
|
|
132
|
+
"restored_from",
|
|
133
|
+
"restore_with_data",
|
|
134
|
+
"with_data",
|
|
135
|
+
"reverted_totals"
|
|
136
|
+
],
|
|
137
|
+
"additionalProperties": false,
|
|
138
|
+
"description": "A published version of the schema document."
|
|
139
|
+
}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"current": {
|
|
6
|
+
"anyOf": [
|
|
7
|
+
{
|
|
8
|
+
"type": "integer",
|
|
9
|
+
"minimum": 1,
|
|
10
|
+
"maximum": 9007199254740991
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"type": "null"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"description": "The version in force. Null before the first publish."
|
|
17
|
+
},
|
|
18
|
+
"versions": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": {
|
|
23
|
+
"version": {
|
|
24
|
+
"type": "integer",
|
|
25
|
+
"minimum": 1,
|
|
26
|
+
"maximum": 9007199254740991
|
|
27
|
+
},
|
|
28
|
+
"published_at": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"format": "date-time",
|
|
31
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
32
|
+
},
|
|
33
|
+
"published_by": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"properties": {
|
|
36
|
+
"kind": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"enum": [
|
|
39
|
+
"developer",
|
|
40
|
+
"app_user",
|
|
41
|
+
"server_key",
|
|
42
|
+
"fleetless"
|
|
43
|
+
],
|
|
44
|
+
"description": "What made the change: a developer, a user of the app, a server key of the app, or the platform itself."
|
|
45
|
+
},
|
|
46
|
+
"id": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"format": "uuid",
|
|
49
|
+
"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)$",
|
|
50
|
+
"description": "The id of the developer, app user or server key. The nil id for the platform."
|
|
51
|
+
},
|
|
52
|
+
"label": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"minLength": 1,
|
|
55
|
+
"maxLength": 200,
|
|
56
|
+
"description": "A name to show: the person's display name, the name of a server key, `Fleetless`, `Deleted user` when the user no longer exists, or `Deleted key` when the key does. A person without a display name reads as their email address to a developer or a server key and to themselves, and to an app user reading someone else as `Team member` (a developer) or `User` (an app user): an app user never learns another person's address."
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"required": [
|
|
60
|
+
"kind",
|
|
61
|
+
"id",
|
|
62
|
+
"label"
|
|
63
|
+
],
|
|
64
|
+
"additionalProperties": false,
|
|
65
|
+
"description": "Who or what made a change to a record."
|
|
66
|
+
},
|
|
67
|
+
"effect_counts": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"propertyNames": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
"additionalProperties": {
|
|
73
|
+
"type": "integer",
|
|
74
|
+
"minimum": 0,
|
|
75
|
+
"maximum": 9007199254740991
|
|
76
|
+
},
|
|
77
|
+
"description": "For each kind of effect the publish had, how many records or values it touched, by effect `kind`. Empty when it had none."
|
|
78
|
+
},
|
|
79
|
+
"restored_from": {
|
|
80
|
+
"anyOf": [
|
|
81
|
+
{
|
|
82
|
+
"type": "integer",
|
|
83
|
+
"minimum": 1,
|
|
84
|
+
"maximum": 9007199254740991
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"type": "null"
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"description": "The version this one restored. Null for an ordinary publish."
|
|
91
|
+
},
|
|
92
|
+
"restore_with_data": {
|
|
93
|
+
"type": "boolean",
|
|
94
|
+
"description": "Whether restoring this version can also put records back: its restore point is at most 90 days old, has not been purged, and it is not the current version."
|
|
95
|
+
},
|
|
96
|
+
"with_data": {
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"description": "Whether this version came from a restore that also put records back. `false` for an ordinary publish and for a restore of the document alone."
|
|
99
|
+
},
|
|
100
|
+
"reverted_totals": {
|
|
101
|
+
"anyOf": [
|
|
102
|
+
{
|
|
103
|
+
"type": "object",
|
|
104
|
+
"properties": {
|
|
105
|
+
"changes": {
|
|
106
|
+
"type": "integer",
|
|
107
|
+
"minimum": 0,
|
|
108
|
+
"maximum": 9007199254740991,
|
|
109
|
+
"description": "Changes made since the restore point that were reverted."
|
|
110
|
+
},
|
|
111
|
+
"records_back": {
|
|
112
|
+
"type": "integer",
|
|
113
|
+
"minimum": 0,
|
|
114
|
+
"maximum": 9007199254740991,
|
|
115
|
+
"description": "Deleted records that came back."
|
|
116
|
+
},
|
|
117
|
+
"records_deleted": {
|
|
118
|
+
"type": "integer",
|
|
119
|
+
"minimum": 0,
|
|
120
|
+
"maximum": 9007199254740991,
|
|
121
|
+
"description": "Records created since the restore point that were deleted."
|
|
122
|
+
},
|
|
123
|
+
"robots_gone": {
|
|
124
|
+
"type": "integer",
|
|
125
|
+
"minimum": 0,
|
|
126
|
+
"maximum": 9007199254740991,
|
|
127
|
+
"description": "Records of robots that were deleted since, which could not come back."
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"required": [
|
|
131
|
+
"changes",
|
|
132
|
+
"records_back",
|
|
133
|
+
"records_deleted",
|
|
134
|
+
"robots_gone"
|
|
135
|
+
],
|
|
136
|
+
"additionalProperties": false
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"type": "null"
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"description": "What putting the records back did, in all the collections together, so that the history of versions can say what came back. Null unless `with_data`."
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"required": [
|
|
146
|
+
"version",
|
|
147
|
+
"published_at",
|
|
148
|
+
"published_by",
|
|
149
|
+
"effect_counts",
|
|
150
|
+
"restored_from",
|
|
151
|
+
"restore_with_data",
|
|
152
|
+
"with_data",
|
|
153
|
+
"reverted_totals"
|
|
154
|
+
],
|
|
155
|
+
"additionalProperties": false,
|
|
156
|
+
"description": "A published version of the schema document."
|
|
157
|
+
},
|
|
158
|
+
"description": "Newest first."
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"required": [
|
|
162
|
+
"current",
|
|
163
|
+
"versions"
|
|
164
|
+
],
|
|
165
|
+
"additionalProperties": false,
|
|
166
|
+
"description": "The published versions of the schema document."
|
|
167
|
+
}
|
|
@@ -470,7 +470,7 @@
|
|
|
470
470
|
}
|
|
471
471
|
]
|
|
472
472
|
},
|
|
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`
|
|
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` 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.",
|
|
474
474
|
"defaultSnippets": [
|
|
475
475
|
{
|
|
476
476
|
"label": "a datapoint",
|
|
@@ -753,7 +753,7 @@
|
|
|
753
753
|
}
|
|
754
754
|
]
|
|
755
755
|
},
|
|
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`
|
|
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` 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.",
|
|
757
757
|
"defaultSnippets": [
|
|
758
758
|
{
|
|
759
759
|
"label": "an action",
|
|
@@ -1009,7 +1009,7 @@
|
|
|
1009
1009
|
}
|
|
1010
1010
|
]
|
|
1011
1011
|
},
|
|
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`
|
|
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` 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.",
|
|
1013
1013
|
"defaultSnippets": [
|
|
1014
1014
|
{
|
|
1015
1015
|
"label": "a service",
|
|
@@ -1352,7 +1352,7 @@
|
|
|
1352
1352
|
}
|
|
1353
1353
|
]
|
|
1354
1354
|
},
|
|
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`
|
|
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` 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.",
|
|
1356
1356
|
"defaultSnippets": [
|
|
1357
1357
|
{
|
|
1358
1358
|
"label": "a publisher, with its parameters and its failsafe",
|
|
@@ -1771,7 +1771,7 @@
|
|
|
1771
1771
|
}
|
|
1772
1772
|
]
|
|
1773
1773
|
},
|
|
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`
|
|
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` 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.",
|
|
1775
1775
|
"defaultSnippets": [
|
|
1776
1776
|
{
|
|
1777
1777
|
"label": "a camera",
|
|
@@ -508,7 +508,7 @@
|
|
|
508
508
|
}
|
|
509
509
|
]
|
|
510
510
|
},
|
|
511
|
-
"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`
|
|
511
|
+
"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.",
|
|
512
512
|
"defaultSnippets": [
|
|
513
513
|
{
|
|
514
514
|
"label": "a datapoint",
|
|
@@ -791,7 +791,7 @@
|
|
|
791
791
|
}
|
|
792
792
|
]
|
|
793
793
|
},
|
|
794
|
-
"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`
|
|
794
|
+
"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.",
|
|
795
795
|
"defaultSnippets": [
|
|
796
796
|
{
|
|
797
797
|
"label": "an action",
|
|
@@ -1047,7 +1047,7 @@
|
|
|
1047
1047
|
}
|
|
1048
1048
|
]
|
|
1049
1049
|
},
|
|
1050
|
-
"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`
|
|
1050
|
+
"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.",
|
|
1051
1051
|
"defaultSnippets": [
|
|
1052
1052
|
{
|
|
1053
1053
|
"label": "a service",
|
|
@@ -1390,7 +1390,7 @@
|
|
|
1390
1390
|
}
|
|
1391
1391
|
]
|
|
1392
1392
|
},
|
|
1393
|
-
"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`
|
|
1393
|
+
"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.",
|
|
1394
1394
|
"defaultSnippets": [
|
|
1395
1395
|
{
|
|
1396
1396
|
"label": "a publisher, with its parameters and its failsafe",
|
|
@@ -1809,7 +1809,7 @@
|
|
|
1809
1809
|
}
|
|
1810
1810
|
]
|
|
1811
1811
|
},
|
|
1812
|
-
"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`
|
|
1812
|
+
"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.",
|
|
1813
1813
|
"defaultSnippets": [
|
|
1814
1814
|
{
|
|
1815
1815
|
"label": "a camera",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"preview": {
|
|
6
|
+
"description": "The current preview of the operation, with its `token`: a `collectionsSchemaPreview` for a publish, a `collectionsRestorePreview` for a restore, a `collectionsPurgePreview` for a purge and a `collectionImportPreview` for an import. Confirm it by sending that `token` as `confirm`. A publish that names a `source_sha256` which is not the saved draft's, because the draft was saved again since it was previewed, is refused the same way with a preview whose `token` can be `null` (no effects, nothing to confirm): read this preview, then publish again with its `source_sha256`, and with its `token` as `confirm` when it has one."
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
"required": [
|
|
10
|
+
"preview"
|
|
11
|
+
],
|
|
12
|
+
"additionalProperties": false
|
|
13
|
+
}
|
|
@@ -15,17 +15,18 @@
|
|
|
15
15
|
"type": "string",
|
|
16
16
|
"enum": [
|
|
17
17
|
"config",
|
|
18
|
+
"collection_schema",
|
|
18
19
|
"app_user",
|
|
19
20
|
"invitation",
|
|
20
21
|
"app_default",
|
|
21
22
|
"role_inherits",
|
|
22
23
|
"org_default"
|
|
23
24
|
],
|
|
24
|
-
"description": "What writes the key: `config` is a `role` or `access` value in a robot's `fleetless.yaml`, `app_user` an app user who holds it, `invitation` an invitation that carries it, `app_default` an app's default role, `role_inherits` another role that inherits from it, and `org_default` one of the organization's defaults."
|
|
25
|
+
"description": "What writes the key: `config` is a `role` or `access` value in a robot's `fleetless.yaml`, `collection_schema` an `access` entry of a collection in an app's collections schema, `app_user` an app user who holds it, `invitation` an invitation that carries it, `app_default` an app's default role, `role_inherits` another role that inherits from it, and `org_default` one of the organization's defaults."
|
|
25
26
|
},
|
|
26
27
|
"label": {
|
|
27
28
|
"type": "string",
|
|
28
|
-
"description": "What a person reads to find the place: the robot name (`config`), the e-mail address of the app user or of the invitee (`app_user`, `invitation`), the
|
|
29
|
+
"description": "What a person reads to find the place: the robot name (`config`), the app name (`collection_schema`, `app_default`), the e-mail address of the app user or of the invitee (`app_user`, `invitation`), the name of the inheriting role (`role_inherits`), or the access kind of an organization default (`org_default`)."
|
|
29
30
|
},
|
|
30
31
|
"path": {
|
|
31
32
|
"anyOf": [
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
"type": "null"
|
|
37
38
|
}
|
|
38
39
|
],
|
|
39
|
-
"description": "Where the key is written. For `config`, the place in the YAML, such as `services.arm_home.role` or `access.rules[1].role`; for `role_inherits`, the key of the role that inherits from it, because display names are not unique; `null` for every other kind."
|
|
40
|
+
"description": "Where the key is written. For `config`, the place in the YAML, such as `services.arm_home.role` or `access.rules[1].role`; for `collection_schema`, the place in the collections schema, such as `collections.notes.access.update.own[1]`; for `role_inherits`, the key of the role that inherits from it, because display names are not unique; `null` for every other kind."
|
|
40
41
|
},
|
|
41
42
|
"robot_id": {
|
|
42
43
|
"anyOf": [
|
|
@@ -62,7 +63,7 @@
|
|
|
62
63
|
"type": "null"
|
|
63
64
|
}
|
|
64
65
|
],
|
|
65
|
-
"description": "The app the user, invitation or default role
|
|
66
|
+
"description": "The app the key belongs to: the app whose collections schema holds it (`collection_schema`), or the app of the user, invitation or default role (`app_user`, `invitation`, `app_default`); `null` for every other kind."
|
|
66
67
|
},
|
|
67
68
|
"user_id": {
|
|
68
69
|
"anyOf": [
|
|
@@ -90,7 +91,7 @@
|
|
|
90
91
|
"type": "null"
|
|
91
92
|
}
|
|
92
93
|
],
|
|
93
|
-
"description": "Which version of the
|
|
94
|
+
"description": "Which version of the document holds the key (`config`: the robot's configuration, `collection_schema`: the app's collections schema): the published one or the draft; `null` for every other kind."
|
|
94
95
|
},
|
|
95
96
|
"new_version": {
|
|
96
97
|
"anyOf": [
|
|
@@ -103,7 +104,7 @@
|
|
|
103
104
|
"type": "null"
|
|
104
105
|
}
|
|
105
106
|
],
|
|
106
|
-
"description": "For a published document, the version number a rename with `update_references` would give it, a copy that differs only in the key; `null` for a draft and for every place that is no document."
|
|
107
|
+
"description": "For a published document (`config` or `collection_schema`), the version number a rename with `update_references` would give it, a copy that differs only in the key; `null` for a draft and for every place that is no document."
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
"required": [
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"builtin": {
|
|
18
18
|
"type": "boolean",
|
|
19
|
-
"description": "`true` for the
|
|
19
|
+
"description": "`true` for the datapoint every robot has, `bridge_state`, and `false` for everything the published configuration adds."
|
|
20
20
|
},
|
|
21
21
|
"unit": {
|
|
22
22
|
"anyOf": [
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
],
|
|
52
52
|
"additionalProperties": false
|
|
53
53
|
},
|
|
54
|
-
"description": "Everything a client may read on this robot: the
|
|
54
|
+
"description": "Everything a client may read on this robot: the built-in `bridge_state`, plus every datapoint the published configuration exposes and the caller's role may read."
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
"required": [
|
|
@@ -298,13 +298,99 @@
|
|
|
298
298
|
"additionalProperties": false
|
|
299
299
|
},
|
|
300
300
|
"description": "The robots attached to the app, each with what the role may use."
|
|
301
|
+
},
|
|
302
|
+
"collections": {
|
|
303
|
+
"type": "array",
|
|
304
|
+
"items": {
|
|
305
|
+
"type": "object",
|
|
306
|
+
"properties": {
|
|
307
|
+
"collection": {
|
|
308
|
+
"type": "string",
|
|
309
|
+
"pattern": "^[a-z][a-z0-9_]{0,62}$",
|
|
310
|
+
"description": "The collection's key."
|
|
311
|
+
},
|
|
312
|
+
"label": {
|
|
313
|
+
"type": "string",
|
|
314
|
+
"description": "The collection's label for people to read; its key when the schema gives none."
|
|
315
|
+
},
|
|
316
|
+
"binding": {
|
|
317
|
+
"type": "string",
|
|
318
|
+
"enum": [
|
|
319
|
+
"global",
|
|
320
|
+
"per_robot",
|
|
321
|
+
"one_per_robot"
|
|
322
|
+
],
|
|
323
|
+
"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."
|
|
324
|
+
},
|
|
325
|
+
"read": {
|
|
326
|
+
"type": "boolean",
|
|
327
|
+
"description": "Whether the role may read the records."
|
|
328
|
+
},
|
|
329
|
+
"create": {
|
|
330
|
+
"type": "boolean",
|
|
331
|
+
"description": "Whether the role may create records."
|
|
332
|
+
},
|
|
333
|
+
"update": {
|
|
334
|
+
"anyOf": [
|
|
335
|
+
{
|
|
336
|
+
"type": "string",
|
|
337
|
+
"const": "all"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"type": "string",
|
|
341
|
+
"const": "own"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"type": "boolean",
|
|
345
|
+
"const": false
|
|
346
|
+
}
|
|
347
|
+
],
|
|
348
|
+
"description": "`all`: the role may change every record. `own`: only records its user created. `false`: none."
|
|
349
|
+
},
|
|
350
|
+
"delete": {
|
|
351
|
+
"anyOf": [
|
|
352
|
+
{
|
|
353
|
+
"type": "string",
|
|
354
|
+
"const": "all"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"type": "string",
|
|
358
|
+
"const": "own"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"type": "boolean",
|
|
362
|
+
"const": false
|
|
363
|
+
}
|
|
364
|
+
],
|
|
365
|
+
"description": "`all`: the role may delete every record. `own`: only records its user created. `false`: none."
|
|
366
|
+
},
|
|
367
|
+
"robot_filter": {
|
|
368
|
+
"type": "boolean",
|
|
369
|
+
"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."
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"required": [
|
|
373
|
+
"collection",
|
|
374
|
+
"label",
|
|
375
|
+
"binding",
|
|
376
|
+
"read",
|
|
377
|
+
"create",
|
|
378
|
+
"update",
|
|
379
|
+
"delete",
|
|
380
|
+
"robot_filter"
|
|
381
|
+
],
|
|
382
|
+
"additionalProperties": false,
|
|
383
|
+
"description": "What one role may do with the records of one collection."
|
|
384
|
+
},
|
|
385
|
+
"description": "What the role may do with the records of each collection of the app's latest published schema, in the schema's order. Empty when the app has no published schema. A role that is no role, and a user who is not `active`, are granted nothing in any row."
|
|
301
386
|
}
|
|
302
387
|
},
|
|
303
388
|
"required": [
|
|
304
389
|
"role",
|
|
305
390
|
"role_known",
|
|
306
391
|
"user_id",
|
|
307
|
-
"robots"
|
|
392
|
+
"robots",
|
|
393
|
+
"collections"
|
|
308
394
|
],
|
|
309
395
|
"additionalProperties": false
|
|
310
396
|
}
|
|
@@ -176,6 +176,32 @@
|
|
|
176
176
|
}
|
|
177
177
|
],
|
|
178
178
|
"description": "Days the org's audit log is kept."
|
|
179
|
+
},
|
|
180
|
+
"collection_records": {
|
|
181
|
+
"anyOf": [
|
|
182
|
+
{
|
|
183
|
+
"type": "integer",
|
|
184
|
+
"exclusiveMinimum": 0,
|
|
185
|
+
"maximum": 9007199254740991
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"type": "null"
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
"description": "Records in the app collections of all the org's apps, together. Only current records count, deleted ones and the history do not. A write or an import that would add records past it is refused `409 plan_limit` naming this key; reads continue."
|
|
192
|
+
},
|
|
193
|
+
"collection_bytes": {
|
|
194
|
+
"anyOf": [
|
|
195
|
+
{
|
|
196
|
+
"type": "integer",
|
|
197
|
+
"exclusiveMinimum": 0,
|
|
198
|
+
"maximum": 9007199254740991
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"type": "null"
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
"description": "Bytes the current records of all the org's app collections occupy, as stored JSON (decimal: 1 GB = 1,000,000,000). The history is shown beside it and not limited. A write or an import that would add data past it is refused `409 plan_limit` naming this key; reads continue."
|
|
179
205
|
}
|
|
180
206
|
},
|
|
181
207
|
"required": [
|
|
@@ -186,7 +212,9 @@
|
|
|
186
212
|
"live_video_ms_per_month",
|
|
187
213
|
"asset_bytes_per_robot",
|
|
188
214
|
"history_days",
|
|
189
|
-
"audit_days"
|
|
215
|
+
"audit_days",
|
|
216
|
+
"collection_records",
|
|
217
|
+
"collection_bytes"
|
|
190
218
|
],
|
|
191
219
|
"additionalProperties": false,
|
|
192
220
|
"description": "The org's effective limits: the plan's, raised by its add-ons, or an operator's override in their place. `null` means unlimited for a count, and 90 days for `history_days` and `audit_days`."
|