@fleetless/contracts 14.0.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 +163 -0
- package/artifacts/openapi.json +19842 -11398
- 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/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/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/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 +115 -0
- 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 +19 -1
- package/dist/plans.js +21 -1
- 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,845 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"source": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"description": "The document as text. The saved draft; without one, the published version's text; before the first publish, empty."
|
|
8
|
+
},
|
|
9
|
+
"doc": {
|
|
10
|
+
"anyOf": [
|
|
11
|
+
{
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"format": {
|
|
15
|
+
"type": "number",
|
|
16
|
+
"const": 1,
|
|
17
|
+
"description": "The document format version. Always 1."
|
|
18
|
+
},
|
|
19
|
+
"collections": {
|
|
20
|
+
"description": "The collections of the app by key, at most 50. Nothing under `collections:` (null) means none.",
|
|
21
|
+
"type": "object",
|
|
22
|
+
"propertyNames": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"pattern": "^[a-z][a-z0-9_]{0,62}$",
|
|
25
|
+
"description": "A collection key or a field key: `^[a-z][a-z0-9_]{0,62}$`. Keys appear in URLs, filters and record bodies; `label` is the text people read."
|
|
26
|
+
},
|
|
27
|
+
"additionalProperties": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"properties": {
|
|
30
|
+
"label": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "A name for people to read. It may change at any time; the key is what code uses."
|
|
33
|
+
},
|
|
34
|
+
"description": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "Free text that explains the collection to people."
|
|
37
|
+
},
|
|
38
|
+
"binding": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"enum": [
|
|
41
|
+
"global",
|
|
42
|
+
"per_robot",
|
|
43
|
+
"one_per_robot"
|
|
44
|
+
],
|
|
45
|
+
"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."
|
|
46
|
+
},
|
|
47
|
+
"display": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "A template that names a record in lists, references and titles, for example `{{name}} ({{location.name}})`. A placeholder is a field of this collection, a system field (`id`, `created_at`, `created_by`, `updated_at`, `updated_by`, `revision`, and `robot_id` on robot-bound collections), `robot.name` on robot-bound collections, or `<reference field>.<field of the target>`."
|
|
50
|
+
},
|
|
51
|
+
"access": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"properties": {
|
|
54
|
+
"read": {
|
|
55
|
+
"anyOf": [
|
|
56
|
+
{
|
|
57
|
+
"type": "string",
|
|
58
|
+
"minLength": 1,
|
|
59
|
+
"maxLength": 63
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"type": "array",
|
|
63
|
+
"items": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"minLength": 1,
|
|
66
|
+
"maxLength": 63
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"description": "Roles that may read records."
|
|
71
|
+
},
|
|
72
|
+
"create": {
|
|
73
|
+
"anyOf": [
|
|
74
|
+
{
|
|
75
|
+
"type": "string",
|
|
76
|
+
"minLength": 1,
|
|
77
|
+
"maxLength": 63
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"type": "array",
|
|
81
|
+
"items": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"minLength": 1,
|
|
84
|
+
"maxLength": 63
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"description": "Roles that may create records. Has no effect on `one_per_robot` collections, whose records Fleetless creates."
|
|
89
|
+
},
|
|
90
|
+
"update": {
|
|
91
|
+
"anyOf": [
|
|
92
|
+
{
|
|
93
|
+
"anyOf": [
|
|
94
|
+
{
|
|
95
|
+
"type": "string",
|
|
96
|
+
"minLength": 1,
|
|
97
|
+
"maxLength": 63
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"type": "array",
|
|
101
|
+
"items": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"minLength": 1,
|
|
104
|
+
"maxLength": 63
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"description": "The key of an organization role, or a list of keys. A key that names no role grants nothing."
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"type": "object",
|
|
112
|
+
"properties": {
|
|
113
|
+
"all": {
|
|
114
|
+
"anyOf": [
|
|
115
|
+
{
|
|
116
|
+
"type": "string",
|
|
117
|
+
"minLength": 1,
|
|
118
|
+
"maxLength": 63
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"type": "array",
|
|
122
|
+
"items": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"minLength": 1,
|
|
125
|
+
"maxLength": 63
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"description": "Roles that may do this to every record."
|
|
130
|
+
},
|
|
131
|
+
"own": {
|
|
132
|
+
"anyOf": [
|
|
133
|
+
{
|
|
134
|
+
"type": "string",
|
|
135
|
+
"minLength": 1,
|
|
136
|
+
"maxLength": 63
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"type": "array",
|
|
140
|
+
"items": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"minLength": 1,
|
|
143
|
+
"maxLength": 63
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"description": "Roles that may do this only to records they created themselves."
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"additionalProperties": false
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"description": "Roles that may change records: a role key, a list, or `{ all, own }` to tell every record from the ones a role created itself."
|
|
154
|
+
},
|
|
155
|
+
"delete": {
|
|
156
|
+
"anyOf": [
|
|
157
|
+
{
|
|
158
|
+
"anyOf": [
|
|
159
|
+
{
|
|
160
|
+
"type": "string",
|
|
161
|
+
"minLength": 1,
|
|
162
|
+
"maxLength": 63
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"type": "array",
|
|
166
|
+
"items": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"minLength": 1,
|
|
169
|
+
"maxLength": 63
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"description": "The key of an organization role, or a list of keys. A key that names no role grants nothing."
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"type": "object",
|
|
177
|
+
"properties": {
|
|
178
|
+
"all": {
|
|
179
|
+
"anyOf": [
|
|
180
|
+
{
|
|
181
|
+
"type": "string",
|
|
182
|
+
"minLength": 1,
|
|
183
|
+
"maxLength": 63
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"type": "array",
|
|
187
|
+
"items": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"minLength": 1,
|
|
190
|
+
"maxLength": 63
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
"description": "Roles that may do this to every record."
|
|
195
|
+
},
|
|
196
|
+
"own": {
|
|
197
|
+
"anyOf": [
|
|
198
|
+
{
|
|
199
|
+
"type": "string",
|
|
200
|
+
"minLength": 1,
|
|
201
|
+
"maxLength": 63
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"type": "array",
|
|
205
|
+
"items": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"minLength": 1,
|
|
208
|
+
"maxLength": 63
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"description": "Roles that may do this only to records they created themselves."
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"additionalProperties": false
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
"description": "Roles that may delete records: a role key, a list, or `{ all, own }`. Has no effect on `one_per_robot` collections, whose records are never deleted through the API."
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"additionalProperties": false,
|
|
222
|
+
"description": "Which roles may read, create, update and delete the records of this collection. A missing key grants that action to nobody; developers and server keys can always do everything."
|
|
223
|
+
},
|
|
224
|
+
"fields": {
|
|
225
|
+
"type": "object",
|
|
226
|
+
"propertyNames": {
|
|
227
|
+
"type": "string",
|
|
228
|
+
"pattern": "^[a-z][a-z0-9_]{0,62}$",
|
|
229
|
+
"description": "A collection key or a field key: `^[a-z][a-z0-9_]{0,62}$`. Keys appear in URLs, filters and record bodies; `label` is the text people read."
|
|
230
|
+
},
|
|
231
|
+
"additionalProperties": {
|
|
232
|
+
"oneOf": [
|
|
233
|
+
{
|
|
234
|
+
"type": "object",
|
|
235
|
+
"properties": {
|
|
236
|
+
"type": {
|
|
237
|
+
"type": "string",
|
|
238
|
+
"const": "text"
|
|
239
|
+
},
|
|
240
|
+
"label": {
|
|
241
|
+
"type": "string",
|
|
242
|
+
"maxLength": 120,
|
|
243
|
+
"description": "A short name for people to read. It may change at any time; the key is what code uses."
|
|
244
|
+
},
|
|
245
|
+
"description": {
|
|
246
|
+
"type": "string",
|
|
247
|
+
"maxLength": 1000,
|
|
248
|
+
"description": "Free text that explains the field to the people who fill it in."
|
|
249
|
+
},
|
|
250
|
+
"required": {
|
|
251
|
+
"type": "boolean",
|
|
252
|
+
"description": "A new record must set this field, and an update may not clear it."
|
|
253
|
+
},
|
|
254
|
+
"unique": {
|
|
255
|
+
"anyOf": [
|
|
256
|
+
{
|
|
257
|
+
"type": "boolean"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"type": "string",
|
|
261
|
+
"const": "collection"
|
|
262
|
+
}
|
|
263
|
+
],
|
|
264
|
+
"description": "`true`: no two records hold the same value, within the collection (`global`) or within one robot (`per_robot`, `one_per_robot`). `collection`: on a robot-bound collection, across all robots. Empty values never collide. Not allowed on `boolean` and `json` fields."
|
|
265
|
+
},
|
|
266
|
+
"default": {
|
|
267
|
+
"description": "The value a record gets when it does not set this field. It must itself be a valid value of the field."
|
|
268
|
+
},
|
|
269
|
+
"max_length": {
|
|
270
|
+
"type": "integer",
|
|
271
|
+
"minimum": 1,
|
|
272
|
+
"maximum": 1000,
|
|
273
|
+
"description": "Longest value in characters. Default 255, at most 1000."
|
|
274
|
+
},
|
|
275
|
+
"pattern": {
|
|
276
|
+
"type": "string",
|
|
277
|
+
"maxLength": 1000,
|
|
278
|
+
"description": "A regular expression in the RE2 subset, checked in unicode mode: lookahead, lookbehind and backreferences are not supported. At most 1,000 characters, and the cloud may also refuse a pattern as too complex (its compiled size is bounded; counted repeats such as `{n}` multiply it), which a document reports as an invalid pattern. The value must match somewhere in it; anchor it with `^` and `$` to match the whole value."
|
|
279
|
+
},
|
|
280
|
+
"searchable": {
|
|
281
|
+
"type": "boolean",
|
|
282
|
+
"description": "Include this field in the `search` of record lists."
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"required": [
|
|
286
|
+
"type"
|
|
287
|
+
],
|
|
288
|
+
"additionalProperties": false
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"type": "object",
|
|
292
|
+
"properties": {
|
|
293
|
+
"type": {
|
|
294
|
+
"type": "string",
|
|
295
|
+
"const": "long_text"
|
|
296
|
+
},
|
|
297
|
+
"label": {
|
|
298
|
+
"type": "string",
|
|
299
|
+
"maxLength": 120,
|
|
300
|
+
"description": "A short name for people to read. It may change at any time; the key is what code uses."
|
|
301
|
+
},
|
|
302
|
+
"description": {
|
|
303
|
+
"type": "string",
|
|
304
|
+
"maxLength": 1000,
|
|
305
|
+
"description": "Free text that explains the field to the people who fill it in."
|
|
306
|
+
},
|
|
307
|
+
"required": {
|
|
308
|
+
"type": "boolean",
|
|
309
|
+
"description": "A new record must set this field, and an update may not clear it."
|
|
310
|
+
},
|
|
311
|
+
"unique": {
|
|
312
|
+
"anyOf": [
|
|
313
|
+
{
|
|
314
|
+
"type": "boolean"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"type": "string",
|
|
318
|
+
"const": "collection"
|
|
319
|
+
}
|
|
320
|
+
],
|
|
321
|
+
"description": "`true`: no two records hold the same value, within the collection (`global`) or within one robot (`per_robot`, `one_per_robot`). `collection`: on a robot-bound collection, across all robots. Empty values never collide. Not allowed on `boolean` and `json` fields."
|
|
322
|
+
},
|
|
323
|
+
"default": {
|
|
324
|
+
"description": "The value a record gets when it does not set this field. It must itself be a valid value of the field."
|
|
325
|
+
},
|
|
326
|
+
"max_length": {
|
|
327
|
+
"type": "integer",
|
|
328
|
+
"minimum": 1,
|
|
329
|
+
"maximum": 100000,
|
|
330
|
+
"description": "Longest value in characters. Default 10000, at most 100000."
|
|
331
|
+
},
|
|
332
|
+
"searchable": {
|
|
333
|
+
"type": "boolean",
|
|
334
|
+
"description": "Include this field in the `search` of record lists."
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"required": [
|
|
338
|
+
"type"
|
|
339
|
+
],
|
|
340
|
+
"additionalProperties": false
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"type": "object",
|
|
344
|
+
"properties": {
|
|
345
|
+
"type": {
|
|
346
|
+
"type": "string",
|
|
347
|
+
"const": "number"
|
|
348
|
+
},
|
|
349
|
+
"label": {
|
|
350
|
+
"type": "string",
|
|
351
|
+
"maxLength": 120,
|
|
352
|
+
"description": "A short name for people to read. It may change at any time; the key is what code uses."
|
|
353
|
+
},
|
|
354
|
+
"description": {
|
|
355
|
+
"type": "string",
|
|
356
|
+
"maxLength": 1000,
|
|
357
|
+
"description": "Free text that explains the field to the people who fill it in."
|
|
358
|
+
},
|
|
359
|
+
"required": {
|
|
360
|
+
"type": "boolean",
|
|
361
|
+
"description": "A new record must set this field, and an update may not clear it."
|
|
362
|
+
},
|
|
363
|
+
"unique": {
|
|
364
|
+
"anyOf": [
|
|
365
|
+
{
|
|
366
|
+
"type": "boolean"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"type": "string",
|
|
370
|
+
"const": "collection"
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
"description": "`true`: no two records hold the same value, within the collection (`global`) or within one robot (`per_robot`, `one_per_robot`). `collection`: on a robot-bound collection, across all robots. Empty values never collide. Not allowed on `boolean` and `json` fields."
|
|
374
|
+
},
|
|
375
|
+
"default": {
|
|
376
|
+
"description": "The value a record gets when it does not set this field. It must itself be a valid value of the field."
|
|
377
|
+
},
|
|
378
|
+
"integer": {
|
|
379
|
+
"type": "boolean",
|
|
380
|
+
"description": "Accept whole numbers only."
|
|
381
|
+
},
|
|
382
|
+
"min": {
|
|
383
|
+
"type": "number",
|
|
384
|
+
"description": "Smallest accepted value."
|
|
385
|
+
},
|
|
386
|
+
"max": {
|
|
387
|
+
"type": "number",
|
|
388
|
+
"description": "Largest accepted value."
|
|
389
|
+
},
|
|
390
|
+
"unit": {
|
|
391
|
+
"type": "string",
|
|
392
|
+
"description": "A unit to show next to the value, such as `m` or `rad/s`. Display only; nothing converts values."
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
"required": [
|
|
396
|
+
"type"
|
|
397
|
+
],
|
|
398
|
+
"additionalProperties": false
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"type": "object",
|
|
402
|
+
"properties": {
|
|
403
|
+
"type": {
|
|
404
|
+
"type": "string",
|
|
405
|
+
"const": "boolean"
|
|
406
|
+
},
|
|
407
|
+
"label": {
|
|
408
|
+
"type": "string",
|
|
409
|
+
"maxLength": 120,
|
|
410
|
+
"description": "A short name for people to read. It may change at any time; the key is what code uses."
|
|
411
|
+
},
|
|
412
|
+
"description": {
|
|
413
|
+
"type": "string",
|
|
414
|
+
"maxLength": 1000,
|
|
415
|
+
"description": "Free text that explains the field to the people who fill it in."
|
|
416
|
+
},
|
|
417
|
+
"required": {
|
|
418
|
+
"type": "boolean",
|
|
419
|
+
"description": "A new record must set this field, and an update may not clear it."
|
|
420
|
+
},
|
|
421
|
+
"unique": {
|
|
422
|
+
"anyOf": [
|
|
423
|
+
{
|
|
424
|
+
"type": "boolean"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"type": "string",
|
|
428
|
+
"const": "collection"
|
|
429
|
+
}
|
|
430
|
+
],
|
|
431
|
+
"description": "`true`: no two records hold the same value, within the collection (`global`) or within one robot (`per_robot`, `one_per_robot`). `collection`: on a robot-bound collection, across all robots. Empty values never collide. Not allowed on `boolean` and `json` fields."
|
|
432
|
+
},
|
|
433
|
+
"default": {
|
|
434
|
+
"description": "The value a record gets when it does not set this field. It must itself be a valid value of the field."
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
"required": [
|
|
438
|
+
"type"
|
|
439
|
+
],
|
|
440
|
+
"additionalProperties": false
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"type": "object",
|
|
444
|
+
"properties": {
|
|
445
|
+
"type": {
|
|
446
|
+
"type": "string",
|
|
447
|
+
"const": "select"
|
|
448
|
+
},
|
|
449
|
+
"label": {
|
|
450
|
+
"type": "string",
|
|
451
|
+
"maxLength": 120,
|
|
452
|
+
"description": "A short name for people to read. It may change at any time; the key is what code uses."
|
|
453
|
+
},
|
|
454
|
+
"description": {
|
|
455
|
+
"type": "string",
|
|
456
|
+
"maxLength": 1000,
|
|
457
|
+
"description": "Free text that explains the field to the people who fill it in."
|
|
458
|
+
},
|
|
459
|
+
"required": {
|
|
460
|
+
"type": "boolean",
|
|
461
|
+
"description": "A new record must set this field, and an update may not clear it."
|
|
462
|
+
},
|
|
463
|
+
"unique": {
|
|
464
|
+
"anyOf": [
|
|
465
|
+
{
|
|
466
|
+
"type": "boolean"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"type": "string",
|
|
470
|
+
"const": "collection"
|
|
471
|
+
}
|
|
472
|
+
],
|
|
473
|
+
"description": "`true`: no two records hold the same value, within the collection (`global`) or within one robot (`per_robot`, `one_per_robot`). `collection`: on a robot-bound collection, across all robots. Empty values never collide. Not allowed on `boolean` and `json` fields."
|
|
474
|
+
},
|
|
475
|
+
"default": {
|
|
476
|
+
"description": "The value a record gets when it does not set this field. It must itself be a valid value of the field."
|
|
477
|
+
},
|
|
478
|
+
"options": {
|
|
479
|
+
"minItems": 1,
|
|
480
|
+
"maxItems": 500,
|
|
481
|
+
"type": "array",
|
|
482
|
+
"items": {
|
|
483
|
+
"type": "object",
|
|
484
|
+
"properties": {
|
|
485
|
+
"value": {
|
|
486
|
+
"type": "string",
|
|
487
|
+
"minLength": 1,
|
|
488
|
+
"maxLength": 200,
|
|
489
|
+
"description": "What is stored in records and used in filters."
|
|
490
|
+
},
|
|
491
|
+
"label": {
|
|
492
|
+
"type": "string",
|
|
493
|
+
"description": "What people see instead of the value."
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
"required": [
|
|
497
|
+
"value"
|
|
498
|
+
],
|
|
499
|
+
"additionalProperties": false
|
|
500
|
+
},
|
|
501
|
+
"description": "The accepted values, 1 to 500. Two options may not share a value."
|
|
502
|
+
},
|
|
503
|
+
"multiple": {
|
|
504
|
+
"type": "boolean",
|
|
505
|
+
"description": "Hold a list of distinct options instead of one."
|
|
506
|
+
},
|
|
507
|
+
"searchable": {
|
|
508
|
+
"type": "boolean",
|
|
509
|
+
"description": "Include the values and labels of the chosen options in the `search` of record lists."
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
"required": [
|
|
513
|
+
"type",
|
|
514
|
+
"options"
|
|
515
|
+
],
|
|
516
|
+
"additionalProperties": false
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"type": "object",
|
|
520
|
+
"properties": {
|
|
521
|
+
"type": {
|
|
522
|
+
"type": "string",
|
|
523
|
+
"const": "date"
|
|
524
|
+
},
|
|
525
|
+
"label": {
|
|
526
|
+
"type": "string",
|
|
527
|
+
"maxLength": 120,
|
|
528
|
+
"description": "A short name for people to read. It may change at any time; the key is what code uses."
|
|
529
|
+
},
|
|
530
|
+
"description": {
|
|
531
|
+
"type": "string",
|
|
532
|
+
"maxLength": 1000,
|
|
533
|
+
"description": "Free text that explains the field to the people who fill it in."
|
|
534
|
+
},
|
|
535
|
+
"required": {
|
|
536
|
+
"type": "boolean",
|
|
537
|
+
"description": "A new record must set this field, and an update may not clear it."
|
|
538
|
+
},
|
|
539
|
+
"unique": {
|
|
540
|
+
"anyOf": [
|
|
541
|
+
{
|
|
542
|
+
"type": "boolean"
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"type": "string",
|
|
546
|
+
"const": "collection"
|
|
547
|
+
}
|
|
548
|
+
],
|
|
549
|
+
"description": "`true`: no two records hold the same value, within the collection (`global`) or within one robot (`per_robot`, `one_per_robot`). `collection`: on a robot-bound collection, across all robots. Empty values never collide. Not allowed on `boolean` and `json` fields."
|
|
550
|
+
},
|
|
551
|
+
"default": {
|
|
552
|
+
"description": "The value a record gets when it does not set this field. It must itself be a valid value of the field."
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
"required": [
|
|
556
|
+
"type"
|
|
557
|
+
],
|
|
558
|
+
"additionalProperties": false
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"type": "object",
|
|
562
|
+
"properties": {
|
|
563
|
+
"type": {
|
|
564
|
+
"type": "string",
|
|
565
|
+
"const": "datetime"
|
|
566
|
+
},
|
|
567
|
+
"label": {
|
|
568
|
+
"type": "string",
|
|
569
|
+
"maxLength": 120,
|
|
570
|
+
"description": "A short name for people to read. It may change at any time; the key is what code uses."
|
|
571
|
+
},
|
|
572
|
+
"description": {
|
|
573
|
+
"type": "string",
|
|
574
|
+
"maxLength": 1000,
|
|
575
|
+
"description": "Free text that explains the field to the people who fill it in."
|
|
576
|
+
},
|
|
577
|
+
"required": {
|
|
578
|
+
"type": "boolean",
|
|
579
|
+
"description": "A new record must set this field, and an update may not clear it."
|
|
580
|
+
},
|
|
581
|
+
"unique": {
|
|
582
|
+
"anyOf": [
|
|
583
|
+
{
|
|
584
|
+
"type": "boolean"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"type": "string",
|
|
588
|
+
"const": "collection"
|
|
589
|
+
}
|
|
590
|
+
],
|
|
591
|
+
"description": "`true`: no two records hold the same value, within the collection (`global`) or within one robot (`per_robot`, `one_per_robot`). `collection`: on a robot-bound collection, across all robots. Empty values never collide. Not allowed on `boolean` and `json` fields."
|
|
592
|
+
},
|
|
593
|
+
"default": {
|
|
594
|
+
"description": "The value a record gets when it does not set this field. It must itself be a valid value of the field."
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
"required": [
|
|
598
|
+
"type"
|
|
599
|
+
],
|
|
600
|
+
"additionalProperties": false
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"type": "object",
|
|
604
|
+
"properties": {
|
|
605
|
+
"type": {
|
|
606
|
+
"type": "string",
|
|
607
|
+
"const": "json"
|
|
608
|
+
},
|
|
609
|
+
"label": {
|
|
610
|
+
"type": "string",
|
|
611
|
+
"maxLength": 120,
|
|
612
|
+
"description": "A short name for people to read. It may change at any time; the key is what code uses."
|
|
613
|
+
},
|
|
614
|
+
"description": {
|
|
615
|
+
"type": "string",
|
|
616
|
+
"maxLength": 1000,
|
|
617
|
+
"description": "Free text that explains the field to the people who fill it in."
|
|
618
|
+
},
|
|
619
|
+
"required": {
|
|
620
|
+
"type": "boolean",
|
|
621
|
+
"description": "A new record must set this field, and an update may not clear it."
|
|
622
|
+
},
|
|
623
|
+
"unique": {
|
|
624
|
+
"anyOf": [
|
|
625
|
+
{
|
|
626
|
+
"type": "boolean"
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"type": "string",
|
|
630
|
+
"const": "collection"
|
|
631
|
+
}
|
|
632
|
+
],
|
|
633
|
+
"description": "`true`: no two records hold the same value, within the collection (`global`) or within one robot (`per_robot`, `one_per_robot`). `collection`: on a robot-bound collection, across all robots. Empty values never collide. Not allowed on `boolean` and `json` fields."
|
|
634
|
+
},
|
|
635
|
+
"default": {
|
|
636
|
+
"description": "The value a record gets when it does not set this field. It must itself be a valid value of the field."
|
|
637
|
+
},
|
|
638
|
+
"schema": {
|
|
639
|
+
"anyOf": [
|
|
640
|
+
{
|
|
641
|
+
"type": "string"
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"type": "object",
|
|
645
|
+
"propertyNames": {
|
|
646
|
+
"type": "string"
|
|
647
|
+
},
|
|
648
|
+
"additionalProperties": {}
|
|
649
|
+
}
|
|
650
|
+
],
|
|
651
|
+
"description": "What the value must look like: the name of a built-in template (`pose2d`, `point2d`, `polygon2d`, `range1d`) or an inline JSON Schema (draft 2020-12). Without it any JSON value is accepted."
|
|
652
|
+
}
|
|
653
|
+
},
|
|
654
|
+
"required": [
|
|
655
|
+
"type"
|
|
656
|
+
],
|
|
657
|
+
"additionalProperties": false
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"type": "object",
|
|
661
|
+
"properties": {
|
|
662
|
+
"type": {
|
|
663
|
+
"type": "string",
|
|
664
|
+
"const": "reference"
|
|
665
|
+
},
|
|
666
|
+
"label": {
|
|
667
|
+
"type": "string",
|
|
668
|
+
"maxLength": 120,
|
|
669
|
+
"description": "A short name for people to read. It may change at any time; the key is what code uses."
|
|
670
|
+
},
|
|
671
|
+
"description": {
|
|
672
|
+
"type": "string",
|
|
673
|
+
"maxLength": 1000,
|
|
674
|
+
"description": "Free text that explains the field to the people who fill it in."
|
|
675
|
+
},
|
|
676
|
+
"required": {
|
|
677
|
+
"type": "boolean",
|
|
678
|
+
"description": "A new record must set this field, and an update may not clear it."
|
|
679
|
+
},
|
|
680
|
+
"unique": {
|
|
681
|
+
"anyOf": [
|
|
682
|
+
{
|
|
683
|
+
"type": "boolean"
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"type": "string",
|
|
687
|
+
"const": "collection"
|
|
688
|
+
}
|
|
689
|
+
],
|
|
690
|
+
"description": "`true`: no two records hold the same value, within the collection (`global`) or within one robot (`per_robot`, `one_per_robot`). `collection`: on a robot-bound collection, across all robots. Empty values never collide. Not allowed on `boolean` and `json` fields."
|
|
691
|
+
},
|
|
692
|
+
"default": {
|
|
693
|
+
"description": "The value a record gets when it does not set this field. It must itself be a valid value of the field."
|
|
694
|
+
},
|
|
695
|
+
"to": {
|
|
696
|
+
"type": "string",
|
|
697
|
+
"pattern": "^[a-z][a-z0-9_]{0,62}$",
|
|
698
|
+
"description": "The key of the collection whose records this field points at. It must be a collection of the same document."
|
|
699
|
+
},
|
|
700
|
+
"on_delete": {
|
|
701
|
+
"type": "string",
|
|
702
|
+
"enum": [
|
|
703
|
+
"prevent",
|
|
704
|
+
"clear"
|
|
705
|
+
],
|
|
706
|
+
"description": "`prevent` (the default): a record that other records point at cannot be deleted. `clear`: deleting it clears the reference in the records that pointed at it."
|
|
707
|
+
}
|
|
708
|
+
},
|
|
709
|
+
"required": [
|
|
710
|
+
"type",
|
|
711
|
+
"to"
|
|
712
|
+
],
|
|
713
|
+
"additionalProperties": false
|
|
714
|
+
}
|
|
715
|
+
]
|
|
716
|
+
},
|
|
717
|
+
"description": "The fields of a record, at most 100. Their order is the order of the record form."
|
|
718
|
+
}
|
|
719
|
+
},
|
|
720
|
+
"required": [
|
|
721
|
+
"binding",
|
|
722
|
+
"fields"
|
|
723
|
+
],
|
|
724
|
+
"additionalProperties": false
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
},
|
|
728
|
+
"required": [
|
|
729
|
+
"format",
|
|
730
|
+
"collections"
|
|
731
|
+
],
|
|
732
|
+
"additionalProperties": false,
|
|
733
|
+
"description": "The data model of an app: its collections, their fields, and who may use them."
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"type": "null"
|
|
737
|
+
}
|
|
738
|
+
],
|
|
739
|
+
"description": "The document the source parses to. Null when the source is empty."
|
|
740
|
+
},
|
|
741
|
+
"updated_at": {
|
|
742
|
+
"anyOf": [
|
|
743
|
+
{
|
|
744
|
+
"type": "string",
|
|
745
|
+
"format": "date-time",
|
|
746
|
+
"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))$"
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"type": "null"
|
|
750
|
+
}
|
|
751
|
+
],
|
|
752
|
+
"description": "When the draft was saved. Null when no draft is saved."
|
|
753
|
+
},
|
|
754
|
+
"updated_by": {
|
|
755
|
+
"anyOf": [
|
|
756
|
+
{
|
|
757
|
+
"type": "object",
|
|
758
|
+
"properties": {
|
|
759
|
+
"kind": {
|
|
760
|
+
"type": "string",
|
|
761
|
+
"enum": [
|
|
762
|
+
"developer",
|
|
763
|
+
"app_user",
|
|
764
|
+
"server_key",
|
|
765
|
+
"fleetless"
|
|
766
|
+
],
|
|
767
|
+
"description": "What made the change: a developer, a user of the app, a server key of the app, or the platform itself."
|
|
768
|
+
},
|
|
769
|
+
"id": {
|
|
770
|
+
"type": "string",
|
|
771
|
+
"format": "uuid",
|
|
772
|
+
"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)$",
|
|
773
|
+
"description": "The id of the developer, app user or server key. The nil id for the platform."
|
|
774
|
+
},
|
|
775
|
+
"label": {
|
|
776
|
+
"type": "string",
|
|
777
|
+
"minLength": 1,
|
|
778
|
+
"maxLength": 200,
|
|
779
|
+
"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."
|
|
780
|
+
}
|
|
781
|
+
},
|
|
782
|
+
"required": [
|
|
783
|
+
"kind",
|
|
784
|
+
"id",
|
|
785
|
+
"label"
|
|
786
|
+
],
|
|
787
|
+
"additionalProperties": false,
|
|
788
|
+
"description": "Who or what made a change to a record."
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
"type": "null"
|
|
792
|
+
}
|
|
793
|
+
],
|
|
794
|
+
"description": "Who saved the draft. Null when no draft is saved."
|
|
795
|
+
},
|
|
796
|
+
"issues": {
|
|
797
|
+
"type": "array",
|
|
798
|
+
"items": {
|
|
799
|
+
"type": "object",
|
|
800
|
+
"properties": {
|
|
801
|
+
"path": {
|
|
802
|
+
"type": "string",
|
|
803
|
+
"minLength": 1,
|
|
804
|
+
"description": "Where in the document, with dots between the keys: `collections.chargers.fields.location.to`."
|
|
805
|
+
},
|
|
806
|
+
"code": {
|
|
807
|
+
"type": "string",
|
|
808
|
+
"description": "A stable name for the kind of finding, for code to branch on."
|
|
809
|
+
},
|
|
810
|
+
"message": {
|
|
811
|
+
"type": "string",
|
|
812
|
+
"description": "What is wrong, in a sentence for a person."
|
|
813
|
+
},
|
|
814
|
+
"severity": {
|
|
815
|
+
"type": "string",
|
|
816
|
+
"enum": [
|
|
817
|
+
"error",
|
|
818
|
+
"warning",
|
|
819
|
+
"info"
|
|
820
|
+
],
|
|
821
|
+
"description": "An error makes the document invalid and it cannot be saved or published. A warning and information leave it valid."
|
|
822
|
+
}
|
|
823
|
+
},
|
|
824
|
+
"required": [
|
|
825
|
+
"path",
|
|
826
|
+
"code",
|
|
827
|
+
"message",
|
|
828
|
+
"severity"
|
|
829
|
+
],
|
|
830
|
+
"additionalProperties": false,
|
|
831
|
+
"description": "One finding about a collections document."
|
|
832
|
+
},
|
|
833
|
+
"description": "Warnings and information about the document. A draft is saved only when it has no errors."
|
|
834
|
+
}
|
|
835
|
+
},
|
|
836
|
+
"required": [
|
|
837
|
+
"source",
|
|
838
|
+
"doc",
|
|
839
|
+
"updated_at",
|
|
840
|
+
"updated_by",
|
|
841
|
+
"issues"
|
|
842
|
+
],
|
|
843
|
+
"additionalProperties": false,
|
|
844
|
+
"description": "The draft of the schema document, or the current version when there is no draft."
|
|
845
|
+
}
|