@eidos.space/eidos-file 2.2.0 → 3.1.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 (41) hide show
  1. package/FIELD-CONVERSION.md +40 -19
  2. package/dist/adapter-contract-SrPzXysz.d.mts +281 -0
  3. package/dist/adapter-contract-SrPzXysz.d.mts.map +1 -0
  4. package/dist/better-sqlite3.d.mts +2 -2
  5. package/dist/better-sqlite3.mjs +1 -1
  6. package/dist/browser.d.mts +4 -4
  7. package/dist/browser.mjs +2 -2
  8. package/dist/{csv-BVaUkU1o.mjs → csv-NK8Rti5O.mjs} +38 -7
  9. package/dist/csv-NK8Rti5O.mjs.map +1 -0
  10. package/dist/csv.d.mts +1 -1
  11. package/dist/csv.d.mts.map +1 -1
  12. package/dist/csv.mjs +1 -1
  13. package/dist/index.d.mts +57 -9
  14. package/dist/index.d.mts.map +1 -1
  15. package/dist/index.mjs +66 -499
  16. package/dist/index.mjs.map +1 -1
  17. package/dist/node-sqlite.d.mts +3 -3
  18. package/dist/node-sqlite.d.mts.map +1 -1
  19. package/dist/node-sqlite.mjs +10 -4
  20. package/dist/node-sqlite.mjs.map +1 -1
  21. package/dist/runtime-CUCgAnbo.d.mts +1682 -0
  22. package/dist/runtime-CUCgAnbo.d.mts.map +1 -0
  23. package/dist/{runtime-D9Vp-lxn.mjs → runtime-CrsC-uwG.mjs} +1390 -293
  24. package/dist/runtime-CrsC-uwG.mjs.map +1 -0
  25. package/dist/{sqlite-wasm-DzuW0TZZ.mjs → sqlite-wasm-BQqcna0d.mjs} +9 -2
  26. package/dist/sqlite-wasm-BQqcna0d.mjs.map +1 -0
  27. package/dist/{system-metadata-merge-DeHwokcY.d.mts → system-metadata-merge-BY7ebqnp.d.mts} +2 -2
  28. package/dist/{system-metadata-merge-DeHwokcY.d.mts.map → system-metadata-merge-BY7ebqnp.d.mts.map} +1 -1
  29. package/dist/{system-metadata-merge-DJ9yCprr.mjs → system-metadata-merge-CVa87L1C.mjs} +2 -2
  30. package/dist/{system-metadata-merge-DJ9yCprr.mjs.map → system-metadata-merge-CVa87L1C.mjs.map} +1 -1
  31. package/dist/{temporal-CnuhXeP8.d.mts → temporal-BMFnxGcx.d.mts} +6 -3
  32. package/dist/temporal-BMFnxGcx.d.mts.map +1 -0
  33. package/package.json +3 -3
  34. package/dist/adapter-contract-CNigdeQ7.d.mts +0 -1137
  35. package/dist/adapter-contract-CNigdeQ7.d.mts.map +0 -1
  36. package/dist/csv-BVaUkU1o.mjs.map +0 -1
  37. package/dist/runtime-BSYpcOBe.d.mts +0 -801
  38. package/dist/runtime-BSYpcOBe.d.mts.map +0 -1
  39. package/dist/runtime-D9Vp-lxn.mjs.map +0 -1
  40. package/dist/sqlite-wasm-DzuW0TZZ.mjs.map +0 -1
  41. package/dist/temporal-CnuhXeP8.d.mts.map +0 -1
@@ -0,0 +1,1682 @@
1
+ //#region src/connection.d.ts
2
+ type EidosFileSqlPrimitive = string | number | bigint | null | Uint8Array;
3
+ type EidosFileSqlParams = readonly EidosFileSqlPrimitive[];
4
+ interface EidosFileRunResult {
5
+ changes: number;
6
+ lastInsertRowid: number | bigint;
7
+ }
8
+ interface EidosFileConnectionCapabilities {
9
+ /** The adapter can bind and return 64-bit integers without truncation. */
10
+ int64: boolean;
11
+ /** JSON1 is available to canonical Relation, Lookup, and list operations. */
12
+ json1: boolean;
13
+ /** SQLite RETURNING clauses are available. */
14
+ returning: boolean;
15
+ /** The adapter can call sqlite3_interrupt on its active connection. */
16
+ interrupt: boolean;
17
+ /** Deterministic scalar functions can be registered for shared semantics. */
18
+ scalarFunctions: boolean;
19
+ }
20
+ interface EidosFileConnection {
21
+ readonly capabilities: EidosFileConnectionCapabilities;
22
+ exec(sql: string): void;
23
+ query<T extends object>(sql: string, params?: EidosFileSqlParams): T[];
24
+ get<T extends object>(sql: string, params?: EidosFileSqlParams): T | undefined;
25
+ run(sql: string, params?: EidosFileSqlParams): EidosFileRunResult;
26
+ runMany?(sql: string, parameterSets: readonly EidosFileSqlParams[]): void;
27
+ registerFunction(name: string, operation: (...values: EidosFileSqlPrimitive[]) => EidosFileSqlPrimitive, arity?: number): void;
28
+ transaction<T>(operation: () => T): T;
29
+ /** Current SQLite connection-visible change counter for cache invalidation. */
30
+ dataVersion(): number;
31
+ /** Interrupts a currently executing query when the adapter supports it. */
32
+ interrupt(): void;
33
+ close?(): void;
34
+ }
35
+ //#endregion
36
+ //#region src/protocol-types.d.ts
37
+ /** JSON values accepted by the Eidos 1.0 public protocols. */
38
+ interface JsonObject {
39
+ [key: string]: JsonValue;
40
+ }
41
+ type JsonValue = null | boolean | number | string | JsonValue[] | JsonObject;
42
+ /**
43
+ * An immutable, independently owned octet sequence at a public boundary.
44
+ * Implementations copy on ingress/egress; callers must treat this value as
45
+ * immutable even though JavaScript's Uint8Array type itself is mutable.
46
+ */
47
+ type OwnedBytes = Uint8Array;
48
+ interface CancellationSignal {
49
+ readonly aborted: boolean;
50
+ onAbort(callback: () => void): () => void;
51
+ }
52
+ interface CancellationPort {
53
+ cancelled(): boolean;
54
+ onCancel(callback: () => void): () => void;
55
+ }
56
+ interface RequestContext {
57
+ requestId: string;
58
+ deadlineMilliseconds?: number;
59
+ signal?: CancellationSignal;
60
+ }
61
+ interface PublicationContext {
62
+ cancellation: CancellationPort;
63
+ deadlineMilliseconds?: number;
64
+ }
65
+ interface ByteSource {
66
+ size: string;
67
+ read(offset: string, length: number, context: PublicationContext): Promise<OwnedBytes>;
68
+ }
69
+ interface ClockPort {
70
+ nowInstant(): string;
71
+ nowMilliseconds(): number;
72
+ }
73
+ interface EntropyPort {
74
+ randomBytes(length: number): OwnedBytes;
75
+ }
76
+ declare function cancellationPortFromSignal(signal?: CancellationSignal): CancellationPort;
77
+ declare class MemoryByteSource implements ByteSource {
78
+ readonly size: string;
79
+ private released;
80
+ private readonly bytes;
81
+ constructor(bytes: Uint8Array | ArrayBuffer);
82
+ read(offset: string, length: number, context: PublicationContext): Promise<OwnedBytes>;
83
+ release(): void;
84
+ }
85
+ declare function parseNonNegativeInt64(value: string, label: string): bigint;
86
+ //#endregion
87
+ //#region src/types.d.ts
88
+ interface EidosFileMetadata {
89
+ format: "eidos-file";
90
+ /** Stable UUIDv7 file identity. */
91
+ fileId: string;
92
+ formatVersion: "1.0";
93
+ schemaVersion: number;
94
+ revision: number | bigint;
95
+ createdAt: string;
96
+ updatedAt: string;
97
+ title?: string;
98
+ description?: string;
99
+ defaultTableId?: string;
100
+ }
101
+ interface EidosFileTableInfo {
102
+ id: string;
103
+ name: string;
104
+ /** Exact SQLite table identifier (without quote characters). */
105
+ physicalName?: string;
106
+ /** @deprecated Use physicalName. */
107
+ rawTableName: string;
108
+ position: number | null;
109
+ icon: string | null;
110
+ description: string | null;
111
+ /** Optional ordinary Text Field rendered as the record's primary Markdown content. */
112
+ contentFieldId?: string | null;
113
+ createdAt: string;
114
+ updatedAt: string;
115
+ }
116
+ type EidosFileFieldType = "integer" | "relation" | "text" | "number" | "checkbox" | "date" | "datetime" | "file" | "multi-select" | "rating" | "select" | "url" | "formula" | "lookup" | "created-time" | "last-edited-time" | "row-id";
117
+ type EidosFileSourceFieldType = Exclude<EidosFileFieldType, "row-id" | "formula" | "relation" | "lookup" | "created-time" | "last-edited-time">;
118
+ type EidosFileStorageCodec = "scalar" | "json_array" | "relation" | "materialized_text";
119
+ type EidosFileValueKind = "source" | "relation" | "derived" | "materialized" | "system";
120
+ interface EidosFileFieldInfo {
121
+ /** Stable UUIDv7 Field identity. */
122
+ id: string;
123
+ tableId: string;
124
+ name: string;
125
+ type: EidosFileFieldType;
126
+ tableName: string;
127
+ tableColumnName: string;
128
+ /** Exact SQLite column name, or null for a virtual Field. */
129
+ physicalName?: string | null;
130
+ /** Canonical system role, independent of the persisted Field type. */
131
+ systemRole?: "row-id" | "created-time" | "updated-time" | null;
132
+ nullable?: boolean;
133
+ /** Runtime-authoritative cell writability. Older editor sources may omit it. */
134
+ writable?: boolean;
135
+ isRecordLabel?: boolean;
136
+ position?: number;
137
+ settings?: Record<string, unknown>;
138
+ property: Record<string, unknown> | null;
139
+ storageCodec: EidosFileStorageCodec;
140
+ valueKind: EidosFileValueKind;
141
+ isHidden: boolean;
142
+ isDerived: boolean;
143
+ sourceTableColumnName: string | null;
144
+ dependsOn: unknown;
145
+ }
146
+ interface EidosFileViewInfo {
147
+ id: string;
148
+ name: string;
149
+ type: string;
150
+ tableId: string;
151
+ /** Whether this Runtime can execute the complete saved query. */
152
+ queryStatus?: "supported" | "unsupported";
153
+ query: string;
154
+ properties: Record<string, unknown> | null;
155
+ filter: EidosFileFilterGroup | null;
156
+ sorts: EidosFileSort[];
157
+ orderMap: Record<string, number> | null;
158
+ hiddenFields: string[];
159
+ position: number | null;
160
+ createdAt: string;
161
+ updatedAt: string;
162
+ }
163
+ interface UpdateEidosFileViewInput {
164
+ name?: string;
165
+ type?: string;
166
+ position?: number | null;
167
+ properties?: Record<string, unknown> | null;
168
+ filter?: EidosFileFilterGroup | null;
169
+ sorts?: EidosFileSort[];
170
+ orderMap?: Record<string, number> | null;
171
+ hiddenFields?: string[];
172
+ }
173
+ interface CreateEidosFileOptions {
174
+ fileId?: string;
175
+ title?: string;
176
+ description?: string;
177
+ createdAt?: string;
178
+ defaultTable?: CreateEidosFileTableInput;
179
+ }
180
+ interface CreateEidosFileTableInput {
181
+ id?: string;
182
+ name: string;
183
+ icon?: string;
184
+ description?: string;
185
+ fields?: CreateEidosFileFieldInput[];
186
+ createDefaultView?: boolean;
187
+ }
188
+ type EidosFileCsvFieldType = "text" | "number" | "integer" | "checkbox" | "date" | "datetime" | "url";
189
+ interface EidosFileCsvImportColumn {
190
+ sourceIndex: number;
191
+ sourceName: string;
192
+ name: string;
193
+ columnName: string;
194
+ type: "record-label" | EidosFileCsvFieldType;
195
+ settings?: Record<string, unknown>;
196
+ }
197
+ interface EidosFileCsvImportIssue {
198
+ code: "malformed-row" | "inconsistent-column-count";
199
+ count: number;
200
+ message: string;
201
+ }
202
+ interface EidosFileCsvImportPlan {
203
+ fileName: string;
204
+ tableName: string;
205
+ rowCount: number;
206
+ skippedRowCount: number;
207
+ columns: EidosFileCsvImportColumn[];
208
+ sampleRows: string[][];
209
+ issues: EidosFileCsvImportIssue[];
210
+ }
211
+ interface EidosFileCsvColumnOverride {
212
+ sourceIndex: number;
213
+ name?: string;
214
+ type?: EidosFileCsvFieldType;
215
+ }
216
+ interface EidosFileCsvImportOptions {
217
+ tableName?: string;
218
+ columns?: EidosFileCsvColumnOverride[];
219
+ }
220
+ interface EidosFileCsvImportResult {
221
+ table: EidosFileTableInfo;
222
+ importedRowCount: number;
223
+ skippedRowCount: number;
224
+ }
225
+ interface EidosFileCsvExportColumn {
226
+ columnName: string;
227
+ name: string;
228
+ }
229
+ interface EidosFileCsvExportOptions {
230
+ query?: EidosFileRowQuery;
231
+ columns: EidosFileCsvExportColumn[];
232
+ }
233
+ interface EidosFileCsvExportResult {
234
+ exportedRowCount: number;
235
+ }
236
+ interface UpdateEidosFileTableInput {
237
+ name?: string;
238
+ icon?: string | null;
239
+ description?: string | null;
240
+ recordLabelFieldId?: string;
241
+ contentFieldId?: string | null;
242
+ }
243
+ interface CreateEidosFileSourceFieldInput {
244
+ id?: string;
245
+ name: string;
246
+ /** @deprecated The Runtime derives the SQLite physical name from name. */
247
+ columnName?: string;
248
+ type: EidosFileSourceFieldType;
249
+ property?: Record<string, unknown>;
250
+ storageCodec?: EidosFileStorageCodec;
251
+ /** SQL NULL policy for scalar and JSON storage. */
252
+ nullable?: boolean;
253
+ isRecordLabel?: boolean;
254
+ }
255
+ interface EidosFileRelationProperty extends Record<string, unknown> {
256
+ targetTableId: string;
257
+ targetField?: string;
258
+ multiple?: boolean;
259
+ direction?: "forward" | "inverse";
260
+ sourceFieldId?: string;
261
+ cardinality?: "one" | "many";
262
+ onDelete?: "restrict" | "detach" | "preserve";
263
+ }
264
+ interface CreateEidosFileRelationFieldInput {
265
+ id?: string;
266
+ name: string;
267
+ /** @deprecated The Runtime derives the SQLite physical name from name. */
268
+ columnName?: string;
269
+ type: "relation";
270
+ property: EidosFileRelationProperty;
271
+ storageCodec?: "relation";
272
+ }
273
+ type EidosFileFormulaDisplayType = "text" | "number" | "integer" | "checkbox" | "date" | "datetime" | "url";
274
+ type EidosFileFormulaResultType = EidosFileFormulaDisplayType;
275
+ interface EidosFileFormulaProperty extends Record<string, unknown> {
276
+ formula: string;
277
+ displayType: EidosFileFormulaDisplayType;
278
+ expression?: string;
279
+ }
280
+ interface CreateEidosFileFormulaFieldInput {
281
+ id?: string;
282
+ name: string;
283
+ /** @deprecated Formula Fields are virtual and have no physical column. */
284
+ columnName?: string;
285
+ type: "formula";
286
+ property: EidosFileFormulaProperty;
287
+ storageCodec?: "scalar";
288
+ isRecordLabel?: boolean;
289
+ }
290
+ interface EidosFileFormulaPreviewInput {
291
+ name: string;
292
+ columnName: string;
293
+ formula: string;
294
+ displayType: EidosFileFormulaResultType;
295
+ /** Restrict preview samples to these records, preserving UI context. */
296
+ rowIds?: string[];
297
+ }
298
+ interface EidosFileFormulaPreviewDependency {
299
+ name: string;
300
+ columnName: string;
301
+ }
302
+ interface EidosFileFormulaPreviewSample {
303
+ rowId: string;
304
+ title: string | null;
305
+ value: EidosFileRowValue;
306
+ }
307
+ interface EidosFileFormulaPreview {
308
+ expression: string;
309
+ dependencies: EidosFileFormulaPreviewDependency[];
310
+ samples: EidosFileFormulaPreviewSample[];
311
+ }
312
+ type EidosFileLookupAggregate = "first" | "values" | "count" | "sum" | "average" | "min" | "max";
313
+ interface EidosFileLookupProperty extends Record<string, unknown> {
314
+ relationField: string;
315
+ targetField: string;
316
+ aggregate: EidosFileLookupAggregate;
317
+ displayType: EidosFileFormulaDisplayType;
318
+ }
319
+ interface EidosFileSelectOption {
320
+ /** Canonical option identity and raw cell value. */
321
+ name: string;
322
+ color: string;
323
+ }
324
+ interface EidosFileOptionValueChange {
325
+ from: string;
326
+ to: string;
327
+ }
328
+ interface CreateEidosFileLookupFieldInput {
329
+ id?: string;
330
+ name: string;
331
+ /** @deprecated Lookup Fields are virtual and have no physical column. */
332
+ columnName?: string;
333
+ type: "lookup";
334
+ property: EidosFileLookupProperty;
335
+ storageCodec?: "scalar" | "json_array";
336
+ isRecordLabel?: boolean;
337
+ }
338
+ type CreateEidosFileFieldInput = CreateEidosFileSourceFieldInput | CreateEidosFileRelationFieldInput | CreateEidosFileFormulaFieldInput | CreateEidosFileLookupFieldInput;
339
+ interface EidosFileFieldPlacement {
340
+ viewId: string;
341
+ index: number;
342
+ }
343
+ interface EidosFileRelationValue {
344
+ id: string;
345
+ title: string;
346
+ }
347
+ interface ImportEidosFileFieldInput {
348
+ name: string;
349
+ columnName: string;
350
+ type: EidosFileFieldType;
351
+ property?: Record<string, unknown> | null;
352
+ storageCodec?: EidosFileStorageCodec;
353
+ valueKind?: EidosFileValueKind;
354
+ isHidden?: boolean;
355
+ isDerived?: boolean;
356
+ sourceTableColumnName?: string | null;
357
+ dependsOn?: unknown;
358
+ }
359
+ interface CreateEidosFileViewInput {
360
+ id?: string;
361
+ name: string;
362
+ type: string;
363
+ query?: string;
364
+ properties?: Record<string, unknown> | null;
365
+ filter?: EidosFileFilterGroup | null;
366
+ sorts?: EidosFileSort[];
367
+ orderMap?: Record<string, number> | null;
368
+ hiddenFields?: string[];
369
+ position?: number | null;
370
+ }
371
+ interface UpdateEidosFileFieldInput {
372
+ name?: string;
373
+ type?: EidosFileFieldType;
374
+ property?: Record<string, unknown> | null;
375
+ optionValueChanges?: EidosFileOptionValueChange[];
376
+ isRecordLabel?: boolean;
377
+ /** Explicit user approval for a preflighted conversion that may change values. */
378
+ confirmLossy?: boolean;
379
+ }
380
+ type EidosFileLogicalValue = EidosFileSqlPrimitive | boolean | EidosFileLogicalValue[] | {
381
+ readonly [key: string]: EidosFileLogicalValue;
382
+ };
383
+ interface EidosFileFileValue {
384
+ id: string;
385
+ uri: string;
386
+ name: string;
387
+ mediaType: string;
388
+ /** Canonical non-negative signed-int64 decimal string. */
389
+ size: string;
390
+ /** Extension members are preserved through parse and serialization. */
391
+ [key: string]: JsonValue;
392
+ }
393
+ type EidosFileRowValue = EidosFileSqlPrimitive | boolean;
394
+ type EidosFileRow = Record<string, EidosFileRowValue>;
395
+ /** Language-neutral Runtime row shape from Eidos File 1.0 §16. */
396
+ interface EidosFileLogicalRow {
397
+ id: string;
398
+ fields: Record<string, EidosFileLogicalValue>;
399
+ /** Generated Relation targets, requested separately from canonical values. */
400
+ resolved?: Record<string, EidosFileResolvedRelationValue[]>;
401
+ }
402
+ interface EidosFileResolvedRelationValue {
403
+ id: string;
404
+ label: EidosFileLogicalValue;
405
+ }
406
+ interface EidosFileLogicalRowDraft {
407
+ id?: string;
408
+ fields: Record<string, EidosFileLogicalValue>;
409
+ }
410
+ interface EidosFileLogicalRowUpdate {
411
+ id: string;
412
+ fields: Record<string, EidosFileLogicalValue>;
413
+ }
414
+ interface EidosFileRowsMutation {
415
+ tableId: string;
416
+ insert?: EidosFileLogicalRowDraft[];
417
+ update?: EidosFileLogicalRowUpdate[];
418
+ delete?: string[];
419
+ expectedRevision?: number | bigint;
420
+ }
421
+ type EidosFileSchemaMutation = {
422
+ type: "create-table";
423
+ table: CreateEidosFileTableInput;
424
+ } | {
425
+ type: "update-table";
426
+ tableId: string;
427
+ changes: UpdateEidosFileTableInput;
428
+ } | {
429
+ type: "delete-table";
430
+ tableId: string;
431
+ } | {
432
+ type: "add-field";
433
+ tableId: string;
434
+ field: CreateEidosFileFieldInput;
435
+ } | {
436
+ type: "update-field";
437
+ tableId: string;
438
+ fieldId: string;
439
+ changes: UpdateEidosFileFieldInput;
440
+ } | {
441
+ type: "delete-field";
442
+ tableId: string;
443
+ fieldId: string;
444
+ } | {
445
+ type: "create-view";
446
+ tableId: string;
447
+ view: CreateEidosFileViewInput;
448
+ } | {
449
+ type: "update-view";
450
+ viewId: string;
451
+ changes: UpdateEidosFileViewInput;
452
+ } | {
453
+ type: "delete-view";
454
+ viewId: string;
455
+ };
456
+ type EidosFileSortDirection = "asc" | "desc";
457
+ interface EidosFileSort {
458
+ field: string;
459
+ direction: EidosFileSortDirection;
460
+ nulls?: "first" | "last";
461
+ }
462
+ type EidosFileFilterOperator = "equals" | "not-equals" | "contains" | "not-contains" | "starts-with" | "ends-with" | "greater-than" | "greater-than-or-equal" | "less-than" | "less-than-or-equal" | "is-empty" | "is-not-empty" | "is-any-of" | "is-all-of" | "is-none-of" | "is-between" | "is-relative-to-today";
463
+ type EidosFileFilterValue = string | number | boolean | null;
464
+ type EidosFileRelativeDateDirection = "past" | "next" | "this";
465
+ type EidosFileRelativeDateUnit = "day" | "week" | "month" | "year";
466
+ interface EidosFileRelativeDateValue {
467
+ direction: EidosFileRelativeDateDirection;
468
+ unit: EidosFileRelativeDateUnit;
469
+ }
470
+ type EidosFileFilterRuleValue = EidosFileFilterValue | EidosFileFilterValue[] | EidosFileRelativeDateValue;
471
+ interface EidosFileFilterRule {
472
+ type: "rule";
473
+ field: string;
474
+ operator: EidosFileFilterOperator;
475
+ value?: EidosFileFilterRuleValue;
476
+ }
477
+ interface EidosFileFilterGroup {
478
+ type: "group";
479
+ conjunction: "and" | "or";
480
+ /** Internal compatibility representation of Runtime's Boolean NOT. */
481
+ negated?: boolean;
482
+ children: Array<EidosFileFilterRule | EidosFileFilterGroup>;
483
+ }
484
+ interface EidosFileRowQuery {
485
+ search?: string;
486
+ /** Exact Runtime search Field restriction, expressed as canonical Field IDs. */
487
+ searchFields?: string[];
488
+ filter?: EidosFileFilterGroup | null;
489
+ sorts?: EidosFileSort[];
490
+ }
491
+ interface EidosFileRowPageProjection {
492
+ /** Ordered field candidates available to each projected row. */
493
+ columns: string[];
494
+ /** Fields returned for every row without consuming the per-row field limit. */
495
+ preservedColumns?: string[];
496
+ /** Maximum candidate fields returned for each row. */
497
+ fieldLimit?: number;
498
+ /** Skip null, undefined, and empty-string candidates before applying the limit. */
499
+ omitEmptyFields?: boolean;
500
+ /** @internal Include the Table's current Record Label Field in compatibility projections. */
501
+ includeRecordLabel?: boolean;
502
+ /** @internal Include resolved Relation label arrays for compatibility editors. */
503
+ includeRelationDisplays?: boolean;
504
+ }
505
+ interface EidosFileRowPageOptions {
506
+ offset: number;
507
+ limit: number;
508
+ query?: EidosFileRowQuery;
509
+ /**
510
+ * Optional per-row response projection. Record identity is always
511
+ * included. Query-only fields may be read internally for filtering, sorting,
512
+ * and cursor generation but are not exposed in the returned rows.
513
+ */
514
+ projection?: EidosFileRowPageProjection;
515
+ /**
516
+ * Previously observed row count for the same query. When present, paging can
517
+ * reuse it instead of repeating an expensive COUNT query.
518
+ */
519
+ totalHint?: number;
520
+ /**
521
+ * Opaque cursor returned by the previous contiguous page. The runtime uses
522
+ * it as a paging fast path for natural and indexed explicit sort orders.
523
+ */
524
+ cursor?: string;
525
+ }
526
+ interface EidosFileValidationIssue {
527
+ code: string;
528
+ message: string;
529
+ table?: string;
530
+ severity?: "fatal" | "error" | "warning" | "info";
531
+ }
532
+ interface EidosFileValidationResult {
533
+ valid: boolean;
534
+ metadata: EidosFileMetadata | null;
535
+ tables: EidosFileTableInfo[];
536
+ errors: EidosFileValidationIssue[];
537
+ warnings: EidosFileValidationIssue[];
538
+ }
539
+ interface EidosFileTableSnapshot {
540
+ table: EidosFileTableInfo;
541
+ fields: EidosFileFieldInfo[];
542
+ views: EidosFileViewInfo[];
543
+ rowCount: number;
544
+ }
545
+ interface EidosFileRowPage {
546
+ tableId: string;
547
+ offset: number;
548
+ limit: number;
549
+ total: number;
550
+ rows: EidosFileRow[];
551
+ /** Opaque cursor for the next contiguous page, when cursor paging is safe. */
552
+ nextCursor?: string;
553
+ }
554
+ interface EidosFileRowGroupCount {
555
+ value: EidosFileSqlPrimitive;
556
+ total: number;
557
+ }
558
+ type EidosFileColumnStatType = "count-all" | "count-non-null" | "count-distinct" | "count-empty" | "percent-checked" | "percent-unchecked" | "sum" | "average" | "min" | "max" | "relation-value-count" | "relation-row-count" | "relation-distinct-target-count";
559
+ interface EidosFileColumnStatConfig {
560
+ fieldId: string;
561
+ type: EidosFileColumnStatType;
562
+ }
563
+ interface EidosFileColumnStatResult extends EidosFileColumnStatConfig {
564
+ value: string | number | null;
565
+ }
566
+ interface EidosFileRowMutationResult {
567
+ tableId: string;
568
+ row: EidosFileRow;
569
+ rowCount: number;
570
+ /** Eidos File metadata revision after the committed mutation. */
571
+ revision?: number | bigint;
572
+ }
573
+ interface EidosFileRowUpdate {
574
+ rowId: string;
575
+ changes: EidosFileRow;
576
+ }
577
+ interface EidosFileRowsMutationResult {
578
+ tableId: string;
579
+ rows: EidosFileRow[];
580
+ rowCount: number;
581
+ /** Eidos File metadata revision after the committed mutation. */
582
+ revision?: number | bigint;
583
+ }
584
+ interface EidosFileRowRange {
585
+ startIndex: number;
586
+ endIndex: number;
587
+ }
588
+ interface EidosFileRowsDeleteResult {
589
+ tableId: string;
590
+ deletedCount: number;
591
+ rowCount: number;
592
+ /** Opaque, session-local token used to undo this deletion. */
593
+ undoToken?: string;
594
+ /** Eidos File metadata revision after the committed mutation. */
595
+ revision?: number | bigint;
596
+ }
597
+ interface EidosFileRowsUndoResult {
598
+ tableId: string;
599
+ rowCount: number;
600
+ /** Opaque token that reverses this operation, enabling redo. */
601
+ undoToken?: string;
602
+ /** Eidos File metadata revision after the committed mutation. */
603
+ revision?: number | bigint;
604
+ }
605
+ interface EidosFileSnapshot {
606
+ path: string;
607
+ metadata: EidosFileMetadata;
608
+ tables: EidosFileTableSnapshot[];
609
+ }
610
+ //#endregion
611
+ //#region src/runtime-contract.d.ts
612
+ interface FileEntry extends JsonObject {
613
+ id: string;
614
+ name: string;
615
+ mediaType: string;
616
+ size: string;
617
+ uri: string;
618
+ }
619
+ type Revision = string;
620
+ type ScalarType = "text" | "number" | "integer" | "checkbox" | "date" | "datetime" | "url" | "select" | "multi-select" | "file" | "relation";
621
+ type AtomicType = "text" | "number" | "integer" | "checkbox" | "date" | "datetime" | "url" | "select" | "row-id" | "file-entry";
622
+ type TypeRef = ScalarType | "row-id" | "file-entry" | {
623
+ kind: "list";
624
+ element: AtomicType;
625
+ };
626
+ type LogicalValue = null | boolean | number | string | FileEntry | LogicalValue[];
627
+ interface RuntimeEnvironment {
628
+ clock: ClockPort;
629
+ entropy: EntropyPort;
630
+ transportCommitBarrier?: TransportCommitBarrier;
631
+ }
632
+ interface RuntimeFactoryContext {
633
+ cancellation: CancellationPort;
634
+ deadlineMilliseconds?: number;
635
+ }
636
+ interface RuntimeCreateInput {
637
+ title: string;
638
+ fileId?: string;
639
+ createdAt?: string;
640
+ }
641
+ interface RuntimeBinding {
642
+ service: RuntimeService;
643
+ hostBridge: RuntimeHostBridge;
644
+ }
645
+ interface RuntimeHostBridge {
646
+ allocateFileEntry(request: {
647
+ name: string;
648
+ mediaType: string;
649
+ size: string;
650
+ uri: string;
651
+ extensions?: Record<string, JsonValue>;
652
+ }, context: RequestContext): Promise<FileEntry>;
653
+ createPublicationSnapshot(request: {
654
+ maxBytes: string;
655
+ }, context: RequestContext): Promise<RuntimePublicationSnapshot>;
656
+ }
657
+ interface RuntimePublicationSnapshot {
658
+ fileId: string;
659
+ revision: string;
660
+ bytes: ByteSource;
661
+ release(): Promise<void>;
662
+ }
663
+ interface RuntimeCapabilities {
664
+ readRows: boolean;
665
+ schemaPaging: boolean;
666
+ cursorPaging: boolean;
667
+ aggregate: boolean;
668
+ groupRows: boolean;
669
+ formulaPreview: boolean;
670
+ mutateRows: boolean;
671
+ mutationUndo: boolean;
672
+ mutateView: boolean;
673
+ schemaPreflight: boolean;
674
+ mutateSchema: boolean;
675
+ validate: boolean;
676
+ events: boolean;
677
+ csvExport: boolean;
678
+ csvImport: boolean;
679
+ }
680
+ interface RuntimeLimits {
681
+ requestBytesMax: number;
682
+ responseBytesMax: number;
683
+ schemaPageSizeMax: number;
684
+ pageSizeMax: number;
685
+ projectionFieldsMax: number;
686
+ rowsByIdMax: number;
687
+ mutationRowsMax: number;
688
+ mutationCellsMax: number;
689
+ mutationBytesMax: number;
690
+ aggregateItemsMax: number;
691
+ groupPageSizeMax: number;
692
+ formulaPreviewRowsMax: number;
693
+ filterDepthMax: number;
694
+ filterNodesMax: number;
695
+ sortFieldsMax: number;
696
+ groupFieldsMax: number;
697
+ searchBytesMax: number;
698
+ listElementsMax: number;
699
+ logicalValueBytesMax: number;
700
+ formulaBytesMax: number;
701
+ formulaNodesMax: number;
702
+ formulaDepthMax: number;
703
+ diagnosticsMax: number;
704
+ foregroundTimeMsMax: number;
705
+ csvBytesMax: number;
706
+ schemaPlanEntriesMax: number;
707
+ schemaPlanBytesMax: number;
708
+ undoEntriesMax: number;
709
+ undoBytesMax: number;
710
+ }
711
+ type RuntimeErrorCode = "invalid-request" | "unsupported" | "not-found" | "already-exists" | "invalid-value" | "invalid-query" | "invalid-formula" | "cycle" | "constraint" | "stale-revision" | "conflict" | "forbidden" | "lossy-confirmation-required" | "invalid-plan" | "plan-expired" | "resource-limit" | "cancelled" | "deadline-exceeded" | "busy" | "corrupt-file" | "adapter-error" | "unknown-commit" | "closed" | "fatal";
712
+ interface RuntimeError {
713
+ code: RuntimeErrorCode;
714
+ message: string;
715
+ retryable: boolean;
716
+ path?: string;
717
+ fileId?: string;
718
+ tableId?: string;
719
+ fieldId?: string;
720
+ rowId?: string;
721
+ currentRevision?: string;
722
+ details?: JsonObject;
723
+ }
724
+ interface RuntimeSnapshot {
725
+ fileId: string;
726
+ format: {
727
+ major: 1;
728
+ minor: 0;
729
+ };
730
+ revision: string;
731
+ title: string;
732
+ defaultTableId: string | null;
733
+ schemaCounts: {
734
+ tables: string;
735
+ fields: string;
736
+ views: string;
737
+ features: string;
738
+ };
739
+ }
740
+ interface TableDescriptor {
741
+ object: "table";
742
+ id: string;
743
+ name: string;
744
+ labelFieldId: string;
745
+ position: string;
746
+ settings: JsonObject;
747
+ }
748
+ interface FieldDescriptor {
749
+ object: "field";
750
+ id: string;
751
+ tableId: string;
752
+ name: string;
753
+ kind: ScalarType | "formula" | "lookup";
754
+ valueType: TypeRef;
755
+ systemRole: "row-id" | "created-time" | "updated-time" | null;
756
+ nullable: boolean;
757
+ position: string;
758
+ settings: JsonObject;
759
+ writable: boolean;
760
+ definition?: RelationDefinition | FormulaDefinition | LookupDefinition;
761
+ }
762
+ interface ViewDescriptor {
763
+ object: "view";
764
+ id: string;
765
+ tableId: string;
766
+ name: string;
767
+ type: string;
768
+ /** Absent means supported for compatibility with older Runtime transports. */
769
+ queryStatus?: "supported" | "unsupported";
770
+ query: SavedViewQuery;
771
+ layout: JsonObject;
772
+ position: string;
773
+ }
774
+ interface FeatureDescriptor {
775
+ object: "feature";
776
+ name: string;
777
+ version: string;
778
+ required: boolean;
779
+ config: JsonObject;
780
+ }
781
+ type SchemaDescriptor = TableDescriptor | FieldDescriptor | ViewDescriptor | FeatureDescriptor;
782
+ interface GetSchemaPageRequest {
783
+ revision: string;
784
+ limit: number;
785
+ cursor?: string;
786
+ }
787
+ interface SchemaPage {
788
+ fileId: string;
789
+ revision: string;
790
+ objects: SchemaDescriptor[];
791
+ nextCursor: string | null;
792
+ }
793
+ interface ProjectionSpec {
794
+ fields: string[];
795
+ resolveRelations: string[];
796
+ }
797
+ interface ColumnDescriptor {
798
+ fieldId: string;
799
+ name: string;
800
+ valueType: TypeRef;
801
+ source: "stored" | "formula" | "lookup" | "inverse-relation";
802
+ writable: boolean;
803
+ }
804
+ interface ProjectedRow {
805
+ id: string;
806
+ values: LogicalValue[];
807
+ resolvedRelations?: Array<{
808
+ column: number;
809
+ items: ResolvedRelationItem[];
810
+ }>;
811
+ }
812
+ type ResolvedRelationItem = {
813
+ id: string;
814
+ state: "unresolved";
815
+ } | {
816
+ id: string;
817
+ state: "resolved";
818
+ labelFieldId: string;
819
+ labelType: TypeRef;
820
+ label: LogicalValue;
821
+ };
822
+ interface RowPage {
823
+ fileId: string;
824
+ tableId: string;
825
+ revision: string;
826
+ projectionHash: string;
827
+ columns: ColumnDescriptor[];
828
+ rows: ProjectedRow[];
829
+ nextCursor: string | null;
830
+ previousCursor: string | null;
831
+ }
832
+ interface RowBatch {
833
+ fileId: string;
834
+ tableId: string;
835
+ revision: string;
836
+ projectionHash: string;
837
+ columns: ColumnDescriptor[];
838
+ rows: ProjectedRow[];
839
+ missingRowIds: string[];
840
+ }
841
+ interface RowQuery {
842
+ filter?: FilterNode;
843
+ search?: {
844
+ text: string;
845
+ fields: string[];
846
+ };
847
+ sort?: Array<{
848
+ fieldId: string;
849
+ direction: "asc" | "desc";
850
+ nulls?: "first" | "last";
851
+ }>;
852
+ }
853
+ type FilterOperand = Exclude<LogicalValue, null>;
854
+ type FilterNode = {
855
+ op: "and" | "or";
856
+ args: FilterNode[];
857
+ } | {
858
+ op: "not";
859
+ arg: FilterNode;
860
+ } | {
861
+ op: "is-null" | "is-not-null";
862
+ fieldId: string;
863
+ } | {
864
+ op: "eq" | "ne" | "lt" | "lte" | "gt" | "gte";
865
+ fieldId: string;
866
+ value: FilterOperand;
867
+ } | {
868
+ op: "between";
869
+ fieldId: string;
870
+ lower: FilterOperand;
871
+ upper: FilterOperand;
872
+ } | {
873
+ op: "in";
874
+ fieldId: string;
875
+ values: FilterOperand[];
876
+ } | {
877
+ op: "contains" | "starts-with" | "ends-with";
878
+ fieldId: string;
879
+ value: string;
880
+ } | {
881
+ op: "has-any" | "has-all";
882
+ fieldId: string;
883
+ values: FilterOperand[];
884
+ } | {
885
+ op: "relation-has";
886
+ fieldId: string;
887
+ rowId: string;
888
+ } | {
889
+ op: "relative-date";
890
+ fieldId: string;
891
+ direction: "past" | "next" | "this";
892
+ unit: "day" | "week" | "month" | "year";
893
+ };
894
+ interface QueryRowsRequest {
895
+ tableId: string;
896
+ query: RowQuery;
897
+ projection: ProjectionSpec;
898
+ limit: number;
899
+ offset?: number;
900
+ cursor?: string;
901
+ direction?: "forward" | "backward";
902
+ }
903
+ /** Neighbours in the effective query order, independent of loaded pages. */
904
+ type RecordNeighbors = {
905
+ found: false;
906
+ } | {
907
+ found: true;
908
+ previousId: string | null;
909
+ nextId: string | null;
910
+ };
911
+ interface GetRecordNeighborsRequest {
912
+ tableId: string;
913
+ rowId: string;
914
+ query: RowQuery;
915
+ }
916
+ interface AggregateRequest {
917
+ tableId: string;
918
+ query?: RowQuery;
919
+ items: AggregateItem[];
920
+ }
921
+ type AggregateItem = {
922
+ key: string;
923
+ op: "count-all";
924
+ } | {
925
+ key: string;
926
+ op: "distinct-values";
927
+ fieldId: string;
928
+ limit: number;
929
+ } | {
930
+ key: string;
931
+ op: "count" | "distinct-count" | "sum" | "average" | "min" | "max";
932
+ fieldId: string;
933
+ } | {
934
+ key: string;
935
+ op: "statistics";
936
+ fieldId: string;
937
+ };
938
+ type AggregateResult = {
939
+ key: string;
940
+ value: LogicalValue;
941
+ } | {
942
+ key: string;
943
+ values: LogicalValue[];
944
+ truncated: boolean;
945
+ } | {
946
+ key: string;
947
+ statistics: ColumnStatistics;
948
+ };
949
+ interface AggregateResponse {
950
+ fileId: string;
951
+ tableId: string;
952
+ revision: string;
953
+ results: AggregateResult[];
954
+ }
955
+ interface ColumnStatistics {
956
+ rows: string;
957
+ nulls: string;
958
+ distinct: string;
959
+ min?: LogicalValue;
960
+ max?: LogicalValue;
961
+ sum?: LogicalValue;
962
+ average?: number | null;
963
+ }
964
+ interface GroupRequest {
965
+ tableId: string;
966
+ query: RowQuery;
967
+ groupBy: string[];
968
+ aggregates: AggregateItem[];
969
+ projection: ProjectionSpec;
970
+ groupLimit: number;
971
+ rowsPerGroup: number;
972
+ cursor?: string;
973
+ direction?: "forward" | "backward";
974
+ }
975
+ interface GroupPage {
976
+ fileId: string;
977
+ tableId: string;
978
+ revision: string;
979
+ projectionHash: string;
980
+ columns: ColumnDescriptor[];
981
+ groups: Array<{
982
+ key: LogicalValue[];
983
+ count: string;
984
+ aggregates: AggregateResult[];
985
+ rows: ProjectedRow[];
986
+ nextRowCursor: string | null;
987
+ }>;
988
+ nextCursor: string | null;
989
+ previousCursor: string | null;
990
+ }
991
+ interface GroupRowsRequest {
992
+ cursor: string;
993
+ limit: number;
994
+ direction?: "forward" | "backward";
995
+ }
996
+ interface GroupRowPage {
997
+ fileId: string;
998
+ tableId: string;
999
+ revision: string;
1000
+ projectionHash: string;
1001
+ columns: ColumnDescriptor[];
1002
+ groupKey: LogicalValue[];
1003
+ rows: ProjectedRow[];
1004
+ nextCursor: string | null;
1005
+ previousCursor: string | null;
1006
+ }
1007
+ interface ForwardRelationDefinition {
1008
+ direction: "forward";
1009
+ targetTableId: string;
1010
+ cardinality: "one" | "many";
1011
+ onDelete: "restrict" | "detach" | "preserve";
1012
+ }
1013
+ interface InverseRelationDefinition {
1014
+ direction: "inverse";
1015
+ targetTableId: string;
1016
+ cardinality: "many";
1017
+ inverseOfFieldId: string;
1018
+ }
1019
+ type RelationDefinition = ForwardRelationDefinition | InverseRelationDefinition;
1020
+ type FormulaResultType = "text" | "number" | "integer" | "checkbox" | "date" | "datetime" | "url";
1021
+ interface FormulaDefinition {
1022
+ sourceText: string;
1023
+ resultType: FormulaResultType;
1024
+ }
1025
+ interface FormulaPreviewRequest {
1026
+ tableId: string;
1027
+ fieldId?: string;
1028
+ candidateName?: string;
1029
+ sourceText: string;
1030
+ declaredResultType: FormulaResultType;
1031
+ rowIds?: string[];
1032
+ }
1033
+ interface FormulaPreviewResult {
1034
+ fileId: string;
1035
+ revision: string;
1036
+ valid: boolean;
1037
+ inferredType?: FormulaResultType;
1038
+ dependencies?: string[];
1039
+ rows?: Array<{
1040
+ rowId: string;
1041
+ value?: LogicalValue;
1042
+ error?: RuntimeError;
1043
+ }>;
1044
+ diagnostics: RuntimeDiagnostic[];
1045
+ diagnosticsTruncated: boolean;
1046
+ }
1047
+ interface LookupDefinition {
1048
+ relationFieldId: string;
1049
+ targetFieldId: string;
1050
+ aggregate: "values" | "first" | "count" | "sum" | "average" | "min" | "max";
1051
+ distinctValues: boolean;
1052
+ }
1053
+ interface RowMutation {
1054
+ tableId: string;
1055
+ expectedRevision: string;
1056
+ returning?: ProjectionSpec;
1057
+ changes: RowChange[];
1058
+ }
1059
+ type RowChange = {
1060
+ kind: "create";
1061
+ clientKey: string;
1062
+ values: Record<string, LogicalValue>;
1063
+ } | {
1064
+ kind: "update";
1065
+ rowId: string;
1066
+ values: Record<string, LogicalValue>;
1067
+ } | {
1068
+ kind: "delete";
1069
+ rowId: string;
1070
+ };
1071
+ interface MutationResult {
1072
+ fileId: string;
1073
+ revision: string;
1074
+ changed: boolean;
1075
+ created: Array<{
1076
+ clientKey: string;
1077
+ rowId: string;
1078
+ }>;
1079
+ affectedRows: Array<{
1080
+ tableId: string;
1081
+ rowId: string;
1082
+ }>;
1083
+ returnedRows?: RowBatch;
1084
+ undoToken?: string;
1085
+ evictedUndoTokens?: string[];
1086
+ }
1087
+ type CreatedSchemaObject = {
1088
+ id: string;
1089
+ object: "table";
1090
+ clientKey: string;
1091
+ } | {
1092
+ id: string;
1093
+ object: "field";
1094
+ clientKey: string;
1095
+ } | {
1096
+ id: string;
1097
+ object: "field";
1098
+ systemRole: "row-id" | "created-time" | "updated-time";
1099
+ };
1100
+ type CommitReconciliation = {
1101
+ operation: "mutateRows" | "revertMutation";
1102
+ result: {
1103
+ fileId: string;
1104
+ revision: string;
1105
+ changed: true;
1106
+ created: Array<{
1107
+ clientKey: string;
1108
+ rowId: string;
1109
+ }>;
1110
+ affectedRows: Array<{
1111
+ tableId: string;
1112
+ rowId: string;
1113
+ }>;
1114
+ };
1115
+ } | {
1116
+ operation: "mutateView";
1117
+ result: {
1118
+ fileId: string;
1119
+ revision: string;
1120
+ changed: true;
1121
+ createdViews: Array<{
1122
+ clientKey: string;
1123
+ viewId: string;
1124
+ }>;
1125
+ affectedViewIds: string[];
1126
+ };
1127
+ } | {
1128
+ operation: "mutateSchema";
1129
+ result: {
1130
+ fileId: string;
1131
+ revision: string;
1132
+ changed: true;
1133
+ createdObjects: CreatedSchemaObject[];
1134
+ affectedTableIds: string[];
1135
+ affectedFieldIds: string[];
1136
+ };
1137
+ } | {
1138
+ operation: "importCsv";
1139
+ result: {
1140
+ fileId: string;
1141
+ tableId: string;
1142
+ revision: string;
1143
+ changed: true;
1144
+ createdRows: Array<{
1145
+ recordIndex: number;
1146
+ rowId: string;
1147
+ }>;
1148
+ };
1149
+ };
1150
+ interface TransportCommitBarrier {
1151
+ prepare(preparation: {
1152
+ fileID: string;
1153
+ baseRevision: string;
1154
+ commitRevision: string;
1155
+ reconciliation: CommitReconciliation;
1156
+ }, context: RequestContext): Promise<void>;
1157
+ }
1158
+ type ViewChange = {
1159
+ kind: "create-view";
1160
+ clientKey: string;
1161
+ tableId: string;
1162
+ name: string;
1163
+ type: string;
1164
+ query: SavedViewQuery;
1165
+ layout: JsonObject;
1166
+ position: string;
1167
+ } | {
1168
+ kind: "update-view";
1169
+ viewId: string;
1170
+ patch: {
1171
+ name?: string;
1172
+ type?: string;
1173
+ query?: SavedViewQuery;
1174
+ layout?: JsonObject;
1175
+ position?: string;
1176
+ };
1177
+ } | {
1178
+ kind: "delete-view";
1179
+ viewId: string;
1180
+ };
1181
+ interface ViewMutationRequest {
1182
+ expectedRevision: string;
1183
+ changes: ViewChange[];
1184
+ }
1185
+ interface ViewMutationResult {
1186
+ fileId: string;
1187
+ revision: string;
1188
+ changed: boolean;
1189
+ createdViews: Array<{
1190
+ clientKey: string;
1191
+ viewId: string;
1192
+ }>;
1193
+ affectedViewIds: string[];
1194
+ }
1195
+ type SchemaChange = SchemaLeafChange | {
1196
+ kind: "batch";
1197
+ changes: SchemaLeafChange[];
1198
+ };
1199
+ type SchemaLeafChange = {
1200
+ kind: "create-table";
1201
+ clientKey: string;
1202
+ name: string;
1203
+ position: string;
1204
+ settings?: JsonObject;
1205
+ fields: NewField[];
1206
+ labelFieldClientKey?: string;
1207
+ } | {
1208
+ kind: "set-file-title";
1209
+ title: string;
1210
+ } | {
1211
+ kind: "set-default-table";
1212
+ tableId: string | null;
1213
+ } | {
1214
+ kind: "delete-table";
1215
+ tableId: string;
1216
+ } | {
1217
+ kind: "rename-table";
1218
+ tableId: string;
1219
+ name: string;
1220
+ } | {
1221
+ kind: "set-table-settings";
1222
+ tableId: string;
1223
+ settings: JsonObject;
1224
+ } | {
1225
+ kind: "set-table-position";
1226
+ tableId: string;
1227
+ position: string;
1228
+ } | {
1229
+ kind: "create-field";
1230
+ tableId: string;
1231
+ field: NewField;
1232
+ } | {
1233
+ kind: "delete-field";
1234
+ fieldId: string;
1235
+ replacementLabelFieldId?: string;
1236
+ } | {
1237
+ kind: "rename-field";
1238
+ fieldId: string;
1239
+ name: string;
1240
+ } | {
1241
+ kind: "set-field-nullable";
1242
+ fieldId: string;
1243
+ nullable: boolean;
1244
+ } | {
1245
+ kind: "set-field-settings";
1246
+ fieldId: string;
1247
+ settings: JsonObject;
1248
+ } | {
1249
+ kind: "set-field-position";
1250
+ fieldId: string;
1251
+ position: string;
1252
+ } | {
1253
+ kind: "set-record-label";
1254
+ tableId: string;
1255
+ fieldId: string;
1256
+ } | {
1257
+ kind: "set-formula";
1258
+ fieldId: string;
1259
+ definition: FormulaDefinition;
1260
+ } | {
1261
+ kind: "set-lookup";
1262
+ fieldId: string;
1263
+ definition: LookupDefinition;
1264
+ } | {
1265
+ kind: "set-relation";
1266
+ fieldId: string;
1267
+ definition: RelationDefinition;
1268
+ } | ConvertFieldChange | {
1269
+ kind: "rename-option";
1270
+ fieldId: string;
1271
+ from: string;
1272
+ to: string;
1273
+ collision: "reject" | "merge";
1274
+ };
1275
+ type StoredFieldType = "text" | "number" | "integer" | "checkbox" | "date" | "datetime" | "url" | "select" | "multi-select" | "file" | "relation";
1276
+ interface NewField {
1277
+ clientKey: string;
1278
+ name: string;
1279
+ kind: StoredFieldType | "formula" | "lookup";
1280
+ position: string;
1281
+ nullable?: boolean;
1282
+ settings?: JsonObject;
1283
+ definition?: RelationDefinition | FormulaDefinition | LookupDefinition;
1284
+ }
1285
+ type ConversionPolicy = "round-binary64" | "truncate-toward-zero" | "round-ties-even" | "zero-false-nonzero-true" | "utc-date" | "first" | "null-to-empty-list";
1286
+ type ScalarStoredFieldType = "text" | "number" | "integer" | "checkbox" | "date" | "datetime" | "url" | "select";
1287
+ type ConvertFieldChange = {
1288
+ kind: "convert-field";
1289
+ fieldId: string;
1290
+ to: ScalarStoredFieldType;
1291
+ toNullable: boolean;
1292
+ policies?: ConversionPolicy[];
1293
+ } | {
1294
+ kind: "convert-field";
1295
+ fieldId: string;
1296
+ to: "multi-select" | "file";
1297
+ policies?: ConversionPolicy[];
1298
+ } | {
1299
+ kind: "convert-field";
1300
+ fieldId: string;
1301
+ to: "relation";
1302
+ definition: ForwardRelationDefinition;
1303
+ policies?: ConversionPolicy[];
1304
+ };
1305
+ interface SchemaPreflightRequest {
1306
+ change: SchemaChange;
1307
+ expectedRevision: string;
1308
+ }
1309
+ interface SchemaPreflightResult {
1310
+ fileId: string;
1311
+ planToken: string;
1312
+ baseRevision: string;
1313
+ actionsHash: string;
1314
+ classification: "metadata-only" | "lossless-rewrite" | "explicit-lossy" | "forbidden";
1315
+ affectedRows: string;
1316
+ dependencyCount: string;
1317
+ dependencies: SchemaDependency[];
1318
+ dependencyCursor?: string;
1319
+ warnings: RuntimeDiagnostic[];
1320
+ warningsTruncated: boolean;
1321
+ valueChanges: SchemaValueChange[];
1322
+ valueChangesTruncated: boolean;
1323
+ expiresInMilliseconds: number;
1324
+ expiresAt: string;
1325
+ }
1326
+ interface SchemaValueChange {
1327
+ code: SchemaValueChangeCode;
1328
+ rows: string;
1329
+ tableId: string;
1330
+ fieldId: string;
1331
+ }
1332
+ type SchemaValueChangeCode = "value-reencoded" | "binary64-rounded" | "fraction-truncated" | "integer-rounded" | "numeric-to-checkbox" | "datetime-to-date" | "null-to-empty-list" | "list-empty-to-null" | "list-tail-dropped" | "relation-detached" | "option-value-renamed" | "option-duplicate-collapsed";
1333
+ interface SchemaDependency {
1334
+ object: "table" | "field" | "view";
1335
+ id: string;
1336
+ }
1337
+ interface SchemaDependencyPage {
1338
+ fileId: string;
1339
+ revision: string;
1340
+ dependencyCount: string;
1341
+ dependencies: SchemaDependency[];
1342
+ nextCursor: string | null;
1343
+ }
1344
+ interface SchemaMutationRequest {
1345
+ planToken: string;
1346
+ expectedRevision: string;
1347
+ actionsHash: string;
1348
+ confirmLossy?: true;
1349
+ }
1350
+ interface SchemaMutationResult {
1351
+ fileId: string;
1352
+ revision: string;
1353
+ changed: boolean;
1354
+ createdObjects: CreatedSchemaObject[];
1355
+ affectedTableIds: string[];
1356
+ affectedFieldIds: string[];
1357
+ }
1358
+ interface SavedViewQuery {
1359
+ filter?: FilterNode;
1360
+ sort?: Array<{
1361
+ fieldId: string;
1362
+ direction: "asc" | "desc";
1363
+ nulls?: "first" | "last";
1364
+ }>;
1365
+ }
1366
+ interface CsvExportRequest {
1367
+ tableId: string;
1368
+ query: RowQuery;
1369
+ fields: string[];
1370
+ includeHeader: boolean;
1371
+ }
1372
+ interface CsvExportResult {
1373
+ fileId: string;
1374
+ tableId: string;
1375
+ revision: string;
1376
+ csv: OwnedBytes;
1377
+ }
1378
+ interface CsvImportRequest {
1379
+ tableId: string;
1380
+ expectedRevision: string;
1381
+ hasHeader: boolean;
1382
+ columns: Array<{
1383
+ csvIndex: number;
1384
+ fieldId: string;
1385
+ }>;
1386
+ csv: OwnedBytes;
1387
+ }
1388
+ interface CsvImportResult {
1389
+ fileId: string;
1390
+ tableId: string;
1391
+ revision: string;
1392
+ changed: boolean;
1393
+ createdRows: Array<{
1394
+ recordIndex: number;
1395
+ rowId: string;
1396
+ }>;
1397
+ undoToken?: string;
1398
+ evictedUndoTokens?: string[];
1399
+ }
1400
+ interface RuntimeEvent {
1401
+ kind: "revision-changed" | "schema-changed" | "fatal";
1402
+ fileId: string;
1403
+ revision: string;
1404
+ tableIds?: string[];
1405
+ fieldIds?: string[];
1406
+ }
1407
+ interface ValidationRequest {
1408
+ level: "identity" | "structural" | "content" | "semantic" | "full";
1409
+ diagnosticsLimit: number;
1410
+ }
1411
+ interface RuntimeDiagnostic {
1412
+ code: RuntimeDiagnosticCode;
1413
+ severity: "fatal" | "error" | "warning" | "info";
1414
+ message?: string;
1415
+ fileId?: string;
1416
+ tableId?: string;
1417
+ fieldId?: string;
1418
+ rowId?: string;
1419
+ viewId?: string;
1420
+ path?: string;
1421
+ sourceByteOffset?: number;
1422
+ relatedFieldIds?: string[];
1423
+ }
1424
+ type RuntimeDiagnosticCode = "file-not-sqlite" | "file-identity-invalid" | "file-format-unsupported" | "file-feature-unsupported" | "file-core-object-invalid" | "file-metadata-invalid" | "file-foreign-key-invalid" | "file-physical-schema-invalid" | "file-definition-invalid" | "file-trigger-invalid" | "file-index-invalid" | "file-extension-invalid" | "file-cell-invalid" | "file-json-invalid" | "file-reference-invalid" | "file-unresolved-relation" | "file-integrity-invalid" | "semantic-field-invalid" | "formula-parse-invalid" | "formula-name-invalid" | "formula-type-invalid" | "semantic-cycle" | "lookup-invalid" | "relation-invalid" | "record-label-invalid" | "view-query-invalid" | "option-catalog-invalid" | "validation-prerequisite-failed" | "fraction-loss" | "precision-loss" | "truthiness-loss" | "time-loss" | "null-distinction-loss" | "list-tail-loss" | "option-merge-loss" | "object-delete-loss" | "dependent-source-rewritten" | "dependency-blocked" | "conversion-domain-invalid" | "non-nullability-blocked" | "relation-definition-invalid" | "cardinality-blocked" | "record-label-blocked" | `x.${string}.${string}`;
1425
+ interface ValidationReport {
1426
+ fileId?: string;
1427
+ revision?: string;
1428
+ level: ValidationRequest["level"];
1429
+ valid: boolean;
1430
+ diagnostics: RuntimeDiagnostic[];
1431
+ truncated: boolean;
1432
+ }
1433
+ interface RuntimeClient {
1434
+ negotiate(request: {
1435
+ protocol: "eidos-runtime";
1436
+ versions: ["1.0"];
1437
+ }, context: RequestContext): Promise<{
1438
+ version: "1.0";
1439
+ capabilities: RuntimeCapabilities;
1440
+ limits: RuntimeLimits;
1441
+ }>;
1442
+ getSnapshot(request: {
1443
+ minimumRevision?: string;
1444
+ }, context: RequestContext): Promise<RuntimeSnapshot>;
1445
+ getSchemaPage(request: GetSchemaPageRequest, context: RequestContext): Promise<SchemaPage>;
1446
+ queryRows(request: QueryRowsRequest, context: RequestContext): Promise<RowPage>;
1447
+ getRecordNeighbors(request: GetRecordNeighborsRequest, context: RequestContext): Promise<RecordNeighbors>;
1448
+ getRowsById(request: {
1449
+ tableId: string;
1450
+ rowIds: string[];
1451
+ projection: ProjectionSpec;
1452
+ }, context: RequestContext): Promise<RowBatch>;
1453
+ aggregate(request: AggregateRequest, context: RequestContext): Promise<AggregateResponse>;
1454
+ groupRows(request: GroupRequest, context: RequestContext): Promise<GroupPage>;
1455
+ queryGroupRows(request: GroupRowsRequest, context: RequestContext): Promise<GroupRowPage>;
1456
+ previewFormula(request: FormulaPreviewRequest, context: RequestContext): Promise<FormulaPreviewResult>;
1457
+ mutateRows(request: RowMutation, context: RequestContext): Promise<MutationResult>;
1458
+ revertMutation?(request: {
1459
+ undoToken: string;
1460
+ expectedRevision: string;
1461
+ }, context: RequestContext): Promise<MutationResult>;
1462
+ mutateView(request: ViewMutationRequest, context: RequestContext): Promise<ViewMutationResult>;
1463
+ preflightSchema(request: SchemaPreflightRequest, context: RequestContext): Promise<SchemaPreflightResult>;
1464
+ getSchemaPlanDependencies(request: {
1465
+ planToken: string;
1466
+ cursor?: string;
1467
+ limit: number;
1468
+ }, context: RequestContext): Promise<SchemaDependencyPage>;
1469
+ mutateSchema(request: SchemaMutationRequest, context: RequestContext): Promise<SchemaMutationResult>;
1470
+ validate(request: ValidationRequest, context: RequestContext): Promise<ValidationReport>;
1471
+ exportCsv?(request: CsvExportRequest, context: RequestContext): Promise<CsvExportResult>;
1472
+ importCsv?(request: CsvImportRequest, context: RequestContext): Promise<CsvImportResult>;
1473
+ cancel(request: {
1474
+ requestId: string;
1475
+ }): Promise<void>;
1476
+ subscribe?(listener: (event: RuntimeEvent) => void): () => void;
1477
+ close(context: RequestContext): Promise<void>;
1478
+ }
1479
+ type RuntimeService = RuntimeClient;
1480
+ //#endregion
1481
+ //#region src/runtime.d.ts
1482
+ declare class EidosFileRuntime {
1483
+ readonly connection: EidosFileConnection;
1484
+ private readonly ownsConnection;
1485
+ private mutationDepth;
1486
+ private mutationInstant;
1487
+ private readonly rowMutationUndoEntries;
1488
+ private rowMutationUndoBytes;
1489
+ private nestedMutationInvalidatesRowUndo;
1490
+ private schemaCache;
1491
+ private readonly nowInstant;
1492
+ private readonly allocateId;
1493
+ constructor(connection: EidosFileConnection, ownsConnection?: boolean, environment?: {
1494
+ nowInstant?: () => string;
1495
+ allocateId?: () => string;
1496
+ });
1497
+ close(): void;
1498
+ inspect(): EidosFileValidationResult;
1499
+ validate(options?: {
1500
+ level?: "identity" | "structural" | "content" | "semantic" | "full";
1501
+ }): EidosFileValidationResult;
1502
+ info(): EidosFileMetadata;
1503
+ metadata(): EidosFileMetadata;
1504
+ private tableRow;
1505
+ private fieldRows;
1506
+ private allSchema;
1507
+ listTables(): EidosFileTableInfo[];
1508
+ getTable(tableId: string): EidosFileTableInfo;
1509
+ listFields(tableId: string): EidosFileFieldInfo[];
1510
+ private fieldByKey;
1511
+ /** @internal Exact Runtime service transaction composition hook. */
1512
+ applyCanonicalMutation<T>(operation: (instant: string) => T, expectedRevision?: number | bigint): T;
1513
+ private mutate;
1514
+ private mutateSchemaState;
1515
+ private operationInstant;
1516
+ private prepareFields;
1517
+ createTable(input: CreateEidosFileTableInput): EidosFileTableInfo;
1518
+ private insertFieldMetadata;
1519
+ private insertFieldSubtypeMetadata;
1520
+ private installRowIdTrigger;
1521
+ private installRelationTriggers;
1522
+ private dropRelationTriggers;
1523
+ updateTable(tableId: string, changes: UpdateEidosFileTableInput): EidosFileTableInfo;
1524
+ deleteTable(tableId: string): boolean;
1525
+ addField(tableId: string, input: CreateEidosFileFieldInput, placement?: EidosFileFieldPlacement): EidosFileFieldInfo;
1526
+ importField(tableId: string, input: ImportEidosFileFieldInput): EidosFileFieldInfo;
1527
+ updateField(tableId: string, fieldKey: string, changes: UpdateEidosFileFieldInput): EidosFileFieldInfo;
1528
+ setFieldNullable(fieldId: string, nullable: boolean): EidosFileFieldInfo;
1529
+ /** @internal Applies a preflighted Runtime 1.0 stored-type conversion. */
1530
+ convertStoredFieldMetadataOnly(fieldId: string, targetType: "text" | "select" | "url", nullable: boolean): EidosFileFieldInfo;
1531
+ /** @internal Applies a preflighted Runtime 1.0 stored-type conversion. */
1532
+ convertStoredField(fieldId: string, targetType: EidosFileFieldType, nullable: boolean, rows: readonly {
1533
+ id: string;
1534
+ value: EidosFileSqlPrimitive;
1535
+ changed: boolean;
1536
+ }[], relation?: {
1537
+ targetTableId: string;
1538
+ cardinality: "one" | "many";
1539
+ onDelete: "restrict" | "detach" | "preserve";
1540
+ }): EidosFileFieldInfo;
1541
+ private rebuildUserTable;
1542
+ private transientTableName;
1543
+ private removeFieldFromViewLayouts;
1544
+ deleteField(tableId: string, fieldKey: string, replacementRecordLabelFieldId?: string): boolean;
1545
+ private viewRow;
1546
+ private mapView;
1547
+ listViews(tableId: string): EidosFileViewInfo[];
1548
+ createView(tableId: string, input: CreateEidosFileViewInput): EidosFileViewInfo;
1549
+ updateView(viewId: string, changes: UpdateEidosFileViewInput): EidosFileViewInfo;
1550
+ duplicateView(viewId: string, name?: string): EidosFileViewInfo;
1551
+ deleteView(viewId: string): boolean;
1552
+ reorderViews(tableId: string, viewIds: string[]): EidosFileViewInfo[];
1553
+ private fieldExpression;
1554
+ private lookupExpression;
1555
+ private relationDisplayExpression;
1556
+ private rowIdSearchTargetTableId;
1557
+ private recordLabelSearchExpression;
1558
+ private rowIdSearchFragmentsExpression;
1559
+ private querySearchFragmentFieldIds;
1560
+ private requiredQueryFieldKeys;
1561
+ private logicalSource;
1562
+ private compatibilityQuery;
1563
+ listRows(tableId: string, options?: {
1564
+ offset?: number;
1565
+ limit?: number;
1566
+ query?: EidosFileRowQuery;
1567
+ }): EidosFileRow[];
1568
+ listRows(tableId: string, limit?: number, offset?: number, query?: EidosFileRowQuery): EidosFileRow[];
1569
+ getRowPage(tableId: string, offset: number, limit: number, query?: EidosFileRowQuery, totalHint?: number, cursor?: string, projection?: EidosFileRowPageProjection): EidosFileRowPage;
1570
+ /** Returns the zero-based position of a Row ID in a filtered/sorted query. */
1571
+ getRowIndex(tableId: string, rowId: string, query?: EidosFileRowQuery): number | null;
1572
+ getRecordNeighbors(tableId: string, rowId: string, query?: EidosFileRowQuery): RecordNeighbors;
1573
+ getRow(tableId: string, rowId: string): EidosFileRow | null;
1574
+ queryRows(tableId: string, options?: {
1575
+ fields?: string[];
1576
+ query?: EidosFileRowQuery;
1577
+ limit?: number;
1578
+ offset?: number;
1579
+ cursor?: string;
1580
+ resolveRelations?: boolean;
1581
+ }): {
1582
+ rows: EidosFileLogicalRow[];
1583
+ nextCursor?: string;
1584
+ };
1585
+ /** @internal Exact primary-key lookup without page totals or cursor work. */
1586
+ getLogicalRowsByIds(tableId: string, rowIds: string[], options?: {
1587
+ fields?: string[];
1588
+ resolveRelations?: boolean;
1589
+ }): EidosFileLogicalRow[];
1590
+ private logicalRows;
1591
+ /**
1592
+ * @internal Exact Runtime aggregate/group scan. One set-based SQL statement
1593
+ * returns typed logical inputs in effective query order; the public Runtime
1594
+ * remains responsible for aggregate arithmetic and response bounds.
1595
+ */
1596
+ runtimeScanLogicalRows(tableId: string, fieldIds: string[], query: EidosFileRowQuery): EidosFileLogicalRow[];
1597
+ /** @internal Builds the keyset boundary used by the exact Runtime service. */
1598
+ createRowCursor(tableId: string, query: EidosFileRowQuery, row: EidosFileLogicalRow): string;
1599
+ countRows(tableId: string, query?: EidosFileRowQuery, referenceInstant?: string): number;
1600
+ countRowsByField(tableId: string, fieldKey: string, query?: EidosFileRowQuery): EidosFileRowGroupCount[];
1601
+ calculateColumnStats(tableId: string, configs: EidosFileColumnStatConfig[], query?: EidosFileRowQuery): EidosFileColumnStatResult[];
1602
+ aggregate(tableId: string, configs: EidosFileColumnStatConfig[], query?: EidosFileRowQuery): EidosFileColumnStatResult[];
1603
+ private normalizeStoredValue;
1604
+ private rowChanges;
1605
+ private insertRowInTransaction;
1606
+ private insertImportedRowsInTransaction;
1607
+ insertRow(tableId: string, row: EidosFileRow): EidosFileRow;
1608
+ insertImportedRow(tableId: string, row: EidosFileRow): EidosFileRow;
1609
+ insertImportedRows(tableId: string, rows: EidosFileRow[]): EidosFileRow[];
1610
+ /** @internal Appends rows inside a caller-owned import transaction. */
1611
+ appendImportedRows(tableId: string, rows: EidosFileRow[]): void;
1612
+ /** @internal Used by the transactional CSV interchange layer. */
1613
+ importTable(table: CreateEidosFileTableInput, rows: EidosFileRow[]): EidosFileTableInfo;
1614
+ updateRow(tableId: string, rowId: string, changes: EidosFileRow): EidosFileRow;
1615
+ updateRows(tableId: string, updates: EidosFileRowUpdate[]): EidosFileRow[];
1616
+ private rowMutationUndoEntryBytes;
1617
+ private prepareRowMutationUndo;
1618
+ private deleteRowMutationUndoEntry;
1619
+ private clearRowMutationUndoEntries;
1620
+ private commitRowMutationUndo;
1621
+ private captureRowDeletionUndoState;
1622
+ private sameUndoPhysicalRow;
1623
+ private assertRepeatRowDeletionApplicable;
1624
+ private restoreRowDeletionUndoState;
1625
+ deleteRowsReversible(tableId: string, rowIds: string[], expectedRevision?: number | bigint, consumedUndoToken?: string): {
1626
+ revision: number | bigint;
1627
+ deleted: string[];
1628
+ affected: Array<{
1629
+ tableId: string;
1630
+ rowId: string;
1631
+ }>;
1632
+ rowCount: number;
1633
+ undoToken?: string;
1634
+ };
1635
+ revertRowMutation(undoToken: string): {
1636
+ revision: number | bigint;
1637
+ affected: Array<{
1638
+ tableId: string;
1639
+ rowId: string;
1640
+ }>;
1641
+ rowCount: number;
1642
+ undoToken?: string;
1643
+ };
1644
+ deleteRow(tableId: string, rowId: string): boolean;
1645
+ deleteRows(tableId: string, rowIds: string[]): string[];
1646
+ private rowIdsForRanges;
1647
+ deleteRowRanges(tableId: string, ranges: EidosFileRowRange[], query?: EidosFileRowQuery): number;
1648
+ deleteRowRangesReversible(tableId: string, ranges: EidosFileRowRange[], query?: EidosFileRowQuery): {
1649
+ revision: number | bigint;
1650
+ deleted: string[];
1651
+ affected: Array<{
1652
+ tableId: string;
1653
+ rowId: string;
1654
+ }>;
1655
+ rowCount: number;
1656
+ undoToken?: string;
1657
+ };
1658
+ previewFormula(tableId: string, input: EidosFileFormulaPreviewInput): EidosFileFormulaPreview;
1659
+ optimizeViewQueries(): void;
1660
+ schema(tableId?: string): {
1661
+ table: EidosFileTableInfo;
1662
+ fields: EidosFileFieldInfo[];
1663
+ views: EidosFileViewInfo[];
1664
+ }[];
1665
+ mutateSchema(operations: EidosFileSchemaMutation[], expectedRevision?: number | bigint): {
1666
+ revision: number | bigint;
1667
+ results: unknown[];
1668
+ };
1669
+ private logicalMutationFields;
1670
+ mutateRows(input: EidosFileRowsMutation): {
1671
+ revision: number | bigint;
1672
+ rows: EidosFileLogicalRow[];
1673
+ deleted: string[]; /** @internal Exact Runtime affected-row composition, including detach. */
1674
+ affected?: Array<{
1675
+ tableId: string;
1676
+ rowId: string;
1677
+ }>;
1678
+ };
1679
+ }
1680
+ //#endregion
1681
+ export { RuntimeCreateInput as $, EidosFileSourceFieldType as $n, EidosFileCsvImportColumn as $t, GroupRequest as A, EidosFileRelativeDateDirection as An, TypeRef as At, QueryRowsRequest as B, EidosFileRowQuery as Bn, CreateEidosFileOptions as Bt, FormulaPreviewRequest as C, EidosFileLogicalValue as Cn, parseNonNegativeInt64 as Cr, SchemaPreflightRequest as Ct, GetRecordNeighborsRequest as D, EidosFileOptionValueChange as Dn, EidosFileSqlParams as Dr, StoredFieldType as Dt, ForwardRelationDefinition as E, EidosFileMetadata as En, EidosFileRunResult as Er, SchemaValueChangeCode as Et, LookupDefinition as F, EidosFileRowGroupCount as Fn, ViewMutationRequest as Ft, RowBatch as G, EidosFileRowsMutation as Gn, EidosFileColumnStatConfig as Gt, RelationDefinition as H, EidosFileRowUpdate as Hn, CreateEidosFileSourceFieldInput as Ht, MutationResult as I, EidosFileRowMutationResult as In, ViewMutationResult as It, RowPage as J, EidosFileSchemaMutation as Jn, EidosFileCsvColumnOverride as Jt, RowChange as K, EidosFileRowsMutationResult as Kn, EidosFileColumnStatResult as Kt, NewField as L, EidosFileRowPage as Ln, CreateEidosFileFieldInput as Lt, GroupRowsRequest as M, EidosFileRelativeDateValue as Mn, ValidationRequest as Mt, InverseRelationDefinition as N, EidosFileResolvedRelationValue as Nn, ViewChange as Nt, GetSchemaPageRequest as O, EidosFileRelationProperty as On, EidosFileSqlPrimitive as Or, TableDescriptor as Ot, LogicalValue as P, EidosFileRow as Pn, ViewDescriptor as Pt, RuntimeClient as Q, EidosFileSortDirection as Qn, EidosFileCsvFieldType as Qt, ProjectedRow as R, EidosFileRowPageOptions as Rn, CreateEidosFileFormulaFieldInput as Rt, FormulaDefinition as S, EidosFileLogicalRowUpdate as Sn, cancellationPortFromSignal as Sr, SchemaPage as St, FormulaResultType as T, EidosFileLookupProperty as Tn, EidosFileConnectionCapabilities as Tr, SchemaValueChange as Tt, ResolvedRelationItem as U, EidosFileRowValue as Un, CreateEidosFileTableInput as Ut, RecordNeighbors as V, EidosFileRowRange as Vn, CreateEidosFileRelationFieldInput as Vt, Revision as W, EidosFileRowsDeleteResult as Wn, CreateEidosFileViewInput as Wt, RuntimeBinding as X, EidosFileSnapshot as Xn, EidosFileCsvExportOptions as Xt, RowQuery as Y, EidosFileSelectOption as Yn, EidosFileCsvExportColumn as Yt, RuntimeCapabilities as Z, EidosFileSort as Zn, EidosFileCsvExportResult as Zt, FeatureDescriptor as _, EidosFileFormulaPreviewSample as _n, JsonValue as _r, SchemaDependencyPage as _t, AggregateResult as a, EidosFileFieldPlacement as an, EidosFileValueKind as ar, RuntimeEvent as at, FilterNode as b, EidosFileLogicalRow as bn, PublicationContext as br, SchemaMutationRequest as bt, ColumnStatistics as c, EidosFileFilterGroup as cn, UpdateEidosFileFieldInput as cr, RuntimeLimits as ct, ConvertFieldChange as d, EidosFileFilterRuleValue as dn, ByteSource as dr, RuntimeSnapshot as dt, EidosFileCsvImportIssue as en, EidosFileStorageCodec as er, RuntimeDiagnostic as et, CreatedSchemaObject as f, EidosFileFilterValue as fn, CancellationPort as fr, SavedViewQuery as ft, CsvImportResult as g, EidosFileFormulaPreviewInput as gn, JsonObject as gr, SchemaDependency as gt, CsvImportRequest as h, EidosFileFormulaPreviewDependency as hn, EntropyPort as hr, SchemaChange as ht, AggregateResponse as i, EidosFileFieldInfo as in, EidosFileValidationResult as ir, RuntimeErrorCode as it, GroupRowPage as j, EidosFileRelativeDateUnit as jn, ValidationReport as jt, GroupPage as k, EidosFileRelationValue as kn, TransportCommitBarrier as kt, CommitReconciliation as l, EidosFileFilterOperator as ln, UpdateEidosFileTableInput as lr, RuntimePublicationSnapshot as lt, CsvExportResult as m, EidosFileFormulaPreview as mn, ClockPort as mr, ScalarType as mt, AggregateItem as n, EidosFileCsvImportPlan as nn, EidosFileTableSnapshot as nr, RuntimeEnvironment as nt, AtomicType as o, EidosFileFieldType as on, EidosFileViewInfo as or, RuntimeFactoryContext as ot, CsvExportRequest as p, EidosFileFormulaDisplayType as pn, CancellationSignal as pr, ScalarStoredFieldType as pt, RowMutation as q, EidosFileRowsUndoResult as qn, EidosFileColumnStatType as qt, AggregateRequest as r, EidosFileCsvImportResult as rn, EidosFileValidationIssue as rr, RuntimeError as rt, ColumnDescriptor as s, EidosFileFileValue as sn, ImportEidosFileFieldInput as sr, RuntimeHostBridge as st, EidosFileRuntime as t, EidosFileCsvImportOptions as tn, EidosFileTableInfo as tr, RuntimeDiagnosticCode as tt, ConversionPolicy as u, EidosFileFilterRule as un, UpdateEidosFileViewInput as ur, RuntimeService as ut, FieldDescriptor as v, EidosFileFormulaProperty as vn, MemoryByteSource as vr, SchemaDescriptor as vt, FormulaPreviewResult as w, EidosFileLookupAggregate as wn, EidosFileConnection as wr, SchemaPreflightResult as wt, FilterOperand as x, EidosFileLogicalRowDraft as xn, RequestContext as xr, SchemaMutationResult as xt, FileEntry as y, EidosFileFormulaResultType as yn, OwnedBytes as yr, SchemaLeafChange as yt, ProjectionSpec as z, EidosFileRowPageProjection as zn, CreateEidosFileLookupFieldInput as zt };
1682
+ //# sourceMappingURL=runtime-CUCgAnbo.d.mts.map