@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.
Files changed (119) hide show
  1. package/CHANGELOG.md +163 -0
  2. package/artifacts/openapi.json +19842 -11398
  3. package/artifacts/routes.json +1160 -39
  4. package/artifacts/schema/addon-catalogue-entry.schema.json +3 -1
  5. package/artifacts/schema/admin-plan-change-request.schema.json +26 -0
  6. package/artifacts/schema/app-deletion-summary.schema.json +15 -1
  7. package/artifacts/schema/asset-plan-limit-details.schema.json +3 -1
  8. package/artifacts/schema/cloud-config.schema.json +5 -5
  9. package/artifacts/schema/collection-actor.schema.json +35 -0
  10. package/artifacts/schema/collection-definitions-response.schema.json +612 -0
  11. package/artifacts/schema/collection-event.schema.json +216 -0
  12. package/artifacts/schema/collection-export-query.schema.json +56 -0
  13. package/artifacts/schema/collection-filter.schema.json +9 -0
  14. package/artifacts/schema/collection-import-preview.schema.json +143 -0
  15. package/artifacts/schema/collection-import-request.schema.json +105 -0
  16. package/artifacts/schema/collection-import-result.schema.json +38 -0
  17. package/artifacts/schema/collection-list-response.schema.json +119 -0
  18. package/artifacts/schema/collection-record-get-query.schema.json +12 -0
  19. package/artifacts/schema/collection-record-history-query.schema.json +35 -0
  20. package/artifacts/schema/collection-record-history-response.schema.json +389 -0
  21. package/artifacts/schema/collection-record-list-query.schema.json +67 -0
  22. package/artifacts/schema/collection-record-list-response.schema.json +212 -0
  23. package/artifacts/schema/collection-record-restore-request.schema.json +14 -0
  24. package/artifacts/schema/collection-record-write.schema.json +31 -0
  25. package/artifacts/schema/collection-record.schema.json +180 -0
  26. package/artifacts/schema/collection-revision.schema.json +295 -0
  27. package/artifacts/schema/collection-subscribe-error.schema.json +31 -0
  28. package/artifacts/schema/collection-subscribe.schema.json +48 -0
  29. package/artifacts/schema/collection-subscribed.schema.json +22 -0
  30. package/artifacts/schema/collection-summary.schema.json +92 -0
  31. package/artifacts/schema/collection-unsubscribe.schema.json +22 -0
  32. package/artifacts/schema/collections-access-change.schema.json +34 -0
  33. package/artifacts/schema/collections-document.schema.json +732 -0
  34. package/artifacts/schema/collections-draft-response.schema.json +845 -0
  35. package/artifacts/schema/collections-effect.schema.json +384 -0
  36. package/artifacts/schema/collections-issue.schema.json +36 -0
  37. package/artifacts/schema/collections-publish-request.schema.json +18 -0
  38. package/artifacts/schema/collections-publish-response.schema.json +450 -0
  39. package/artifacts/schema/collections-purge-preview.schema.json +60 -0
  40. package/artifacts/schema/collections-purge-request.schema.json +27 -0
  41. package/artifacts/schema/collections-purge-response.schema.json +30 -0
  42. package/artifacts/schema/collections-restore-preview-query.schema.json +20 -0
  43. package/artifacts/schema/collections-restore-preview.schema.json +581 -0
  44. package/artifacts/schema/collections-restore-request.schema.json +27 -0
  45. package/artifacts/schema/collections-restore-response.schema.json +455 -0
  46. package/artifacts/schema/collections-schema-preview.schema.json +519 -0
  47. package/artifacts/schema/collections-schema-published.schema.json +22 -0
  48. package/artifacts/schema/collections-version-response.schema.json +869 -0
  49. package/artifacts/schema/collections-version-summary.schema.json +139 -0
  50. package/artifacts/schema/collections-versions-response.schema.json +167 -0
  51. package/artifacts/schema/config-draft-response.schema.json +5 -5
  52. package/artifacts/schema/config-version-response.schema.json +5 -5
  53. package/artifacts/schema/confirmation-required-details.schema.json +13 -0
  54. package/artifacts/schema/dangling-reference.schema.json +7 -6
  55. package/artifacts/schema/datapoint-list-response.schema.json +2 -2
  56. package/artifacts/schema/effective-rights-response.schema.json +87 -1
  57. package/artifacts/schema/org-plan.schema.json +29 -1
  58. package/artifacts/schema/org-quota-usage-counts.schema.json +18 -0
  59. package/artifacts/schema/org-quota-usage.schema.json +47 -1
  60. package/artifacts/schema/org-quotas.schema.json +29 -1
  61. package/artifacts/schema/org-role-list-response.schema.json +8 -7
  62. package/artifacts/schema/org-role.schema.json +1 -1
  63. package/artifacts/schema/plan-catalogue-entry.schema.json +29 -1
  64. package/artifacts/schema/plan-change-decision-status-response.schema.json +29 -1
  65. package/artifacts/schema/plan-limit-details.schema.json +3 -1
  66. package/artifacts/schema/plan-limits.schema.json +29 -1
  67. package/artifacts/schema/plan-overrides.schema.json +26 -0
  68. package/artifacts/schema/put-collections-draft-request.schema.json +16 -0
  69. package/artifacts/schema/record-changed-details.schema.json +16 -0
  70. package/artifacts/schema/record-referenced-details.schema.json +35 -0
  71. package/artifacts/schema/reference-invalid-details.schema.json +25 -0
  72. package/artifacts/schema/reference-place.schema.json +7 -6
  73. package/artifacts/schema/required-missing-details.schema.json +19 -0
  74. package/artifacts/schema/robot-config-doc.schema.json +5 -5
  75. package/artifacts/schema/robot-deletion-summary.schema.json +33 -1
  76. package/artifacts/schema/role-collection-rights.schema.json +82 -0
  77. package/artifacts/schema/role-rename-preview.schema.json +7 -6
  78. package/dist/apps.d.ts +18 -2
  79. package/dist/apps.js +12 -2
  80. package/dist/audit.d.ts +32 -2
  81. package/dist/audit.js +40 -2
  82. package/dist/collections-issues.d.ts +67 -0
  83. package/dist/collections-issues.js +340 -0
  84. package/dist/collections-records.d.ts +562 -0
  85. package/dist/collections-records.js +525 -0
  86. package/dist/collections-rights.d.ts +17 -0
  87. package/dist/collections-rights.js +41 -0
  88. package/dist/collections-schema.d.ts +1064 -0
  89. package/dist/collections-schema.js +386 -0
  90. package/dist/collections-templates.d.ts +55 -0
  91. package/dist/collections-templates.js +137 -0
  92. package/dist/collections-transfer.d.ts +101 -0
  93. package/dist/collections-transfer.js +206 -0
  94. package/dist/collections-values.d.ts +67 -0
  95. package/dist/collections-values.js +284 -0
  96. package/dist/collections.d.ts +568 -0
  97. package/dist/collections.js +332 -0
  98. package/dist/config.d.ts +8 -8
  99. package/dist/config.js +13 -13
  100. package/dist/errors.d.ts +50 -1
  101. package/dist/errors.js +115 -0
  102. package/dist/index.d.ts +24 -8
  103. package/dist/index.js +13 -3
  104. package/dist/org-roles.d.ts +4 -0
  105. package/dist/org-roles.js +10 -9
  106. package/dist/plans.d.ts +19 -1
  107. package/dist/plans.js +21 -1
  108. package/dist/realtime.d.ts +166 -0
  109. package/dist/realtime.js +163 -0
  110. package/dist/rest.d.ts +28 -28
  111. package/dist/rest.js +39 -27
  112. package/dist/rights.d.ts +2 -2
  113. package/dist/rights.js +1 -1
  114. package/dist/routes.d.ts +1 -1
  115. package/dist/routes.js +495 -21
  116. package/package.json +1 -1
  117. package/artifacts/schema/put-robot-details-request.schema.json +0 -41
  118. package/artifacts/schema/put-robot-details-response.schema.json +0 -43
  119. package/artifacts/schema/robot-details-doc.schema.json +0 -33
@@ -0,0 +1,1064 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ import { z } from 'zod';
3
+ /**
4
+ * One thing a publish or a restore does to data that already exists. Effects
5
+ * that would change nothing are not listed, so an empty list means the change
6
+ * touches no data. They are matched by key only: a renamed collection or field
7
+ * is a removal plus an addition.
8
+ */
9
+ export declare const collectionsEffect: z.ZodDiscriminatedUnion<[z.ZodObject<{
10
+ kind: z.ZodLiteral<"collection_removed">;
11
+ collection: z.ZodString;
12
+ records: z.ZodNumber;
13
+ }, z.core.$strict>, z.ZodObject<{
14
+ kind: z.ZodLiteral<"collection_recreated">;
15
+ collection: z.ZodString;
16
+ records: z.ZodNumber;
17
+ from: z.ZodEnum<{
18
+ global: "global";
19
+ per_robot: "per_robot";
20
+ one_per_robot: "one_per_robot";
21
+ }>;
22
+ to: z.ZodEnum<{
23
+ global: "global";
24
+ per_robot: "per_robot";
25
+ one_per_robot: "one_per_robot";
26
+ }>;
27
+ }, z.core.$strict>, z.ZodObject<{
28
+ kind: z.ZodLiteral<"records_created">;
29
+ collection: z.ZodString;
30
+ count: z.ZodNumber;
31
+ }, z.core.$strict>, z.ZodObject<{
32
+ kind: z.ZodLiteral<"field_removed">;
33
+ collection: z.ZodString;
34
+ field: z.ZodString;
35
+ values: z.ZodNumber;
36
+ }, z.core.$strict>, z.ZodObject<{
37
+ kind: z.ZodLiteral<"defaults_filled">;
38
+ collection: z.ZodString;
39
+ field: z.ZodString;
40
+ records: z.ZodNumber;
41
+ }, z.core.$strict>, z.ZodObject<{
42
+ kind: z.ZodLiteral<"values_converted">;
43
+ collection: z.ZodString;
44
+ field: z.ZodString;
45
+ converted: z.ZodNumber;
46
+ discarded: z.ZodNumber;
47
+ }, z.core.$strict>, z.ZodObject<{
48
+ kind: z.ZodLiteral<"values_discarded">;
49
+ collection: z.ZodString;
50
+ field: z.ZodString;
51
+ reason: z.ZodEnum<{
52
+ reference_target_changed: "reference_target_changed";
53
+ option_removed: "option_removed";
54
+ constraint: "constraint";
55
+ }>;
56
+ values: z.ZodNumber;
57
+ }, z.core.$strict>, z.ZodObject<{
58
+ kind: z.ZodLiteral<"unique_discarded">;
59
+ collection: z.ZodString;
60
+ field: z.ZodString;
61
+ total: z.ZodNumber;
62
+ records: z.ZodArray<z.ZodObject<{
63
+ id: z.ZodUUID;
64
+ display: z.ZodString;
65
+ value: z.ZodUnknown;
66
+ }, z.core.$strict>>;
67
+ }, z.core.$strict>, z.ZodObject<{
68
+ kind: z.ZodLiteral<"required_left_empty">;
69
+ collection: z.ZodString;
70
+ field: z.ZodString;
71
+ records: z.ZodNumber;
72
+ }, z.core.$strict>, z.ZodObject<{
73
+ kind: z.ZodLiteral<"references_cleared">;
74
+ collection: z.ZodString;
75
+ field: z.ZodString;
76
+ values: z.ZodNumber;
77
+ }, z.core.$strict>], "kind">;
78
+ export type CollectionsEffect = z.infer<typeof collectionsEffect>;
79
+ /** A change to who may do what, shown with a preview as information; it needs no confirmation. */
80
+ export declare const collectionsAccessChange: z.ZodObject<{
81
+ collection: z.ZodString;
82
+ action: z.ZodEnum<{
83
+ read: "read";
84
+ create: "create";
85
+ update: "update";
86
+ delete: "delete";
87
+ }>;
88
+ from: z.ZodUnknown;
89
+ to: z.ZodUnknown;
90
+ }, z.core.$strip>;
91
+ export type CollectionsAccessChange = z.infer<typeof collectionsAccessChange>;
92
+ /** What publishing the draft would do. */
93
+ export declare const collectionsSchemaPreview: z.ZodObject<{
94
+ from_version: z.ZodNullable<z.ZodNumber>;
95
+ to_version: z.ZodNumber;
96
+ valid: z.ZodBoolean;
97
+ issues: z.ZodArray<z.ZodObject<{
98
+ path: z.ZodString;
99
+ code: z.ZodString;
100
+ message: z.ZodString;
101
+ severity: z.ZodEnum<{
102
+ error: "error";
103
+ warning: "warning";
104
+ info: "info";
105
+ }>;
106
+ }, z.core.$strip>>;
107
+ effects: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
108
+ kind: z.ZodLiteral<"collection_removed">;
109
+ collection: z.ZodString;
110
+ records: z.ZodNumber;
111
+ }, z.core.$strict>, z.ZodObject<{
112
+ kind: z.ZodLiteral<"collection_recreated">;
113
+ collection: z.ZodString;
114
+ records: z.ZodNumber;
115
+ from: z.ZodEnum<{
116
+ global: "global";
117
+ per_robot: "per_robot";
118
+ one_per_robot: "one_per_robot";
119
+ }>;
120
+ to: z.ZodEnum<{
121
+ global: "global";
122
+ per_robot: "per_robot";
123
+ one_per_robot: "one_per_robot";
124
+ }>;
125
+ }, z.core.$strict>, z.ZodObject<{
126
+ kind: z.ZodLiteral<"records_created">;
127
+ collection: z.ZodString;
128
+ count: z.ZodNumber;
129
+ }, z.core.$strict>, z.ZodObject<{
130
+ kind: z.ZodLiteral<"field_removed">;
131
+ collection: z.ZodString;
132
+ field: z.ZodString;
133
+ values: z.ZodNumber;
134
+ }, z.core.$strict>, z.ZodObject<{
135
+ kind: z.ZodLiteral<"defaults_filled">;
136
+ collection: z.ZodString;
137
+ field: z.ZodString;
138
+ records: z.ZodNumber;
139
+ }, z.core.$strict>, z.ZodObject<{
140
+ kind: z.ZodLiteral<"values_converted">;
141
+ collection: z.ZodString;
142
+ field: z.ZodString;
143
+ converted: z.ZodNumber;
144
+ discarded: z.ZodNumber;
145
+ }, z.core.$strict>, z.ZodObject<{
146
+ kind: z.ZodLiteral<"values_discarded">;
147
+ collection: z.ZodString;
148
+ field: z.ZodString;
149
+ reason: z.ZodEnum<{
150
+ reference_target_changed: "reference_target_changed";
151
+ option_removed: "option_removed";
152
+ constraint: "constraint";
153
+ }>;
154
+ values: z.ZodNumber;
155
+ }, z.core.$strict>, z.ZodObject<{
156
+ kind: z.ZodLiteral<"unique_discarded">;
157
+ collection: z.ZodString;
158
+ field: z.ZodString;
159
+ total: z.ZodNumber;
160
+ records: z.ZodArray<z.ZodObject<{
161
+ id: z.ZodUUID;
162
+ display: z.ZodString;
163
+ value: z.ZodUnknown;
164
+ }, z.core.$strict>>;
165
+ }, z.core.$strict>, z.ZodObject<{
166
+ kind: z.ZodLiteral<"required_left_empty">;
167
+ collection: z.ZodString;
168
+ field: z.ZodString;
169
+ records: z.ZodNumber;
170
+ }, z.core.$strict>, z.ZodObject<{
171
+ kind: z.ZodLiteral<"references_cleared">;
172
+ collection: z.ZodString;
173
+ field: z.ZodString;
174
+ values: z.ZodNumber;
175
+ }, z.core.$strict>], "kind">>;
176
+ access_changes: z.ZodArray<z.ZodObject<{
177
+ collection: z.ZodString;
178
+ action: z.ZodEnum<{
179
+ read: "read";
180
+ create: "create";
181
+ update: "update";
182
+ delete: "delete";
183
+ }>;
184
+ from: z.ZodUnknown;
185
+ to: z.ZodUnknown;
186
+ }, z.core.$strip>>;
187
+ source_sha256: z.ZodString;
188
+ token: z.ZodNullable<z.ZodString>;
189
+ }, z.core.$strip>;
190
+ export type CollectionsSchemaPreview = z.infer<typeof collectionsSchemaPreview>;
191
+ /**
192
+ * The draft. `source` is the text the developer edits: the saved draft, else
193
+ * the text of the current version, else empty before anything was published.
194
+ * `updated_at: null` says no draft is saved and the text is the version's.
195
+ */
196
+ export declare const collectionsDraftResponse: z.ZodObject<{
197
+ source: z.ZodString;
198
+ doc: z.ZodNullable<z.ZodObject<{
199
+ format: z.ZodLiteral<1>;
200
+ collections: z.ZodCodec<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
201
+ label: z.ZodOptional<z.ZodString>;
202
+ description: z.ZodOptional<z.ZodString>;
203
+ binding: z.ZodEnum<{
204
+ global: "global";
205
+ per_robot: "per_robot";
206
+ one_per_robot: "one_per_robot";
207
+ }>;
208
+ display: z.ZodOptional<z.ZodString>;
209
+ access: z.ZodOptional<z.ZodObject<{
210
+ read: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
211
+ create: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
212
+ update: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodObject<{
213
+ all: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
214
+ own: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
215
+ }, z.core.$strict>]>>;
216
+ delete: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodObject<{
217
+ all: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
218
+ own: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
219
+ }, z.core.$strict>]>>;
220
+ }, z.core.$strict>>;
221
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
222
+ max_length: z.ZodOptional<z.ZodNumber>;
223
+ pattern: z.ZodOptional<z.ZodString>;
224
+ searchable: z.ZodOptional<z.ZodBoolean>;
225
+ label: z.ZodOptional<z.ZodString>;
226
+ description: z.ZodOptional<z.ZodString>;
227
+ required: z.ZodOptional<z.ZodBoolean>;
228
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
229
+ default: z.ZodOptional<z.ZodUnknown>;
230
+ type: z.ZodLiteral<"text">;
231
+ }, z.core.$strict>, z.ZodObject<{
232
+ max_length: z.ZodOptional<z.ZodNumber>;
233
+ searchable: z.ZodOptional<z.ZodBoolean>;
234
+ label: z.ZodOptional<z.ZodString>;
235
+ description: z.ZodOptional<z.ZodString>;
236
+ required: z.ZodOptional<z.ZodBoolean>;
237
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
238
+ default: z.ZodOptional<z.ZodUnknown>;
239
+ type: z.ZodLiteral<"long_text">;
240
+ }, z.core.$strict>, z.ZodObject<{
241
+ integer: z.ZodOptional<z.ZodBoolean>;
242
+ min: z.ZodOptional<z.ZodNumber>;
243
+ max: z.ZodOptional<z.ZodNumber>;
244
+ unit: z.ZodOptional<z.ZodString>;
245
+ label: z.ZodOptional<z.ZodString>;
246
+ description: z.ZodOptional<z.ZodString>;
247
+ required: z.ZodOptional<z.ZodBoolean>;
248
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
249
+ default: z.ZodOptional<z.ZodUnknown>;
250
+ type: z.ZodLiteral<"number">;
251
+ }, z.core.$strict>, z.ZodObject<{
252
+ label: z.ZodOptional<z.ZodString>;
253
+ description: z.ZodOptional<z.ZodString>;
254
+ required: z.ZodOptional<z.ZodBoolean>;
255
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
256
+ default: z.ZodOptional<z.ZodUnknown>;
257
+ type: z.ZodLiteral<"boolean">;
258
+ }, z.core.$strict>, z.ZodObject<{
259
+ options: z.ZodArray<z.ZodObject<{
260
+ value: z.ZodString;
261
+ label: z.ZodOptional<z.ZodString>;
262
+ }, z.core.$strict>>;
263
+ multiple: z.ZodOptional<z.ZodBoolean>;
264
+ searchable: z.ZodOptional<z.ZodBoolean>;
265
+ label: z.ZodOptional<z.ZodString>;
266
+ description: z.ZodOptional<z.ZodString>;
267
+ required: z.ZodOptional<z.ZodBoolean>;
268
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
269
+ default: z.ZodOptional<z.ZodUnknown>;
270
+ type: z.ZodLiteral<"select">;
271
+ }, z.core.$strict>, z.ZodObject<{
272
+ label: z.ZodOptional<z.ZodString>;
273
+ description: z.ZodOptional<z.ZodString>;
274
+ required: z.ZodOptional<z.ZodBoolean>;
275
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
276
+ default: z.ZodOptional<z.ZodUnknown>;
277
+ type: z.ZodLiteral<"date">;
278
+ }, z.core.$strict>, z.ZodObject<{
279
+ label: z.ZodOptional<z.ZodString>;
280
+ description: z.ZodOptional<z.ZodString>;
281
+ required: z.ZodOptional<z.ZodBoolean>;
282
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
283
+ default: z.ZodOptional<z.ZodUnknown>;
284
+ type: z.ZodLiteral<"datetime">;
285
+ }, z.core.$strict>, z.ZodObject<{
286
+ schema: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
287
+ label: z.ZodOptional<z.ZodString>;
288
+ description: z.ZodOptional<z.ZodString>;
289
+ required: z.ZodOptional<z.ZodBoolean>;
290
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
291
+ default: z.ZodOptional<z.ZodUnknown>;
292
+ type: z.ZodLiteral<"json">;
293
+ }, z.core.$strict>, z.ZodObject<{
294
+ to: z.ZodString;
295
+ on_delete: z.ZodOptional<z.ZodEnum<{
296
+ prevent: "prevent";
297
+ clear: "clear";
298
+ }>>;
299
+ label: z.ZodOptional<z.ZodString>;
300
+ description: z.ZodOptional<z.ZodString>;
301
+ required: z.ZodOptional<z.ZodBoolean>;
302
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
303
+ default: z.ZodOptional<z.ZodUnknown>;
304
+ type: z.ZodLiteral<"reference">;
305
+ }, z.core.$strict>], "type">>;
306
+ }, z.core.$strict>>>, z.ZodRecord<z.ZodString, z.ZodObject<{
307
+ label: z.ZodOptional<z.ZodString>;
308
+ description: z.ZodOptional<z.ZodString>;
309
+ binding: z.ZodEnum<{
310
+ global: "global";
311
+ per_robot: "per_robot";
312
+ one_per_robot: "one_per_robot";
313
+ }>;
314
+ display: z.ZodOptional<z.ZodString>;
315
+ access: z.ZodOptional<z.ZodObject<{
316
+ read: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
317
+ create: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
318
+ update: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodObject<{
319
+ all: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
320
+ own: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
321
+ }, z.core.$strict>]>>;
322
+ delete: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodObject<{
323
+ all: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
324
+ own: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
325
+ }, z.core.$strict>]>>;
326
+ }, z.core.$strict>>;
327
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
328
+ max_length: z.ZodOptional<z.ZodNumber>;
329
+ pattern: z.ZodOptional<z.ZodString>;
330
+ searchable: z.ZodOptional<z.ZodBoolean>;
331
+ label: z.ZodOptional<z.ZodString>;
332
+ description: z.ZodOptional<z.ZodString>;
333
+ required: z.ZodOptional<z.ZodBoolean>;
334
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
335
+ default: z.ZodOptional<z.ZodUnknown>;
336
+ type: z.ZodLiteral<"text">;
337
+ }, z.core.$strict>, z.ZodObject<{
338
+ max_length: z.ZodOptional<z.ZodNumber>;
339
+ searchable: z.ZodOptional<z.ZodBoolean>;
340
+ label: z.ZodOptional<z.ZodString>;
341
+ description: z.ZodOptional<z.ZodString>;
342
+ required: z.ZodOptional<z.ZodBoolean>;
343
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
344
+ default: z.ZodOptional<z.ZodUnknown>;
345
+ type: z.ZodLiteral<"long_text">;
346
+ }, z.core.$strict>, z.ZodObject<{
347
+ integer: z.ZodOptional<z.ZodBoolean>;
348
+ min: z.ZodOptional<z.ZodNumber>;
349
+ max: z.ZodOptional<z.ZodNumber>;
350
+ unit: z.ZodOptional<z.ZodString>;
351
+ label: z.ZodOptional<z.ZodString>;
352
+ description: z.ZodOptional<z.ZodString>;
353
+ required: z.ZodOptional<z.ZodBoolean>;
354
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
355
+ default: z.ZodOptional<z.ZodUnknown>;
356
+ type: z.ZodLiteral<"number">;
357
+ }, z.core.$strict>, z.ZodObject<{
358
+ label: z.ZodOptional<z.ZodString>;
359
+ description: z.ZodOptional<z.ZodString>;
360
+ required: z.ZodOptional<z.ZodBoolean>;
361
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
362
+ default: z.ZodOptional<z.ZodUnknown>;
363
+ type: z.ZodLiteral<"boolean">;
364
+ }, z.core.$strict>, z.ZodObject<{
365
+ options: z.ZodArray<z.ZodObject<{
366
+ value: z.ZodString;
367
+ label: z.ZodOptional<z.ZodString>;
368
+ }, z.core.$strict>>;
369
+ multiple: z.ZodOptional<z.ZodBoolean>;
370
+ searchable: z.ZodOptional<z.ZodBoolean>;
371
+ label: z.ZodOptional<z.ZodString>;
372
+ description: z.ZodOptional<z.ZodString>;
373
+ required: z.ZodOptional<z.ZodBoolean>;
374
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
375
+ default: z.ZodOptional<z.ZodUnknown>;
376
+ type: z.ZodLiteral<"select">;
377
+ }, z.core.$strict>, z.ZodObject<{
378
+ label: z.ZodOptional<z.ZodString>;
379
+ description: z.ZodOptional<z.ZodString>;
380
+ required: z.ZodOptional<z.ZodBoolean>;
381
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
382
+ default: z.ZodOptional<z.ZodUnknown>;
383
+ type: z.ZodLiteral<"date">;
384
+ }, z.core.$strict>, z.ZodObject<{
385
+ label: z.ZodOptional<z.ZodString>;
386
+ description: z.ZodOptional<z.ZodString>;
387
+ required: z.ZodOptional<z.ZodBoolean>;
388
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
389
+ default: z.ZodOptional<z.ZodUnknown>;
390
+ type: z.ZodLiteral<"datetime">;
391
+ }, z.core.$strict>, z.ZodObject<{
392
+ schema: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
393
+ label: z.ZodOptional<z.ZodString>;
394
+ description: z.ZodOptional<z.ZodString>;
395
+ required: z.ZodOptional<z.ZodBoolean>;
396
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
397
+ default: z.ZodOptional<z.ZodUnknown>;
398
+ type: z.ZodLiteral<"json">;
399
+ }, z.core.$strict>, z.ZodObject<{
400
+ to: z.ZodString;
401
+ on_delete: z.ZodOptional<z.ZodEnum<{
402
+ prevent: "prevent";
403
+ clear: "clear";
404
+ }>>;
405
+ label: z.ZodOptional<z.ZodString>;
406
+ description: z.ZodOptional<z.ZodString>;
407
+ required: z.ZodOptional<z.ZodBoolean>;
408
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
409
+ default: z.ZodOptional<z.ZodUnknown>;
410
+ type: z.ZodLiteral<"reference">;
411
+ }, z.core.$strict>], "type">>;
412
+ }, z.core.$strict>>>;
413
+ }, z.core.$strict>>;
414
+ updated_at: z.ZodNullable<z.ZodISODateTime>;
415
+ updated_by: z.ZodNullable<z.ZodObject<{
416
+ kind: z.ZodEnum<{
417
+ developer: "developer";
418
+ fleetless: "fleetless";
419
+ server_key: "server_key";
420
+ app_user: "app_user";
421
+ }>;
422
+ id: z.ZodUUID;
423
+ label: z.ZodString;
424
+ }, z.core.$strip>>;
425
+ issues: z.ZodArray<z.ZodObject<{
426
+ path: z.ZodString;
427
+ code: z.ZodString;
428
+ message: z.ZodString;
429
+ severity: z.ZodEnum<{
430
+ error: "error";
431
+ warning: "warning";
432
+ info: "info";
433
+ }>;
434
+ }, z.core.$strip>>;
435
+ }, z.core.$strip>;
436
+ export type CollectionsDraftResponse = z.infer<typeof collectionsDraftResponse>;
437
+ export declare const putCollectionsDraftRequest: z.ZodObject<{
438
+ source: z.ZodString;
439
+ }, z.core.$strict>;
440
+ export type PutCollectionsDraftRequest = z.infer<typeof putCollectionsDraftRequest>;
441
+ export declare const collectionsPublishRequest: z.ZodObject<{
442
+ confirm: z.ZodOptional<z.ZodString>;
443
+ source_sha256: z.ZodOptional<z.ZodString>;
444
+ }, z.core.$strict>;
445
+ export type CollectionsPublishRequest = z.infer<typeof collectionsPublishRequest>;
446
+ export declare const collectionsPublishResponse: z.ZodObject<{
447
+ version: z.ZodNumber;
448
+ published_at: z.ZodISODateTime;
449
+ effects: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
450
+ kind: z.ZodLiteral<"collection_removed">;
451
+ collection: z.ZodString;
452
+ records: z.ZodNumber;
453
+ }, z.core.$strict>, z.ZodObject<{
454
+ kind: z.ZodLiteral<"collection_recreated">;
455
+ collection: z.ZodString;
456
+ records: z.ZodNumber;
457
+ from: z.ZodEnum<{
458
+ global: "global";
459
+ per_robot: "per_robot";
460
+ one_per_robot: "one_per_robot";
461
+ }>;
462
+ to: z.ZodEnum<{
463
+ global: "global";
464
+ per_robot: "per_robot";
465
+ one_per_robot: "one_per_robot";
466
+ }>;
467
+ }, z.core.$strict>, z.ZodObject<{
468
+ kind: z.ZodLiteral<"records_created">;
469
+ collection: z.ZodString;
470
+ count: z.ZodNumber;
471
+ }, z.core.$strict>, z.ZodObject<{
472
+ kind: z.ZodLiteral<"field_removed">;
473
+ collection: z.ZodString;
474
+ field: z.ZodString;
475
+ values: z.ZodNumber;
476
+ }, z.core.$strict>, z.ZodObject<{
477
+ kind: z.ZodLiteral<"defaults_filled">;
478
+ collection: z.ZodString;
479
+ field: z.ZodString;
480
+ records: z.ZodNumber;
481
+ }, z.core.$strict>, z.ZodObject<{
482
+ kind: z.ZodLiteral<"values_converted">;
483
+ collection: z.ZodString;
484
+ field: z.ZodString;
485
+ converted: z.ZodNumber;
486
+ discarded: z.ZodNumber;
487
+ }, z.core.$strict>, z.ZodObject<{
488
+ kind: z.ZodLiteral<"values_discarded">;
489
+ collection: z.ZodString;
490
+ field: z.ZodString;
491
+ reason: z.ZodEnum<{
492
+ reference_target_changed: "reference_target_changed";
493
+ option_removed: "option_removed";
494
+ constraint: "constraint";
495
+ }>;
496
+ values: z.ZodNumber;
497
+ }, z.core.$strict>, z.ZodObject<{
498
+ kind: z.ZodLiteral<"unique_discarded">;
499
+ collection: z.ZodString;
500
+ field: z.ZodString;
501
+ total: z.ZodNumber;
502
+ records: z.ZodArray<z.ZodObject<{
503
+ id: z.ZodUUID;
504
+ display: z.ZodString;
505
+ value: z.ZodUnknown;
506
+ }, z.core.$strict>>;
507
+ }, z.core.$strict>, z.ZodObject<{
508
+ kind: z.ZodLiteral<"required_left_empty">;
509
+ collection: z.ZodString;
510
+ field: z.ZodString;
511
+ records: z.ZodNumber;
512
+ }, z.core.$strict>, z.ZodObject<{
513
+ kind: z.ZodLiteral<"references_cleared">;
514
+ collection: z.ZodString;
515
+ field: z.ZodString;
516
+ values: z.ZodNumber;
517
+ }, z.core.$strict>], "kind">>;
518
+ issues: z.ZodArray<z.ZodObject<{
519
+ path: z.ZodString;
520
+ code: z.ZodString;
521
+ message: z.ZodString;
522
+ severity: z.ZodEnum<{
523
+ error: "error";
524
+ warning: "warning";
525
+ info: "info";
526
+ }>;
527
+ }, z.core.$strip>>;
528
+ }, z.core.$strip>;
529
+ export type CollectionsPublishResponse = z.infer<typeof collectionsPublishResponse>;
530
+ /** One published version. */
531
+ export declare const collectionsVersionSummary: z.ZodObject<{
532
+ version: z.ZodNumber;
533
+ published_at: z.ZodISODateTime;
534
+ published_by: z.ZodObject<{
535
+ kind: z.ZodEnum<{
536
+ developer: "developer";
537
+ fleetless: "fleetless";
538
+ server_key: "server_key";
539
+ app_user: "app_user";
540
+ }>;
541
+ id: z.ZodUUID;
542
+ label: z.ZodString;
543
+ }, z.core.$strip>;
544
+ effect_counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
545
+ restored_from: z.ZodNullable<z.ZodNumber>;
546
+ restore_with_data: z.ZodBoolean;
547
+ with_data: z.ZodBoolean;
548
+ reverted_totals: z.ZodNullable<z.ZodObject<{
549
+ changes: z.ZodNumber;
550
+ records_back: z.ZodNumber;
551
+ records_deleted: z.ZodNumber;
552
+ robots_gone: z.ZodNumber;
553
+ }, z.core.$strict>>;
554
+ }, z.core.$strip>;
555
+ export type CollectionsVersionSummary = z.infer<typeof collectionsVersionSummary>;
556
+ export declare const collectionsVersionsResponse: z.ZodObject<{
557
+ current: z.ZodNullable<z.ZodNumber>;
558
+ versions: z.ZodArray<z.ZodObject<{
559
+ version: z.ZodNumber;
560
+ published_at: z.ZodISODateTime;
561
+ published_by: z.ZodObject<{
562
+ kind: z.ZodEnum<{
563
+ developer: "developer";
564
+ fleetless: "fleetless";
565
+ server_key: "server_key";
566
+ app_user: "app_user";
567
+ }>;
568
+ id: z.ZodUUID;
569
+ label: z.ZodString;
570
+ }, z.core.$strip>;
571
+ effect_counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
572
+ restored_from: z.ZodNullable<z.ZodNumber>;
573
+ restore_with_data: z.ZodBoolean;
574
+ with_data: z.ZodBoolean;
575
+ reverted_totals: z.ZodNullable<z.ZodObject<{
576
+ changes: z.ZodNumber;
577
+ records_back: z.ZodNumber;
578
+ records_deleted: z.ZodNumber;
579
+ robots_gone: z.ZodNumber;
580
+ }, z.core.$strict>>;
581
+ }, z.core.$strip>>;
582
+ }, z.core.$strip>;
583
+ export type CollectionsVersionsResponse = z.infer<typeof collectionsVersionsResponse>;
584
+ export declare const collectionsVersionResponse: z.ZodObject<{
585
+ version: z.ZodNumber;
586
+ published_at: z.ZodISODateTime;
587
+ published_by: z.ZodObject<{
588
+ kind: z.ZodEnum<{
589
+ developer: "developer";
590
+ fleetless: "fleetless";
591
+ server_key: "server_key";
592
+ app_user: "app_user";
593
+ }>;
594
+ id: z.ZodUUID;
595
+ label: z.ZodString;
596
+ }, z.core.$strip>;
597
+ effect_counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
598
+ restored_from: z.ZodNullable<z.ZodNumber>;
599
+ restore_with_data: z.ZodBoolean;
600
+ with_data: z.ZodBoolean;
601
+ reverted_totals: z.ZodNullable<z.ZodObject<{
602
+ changes: z.ZodNumber;
603
+ records_back: z.ZodNumber;
604
+ records_deleted: z.ZodNumber;
605
+ robots_gone: z.ZodNumber;
606
+ }, z.core.$strict>>;
607
+ source: z.ZodString;
608
+ doc: z.ZodObject<{
609
+ format: z.ZodLiteral<1>;
610
+ collections: z.ZodCodec<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
611
+ label: z.ZodOptional<z.ZodString>;
612
+ description: z.ZodOptional<z.ZodString>;
613
+ binding: z.ZodEnum<{
614
+ global: "global";
615
+ per_robot: "per_robot";
616
+ one_per_robot: "one_per_robot";
617
+ }>;
618
+ display: z.ZodOptional<z.ZodString>;
619
+ access: z.ZodOptional<z.ZodObject<{
620
+ read: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
621
+ create: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
622
+ update: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodObject<{
623
+ all: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
624
+ own: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
625
+ }, z.core.$strict>]>>;
626
+ delete: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodObject<{
627
+ all: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
628
+ own: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
629
+ }, z.core.$strict>]>>;
630
+ }, z.core.$strict>>;
631
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
632
+ max_length: z.ZodOptional<z.ZodNumber>;
633
+ pattern: z.ZodOptional<z.ZodString>;
634
+ searchable: z.ZodOptional<z.ZodBoolean>;
635
+ label: z.ZodOptional<z.ZodString>;
636
+ description: z.ZodOptional<z.ZodString>;
637
+ required: z.ZodOptional<z.ZodBoolean>;
638
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
639
+ default: z.ZodOptional<z.ZodUnknown>;
640
+ type: z.ZodLiteral<"text">;
641
+ }, z.core.$strict>, z.ZodObject<{
642
+ max_length: z.ZodOptional<z.ZodNumber>;
643
+ searchable: z.ZodOptional<z.ZodBoolean>;
644
+ label: z.ZodOptional<z.ZodString>;
645
+ description: z.ZodOptional<z.ZodString>;
646
+ required: z.ZodOptional<z.ZodBoolean>;
647
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
648
+ default: z.ZodOptional<z.ZodUnknown>;
649
+ type: z.ZodLiteral<"long_text">;
650
+ }, z.core.$strict>, z.ZodObject<{
651
+ integer: z.ZodOptional<z.ZodBoolean>;
652
+ min: z.ZodOptional<z.ZodNumber>;
653
+ max: z.ZodOptional<z.ZodNumber>;
654
+ unit: z.ZodOptional<z.ZodString>;
655
+ label: z.ZodOptional<z.ZodString>;
656
+ description: z.ZodOptional<z.ZodString>;
657
+ required: z.ZodOptional<z.ZodBoolean>;
658
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
659
+ default: z.ZodOptional<z.ZodUnknown>;
660
+ type: z.ZodLiteral<"number">;
661
+ }, z.core.$strict>, z.ZodObject<{
662
+ label: z.ZodOptional<z.ZodString>;
663
+ description: z.ZodOptional<z.ZodString>;
664
+ required: z.ZodOptional<z.ZodBoolean>;
665
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
666
+ default: z.ZodOptional<z.ZodUnknown>;
667
+ type: z.ZodLiteral<"boolean">;
668
+ }, z.core.$strict>, z.ZodObject<{
669
+ options: z.ZodArray<z.ZodObject<{
670
+ value: z.ZodString;
671
+ label: z.ZodOptional<z.ZodString>;
672
+ }, z.core.$strict>>;
673
+ multiple: z.ZodOptional<z.ZodBoolean>;
674
+ searchable: z.ZodOptional<z.ZodBoolean>;
675
+ label: z.ZodOptional<z.ZodString>;
676
+ description: z.ZodOptional<z.ZodString>;
677
+ required: z.ZodOptional<z.ZodBoolean>;
678
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
679
+ default: z.ZodOptional<z.ZodUnknown>;
680
+ type: z.ZodLiteral<"select">;
681
+ }, z.core.$strict>, z.ZodObject<{
682
+ label: z.ZodOptional<z.ZodString>;
683
+ description: z.ZodOptional<z.ZodString>;
684
+ required: z.ZodOptional<z.ZodBoolean>;
685
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
686
+ default: z.ZodOptional<z.ZodUnknown>;
687
+ type: z.ZodLiteral<"date">;
688
+ }, z.core.$strict>, z.ZodObject<{
689
+ label: z.ZodOptional<z.ZodString>;
690
+ description: z.ZodOptional<z.ZodString>;
691
+ required: z.ZodOptional<z.ZodBoolean>;
692
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
693
+ default: z.ZodOptional<z.ZodUnknown>;
694
+ type: z.ZodLiteral<"datetime">;
695
+ }, z.core.$strict>, z.ZodObject<{
696
+ schema: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
697
+ label: z.ZodOptional<z.ZodString>;
698
+ description: z.ZodOptional<z.ZodString>;
699
+ required: z.ZodOptional<z.ZodBoolean>;
700
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
701
+ default: z.ZodOptional<z.ZodUnknown>;
702
+ type: z.ZodLiteral<"json">;
703
+ }, z.core.$strict>, z.ZodObject<{
704
+ to: z.ZodString;
705
+ on_delete: z.ZodOptional<z.ZodEnum<{
706
+ prevent: "prevent";
707
+ clear: "clear";
708
+ }>>;
709
+ label: z.ZodOptional<z.ZodString>;
710
+ description: z.ZodOptional<z.ZodString>;
711
+ required: z.ZodOptional<z.ZodBoolean>;
712
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
713
+ default: z.ZodOptional<z.ZodUnknown>;
714
+ type: z.ZodLiteral<"reference">;
715
+ }, z.core.$strict>], "type">>;
716
+ }, z.core.$strict>>>, z.ZodRecord<z.ZodString, z.ZodObject<{
717
+ label: z.ZodOptional<z.ZodString>;
718
+ description: z.ZodOptional<z.ZodString>;
719
+ binding: z.ZodEnum<{
720
+ global: "global";
721
+ per_robot: "per_robot";
722
+ one_per_robot: "one_per_robot";
723
+ }>;
724
+ display: z.ZodOptional<z.ZodString>;
725
+ access: z.ZodOptional<z.ZodObject<{
726
+ read: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
727
+ create: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
728
+ update: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodObject<{
729
+ all: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
730
+ own: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
731
+ }, z.core.$strict>]>>;
732
+ delete: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodObject<{
733
+ all: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
734
+ own: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
735
+ }, z.core.$strict>]>>;
736
+ }, z.core.$strict>>;
737
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
738
+ max_length: z.ZodOptional<z.ZodNumber>;
739
+ pattern: z.ZodOptional<z.ZodString>;
740
+ searchable: z.ZodOptional<z.ZodBoolean>;
741
+ label: z.ZodOptional<z.ZodString>;
742
+ description: z.ZodOptional<z.ZodString>;
743
+ required: z.ZodOptional<z.ZodBoolean>;
744
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
745
+ default: z.ZodOptional<z.ZodUnknown>;
746
+ type: z.ZodLiteral<"text">;
747
+ }, z.core.$strict>, z.ZodObject<{
748
+ max_length: z.ZodOptional<z.ZodNumber>;
749
+ searchable: z.ZodOptional<z.ZodBoolean>;
750
+ label: z.ZodOptional<z.ZodString>;
751
+ description: z.ZodOptional<z.ZodString>;
752
+ required: z.ZodOptional<z.ZodBoolean>;
753
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
754
+ default: z.ZodOptional<z.ZodUnknown>;
755
+ type: z.ZodLiteral<"long_text">;
756
+ }, z.core.$strict>, z.ZodObject<{
757
+ integer: z.ZodOptional<z.ZodBoolean>;
758
+ min: z.ZodOptional<z.ZodNumber>;
759
+ max: z.ZodOptional<z.ZodNumber>;
760
+ unit: z.ZodOptional<z.ZodString>;
761
+ label: z.ZodOptional<z.ZodString>;
762
+ description: z.ZodOptional<z.ZodString>;
763
+ required: z.ZodOptional<z.ZodBoolean>;
764
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
765
+ default: z.ZodOptional<z.ZodUnknown>;
766
+ type: z.ZodLiteral<"number">;
767
+ }, z.core.$strict>, z.ZodObject<{
768
+ label: z.ZodOptional<z.ZodString>;
769
+ description: z.ZodOptional<z.ZodString>;
770
+ required: z.ZodOptional<z.ZodBoolean>;
771
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
772
+ default: z.ZodOptional<z.ZodUnknown>;
773
+ type: z.ZodLiteral<"boolean">;
774
+ }, z.core.$strict>, z.ZodObject<{
775
+ options: z.ZodArray<z.ZodObject<{
776
+ value: z.ZodString;
777
+ label: z.ZodOptional<z.ZodString>;
778
+ }, z.core.$strict>>;
779
+ multiple: z.ZodOptional<z.ZodBoolean>;
780
+ searchable: z.ZodOptional<z.ZodBoolean>;
781
+ label: z.ZodOptional<z.ZodString>;
782
+ description: z.ZodOptional<z.ZodString>;
783
+ required: z.ZodOptional<z.ZodBoolean>;
784
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
785
+ default: z.ZodOptional<z.ZodUnknown>;
786
+ type: z.ZodLiteral<"select">;
787
+ }, z.core.$strict>, z.ZodObject<{
788
+ label: z.ZodOptional<z.ZodString>;
789
+ description: z.ZodOptional<z.ZodString>;
790
+ required: z.ZodOptional<z.ZodBoolean>;
791
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
792
+ default: z.ZodOptional<z.ZodUnknown>;
793
+ type: z.ZodLiteral<"date">;
794
+ }, z.core.$strict>, z.ZodObject<{
795
+ label: z.ZodOptional<z.ZodString>;
796
+ description: z.ZodOptional<z.ZodString>;
797
+ required: z.ZodOptional<z.ZodBoolean>;
798
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
799
+ default: z.ZodOptional<z.ZodUnknown>;
800
+ type: z.ZodLiteral<"datetime">;
801
+ }, z.core.$strict>, z.ZodObject<{
802
+ schema: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
803
+ label: z.ZodOptional<z.ZodString>;
804
+ description: z.ZodOptional<z.ZodString>;
805
+ required: z.ZodOptional<z.ZodBoolean>;
806
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
807
+ default: z.ZodOptional<z.ZodUnknown>;
808
+ type: z.ZodLiteral<"json">;
809
+ }, z.core.$strict>, z.ZodObject<{
810
+ to: z.ZodString;
811
+ on_delete: z.ZodOptional<z.ZodEnum<{
812
+ prevent: "prevent";
813
+ clear: "clear";
814
+ }>>;
815
+ label: z.ZodOptional<z.ZodString>;
816
+ description: z.ZodOptional<z.ZodString>;
817
+ required: z.ZodOptional<z.ZodBoolean>;
818
+ unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
819
+ default: z.ZodOptional<z.ZodUnknown>;
820
+ type: z.ZodLiteral<"reference">;
821
+ }, z.core.$strict>], "type">>;
822
+ }, z.core.$strict>>>;
823
+ }, z.core.$strict>;
824
+ }, z.core.$strip>;
825
+ export type CollectionsVersionResponse = z.infer<typeof collectionsVersionResponse>;
826
+ /**
827
+ * What restoring a version would do. `with_data` is what the caller asked for
828
+ * and the preview shows; `data_possible` and `data_reason` say whether data can
829
+ * come back at all.
830
+ */
831
+ export declare const collectionsRestorePreview: z.ZodObject<{
832
+ version: z.ZodNumber;
833
+ with_data: z.ZodBoolean;
834
+ data_possible: z.ZodBoolean;
835
+ data_reason: z.ZodEnum<{
836
+ ok: "ok";
837
+ expired: "expired";
838
+ purged: "purged";
839
+ current_version: "current_version";
840
+ }>;
841
+ touched: z.ZodArray<z.ZodString>;
842
+ selected: z.ZodArray<z.ZodString>;
843
+ reverted: z.ZodArray<z.ZodObject<{
844
+ collection: z.ZodString;
845
+ changes: z.ZodNumber;
846
+ records_back: z.ZodNumber;
847
+ records_deleted: z.ZodNumber;
848
+ }, z.core.$strict>>;
849
+ robots_gone: z.ZodNumber;
850
+ effects: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
851
+ kind: z.ZodLiteral<"collection_removed">;
852
+ collection: z.ZodString;
853
+ records: z.ZodNumber;
854
+ }, z.core.$strict>, z.ZodObject<{
855
+ kind: z.ZodLiteral<"collection_recreated">;
856
+ collection: z.ZodString;
857
+ records: z.ZodNumber;
858
+ from: z.ZodEnum<{
859
+ global: "global";
860
+ per_robot: "per_robot";
861
+ one_per_robot: "one_per_robot";
862
+ }>;
863
+ to: z.ZodEnum<{
864
+ global: "global";
865
+ per_robot: "per_robot";
866
+ one_per_robot: "one_per_robot";
867
+ }>;
868
+ }, z.core.$strict>, z.ZodObject<{
869
+ kind: z.ZodLiteral<"records_created">;
870
+ collection: z.ZodString;
871
+ count: z.ZodNumber;
872
+ }, z.core.$strict>, z.ZodObject<{
873
+ kind: z.ZodLiteral<"field_removed">;
874
+ collection: z.ZodString;
875
+ field: z.ZodString;
876
+ values: z.ZodNumber;
877
+ }, z.core.$strict>, z.ZodObject<{
878
+ kind: z.ZodLiteral<"defaults_filled">;
879
+ collection: z.ZodString;
880
+ field: z.ZodString;
881
+ records: z.ZodNumber;
882
+ }, z.core.$strict>, z.ZodObject<{
883
+ kind: z.ZodLiteral<"values_converted">;
884
+ collection: z.ZodString;
885
+ field: z.ZodString;
886
+ converted: z.ZodNumber;
887
+ discarded: z.ZodNumber;
888
+ }, z.core.$strict>, z.ZodObject<{
889
+ kind: z.ZodLiteral<"values_discarded">;
890
+ collection: z.ZodString;
891
+ field: z.ZodString;
892
+ reason: z.ZodEnum<{
893
+ reference_target_changed: "reference_target_changed";
894
+ option_removed: "option_removed";
895
+ constraint: "constraint";
896
+ }>;
897
+ values: z.ZodNumber;
898
+ }, z.core.$strict>, z.ZodObject<{
899
+ kind: z.ZodLiteral<"unique_discarded">;
900
+ collection: z.ZodString;
901
+ field: z.ZodString;
902
+ total: z.ZodNumber;
903
+ records: z.ZodArray<z.ZodObject<{
904
+ id: z.ZodUUID;
905
+ display: z.ZodString;
906
+ value: z.ZodUnknown;
907
+ }, z.core.$strict>>;
908
+ }, z.core.$strict>, z.ZodObject<{
909
+ kind: z.ZodLiteral<"required_left_empty">;
910
+ collection: z.ZodString;
911
+ field: z.ZodString;
912
+ records: z.ZodNumber;
913
+ }, z.core.$strict>, z.ZodObject<{
914
+ kind: z.ZodLiteral<"references_cleared">;
915
+ collection: z.ZodString;
916
+ field: z.ZodString;
917
+ values: z.ZodNumber;
918
+ }, z.core.$strict>], "kind">>;
919
+ access_changes: z.ZodArray<z.ZodObject<{
920
+ collection: z.ZodString;
921
+ action: z.ZodEnum<{
922
+ read: "read";
923
+ create: "create";
924
+ update: "update";
925
+ delete: "delete";
926
+ }>;
927
+ from: z.ZodUnknown;
928
+ to: z.ZodUnknown;
929
+ }, z.core.$strip>>;
930
+ issues: z.ZodArray<z.ZodObject<{
931
+ path: z.ZodString;
932
+ code: z.ZodString;
933
+ message: z.ZodString;
934
+ severity: z.ZodEnum<{
935
+ error: "error";
936
+ warning: "warning";
937
+ info: "info";
938
+ }>;
939
+ }, z.core.$strip>>;
940
+ token: z.ZodNullable<z.ZodString>;
941
+ }, z.core.$strip>;
942
+ export type CollectionsRestorePreview = z.infer<typeof collectionsRestorePreview>;
943
+ /** The query string of a restore preview. */
944
+ export declare const collectionsRestorePreviewQuery: z.ZodObject<{
945
+ data: z.ZodOptional<z.ZodEnum<{
946
+ true: "true";
947
+ false: "false";
948
+ }>>;
949
+ collections: z.ZodOptional<z.ZodString>;
950
+ }, z.core.$strict>;
951
+ export type CollectionsRestorePreviewQuery = z.infer<typeof collectionsRestorePreviewQuery>;
952
+ export declare const collectionsRestoreRequest: z.ZodObject<{
953
+ data: z.ZodOptional<z.ZodBoolean>;
954
+ collections: z.ZodOptional<z.ZodArray<z.ZodString>>;
955
+ confirm: z.ZodOptional<z.ZodString>;
956
+ }, z.core.$strict>;
957
+ export type CollectionsRestoreRequest = z.infer<typeof collectionsRestoreRequest>;
958
+ export declare const collectionsRestoreResponse: z.ZodObject<{
959
+ version: z.ZodNumber;
960
+ published_at: z.ZodISODateTime;
961
+ effects: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
962
+ kind: z.ZodLiteral<"collection_removed">;
963
+ collection: z.ZodString;
964
+ records: z.ZodNumber;
965
+ }, z.core.$strict>, z.ZodObject<{
966
+ kind: z.ZodLiteral<"collection_recreated">;
967
+ collection: z.ZodString;
968
+ records: z.ZodNumber;
969
+ from: z.ZodEnum<{
970
+ global: "global";
971
+ per_robot: "per_robot";
972
+ one_per_robot: "one_per_robot";
973
+ }>;
974
+ to: z.ZodEnum<{
975
+ global: "global";
976
+ per_robot: "per_robot";
977
+ one_per_robot: "one_per_robot";
978
+ }>;
979
+ }, z.core.$strict>, z.ZodObject<{
980
+ kind: z.ZodLiteral<"records_created">;
981
+ collection: z.ZodString;
982
+ count: z.ZodNumber;
983
+ }, z.core.$strict>, z.ZodObject<{
984
+ kind: z.ZodLiteral<"field_removed">;
985
+ collection: z.ZodString;
986
+ field: z.ZodString;
987
+ values: z.ZodNumber;
988
+ }, z.core.$strict>, z.ZodObject<{
989
+ kind: z.ZodLiteral<"defaults_filled">;
990
+ collection: z.ZodString;
991
+ field: z.ZodString;
992
+ records: z.ZodNumber;
993
+ }, z.core.$strict>, z.ZodObject<{
994
+ kind: z.ZodLiteral<"values_converted">;
995
+ collection: z.ZodString;
996
+ field: z.ZodString;
997
+ converted: z.ZodNumber;
998
+ discarded: z.ZodNumber;
999
+ }, z.core.$strict>, z.ZodObject<{
1000
+ kind: z.ZodLiteral<"values_discarded">;
1001
+ collection: z.ZodString;
1002
+ field: z.ZodString;
1003
+ reason: z.ZodEnum<{
1004
+ reference_target_changed: "reference_target_changed";
1005
+ option_removed: "option_removed";
1006
+ constraint: "constraint";
1007
+ }>;
1008
+ values: z.ZodNumber;
1009
+ }, z.core.$strict>, z.ZodObject<{
1010
+ kind: z.ZodLiteral<"unique_discarded">;
1011
+ collection: z.ZodString;
1012
+ field: z.ZodString;
1013
+ total: z.ZodNumber;
1014
+ records: z.ZodArray<z.ZodObject<{
1015
+ id: z.ZodUUID;
1016
+ display: z.ZodString;
1017
+ value: z.ZodUnknown;
1018
+ }, z.core.$strict>>;
1019
+ }, z.core.$strict>, z.ZodObject<{
1020
+ kind: z.ZodLiteral<"required_left_empty">;
1021
+ collection: z.ZodString;
1022
+ field: z.ZodString;
1023
+ records: z.ZodNumber;
1024
+ }, z.core.$strict>, z.ZodObject<{
1025
+ kind: z.ZodLiteral<"references_cleared">;
1026
+ collection: z.ZodString;
1027
+ field: z.ZodString;
1028
+ values: z.ZodNumber;
1029
+ }, z.core.$strict>], "kind">>;
1030
+ issues: z.ZodArray<z.ZodObject<{
1031
+ path: z.ZodString;
1032
+ code: z.ZodString;
1033
+ message: z.ZodString;
1034
+ severity: z.ZodEnum<{
1035
+ error: "error";
1036
+ warning: "warning";
1037
+ info: "info";
1038
+ }>;
1039
+ }, z.core.$strip>>;
1040
+ with_data: z.ZodBoolean;
1041
+ }, z.core.$strip>;
1042
+ export type CollectionsRestoreResponse = z.infer<typeof collectionsRestoreResponse>;
1043
+ /** The owner's purge of old history. Always confirmed with a token. */
1044
+ export declare const collectionsPurgeRequest: z.ZodObject<{
1045
+ before: z.ZodISODateTime;
1046
+ collection: z.ZodOptional<z.ZodString>;
1047
+ confirm: z.ZodOptional<z.ZodString>;
1048
+ }, z.core.$strict>;
1049
+ export type CollectionsPurgeRequest = z.infer<typeof collectionsPurgeRequest>;
1050
+ export declare const collectionsPurgePreview: z.ZodObject<{
1051
+ before: z.ZodISODateTime;
1052
+ collection: z.ZodNullable<z.ZodString>;
1053
+ revisions: z.ZodNumber;
1054
+ bytes: z.ZodNumber;
1055
+ restore_points_lost: z.ZodArray<z.ZodNumber>;
1056
+ token: z.ZodString;
1057
+ }, z.core.$strip>;
1058
+ export type CollectionsPurgePreview = z.infer<typeof collectionsPurgePreview>;
1059
+ export declare const collectionsPurgeResponse: z.ZodObject<{
1060
+ revisions: z.ZodNumber;
1061
+ bytes: z.ZodNumber;
1062
+ purged_at: z.ZodISODateTime;
1063
+ }, z.core.$strip>;
1064
+ export type CollectionsPurgeResponse = z.infer<typeof collectionsPurgeResponse>;