@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,568 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
/**
|
|
4
|
+
* The schema document of an app's collections: the one YAML (or JSON) document
|
|
5
|
+
* that says which collections an app has, what fields their records carry and
|
|
6
|
+
* which roles may touch them.
|
|
7
|
+
*
|
|
8
|
+
* **This file is the document's grammar, nothing more.** Whether the document is
|
|
9
|
+
* *valid* — a reference that points at a collection that exists, a default that
|
|
10
|
+
* fits its field, no more than the allowed number of collections — is a second
|
|
11
|
+
* question that needs the whole document at once, and
|
|
12
|
+
* `collectionsDocumentIssues` in `collections-issues.ts` answers it. A zod
|
|
13
|
+
* schema that tried to be both would refuse a document with one unhelpful
|
|
14
|
+
* sentence where the issue list names every problem and its path.
|
|
15
|
+
*
|
|
16
|
+
* Every object here is `.strict()`. A key the format does not know is almost
|
|
17
|
+
* always a typo or a misremembered option (`maxlength`, `required_if`), and a
|
|
18
|
+
* schema that silently dropped it would publish a document that means less than
|
|
19
|
+
* it says.
|
|
20
|
+
*/
|
|
21
|
+
/** The document format this package describes. A document names it in `format`. */
|
|
22
|
+
export declare const COLLECTIONS_FORMAT_VERSION = 1;
|
|
23
|
+
/**
|
|
24
|
+
* Keys a record already uses for itself, so a field may not be called any of
|
|
25
|
+
* them. `robot` is reserved too: `robot.name` in a `display` template names the
|
|
26
|
+
* record's robot, and a field called `robot` would make that ambiguous.
|
|
27
|
+
*/
|
|
28
|
+
export declare const COLLECTION_RESERVED_KEYS: readonly ["id", "robot", "robot_id", "created_at", "created_by", "updated_at", "updated_by", "revision"];
|
|
29
|
+
/**
|
|
30
|
+
* Every fixed cap of the collections feature, on every plan. Limits that depend
|
|
31
|
+
* on the plan (records and bytes per organization) are plan limits and live in
|
|
32
|
+
* `plans.ts`.
|
|
33
|
+
*/
|
|
34
|
+
export declare const COLLECTION_LIMITS: {
|
|
35
|
+
/** Collections in one document. */
|
|
36
|
+
readonly collections: 50;
|
|
37
|
+
/** Fields in one collection. */
|
|
38
|
+
readonly fields: 100;
|
|
39
|
+
/** One record, as serialized JSON. */
|
|
40
|
+
readonly recordBytes: 1048576;
|
|
41
|
+
/** The longest a `text` field may be set to. */
|
|
42
|
+
readonly textMax: 1000;
|
|
43
|
+
/** The length of a `text` field without `max_length`. */
|
|
44
|
+
readonly textDefault: 255;
|
|
45
|
+
/** The longest a `long_text` field may be set to. */
|
|
46
|
+
readonly longTextMax: 100000;
|
|
47
|
+
/** The length of a `long_text` field without `max_length`. */
|
|
48
|
+
readonly longTextDefault: 10000;
|
|
49
|
+
/** Options of one `select` field. */
|
|
50
|
+
readonly selectOptions: 500;
|
|
51
|
+
/** Values in one `in` filter condition. */
|
|
52
|
+
readonly inValues: 100;
|
|
53
|
+
/** Levels of nested `and` / `or` in a filter. */
|
|
54
|
+
readonly filterDepth: 3;
|
|
55
|
+
/** Conditions in one filter. */
|
|
56
|
+
readonly filterConditions: 50;
|
|
57
|
+
/** Words in one `search` query. */
|
|
58
|
+
readonly searchWords: 10;
|
|
59
|
+
/** Fields in one `sort`. */
|
|
60
|
+
readonly sortFields: 3;
|
|
61
|
+
/** Records per page when `limit` is not given. */
|
|
62
|
+
readonly pageDefault: 50;
|
|
63
|
+
/** The largest `limit`. */
|
|
64
|
+
readonly pageMax: 500;
|
|
65
|
+
/** The largest import file. */
|
|
66
|
+
readonly importBytes: 10000000;
|
|
67
|
+
/** The most rows in one import. */
|
|
68
|
+
readonly importRows: 50000;
|
|
69
|
+
/** Record writes per minute for one app. An import counts as one. */
|
|
70
|
+
readonly writesPerMinuteApp: 600;
|
|
71
|
+
/** Record writes per minute for one acting user or key. An import counts as one. */
|
|
72
|
+
readonly writesPerMinuteActor: 120;
|
|
73
|
+
/** How long after its restore point a schema version can be restored together with its data. */
|
|
74
|
+
readonly restoreDays: 90;
|
|
75
|
+
/** The history is reported as growing when it holds more than this many times as many revisions as records... */
|
|
76
|
+
readonly growthFactor: 10;
|
|
77
|
+
/** ...and at least this many revisions. */
|
|
78
|
+
readonly growthMinRevisions: 10000;
|
|
79
|
+
/** The schema document as text, counted in bytes of UTF-8 and not in characters. */
|
|
80
|
+
readonly schemaSourceBytes: 1000000;
|
|
81
|
+
/** The longest `pattern` of a `text` field, in characters. */
|
|
82
|
+
readonly patternMax: 1000;
|
|
83
|
+
/** Levels of arrays and objects inside one `json` value. */
|
|
84
|
+
readonly jsonDepth: 32;
|
|
85
|
+
/** The longest column name or value an import error repeats, an ellipsis included. */
|
|
86
|
+
readonly importErrorText: 200;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* A collection key or a field key. Keys are the API contract (they appear in
|
|
90
|
+
* URLs, filters and record bodies), so they are fixed lowercase identifiers;
|
|
91
|
+
* `label` carries the words a person reads.
|
|
92
|
+
*/
|
|
93
|
+
export declare const collectionKey: z.ZodString;
|
|
94
|
+
export type CollectionKey = z.infer<typeof collectionKey>;
|
|
95
|
+
/**
|
|
96
|
+
* How a collection relates to robots. A property of the collection and not a
|
|
97
|
+
* field type, so a record's robot can neither be left out of a robot-bound
|
|
98
|
+
* collection nor changed afterwards.
|
|
99
|
+
*/
|
|
100
|
+
export declare const collectionBinding: z.ZodEnum<{
|
|
101
|
+
global: "global";
|
|
102
|
+
per_robot: "per_robot";
|
|
103
|
+
one_per_robot: "one_per_robot";
|
|
104
|
+
}>;
|
|
105
|
+
export type CollectionBinding = z.infer<typeof collectionBinding>;
|
|
106
|
+
/** The nine kinds of value a field can hold. */
|
|
107
|
+
export declare const collectionFieldType: z.ZodEnum<{
|
|
108
|
+
number: "number";
|
|
109
|
+
boolean: "boolean";
|
|
110
|
+
date: "date";
|
|
111
|
+
datetime: "datetime";
|
|
112
|
+
text: "text";
|
|
113
|
+
long_text: "long_text";
|
|
114
|
+
select: "select";
|
|
115
|
+
json: "json";
|
|
116
|
+
reference: "reference";
|
|
117
|
+
}>;
|
|
118
|
+
export type CollectionFieldType = z.infer<typeof collectionFieldType>;
|
|
119
|
+
/**
|
|
120
|
+
* One field definition, discriminated on `type`. A union and not one object
|
|
121
|
+
* with every option optional: `max_length` on a `number` would otherwise parse
|
|
122
|
+
* and mean nothing.
|
|
123
|
+
*/
|
|
124
|
+
export declare const collectionField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
125
|
+
max_length: z.ZodOptional<z.ZodNumber>;
|
|
126
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
127
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
128
|
+
label: z.ZodOptional<z.ZodString>;
|
|
129
|
+
description: z.ZodOptional<z.ZodString>;
|
|
130
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
131
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
132
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
133
|
+
type: z.ZodLiteral<"text">;
|
|
134
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
135
|
+
max_length: z.ZodOptional<z.ZodNumber>;
|
|
136
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
137
|
+
label: z.ZodOptional<z.ZodString>;
|
|
138
|
+
description: z.ZodOptional<z.ZodString>;
|
|
139
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
141
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
142
|
+
type: z.ZodLiteral<"long_text">;
|
|
143
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
144
|
+
integer: z.ZodOptional<z.ZodBoolean>;
|
|
145
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
146
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
147
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
148
|
+
label: z.ZodOptional<z.ZodString>;
|
|
149
|
+
description: z.ZodOptional<z.ZodString>;
|
|
150
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
151
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
152
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
153
|
+
type: z.ZodLiteral<"number">;
|
|
154
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
155
|
+
label: z.ZodOptional<z.ZodString>;
|
|
156
|
+
description: z.ZodOptional<z.ZodString>;
|
|
157
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
158
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
159
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
160
|
+
type: z.ZodLiteral<"boolean">;
|
|
161
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
162
|
+
options: z.ZodArray<z.ZodObject<{
|
|
163
|
+
value: z.ZodString;
|
|
164
|
+
label: z.ZodOptional<z.ZodString>;
|
|
165
|
+
}, z.core.$strict>>;
|
|
166
|
+
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
167
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
168
|
+
label: z.ZodOptional<z.ZodString>;
|
|
169
|
+
description: z.ZodOptional<z.ZodString>;
|
|
170
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
171
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
172
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
173
|
+
type: z.ZodLiteral<"select">;
|
|
174
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
175
|
+
label: z.ZodOptional<z.ZodString>;
|
|
176
|
+
description: z.ZodOptional<z.ZodString>;
|
|
177
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
178
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
179
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
180
|
+
type: z.ZodLiteral<"date">;
|
|
181
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
182
|
+
label: z.ZodOptional<z.ZodString>;
|
|
183
|
+
description: z.ZodOptional<z.ZodString>;
|
|
184
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
185
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
186
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
187
|
+
type: z.ZodLiteral<"datetime">;
|
|
188
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
189
|
+
schema: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
190
|
+
label: z.ZodOptional<z.ZodString>;
|
|
191
|
+
description: z.ZodOptional<z.ZodString>;
|
|
192
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
193
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
194
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
195
|
+
type: z.ZodLiteral<"json">;
|
|
196
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
197
|
+
to: z.ZodString;
|
|
198
|
+
on_delete: z.ZodOptional<z.ZodEnum<{
|
|
199
|
+
prevent: "prevent";
|
|
200
|
+
clear: "clear";
|
|
201
|
+
}>>;
|
|
202
|
+
label: z.ZodOptional<z.ZodString>;
|
|
203
|
+
description: z.ZodOptional<z.ZodString>;
|
|
204
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
205
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
206
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
207
|
+
type: z.ZodLiteral<"reference">;
|
|
208
|
+
}, z.core.$strict>], "type">;
|
|
209
|
+
export type CollectionField = z.infer<typeof collectionField>;
|
|
210
|
+
/** The key of an organization role, as the organization spells it. A key that names no role grants nothing and is a warning. */
|
|
211
|
+
export declare const collectionAccessValue: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
212
|
+
export type CollectionAccessValue = z.infer<typeof collectionAccessValue>;
|
|
213
|
+
/**
|
|
214
|
+
* Which roles may do what with a collection's records. A key that is missing,
|
|
215
|
+
* or a collection without `access`, grants that action to nobody; developers
|
|
216
|
+
* and the app's server keys always may. A role key the organization does not
|
|
217
|
+
* have is a warning (see `collectionsAccessWarnings`), never a reason to
|
|
218
|
+
* refuse the document.
|
|
219
|
+
*/
|
|
220
|
+
export declare const collectionAccess: z.ZodObject<{
|
|
221
|
+
read: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
222
|
+
create: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
223
|
+
update: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodObject<{
|
|
224
|
+
all: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
225
|
+
own: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
226
|
+
}, z.core.$strict>]>>;
|
|
227
|
+
delete: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodObject<{
|
|
228
|
+
all: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
229
|
+
own: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
230
|
+
}, z.core.$strict>]>>;
|
|
231
|
+
}, z.core.$strict>;
|
|
232
|
+
export type CollectionAccess = z.infer<typeof collectionAccess>;
|
|
233
|
+
/** One collection: its binding, how its records are named, who may use it and its fields. */
|
|
234
|
+
export declare const collectionDefinition: z.ZodObject<{
|
|
235
|
+
label: z.ZodOptional<z.ZodString>;
|
|
236
|
+
description: z.ZodOptional<z.ZodString>;
|
|
237
|
+
binding: z.ZodEnum<{
|
|
238
|
+
global: "global";
|
|
239
|
+
per_robot: "per_robot";
|
|
240
|
+
one_per_robot: "one_per_robot";
|
|
241
|
+
}>;
|
|
242
|
+
display: z.ZodOptional<z.ZodString>;
|
|
243
|
+
access: z.ZodOptional<z.ZodObject<{
|
|
244
|
+
read: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
245
|
+
create: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
246
|
+
update: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodObject<{
|
|
247
|
+
all: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
248
|
+
own: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
249
|
+
}, z.core.$strict>]>>;
|
|
250
|
+
delete: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodObject<{
|
|
251
|
+
all: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
252
|
+
own: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
253
|
+
}, z.core.$strict>]>>;
|
|
254
|
+
}, z.core.$strict>>;
|
|
255
|
+
fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
256
|
+
max_length: z.ZodOptional<z.ZodNumber>;
|
|
257
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
258
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
259
|
+
label: z.ZodOptional<z.ZodString>;
|
|
260
|
+
description: z.ZodOptional<z.ZodString>;
|
|
261
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
262
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
263
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
264
|
+
type: z.ZodLiteral<"text">;
|
|
265
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
266
|
+
max_length: z.ZodOptional<z.ZodNumber>;
|
|
267
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
268
|
+
label: z.ZodOptional<z.ZodString>;
|
|
269
|
+
description: z.ZodOptional<z.ZodString>;
|
|
270
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
271
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
272
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
273
|
+
type: z.ZodLiteral<"long_text">;
|
|
274
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
275
|
+
integer: z.ZodOptional<z.ZodBoolean>;
|
|
276
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
277
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
278
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
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<"number">;
|
|
285
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
286
|
+
label: z.ZodOptional<z.ZodString>;
|
|
287
|
+
description: z.ZodOptional<z.ZodString>;
|
|
288
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
289
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
290
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
291
|
+
type: z.ZodLiteral<"boolean">;
|
|
292
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
293
|
+
options: z.ZodArray<z.ZodObject<{
|
|
294
|
+
value: z.ZodString;
|
|
295
|
+
label: z.ZodOptional<z.ZodString>;
|
|
296
|
+
}, z.core.$strict>>;
|
|
297
|
+
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
298
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
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<"select">;
|
|
305
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
306
|
+
label: z.ZodOptional<z.ZodString>;
|
|
307
|
+
description: z.ZodOptional<z.ZodString>;
|
|
308
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
309
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
310
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
311
|
+
type: z.ZodLiteral<"date">;
|
|
312
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
313
|
+
label: z.ZodOptional<z.ZodString>;
|
|
314
|
+
description: z.ZodOptional<z.ZodString>;
|
|
315
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
316
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
317
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
318
|
+
type: z.ZodLiteral<"datetime">;
|
|
319
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
320
|
+
schema: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
321
|
+
label: z.ZodOptional<z.ZodString>;
|
|
322
|
+
description: z.ZodOptional<z.ZodString>;
|
|
323
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
324
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
325
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
326
|
+
type: z.ZodLiteral<"json">;
|
|
327
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
328
|
+
to: z.ZodString;
|
|
329
|
+
on_delete: z.ZodOptional<z.ZodEnum<{
|
|
330
|
+
prevent: "prevent";
|
|
331
|
+
clear: "clear";
|
|
332
|
+
}>>;
|
|
333
|
+
label: z.ZodOptional<z.ZodString>;
|
|
334
|
+
description: z.ZodOptional<z.ZodString>;
|
|
335
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
336
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
337
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
338
|
+
type: z.ZodLiteral<"reference">;
|
|
339
|
+
}, z.core.$strict>], "type">>;
|
|
340
|
+
}, z.core.$strict>;
|
|
341
|
+
export type CollectionDefinition = z.infer<typeof collectionDefinition>;
|
|
342
|
+
/**
|
|
343
|
+
* The document itself. The caps on collections and fields are validity rules of
|
|
344
|
+
* `collectionsDocumentIssues` rather than zod limits, so a document one
|
|
345
|
+
* collection over still parses and is told exactly which rule it breaks.
|
|
346
|
+
*
|
|
347
|
+
* `collections:` with nothing under it, which YAML reads as `null`, is the
|
|
348
|
+
* same as `collections: {}`: a document that has no collections yet, which is
|
|
349
|
+
* what a template for a new app looks like. Anything else that is not a map is
|
|
350
|
+
* still refused.
|
|
351
|
+
*/
|
|
352
|
+
export declare const collectionsDocument: z.ZodObject<{
|
|
353
|
+
format: z.ZodLiteral<1>;
|
|
354
|
+
collections: z.ZodCodec<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
355
|
+
label: z.ZodOptional<z.ZodString>;
|
|
356
|
+
description: z.ZodOptional<z.ZodString>;
|
|
357
|
+
binding: z.ZodEnum<{
|
|
358
|
+
global: "global";
|
|
359
|
+
per_robot: "per_robot";
|
|
360
|
+
one_per_robot: "one_per_robot";
|
|
361
|
+
}>;
|
|
362
|
+
display: z.ZodOptional<z.ZodString>;
|
|
363
|
+
access: z.ZodOptional<z.ZodObject<{
|
|
364
|
+
read: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
365
|
+
create: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
366
|
+
update: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodObject<{
|
|
367
|
+
all: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
368
|
+
own: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
369
|
+
}, z.core.$strict>]>>;
|
|
370
|
+
delete: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodObject<{
|
|
371
|
+
all: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
372
|
+
own: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
373
|
+
}, z.core.$strict>]>>;
|
|
374
|
+
}, z.core.$strict>>;
|
|
375
|
+
fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
376
|
+
max_length: z.ZodOptional<z.ZodNumber>;
|
|
377
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
378
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
379
|
+
label: z.ZodOptional<z.ZodString>;
|
|
380
|
+
description: z.ZodOptional<z.ZodString>;
|
|
381
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
382
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
383
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
384
|
+
type: z.ZodLiteral<"text">;
|
|
385
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
386
|
+
max_length: z.ZodOptional<z.ZodNumber>;
|
|
387
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
388
|
+
label: z.ZodOptional<z.ZodString>;
|
|
389
|
+
description: z.ZodOptional<z.ZodString>;
|
|
390
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
391
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
392
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
393
|
+
type: z.ZodLiteral<"long_text">;
|
|
394
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
395
|
+
integer: z.ZodOptional<z.ZodBoolean>;
|
|
396
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
397
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
398
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
399
|
+
label: z.ZodOptional<z.ZodString>;
|
|
400
|
+
description: z.ZodOptional<z.ZodString>;
|
|
401
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
402
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
403
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
404
|
+
type: z.ZodLiteral<"number">;
|
|
405
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
406
|
+
label: z.ZodOptional<z.ZodString>;
|
|
407
|
+
description: z.ZodOptional<z.ZodString>;
|
|
408
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
409
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
410
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
411
|
+
type: z.ZodLiteral<"boolean">;
|
|
412
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
413
|
+
options: z.ZodArray<z.ZodObject<{
|
|
414
|
+
value: z.ZodString;
|
|
415
|
+
label: z.ZodOptional<z.ZodString>;
|
|
416
|
+
}, z.core.$strict>>;
|
|
417
|
+
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
418
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
419
|
+
label: z.ZodOptional<z.ZodString>;
|
|
420
|
+
description: z.ZodOptional<z.ZodString>;
|
|
421
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
422
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
423
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
424
|
+
type: z.ZodLiteral<"select">;
|
|
425
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
426
|
+
label: z.ZodOptional<z.ZodString>;
|
|
427
|
+
description: z.ZodOptional<z.ZodString>;
|
|
428
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
429
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
430
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
431
|
+
type: z.ZodLiteral<"date">;
|
|
432
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
433
|
+
label: z.ZodOptional<z.ZodString>;
|
|
434
|
+
description: z.ZodOptional<z.ZodString>;
|
|
435
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
436
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
437
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
438
|
+
type: z.ZodLiteral<"datetime">;
|
|
439
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
440
|
+
schema: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
441
|
+
label: z.ZodOptional<z.ZodString>;
|
|
442
|
+
description: z.ZodOptional<z.ZodString>;
|
|
443
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
444
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
445
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
446
|
+
type: z.ZodLiteral<"json">;
|
|
447
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
448
|
+
to: z.ZodString;
|
|
449
|
+
on_delete: z.ZodOptional<z.ZodEnum<{
|
|
450
|
+
prevent: "prevent";
|
|
451
|
+
clear: "clear";
|
|
452
|
+
}>>;
|
|
453
|
+
label: z.ZodOptional<z.ZodString>;
|
|
454
|
+
description: z.ZodOptional<z.ZodString>;
|
|
455
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
456
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
457
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
458
|
+
type: z.ZodLiteral<"reference">;
|
|
459
|
+
}, z.core.$strict>], "type">>;
|
|
460
|
+
}, z.core.$strict>>>, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
461
|
+
label: z.ZodOptional<z.ZodString>;
|
|
462
|
+
description: z.ZodOptional<z.ZodString>;
|
|
463
|
+
binding: z.ZodEnum<{
|
|
464
|
+
global: "global";
|
|
465
|
+
per_robot: "per_robot";
|
|
466
|
+
one_per_robot: "one_per_robot";
|
|
467
|
+
}>;
|
|
468
|
+
display: z.ZodOptional<z.ZodString>;
|
|
469
|
+
access: z.ZodOptional<z.ZodObject<{
|
|
470
|
+
read: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
471
|
+
create: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
472
|
+
update: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodObject<{
|
|
473
|
+
all: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
474
|
+
own: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
475
|
+
}, z.core.$strict>]>>;
|
|
476
|
+
delete: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodObject<{
|
|
477
|
+
all: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
478
|
+
own: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
479
|
+
}, z.core.$strict>]>>;
|
|
480
|
+
}, z.core.$strict>>;
|
|
481
|
+
fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
482
|
+
max_length: z.ZodOptional<z.ZodNumber>;
|
|
483
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
484
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
485
|
+
label: z.ZodOptional<z.ZodString>;
|
|
486
|
+
description: z.ZodOptional<z.ZodString>;
|
|
487
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
488
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
489
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
490
|
+
type: z.ZodLiteral<"text">;
|
|
491
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
492
|
+
max_length: z.ZodOptional<z.ZodNumber>;
|
|
493
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
494
|
+
label: z.ZodOptional<z.ZodString>;
|
|
495
|
+
description: z.ZodOptional<z.ZodString>;
|
|
496
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
497
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
498
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
499
|
+
type: z.ZodLiteral<"long_text">;
|
|
500
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
501
|
+
integer: z.ZodOptional<z.ZodBoolean>;
|
|
502
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
503
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
504
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
505
|
+
label: z.ZodOptional<z.ZodString>;
|
|
506
|
+
description: z.ZodOptional<z.ZodString>;
|
|
507
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
508
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
509
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
510
|
+
type: z.ZodLiteral<"number">;
|
|
511
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
512
|
+
label: z.ZodOptional<z.ZodString>;
|
|
513
|
+
description: z.ZodOptional<z.ZodString>;
|
|
514
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
515
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
516
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
517
|
+
type: z.ZodLiteral<"boolean">;
|
|
518
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
519
|
+
options: z.ZodArray<z.ZodObject<{
|
|
520
|
+
value: z.ZodString;
|
|
521
|
+
label: z.ZodOptional<z.ZodString>;
|
|
522
|
+
}, z.core.$strict>>;
|
|
523
|
+
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
524
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
525
|
+
label: z.ZodOptional<z.ZodString>;
|
|
526
|
+
description: z.ZodOptional<z.ZodString>;
|
|
527
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
528
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
529
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
530
|
+
type: z.ZodLiteral<"select">;
|
|
531
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
532
|
+
label: z.ZodOptional<z.ZodString>;
|
|
533
|
+
description: z.ZodOptional<z.ZodString>;
|
|
534
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
535
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
536
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
537
|
+
type: z.ZodLiteral<"date">;
|
|
538
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
539
|
+
label: z.ZodOptional<z.ZodString>;
|
|
540
|
+
description: z.ZodOptional<z.ZodString>;
|
|
541
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
542
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
543
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
544
|
+
type: z.ZodLiteral<"datetime">;
|
|
545
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
546
|
+
schema: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
547
|
+
label: z.ZodOptional<z.ZodString>;
|
|
548
|
+
description: z.ZodOptional<z.ZodString>;
|
|
549
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
550
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
551
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
552
|
+
type: z.ZodLiteral<"json">;
|
|
553
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
554
|
+
to: z.ZodString;
|
|
555
|
+
on_delete: z.ZodOptional<z.ZodEnum<{
|
|
556
|
+
prevent: "prevent";
|
|
557
|
+
clear: "clear";
|
|
558
|
+
}>>;
|
|
559
|
+
label: z.ZodOptional<z.ZodString>;
|
|
560
|
+
description: z.ZodOptional<z.ZodString>;
|
|
561
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
562
|
+
unique: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"collection">]>>;
|
|
563
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
564
|
+
type: z.ZodLiteral<"reference">;
|
|
565
|
+
}, z.core.$strict>], "type">>;
|
|
566
|
+
}, z.core.$strict>>>;
|
|
567
|
+
}, z.core.$strict>;
|
|
568
|
+
export type CollectionsDocument = z.infer<typeof collectionsDocument>;
|