@comapeo/core 4.4.0 → 5.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 (72) hide show
  1. package/dist/blob-store/downloader.d.ts +5 -2
  2. package/dist/blob-store/downloader.d.ts.map +1 -1
  3. package/dist/constants.d.ts +0 -1
  4. package/dist/constants.d.ts.map +1 -1
  5. package/dist/datatype/index.d.ts +1 -1
  6. package/dist/datatype/index.d.ts.map +1 -1
  7. package/dist/discovery/local-discovery.d.ts.map +1 -1
  8. package/dist/import-categories.d.ts +19 -0
  9. package/dist/import-categories.d.ts.map +1 -0
  10. package/dist/intl/iso639.d.ts +4 -0
  11. package/dist/intl/iso639.d.ts.map +1 -0
  12. package/dist/intl/parse-bcp-47.d.ts +22 -0
  13. package/dist/intl/parse-bcp-47.d.ts.map +1 -0
  14. package/dist/invite/invite-api.d.ts.map +1 -1
  15. package/dist/lib/drizzle-helpers.d.ts +19 -1
  16. package/dist/lib/drizzle-helpers.d.ts.map +1 -1
  17. package/dist/mapeo-manager.d.ts +15 -9
  18. package/dist/mapeo-manager.d.ts.map +1 -1
  19. package/dist/mapeo-project.d.ts +4968 -3017
  20. package/dist/mapeo-project.d.ts.map +1 -1
  21. package/dist/schema/client.d.ts +246 -232
  22. package/dist/schema/client.d.ts.map +1 -1
  23. package/dist/schema/comapeo-to-drizzle.d.ts +65 -0
  24. package/dist/schema/comapeo-to-drizzle.d.ts.map +1 -0
  25. package/dist/schema/json-schema-to-drizzle.d.ts +18 -0
  26. package/dist/schema/json-schema-to-drizzle.d.ts.map +1 -0
  27. package/dist/schema/project.d.ts +2711 -1835
  28. package/dist/schema/project.d.ts.map +1 -1
  29. package/dist/schema/types.d.ts +73 -66
  30. package/dist/schema/types.d.ts.map +1 -1
  31. package/dist/translation-api.d.ts +111 -189
  32. package/dist/translation-api.d.ts.map +1 -1
  33. package/dist/utils.d.ts +10 -0
  34. package/dist/utils.d.ts.map +1 -1
  35. package/drizzle/client/0004_glorious_shape.sql +1 -0
  36. package/drizzle/client/meta/0000_snapshot.json +13 -9
  37. package/drizzle/client/meta/0001_snapshot.json +13 -9
  38. package/drizzle/client/meta/0002_snapshot.json +13 -9
  39. package/drizzle/client/meta/0003_snapshot.json +13 -9
  40. package/drizzle/client/meta/0004_snapshot.json +239 -0
  41. package/drizzle/client/meta/_journal.json +7 -0
  42. package/drizzle/project/meta/0000_snapshot.json +43 -24
  43. package/drizzle/project/meta/0001_snapshot.json +47 -26
  44. package/drizzle/project/meta/0002_snapshot.json +47 -26
  45. package/package.json +16 -8
  46. package/src/constants.js +0 -3
  47. package/src/datatype/index.js +8 -5
  48. package/src/discovery/local-discovery.js +3 -2
  49. package/src/import-categories.js +364 -0
  50. package/src/index-writer/index.js +1 -1
  51. package/src/intl/iso639.js +8118 -0
  52. package/src/intl/parse-bcp-47.js +91 -0
  53. package/src/invite/invite-api.js +2 -0
  54. package/src/lib/drizzle-helpers.js +70 -18
  55. package/src/mapeo-manager.js +138 -88
  56. package/src/mapeo-project.js +56 -218
  57. package/src/roles.js +1 -1
  58. package/src/schema/client.js +22 -28
  59. package/src/schema/comapeo-to-drizzle.js +57 -0
  60. package/src/schema/{schema-to-drizzle.js → json-schema-to-drizzle.js} +25 -25
  61. package/src/schema/project.js +24 -37
  62. package/src/schema/types.ts +138 -99
  63. package/src/translation-api.js +64 -12
  64. package/src/utils.js +13 -0
  65. package/dist/config-import.d.ts +0 -74
  66. package/dist/config-import.d.ts.map +0 -1
  67. package/dist/schema/schema-to-drizzle.d.ts +0 -20
  68. package/dist/schema/schema-to-drizzle.d.ts.map +0 -1
  69. package/dist/schema/utils.d.ts +0 -55
  70. package/dist/schema/utils.d.ts.map +0 -1
  71. package/src/config-import.js +0 -603
  72. package/src/schema/utils.js +0 -51
@@ -1,1829 +1,2661 @@
1
- export const translationTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2
- name: "translation";
3
- schema: undefined;
4
- columns: {
5
- readonly docId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
6
- name: "docId";
7
- tableName: "translation";
8
- dataType: "string";
9
- columnType: "SQLiteText";
10
- data: string;
11
- driverParam: string;
12
- notNull: true;
13
- hasDefault: false;
14
- enumValues: [string, ...string[]];
15
- baseColumn: never;
16
- }, object>;
17
- readonly versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
18
- name: "versionId";
19
- tableName: "translation";
20
- dataType: "string";
21
- columnType: "SQLiteText";
22
- data: string;
23
- driverParam: string;
24
- notNull: true;
25
- hasDefault: false;
26
- enumValues: [string, ...string[]];
27
- baseColumn: never;
28
- }, object>;
29
- readonly originalVersionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
30
- name: "originalVersionId";
31
- tableName: "translation";
32
- dataType: "string";
33
- columnType: "SQLiteText";
34
- data: string;
35
- driverParam: string;
36
- notNull: true;
37
- hasDefault: false;
38
- enumValues: [string, ...string[]];
39
- baseColumn: never;
40
- }, object>;
41
- readonly schemaName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
42
- name: "schemaName";
43
- tableName: "translation";
44
- dataType: "string";
45
- columnType: "SQLiteText";
46
- data: "translation";
47
- driverParam: string;
48
- notNull: true;
49
- hasDefault: false;
50
- enumValues: ["translation"];
51
- baseColumn: never;
52
- }, object>;
53
- readonly createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
54
- name: "createdAt";
55
- tableName: "translation";
56
- dataType: "string";
57
- columnType: "SQLiteText";
58
- data: string;
59
- driverParam: string;
60
- notNull: true;
61
- hasDefault: false;
62
- enumValues: [string, ...string[]];
63
- baseColumn: never;
64
- }, object>;
65
- readonly updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
66
- name: "updatedAt";
67
- tableName: "translation";
68
- dataType: "string";
69
- columnType: "SQLiteText";
70
- data: string;
71
- driverParam: string;
72
- notNull: true;
73
- hasDefault: false;
74
- enumValues: [string, ...string[]];
75
- baseColumn: never;
76
- }, object>;
77
- readonly links: import("drizzle-orm/sqlite-core").SQLiteColumn<{
78
- name: "links";
79
- tableName: "translation";
80
- dataType: "custom";
81
- columnType: "SQLiteCustomColumn";
82
- data: string[];
83
- driverParam: string;
84
- notNull: true;
85
- hasDefault: false;
86
- enumValues: undefined;
87
- baseColumn: never;
88
- }, object>;
89
- readonly deleted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
90
- name: "deleted";
91
- tableName: "translation";
92
- dataType: "boolean";
93
- columnType: "SQLiteBoolean";
94
- data: boolean;
95
- driverParam: number;
96
- notNull: true;
97
- hasDefault: false;
98
- enumValues: undefined;
99
- baseColumn: never;
100
- }, object>;
101
- readonly docRef: import("drizzle-orm/sqlite-core").SQLiteColumn<{
102
- name: "docRef";
103
- tableName: "translation";
104
- dataType: "custom";
105
- columnType: "SQLiteCustomColumn";
106
- data: {
107
- docId: string;
108
- versionId: string;
1
+ export const translationTable: import("./types.js").JsonSchemaToDrizzleSqliteTable<{
2
+ schemaName: "translation";
3
+ docRef: {
4
+ docId: string;
5
+ versionId: string;
6
+ };
7
+ docRefType: "type_unspecified" | "deviceInfo" | "preset" | "field" | "observation" | "projectSettings" | "role" | "track" | "UNRECOGNIZED";
8
+ propertyRef: string;
9
+ languageCode: string;
10
+ regionCode?: string | undefined;
11
+ message: string;
12
+ docId: string;
13
+ versionId: string;
14
+ originalVersionId: string;
15
+ createdAt: string;
16
+ updatedAt: string;
17
+ links: string[];
18
+ deleted: boolean;
19
+ }, {
20
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
21
+ readonly $id: "http://mapeo.world/schemas/translation/v1.json";
22
+ readonly description: "A translation is a translated message in a single language for a string property/field of any Mapeo record type";
23
+ readonly title: "translation";
24
+ readonly type: "object";
25
+ readonly properties: {
26
+ readonly docId: {
27
+ readonly description: "Hex-encoded 32-byte buffer";
28
+ readonly type: "string";
29
+ readonly minLength: 1;
30
+ };
31
+ readonly versionId: {
32
+ readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
33
+ readonly type: "string";
34
+ readonly minLength: 1;
35
+ };
36
+ readonly originalVersionId: {
37
+ readonly description: "Version ID of the original version of this document. For the original version, matches `versionId`.";
38
+ readonly type: "string";
39
+ readonly minLength: 1;
40
+ };
41
+ readonly schemaName: {
42
+ readonly type: "string";
43
+ readonly const: "translation";
44
+ };
45
+ readonly createdAt: {
46
+ readonly description: "RFC3339-formatted datetime of when the first version of the element was created";
47
+ readonly type: "string";
48
+ readonly format: "date-time";
49
+ };
50
+ readonly updatedAt: {
51
+ readonly description: "RFC3339-formatted datetime of when this version of the element was created";
52
+ readonly type: "string";
53
+ readonly format: "date-time";
54
+ };
55
+ readonly links: {
56
+ readonly description: "Version ids of the previous document versions this one is replacing. Each link is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
57
+ readonly type: "array";
58
+ readonly uniqueItems: true;
59
+ readonly items: {
60
+ readonly type: "string";
109
61
  };
110
- driverParam: string;
111
- notNull: true;
112
- hasDefault: false;
113
- enumValues: undefined;
114
- baseColumn: never;
115
- }, object>;
116
- readonly docRefType: import("drizzle-orm/sqlite-core").SQLiteColumn<{
117
- name: "docRefType";
118
- tableName: "translation";
119
- dataType: "string";
120
- columnType: "SQLiteText";
121
- data: "UNRECOGNIZED" | "observation" | "track" | "preset" | "field" | "projectSettings" | "deviceInfo" | "role" | "type_unspecified";
122
- driverParam: string;
123
- notNull: true;
124
- hasDefault: false;
125
- enumValues: ["type_unspecified", "deviceInfo", "preset", "field", "observation", "projectSettings", "role", "track", "UNRECOGNIZED"];
126
- baseColumn: never;
127
- }, object>;
128
- readonly propertyRef: import("drizzle-orm/sqlite-core").SQLiteColumn<{
129
- name: "propertyRef";
130
- tableName: "translation";
131
- dataType: "string";
132
- columnType: "SQLiteText";
133
- data: string;
134
- driverParam: string;
135
- notNull: true;
136
- hasDefault: false;
137
- enumValues: [string, ...string[]];
138
- baseColumn: never;
139
- }, object>;
140
- readonly languageCode: import("drizzle-orm/sqlite-core").SQLiteColumn<{
141
- name: "languageCode";
142
- tableName: "translation";
143
- dataType: "string";
144
- columnType: "SQLiteText";
145
- data: string;
146
- driverParam: string;
147
- notNull: true;
148
- hasDefault: false;
149
- enumValues: [string, ...string[]];
150
- baseColumn: never;
151
- }, object>;
152
- readonly regionCode: import("drizzle-orm/sqlite-core").SQLiteColumn<{
153
- name: "regionCode";
154
- tableName: "translation";
155
- dataType: "string";
156
- columnType: "SQLiteText";
157
- data: string;
158
- driverParam: string;
159
- notNull: false;
160
- hasDefault: false;
161
- enumValues: [string, ...string[]];
162
- baseColumn: never;
163
- }, object>;
164
- readonly message: import("drizzle-orm/sqlite-core").SQLiteColumn<{
165
- name: "message";
166
- tableName: "translation";
167
- dataType: "string";
168
- columnType: "SQLiteText";
169
- data: string;
170
- driverParam: string;
171
- notNull: true;
172
- hasDefault: false;
173
- enumValues: [string, ...string[]];
174
- baseColumn: never;
175
- }, object>;
176
- forks: import("drizzle-orm/sqlite-core").SQLiteColumn<{
177
- name: "forks";
178
- tableName: "translation";
179
- dataType: "custom";
180
- columnType: "SQLiteCustomColumn";
181
- data: string[];
182
- driverParam: string;
183
- notNull: true;
184
- hasDefault: false;
185
- enumValues: undefined;
186
- baseColumn: never;
187
- }, object>;
62
+ };
63
+ readonly deleted: {
64
+ readonly description: "Indicates whether the document has been deleted";
65
+ readonly type: "boolean";
66
+ };
67
+ readonly docRef: {
68
+ readonly type: "object";
69
+ readonly properties: {
70
+ readonly docId: {
71
+ readonly description: "hex-encoded id of the element that this observation references";
72
+ readonly type: "string";
73
+ readonly minLength: 1;
74
+ };
75
+ readonly versionId: {
76
+ readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
77
+ readonly type: "string";
78
+ readonly minLength: 1;
79
+ };
80
+ };
81
+ readonly required: readonly ["docId", "versionId"];
82
+ };
83
+ readonly docRefType: {
84
+ readonly description: "type of the element that this translation references";
85
+ readonly type: "string";
86
+ readonly enum: readonly ["type_unspecified", "deviceInfo", "preset", "field", "observation", "projectSettings", "role", "track", "UNRECOGNIZED"];
87
+ };
88
+ readonly propertyRef: {
89
+ readonly type: "string";
90
+ readonly description: "identifier for translated field/property in dot-prop notation";
91
+ readonly minLength: 1;
92
+ };
93
+ readonly languageCode: {
94
+ readonly type: "string";
95
+ readonly description: "three-letter ISO 169-3 language code";
96
+ readonly minLength: 1;
97
+ readonly maxLength: 3;
98
+ };
99
+ readonly regionCode: {
100
+ readonly type: "string";
101
+ readonly description: "two-letter country code from ISO 3166-1 alpha-2 or a three-digit code from UN M.49 for geographical regions";
102
+ readonly minLength: 2;
103
+ readonly maxLength: 3;
104
+ };
105
+ readonly message: {
106
+ readonly type: "string";
107
+ readonly description: "the translated string";
108
+ };
188
109
  };
189
- dialect: "sqlite";
190
- }>;
191
- export const observationTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
192
- name: "observation";
193
- schema: undefined;
194
- columns: {
195
- readonly docId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
196
- name: "docId";
197
- tableName: "observation";
198
- dataType: "string";
199
- columnType: "SQLiteText";
200
- data: string;
201
- driverParam: string;
202
- notNull: true;
203
- hasDefault: false;
204
- enumValues: [string, ...string[]];
205
- baseColumn: never;
206
- }, object>;
207
- readonly versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
208
- name: "versionId";
209
- tableName: "observation";
210
- dataType: "string";
211
- columnType: "SQLiteText";
212
- data: string;
213
- driverParam: string;
214
- notNull: true;
215
- hasDefault: false;
216
- enumValues: [string, ...string[]];
217
- baseColumn: never;
218
- }, object>;
219
- readonly originalVersionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
220
- name: "originalVersionId";
221
- tableName: "observation";
222
- dataType: "string";
223
- columnType: "SQLiteText";
224
- data: string;
225
- driverParam: string;
226
- notNull: true;
227
- hasDefault: false;
228
- enumValues: [string, ...string[]];
229
- baseColumn: never;
230
- }, object>;
231
- readonly schemaName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
232
- name: "schemaName";
233
- tableName: "observation";
234
- dataType: "string";
235
- columnType: "SQLiteText";
236
- data: "observation";
237
- driverParam: string;
238
- notNull: true;
239
- hasDefault: false;
240
- enumValues: ["observation"];
241
- baseColumn: never;
242
- }, object>;
243
- readonly createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
244
- name: "createdAt";
245
- tableName: "observation";
246
- dataType: "string";
247
- columnType: "SQLiteText";
248
- data: string;
249
- driverParam: string;
250
- notNull: true;
251
- hasDefault: false;
252
- enumValues: [string, ...string[]];
253
- baseColumn: never;
254
- }, object>;
255
- readonly updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
256
- name: "updatedAt";
257
- tableName: "observation";
258
- dataType: "string";
259
- columnType: "SQLiteText";
260
- data: string;
261
- driverParam: string;
262
- notNull: true;
263
- hasDefault: false;
264
- enumValues: [string, ...string[]];
265
- baseColumn: never;
266
- }, object>;
267
- readonly links: import("drizzle-orm/sqlite-core").SQLiteColumn<{
268
- name: "links";
269
- tableName: "observation";
270
- dataType: "custom";
271
- columnType: "SQLiteCustomColumn";
272
- data: string[];
273
- driverParam: string;
274
- notNull: true;
275
- hasDefault: false;
276
- enumValues: undefined;
277
- baseColumn: never;
278
- }, object>;
279
- readonly deleted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
280
- name: "deleted";
281
- tableName: "observation";
282
- dataType: "boolean";
283
- columnType: "SQLiteBoolean";
284
- data: boolean;
285
- driverParam: number;
286
- notNull: true;
287
- hasDefault: false;
288
- enumValues: undefined;
289
- baseColumn: never;
290
- }, object>;
291
- readonly lat: import("drizzle-orm/sqlite-core").SQLiteColumn<{
292
- name: "lat";
293
- tableName: "observation";
294
- dataType: "number";
295
- columnType: "SQLiteReal";
296
- data: number;
297
- driverParam: number;
298
- notNull: false;
299
- hasDefault: false;
300
- enumValues: undefined;
301
- baseColumn: never;
302
- }, object>;
303
- readonly lon: import("drizzle-orm/sqlite-core").SQLiteColumn<{
304
- name: "lon";
305
- tableName: "observation";
306
- dataType: "number";
307
- columnType: "SQLiteReal";
308
- data: number;
309
- driverParam: number;
310
- notNull: false;
311
- hasDefault: false;
312
- enumValues: undefined;
313
- baseColumn: never;
314
- }, object>;
315
- readonly attachments: import("drizzle-orm/sqlite-core").SQLiteColumn<{
316
- name: "attachments";
317
- tableName: "observation";
318
- dataType: "custom";
319
- columnType: "SQLiteCustomColumn";
320
- data: import("@comapeo/schema/dist/schema/observation.js").Attachment[];
321
- driverParam: string;
322
- notNull: true;
323
- hasDefault: false;
324
- enumValues: undefined;
325
- baseColumn: never;
326
- }, object>;
327
- readonly tags: import("drizzle-orm/sqlite-core").SQLiteColumn<{
328
- name: "tags";
329
- tableName: "observation";
330
- dataType: "custom";
331
- columnType: "SQLiteCustomColumn";
332
- data: {
333
- [k: string]: string | number | boolean | (string | number | boolean | null)[] | null;
110
+ readonly required: readonly ["schemaName", "docRef", "docRefType", "propertyRef", "languageCode", "message", "docId", "createdAt", "updatedAt", "links", "versionId", "originalVersionId", "deleted"];
111
+ readonly additionalProperties: false;
112
+ }, "translation", import("./comapeo-to-drizzle.js").AdditionalColumns, "docId">;
113
+ export const observationTable: import("./types.js").JsonSchemaToDrizzleSqliteTable<{
114
+ schemaName: "observation";
115
+ lat?: number | undefined;
116
+ lon?: number | undefined;
117
+ attachments: import("@comapeo/schema/dist/schema/observation.js").Attachment[];
118
+ tags: {
119
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
120
+ };
121
+ metadata?: {
122
+ manualLocation?: boolean;
123
+ position?: import("@comapeo/schema/dist/schema/observation.js").Position;
124
+ lastSavedPosition?: import("@comapeo/schema/dist/schema/observation.js").Position;
125
+ positionProvider?: {
126
+ gpsAvailable?: boolean;
127
+ passiveAvailable?: boolean;
128
+ locationServicesEnabled: boolean;
129
+ networkAvailable?: boolean;
130
+ };
131
+ } | undefined;
132
+ presetRef?: {
133
+ docId: string;
134
+ versionId: string;
135
+ } | undefined;
136
+ docId: string;
137
+ versionId: string;
138
+ originalVersionId: string;
139
+ createdAt: string;
140
+ updatedAt: string;
141
+ links: string[];
142
+ deleted: boolean;
143
+ }, {
144
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
145
+ readonly $id: "http://mapeo.world/schemas/observation/v1.json";
146
+ readonly title: "Observation";
147
+ readonly description: "An observation is something that has been observed at a particular time and place. It is a subjective statement of 'I saw/heard this, here'";
148
+ readonly type: "object";
149
+ readonly properties: {
150
+ readonly docId: {
151
+ readonly description: "Hex-encoded 32-byte buffer";
152
+ readonly type: "string";
153
+ readonly minLength: 1;
154
+ };
155
+ readonly versionId: {
156
+ readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
157
+ readonly type: "string";
158
+ readonly minLength: 1;
159
+ };
160
+ readonly originalVersionId: {
161
+ readonly description: "Version ID of the original version of this document. For the original version, matches `versionId`.";
162
+ readonly type: "string";
163
+ readonly minLength: 1;
164
+ };
165
+ readonly schemaName: {
166
+ readonly description: "Must be `observation`";
167
+ readonly type: "string";
168
+ readonly const: "observation";
169
+ };
170
+ readonly createdAt: {
171
+ readonly description: "RFC3339-formatted datetime of when the first version of the element was created";
172
+ readonly type: "string";
173
+ readonly format: "date-time";
174
+ };
175
+ readonly updatedAt: {
176
+ readonly description: "RFC3339-formatted datetime of when this version of the element was created";
177
+ readonly type: "string";
178
+ readonly format: "date-time";
179
+ };
180
+ readonly links: {
181
+ readonly description: "Version ids of the previous document versions this one is replacing. Each link is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
182
+ readonly type: "array";
183
+ readonly uniqueItems: true;
184
+ readonly items: {
185
+ readonly type: "string";
334
186
  };
335
- driverParam: string;
336
- notNull: true;
337
- hasDefault: false;
338
- enumValues: undefined;
339
- baseColumn: never;
340
- }, object>;
341
- readonly metadata: import("drizzle-orm/sqlite-core").SQLiteColumn<{
342
- name: "metadata";
343
- tableName: "observation";
344
- dataType: "custom";
345
- columnType: "SQLiteCustomColumn";
346
- data: {
347
- manualLocation?: boolean;
348
- position?: import("@comapeo/schema/dist/schema/observation.js").Position;
349
- lastSavedPosition?: import("@comapeo/schema/dist/schema/observation.js").Position;
350
- positionProvider?: {
351
- gpsAvailable?: boolean;
352
- passiveAvailable?: boolean;
353
- locationServicesEnabled: boolean;
354
- networkAvailable?: boolean;
187
+ };
188
+ readonly deleted: {
189
+ readonly description: "Indicates whether the document has been deleted";
190
+ readonly type: "boolean";
191
+ };
192
+ readonly lat: {
193
+ readonly description: "latitude of the observation";
194
+ readonly type: "number";
195
+ readonly minimum: -90;
196
+ readonly maximum: 90;
197
+ };
198
+ readonly lon: {
199
+ readonly description: "longitude of the observation";
200
+ readonly type: "number";
201
+ readonly minimum: -180;
202
+ readonly maximum: 180;
203
+ };
204
+ readonly attachments: {
205
+ readonly type: "array";
206
+ readonly description: "media or other data that are attached to this observation";
207
+ readonly items: {
208
+ readonly oneOf: readonly [{
209
+ readonly type: "object";
210
+ readonly properties: {
211
+ readonly driveDiscoveryId: {
212
+ readonly type: "string";
213
+ readonly description: "core discovery id for the drive that the attachment belongs to";
214
+ readonly minLength: 1;
215
+ };
216
+ readonly name: {
217
+ readonly type: "string";
218
+ readonly description: "name of the attachment";
219
+ readonly minLength: 1;
220
+ };
221
+ readonly type: {
222
+ readonly type: "string";
223
+ readonly description: "string that describes the type of the attachment";
224
+ readonly const: "photo";
225
+ };
226
+ readonly hash: {
227
+ readonly type: "string";
228
+ readonly description: "SHA256 hash of the attachment";
229
+ readonly minLength: 1;
230
+ };
231
+ readonly photoExif: {
232
+ readonly type: "object";
233
+ readonly description: "EXIF data from an image. https://exiftool.org/TagNames/EXIF.html";
234
+ readonly properties: {
235
+ readonly ApertureValue: {
236
+ readonly type: "number";
237
+ };
238
+ readonly ExposureTime: {
239
+ readonly type: "number";
240
+ };
241
+ readonly Flash: {
242
+ readonly type: "number";
243
+ };
244
+ readonly FNumber: {
245
+ readonly type: "number";
246
+ };
247
+ readonly FocalLength: {
248
+ readonly type: "number";
249
+ };
250
+ readonly ISOSpeedRatings: {
251
+ readonly type: "number";
252
+ };
253
+ readonly ImageLength: {
254
+ readonly type: "number";
255
+ };
256
+ readonly ImageWidth: {
257
+ readonly type: "number";
258
+ };
259
+ readonly Make: {
260
+ readonly type: "string";
261
+ };
262
+ readonly Model: {
263
+ readonly type: "string";
264
+ };
265
+ readonly Orientation: {
266
+ readonly type: "number";
267
+ };
268
+ readonly ShutterSpeedValue: {
269
+ readonly type: "number";
270
+ };
271
+ };
272
+ };
273
+ readonly createdAt: {
274
+ readonly description: "RFC3339-formatted datetime of when the first version of the attachment was created";
275
+ readonly type: "string";
276
+ readonly format: "date-time";
277
+ };
278
+ readonly position: {
279
+ readonly description: "Position details";
280
+ readonly type: "object";
281
+ readonly required: readonly ["timestamp", "coords"];
282
+ readonly properties: {
283
+ readonly timestamp: {
284
+ readonly description: "Timestamp of when the current position was obtained";
285
+ readonly type: "string";
286
+ readonly format: "date-time";
287
+ };
288
+ readonly mocked: {
289
+ readonly description: "`true` if the position was mocked";
290
+ readonly type: "boolean";
291
+ readonly default: false;
292
+ };
293
+ readonly coords: {
294
+ readonly description: "Position details, should be self explanatory. Units in meters";
295
+ readonly type: "object";
296
+ readonly required: readonly ["latitude", "longitude"];
297
+ readonly properties: {
298
+ readonly latitude: {
299
+ readonly type: "number";
300
+ };
301
+ readonly longitude: {
302
+ readonly type: "number";
303
+ };
304
+ readonly altitude: {
305
+ readonly type: "number";
306
+ };
307
+ readonly altitudeAccuracy: {
308
+ readonly type: "number";
309
+ };
310
+ readonly heading: {
311
+ readonly type: "number";
312
+ };
313
+ readonly speed: {
314
+ readonly type: "number";
315
+ };
316
+ readonly accuracy: {
317
+ readonly type: "number";
318
+ };
319
+ };
320
+ };
321
+ };
322
+ };
323
+ readonly external: {
324
+ readonly description: "Indicates whether the associated media was created from a source outside of CoMapeo";
325
+ readonly type: "boolean";
326
+ };
327
+ };
328
+ readonly required: readonly ["driveDiscoveryId", "name", "type", "hash", "external"];
329
+ }, {
330
+ readonly type: "object";
331
+ readonly properties: {
332
+ readonly driveDiscoveryId: {
333
+ readonly type: "string";
334
+ readonly description: "core discovery id for the drive that the attachment belongs to";
335
+ readonly minLength: 1;
336
+ };
337
+ readonly name: {
338
+ readonly type: "string";
339
+ readonly description: "name of the attachment";
340
+ readonly minLength: 1;
341
+ };
342
+ readonly type: {
343
+ readonly type: "string";
344
+ readonly description: "string that describes the type of the attachment";
345
+ readonly "meta:enum": {
346
+ readonly UNRECOGNIZED: "future attachment type";
347
+ };
348
+ readonly enum: readonly ["attachment_type_unspecified", "video", "audio", "UNRECOGNIZED"];
349
+ };
350
+ readonly hash: {
351
+ readonly type: "string";
352
+ readonly description: "SHA256 hash of the attachment";
353
+ readonly minLength: 1;
354
+ };
355
+ readonly createdAt: {
356
+ readonly description: "RFC3339-formatted datetime of when the first version of the attachment was created";
357
+ readonly type: "string";
358
+ readonly format: "date-time";
359
+ };
360
+ readonly position: {
361
+ readonly description: "Position details";
362
+ readonly type: "object";
363
+ readonly required: readonly ["timestamp", "coords"];
364
+ readonly properties: {
365
+ readonly timestamp: {
366
+ readonly description: "Timestamp of when the current position was obtained";
367
+ readonly type: "string";
368
+ readonly format: "date-time";
369
+ };
370
+ readonly mocked: {
371
+ readonly description: "`true` if the position was mocked";
372
+ readonly type: "boolean";
373
+ readonly default: false;
374
+ };
375
+ readonly coords: {
376
+ readonly description: "Position details, should be self explanatory. Units in meters";
377
+ readonly type: "object";
378
+ readonly required: readonly ["latitude", "longitude"];
379
+ readonly properties: {
380
+ readonly latitude: {
381
+ readonly type: "number";
382
+ };
383
+ readonly longitude: {
384
+ readonly type: "number";
385
+ };
386
+ readonly altitude: {
387
+ readonly type: "number";
388
+ };
389
+ readonly altitudeAccuracy: {
390
+ readonly type: "number";
391
+ };
392
+ readonly heading: {
393
+ readonly type: "number";
394
+ };
395
+ readonly speed: {
396
+ readonly type: "number";
397
+ };
398
+ readonly accuracy: {
399
+ readonly type: "number";
400
+ };
401
+ };
402
+ };
403
+ };
404
+ };
405
+ readonly external: {
406
+ readonly description: "Indicates whether the associated media was created from a source outside of CoMapeo";
407
+ readonly type: "boolean";
408
+ };
409
+ };
410
+ readonly required: readonly ["driveDiscoveryId", "name", "type", "hash", "external"];
411
+ }];
412
+ };
413
+ };
414
+ readonly tags: {
415
+ readonly type: "object";
416
+ readonly description: "User-defined key-value pairs relevant to this observation";
417
+ readonly properties: {};
418
+ readonly additionalProperties: {
419
+ readonly anyOf: readonly [{
420
+ readonly type: "boolean";
421
+ }, {
422
+ readonly type: "number";
423
+ }, {
424
+ readonly type: "string";
425
+ }, {
426
+ readonly type: "null";
427
+ }, {
428
+ readonly type: "array";
429
+ readonly items: {
430
+ readonly anyOf: readonly [{
431
+ readonly type: "boolean";
432
+ }, {
433
+ readonly type: "number";
434
+ }, {
435
+ readonly type: "string";
436
+ }, {
437
+ readonly type: "null";
438
+ }];
439
+ };
440
+ }];
441
+ };
442
+ };
443
+ readonly metadata: {
444
+ readonly description: "Additional metadata associated with the observation (e.g. location precision, altitude, heading)";
445
+ readonly type: "object";
446
+ readonly properties: {
447
+ readonly manualLocation: {
448
+ readonly description: "Whether location has been set manually";
449
+ readonly type: "boolean";
450
+ readonly default: false;
355
451
  };
356
- } | undefined;
357
- driverParam: string;
358
- notNull: false;
359
- hasDefault: false;
360
- enumValues: undefined;
361
- baseColumn: never;
362
- }, object>;
363
- readonly presetRef: import("drizzle-orm/sqlite-core").SQLiteColumn<{
364
- name: "presetRef";
365
- tableName: "observation";
366
- dataType: "custom";
367
- columnType: "SQLiteCustomColumn";
368
- data: {
369
- docId: string;
370
- versionId: string;
371
- } | undefined;
372
- driverParam: string;
373
- notNull: false;
374
- hasDefault: false;
375
- enumValues: undefined;
376
- baseColumn: never;
377
- }, object>;
378
- forks: import("drizzle-orm/sqlite-core").SQLiteColumn<{
379
- name: "forks";
380
- tableName: "observation";
381
- dataType: "custom";
382
- columnType: "SQLiteCustomColumn";
383
- data: string[];
384
- driverParam: string;
385
- notNull: true;
386
- hasDefault: false;
387
- enumValues: undefined;
388
- baseColumn: never;
389
- }, object>;
452
+ readonly position: {
453
+ readonly description: "Position details";
454
+ readonly type: "object";
455
+ readonly required: readonly ["timestamp", "coords"];
456
+ readonly properties: {
457
+ readonly timestamp: {
458
+ readonly description: "Timestamp of when the current position was obtained";
459
+ readonly type: "string";
460
+ readonly format: "date-time";
461
+ };
462
+ readonly mocked: {
463
+ readonly description: "`true` if the position was mocked";
464
+ readonly type: "boolean";
465
+ readonly default: false;
466
+ };
467
+ readonly coords: {
468
+ readonly description: "Position details, should be self explanatory. Units in meters";
469
+ readonly type: "object";
470
+ readonly required: readonly ["latitude", "longitude"];
471
+ readonly properties: {
472
+ readonly latitude: {
473
+ readonly type: "number";
474
+ };
475
+ readonly longitude: {
476
+ readonly type: "number";
477
+ };
478
+ readonly altitude: {
479
+ readonly type: "number";
480
+ };
481
+ readonly altitudeAccuracy: {
482
+ readonly type: "number";
483
+ };
484
+ readonly heading: {
485
+ readonly type: "number";
486
+ };
487
+ readonly speed: {
488
+ readonly type: "number";
489
+ };
490
+ readonly accuracy: {
491
+ readonly type: "number";
492
+ };
493
+ };
494
+ };
495
+ };
496
+ };
497
+ readonly lastSavedPosition: {
498
+ readonly description: "Position details";
499
+ readonly type: "object";
500
+ readonly required: readonly ["timestamp", "coords"];
501
+ readonly properties: {
502
+ readonly timestamp: {
503
+ readonly description: "Timestamp of when the current position was obtained";
504
+ readonly type: "string";
505
+ readonly format: "date-time";
506
+ };
507
+ readonly mocked: {
508
+ readonly description: "`true` if the position was mocked";
509
+ readonly type: "boolean";
510
+ readonly default: false;
511
+ };
512
+ readonly coords: {
513
+ readonly description: "Position details, should be self explanatory. Units in meters";
514
+ readonly type: "object";
515
+ readonly required: readonly ["latitude", "longitude"];
516
+ readonly properties: {
517
+ readonly latitude: {
518
+ readonly type: "number";
519
+ };
520
+ readonly longitude: {
521
+ readonly type: "number";
522
+ };
523
+ readonly altitude: {
524
+ readonly type: "number";
525
+ };
526
+ readonly altitudeAccuracy: {
527
+ readonly type: "number";
528
+ };
529
+ readonly heading: {
530
+ readonly type: "number";
531
+ };
532
+ readonly speed: {
533
+ readonly type: "number";
534
+ };
535
+ readonly accuracy: {
536
+ readonly type: "number";
537
+ };
538
+ };
539
+ };
540
+ };
541
+ };
542
+ readonly positionProvider: {
543
+ readonly description: "Details of the location providers that were available on the device when the observation was recorded";
544
+ readonly type: "object";
545
+ readonly required: readonly ["locationServicesEnabled"];
546
+ readonly properties: {
547
+ readonly gpsAvailable: {
548
+ readonly description: "Whether the user has enabled GPS for device location (this is not the same as whether location is turned on or off, this is a device setting whether to use just wifi and bluetooth or use GPS for location)";
549
+ readonly type: "boolean";
550
+ };
551
+ readonly passiveAvailable: {
552
+ readonly description: "Whether the device is configured to lookup location based on wifi and bluetooth networks";
553
+ readonly type: "boolean";
554
+ };
555
+ readonly locationServicesEnabled: {
556
+ readonly description: "Has the user enabled location services on the device (this is often turned off when the device is in airplane mode)";
557
+ readonly type: "boolean";
558
+ };
559
+ readonly networkAvailable: {
560
+ readonly description: "Whether the device can lookup location based on cell phone towers";
561
+ readonly type: "boolean";
562
+ };
563
+ };
564
+ };
565
+ };
566
+ readonly additionalProperties: false;
567
+ };
568
+ readonly presetRef: {
569
+ readonly type: "object";
570
+ readonly description: "References to the preset that this observation is related to.";
571
+ readonly properties: {
572
+ readonly docId: {
573
+ readonly description: "hex-encoded id of the element that this observation references";
574
+ readonly type: "string";
575
+ readonly minLength: 1;
576
+ };
577
+ readonly versionId: {
578
+ readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
579
+ readonly type: "string";
580
+ readonly minLength: 1;
581
+ };
582
+ };
583
+ readonly required: readonly ["docId", "versionId"];
584
+ };
390
585
  };
391
- dialect: "sqlite";
392
- }>;
393
- export const trackTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
394
- name: "track";
395
- schema: undefined;
396
- columns: {
397
- readonly docId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
398
- name: "docId";
399
- tableName: "track";
400
- dataType: "string";
401
- columnType: "SQLiteText";
402
- data: string;
403
- driverParam: string;
404
- notNull: true;
405
- hasDefault: false;
406
- enumValues: [string, ...string[]];
407
- baseColumn: never;
408
- }, object>;
409
- readonly versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
410
- name: "versionId";
411
- tableName: "track";
412
- dataType: "string";
413
- columnType: "SQLiteText";
414
- data: string;
415
- driverParam: string;
416
- notNull: true;
417
- hasDefault: false;
418
- enumValues: [string, ...string[]];
419
- baseColumn: never;
420
- }, object>;
421
- readonly originalVersionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
422
- name: "originalVersionId";
423
- tableName: "track";
424
- dataType: "string";
425
- columnType: "SQLiteText";
426
- data: string;
427
- driverParam: string;
428
- notNull: true;
429
- hasDefault: false;
430
- enumValues: [string, ...string[]];
431
- baseColumn: never;
432
- }, object>;
433
- readonly schemaName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
434
- name: "schemaName";
435
- tableName: "track";
436
- dataType: "string";
437
- columnType: "SQLiteText";
438
- data: "track";
439
- driverParam: string;
440
- notNull: true;
441
- hasDefault: false;
442
- enumValues: ["track"];
443
- baseColumn: never;
444
- }, object>;
445
- readonly createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
446
- name: "createdAt";
447
- tableName: "track";
448
- dataType: "string";
449
- columnType: "SQLiteText";
450
- data: string;
451
- driverParam: string;
452
- notNull: true;
453
- hasDefault: false;
454
- enumValues: [string, ...string[]];
455
- baseColumn: never;
456
- }, object>;
457
- readonly updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
458
- name: "updatedAt";
459
- tableName: "track";
460
- dataType: "string";
461
- columnType: "SQLiteText";
462
- data: string;
463
- driverParam: string;
464
- notNull: true;
465
- hasDefault: false;
466
- enumValues: [string, ...string[]];
467
- baseColumn: never;
468
- }, object>;
469
- readonly links: import("drizzle-orm/sqlite-core").SQLiteColumn<{
470
- name: "links";
471
- tableName: "track";
472
- dataType: "custom";
473
- columnType: "SQLiteCustomColumn";
474
- data: string[];
475
- driverParam: string;
476
- notNull: true;
477
- hasDefault: false;
478
- enumValues: undefined;
479
- baseColumn: never;
480
- }, object>;
481
- readonly deleted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
482
- name: "deleted";
483
- tableName: "track";
484
- dataType: "boolean";
485
- columnType: "SQLiteBoolean";
486
- data: boolean;
487
- driverParam: number;
488
- notNull: true;
489
- hasDefault: false;
490
- enumValues: undefined;
491
- baseColumn: never;
492
- }, object>;
493
- readonly locations: import("drizzle-orm/sqlite-core").SQLiteColumn<{
494
- name: "locations";
495
- tableName: "track";
496
- dataType: "custom";
497
- columnType: "SQLiteCustomColumn";
498
- data: import("@comapeo/schema/dist/schema/track.js").Position[];
499
- driverParam: string;
500
- notNull: true;
501
- hasDefault: false;
502
- enumValues: undefined;
503
- baseColumn: never;
504
- }, object>;
505
- readonly observationRefs: import("drizzle-orm/sqlite-core").SQLiteColumn<{
506
- name: "observationRefs";
507
- tableName: "track";
508
- dataType: "custom";
509
- columnType: "SQLiteCustomColumn";
510
- data: {
511
- docId: string;
512
- versionId: string;
513
- }[];
514
- driverParam: string;
515
- notNull: true;
516
- hasDefault: false;
517
- enumValues: undefined;
518
- baseColumn: never;
519
- }, object>;
520
- readonly tags: import("drizzle-orm/sqlite-core").SQLiteColumn<{
521
- name: "tags";
522
- tableName: "track";
523
- dataType: "custom";
524
- columnType: "SQLiteCustomColumn";
525
- data: {
526
- [k: string]: string | number | boolean | (string | number | boolean | null)[] | null;
586
+ readonly required: readonly ["schemaName", "tags", "attachments", "docId", "createdAt", "updatedAt", "links", "versionId", "originalVersionId", "deleted"];
587
+ readonly additionalProperties: false;
588
+ }, "observation", import("./comapeo-to-drizzle.js").AdditionalColumns, "docId">;
589
+ export const trackTable: import("./types.js").JsonSchemaToDrizzleSqliteTable<{
590
+ schemaName: "track";
591
+ locations: import("@comapeo/schema/dist/schema/track.js").Position[];
592
+ observationRefs: {
593
+ docId: string;
594
+ versionId: string;
595
+ }[];
596
+ tags: {
597
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
598
+ };
599
+ presetRef?: {
600
+ docId: string;
601
+ versionId: string;
602
+ } | undefined;
603
+ docId: string;
604
+ versionId: string;
605
+ originalVersionId: string;
606
+ createdAt: string;
607
+ updatedAt: string;
608
+ links: string[];
609
+ deleted: boolean;
610
+ }, {
611
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
612
+ readonly $id: "http://mapeo.world/schemas/track/v1.json";
613
+ readonly title: "Track";
614
+ readonly description: "A track is a recording of positions over time, with associated tags, similar to an observation";
615
+ readonly type: "object";
616
+ readonly properties: {
617
+ readonly docId: {
618
+ readonly description: "Hex-encoded 32-byte buffer";
619
+ readonly type: "string";
620
+ readonly minLength: 1;
621
+ };
622
+ readonly versionId: {
623
+ readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
624
+ readonly type: "string";
625
+ readonly minLength: 1;
626
+ };
627
+ readonly originalVersionId: {
628
+ readonly description: "Version ID of the original version of this document. For the original version, matches `versionId`.";
629
+ readonly type: "string";
630
+ readonly minLength: 1;
631
+ };
632
+ readonly schemaName: {
633
+ readonly description: "Must be `track`";
634
+ readonly type: "string";
635
+ readonly const: "track";
636
+ };
637
+ readonly createdAt: {
638
+ readonly description: "RFC3339-formatted datetime of when the first version of the element was created";
639
+ readonly type: "string";
640
+ readonly format: "date-time";
641
+ };
642
+ readonly updatedAt: {
643
+ readonly description: "RFC3339-formatted datetime of when this version of the element was created";
644
+ readonly type: "string";
645
+ readonly format: "date-time";
646
+ };
647
+ readonly links: {
648
+ readonly description: "Version ids of the previous document versions this one is replacing. Each link is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
649
+ readonly type: "array";
650
+ readonly uniqueItems: true;
651
+ readonly items: {
652
+ readonly type: "string";
527
653
  };
528
- driverParam: string;
529
- notNull: true;
530
- hasDefault: false;
531
- enumValues: undefined;
532
- baseColumn: never;
533
- }, object>;
534
- readonly presetRef: import("drizzle-orm/sqlite-core").SQLiteColumn<{
535
- name: "presetRef";
536
- tableName: "track";
537
- dataType: "custom";
538
- columnType: "SQLiteCustomColumn";
539
- data: {
540
- docId: string;
541
- versionId: string;
542
- } | undefined;
543
- driverParam: string;
544
- notNull: false;
545
- hasDefault: false;
546
- enumValues: undefined;
547
- baseColumn: never;
548
- }, object>;
549
- forks: import("drizzle-orm/sqlite-core").SQLiteColumn<{
550
- name: "forks";
551
- tableName: "track";
552
- dataType: "custom";
553
- columnType: "SQLiteCustomColumn";
554
- data: string[];
555
- driverParam: string;
556
- notNull: true;
557
- hasDefault: false;
558
- enumValues: undefined;
559
- baseColumn: never;
560
- }, object>;
561
- };
562
- dialect: "sqlite";
563
- }>;
564
- export const remoteDetectionAlertTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
565
- name: "remoteDetectionAlert";
566
- schema: undefined;
567
- columns: {
568
- readonly docId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
569
- name: "docId";
570
- tableName: "remoteDetectionAlert";
571
- dataType: "string";
572
- columnType: "SQLiteText";
573
- data: string;
574
- driverParam: string;
575
- notNull: true;
576
- hasDefault: false;
577
- enumValues: [string, ...string[]];
578
- baseColumn: never;
579
- }, object>;
580
- readonly versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
581
- name: "versionId";
582
- tableName: "remoteDetectionAlert";
583
- dataType: "string";
584
- columnType: "SQLiteText";
585
- data: string;
586
- driverParam: string;
587
- notNull: true;
588
- hasDefault: false;
589
- enumValues: [string, ...string[]];
590
- baseColumn: never;
591
- }, object>;
592
- readonly originalVersionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
593
- name: "originalVersionId";
594
- tableName: "remoteDetectionAlert";
595
- dataType: "string";
596
- columnType: "SQLiteText";
597
- data: string;
598
- driverParam: string;
599
- notNull: true;
600
- hasDefault: false;
601
- enumValues: [string, ...string[]];
602
- baseColumn: never;
603
- }, object>;
604
- readonly schemaName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
605
- name: "schemaName";
606
- tableName: "remoteDetectionAlert";
607
- dataType: "string";
608
- columnType: "SQLiteText";
609
- data: "remoteDetectionAlert";
610
- driverParam: string;
611
- notNull: true;
612
- hasDefault: false;
613
- enumValues: ["remoteDetectionAlert"];
614
- baseColumn: never;
615
- }, object>;
616
- readonly createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
617
- name: "createdAt";
618
- tableName: "remoteDetectionAlert";
619
- dataType: "string";
620
- columnType: "SQLiteText";
621
- data: string;
622
- driverParam: string;
623
- notNull: true;
624
- hasDefault: false;
625
- enumValues: [string, ...string[]];
626
- baseColumn: never;
627
- }, object>;
628
- readonly updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
629
- name: "updatedAt";
630
- tableName: "remoteDetectionAlert";
631
- dataType: "string";
632
- columnType: "SQLiteText";
633
- data: string;
634
- driverParam: string;
635
- notNull: true;
636
- hasDefault: false;
637
- enumValues: [string, ...string[]];
638
- baseColumn: never;
639
- }, object>;
640
- readonly links: import("drizzle-orm/sqlite-core").SQLiteColumn<{
641
- name: "links";
642
- tableName: "remoteDetectionAlert";
643
- dataType: "custom";
644
- columnType: "SQLiteCustomColumn";
645
- data: string[];
646
- driverParam: string;
647
- notNull: true;
648
- hasDefault: false;
649
- enumValues: undefined;
650
- baseColumn: never;
651
- }, object>;
652
- readonly deleted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
653
- name: "deleted";
654
- tableName: "remoteDetectionAlert";
655
- dataType: "boolean";
656
- columnType: "SQLiteBoolean";
657
- data: boolean;
658
- driverParam: number;
659
- notNull: true;
660
- hasDefault: false;
661
- enumValues: undefined;
662
- baseColumn: never;
663
- }, object>;
664
- readonly detectionDateStart: import("drizzle-orm/sqlite-core").SQLiteColumn<{
665
- name: "detectionDateStart";
666
- tableName: "remoteDetectionAlert";
667
- dataType: "string";
668
- columnType: "SQLiteText";
669
- data: string;
670
- driverParam: string;
671
- notNull: true;
672
- hasDefault: false;
673
- enumValues: [string, ...string[]];
674
- baseColumn: never;
675
- }, object>;
676
- readonly detectionDateEnd: import("drizzle-orm/sqlite-core").SQLiteColumn<{
677
- name: "detectionDateEnd";
678
- tableName: "remoteDetectionAlert";
679
- dataType: "string";
680
- columnType: "SQLiteText";
681
- data: string;
682
- driverParam: string;
683
- notNull: true;
684
- hasDefault: false;
685
- enumValues: [string, ...string[]];
686
- baseColumn: never;
687
- }, object>;
688
- readonly sourceId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
689
- name: "sourceId";
690
- tableName: "remoteDetectionAlert";
691
- dataType: "string";
692
- columnType: "SQLiteText";
693
- data: string;
694
- driverParam: string;
695
- notNull: true;
696
- hasDefault: false;
697
- enumValues: [string, ...string[]];
698
- baseColumn: never;
699
- }, object>;
700
- readonly metadata: import("drizzle-orm/sqlite-core").SQLiteColumn<{
701
- name: "metadata";
702
- tableName: "remoteDetectionAlert";
703
- dataType: "custom";
704
- columnType: "SQLiteCustomColumn";
705
- data: {
706
- [k: string]: string | number | boolean | (string | number | boolean | null)[] | null;
654
+ };
655
+ readonly deleted: {
656
+ readonly description: "Indicates whether the document has been deleted";
657
+ readonly type: "boolean";
658
+ };
659
+ readonly locations: {
660
+ readonly type: "array";
661
+ readonly description: "Array of positions along the track";
662
+ readonly items: {
663
+ readonly description: "Position details";
664
+ readonly type: "object";
665
+ readonly required: readonly ["timestamp", "mocked", "coords"];
666
+ readonly properties: {
667
+ readonly timestamp: {
668
+ readonly description: "Timestamp (ISO date string) of when the current position was obtained";
669
+ readonly type: "string";
670
+ readonly format: "date-time";
671
+ };
672
+ readonly mocked: {
673
+ readonly description: "`true` if the position was mocked";
674
+ readonly type: "boolean";
675
+ readonly default: false;
676
+ };
677
+ readonly coords: {
678
+ readonly description: "Position details, should be self explanatory. Units in meters";
679
+ readonly type: "object";
680
+ readonly required: readonly ["latitude", "longitude"];
681
+ readonly properties: {
682
+ readonly latitude: {
683
+ readonly type: "number";
684
+ };
685
+ readonly longitude: {
686
+ readonly type: "number";
687
+ };
688
+ readonly altitude: {
689
+ readonly type: "number";
690
+ };
691
+ readonly heading: {
692
+ readonly type: "number";
693
+ };
694
+ readonly speed: {
695
+ readonly type: "number";
696
+ };
697
+ readonly accuracy: {
698
+ readonly type: "number";
699
+ };
700
+ };
701
+ };
702
+ };
707
703
  };
708
- driverParam: string;
709
- notNull: true;
710
- hasDefault: false;
711
- enumValues: undefined;
712
- baseColumn: never;
713
- }, object>;
714
- readonly geometry: import("drizzle-orm/sqlite-core").SQLiteColumn<{
715
- name: "geometry";
716
- tableName: "remoteDetectionAlert";
717
- dataType: "custom";
718
- columnType: "SQLiteCustomColumn";
719
- data: import("@comapeo/schema/dist/schema/remoteDetectionAlert.js").Geometry;
720
- driverParam: string;
721
- notNull: true;
722
- hasDefault: false;
723
- enumValues: undefined;
724
- baseColumn: never;
725
- }, object>;
726
- forks: import("drizzle-orm/sqlite-core").SQLiteColumn<{
727
- name: "forks";
728
- tableName: "remoteDetectionAlert";
729
- dataType: "custom";
730
- columnType: "SQLiteCustomColumn";
731
- data: string[];
732
- driverParam: string;
733
- notNull: true;
734
- hasDefault: false;
735
- enumValues: undefined;
736
- baseColumn: never;
737
- }, object>;
738
- };
739
- dialect: "sqlite";
740
- }>;
741
- export const presetTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
742
- name: "preset";
743
- schema: undefined;
744
- columns: {
745
- readonly docId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
746
- name: "docId";
747
- tableName: "preset";
748
- dataType: "string";
749
- columnType: "SQLiteText";
750
- data: string;
751
- driverParam: string;
752
- notNull: true;
753
- hasDefault: false;
754
- enumValues: [string, ...string[]];
755
- baseColumn: never;
756
- }, object>;
757
- readonly versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
758
- name: "versionId";
759
- tableName: "preset";
760
- dataType: "string";
761
- columnType: "SQLiteText";
762
- data: string;
763
- driverParam: string;
764
- notNull: true;
765
- hasDefault: false;
766
- enumValues: [string, ...string[]];
767
- baseColumn: never;
768
- }, object>;
769
- readonly originalVersionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
770
- name: "originalVersionId";
771
- tableName: "preset";
772
- dataType: "string";
773
- columnType: "SQLiteText";
774
- data: string;
775
- driverParam: string;
776
- notNull: true;
777
- hasDefault: false;
778
- enumValues: [string, ...string[]];
779
- baseColumn: never;
780
- }, object>;
781
- readonly schemaName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
782
- name: "schemaName";
783
- tableName: "preset";
784
- dataType: "string";
785
- columnType: "SQLiteText";
786
- data: "preset";
787
- driverParam: string;
788
- notNull: true;
789
- hasDefault: false;
790
- enumValues: ["preset"];
791
- baseColumn: never;
792
- }, object>;
793
- readonly createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
794
- name: "createdAt";
795
- tableName: "preset";
796
- dataType: "string";
797
- columnType: "SQLiteText";
798
- data: string;
799
- driverParam: string;
800
- notNull: true;
801
- hasDefault: false;
802
- enumValues: [string, ...string[]];
803
- baseColumn: never;
804
- }, object>;
805
- readonly updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
806
- name: "updatedAt";
807
- tableName: "preset";
808
- dataType: "string";
809
- columnType: "SQLiteText";
810
- data: string;
811
- driverParam: string;
812
- notNull: true;
813
- hasDefault: false;
814
- enumValues: [string, ...string[]];
815
- baseColumn: never;
816
- }, object>;
817
- readonly links: import("drizzle-orm/sqlite-core").SQLiteColumn<{
818
- name: "links";
819
- tableName: "preset";
820
- dataType: "custom";
821
- columnType: "SQLiteCustomColumn";
822
- data: string[];
823
- driverParam: string;
824
- notNull: true;
825
- hasDefault: false;
826
- enumValues: undefined;
827
- baseColumn: never;
828
- }, object>;
829
- readonly deleted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
830
- name: "deleted";
831
- tableName: "preset";
832
- dataType: "boolean";
833
- columnType: "SQLiteBoolean";
834
- data: boolean;
835
- driverParam: number;
836
- notNull: true;
837
- hasDefault: false;
838
- enumValues: undefined;
839
- baseColumn: never;
840
- }, object>;
841
- readonly name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
842
- name: "name";
843
- tableName: "preset";
844
- dataType: "string";
845
- columnType: "SQLiteText";
846
- data: string;
847
- driverParam: string;
848
- notNull: true;
849
- hasDefault: false;
850
- enumValues: [string, ...string[]];
851
- baseColumn: never;
852
- }, object>;
853
- readonly geometry: import("drizzle-orm/sqlite-core").SQLiteColumn<{
854
- name: "geometry";
855
- tableName: "preset";
856
- dataType: "custom";
857
- columnType: "SQLiteCustomColumn";
858
- data: ("point" | "vertex" | "line" | "area" | "relation")[];
859
- driverParam: string;
860
- notNull: true;
861
- hasDefault: false;
862
- enumValues: undefined;
863
- baseColumn: never;
864
- }, object>;
865
- readonly tags: import("drizzle-orm/sqlite-core").SQLiteColumn<{
866
- name: "tags";
867
- tableName: "preset";
868
- dataType: "custom";
869
- columnType: "SQLiteCustomColumn";
870
- data: import("@comapeo/schema/dist/schema/preset.js").Tags;
871
- driverParam: string;
872
- notNull: true;
873
- hasDefault: false;
874
- enumValues: undefined;
875
- baseColumn: never;
876
- }, object>;
877
- readonly addTags: import("drizzle-orm/sqlite-core").SQLiteColumn<{
878
- name: "addTags";
879
- tableName: "preset";
880
- dataType: "custom";
881
- columnType: "SQLiteCustomColumn";
882
- data: import("@comapeo/schema/dist/schema/preset.js").Tags1;
883
- driverParam: string;
884
- notNull: true;
885
- hasDefault: false;
886
- enumValues: undefined;
887
- baseColumn: never;
888
- }, object>;
889
- readonly removeTags: import("drizzle-orm/sqlite-core").SQLiteColumn<{
890
- name: "removeTags";
891
- tableName: "preset";
892
- dataType: "custom";
893
- columnType: "SQLiteCustomColumn";
894
- data: import("@comapeo/schema/dist/schema/preset.js").Tags2;
895
- driverParam: string;
896
- notNull: true;
897
- hasDefault: false;
898
- enumValues: undefined;
899
- baseColumn: never;
900
- }, object>;
901
- readonly fieldRefs: import("drizzle-orm/sqlite-core").SQLiteColumn<{
902
- name: "fieldRefs";
903
- tableName: "preset";
904
- dataType: "custom";
905
- columnType: "SQLiteCustomColumn";
906
- data: {
907
- docId: string;
908
- versionId: string;
909
- }[];
910
- driverParam: string;
911
- notNull: true;
912
- hasDefault: false;
913
- enumValues: undefined;
914
- baseColumn: never;
915
- }, object>;
916
- readonly iconRef: import("drizzle-orm/sqlite-core").SQLiteColumn<{
917
- name: "iconRef";
918
- tableName: "preset";
919
- dataType: "custom";
920
- columnType: "SQLiteCustomColumn";
921
- data: {
922
- docId: string;
923
- versionId: string;
924
- } | undefined;
925
- driverParam: string;
926
- notNull: false;
927
- hasDefault: false;
928
- enumValues: undefined;
929
- baseColumn: never;
930
- }, object>;
931
- readonly terms: import("drizzle-orm/sqlite-core").SQLiteColumn<{
932
- name: "terms";
933
- tableName: "preset";
934
- dataType: "custom";
935
- columnType: "SQLiteCustomColumn";
936
- data: string[];
937
- driverParam: string;
938
- notNull: true;
939
- hasDefault: false;
940
- enumValues: undefined;
941
- baseColumn: never;
942
- }, object>;
943
- readonly color: import("drizzle-orm/sqlite-core").SQLiteColumn<{
944
- name: "color";
945
- tableName: "preset";
946
- dataType: "string";
947
- columnType: "SQLiteText";
948
- data: string;
949
- driverParam: string;
950
- notNull: false;
951
- hasDefault: false;
952
- enumValues: [string, ...string[]];
953
- baseColumn: never;
954
- }, object>;
955
- forks: import("drizzle-orm/sqlite-core").SQLiteColumn<{
956
- name: "forks";
957
- tableName: "preset";
958
- dataType: "custom";
959
- columnType: "SQLiteCustomColumn";
960
- data: string[];
961
- driverParam: string;
962
- notNull: true;
963
- hasDefault: false;
964
- enumValues: undefined;
965
- baseColumn: never;
966
- }, object>;
704
+ };
705
+ readonly observationRefs: {
706
+ readonly type: "array";
707
+ readonly description: "References to any observations that this track is related to.";
708
+ readonly items: {
709
+ readonly type: "object";
710
+ readonly properties: {
711
+ readonly docId: {
712
+ readonly description: "hex-encoded id of the element that this track references";
713
+ readonly type: "string";
714
+ readonly minLength: 1;
715
+ };
716
+ readonly versionId: {
717
+ readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
718
+ readonly type: "string";
719
+ readonly minLength: 1;
720
+ };
721
+ };
722
+ readonly required: readonly ["docId", "versionId"];
723
+ };
724
+ };
725
+ readonly tags: {
726
+ readonly type: "object";
727
+ readonly description: "User-defined key-value pairs relevant to this track";
728
+ readonly properties: {};
729
+ readonly additionalProperties: {
730
+ readonly anyOf: readonly [{
731
+ readonly type: "boolean";
732
+ }, {
733
+ readonly type: "number";
734
+ }, {
735
+ readonly type: "string";
736
+ }, {
737
+ readonly type: "null";
738
+ }, {
739
+ readonly type: "array";
740
+ readonly items: {
741
+ readonly anyOf: readonly [{
742
+ readonly type: "boolean";
743
+ }, {
744
+ readonly type: "number";
745
+ }, {
746
+ readonly type: "string";
747
+ }, {
748
+ readonly type: "null";
749
+ }];
750
+ };
751
+ }];
752
+ };
753
+ };
754
+ readonly presetRef: {
755
+ readonly type: "object";
756
+ readonly description: "References to the preset that this track is related to.";
757
+ readonly properties: {
758
+ readonly docId: {
759
+ readonly description: "hex-encoded id of the element that this track references";
760
+ readonly type: "string";
761
+ readonly minLength: 1;
762
+ };
763
+ readonly versionId: {
764
+ readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
765
+ readonly type: "string";
766
+ readonly minLength: 1;
767
+ };
768
+ };
769
+ readonly required: readonly ["docId", "versionId"];
770
+ };
967
771
  };
968
- dialect: "sqlite";
969
- }>;
970
- export const fieldTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
971
- name: "field";
972
- schema: undefined;
973
- columns: {
974
- readonly docId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
975
- name: "docId";
976
- tableName: "field";
977
- dataType: "string";
978
- columnType: "SQLiteText";
979
- data: string;
980
- driverParam: string;
981
- notNull: true;
982
- hasDefault: false;
983
- enumValues: [string, ...string[]];
984
- baseColumn: never;
985
- }, object>;
986
- readonly versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
987
- name: "versionId";
988
- tableName: "field";
989
- dataType: "string";
990
- columnType: "SQLiteText";
991
- data: string;
992
- driverParam: string;
993
- notNull: true;
994
- hasDefault: false;
995
- enumValues: [string, ...string[]];
996
- baseColumn: never;
997
- }, object>;
998
- readonly originalVersionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
999
- name: "originalVersionId";
1000
- tableName: "field";
1001
- dataType: "string";
1002
- columnType: "SQLiteText";
1003
- data: string;
1004
- driverParam: string;
1005
- notNull: true;
1006
- hasDefault: false;
1007
- enumValues: [string, ...string[]];
1008
- baseColumn: never;
1009
- }, object>;
1010
- readonly schemaName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1011
- name: "schemaName";
1012
- tableName: "field";
1013
- dataType: "string";
1014
- columnType: "SQLiteText";
1015
- data: "field";
1016
- driverParam: string;
1017
- notNull: true;
1018
- hasDefault: false;
1019
- enumValues: ["field"];
1020
- baseColumn: never;
1021
- }, object>;
1022
- readonly createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1023
- name: "createdAt";
1024
- tableName: "field";
1025
- dataType: "string";
1026
- columnType: "SQLiteText";
1027
- data: string;
1028
- driverParam: string;
1029
- notNull: true;
1030
- hasDefault: false;
1031
- enumValues: [string, ...string[]];
1032
- baseColumn: never;
1033
- }, object>;
1034
- readonly updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1035
- name: "updatedAt";
1036
- tableName: "field";
1037
- dataType: "string";
1038
- columnType: "SQLiteText";
1039
- data: string;
1040
- driverParam: string;
1041
- notNull: true;
1042
- hasDefault: false;
1043
- enumValues: [string, ...string[]];
1044
- baseColumn: never;
1045
- }, object>;
1046
- readonly links: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1047
- name: "links";
1048
- tableName: "field";
1049
- dataType: "custom";
1050
- columnType: "SQLiteCustomColumn";
1051
- data: string[];
1052
- driverParam: string;
1053
- notNull: true;
1054
- hasDefault: false;
1055
- enumValues: undefined;
1056
- baseColumn: never;
1057
- }, object>;
1058
- readonly deleted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1059
- name: "deleted";
1060
- tableName: "field";
1061
- dataType: "boolean";
1062
- columnType: "SQLiteBoolean";
1063
- data: boolean;
1064
- driverParam: number;
1065
- notNull: true;
1066
- hasDefault: false;
1067
- enumValues: undefined;
1068
- baseColumn: never;
1069
- }, object>;
1070
- readonly tagKey: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1071
- name: "tagKey";
1072
- tableName: "field";
1073
- dataType: "string";
1074
- columnType: "SQLiteText";
1075
- data: string;
1076
- driverParam: string;
1077
- notNull: true;
1078
- hasDefault: false;
1079
- enumValues: [string, ...string[]];
1080
- baseColumn: never;
1081
- }, object>;
1082
- readonly type: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1083
- name: "type";
1084
- tableName: "field";
1085
- dataType: "string";
1086
- columnType: "SQLiteText";
1087
- data: "number" | "UNRECOGNIZED" | "text" | "type_unspecified" | "selectOne" | "selectMultiple";
1088
- driverParam: string;
1089
- notNull: true;
1090
- hasDefault: false;
1091
- enumValues: ["type_unspecified", "text", "number", "selectOne", "selectMultiple", "UNRECOGNIZED"];
1092
- baseColumn: never;
1093
- }, object>;
1094
- readonly label: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1095
- name: "label";
1096
- tableName: "field";
1097
- dataType: "string";
1098
- columnType: "SQLiteText";
1099
- data: string;
1100
- driverParam: string;
1101
- notNull: true;
1102
- hasDefault: false;
1103
- enumValues: [string, ...string[]];
1104
- baseColumn: never;
1105
- }, object>;
1106
- readonly appearance: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1107
- name: "appearance";
1108
- tableName: "field";
1109
- dataType: "string";
1110
- columnType: "SQLiteText";
1111
- data: "UNRECOGNIZED" | "appearance_unspecified" | "singleline" | "multiline";
1112
- driverParam: string;
1113
- notNull: false;
1114
- hasDefault: true;
1115
- enumValues: ["appearance_unspecified", "singleline", "multiline", "UNRECOGNIZED"];
1116
- baseColumn: never;
1117
- }, object>;
1118
- readonly snakeCase: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1119
- name: "snakeCase";
1120
- tableName: "field";
1121
- dataType: "boolean";
1122
- columnType: "SQLiteBoolean";
1123
- data: boolean;
1124
- driverParam: number;
1125
- notNull: false;
1126
- hasDefault: true;
1127
- enumValues: undefined;
1128
- baseColumn: never;
1129
- }, object>;
1130
- readonly options: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1131
- name: "options";
1132
- tableName: "field";
1133
- dataType: "custom";
1134
- columnType: "SQLiteCustomColumn";
1135
- data: {
1136
- label: string;
1137
- value: string | boolean | number | null;
1138
- }[] | undefined;
1139
- driverParam: string;
1140
- notNull: false;
1141
- hasDefault: false;
1142
- enumValues: undefined;
1143
- baseColumn: never;
1144
- }, object>;
1145
- readonly universal: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1146
- name: "universal";
1147
- tableName: "field";
1148
- dataType: "boolean";
1149
- columnType: "SQLiteBoolean";
1150
- data: boolean;
1151
- driverParam: number;
1152
- notNull: false;
1153
- hasDefault: true;
1154
- enumValues: undefined;
1155
- baseColumn: never;
1156
- }, object>;
1157
- readonly placeholder: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1158
- name: "placeholder";
1159
- tableName: "field";
1160
- dataType: "string";
1161
- columnType: "SQLiteText";
1162
- data: string;
1163
- driverParam: string;
1164
- notNull: false;
1165
- hasDefault: false;
1166
- enumValues: [string, ...string[]];
1167
- baseColumn: never;
1168
- }, object>;
1169
- readonly helperText: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1170
- name: "helperText";
1171
- tableName: "field";
1172
- dataType: "string";
1173
- columnType: "SQLiteText";
1174
- data: string;
1175
- driverParam: string;
1176
- notNull: false;
1177
- hasDefault: false;
1178
- enumValues: [string, ...string[]];
1179
- baseColumn: never;
1180
- }, object>;
1181
- forks: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1182
- name: "forks";
1183
- tableName: "field";
1184
- dataType: "custom";
1185
- columnType: "SQLiteCustomColumn";
1186
- data: string[];
1187
- driverParam: string;
1188
- notNull: true;
1189
- hasDefault: false;
1190
- enumValues: undefined;
1191
- baseColumn: never;
1192
- }, object>;
772
+ readonly required: readonly ["schemaName", "locations", "tags", "observationRefs", "docId", "createdAt", "updatedAt", "links", "versionId", "originalVersionId", "deleted"];
773
+ readonly additionalProperties: false;
774
+ }, "track", import("./comapeo-to-drizzle.js").AdditionalColumns, "docId">;
775
+ export const remoteDetectionAlertTable: import("./types.js").JsonSchemaToDrizzleSqliteTable<{
776
+ schemaName: "remoteDetectionAlert";
777
+ detectionDateStart: string;
778
+ detectionDateEnd: string;
779
+ sourceId: string;
780
+ metadata: {
781
+ [k: string]: boolean | number | string | null | (boolean | number | string | null)[];
1193
782
  };
1194
- dialect: "sqlite";
1195
- }>;
1196
- export const coreOwnershipTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1197
- name: "coreOwnership";
1198
- schema: undefined;
1199
- columns: {
1200
- readonly docId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1201
- name: "docId";
1202
- tableName: "coreOwnership";
1203
- dataType: "string";
1204
- columnType: "SQLiteText";
1205
- data: string;
1206
- driverParam: string;
1207
- notNull: true;
1208
- hasDefault: false;
1209
- enumValues: [string, ...string[]];
1210
- baseColumn: never;
1211
- }, object>;
1212
- readonly versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1213
- name: "versionId";
1214
- tableName: "coreOwnership";
1215
- dataType: "string";
1216
- columnType: "SQLiteText";
1217
- data: string;
1218
- driverParam: string;
1219
- notNull: true;
1220
- hasDefault: false;
1221
- enumValues: [string, ...string[]];
1222
- baseColumn: never;
1223
- }, object>;
1224
- readonly originalVersionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1225
- name: "originalVersionId";
1226
- tableName: "coreOwnership";
1227
- dataType: "string";
1228
- columnType: "SQLiteText";
1229
- data: string;
1230
- driverParam: string;
1231
- notNull: true;
1232
- hasDefault: false;
1233
- enumValues: [string, ...string[]];
1234
- baseColumn: never;
1235
- }, object>;
1236
- readonly schemaName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1237
- name: "schemaName";
1238
- tableName: "coreOwnership";
1239
- dataType: "string";
1240
- columnType: "SQLiteText";
1241
- data: "coreOwnership";
1242
- driverParam: string;
1243
- notNull: true;
1244
- hasDefault: false;
1245
- enumValues: ["coreOwnership"];
1246
- baseColumn: never;
1247
- }, object>;
1248
- readonly createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1249
- name: "createdAt";
1250
- tableName: "coreOwnership";
1251
- dataType: "string";
1252
- columnType: "SQLiteText";
1253
- data: string;
1254
- driverParam: string;
1255
- notNull: true;
1256
- hasDefault: false;
1257
- enumValues: [string, ...string[]];
1258
- baseColumn: never;
1259
- }, object>;
1260
- readonly updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1261
- name: "updatedAt";
1262
- tableName: "coreOwnership";
1263
- dataType: "string";
1264
- columnType: "SQLiteText";
1265
- data: string;
1266
- driverParam: string;
1267
- notNull: true;
1268
- hasDefault: false;
1269
- enumValues: [string, ...string[]];
1270
- baseColumn: never;
1271
- }, object>;
1272
- readonly links: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1273
- name: "links";
1274
- tableName: "coreOwnership";
1275
- dataType: "custom";
1276
- columnType: "SQLiteCustomColumn";
1277
- data: string[];
1278
- driverParam: string;
1279
- notNull: true;
1280
- hasDefault: false;
1281
- enumValues: undefined;
1282
- baseColumn: never;
1283
- }, object>;
1284
- readonly deleted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1285
- name: "deleted";
1286
- tableName: "coreOwnership";
1287
- dataType: "boolean";
1288
- columnType: "SQLiteBoolean";
1289
- data: boolean;
1290
- driverParam: number;
1291
- notNull: true;
1292
- hasDefault: false;
1293
- enumValues: undefined;
1294
- baseColumn: never;
1295
- }, object>;
1296
- readonly authCoreId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1297
- name: "authCoreId";
1298
- tableName: "coreOwnership";
1299
- dataType: "string";
1300
- columnType: "SQLiteText";
1301
- data: string;
1302
- driverParam: string;
1303
- notNull: true;
1304
- hasDefault: false;
1305
- enumValues: [string, ...string[]];
1306
- baseColumn: never;
1307
- }, object>;
1308
- readonly configCoreId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1309
- name: "configCoreId";
1310
- tableName: "coreOwnership";
1311
- dataType: "string";
1312
- columnType: "SQLiteText";
1313
- data: string;
1314
- driverParam: string;
1315
- notNull: true;
1316
- hasDefault: false;
1317
- enumValues: [string, ...string[]];
1318
- baseColumn: never;
1319
- }, object>;
1320
- readonly dataCoreId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1321
- name: "dataCoreId";
1322
- tableName: "coreOwnership";
1323
- dataType: "string";
1324
- columnType: "SQLiteText";
1325
- data: string;
1326
- driverParam: string;
1327
- notNull: true;
1328
- hasDefault: false;
1329
- enumValues: [string, ...string[]];
1330
- baseColumn: never;
1331
- }, object>;
1332
- readonly blobCoreId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1333
- name: "blobCoreId";
1334
- tableName: "coreOwnership";
1335
- dataType: "string";
1336
- columnType: "SQLiteText";
1337
- data: string;
1338
- driverParam: string;
1339
- notNull: true;
1340
- hasDefault: false;
1341
- enumValues: [string, ...string[]];
1342
- baseColumn: never;
1343
- }, object>;
1344
- readonly blobIndexCoreId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1345
- name: "blobIndexCoreId";
1346
- tableName: "coreOwnership";
1347
- dataType: "string";
1348
- columnType: "SQLiteText";
1349
- data: string;
1350
- driverParam: string;
1351
- notNull: true;
1352
- hasDefault: false;
1353
- enumValues: [string, ...string[]];
1354
- baseColumn: never;
1355
- }, object>;
1356
- forks: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1357
- name: "forks";
1358
- tableName: "coreOwnership";
1359
- dataType: "custom";
1360
- columnType: "SQLiteCustomColumn";
1361
- data: string[];
1362
- driverParam: string;
1363
- notNull: true;
1364
- hasDefault: false;
1365
- enumValues: undefined;
1366
- baseColumn: never;
1367
- }, object>;
783
+ geometry: import("@comapeo/schema/dist/schema/remoteDetectionAlert.js").Geometry;
784
+ docId: string;
785
+ versionId: string;
786
+ originalVersionId: string;
787
+ createdAt: string;
788
+ updatedAt: string;
789
+ links: string[];
790
+ deleted: boolean;
791
+ }, {
792
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
793
+ readonly $id: "http://mapeo.world/schemas/remoteDetectionAlert/v1.json";
794
+ readonly title: "RemoteDetectionAlert";
795
+ readonly description: "A remote detection alert is a type of element in the map that relates to an alert (regarding an urgent event that happened on the territory)";
796
+ readonly type: "object";
797
+ readonly properties: {
798
+ readonly docId: {
799
+ readonly description: "Hex-encoded 32-byte buffer";
800
+ readonly type: "string";
801
+ readonly minLength: 1;
802
+ };
803
+ readonly versionId: {
804
+ readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
805
+ readonly type: "string";
806
+ readonly minLength: 1;
807
+ };
808
+ readonly originalVersionId: {
809
+ readonly description: "Version ID of the original version of this document. For the original version, matches `versionId`.";
810
+ readonly type: "string";
811
+ readonly minLength: 1;
812
+ };
813
+ readonly schemaName: {
814
+ readonly description: "Must be `remoteDetectionAlert`";
815
+ readonly type: "string";
816
+ readonly const: "remoteDetectionAlert";
817
+ };
818
+ readonly createdAt: {
819
+ readonly description: "RFC3339-formatted datetime of when the first version of the element was created";
820
+ readonly type: "string";
821
+ readonly format: "date-time";
822
+ };
823
+ readonly updatedAt: {
824
+ readonly description: "RFC3339-formatted datetime of when this version of the element was created";
825
+ readonly type: "string";
826
+ readonly format: "date-time";
827
+ };
828
+ readonly links: {
829
+ readonly description: "Version ids of the previous document versions this one is replacing. Each link is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
830
+ readonly type: "array";
831
+ readonly uniqueItems: true;
832
+ readonly items: {
833
+ readonly type: "string";
834
+ };
835
+ };
836
+ readonly deleted: {
837
+ readonly description: "Indicates whether the document has been deleted";
838
+ readonly type: "boolean";
839
+ };
840
+ readonly detectionDateStart: {
841
+ readonly type: "string";
842
+ readonly format: "date-time";
843
+ readonly description: "Timestamp of when the detected alert started";
844
+ };
845
+ readonly detectionDateEnd: {
846
+ readonly type: "string";
847
+ readonly format: "date-time";
848
+ readonly description: "Timestamp of when the detected alert ended";
849
+ };
850
+ readonly sourceId: {
851
+ readonly type: "string";
852
+ readonly description: "unique string identifiying this alert, different from the `docId`";
853
+ };
854
+ readonly metadata: {
855
+ readonly type: "object";
856
+ readonly description: "Additional metadata related to this alert. It is a map from a string to any element (including lists)";
857
+ readonly properties: {};
858
+ readonly additionalProperties: {
859
+ readonly anyOf: readonly [{
860
+ readonly type: "boolean";
861
+ }, {
862
+ readonly type: "number";
863
+ }, {
864
+ readonly type: "string";
865
+ }, {
866
+ readonly type: "null";
867
+ }, {
868
+ readonly type: "array";
869
+ readonly items: {
870
+ readonly anyOf: readonly [{
871
+ readonly type: "boolean";
872
+ }, {
873
+ readonly type: "number";
874
+ }, {
875
+ readonly type: "string";
876
+ }, {
877
+ readonly type: "null";
878
+ }];
879
+ };
880
+ }];
881
+ };
882
+ };
883
+ readonly geometry: {
884
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
885
+ readonly $id: "http://comapeo.app/schemas/shared/geometry.json";
886
+ readonly title: "Geometry";
887
+ readonly type: "object";
888
+ readonly description: "A subset of the GeoJSON geometry object.";
889
+ readonly oneOf: readonly [{
890
+ readonly title: "Point";
891
+ readonly type: "object";
892
+ readonly required: readonly ["type", "coordinates"];
893
+ readonly properties: {
894
+ readonly type: {
895
+ readonly type: "string";
896
+ readonly enum: readonly ["Point"];
897
+ };
898
+ readonly coordinates: {
899
+ readonly title: "Position";
900
+ readonly type: "array";
901
+ readonly minItems: 2;
902
+ readonly maxItems: 2;
903
+ readonly items: readonly [{
904
+ readonly type: "number";
905
+ readonly description: "longitude";
906
+ readonly minimum: -180;
907
+ readonly maximum: 180;
908
+ }, {
909
+ readonly type: "number";
910
+ readonly description: "latitude";
911
+ readonly minimum: -90;
912
+ readonly maximum: 90;
913
+ }];
914
+ readonly description: "@minItems 2\n@maxItems 2";
915
+ };
916
+ };
917
+ readonly additionalProperties: false;
918
+ }, {
919
+ readonly title: "LineString";
920
+ readonly type: "object";
921
+ readonly required: readonly ["type", "coordinates"];
922
+ readonly properties: {
923
+ readonly type: {
924
+ readonly type: "string";
925
+ readonly enum: readonly ["LineString"];
926
+ };
927
+ readonly coordinates: {
928
+ readonly type: "array";
929
+ readonly items: readonly [{
930
+ readonly title: "Position";
931
+ readonly type: "array";
932
+ readonly minItems: 2;
933
+ readonly maxItems: 2;
934
+ readonly items: readonly [{
935
+ readonly type: "number";
936
+ readonly description: "longitude";
937
+ readonly minimum: -180;
938
+ readonly maximum: 180;
939
+ }, {
940
+ readonly type: "number";
941
+ readonly description: "latitude";
942
+ readonly minimum: -90;
943
+ readonly maximum: 90;
944
+ }];
945
+ readonly description: "@minItems 2\n@maxItems 2";
946
+ }, {
947
+ readonly title: "Position";
948
+ readonly type: "array";
949
+ readonly minItems: 2;
950
+ readonly maxItems: 2;
951
+ readonly items: readonly [{
952
+ readonly type: "number";
953
+ readonly description: "longitude";
954
+ readonly minimum: -180;
955
+ readonly maximum: 180;
956
+ }, {
957
+ readonly type: "number";
958
+ readonly description: "latitude";
959
+ readonly minimum: -90;
960
+ readonly maximum: 90;
961
+ }];
962
+ readonly description: "@minItems 2\n@maxItems 2";
963
+ }];
964
+ readonly minItems: 2;
965
+ readonly description: "@minItems 2";
966
+ readonly additionalItems: {
967
+ readonly title: "Position";
968
+ readonly type: "array";
969
+ readonly minItems: 2;
970
+ readonly maxItems: 2;
971
+ readonly items: readonly [{
972
+ readonly type: "number";
973
+ readonly description: "longitude";
974
+ readonly minimum: -180;
975
+ readonly maximum: 180;
976
+ }, {
977
+ readonly type: "number";
978
+ readonly description: "latitude";
979
+ readonly minimum: -90;
980
+ readonly maximum: 90;
981
+ }];
982
+ readonly description: "@minItems 2\n@maxItems 2";
983
+ };
984
+ };
985
+ };
986
+ readonly additionalProperties: false;
987
+ }, {
988
+ readonly title: "MultiLineString";
989
+ readonly type: "object";
990
+ readonly required: readonly ["type", "coordinates"];
991
+ readonly properties: {
992
+ readonly type: {
993
+ readonly type: "string";
994
+ readonly enum: readonly ["MultiLineString"];
995
+ };
996
+ readonly coordinates: {
997
+ readonly type: "array";
998
+ readonly items: readonly [{
999
+ readonly type: "array";
1000
+ readonly items: readonly [{
1001
+ readonly title: "Position";
1002
+ readonly type: "array";
1003
+ readonly minItems: 2;
1004
+ readonly maxItems: 2;
1005
+ readonly items: readonly [{
1006
+ readonly type: "number";
1007
+ readonly description: "longitude";
1008
+ readonly minimum: -180;
1009
+ readonly maximum: 180;
1010
+ }, {
1011
+ readonly type: "number";
1012
+ readonly description: "latitude";
1013
+ readonly minimum: -90;
1014
+ readonly maximum: 90;
1015
+ }];
1016
+ readonly description: "@minItems 2\n@maxItems 2";
1017
+ }, {
1018
+ readonly title: "Position";
1019
+ readonly type: "array";
1020
+ readonly minItems: 2;
1021
+ readonly maxItems: 2;
1022
+ readonly items: readonly [{
1023
+ readonly type: "number";
1024
+ readonly description: "longitude";
1025
+ readonly minimum: -180;
1026
+ readonly maximum: 180;
1027
+ }, {
1028
+ readonly type: "number";
1029
+ readonly description: "latitude";
1030
+ readonly minimum: -90;
1031
+ readonly maximum: 90;
1032
+ }];
1033
+ readonly description: "@minItems 2\n@maxItems 2";
1034
+ }];
1035
+ readonly minItems: 2;
1036
+ readonly description: "@minItems 2";
1037
+ readonly additionalItems: {
1038
+ readonly title: "Position";
1039
+ readonly type: "array";
1040
+ readonly minItems: 2;
1041
+ readonly maxItems: 2;
1042
+ readonly items: readonly [{
1043
+ readonly type: "number";
1044
+ readonly description: "longitude";
1045
+ readonly minimum: -180;
1046
+ readonly maximum: 180;
1047
+ }, {
1048
+ readonly type: "number";
1049
+ readonly description: "latitude";
1050
+ readonly minimum: -90;
1051
+ readonly maximum: 90;
1052
+ }];
1053
+ readonly description: "@minItems 2\n@maxItems 2";
1054
+ };
1055
+ }];
1056
+ readonly minItems: 1;
1057
+ readonly description: "@minItems 1";
1058
+ readonly additionalItems: {
1059
+ readonly type: "array";
1060
+ readonly items: readonly [{
1061
+ readonly title: "Position";
1062
+ readonly type: "array";
1063
+ readonly minItems: 2;
1064
+ readonly maxItems: 2;
1065
+ readonly items: readonly [{
1066
+ readonly type: "number";
1067
+ readonly description: "longitude";
1068
+ readonly minimum: -180;
1069
+ readonly maximum: 180;
1070
+ }, {
1071
+ readonly type: "number";
1072
+ readonly description: "latitude";
1073
+ readonly minimum: -90;
1074
+ readonly maximum: 90;
1075
+ }];
1076
+ readonly description: "@minItems 2\n@maxItems 2";
1077
+ }, {
1078
+ readonly title: "Position";
1079
+ readonly type: "array";
1080
+ readonly minItems: 2;
1081
+ readonly maxItems: 2;
1082
+ readonly items: readonly [{
1083
+ readonly type: "number";
1084
+ readonly description: "longitude";
1085
+ readonly minimum: -180;
1086
+ readonly maximum: 180;
1087
+ }, {
1088
+ readonly type: "number";
1089
+ readonly description: "latitude";
1090
+ readonly minimum: -90;
1091
+ readonly maximum: 90;
1092
+ }];
1093
+ readonly description: "@minItems 2\n@maxItems 2";
1094
+ }];
1095
+ readonly minItems: 2;
1096
+ readonly description: "@minItems 2";
1097
+ readonly additionalItems: {
1098
+ readonly title: "Position";
1099
+ readonly type: "array";
1100
+ readonly minItems: 2;
1101
+ readonly maxItems: 2;
1102
+ readonly items: readonly [{
1103
+ readonly type: "number";
1104
+ readonly description: "longitude";
1105
+ readonly minimum: -180;
1106
+ readonly maximum: 180;
1107
+ }, {
1108
+ readonly type: "number";
1109
+ readonly description: "latitude";
1110
+ readonly minimum: -90;
1111
+ readonly maximum: 90;
1112
+ }];
1113
+ readonly description: "@minItems 2\n@maxItems 2";
1114
+ };
1115
+ };
1116
+ };
1117
+ };
1118
+ readonly additionalProperties: false;
1119
+ }, {
1120
+ readonly title: "Polygon";
1121
+ readonly type: "object";
1122
+ readonly required: readonly ["type", "coordinates"];
1123
+ readonly properties: {
1124
+ readonly type: {
1125
+ readonly type: "string";
1126
+ readonly enum: readonly ["Polygon"];
1127
+ };
1128
+ readonly coordinates: {
1129
+ readonly type: "array";
1130
+ readonly items: readonly [{
1131
+ readonly title: "LinearRing";
1132
+ readonly type: "array";
1133
+ readonly minItems: 4;
1134
+ readonly items: readonly [{
1135
+ readonly title: "Position";
1136
+ readonly type: "array";
1137
+ readonly minItems: 2;
1138
+ readonly maxItems: 2;
1139
+ readonly items: readonly [{
1140
+ readonly type: "number";
1141
+ readonly description: "longitude";
1142
+ readonly minimum: -180;
1143
+ readonly maximum: 180;
1144
+ }, {
1145
+ readonly type: "number";
1146
+ readonly description: "latitude";
1147
+ readonly minimum: -90;
1148
+ readonly maximum: 90;
1149
+ }];
1150
+ readonly description: "@minItems 2\n@maxItems 2";
1151
+ }, {
1152
+ readonly title: "Position";
1153
+ readonly type: "array";
1154
+ readonly minItems: 2;
1155
+ readonly maxItems: 2;
1156
+ readonly items: readonly [{
1157
+ readonly type: "number";
1158
+ readonly description: "longitude";
1159
+ readonly minimum: -180;
1160
+ readonly maximum: 180;
1161
+ }, {
1162
+ readonly type: "number";
1163
+ readonly description: "latitude";
1164
+ readonly minimum: -90;
1165
+ readonly maximum: 90;
1166
+ }];
1167
+ readonly description: "@minItems 2\n@maxItems 2";
1168
+ }, {
1169
+ readonly title: "Position";
1170
+ readonly type: "array";
1171
+ readonly minItems: 2;
1172
+ readonly maxItems: 2;
1173
+ readonly items: readonly [{
1174
+ readonly type: "number";
1175
+ readonly description: "longitude";
1176
+ readonly minimum: -180;
1177
+ readonly maximum: 180;
1178
+ }, {
1179
+ readonly type: "number";
1180
+ readonly description: "latitude";
1181
+ readonly minimum: -90;
1182
+ readonly maximum: 90;
1183
+ }];
1184
+ readonly description: "@minItems 2\n@maxItems 2";
1185
+ }, {
1186
+ readonly title: "Position";
1187
+ readonly type: "array";
1188
+ readonly minItems: 2;
1189
+ readonly maxItems: 2;
1190
+ readonly items: readonly [{
1191
+ readonly type: "number";
1192
+ readonly description: "longitude";
1193
+ readonly minimum: -180;
1194
+ readonly maximum: 180;
1195
+ }, {
1196
+ readonly type: "number";
1197
+ readonly description: "latitude";
1198
+ readonly minimum: -90;
1199
+ readonly maximum: 90;
1200
+ }];
1201
+ readonly description: "@minItems 2\n@maxItems 2";
1202
+ }];
1203
+ readonly description: "@minItems 4";
1204
+ readonly additionalItems: {
1205
+ readonly title: "Position";
1206
+ readonly type: "array";
1207
+ readonly minItems: 2;
1208
+ readonly maxItems: 2;
1209
+ readonly items: readonly [{
1210
+ readonly type: "number";
1211
+ readonly description: "longitude";
1212
+ readonly minimum: -180;
1213
+ readonly maximum: 180;
1214
+ }, {
1215
+ readonly type: "number";
1216
+ readonly description: "latitude";
1217
+ readonly minimum: -90;
1218
+ readonly maximum: 90;
1219
+ }];
1220
+ readonly description: "@minItems 2\n@maxItems 2";
1221
+ };
1222
+ }];
1223
+ readonly minItems: 1;
1224
+ readonly description: "@minItems 1";
1225
+ readonly additionalItems: {
1226
+ readonly title: "LinearRing";
1227
+ readonly type: "array";
1228
+ readonly minItems: 4;
1229
+ readonly items: readonly [{
1230
+ readonly title: "Position";
1231
+ readonly type: "array";
1232
+ readonly minItems: 2;
1233
+ readonly maxItems: 2;
1234
+ readonly items: readonly [{
1235
+ readonly type: "number";
1236
+ readonly description: "longitude";
1237
+ readonly minimum: -180;
1238
+ readonly maximum: 180;
1239
+ }, {
1240
+ readonly type: "number";
1241
+ readonly description: "latitude";
1242
+ readonly minimum: -90;
1243
+ readonly maximum: 90;
1244
+ }];
1245
+ readonly description: "@minItems 2\n@maxItems 2";
1246
+ }, {
1247
+ readonly title: "Position";
1248
+ readonly type: "array";
1249
+ readonly minItems: 2;
1250
+ readonly maxItems: 2;
1251
+ readonly items: readonly [{
1252
+ readonly type: "number";
1253
+ readonly description: "longitude";
1254
+ readonly minimum: -180;
1255
+ readonly maximum: 180;
1256
+ }, {
1257
+ readonly type: "number";
1258
+ readonly description: "latitude";
1259
+ readonly minimum: -90;
1260
+ readonly maximum: 90;
1261
+ }];
1262
+ readonly description: "@minItems 2\n@maxItems 2";
1263
+ }, {
1264
+ readonly title: "Position";
1265
+ readonly type: "array";
1266
+ readonly minItems: 2;
1267
+ readonly maxItems: 2;
1268
+ readonly items: readonly [{
1269
+ readonly type: "number";
1270
+ readonly description: "longitude";
1271
+ readonly minimum: -180;
1272
+ readonly maximum: 180;
1273
+ }, {
1274
+ readonly type: "number";
1275
+ readonly description: "latitude";
1276
+ readonly minimum: -90;
1277
+ readonly maximum: 90;
1278
+ }];
1279
+ readonly description: "@minItems 2\n@maxItems 2";
1280
+ }, {
1281
+ readonly title: "Position";
1282
+ readonly type: "array";
1283
+ readonly minItems: 2;
1284
+ readonly maxItems: 2;
1285
+ readonly items: readonly [{
1286
+ readonly type: "number";
1287
+ readonly description: "longitude";
1288
+ readonly minimum: -180;
1289
+ readonly maximum: 180;
1290
+ }, {
1291
+ readonly type: "number";
1292
+ readonly description: "latitude";
1293
+ readonly minimum: -90;
1294
+ readonly maximum: 90;
1295
+ }];
1296
+ readonly description: "@minItems 2\n@maxItems 2";
1297
+ }];
1298
+ readonly description: "@minItems 4";
1299
+ readonly additionalItems: {
1300
+ readonly title: "Position";
1301
+ readonly type: "array";
1302
+ readonly minItems: 2;
1303
+ readonly maxItems: 2;
1304
+ readonly items: readonly [{
1305
+ readonly type: "number";
1306
+ readonly description: "longitude";
1307
+ readonly minimum: -180;
1308
+ readonly maximum: 180;
1309
+ }, {
1310
+ readonly type: "number";
1311
+ readonly description: "latitude";
1312
+ readonly minimum: -90;
1313
+ readonly maximum: 90;
1314
+ }];
1315
+ readonly description: "@minItems 2\n@maxItems 2";
1316
+ };
1317
+ };
1318
+ };
1319
+ };
1320
+ readonly additionalProperties: false;
1321
+ }, {
1322
+ readonly title: "MultiPoint";
1323
+ readonly type: "object";
1324
+ readonly required: readonly ["type", "coordinates"];
1325
+ readonly properties: {
1326
+ readonly type: {
1327
+ readonly type: "string";
1328
+ readonly enum: readonly ["MultiPoint"];
1329
+ };
1330
+ readonly coordinates: {
1331
+ readonly type: "array";
1332
+ readonly items: readonly [{
1333
+ readonly title: "Position";
1334
+ readonly type: "array";
1335
+ readonly minItems: 2;
1336
+ readonly maxItems: 2;
1337
+ readonly items: readonly [{
1338
+ readonly type: "number";
1339
+ readonly description: "longitude";
1340
+ readonly minimum: -180;
1341
+ readonly maximum: 180;
1342
+ }, {
1343
+ readonly type: "number";
1344
+ readonly description: "latitude";
1345
+ readonly minimum: -90;
1346
+ readonly maximum: 90;
1347
+ }];
1348
+ readonly description: "@minItems 2\n@maxItems 2";
1349
+ }];
1350
+ readonly minItems: 1;
1351
+ readonly description: "@minItems 1";
1352
+ readonly additionalItems: {
1353
+ readonly title: "Position";
1354
+ readonly type: "array";
1355
+ readonly minItems: 2;
1356
+ readonly maxItems: 2;
1357
+ readonly items: readonly [{
1358
+ readonly type: "number";
1359
+ readonly description: "longitude";
1360
+ readonly minimum: -180;
1361
+ readonly maximum: 180;
1362
+ }, {
1363
+ readonly type: "number";
1364
+ readonly description: "latitude";
1365
+ readonly minimum: -90;
1366
+ readonly maximum: 90;
1367
+ }];
1368
+ readonly description: "@minItems 2\n@maxItems 2";
1369
+ };
1370
+ };
1371
+ };
1372
+ readonly additionalProperties: false;
1373
+ }, {
1374
+ readonly title: "MultiPolygon";
1375
+ readonly type: "object";
1376
+ readonly required: readonly ["type", "coordinates"];
1377
+ readonly properties: {
1378
+ readonly type: {
1379
+ readonly type: "string";
1380
+ readonly enum: readonly ["MultiPolygon"];
1381
+ };
1382
+ readonly coordinates: {
1383
+ readonly type: "array";
1384
+ readonly items: readonly [{
1385
+ readonly type: "array";
1386
+ readonly items: readonly [{
1387
+ readonly title: "LinearRing";
1388
+ readonly type: "array";
1389
+ readonly minItems: 4;
1390
+ readonly items: readonly [{
1391
+ readonly title: "Position";
1392
+ readonly type: "array";
1393
+ readonly minItems: 2;
1394
+ readonly maxItems: 2;
1395
+ readonly items: readonly [{
1396
+ readonly type: "number";
1397
+ readonly description: "longitude";
1398
+ readonly minimum: -180;
1399
+ readonly maximum: 180;
1400
+ }, {
1401
+ readonly type: "number";
1402
+ readonly description: "latitude";
1403
+ readonly minimum: -90;
1404
+ readonly maximum: 90;
1405
+ }];
1406
+ readonly description: "@minItems 2\n@maxItems 2";
1407
+ }, {
1408
+ readonly title: "Position";
1409
+ readonly type: "array";
1410
+ readonly minItems: 2;
1411
+ readonly maxItems: 2;
1412
+ readonly items: readonly [{
1413
+ readonly type: "number";
1414
+ readonly description: "longitude";
1415
+ readonly minimum: -180;
1416
+ readonly maximum: 180;
1417
+ }, {
1418
+ readonly type: "number";
1419
+ readonly description: "latitude";
1420
+ readonly minimum: -90;
1421
+ readonly maximum: 90;
1422
+ }];
1423
+ readonly description: "@minItems 2\n@maxItems 2";
1424
+ }, {
1425
+ readonly title: "Position";
1426
+ readonly type: "array";
1427
+ readonly minItems: 2;
1428
+ readonly maxItems: 2;
1429
+ readonly items: readonly [{
1430
+ readonly type: "number";
1431
+ readonly description: "longitude";
1432
+ readonly minimum: -180;
1433
+ readonly maximum: 180;
1434
+ }, {
1435
+ readonly type: "number";
1436
+ readonly description: "latitude";
1437
+ readonly minimum: -90;
1438
+ readonly maximum: 90;
1439
+ }];
1440
+ readonly description: "@minItems 2\n@maxItems 2";
1441
+ }, {
1442
+ readonly title: "Position";
1443
+ readonly type: "array";
1444
+ readonly minItems: 2;
1445
+ readonly maxItems: 2;
1446
+ readonly items: readonly [{
1447
+ readonly type: "number";
1448
+ readonly description: "longitude";
1449
+ readonly minimum: -180;
1450
+ readonly maximum: 180;
1451
+ }, {
1452
+ readonly type: "number";
1453
+ readonly description: "latitude";
1454
+ readonly minimum: -90;
1455
+ readonly maximum: 90;
1456
+ }];
1457
+ readonly description: "@minItems 2\n@maxItems 2";
1458
+ }];
1459
+ readonly description: "@minItems 4";
1460
+ readonly additionalItems: {
1461
+ readonly title: "Position";
1462
+ readonly type: "array";
1463
+ readonly minItems: 2;
1464
+ readonly maxItems: 2;
1465
+ readonly items: readonly [{
1466
+ readonly type: "number";
1467
+ readonly description: "longitude";
1468
+ readonly minimum: -180;
1469
+ readonly maximum: 180;
1470
+ }, {
1471
+ readonly type: "number";
1472
+ readonly description: "latitude";
1473
+ readonly minimum: -90;
1474
+ readonly maximum: 90;
1475
+ }];
1476
+ readonly description: "@minItems 2\n@maxItems 2";
1477
+ };
1478
+ }];
1479
+ readonly minItems: 1;
1480
+ readonly description: "@minItems 1";
1481
+ readonly additionalItems: {
1482
+ readonly title: "LinearRing";
1483
+ readonly type: "array";
1484
+ readonly minItems: 4;
1485
+ readonly items: readonly [{
1486
+ readonly title: "Position";
1487
+ readonly type: "array";
1488
+ readonly minItems: 2;
1489
+ readonly maxItems: 2;
1490
+ readonly items: readonly [{
1491
+ readonly type: "number";
1492
+ readonly description: "longitude";
1493
+ readonly minimum: -180;
1494
+ readonly maximum: 180;
1495
+ }, {
1496
+ readonly type: "number";
1497
+ readonly description: "latitude";
1498
+ readonly minimum: -90;
1499
+ readonly maximum: 90;
1500
+ }];
1501
+ readonly description: "@minItems 2\n@maxItems 2";
1502
+ }, {
1503
+ readonly title: "Position";
1504
+ readonly type: "array";
1505
+ readonly minItems: 2;
1506
+ readonly maxItems: 2;
1507
+ readonly items: readonly [{
1508
+ readonly type: "number";
1509
+ readonly description: "longitude";
1510
+ readonly minimum: -180;
1511
+ readonly maximum: 180;
1512
+ }, {
1513
+ readonly type: "number";
1514
+ readonly description: "latitude";
1515
+ readonly minimum: -90;
1516
+ readonly maximum: 90;
1517
+ }];
1518
+ readonly description: "@minItems 2\n@maxItems 2";
1519
+ }, {
1520
+ readonly title: "Position";
1521
+ readonly type: "array";
1522
+ readonly minItems: 2;
1523
+ readonly maxItems: 2;
1524
+ readonly items: readonly [{
1525
+ readonly type: "number";
1526
+ readonly description: "longitude";
1527
+ readonly minimum: -180;
1528
+ readonly maximum: 180;
1529
+ }, {
1530
+ readonly type: "number";
1531
+ readonly description: "latitude";
1532
+ readonly minimum: -90;
1533
+ readonly maximum: 90;
1534
+ }];
1535
+ readonly description: "@minItems 2\n@maxItems 2";
1536
+ }, {
1537
+ readonly title: "Position";
1538
+ readonly type: "array";
1539
+ readonly minItems: 2;
1540
+ readonly maxItems: 2;
1541
+ readonly items: readonly [{
1542
+ readonly type: "number";
1543
+ readonly description: "longitude";
1544
+ readonly minimum: -180;
1545
+ readonly maximum: 180;
1546
+ }, {
1547
+ readonly type: "number";
1548
+ readonly description: "latitude";
1549
+ readonly minimum: -90;
1550
+ readonly maximum: 90;
1551
+ }];
1552
+ readonly description: "@minItems 2\n@maxItems 2";
1553
+ }];
1554
+ readonly description: "@minItems 4";
1555
+ readonly additionalItems: {
1556
+ readonly title: "Position";
1557
+ readonly type: "array";
1558
+ readonly minItems: 2;
1559
+ readonly maxItems: 2;
1560
+ readonly items: readonly [{
1561
+ readonly type: "number";
1562
+ readonly description: "longitude";
1563
+ readonly minimum: -180;
1564
+ readonly maximum: 180;
1565
+ }, {
1566
+ readonly type: "number";
1567
+ readonly description: "latitude";
1568
+ readonly minimum: -90;
1569
+ readonly maximum: 90;
1570
+ }];
1571
+ readonly description: "@minItems 2\n@maxItems 2";
1572
+ };
1573
+ };
1574
+ }];
1575
+ readonly minItems: 1;
1576
+ readonly description: "@minItems 1";
1577
+ readonly additionalItems: {
1578
+ readonly type: "array";
1579
+ readonly items: readonly [{
1580
+ readonly title: "LinearRing";
1581
+ readonly type: "array";
1582
+ readonly minItems: 4;
1583
+ readonly items: readonly [{
1584
+ readonly title: "Position";
1585
+ readonly type: "array";
1586
+ readonly minItems: 2;
1587
+ readonly maxItems: 2;
1588
+ readonly items: readonly [{
1589
+ readonly type: "number";
1590
+ readonly description: "longitude";
1591
+ readonly minimum: -180;
1592
+ readonly maximum: 180;
1593
+ }, {
1594
+ readonly type: "number";
1595
+ readonly description: "latitude";
1596
+ readonly minimum: -90;
1597
+ readonly maximum: 90;
1598
+ }];
1599
+ readonly description: "@minItems 2\n@maxItems 2";
1600
+ }, {
1601
+ readonly title: "Position";
1602
+ readonly type: "array";
1603
+ readonly minItems: 2;
1604
+ readonly maxItems: 2;
1605
+ readonly items: readonly [{
1606
+ readonly type: "number";
1607
+ readonly description: "longitude";
1608
+ readonly minimum: -180;
1609
+ readonly maximum: 180;
1610
+ }, {
1611
+ readonly type: "number";
1612
+ readonly description: "latitude";
1613
+ readonly minimum: -90;
1614
+ readonly maximum: 90;
1615
+ }];
1616
+ readonly description: "@minItems 2\n@maxItems 2";
1617
+ }, {
1618
+ readonly title: "Position";
1619
+ readonly type: "array";
1620
+ readonly minItems: 2;
1621
+ readonly maxItems: 2;
1622
+ readonly items: readonly [{
1623
+ readonly type: "number";
1624
+ readonly description: "longitude";
1625
+ readonly minimum: -180;
1626
+ readonly maximum: 180;
1627
+ }, {
1628
+ readonly type: "number";
1629
+ readonly description: "latitude";
1630
+ readonly minimum: -90;
1631
+ readonly maximum: 90;
1632
+ }];
1633
+ readonly description: "@minItems 2\n@maxItems 2";
1634
+ }, {
1635
+ readonly title: "Position";
1636
+ readonly type: "array";
1637
+ readonly minItems: 2;
1638
+ readonly maxItems: 2;
1639
+ readonly items: readonly [{
1640
+ readonly type: "number";
1641
+ readonly description: "longitude";
1642
+ readonly minimum: -180;
1643
+ readonly maximum: 180;
1644
+ }, {
1645
+ readonly type: "number";
1646
+ readonly description: "latitude";
1647
+ readonly minimum: -90;
1648
+ readonly maximum: 90;
1649
+ }];
1650
+ readonly description: "@minItems 2\n@maxItems 2";
1651
+ }];
1652
+ readonly description: "@minItems 4";
1653
+ readonly additionalItems: {
1654
+ readonly title: "Position";
1655
+ readonly type: "array";
1656
+ readonly minItems: 2;
1657
+ readonly maxItems: 2;
1658
+ readonly items: readonly [{
1659
+ readonly type: "number";
1660
+ readonly description: "longitude";
1661
+ readonly minimum: -180;
1662
+ readonly maximum: 180;
1663
+ }, {
1664
+ readonly type: "number";
1665
+ readonly description: "latitude";
1666
+ readonly minimum: -90;
1667
+ readonly maximum: 90;
1668
+ }];
1669
+ readonly description: "@minItems 2\n@maxItems 2";
1670
+ };
1671
+ }];
1672
+ readonly minItems: 1;
1673
+ readonly description: "@minItems 1";
1674
+ readonly additionalItems: {
1675
+ readonly title: "LinearRing";
1676
+ readonly type: "array";
1677
+ readonly minItems: 4;
1678
+ readonly items: readonly [{
1679
+ readonly title: "Position";
1680
+ readonly type: "array";
1681
+ readonly minItems: 2;
1682
+ readonly maxItems: 2;
1683
+ readonly items: readonly [{
1684
+ readonly type: "number";
1685
+ readonly description: "longitude";
1686
+ readonly minimum: -180;
1687
+ readonly maximum: 180;
1688
+ }, {
1689
+ readonly type: "number";
1690
+ readonly description: "latitude";
1691
+ readonly minimum: -90;
1692
+ readonly maximum: 90;
1693
+ }];
1694
+ readonly description: "@minItems 2\n@maxItems 2";
1695
+ }, {
1696
+ readonly title: "Position";
1697
+ readonly type: "array";
1698
+ readonly minItems: 2;
1699
+ readonly maxItems: 2;
1700
+ readonly items: readonly [{
1701
+ readonly type: "number";
1702
+ readonly description: "longitude";
1703
+ readonly minimum: -180;
1704
+ readonly maximum: 180;
1705
+ }, {
1706
+ readonly type: "number";
1707
+ readonly description: "latitude";
1708
+ readonly minimum: -90;
1709
+ readonly maximum: 90;
1710
+ }];
1711
+ readonly description: "@minItems 2\n@maxItems 2";
1712
+ }, {
1713
+ readonly title: "Position";
1714
+ readonly type: "array";
1715
+ readonly minItems: 2;
1716
+ readonly maxItems: 2;
1717
+ readonly items: readonly [{
1718
+ readonly type: "number";
1719
+ readonly description: "longitude";
1720
+ readonly minimum: -180;
1721
+ readonly maximum: 180;
1722
+ }, {
1723
+ readonly type: "number";
1724
+ readonly description: "latitude";
1725
+ readonly minimum: -90;
1726
+ readonly maximum: 90;
1727
+ }];
1728
+ readonly description: "@minItems 2\n@maxItems 2";
1729
+ }, {
1730
+ readonly title: "Position";
1731
+ readonly type: "array";
1732
+ readonly minItems: 2;
1733
+ readonly maxItems: 2;
1734
+ readonly items: readonly [{
1735
+ readonly type: "number";
1736
+ readonly description: "longitude";
1737
+ readonly minimum: -180;
1738
+ readonly maximum: 180;
1739
+ }, {
1740
+ readonly type: "number";
1741
+ readonly description: "latitude";
1742
+ readonly minimum: -90;
1743
+ readonly maximum: 90;
1744
+ }];
1745
+ readonly description: "@minItems 2\n@maxItems 2";
1746
+ }];
1747
+ readonly description: "@minItems 4";
1748
+ readonly additionalItems: {
1749
+ readonly title: "Position";
1750
+ readonly type: "array";
1751
+ readonly minItems: 2;
1752
+ readonly maxItems: 2;
1753
+ readonly items: readonly [{
1754
+ readonly type: "number";
1755
+ readonly description: "longitude";
1756
+ readonly minimum: -180;
1757
+ readonly maximum: 180;
1758
+ }, {
1759
+ readonly type: "number";
1760
+ readonly description: "latitude";
1761
+ readonly minimum: -90;
1762
+ readonly maximum: 90;
1763
+ }];
1764
+ readonly description: "@minItems 2\n@maxItems 2";
1765
+ };
1766
+ };
1767
+ };
1768
+ };
1769
+ };
1770
+ readonly additionalProperties: false;
1771
+ }];
1772
+ readonly required: readonly [];
1773
+ readonly additionalProperties: false;
1774
+ readonly $defs: {
1775
+ readonly position: {
1776
+ readonly title: "Position";
1777
+ readonly type: "array";
1778
+ readonly minItems: 2;
1779
+ readonly maxItems: 2;
1780
+ readonly items: readonly [{
1781
+ readonly type: "number";
1782
+ readonly description: "longitude";
1783
+ readonly minimum: -180;
1784
+ readonly maximum: 180;
1785
+ }, {
1786
+ readonly type: "number";
1787
+ readonly description: "latitude";
1788
+ readonly minimum: -90;
1789
+ readonly maximum: 90;
1790
+ }];
1791
+ readonly description: "@minItems 2\n@maxItems 2";
1792
+ };
1793
+ readonly linearRing: {
1794
+ readonly title: "LinearRing";
1795
+ readonly type: "array";
1796
+ readonly minItems: 4;
1797
+ readonly items: readonly [{
1798
+ readonly title: "Position";
1799
+ readonly type: "array";
1800
+ readonly minItems: 2;
1801
+ readonly maxItems: 2;
1802
+ readonly items: readonly [{
1803
+ readonly type: "number";
1804
+ readonly description: "longitude";
1805
+ readonly minimum: -180;
1806
+ readonly maximum: 180;
1807
+ }, {
1808
+ readonly type: "number";
1809
+ readonly description: "latitude";
1810
+ readonly minimum: -90;
1811
+ readonly maximum: 90;
1812
+ }];
1813
+ readonly description: "@minItems 2\n@maxItems 2";
1814
+ }, {
1815
+ readonly title: "Position";
1816
+ readonly type: "array";
1817
+ readonly minItems: 2;
1818
+ readonly maxItems: 2;
1819
+ readonly items: readonly [{
1820
+ readonly type: "number";
1821
+ readonly description: "longitude";
1822
+ readonly minimum: -180;
1823
+ readonly maximum: 180;
1824
+ }, {
1825
+ readonly type: "number";
1826
+ readonly description: "latitude";
1827
+ readonly minimum: -90;
1828
+ readonly maximum: 90;
1829
+ }];
1830
+ readonly description: "@minItems 2\n@maxItems 2";
1831
+ }, {
1832
+ readonly title: "Position";
1833
+ readonly type: "array";
1834
+ readonly minItems: 2;
1835
+ readonly maxItems: 2;
1836
+ readonly items: readonly [{
1837
+ readonly type: "number";
1838
+ readonly description: "longitude";
1839
+ readonly minimum: -180;
1840
+ readonly maximum: 180;
1841
+ }, {
1842
+ readonly type: "number";
1843
+ readonly description: "latitude";
1844
+ readonly minimum: -90;
1845
+ readonly maximum: 90;
1846
+ }];
1847
+ readonly description: "@minItems 2\n@maxItems 2";
1848
+ }, {
1849
+ readonly title: "Position";
1850
+ readonly type: "array";
1851
+ readonly minItems: 2;
1852
+ readonly maxItems: 2;
1853
+ readonly items: readonly [{
1854
+ readonly type: "number";
1855
+ readonly description: "longitude";
1856
+ readonly minimum: -180;
1857
+ readonly maximum: 180;
1858
+ }, {
1859
+ readonly type: "number";
1860
+ readonly description: "latitude";
1861
+ readonly minimum: -90;
1862
+ readonly maximum: 90;
1863
+ }];
1864
+ readonly description: "@minItems 2\n@maxItems 2";
1865
+ }];
1866
+ readonly description: "@minItems 4";
1867
+ readonly additionalItems: {
1868
+ readonly title: "Position";
1869
+ readonly type: "array";
1870
+ readonly minItems: 2;
1871
+ readonly maxItems: 2;
1872
+ readonly items: readonly [{
1873
+ readonly type: "number";
1874
+ readonly description: "longitude";
1875
+ readonly minimum: -180;
1876
+ readonly maximum: 180;
1877
+ }, {
1878
+ readonly type: "number";
1879
+ readonly description: "latitude";
1880
+ readonly minimum: -90;
1881
+ readonly maximum: 90;
1882
+ }];
1883
+ readonly description: "@minItems 2\n@maxItems 2";
1884
+ };
1885
+ };
1886
+ };
1887
+ };
1368
1888
  };
1369
- dialect: "sqlite";
1370
- }>;
1371
- export const roleTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1372
- name: "role";
1373
- schema: undefined;
1374
- columns: {
1375
- readonly docId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1376
- name: "docId";
1377
- tableName: "role";
1378
- dataType: "string";
1379
- columnType: "SQLiteText";
1380
- data: string;
1381
- driverParam: string;
1382
- notNull: true;
1383
- hasDefault: false;
1384
- enumValues: [string, ...string[]];
1385
- baseColumn: never;
1386
- }, object>;
1387
- readonly versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1388
- name: "versionId";
1389
- tableName: "role";
1390
- dataType: "string";
1391
- columnType: "SQLiteText";
1392
- data: string;
1393
- driverParam: string;
1394
- notNull: true;
1395
- hasDefault: false;
1396
- enumValues: [string, ...string[]];
1397
- baseColumn: never;
1398
- }, object>;
1399
- readonly originalVersionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1400
- name: "originalVersionId";
1401
- tableName: "role";
1402
- dataType: "string";
1403
- columnType: "SQLiteText";
1404
- data: string;
1405
- driverParam: string;
1406
- notNull: true;
1407
- hasDefault: false;
1408
- enumValues: [string, ...string[]];
1409
- baseColumn: never;
1410
- }, object>;
1411
- readonly schemaName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1412
- name: "schemaName";
1413
- tableName: "role";
1414
- dataType: "string";
1415
- columnType: "SQLiteText";
1416
- data: "role";
1417
- driverParam: string;
1418
- notNull: true;
1419
- hasDefault: false;
1420
- enumValues: ["role"];
1421
- baseColumn: never;
1422
- }, object>;
1423
- readonly createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1424
- name: "createdAt";
1425
- tableName: "role";
1426
- dataType: "string";
1427
- columnType: "SQLiteText";
1428
- data: string;
1429
- driverParam: string;
1430
- notNull: true;
1431
- hasDefault: false;
1432
- enumValues: [string, ...string[]];
1433
- baseColumn: never;
1434
- }, object>;
1435
- readonly updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1436
- name: "updatedAt";
1437
- tableName: "role";
1438
- dataType: "string";
1439
- columnType: "SQLiteText";
1440
- data: string;
1441
- driverParam: string;
1442
- notNull: true;
1443
- hasDefault: false;
1444
- enumValues: [string, ...string[]];
1445
- baseColumn: never;
1446
- }, object>;
1447
- readonly links: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1448
- name: "links";
1449
- tableName: "role";
1450
- dataType: "custom";
1451
- columnType: "SQLiteCustomColumn";
1452
- data: string[];
1453
- driverParam: string;
1454
- notNull: true;
1455
- hasDefault: false;
1456
- enumValues: undefined;
1457
- baseColumn: never;
1458
- }, object>;
1459
- readonly deleted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1460
- name: "deleted";
1461
- tableName: "role";
1462
- dataType: "boolean";
1463
- columnType: "SQLiteBoolean";
1464
- data: boolean;
1465
- driverParam: number;
1466
- notNull: true;
1467
- hasDefault: false;
1468
- enumValues: undefined;
1469
- baseColumn: never;
1470
- }, object>;
1471
- readonly roleId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1472
- name: "roleId";
1473
- tableName: "role";
1474
- dataType: "string";
1475
- columnType: "SQLiteText";
1476
- data: string;
1477
- driverParam: string;
1478
- notNull: true;
1479
- hasDefault: false;
1480
- enumValues: [string, ...string[]];
1481
- baseColumn: never;
1482
- }, object>;
1483
- readonly fromIndex: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1484
- name: "fromIndex";
1485
- tableName: "role";
1486
- dataType: "number";
1487
- columnType: "SQLiteInteger";
1488
- data: number;
1489
- driverParam: number;
1490
- notNull: true;
1491
- hasDefault: false;
1492
- enumValues: undefined;
1493
- baseColumn: never;
1494
- }, object>;
1495
- forks: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1496
- name: "forks";
1497
- tableName: "role";
1498
- dataType: "custom";
1499
- columnType: "SQLiteCustomColumn";
1500
- data: string[];
1501
- driverParam: string;
1502
- notNull: true;
1503
- hasDefault: false;
1504
- enumValues: undefined;
1505
- baseColumn: never;
1506
- }, object>;
1889
+ readonly required: readonly ["schemaName", "detectionDateStart", "detectionDateEnd", "sourceId", "metadata", "geometry", "docId", "createdAt", "updatedAt", "links", "versionId", "originalVersionId", "deleted"];
1890
+ readonly additionalProperties: false;
1891
+ }, "remoteDetectionAlert", import("./comapeo-to-drizzle.js").AdditionalColumns, "docId">;
1892
+ export const presetTable: import("./types.js").JsonSchemaToDrizzleSqliteTable<{
1893
+ schemaName: "preset";
1894
+ name: string;
1895
+ geometry: ("point" | "vertex" | "line" | "area" | "relation")[];
1896
+ tags: import("@comapeo/schema/dist/schema/preset.js").Tags;
1897
+ addTags: import("@comapeo/schema/dist/schema/preset.js").Tags1;
1898
+ removeTags: import("@comapeo/schema/dist/schema/preset.js").Tags2;
1899
+ fieldRefs: {
1900
+ docId: string;
1901
+ versionId: string;
1902
+ }[];
1903
+ iconRef?: {
1904
+ docId: string;
1905
+ versionId: string;
1906
+ } | undefined;
1907
+ terms: string[];
1908
+ color?: string | undefined;
1909
+ docId: string;
1910
+ versionId: string;
1911
+ originalVersionId: string;
1912
+ createdAt: string;
1913
+ updatedAt: string;
1914
+ links: string[];
1915
+ deleted: boolean;
1916
+ }, {
1917
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
1918
+ readonly $id: "http://mapeo.world/schemas/preset/v1.json";
1919
+ readonly title: "Preset";
1920
+ readonly description: "Presets define how map entities are displayed to the user. They define the icon used on the map, and the fields / questions shown to the user when they create or edit the entity on the map. The `tags` property of a preset is used to match the preset with observations, nodes, ways and relations. If multiple presets match, the one that matches the most tags is used.";
1921
+ readonly type: "object";
1922
+ readonly properties: {
1923
+ readonly docId: {
1924
+ readonly description: "Hex-encoded 32-byte buffer";
1925
+ readonly type: "string";
1926
+ readonly minLength: 1;
1927
+ };
1928
+ readonly versionId: {
1929
+ readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
1930
+ readonly type: "string";
1931
+ readonly minLength: 1;
1932
+ };
1933
+ readonly originalVersionId: {
1934
+ readonly description: "Version ID of the original version of this document. For the original version, matches `versionId`.";
1935
+ readonly type: "string";
1936
+ readonly minLength: 1;
1937
+ };
1938
+ readonly schemaName: {
1939
+ readonly description: "Must be `preset`";
1940
+ readonly type: "string";
1941
+ readonly const: "preset";
1942
+ };
1943
+ readonly createdAt: {
1944
+ readonly description: "RFC3339-formatted datetime of when the first version of the element was created";
1945
+ readonly type: "string";
1946
+ readonly format: "date-time";
1947
+ };
1948
+ readonly updatedAt: {
1949
+ readonly description: "RFC3339-formatted datetime of when this version of the element was created";
1950
+ readonly type: "string";
1951
+ readonly format: "date-time";
1952
+ };
1953
+ readonly links: {
1954
+ readonly description: "Version ids of the previous document versions this one is replacing. Each link is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
1955
+ readonly type: "array";
1956
+ readonly uniqueItems: true;
1957
+ readonly items: {
1958
+ readonly type: "string";
1959
+ };
1960
+ };
1961
+ readonly deleted: {
1962
+ readonly description: "Indicates whether the document has been deleted";
1963
+ readonly type: "boolean";
1964
+ };
1965
+ readonly name: {
1966
+ readonly description: "Name for the feature in default language.";
1967
+ readonly type: "string";
1968
+ };
1969
+ readonly geometry: {
1970
+ readonly description: "Valid geometry types for the feature - this preset will only match features of this geometry type `\"point\", \"vertex\", \"line\", \"area\", \"relation\"`";
1971
+ readonly type: "array";
1972
+ readonly uniqueItems: true;
1973
+ readonly items: {
1974
+ readonly type: "string";
1975
+ readonly enum: readonly ["point", "vertex", "line", "area", "relation"];
1976
+ };
1977
+ };
1978
+ readonly tags: {
1979
+ readonly type: "object";
1980
+ readonly properties: {};
1981
+ readonly additionalProperties: {
1982
+ readonly anyOf: readonly [{
1983
+ readonly type: "boolean";
1984
+ }, {
1985
+ readonly type: "number";
1986
+ }, {
1987
+ readonly type: "string";
1988
+ }, {
1989
+ readonly type: "null";
1990
+ }, {
1991
+ readonly type: "array";
1992
+ readonly items: {
1993
+ readonly anyOf: readonly [{
1994
+ readonly type: "boolean";
1995
+ }, {
1996
+ readonly type: "number";
1997
+ }, {
1998
+ readonly type: "string";
1999
+ }, {
2000
+ readonly type: "null";
2001
+ }];
2002
+ };
2003
+ }];
2004
+ };
2005
+ readonly description: "The tags are used to match the preset to existing map entities. You can match based on multiple tags E.g. if you have existing points with the tags `nature:tree` and `species:oak` then you can add both these tags here in order to match only oak trees.";
2006
+ };
2007
+ readonly addTags: {
2008
+ readonly type: "object";
2009
+ readonly properties: {};
2010
+ readonly additionalProperties: {
2011
+ readonly anyOf: readonly [{
2012
+ readonly type: "boolean";
2013
+ }, {
2014
+ readonly type: "number";
2015
+ }, {
2016
+ readonly type: "string";
2017
+ }, {
2018
+ readonly type: "null";
2019
+ }, {
2020
+ readonly type: "array";
2021
+ readonly items: {
2022
+ readonly anyOf: readonly [{
2023
+ readonly type: "boolean";
2024
+ }, {
2025
+ readonly type: "number";
2026
+ }, {
2027
+ readonly type: "string";
2028
+ }, {
2029
+ readonly type: "null";
2030
+ }];
2031
+ };
2032
+ }];
2033
+ };
2034
+ readonly description: "Tags that are added when changing to the preset (default is the same value as 'tags')";
2035
+ };
2036
+ readonly removeTags: {
2037
+ readonly type: "object";
2038
+ readonly properties: {};
2039
+ readonly additionalProperties: {
2040
+ readonly anyOf: readonly [{
2041
+ readonly type: "boolean";
2042
+ }, {
2043
+ readonly type: "number";
2044
+ }, {
2045
+ readonly type: "string";
2046
+ }, {
2047
+ readonly type: "null";
2048
+ }, {
2049
+ readonly type: "array";
2050
+ readonly items: {
2051
+ readonly anyOf: readonly [{
2052
+ readonly type: "boolean";
2053
+ }, {
2054
+ readonly type: "number";
2055
+ }, {
2056
+ readonly type: "string";
2057
+ }, {
2058
+ readonly type: "null";
2059
+ }];
2060
+ };
2061
+ }];
2062
+ };
2063
+ readonly description: "Tags that are removed when changing to another preset (default is the same value as 'addTags' which in turn defaults to 'tags')";
2064
+ };
2065
+ readonly fieldRefs: {
2066
+ readonly type: "array";
2067
+ readonly description: "References to any fields that this preset is related to.";
2068
+ readonly items: {
2069
+ readonly type: "object";
2070
+ readonly properties: {
2071
+ readonly docId: {
2072
+ readonly description: "hex-encoded id of the element that this observation references";
2073
+ readonly type: "string";
2074
+ readonly minLength: 1;
2075
+ };
2076
+ readonly versionId: {
2077
+ readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
2078
+ readonly type: "string";
2079
+ readonly minLength: 1;
2080
+ };
2081
+ };
2082
+ readonly required: readonly ["docId", "versionId"];
2083
+ };
2084
+ };
2085
+ readonly iconRef: {
2086
+ readonly type: "object";
2087
+ readonly description: "References to the icon that this preset is related to.";
2088
+ readonly properties: {
2089
+ readonly docId: {
2090
+ readonly description: "hex-encoded id of the element that this observation references";
2091
+ readonly type: "string";
2092
+ readonly minLength: 1;
2093
+ };
2094
+ readonly versionId: {
2095
+ readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
2096
+ readonly type: "string";
2097
+ readonly minLength: 1;
2098
+ };
2099
+ };
2100
+ readonly required: readonly ["docId", "versionId"];
2101
+ };
2102
+ readonly terms: {
2103
+ readonly description: "Synonyms or related terms (used for search)";
2104
+ readonly type: "array";
2105
+ readonly items: {
2106
+ readonly type: "string";
2107
+ };
2108
+ };
2109
+ readonly color: {
2110
+ readonly description: "string representation of a color in 24 bit (#rrggbb)";
2111
+ readonly type: "string";
2112
+ readonly pattern: "^#[a-fA-F0-9]{6}$";
2113
+ };
1507
2114
  };
1508
- dialect: "sqlite";
1509
- }>;
1510
- export const deviceInfoTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1511
- name: "deviceInfo";
1512
- schema: undefined;
1513
- columns: {
1514
- readonly docId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1515
- name: "docId";
1516
- tableName: "deviceInfo";
1517
- dataType: "string";
1518
- columnType: "SQLiteText";
1519
- data: string;
1520
- driverParam: string;
1521
- notNull: true;
1522
- hasDefault: false;
1523
- enumValues: [string, ...string[]];
1524
- baseColumn: never;
1525
- }, object>;
1526
- readonly versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1527
- name: "versionId";
1528
- tableName: "deviceInfo";
1529
- dataType: "string";
1530
- columnType: "SQLiteText";
1531
- data: string;
1532
- driverParam: string;
1533
- notNull: true;
1534
- hasDefault: false;
1535
- enumValues: [string, ...string[]];
1536
- baseColumn: never;
1537
- }, object>;
1538
- readonly originalVersionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1539
- name: "originalVersionId";
1540
- tableName: "deviceInfo";
1541
- dataType: "string";
1542
- columnType: "SQLiteText";
1543
- data: string;
1544
- driverParam: string;
1545
- notNull: true;
1546
- hasDefault: false;
1547
- enumValues: [string, ...string[]];
1548
- baseColumn: never;
1549
- }, object>;
1550
- readonly schemaName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1551
- name: "schemaName";
1552
- tableName: "deviceInfo";
1553
- dataType: "string";
1554
- columnType: "SQLiteText";
1555
- data: "deviceInfo";
1556
- driverParam: string;
1557
- notNull: true;
1558
- hasDefault: false;
1559
- enumValues: ["deviceInfo"];
1560
- baseColumn: never;
1561
- }, object>;
1562
- readonly createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1563
- name: "createdAt";
1564
- tableName: "deviceInfo";
1565
- dataType: "string";
1566
- columnType: "SQLiteText";
1567
- data: string;
1568
- driverParam: string;
1569
- notNull: true;
1570
- hasDefault: false;
1571
- enumValues: [string, ...string[]];
1572
- baseColumn: never;
1573
- }, object>;
1574
- readonly updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1575
- name: "updatedAt";
1576
- tableName: "deviceInfo";
1577
- dataType: "string";
1578
- columnType: "SQLiteText";
1579
- data: string;
1580
- driverParam: string;
1581
- notNull: true;
1582
- hasDefault: false;
1583
- enumValues: [string, ...string[]];
1584
- baseColumn: never;
1585
- }, object>;
1586
- readonly links: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1587
- name: "links";
1588
- tableName: "deviceInfo";
1589
- dataType: "custom";
1590
- columnType: "SQLiteCustomColumn";
1591
- data: string[];
1592
- driverParam: string;
1593
- notNull: true;
1594
- hasDefault: false;
1595
- enumValues: undefined;
1596
- baseColumn: never;
1597
- }, object>;
1598
- readonly deleted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1599
- name: "deleted";
1600
- tableName: "deviceInfo";
1601
- dataType: "boolean";
1602
- columnType: "SQLiteBoolean";
1603
- data: boolean;
1604
- driverParam: number;
1605
- notNull: true;
1606
- hasDefault: false;
1607
- enumValues: undefined;
1608
- baseColumn: never;
1609
- }, object>;
1610
- readonly name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1611
- name: "name";
1612
- tableName: "deviceInfo";
1613
- dataType: "string";
1614
- columnType: "SQLiteText";
1615
- data: string;
1616
- driverParam: string;
1617
- notNull: true;
1618
- hasDefault: false;
1619
- enumValues: [string, ...string[]];
1620
- baseColumn: never;
1621
- }, object>;
1622
- readonly deviceType: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1623
- name: "deviceType";
1624
- tableName: "deviceInfo";
1625
- dataType: "string";
1626
- columnType: "SQLiteText";
1627
- data: "UNRECOGNIZED" | "device_type_unspecified" | "mobile" | "tablet" | "desktop" | "selfHostedServer";
1628
- driverParam: string;
1629
- notNull: true;
1630
- hasDefault: false;
1631
- enumValues: ["device_type_unspecified", "mobile", "tablet", "desktop", "selfHostedServer", "UNRECOGNIZED"];
1632
- baseColumn: never;
1633
- }, object>;
1634
- readonly selfHostedServerDetails: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1635
- name: "selfHostedServerDetails";
1636
- tableName: "deviceInfo";
1637
- dataType: "custom";
1638
- columnType: "SQLiteCustomColumn";
1639
- data: {
1640
- baseUrl: string;
1641
- } | undefined;
1642
- driverParam: string;
1643
- notNull: false;
1644
- hasDefault: false;
1645
- enumValues: undefined;
1646
- baseColumn: never;
1647
- }, object>;
1648
- forks: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1649
- name: "forks";
1650
- tableName: "deviceInfo";
1651
- dataType: "custom";
1652
- columnType: "SQLiteCustomColumn";
1653
- data: string[];
1654
- driverParam: string;
1655
- notNull: true;
1656
- hasDefault: false;
1657
- enumValues: undefined;
1658
- baseColumn: never;
1659
- }, object>;
2115
+ readonly required: readonly ["name", "geometry", "tags", "addTags", "removeTags", "fieldRefs", "schemaName", "terms", "docId", "createdAt", "updatedAt", "links", "versionId", "originalVersionId", "deleted"];
2116
+ readonly additionalProperties: false;
2117
+ }, "preset", import("./comapeo-to-drizzle.js").AdditionalColumns, "docId">;
2118
+ export const fieldTable: import("./types.js").JsonSchemaToDrizzleSqliteTable<{
2119
+ schemaName: "field";
2120
+ tagKey: string;
2121
+ type: "type_unspecified" | "text" | "number" | "selectOne" | "selectMultiple" | "UNRECOGNIZED";
2122
+ label: string;
2123
+ appearance?: ("appearance_unspecified" | "singleline" | "multiline" | "UNRECOGNIZED") | undefined;
2124
+ snakeCase?: boolean | undefined;
2125
+ options?: {
2126
+ label: string;
2127
+ value: string | boolean | number | null;
2128
+ }[] | undefined;
2129
+ universal?: boolean | undefined;
2130
+ placeholder?: string | undefined;
2131
+ helperText?: string | undefined;
2132
+ docId: string;
2133
+ versionId: string;
2134
+ originalVersionId: string;
2135
+ createdAt: string;
2136
+ updatedAt: string;
2137
+ links: string[];
2138
+ deleted: boolean;
2139
+ }, {
2140
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
2141
+ readonly $id: "http://mapeo.world/schemas/field/v1.json";
2142
+ readonly title: "Field";
2143
+ readonly description: "A field defines a form field that will be shown to the user when creating or editing a map entity. Presets define which fields are shown to the user for a particular map entity. The field definition defines whether the field should show as a text box, multiple choice, single-select, etc. It defines what tag-value is set when the field is entered.";
2144
+ readonly type: "object";
2145
+ readonly properties: {
2146
+ readonly docId: {
2147
+ readonly description: "Hex-encoded 32-byte buffer";
2148
+ readonly type: "string";
2149
+ readonly minLength: 1;
2150
+ };
2151
+ readonly versionId: {
2152
+ readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
2153
+ readonly type: "string";
2154
+ readonly minLength: 1;
2155
+ };
2156
+ readonly originalVersionId: {
2157
+ readonly description: "Version ID of the original version of this document. For the original version, matches `versionId`.";
2158
+ readonly type: "string";
2159
+ readonly minLength: 1;
2160
+ };
2161
+ readonly schemaName: {
2162
+ readonly description: "Must be `field`";
2163
+ readonly type: "string";
2164
+ readonly const: "field";
2165
+ };
2166
+ readonly createdAt: {
2167
+ readonly description: "RFC3339-formatted datetime of when the first version of the element was created";
2168
+ readonly type: "string";
2169
+ readonly format: "date-time";
2170
+ };
2171
+ readonly updatedAt: {
2172
+ readonly description: "RFC3339-formatted datetime of when this version of the element was created";
2173
+ readonly type: "string";
2174
+ readonly format: "date-time";
2175
+ };
2176
+ readonly links: {
2177
+ readonly description: "Version ids of the previous document versions this one is replacing. Each link is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
2178
+ readonly type: "array";
2179
+ readonly uniqueItems: true;
2180
+ readonly items: {
2181
+ readonly type: "string";
2182
+ };
2183
+ };
2184
+ readonly deleted: {
2185
+ readonly description: "Indicates whether the document has been deleted";
2186
+ readonly type: "boolean";
2187
+ };
2188
+ readonly tagKey: {
2189
+ readonly description: "They key in a tags object that this field applies to";
2190
+ readonly type: "string";
2191
+ readonly minLength: 1;
2192
+ };
2193
+ readonly type: {
2194
+ readonly description: "Type of field - defines how the field is displayed to the user.";
2195
+ readonly type: "string";
2196
+ readonly "meta:enum": {
2197
+ readonly type_unspecified: "for backwards compatibility, unspecified type of appearance";
2198
+ readonly text: "Freeform text field";
2199
+ readonly number: "Allows only numbers";
2200
+ readonly selectOne: "Select one item from a list of pre-defined options";
2201
+ readonly selectMultiple: "Select any number of items from a list of pre-defined options";
2202
+ };
2203
+ readonly enum: readonly ["type_unspecified", "text", "number", "selectOne", "selectMultiple", "UNRECOGNIZED"];
2204
+ };
2205
+ readonly label: {
2206
+ readonly description: "Default language label for the form field label";
2207
+ readonly type: "string";
2208
+ readonly minLength: 1;
2209
+ };
2210
+ readonly appearance: {
2211
+ readonly description: "For text fields, display as a single-line or multi-line field";
2212
+ readonly type: "string";
2213
+ readonly "meta:enum": {
2214
+ readonly appearance_unspecified: "for backwards compatibility, unspecified type of appearance";
2215
+ readonly singleline: "Text will be cut-off if more than one line";
2216
+ readonly multiline: "Text will wrap to multiple lines within text field";
2217
+ };
2218
+ readonly enum: readonly ["appearance_unspecified", "singleline", "multiline", "UNRECOGNIZED"];
2219
+ readonly default: "multiline";
2220
+ };
2221
+ readonly snakeCase: {
2222
+ readonly description: "Convert field value into snake_case (replace spaces with underscores and convert to lowercase)";
2223
+ readonly type: "boolean";
2224
+ readonly default: false;
2225
+ };
2226
+ readonly options: {
2227
+ readonly description: "List of options the user can select for single- or multi-select fields";
2228
+ readonly type: "array";
2229
+ readonly items: {
2230
+ readonly type: "object";
2231
+ readonly properties: {
2232
+ readonly label: {
2233
+ readonly type: "string";
2234
+ readonly minLength: 1;
2235
+ };
2236
+ readonly value: {
2237
+ readonly anyOf: readonly [{
2238
+ readonly type: "string";
2239
+ }, {
2240
+ readonly type: "boolean";
2241
+ }, {
2242
+ readonly type: "number";
2243
+ }, {
2244
+ readonly type: "null";
2245
+ }];
2246
+ };
2247
+ };
2248
+ readonly required: readonly ["label", "value"];
2249
+ };
2250
+ };
2251
+ readonly universal: {
2252
+ readonly description: "If true, this field will appear in the Add Field list for all presets";
2253
+ readonly type: "boolean";
2254
+ readonly default: false;
2255
+ };
2256
+ readonly placeholder: {
2257
+ readonly description: "Displayed as a placeholder in an empty text or number field before the user begins typing. Use 'helperText' for important information, because the placeholder is not visible after the user has entered data.";
2258
+ readonly type: "string";
2259
+ };
2260
+ readonly helperText: {
2261
+ readonly description: "Additional context about the field, e.g. hints about how to answer the question.";
2262
+ readonly type: "string";
2263
+ };
1660
2264
  };
1661
- dialect: "sqlite";
1662
- }>;
1663
- export const iconTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1664
- name: "icon";
1665
- schema: undefined;
1666
- columns: {
1667
- readonly docId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1668
- name: "docId";
1669
- tableName: "icon";
1670
- dataType: "string";
1671
- columnType: "SQLiteText";
1672
- data: string;
1673
- driverParam: string;
1674
- notNull: true;
1675
- hasDefault: false;
1676
- enumValues: [string, ...string[]];
1677
- baseColumn: never;
1678
- }, object>;
1679
- readonly versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1680
- name: "versionId";
1681
- tableName: "icon";
1682
- dataType: "string";
1683
- columnType: "SQLiteText";
1684
- data: string;
1685
- driverParam: string;
1686
- notNull: true;
1687
- hasDefault: false;
1688
- enumValues: [string, ...string[]];
1689
- baseColumn: never;
1690
- }, object>;
1691
- readonly originalVersionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1692
- name: "originalVersionId";
1693
- tableName: "icon";
1694
- dataType: "string";
1695
- columnType: "SQLiteText";
1696
- data: string;
1697
- driverParam: string;
1698
- notNull: true;
1699
- hasDefault: false;
1700
- enumValues: [string, ...string[]];
1701
- baseColumn: never;
1702
- }, object>;
1703
- readonly schemaName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1704
- name: "schemaName";
1705
- tableName: "icon";
1706
- dataType: "string";
1707
- columnType: "SQLiteText";
1708
- data: "icon";
1709
- driverParam: string;
1710
- notNull: true;
1711
- hasDefault: false;
1712
- enumValues: ["icon"];
1713
- baseColumn: never;
1714
- }, object>;
1715
- readonly createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1716
- name: "createdAt";
1717
- tableName: "icon";
1718
- dataType: "string";
1719
- columnType: "SQLiteText";
1720
- data: string;
1721
- driverParam: string;
1722
- notNull: true;
1723
- hasDefault: false;
1724
- enumValues: [string, ...string[]];
1725
- baseColumn: never;
1726
- }, object>;
1727
- readonly updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1728
- name: "updatedAt";
1729
- tableName: "icon";
1730
- dataType: "string";
1731
- columnType: "SQLiteText";
1732
- data: string;
1733
- driverParam: string;
1734
- notNull: true;
1735
- hasDefault: false;
1736
- enumValues: [string, ...string[]];
1737
- baseColumn: never;
1738
- }, object>;
1739
- readonly links: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1740
- name: "links";
1741
- tableName: "icon";
1742
- dataType: "custom";
1743
- columnType: "SQLiteCustomColumn";
1744
- data: string[];
1745
- driverParam: string;
1746
- notNull: true;
1747
- hasDefault: false;
1748
- enumValues: undefined;
1749
- baseColumn: never;
1750
- }, object>;
1751
- readonly deleted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1752
- name: "deleted";
1753
- tableName: "icon";
1754
- dataType: "boolean";
1755
- columnType: "SQLiteBoolean";
1756
- data: boolean;
1757
- driverParam: number;
1758
- notNull: true;
1759
- hasDefault: false;
1760
- enumValues: undefined;
1761
- baseColumn: never;
1762
- }, object>;
1763
- readonly name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1764
- name: "name";
1765
- tableName: "icon";
1766
- dataType: "string";
1767
- columnType: "SQLiteText";
1768
- data: string;
1769
- driverParam: string;
1770
- notNull: true;
1771
- hasDefault: false;
1772
- enumValues: [string, ...string[]];
1773
- baseColumn: never;
1774
- }, object>;
1775
- readonly variants: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1776
- name: "variants";
1777
- tableName: "icon";
1778
- dataType: "custom";
1779
- columnType: "SQLiteCustomColumn";
1780
- data: ({
1781
- mimeType: "image/png";
1782
- size: import("@comapeo/schema/dist/schema/icon.js").Size;
1783
- pixelDensity: 1 | 2 | 3;
1784
- blobVersionId: import("@comapeo/schema/dist/schema/icon.js").BlobVersionId;
1785
- } | {
1786
- size: import("@comapeo/schema/dist/schema/icon.js").Size;
1787
- mimeType: "image/svg+xml";
1788
- blobVersionId: import("@comapeo/schema/dist/schema/icon.js").BlobVersionId;
1789
- })[];
1790
- driverParam: string;
1791
- notNull: true;
1792
- hasDefault: false;
1793
- enumValues: undefined;
1794
- baseColumn: never;
1795
- }, object>;
1796
- forks: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1797
- name: "forks";
1798
- tableName: "icon";
1799
- dataType: "custom";
1800
- columnType: "SQLiteCustomColumn";
1801
- data: string[];
1802
- driverParam: string;
1803
- notNull: true;
1804
- hasDefault: false;
1805
- enumValues: undefined;
1806
- baseColumn: never;
1807
- }, object>;
2265
+ readonly required: readonly ["tagKey", "type", "label", "schemaName", "docId", "createdAt", "updatedAt", "links", "versionId", "originalVersionId", "deleted"];
2266
+ readonly additionalProperties: false;
2267
+ }, "field", import("./comapeo-to-drizzle.js").AdditionalColumns, "docId">;
2268
+ export const coreOwnershipTable: import("./types.js").JsonSchemaToDrizzleSqliteTable<{
2269
+ schemaName: "coreOwnership";
2270
+ authCoreId: string;
2271
+ configCoreId: string;
2272
+ dataCoreId: string;
2273
+ blobCoreId: string;
2274
+ blobIndexCoreId: string;
2275
+ docId: string;
2276
+ versionId: string;
2277
+ originalVersionId: string;
2278
+ createdAt: string;
2279
+ updatedAt: string;
2280
+ links: string[];
2281
+ deleted: boolean;
2282
+ }, {
2283
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
2284
+ readonly $id: "http://mapeo.world/schemas/coreOwnership/v1.json";
2285
+ readonly title: "CoreOwnership";
2286
+ readonly description: "Which cores belong to which identity key?";
2287
+ readonly type: "object";
2288
+ readonly properties: {
2289
+ readonly docId: {
2290
+ readonly description: "Hex-encoded 32-byte buffer";
2291
+ readonly type: "string";
2292
+ readonly minLength: 1;
2293
+ };
2294
+ readonly versionId: {
2295
+ readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
2296
+ readonly type: "string";
2297
+ readonly minLength: 1;
2298
+ };
2299
+ readonly originalVersionId: {
2300
+ readonly description: "Version ID of the original version of this document. For the original version, matches `versionId`.";
2301
+ readonly type: "string";
2302
+ readonly minLength: 1;
2303
+ };
2304
+ readonly schemaName: {
2305
+ readonly type: "string";
2306
+ readonly const: "coreOwnership";
2307
+ };
2308
+ readonly createdAt: {
2309
+ readonly description: "RFC3339-formatted datetime of when the first version of the element was created";
2310
+ readonly type: "string";
2311
+ readonly format: "date-time";
2312
+ };
2313
+ readonly updatedAt: {
2314
+ readonly description: "RFC3339-formatted datetime of when this version of the element was created";
2315
+ readonly type: "string";
2316
+ readonly format: "date-time";
2317
+ };
2318
+ readonly links: {
2319
+ readonly description: "Version ids of the previous document versions this one is replacing. Each link is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
2320
+ readonly type: "array";
2321
+ readonly uniqueItems: true;
2322
+ readonly items: {
2323
+ readonly type: "string";
2324
+ };
2325
+ };
2326
+ readonly deleted: {
2327
+ readonly description: "Indicates whether the document has been deleted";
2328
+ readonly type: "boolean";
2329
+ };
2330
+ readonly authCoreId: {
2331
+ readonly type: "string";
2332
+ readonly description: "Hex-encoded key of auth store writer core";
2333
+ readonly minLength: 1;
2334
+ };
2335
+ readonly configCoreId: {
2336
+ readonly type: "string";
2337
+ readonly description: "Hex-encoded key of config store writer core";
2338
+ readonly minLength: 1;
2339
+ };
2340
+ readonly dataCoreId: {
2341
+ readonly type: "string";
2342
+ readonly description: "Hex-encoded key of data store writer core";
2343
+ readonly minLength: 1;
2344
+ };
2345
+ readonly blobCoreId: {
2346
+ readonly type: "string";
2347
+ readonly description: "Hex-encoded key of blob store writer core";
2348
+ readonly minLength: 1;
2349
+ };
2350
+ readonly blobIndexCoreId: {
2351
+ readonly type: "string";
2352
+ readonly description: "Hex-encoded key of blobIndex store writer core";
2353
+ readonly minLength: 1;
2354
+ };
1808
2355
  };
1809
- dialect: "sqlite";
1810
- }>;
2356
+ readonly required: readonly ["schemaName", "authCoreId", "configCoreId", "dataCoreId", "blobCoreId", "blobIndexCoreId", "docId", "createdAt", "updatedAt", "links", "versionId", "originalVersionId", "deleted"];
2357
+ }, "coreOwnership", import("./comapeo-to-drizzle.js").AdditionalColumns, "docId">;
2358
+ export const roleTable: import("./types.js").JsonSchemaToDrizzleSqliteTable<{
2359
+ schemaName: "role";
2360
+ roleId: string;
2361
+ fromIndex: number;
2362
+ docId: string;
2363
+ versionId: string;
2364
+ originalVersionId: string;
2365
+ createdAt: string;
2366
+ updatedAt: string;
2367
+ links: string[];
2368
+ deleted: boolean;
2369
+ }, {
2370
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
2371
+ readonly $id: "http://mapeo.world/schemas/role/v1.json";
2372
+ readonly title: "Role";
2373
+ readonly type: "object";
2374
+ readonly properties: {
2375
+ readonly docId: {
2376
+ readonly description: "Hex-encoded 32-byte buffer";
2377
+ readonly type: "string";
2378
+ readonly minLength: 1;
2379
+ };
2380
+ readonly versionId: {
2381
+ readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
2382
+ readonly type: "string";
2383
+ readonly minLength: 1;
2384
+ };
2385
+ readonly originalVersionId: {
2386
+ readonly description: "Version ID of the original version of this document. For the original version, matches `versionId`.";
2387
+ readonly type: "string";
2388
+ readonly minLength: 1;
2389
+ };
2390
+ readonly schemaName: {
2391
+ readonly type: "string";
2392
+ readonly const: "role";
2393
+ };
2394
+ readonly createdAt: {
2395
+ readonly description: "RFC3339-formatted datetime of when the first version of the element was created";
2396
+ readonly type: "string";
2397
+ readonly format: "date-time";
2398
+ };
2399
+ readonly updatedAt: {
2400
+ readonly description: "RFC3339-formatted datetime of when this version of the element was created";
2401
+ readonly type: "string";
2402
+ readonly format: "date-time";
2403
+ };
2404
+ readonly links: {
2405
+ readonly description: "Version ids of the previous document versions this one is replacing. Each link is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
2406
+ readonly type: "array";
2407
+ readonly uniqueItems: true;
2408
+ readonly items: {
2409
+ readonly type: "string";
2410
+ };
2411
+ };
2412
+ readonly deleted: {
2413
+ readonly description: "Indicates whether the document has been deleted";
2414
+ readonly type: "boolean";
2415
+ };
2416
+ readonly roleId: {
2417
+ readonly type: "string";
2418
+ readonly description: "Unique identifier for role assigned to device with auth core ID equal to `docId` of this record";
2419
+ readonly minLength: 1;
2420
+ };
2421
+ readonly fromIndex: {
2422
+ readonly type: "integer";
2423
+ readonly minimum: 0;
2424
+ readonly description: "This is the index of the auth core that this role applies to (identified by the `docId`) to apply this role from. E.g. documents in the auth core assigned this role from this index will be evaluated according to this role.";
2425
+ };
2426
+ };
2427
+ readonly required: readonly ["schemaName", "roleId", "fromIndex", "docId", "createdAt", "updatedAt", "links", "versionId", "originalVersionId", "deleted"];
2428
+ readonly additionalProperties: false;
2429
+ }, "role", import("./comapeo-to-drizzle.js").AdditionalColumns, "docId">;
2430
+ export const deviceInfoTable: import("./types.js").JsonSchemaToDrizzleSqliteTable<{
2431
+ schemaName: "deviceInfo";
2432
+ name: string;
2433
+ deviceType: "device_type_unspecified" | "mobile" | "tablet" | "desktop" | "selfHostedServer" | "UNRECOGNIZED";
2434
+ selfHostedServerDetails?: {
2435
+ baseUrl: string;
2436
+ } | undefined;
2437
+ docId: string;
2438
+ versionId: string;
2439
+ originalVersionId: string;
2440
+ createdAt: string;
2441
+ updatedAt: string;
2442
+ links: string[];
2443
+ deleted: boolean;
2444
+ }, {
2445
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
2446
+ readonly $id: "http://mapeo.world/schemas/deviceInfo/v1.json";
2447
+ readonly title: "DeviceInfo";
2448
+ readonly type: "object";
2449
+ readonly properties: {
2450
+ readonly docId: {
2451
+ readonly description: "Hex-encoded 32-byte buffer";
2452
+ readonly type: "string";
2453
+ readonly minLength: 1;
2454
+ };
2455
+ readonly versionId: {
2456
+ readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
2457
+ readonly type: "string";
2458
+ readonly minLength: 1;
2459
+ };
2460
+ readonly originalVersionId: {
2461
+ readonly description: "Version ID of the original version of this document. For the original version, matches `versionId`.";
2462
+ readonly type: "string";
2463
+ readonly minLength: 1;
2464
+ };
2465
+ readonly schemaName: {
2466
+ readonly type: "string";
2467
+ readonly const: "deviceInfo";
2468
+ };
2469
+ readonly createdAt: {
2470
+ readonly description: "RFC3339-formatted datetime of when the first version of the element was created";
2471
+ readonly type: "string";
2472
+ readonly format: "date-time";
2473
+ };
2474
+ readonly updatedAt: {
2475
+ readonly description: "RFC3339-formatted datetime of when this version of the element was created";
2476
+ readonly type: "string";
2477
+ readonly format: "date-time";
2478
+ };
2479
+ readonly links: {
2480
+ readonly description: "Version ids of the previous document versions this one is replacing. Each link is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
2481
+ readonly type: "array";
2482
+ readonly uniqueItems: true;
2483
+ readonly items: {
2484
+ readonly type: "string";
2485
+ };
2486
+ };
2487
+ readonly deleted: {
2488
+ readonly description: "Indicates whether the document has been deleted";
2489
+ readonly type: "boolean";
2490
+ };
2491
+ readonly name: {
2492
+ readonly type: "string";
2493
+ readonly description: "Name of the device";
2494
+ };
2495
+ readonly deviceType: {
2496
+ readonly type: "string";
2497
+ readonly enum: readonly ["device_type_unspecified", "mobile", "tablet", "desktop", "selfHostedServer", "UNRECOGNIZED"];
2498
+ readonly description: "Type of device";
2499
+ };
2500
+ readonly selfHostedServerDetails: {
2501
+ readonly type: "object";
2502
+ readonly properties: {
2503
+ readonly baseUrl: {
2504
+ readonly description: "base URL for the server";
2505
+ readonly type: "string";
2506
+ readonly minLength: 1;
2507
+ };
2508
+ };
2509
+ readonly required: readonly ["baseUrl"];
2510
+ };
2511
+ };
2512
+ readonly required: readonly ["schemaName", "name", "deviceType", "docId", "createdAt", "updatedAt", "links", "versionId", "originalVersionId", "deleted"];
2513
+ readonly additionalProperties: false;
2514
+ }, "deviceInfo", import("./comapeo-to-drizzle.js").AdditionalColumns, "docId">;
2515
+ export const iconTable: import("./types.js").JsonSchemaToDrizzleSqliteTable<{
2516
+ schemaName: "icon";
2517
+ name: string;
2518
+ variants: ({
2519
+ mimeType: "image/png";
2520
+ size: import("@comapeo/schema/dist/schema/icon.js").Size;
2521
+ pixelDensity: 1 | 2 | 3;
2522
+ blobVersionId: import("@comapeo/schema/dist/schema/icon.js").BlobVersionId;
2523
+ } | {
2524
+ size: import("@comapeo/schema/dist/schema/icon.js").Size;
2525
+ mimeType: "image/svg+xml";
2526
+ blobVersionId: import("@comapeo/schema/dist/schema/icon.js").BlobVersionId;
2527
+ })[];
2528
+ docId: string;
2529
+ versionId: string;
2530
+ originalVersionId: string;
2531
+ createdAt: string;
2532
+ updatedAt: string;
2533
+ links: string[];
2534
+ deleted: boolean;
2535
+ }, {
2536
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
2537
+ readonly $id: "http://mapeo.world/schemas/icon/v1.json";
2538
+ readonly title: "Icon";
2539
+ readonly description: "An Icon represents metadata to retrieve an Icon blob";
2540
+ readonly type: "object";
2541
+ readonly properties: {
2542
+ readonly docId: {
2543
+ readonly description: "Hex-encoded 32-byte buffer";
2544
+ readonly type: "string";
2545
+ readonly minLength: 1;
2546
+ };
2547
+ readonly versionId: {
2548
+ readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
2549
+ readonly type: "string";
2550
+ readonly minLength: 1;
2551
+ };
2552
+ readonly originalVersionId: {
2553
+ readonly description: "Version ID of the original version of this document. For the original version, matches `versionId`.";
2554
+ readonly type: "string";
2555
+ readonly minLength: 1;
2556
+ };
2557
+ readonly schemaName: {
2558
+ readonly description: "Must be `icon`";
2559
+ readonly type: "string";
2560
+ readonly const: "icon";
2561
+ };
2562
+ readonly createdAt: {
2563
+ readonly description: "RFC3339-formatted datetime of when the first version of the element was created";
2564
+ readonly type: "string";
2565
+ readonly format: "date-time";
2566
+ };
2567
+ readonly updatedAt: {
2568
+ readonly description: "RFC3339-formatted datetime of when this version of the element was created";
2569
+ readonly type: "string";
2570
+ readonly format: "date-time";
2571
+ };
2572
+ readonly links: {
2573
+ readonly description: "Version ids of the previous document versions this one is replacing. Each link is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
2574
+ readonly type: "array";
2575
+ readonly uniqueItems: true;
2576
+ readonly items: {
2577
+ readonly type: "string";
2578
+ };
2579
+ };
2580
+ readonly deleted: {
2581
+ readonly description: "Indicates whether the document has been deleted";
2582
+ readonly type: "boolean";
2583
+ };
2584
+ readonly name: {
2585
+ readonly type: "string";
2586
+ readonly minLength: 1;
2587
+ };
2588
+ readonly variants: {
2589
+ readonly type: "array";
2590
+ readonly items: {
2591
+ readonly type: "object";
2592
+ readonly oneOf: readonly [{
2593
+ readonly type: "object";
2594
+ readonly properties: {
2595
+ readonly mimeType: {
2596
+ readonly type: "string";
2597
+ readonly const: "image/png";
2598
+ };
2599
+ readonly size: {
2600
+ readonly type: "string";
2601
+ readonly enum: readonly ["size_unspecified", "small", "medium", "large"];
2602
+ };
2603
+ readonly pixelDensity: {
2604
+ readonly type: "number";
2605
+ readonly enum: readonly [1, 2, 3];
2606
+ };
2607
+ readonly blobVersionId: {
2608
+ readonly description: "Version id of the icon blob. Each id is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
2609
+ readonly type: "string";
2610
+ readonly minLength: 1;
2611
+ };
2612
+ };
2613
+ readonly required: readonly ["size", "pixelDensity", "blobVersionId", "mimeType"];
2614
+ }, {
2615
+ readonly type: "object";
2616
+ readonly properties: {
2617
+ readonly size: {
2618
+ readonly type: "string";
2619
+ readonly enum: readonly ["size_unspecified", "small", "medium", "large"];
2620
+ };
2621
+ readonly mimeType: {
2622
+ readonly type: "string";
2623
+ readonly const: "image/svg+xml";
2624
+ };
2625
+ readonly blobVersionId: {
2626
+ readonly description: "Version id of the icon blob. Each id is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
2627
+ readonly type: "string";
2628
+ readonly minLength: 1;
2629
+ };
2630
+ };
2631
+ readonly required: readonly ["size", "blobVersionId", "mimeType"];
2632
+ }];
2633
+ };
2634
+ };
2635
+ };
2636
+ readonly required: readonly ["schemaName", "name", "variants", "docId", "createdAt", "updatedAt", "links", "versionId", "originalVersionId", "deleted"];
2637
+ readonly additionalProperties: false;
2638
+ }, "icon", import("./comapeo-to-drizzle.js").AdditionalColumns, "docId">;
1811
2639
  export const translationBacklinkTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
1812
2640
  name: string;
1813
2641
  schema: undefined;
1814
2642
  columns: {
1815
2643
  versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1816
- name: "versionId";
2644
+ name: string;
1817
2645
  tableName: string;
1818
2646
  dataType: "string";
1819
- columnType: "SQLiteText";
1820
2647
  data: string;
1821
2648
  driverParam: string;
1822
2649
  notNull: true;
1823
2650
  hasDefault: false;
2651
+ isPrimaryKey: true;
2652
+ isAutoincrement: false;
2653
+ hasRuntimeDefault: false;
1824
2654
  enumValues: [string, ...string[]];
1825
2655
  baseColumn: never;
1826
- }, object>;
2656
+ identity: undefined;
2657
+ generated: undefined;
2658
+ }, {}>;
1827
2659
  };
1828
2660
  dialect: "sqlite";
1829
2661
  }>;
@@ -1832,17 +2664,21 @@ export const observationBacklinkTable: import("drizzle-orm/sqlite-core").SQLiteT
1832
2664
  schema: undefined;
1833
2665
  columns: {
1834
2666
  versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1835
- name: "versionId";
2667
+ name: string;
1836
2668
  tableName: string;
1837
2669
  dataType: "string";
1838
- columnType: "SQLiteText";
1839
2670
  data: string;
1840
2671
  driverParam: string;
1841
2672
  notNull: true;
1842
2673
  hasDefault: false;
2674
+ isPrimaryKey: true;
2675
+ isAutoincrement: false;
2676
+ hasRuntimeDefault: false;
1843
2677
  enumValues: [string, ...string[]];
1844
2678
  baseColumn: never;
1845
- }, object>;
2679
+ identity: undefined;
2680
+ generated: undefined;
2681
+ }, {}>;
1846
2682
  };
1847
2683
  dialect: "sqlite";
1848
2684
  }>;
@@ -1851,17 +2687,21 @@ export const trackBacklinkTable: import("drizzle-orm/sqlite-core").SQLiteTableWi
1851
2687
  schema: undefined;
1852
2688
  columns: {
1853
2689
  versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1854
- name: "versionId";
2690
+ name: string;
1855
2691
  tableName: string;
1856
2692
  dataType: "string";
1857
- columnType: "SQLiteText";
1858
2693
  data: string;
1859
2694
  driverParam: string;
1860
2695
  notNull: true;
1861
2696
  hasDefault: false;
2697
+ isPrimaryKey: true;
2698
+ isAutoincrement: false;
2699
+ hasRuntimeDefault: false;
1862
2700
  enumValues: [string, ...string[]];
1863
2701
  baseColumn: never;
1864
- }, object>;
2702
+ identity: undefined;
2703
+ generated: undefined;
2704
+ }, {}>;
1865
2705
  };
1866
2706
  dialect: "sqlite";
1867
2707
  }>;
@@ -1870,17 +2710,21 @@ export const remoteDetectionAlertBacklinkTable: import("drizzle-orm/sqlite-core"
1870
2710
  schema: undefined;
1871
2711
  columns: {
1872
2712
  versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1873
- name: "versionId";
2713
+ name: string;
1874
2714
  tableName: string;
1875
2715
  dataType: "string";
1876
- columnType: "SQLiteText";
1877
2716
  data: string;
1878
2717
  driverParam: string;
1879
2718
  notNull: true;
1880
2719
  hasDefault: false;
2720
+ isPrimaryKey: true;
2721
+ isAutoincrement: false;
2722
+ hasRuntimeDefault: false;
1881
2723
  enumValues: [string, ...string[]];
1882
2724
  baseColumn: never;
1883
- }, object>;
2725
+ identity: undefined;
2726
+ generated: undefined;
2727
+ }, {}>;
1884
2728
  };
1885
2729
  dialect: "sqlite";
1886
2730
  }>;
@@ -1889,17 +2733,21 @@ export const presetBacklinkTable: import("drizzle-orm/sqlite-core").SQLiteTableW
1889
2733
  schema: undefined;
1890
2734
  columns: {
1891
2735
  versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1892
- name: "versionId";
2736
+ name: string;
1893
2737
  tableName: string;
1894
2738
  dataType: "string";
1895
- columnType: "SQLiteText";
1896
2739
  data: string;
1897
2740
  driverParam: string;
1898
2741
  notNull: true;
1899
2742
  hasDefault: false;
2743
+ isPrimaryKey: true;
2744
+ isAutoincrement: false;
2745
+ hasRuntimeDefault: false;
1900
2746
  enumValues: [string, ...string[]];
1901
2747
  baseColumn: never;
1902
- }, object>;
2748
+ identity: undefined;
2749
+ generated: undefined;
2750
+ }, {}>;
1903
2751
  };
1904
2752
  dialect: "sqlite";
1905
2753
  }>;
@@ -1908,17 +2756,21 @@ export const fieldBacklinkTable: import("drizzle-orm/sqlite-core").SQLiteTableWi
1908
2756
  schema: undefined;
1909
2757
  columns: {
1910
2758
  versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1911
- name: "versionId";
2759
+ name: string;
1912
2760
  tableName: string;
1913
2761
  dataType: "string";
1914
- columnType: "SQLiteText";
1915
2762
  data: string;
1916
2763
  driverParam: string;
1917
2764
  notNull: true;
1918
2765
  hasDefault: false;
2766
+ isPrimaryKey: true;
2767
+ isAutoincrement: false;
2768
+ hasRuntimeDefault: false;
1919
2769
  enumValues: [string, ...string[]];
1920
2770
  baseColumn: never;
1921
- }, object>;
2771
+ identity: undefined;
2772
+ generated: undefined;
2773
+ }, {}>;
1922
2774
  };
1923
2775
  dialect: "sqlite";
1924
2776
  }>;
@@ -1927,17 +2779,21 @@ export const coreOwnershipBacklinkTable: import("drizzle-orm/sqlite-core").SQLit
1927
2779
  schema: undefined;
1928
2780
  columns: {
1929
2781
  versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1930
- name: "versionId";
2782
+ name: string;
1931
2783
  tableName: string;
1932
2784
  dataType: "string";
1933
- columnType: "SQLiteText";
1934
2785
  data: string;
1935
2786
  driverParam: string;
1936
2787
  notNull: true;
1937
2788
  hasDefault: false;
2789
+ isPrimaryKey: true;
2790
+ isAutoincrement: false;
2791
+ hasRuntimeDefault: false;
1938
2792
  enumValues: [string, ...string[]];
1939
2793
  baseColumn: never;
1940
- }, object>;
2794
+ identity: undefined;
2795
+ generated: undefined;
2796
+ }, {}>;
1941
2797
  };
1942
2798
  dialect: "sqlite";
1943
2799
  }>;
@@ -1946,17 +2802,21 @@ export const roleBacklinkTable: import("drizzle-orm/sqlite-core").SQLiteTableWit
1946
2802
  schema: undefined;
1947
2803
  columns: {
1948
2804
  versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1949
- name: "versionId";
2805
+ name: string;
1950
2806
  tableName: string;
1951
2807
  dataType: "string";
1952
- columnType: "SQLiteText";
1953
2808
  data: string;
1954
2809
  driverParam: string;
1955
2810
  notNull: true;
1956
2811
  hasDefault: false;
2812
+ isPrimaryKey: true;
2813
+ isAutoincrement: false;
2814
+ hasRuntimeDefault: false;
1957
2815
  enumValues: [string, ...string[]];
1958
2816
  baseColumn: never;
1959
- }, object>;
2817
+ identity: undefined;
2818
+ generated: undefined;
2819
+ }, {}>;
1960
2820
  };
1961
2821
  dialect: "sqlite";
1962
2822
  }>;
@@ -1965,17 +2825,21 @@ export const deviceInfoBacklinkTable: import("drizzle-orm/sqlite-core").SQLiteTa
1965
2825
  schema: undefined;
1966
2826
  columns: {
1967
2827
  versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1968
- name: "versionId";
2828
+ name: string;
1969
2829
  tableName: string;
1970
2830
  dataType: "string";
1971
- columnType: "SQLiteText";
1972
2831
  data: string;
1973
2832
  driverParam: string;
1974
2833
  notNull: true;
1975
2834
  hasDefault: false;
2835
+ isPrimaryKey: true;
2836
+ isAutoincrement: false;
2837
+ hasRuntimeDefault: false;
1976
2838
  enumValues: [string, ...string[]];
1977
2839
  baseColumn: never;
1978
- }, object>;
2840
+ identity: undefined;
2841
+ generated: undefined;
2842
+ }, {}>;
1979
2843
  };
1980
2844
  dialect: "sqlite";
1981
2845
  }>;
@@ -1984,17 +2848,21 @@ export const iconBacklinkTable: import("drizzle-orm/sqlite-core").SQLiteTableWit
1984
2848
  schema: undefined;
1985
2849
  columns: {
1986
2850
  versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1987
- name: "versionId";
2851
+ name: string;
1988
2852
  tableName: string;
1989
2853
  dataType: "string";
1990
- columnType: "SQLiteText";
1991
2854
  data: string;
1992
2855
  driverParam: string;
1993
2856
  notNull: true;
1994
2857
  hasDefault: false;
2858
+ isPrimaryKey: true;
2859
+ isAutoincrement: false;
2860
+ hasRuntimeDefault: false;
1995
2861
  enumValues: [string, ...string[]];
1996
2862
  baseColumn: never;
1997
- }, object>;
2863
+ identity: undefined;
2864
+ generated: undefined;
2865
+ }, {}>;
1998
2866
  };
1999
2867
  dialect: "sqlite";
2000
2868
  }>;
@@ -2003,29 +2871,37 @@ export const coresTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
2003
2871
  schema: undefined;
2004
2872
  columns: {
2005
2873
  publicKey: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2006
- name: "publicKey";
2874
+ name: string;
2007
2875
  tableName: "cores";
2008
- dataType: "buffer";
2009
- columnType: "SQLiteBlobBuffer";
2876
+ dataType: "object buffer";
2010
2877
  data: Buffer;
2011
2878
  driverParam: Buffer;
2012
2879
  notNull: true;
2013
2880
  hasDefault: false;
2881
+ isPrimaryKey: false;
2882
+ isAutoincrement: false;
2883
+ hasRuntimeDefault: false;
2014
2884
  enumValues: undefined;
2015
2885
  baseColumn: never;
2016
- }, object>;
2886
+ identity: undefined;
2887
+ generated: undefined;
2888
+ }, {}>;
2017
2889
  namespace: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2018
- name: "namespace";
2890
+ name: string;
2019
2891
  tableName: "cores";
2020
- dataType: "string";
2021
- columnType: "SQLiteText";
2892
+ dataType: "string enum";
2022
2893
  data: "auth" | "config" | "data" | "blobIndex" | "blob";
2023
2894
  driverParam: string;
2024
2895
  notNull: true;
2025
2896
  hasDefault: false;
2897
+ isPrimaryKey: false;
2898
+ isAutoincrement: false;
2899
+ hasRuntimeDefault: false;
2026
2900
  enumValues: ["auth", "config", "data", "blobIndex", "blob"];
2027
2901
  baseColumn: never;
2028
- }, object>;
2902
+ identity: undefined;
2903
+ generated: undefined;
2904
+ }, {}>;
2029
2905
  };
2030
2906
  dialect: "sqlite";
2031
2907
  }>;