@sequenceholdings/orm 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -1
- package/dist/authoring.cjs +1358 -45
- package/dist/authoring.cjs.map +1 -1
- package/dist/authoring.d.cts +223 -2
- package/dist/authoring.d.ts +223 -2
- package/dist/authoring.js +1349 -47
- package/dist/authoring.js.map +1 -1
- package/dist/canonical.cjs +662 -38
- package/dist/canonical.cjs.map +1 -1
- package/dist/canonical.d.cts +696 -53
- package/dist/canonical.d.ts +696 -53
- package/dist/canonical.js +647 -39
- package/dist/canonical.js.map +1 -1
- package/dist/cli.cjs +1808 -247
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +1809 -248
- package/dist/cli.js.map +1 -1
- package/dist/client.cjs +90 -25
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +39 -22
- package/dist/client.d.ts +39 -22
- package/dist/client.js +87 -26
- package/dist/client.js.map +1 -1
- package/dist/compiler.cjs +1325 -285
- package/dist/compiler.cjs.map +1 -1
- package/dist/compiler.d.cts +23 -2
- package/dist/compiler.d.ts +23 -2
- package/dist/compiler.js +1325 -285
- package/dist/compiler.js.map +1 -1
- package/dist/constants-YoFGjIBM.d.cts +99 -0
- package/dist/constants-YoFGjIBM.d.ts +99 -0
- package/dist/dynamic-input.d.cts +1 -0
- package/dist/dynamic-input.d.ts +1 -0
- package/dist/index.cjs +1605 -140
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +230 -113
- package/dist/index.d.ts +230 -113
- package/dist/index.js +1583 -142
- package/dist/index.js.map +1 -1
- package/dist/ir.cjs +727 -38
- package/dist/ir.cjs.map +1 -1
- package/dist/ir.d.cts +539 -21
- package/dist/ir.d.ts +539 -21
- package/dist/ir.js +722 -39
- package/dist/ir.js.map +1 -1
- package/dist/{naming-DCn94LJ4.d.ts → naming-CPfx7EfF.d.ts} +14 -1
- package/dist/{naming-DPglwzkB.d.cts → naming-CU9ThP_E.d.cts} +14 -1
- package/dist/policy-1iZbGnZZ.d.cts +24 -0
- package/dist/policy-1iZbGnZZ.d.ts +24 -0
- package/dist/predicate-v2.cjs +726 -42
- package/dist/predicate-v2.cjs.map +1 -1
- package/dist/predicate-v2.d.cts +2 -1
- package/dist/predicate-v2.d.ts +2 -1
- package/dist/predicate-v2.js +726 -42
- package/dist/predicate-v2.js.map +1 -1
- package/dist/sdl.cjs +858 -54
- package/dist/sdl.cjs.map +1 -1
- package/dist/sdl.d.cts +7 -3
- package/dist/sdl.d.ts +7 -3
- package/dist/sdl.js +856 -55
- package/dist/sdl.js.map +1 -1
- package/package.json +9 -4
- package/templates/orm-namespace/CLAUDE.md +6 -4
- package/templates/orm-namespace/codegen.preset.d.cts +7 -0
- package/templates/orm-namespace/codegen.ts +2 -1
- package/templates/orm-namespace/graphql/example/queries.ts +4 -3
- package/templates/orm-namespace/package.json +2 -1
- package/templates/orm-namespace/schema/tables.ts +3 -2
- package/templates/orm-namespace/sequence.config.ts +7 -11
package/dist/ir.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export { C as CELLS_FIELD, a as CELL_PARTS, b as CellPart, c as cellColumnName } from './constants-YoFGjIBM.js';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Compiled-operation IR — THE frozen contract between the GraphQL compiler
|
|
@@ -123,6 +124,24 @@ declare const limitIrSchema: z.ZodObject<{
|
|
|
123
124
|
max: z.ZodNumber;
|
|
124
125
|
}, z.core.$strip>;
|
|
125
126
|
type LimitIr = z.infer<typeof limitIrSchema>;
|
|
127
|
+
/** One cell of a `cells { … }` block: the parts selected for one column. */
|
|
128
|
+
interface CellSelectionIr {
|
|
129
|
+
alias: string;
|
|
130
|
+
/** Logical column whose cell this is. */
|
|
131
|
+
column: string;
|
|
132
|
+
typename: string;
|
|
133
|
+
parts: Array<{
|
|
134
|
+
alias: string;
|
|
135
|
+
part: 'source' | 'at' | 'by' | 'conflicts';
|
|
136
|
+
/** `conflicts { … }`: the candidate fields selected, in order. */
|
|
137
|
+
fields?: Array<{
|
|
138
|
+
alias: string;
|
|
139
|
+
field: 'source' | 'at' | 'value';
|
|
140
|
+
}>;
|
|
141
|
+
/** `conflicts { … }` element typename. */
|
|
142
|
+
typename?: string;
|
|
143
|
+
}>;
|
|
144
|
+
}
|
|
126
145
|
interface SelectionIr {
|
|
127
146
|
/** GraphQL type name for __typename synthesis + Apollo normalization. */
|
|
128
147
|
typename: string;
|
|
@@ -130,6 +149,12 @@ interface SelectionIr {
|
|
|
130
149
|
alias: string;
|
|
131
150
|
column: string;
|
|
132
151
|
}>;
|
|
152
|
+
/** The typed `cells { … }` block (tables with cell metadata, resolved tables). */
|
|
153
|
+
cells?: {
|
|
154
|
+
alias: string;
|
|
155
|
+
typename: string;
|
|
156
|
+
fields: CellSelectionIr[];
|
|
157
|
+
};
|
|
133
158
|
relations: Array<{
|
|
134
159
|
alias: string;
|
|
135
160
|
link: string;
|
|
@@ -161,6 +186,46 @@ interface SelectionIr {
|
|
|
161
186
|
}
|
|
162
187
|
declare const selectionIrSchema: z.ZodType<SelectionIr>;
|
|
163
188
|
|
|
189
|
+
/**
|
|
190
|
+
* `@prefetch(source:)` on a resolved-table query root: before the SQL runs,
|
|
191
|
+
* the data plane refreshes the named prefetch source for the keys this root
|
|
192
|
+
* addresses. `key` is the single pk value (byPk / `pk: {_eq}`) or the pk list
|
|
193
|
+
* (`pk: {_in}` on batch sources).
|
|
194
|
+
*/
|
|
195
|
+
declare const prefetchPlanIrSchema: z.ZodObject<{
|
|
196
|
+
source: z.ZodString;
|
|
197
|
+
maxStalenessMs: z.ZodOptional<z.ZodNumber>;
|
|
198
|
+
key: z.ZodUnion<readonly [z.ZodObject<{
|
|
199
|
+
one: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
200
|
+
kind: z.ZodLiteral<"literal">;
|
|
201
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
202
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
203
|
+
kind: z.ZodLiteral<"variable">;
|
|
204
|
+
name: z.ZodString;
|
|
205
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
206
|
+
kind: z.ZodLiteral<"claim">;
|
|
207
|
+
key: z.ZodEnum<{
|
|
208
|
+
sub: "sub";
|
|
209
|
+
org: "org";
|
|
210
|
+
}>;
|
|
211
|
+
}, z.core.$strip>], "kind">;
|
|
212
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
213
|
+
many: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
214
|
+
kind: z.ZodLiteral<"literal">;
|
|
215
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
216
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
217
|
+
kind: z.ZodLiteral<"variable">;
|
|
218
|
+
name: z.ZodString;
|
|
219
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
220
|
+
kind: z.ZodLiteral<"claim">;
|
|
221
|
+
key: z.ZodEnum<{
|
|
222
|
+
sub: "sub";
|
|
223
|
+
org: "org";
|
|
224
|
+
}>;
|
|
225
|
+
}, z.core.$strip>], "kind">;
|
|
226
|
+
}, z.core.$strip>]>;
|
|
227
|
+
}, z.core.$strip>;
|
|
228
|
+
type PrefetchPlanIr = z.infer<typeof prefetchPlanIrSchema>;
|
|
164
229
|
/**
|
|
165
230
|
* The date-bucket units a grouped aggregate may apply to a `date` /
|
|
166
231
|
* `timestamptz` group key. A CLOSED enum on purpose: the executor maps each
|
|
@@ -226,6 +291,39 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
226
291
|
variable: z.ZodString;
|
|
227
292
|
negated: z.ZodBoolean;
|
|
228
293
|
}, z.core.$strip>>;
|
|
294
|
+
prefetch: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
295
|
+
source: z.ZodString;
|
|
296
|
+
maxStalenessMs: z.ZodOptional<z.ZodNumber>;
|
|
297
|
+
key: z.ZodUnion<readonly [z.ZodObject<{
|
|
298
|
+
one: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
299
|
+
kind: z.ZodLiteral<"literal">;
|
|
300
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
301
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
302
|
+
kind: z.ZodLiteral<"variable">;
|
|
303
|
+
name: z.ZodString;
|
|
304
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
305
|
+
kind: z.ZodLiteral<"claim">;
|
|
306
|
+
key: z.ZodEnum<{
|
|
307
|
+
sub: "sub";
|
|
308
|
+
org: "org";
|
|
309
|
+
}>;
|
|
310
|
+
}, z.core.$strip>], "kind">;
|
|
311
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
312
|
+
many: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
313
|
+
kind: z.ZodLiteral<"literal">;
|
|
314
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
315
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
316
|
+
kind: z.ZodLiteral<"variable">;
|
|
317
|
+
name: z.ZodString;
|
|
318
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
319
|
+
kind: z.ZodLiteral<"claim">;
|
|
320
|
+
key: z.ZodEnum<{
|
|
321
|
+
sub: "sub";
|
|
322
|
+
org: "org";
|
|
323
|
+
}>;
|
|
324
|
+
}, z.core.$strip>], "kind">;
|
|
325
|
+
}, z.core.$strip>]>;
|
|
326
|
+
}, z.core.$strip>>>;
|
|
229
327
|
}, z.core.$strip>, z.ZodObject<{
|
|
230
328
|
kind: z.ZodLiteral<"byPk">;
|
|
231
329
|
alias: z.ZodString;
|
|
@@ -252,6 +350,39 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
252
350
|
variable: z.ZodString;
|
|
253
351
|
negated: z.ZodBoolean;
|
|
254
352
|
}, z.core.$strip>>;
|
|
353
|
+
prefetch: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
354
|
+
source: z.ZodString;
|
|
355
|
+
maxStalenessMs: z.ZodOptional<z.ZodNumber>;
|
|
356
|
+
key: z.ZodUnion<readonly [z.ZodObject<{
|
|
357
|
+
one: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
358
|
+
kind: z.ZodLiteral<"literal">;
|
|
359
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
360
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
361
|
+
kind: z.ZodLiteral<"variable">;
|
|
362
|
+
name: z.ZodString;
|
|
363
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
364
|
+
kind: z.ZodLiteral<"claim">;
|
|
365
|
+
key: z.ZodEnum<{
|
|
366
|
+
sub: "sub";
|
|
367
|
+
org: "org";
|
|
368
|
+
}>;
|
|
369
|
+
}, z.core.$strip>], "kind">;
|
|
370
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
371
|
+
many: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
372
|
+
kind: z.ZodLiteral<"literal">;
|
|
373
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
374
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
375
|
+
kind: z.ZodLiteral<"variable">;
|
|
376
|
+
name: z.ZodString;
|
|
377
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
378
|
+
kind: z.ZodLiteral<"claim">;
|
|
379
|
+
key: z.ZodEnum<{
|
|
380
|
+
sub: "sub";
|
|
381
|
+
org: "org";
|
|
382
|
+
}>;
|
|
383
|
+
}, z.core.$strip>], "kind">;
|
|
384
|
+
}, z.core.$strip>]>;
|
|
385
|
+
}, z.core.$strip>>>;
|
|
255
386
|
}, z.core.$strip>, z.ZodObject<{
|
|
256
387
|
kind: z.ZodLiteral<"aggregate">;
|
|
257
388
|
alias: z.ZodString;
|
|
@@ -319,7 +450,23 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
319
450
|
deleteByPk: "deleteByPk";
|
|
320
451
|
cowOverride: "cowOverride";
|
|
321
452
|
cowRevert: "cowRevert";
|
|
453
|
+
resolvedWrite: "resolvedWrite";
|
|
322
454
|
}>;
|
|
455
|
+
resolvedAction: z.ZodOptional<z.ZodEnum<{
|
|
456
|
+
insert: "insert";
|
|
457
|
+
update: "update";
|
|
458
|
+
revert: "revert";
|
|
459
|
+
delete: "delete";
|
|
460
|
+
}>>;
|
|
461
|
+
revertColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
462
|
+
writeback: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
463
|
+
source: z.ZodString;
|
|
464
|
+
mode: z.ZodEnum<{
|
|
465
|
+
sync: "sync";
|
|
466
|
+
async: "async";
|
|
467
|
+
}>;
|
|
468
|
+
}, z.core.$strip>>>;
|
|
469
|
+
localOnly: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
323
470
|
alias: z.ZodString;
|
|
324
471
|
table: z.ZodString;
|
|
325
472
|
cowSynced: z.ZodOptional<z.ZodString>;
|
|
@@ -474,14 +621,14 @@ declare const variableIrSchema: z.ZodObject<{
|
|
|
474
621
|
scalar: z.ZodEnum<{
|
|
475
622
|
bigint: "bigint";
|
|
476
623
|
boolean: "boolean";
|
|
477
|
-
uuid: "uuid";
|
|
478
624
|
text: "text";
|
|
625
|
+
date: "date";
|
|
626
|
+
timestamptz: "timestamptz";
|
|
627
|
+
jsonb: "jsonb";
|
|
628
|
+
uuid: "uuid";
|
|
479
629
|
integer: "integer";
|
|
480
630
|
numeric: "numeric";
|
|
481
631
|
double: "double";
|
|
482
|
-
timestamptz: "timestamptz";
|
|
483
|
-
date: "date";
|
|
484
|
-
jsonb: "jsonb";
|
|
485
632
|
}>;
|
|
486
633
|
}, z.core.$strip>, z.ZodObject<{
|
|
487
634
|
kind: z.ZodLiteral<"enum">;
|
|
@@ -526,14 +673,14 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
526
673
|
scalar: z.ZodEnum<{
|
|
527
674
|
bigint: "bigint";
|
|
528
675
|
boolean: "boolean";
|
|
529
|
-
uuid: "uuid";
|
|
530
676
|
text: "text";
|
|
677
|
+
date: "date";
|
|
678
|
+
timestamptz: "timestamptz";
|
|
679
|
+
jsonb: "jsonb";
|
|
680
|
+
uuid: "uuid";
|
|
531
681
|
integer: "integer";
|
|
532
682
|
numeric: "numeric";
|
|
533
683
|
double: "double";
|
|
534
|
-
timestamptz: "timestamptz";
|
|
535
|
-
date: "date";
|
|
536
|
-
jsonb: "jsonb";
|
|
537
684
|
}>;
|
|
538
685
|
}, z.core.$strip>, z.ZodObject<{
|
|
539
686
|
kind: z.ZodLiteral<"enum">;
|
|
@@ -598,6 +745,39 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
598
745
|
variable: z.ZodString;
|
|
599
746
|
negated: z.ZodBoolean;
|
|
600
747
|
}, z.core.$strip>>;
|
|
748
|
+
prefetch: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
749
|
+
source: z.ZodString;
|
|
750
|
+
maxStalenessMs: z.ZodOptional<z.ZodNumber>;
|
|
751
|
+
key: z.ZodUnion<readonly [z.ZodObject<{
|
|
752
|
+
one: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
753
|
+
kind: z.ZodLiteral<"literal">;
|
|
754
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
755
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
756
|
+
kind: z.ZodLiteral<"variable">;
|
|
757
|
+
name: z.ZodString;
|
|
758
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
759
|
+
kind: z.ZodLiteral<"claim">;
|
|
760
|
+
key: z.ZodEnum<{
|
|
761
|
+
sub: "sub";
|
|
762
|
+
org: "org";
|
|
763
|
+
}>;
|
|
764
|
+
}, z.core.$strip>], "kind">;
|
|
765
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
766
|
+
many: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
767
|
+
kind: z.ZodLiteral<"literal">;
|
|
768
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
769
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
770
|
+
kind: z.ZodLiteral<"variable">;
|
|
771
|
+
name: z.ZodString;
|
|
772
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
773
|
+
kind: z.ZodLiteral<"claim">;
|
|
774
|
+
key: z.ZodEnum<{
|
|
775
|
+
sub: "sub";
|
|
776
|
+
org: "org";
|
|
777
|
+
}>;
|
|
778
|
+
}, z.core.$strip>], "kind">;
|
|
779
|
+
}, z.core.$strip>]>;
|
|
780
|
+
}, z.core.$strip>>>;
|
|
601
781
|
}, z.core.$strip>, z.ZodObject<{
|
|
602
782
|
kind: z.ZodLiteral<"byPk">;
|
|
603
783
|
alias: z.ZodString;
|
|
@@ -624,6 +804,39 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
624
804
|
variable: z.ZodString;
|
|
625
805
|
negated: z.ZodBoolean;
|
|
626
806
|
}, z.core.$strip>>;
|
|
807
|
+
prefetch: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
808
|
+
source: z.ZodString;
|
|
809
|
+
maxStalenessMs: z.ZodOptional<z.ZodNumber>;
|
|
810
|
+
key: z.ZodUnion<readonly [z.ZodObject<{
|
|
811
|
+
one: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
812
|
+
kind: z.ZodLiteral<"literal">;
|
|
813
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
814
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
815
|
+
kind: z.ZodLiteral<"variable">;
|
|
816
|
+
name: z.ZodString;
|
|
817
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
818
|
+
kind: z.ZodLiteral<"claim">;
|
|
819
|
+
key: z.ZodEnum<{
|
|
820
|
+
sub: "sub";
|
|
821
|
+
org: "org";
|
|
822
|
+
}>;
|
|
823
|
+
}, z.core.$strip>], "kind">;
|
|
824
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
825
|
+
many: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
826
|
+
kind: z.ZodLiteral<"literal">;
|
|
827
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
828
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
829
|
+
kind: z.ZodLiteral<"variable">;
|
|
830
|
+
name: z.ZodString;
|
|
831
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
832
|
+
kind: z.ZodLiteral<"claim">;
|
|
833
|
+
key: z.ZodEnum<{
|
|
834
|
+
sub: "sub";
|
|
835
|
+
org: "org";
|
|
836
|
+
}>;
|
|
837
|
+
}, z.core.$strip>], "kind">;
|
|
838
|
+
}, z.core.$strip>]>;
|
|
839
|
+
}, z.core.$strip>>>;
|
|
627
840
|
}, z.core.$strip>, z.ZodObject<{
|
|
628
841
|
kind: z.ZodLiteral<"aggregate">;
|
|
629
842
|
alias: z.ZodString;
|
|
@@ -691,7 +904,23 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
691
904
|
deleteByPk: "deleteByPk";
|
|
692
905
|
cowOverride: "cowOverride";
|
|
693
906
|
cowRevert: "cowRevert";
|
|
907
|
+
resolvedWrite: "resolvedWrite";
|
|
694
908
|
}>;
|
|
909
|
+
resolvedAction: z.ZodOptional<z.ZodEnum<{
|
|
910
|
+
insert: "insert";
|
|
911
|
+
update: "update";
|
|
912
|
+
revert: "revert";
|
|
913
|
+
delete: "delete";
|
|
914
|
+
}>>;
|
|
915
|
+
revertColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
916
|
+
writeback: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
917
|
+
source: z.ZodString;
|
|
918
|
+
mode: z.ZodEnum<{
|
|
919
|
+
sync: "sync";
|
|
920
|
+
async: "async";
|
|
921
|
+
}>;
|
|
922
|
+
}, z.core.$strip>>>;
|
|
923
|
+
localOnly: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
695
924
|
alias: z.ZodString;
|
|
696
925
|
table: z.ZodString;
|
|
697
926
|
cowSynced: z.ZodOptional<z.ZodString>;
|
|
@@ -827,6 +1056,99 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
827
1056
|
}, z.core.$strip>], "kind">>;
|
|
828
1057
|
}, z.core.$strip>;
|
|
829
1058
|
type CompiledOperation = z.infer<typeof compiledOperationSchema>;
|
|
1059
|
+
declare const resolvedSourceIrSchema: z.ZodObject<{
|
|
1060
|
+
name: z.ZodString;
|
|
1061
|
+
kind: z.ZodEnum<{
|
|
1062
|
+
manual: "manual";
|
|
1063
|
+
prefetch: "prefetch";
|
|
1064
|
+
etl: "etl";
|
|
1065
|
+
}>;
|
|
1066
|
+
table: z.ZodString;
|
|
1067
|
+
columns: z.ZodArray<z.ZodString>;
|
|
1068
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1069
|
+
fetch: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1070
|
+
shape: z.ZodLiteral<"single">;
|
|
1071
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1072
|
+
shape: z.ZodLiteral<"batch">;
|
|
1073
|
+
maxKeys: z.ZodNumber;
|
|
1074
|
+
}, z.core.$strip>]>>;
|
|
1075
|
+
function: z.ZodOptional<z.ZodObject<{
|
|
1076
|
+
kind: z.ZodEnum<{
|
|
1077
|
+
managed: "managed";
|
|
1078
|
+
native: "native";
|
|
1079
|
+
}>;
|
|
1080
|
+
id: z.ZodString;
|
|
1081
|
+
}, z.core.$strip>>;
|
|
1082
|
+
prefetchDefaults: z.ZodOptional<z.ZodObject<{
|
|
1083
|
+
maxStalenessMs: z.ZodNumber;
|
|
1084
|
+
timeoutMs: z.ZodNumber;
|
|
1085
|
+
onError: z.ZodEnum<{
|
|
1086
|
+
fallback: "fallback";
|
|
1087
|
+
fail: "fail";
|
|
1088
|
+
}>;
|
|
1089
|
+
}, z.core.$strip>>;
|
|
1090
|
+
writeback: z.ZodOptional<z.ZodObject<{
|
|
1091
|
+
columns: z.ZodArray<z.ZodString>;
|
|
1092
|
+
defaultMode: z.ZodEnum<{
|
|
1093
|
+
sync: "sync";
|
|
1094
|
+
async: "async";
|
|
1095
|
+
}>;
|
|
1096
|
+
timeoutMs: z.ZodNumber;
|
|
1097
|
+
clearManualOnConfirm: z.ZodBoolean;
|
|
1098
|
+
}, z.core.$strip>>;
|
|
1099
|
+
}, z.core.$strip>;
|
|
1100
|
+
type ResolvedSourceIr = z.infer<typeof resolvedSourceIrSchema>;
|
|
1101
|
+
declare const resolvedMetaIrSchema: z.ZodObject<{
|
|
1102
|
+
pk: z.ZodString;
|
|
1103
|
+
manual: z.ZodString;
|
|
1104
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
1105
|
+
name: z.ZodString;
|
|
1106
|
+
kind: z.ZodEnum<{
|
|
1107
|
+
manual: "manual";
|
|
1108
|
+
prefetch: "prefetch";
|
|
1109
|
+
etl: "etl";
|
|
1110
|
+
}>;
|
|
1111
|
+
table: z.ZodString;
|
|
1112
|
+
columns: z.ZodArray<z.ZodString>;
|
|
1113
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1114
|
+
fetch: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1115
|
+
shape: z.ZodLiteral<"single">;
|
|
1116
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1117
|
+
shape: z.ZodLiteral<"batch">;
|
|
1118
|
+
maxKeys: z.ZodNumber;
|
|
1119
|
+
}, z.core.$strip>]>>;
|
|
1120
|
+
function: z.ZodOptional<z.ZodObject<{
|
|
1121
|
+
kind: z.ZodEnum<{
|
|
1122
|
+
managed: "managed";
|
|
1123
|
+
native: "native";
|
|
1124
|
+
}>;
|
|
1125
|
+
id: z.ZodString;
|
|
1126
|
+
}, z.core.$strip>>;
|
|
1127
|
+
prefetchDefaults: z.ZodOptional<z.ZodObject<{
|
|
1128
|
+
maxStalenessMs: z.ZodNumber;
|
|
1129
|
+
timeoutMs: z.ZodNumber;
|
|
1130
|
+
onError: z.ZodEnum<{
|
|
1131
|
+
fallback: "fallback";
|
|
1132
|
+
fail: "fail";
|
|
1133
|
+
}>;
|
|
1134
|
+
}, z.core.$strip>>;
|
|
1135
|
+
writeback: z.ZodOptional<z.ZodObject<{
|
|
1136
|
+
columns: z.ZodArray<z.ZodString>;
|
|
1137
|
+
defaultMode: z.ZodEnum<{
|
|
1138
|
+
sync: "sync";
|
|
1139
|
+
async: "async";
|
|
1140
|
+
}>;
|
|
1141
|
+
timeoutMs: z.ZodNumber;
|
|
1142
|
+
clearManualOnConfirm: z.ZodBoolean;
|
|
1143
|
+
}, z.core.$strip>>;
|
|
1144
|
+
}, z.core.$strip>>;
|
|
1145
|
+
deletedBy: z.ZodArray<z.ZodString>;
|
|
1146
|
+
materialized: z.ZodOptional<z.ZodObject<{
|
|
1147
|
+
table: z.ZodString;
|
|
1148
|
+
compute: z.ZodString;
|
|
1149
|
+
}, z.core.$strip>>;
|
|
1150
|
+
}, z.core.$strip>;
|
|
1151
|
+
type ResolvedMetaIr = z.infer<typeof resolvedMetaIrSchema>;
|
|
830
1152
|
/**
|
|
831
1153
|
* Runtime whitelist metadata per table — everything the executor needs to
|
|
832
1154
|
* build Drizzle table objects, validate §4f dynamic inputs, and lower them.
|
|
@@ -843,14 +1165,14 @@ declare const tableMetaIrSchema: z.ZodObject<{
|
|
|
843
1165
|
type: z.ZodUnion<readonly [z.ZodEnum<{
|
|
844
1166
|
bigint: "bigint";
|
|
845
1167
|
boolean: "boolean";
|
|
846
|
-
uuid: "uuid";
|
|
847
1168
|
text: "text";
|
|
1169
|
+
date: "date";
|
|
1170
|
+
timestamptz: "timestamptz";
|
|
1171
|
+
jsonb: "jsonb";
|
|
1172
|
+
uuid: "uuid";
|
|
848
1173
|
integer: "integer";
|
|
849
1174
|
numeric: "numeric";
|
|
850
1175
|
double: "double";
|
|
851
|
-
timestamptz: "timestamptz";
|
|
852
|
-
date: "date";
|
|
853
|
-
jsonb: "jsonb";
|
|
854
1176
|
}>, z.ZodObject<{
|
|
855
1177
|
enum: z.ZodString;
|
|
856
1178
|
values: z.ZodArray<z.ZodString>;
|
|
@@ -875,6 +1197,63 @@ declare const tableMetaIrSchema: z.ZodObject<{
|
|
|
875
1197
|
settable: z.ZodArray<z.ZodString>;
|
|
876
1198
|
appendable: z.ZodArray<z.ZodString>;
|
|
877
1199
|
touchOnUpdate: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1200
|
+
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1201
|
+
at: z.ZodOptional<z.ZodString>;
|
|
1202
|
+
by: z.ZodOptional<z.ZodString>;
|
|
1203
|
+
rev: z.ZodOptional<z.ZodString>;
|
|
1204
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1205
|
+
conflicts: z.ZodOptional<z.ZodString>;
|
|
1206
|
+
}, z.core.$strict>>>;
|
|
1207
|
+
resolved: z.ZodOptional<z.ZodObject<{
|
|
1208
|
+
pk: z.ZodString;
|
|
1209
|
+
manual: z.ZodString;
|
|
1210
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
1211
|
+
name: z.ZodString;
|
|
1212
|
+
kind: z.ZodEnum<{
|
|
1213
|
+
manual: "manual";
|
|
1214
|
+
prefetch: "prefetch";
|
|
1215
|
+
etl: "etl";
|
|
1216
|
+
}>;
|
|
1217
|
+
table: z.ZodString;
|
|
1218
|
+
columns: z.ZodArray<z.ZodString>;
|
|
1219
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1220
|
+
fetch: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1221
|
+
shape: z.ZodLiteral<"single">;
|
|
1222
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1223
|
+
shape: z.ZodLiteral<"batch">;
|
|
1224
|
+
maxKeys: z.ZodNumber;
|
|
1225
|
+
}, z.core.$strip>]>>;
|
|
1226
|
+
function: z.ZodOptional<z.ZodObject<{
|
|
1227
|
+
kind: z.ZodEnum<{
|
|
1228
|
+
managed: "managed";
|
|
1229
|
+
native: "native";
|
|
1230
|
+
}>;
|
|
1231
|
+
id: z.ZodString;
|
|
1232
|
+
}, z.core.$strip>>;
|
|
1233
|
+
prefetchDefaults: z.ZodOptional<z.ZodObject<{
|
|
1234
|
+
maxStalenessMs: z.ZodNumber;
|
|
1235
|
+
timeoutMs: z.ZodNumber;
|
|
1236
|
+
onError: z.ZodEnum<{
|
|
1237
|
+
fallback: "fallback";
|
|
1238
|
+
fail: "fail";
|
|
1239
|
+
}>;
|
|
1240
|
+
}, z.core.$strip>>;
|
|
1241
|
+
writeback: z.ZodOptional<z.ZodObject<{
|
|
1242
|
+
columns: z.ZodArray<z.ZodString>;
|
|
1243
|
+
defaultMode: z.ZodEnum<{
|
|
1244
|
+
sync: "sync";
|
|
1245
|
+
async: "async";
|
|
1246
|
+
}>;
|
|
1247
|
+
timeoutMs: z.ZodNumber;
|
|
1248
|
+
clearManualOnConfirm: z.ZodBoolean;
|
|
1249
|
+
}, z.core.$strip>>;
|
|
1250
|
+
}, z.core.$strip>>;
|
|
1251
|
+
deletedBy: z.ZodArray<z.ZodString>;
|
|
1252
|
+
materialized: z.ZodOptional<z.ZodObject<{
|
|
1253
|
+
table: z.ZodString;
|
|
1254
|
+
compute: z.ZodString;
|
|
1255
|
+
}, z.core.$strip>>;
|
|
1256
|
+
}, z.core.$strip>>;
|
|
878
1257
|
constraints: z.ZodArray<z.ZodObject<{
|
|
879
1258
|
name: z.ZodString;
|
|
880
1259
|
columns: z.ZodArray<z.ZodString>;
|
|
@@ -899,14 +1278,14 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
899
1278
|
type: z.ZodUnion<readonly [z.ZodEnum<{
|
|
900
1279
|
bigint: "bigint";
|
|
901
1280
|
boolean: "boolean";
|
|
902
|
-
uuid: "uuid";
|
|
903
1281
|
text: "text";
|
|
1282
|
+
date: "date";
|
|
1283
|
+
timestamptz: "timestamptz";
|
|
1284
|
+
jsonb: "jsonb";
|
|
1285
|
+
uuid: "uuid";
|
|
904
1286
|
integer: "integer";
|
|
905
1287
|
numeric: "numeric";
|
|
906
1288
|
double: "double";
|
|
907
|
-
timestamptz: "timestamptz";
|
|
908
|
-
date: "date";
|
|
909
|
-
jsonb: "jsonb";
|
|
910
1289
|
}>, z.ZodObject<{
|
|
911
1290
|
enum: z.ZodString;
|
|
912
1291
|
values: z.ZodArray<z.ZodString>;
|
|
@@ -931,6 +1310,63 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
931
1310
|
settable: z.ZodArray<z.ZodString>;
|
|
932
1311
|
appendable: z.ZodArray<z.ZodString>;
|
|
933
1312
|
touchOnUpdate: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1313
|
+
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1314
|
+
at: z.ZodOptional<z.ZodString>;
|
|
1315
|
+
by: z.ZodOptional<z.ZodString>;
|
|
1316
|
+
rev: z.ZodOptional<z.ZodString>;
|
|
1317
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1318
|
+
conflicts: z.ZodOptional<z.ZodString>;
|
|
1319
|
+
}, z.core.$strict>>>;
|
|
1320
|
+
resolved: z.ZodOptional<z.ZodObject<{
|
|
1321
|
+
pk: z.ZodString;
|
|
1322
|
+
manual: z.ZodString;
|
|
1323
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
1324
|
+
name: z.ZodString;
|
|
1325
|
+
kind: z.ZodEnum<{
|
|
1326
|
+
manual: "manual";
|
|
1327
|
+
prefetch: "prefetch";
|
|
1328
|
+
etl: "etl";
|
|
1329
|
+
}>;
|
|
1330
|
+
table: z.ZodString;
|
|
1331
|
+
columns: z.ZodArray<z.ZodString>;
|
|
1332
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1333
|
+
fetch: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1334
|
+
shape: z.ZodLiteral<"single">;
|
|
1335
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1336
|
+
shape: z.ZodLiteral<"batch">;
|
|
1337
|
+
maxKeys: z.ZodNumber;
|
|
1338
|
+
}, z.core.$strip>]>>;
|
|
1339
|
+
function: z.ZodOptional<z.ZodObject<{
|
|
1340
|
+
kind: z.ZodEnum<{
|
|
1341
|
+
managed: "managed";
|
|
1342
|
+
native: "native";
|
|
1343
|
+
}>;
|
|
1344
|
+
id: z.ZodString;
|
|
1345
|
+
}, z.core.$strip>>;
|
|
1346
|
+
prefetchDefaults: z.ZodOptional<z.ZodObject<{
|
|
1347
|
+
maxStalenessMs: z.ZodNumber;
|
|
1348
|
+
timeoutMs: z.ZodNumber;
|
|
1349
|
+
onError: z.ZodEnum<{
|
|
1350
|
+
fallback: "fallback";
|
|
1351
|
+
fail: "fail";
|
|
1352
|
+
}>;
|
|
1353
|
+
}, z.core.$strip>>;
|
|
1354
|
+
writeback: z.ZodOptional<z.ZodObject<{
|
|
1355
|
+
columns: z.ZodArray<z.ZodString>;
|
|
1356
|
+
defaultMode: z.ZodEnum<{
|
|
1357
|
+
sync: "sync";
|
|
1358
|
+
async: "async";
|
|
1359
|
+
}>;
|
|
1360
|
+
timeoutMs: z.ZodNumber;
|
|
1361
|
+
clearManualOnConfirm: z.ZodBoolean;
|
|
1362
|
+
}, z.core.$strip>>;
|
|
1363
|
+
}, z.core.$strip>>;
|
|
1364
|
+
deletedBy: z.ZodArray<z.ZodString>;
|
|
1365
|
+
materialized: z.ZodOptional<z.ZodObject<{
|
|
1366
|
+
table: z.ZodString;
|
|
1367
|
+
compute: z.ZodString;
|
|
1368
|
+
}, z.core.$strip>>;
|
|
1369
|
+
}, z.core.$strip>>;
|
|
934
1370
|
constraints: z.ZodArray<z.ZodObject<{
|
|
935
1371
|
name: z.ZodString;
|
|
936
1372
|
columns: z.ZodArray<z.ZodString>;
|
|
@@ -957,14 +1393,14 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
957
1393
|
scalar: z.ZodEnum<{
|
|
958
1394
|
bigint: "bigint";
|
|
959
1395
|
boolean: "boolean";
|
|
960
|
-
uuid: "uuid";
|
|
961
1396
|
text: "text";
|
|
1397
|
+
date: "date";
|
|
1398
|
+
timestamptz: "timestamptz";
|
|
1399
|
+
jsonb: "jsonb";
|
|
1400
|
+
uuid: "uuid";
|
|
962
1401
|
integer: "integer";
|
|
963
1402
|
numeric: "numeric";
|
|
964
1403
|
double: "double";
|
|
965
|
-
timestamptz: "timestamptz";
|
|
966
|
-
date: "date";
|
|
967
|
-
jsonb: "jsonb";
|
|
968
1404
|
}>;
|
|
969
1405
|
}, z.core.$strip>, z.ZodObject<{
|
|
970
1406
|
kind: z.ZodLiteral<"enum">;
|
|
@@ -1029,6 +1465,39 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
1029
1465
|
variable: z.ZodString;
|
|
1030
1466
|
negated: z.ZodBoolean;
|
|
1031
1467
|
}, z.core.$strip>>;
|
|
1468
|
+
prefetch: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1469
|
+
source: z.ZodString;
|
|
1470
|
+
maxStalenessMs: z.ZodOptional<z.ZodNumber>;
|
|
1471
|
+
key: z.ZodUnion<readonly [z.ZodObject<{
|
|
1472
|
+
one: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1473
|
+
kind: z.ZodLiteral<"literal">;
|
|
1474
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
1475
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1476
|
+
kind: z.ZodLiteral<"variable">;
|
|
1477
|
+
name: z.ZodString;
|
|
1478
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1479
|
+
kind: z.ZodLiteral<"claim">;
|
|
1480
|
+
key: z.ZodEnum<{
|
|
1481
|
+
sub: "sub";
|
|
1482
|
+
org: "org";
|
|
1483
|
+
}>;
|
|
1484
|
+
}, z.core.$strip>], "kind">;
|
|
1485
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1486
|
+
many: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1487
|
+
kind: z.ZodLiteral<"literal">;
|
|
1488
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
1489
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1490
|
+
kind: z.ZodLiteral<"variable">;
|
|
1491
|
+
name: z.ZodString;
|
|
1492
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1493
|
+
kind: z.ZodLiteral<"claim">;
|
|
1494
|
+
key: z.ZodEnum<{
|
|
1495
|
+
sub: "sub";
|
|
1496
|
+
org: "org";
|
|
1497
|
+
}>;
|
|
1498
|
+
}, z.core.$strip>], "kind">;
|
|
1499
|
+
}, z.core.$strip>]>;
|
|
1500
|
+
}, z.core.$strip>>>;
|
|
1032
1501
|
}, z.core.$strip>, z.ZodObject<{
|
|
1033
1502
|
kind: z.ZodLiteral<"byPk">;
|
|
1034
1503
|
alias: z.ZodString;
|
|
@@ -1055,6 +1524,39 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
1055
1524
|
variable: z.ZodString;
|
|
1056
1525
|
negated: z.ZodBoolean;
|
|
1057
1526
|
}, z.core.$strip>>;
|
|
1527
|
+
prefetch: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1528
|
+
source: z.ZodString;
|
|
1529
|
+
maxStalenessMs: z.ZodOptional<z.ZodNumber>;
|
|
1530
|
+
key: z.ZodUnion<readonly [z.ZodObject<{
|
|
1531
|
+
one: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1532
|
+
kind: z.ZodLiteral<"literal">;
|
|
1533
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
1534
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1535
|
+
kind: z.ZodLiteral<"variable">;
|
|
1536
|
+
name: z.ZodString;
|
|
1537
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1538
|
+
kind: z.ZodLiteral<"claim">;
|
|
1539
|
+
key: z.ZodEnum<{
|
|
1540
|
+
sub: "sub";
|
|
1541
|
+
org: "org";
|
|
1542
|
+
}>;
|
|
1543
|
+
}, z.core.$strip>], "kind">;
|
|
1544
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1545
|
+
many: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1546
|
+
kind: z.ZodLiteral<"literal">;
|
|
1547
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
1548
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1549
|
+
kind: z.ZodLiteral<"variable">;
|
|
1550
|
+
name: z.ZodString;
|
|
1551
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1552
|
+
kind: z.ZodLiteral<"claim">;
|
|
1553
|
+
key: z.ZodEnum<{
|
|
1554
|
+
sub: "sub";
|
|
1555
|
+
org: "org";
|
|
1556
|
+
}>;
|
|
1557
|
+
}, z.core.$strip>], "kind">;
|
|
1558
|
+
}, z.core.$strip>]>;
|
|
1559
|
+
}, z.core.$strip>>>;
|
|
1058
1560
|
}, z.core.$strip>, z.ZodObject<{
|
|
1059
1561
|
kind: z.ZodLiteral<"aggregate">;
|
|
1060
1562
|
alias: z.ZodString;
|
|
@@ -1122,7 +1624,23 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
1122
1624
|
deleteByPk: "deleteByPk";
|
|
1123
1625
|
cowOverride: "cowOverride";
|
|
1124
1626
|
cowRevert: "cowRevert";
|
|
1627
|
+
resolvedWrite: "resolvedWrite";
|
|
1125
1628
|
}>;
|
|
1629
|
+
resolvedAction: z.ZodOptional<z.ZodEnum<{
|
|
1630
|
+
insert: "insert";
|
|
1631
|
+
update: "update";
|
|
1632
|
+
revert: "revert";
|
|
1633
|
+
delete: "delete";
|
|
1634
|
+
}>>;
|
|
1635
|
+
revertColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1636
|
+
writeback: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1637
|
+
source: z.ZodString;
|
|
1638
|
+
mode: z.ZodEnum<{
|
|
1639
|
+
sync: "sync";
|
|
1640
|
+
async: "async";
|
|
1641
|
+
}>;
|
|
1642
|
+
}, z.core.$strip>>>;
|
|
1643
|
+
localOnly: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1126
1644
|
alias: z.ZodString;
|
|
1127
1645
|
table: z.ZodString;
|
|
1128
1646
|
cowSynced: z.ZodOptional<z.ZodString>;
|
|
@@ -1272,4 +1790,4 @@ declare function normalizeIr(raw: unknown): CompiledArtifact;
|
|
|
1272
1790
|
/** Index an artifact's operations by opHash (the wire selector). */
|
|
1273
1791
|
declare function indexByHash(artifact: CompiledArtifact): Map<string, CompiledOperation>;
|
|
1274
1792
|
|
|
1275
|
-
export { CLAIMS_CONTRACT, CMP_OPS, type ClaimKey, type CmpOp, type CompiledArtifact, type CompiledOperation, DATE_BUCKETS, type DateBucket, type GroupByKeyIr, INPUT_REF_KINDS, IR_VERSION, type InputRefKind, IrVersionError, LEGACY_IR_VERSION, type LimitIr, type OrderIr, type PredIr, type RootIr, type SelectionIr, type TableMetaIr, type ValueIr, type VariableDefaultIr, type VariableIr, compiledArtifactSchema, compiledOperationSchema, indexByHash, limitIrSchema, normalizeIr, orderIrSchema, predIrSchema, requiredArtifactIrVersion, rootIrSchema, selectionIrSchema, tableMetaIrSchema, valueIrSchema, variableDefaultIrSchema, variableIrSchema };
|
|
1793
|
+
export { CLAIMS_CONTRACT, CMP_OPS, type CellSelectionIr, type ClaimKey, type CmpOp, type CompiledArtifact, type CompiledOperation, DATE_BUCKETS, type DateBucket, type GroupByKeyIr, INPUT_REF_KINDS, IR_VERSION, type InputRefKind, IrVersionError, LEGACY_IR_VERSION, type LimitIr, type OrderIr, type PredIr, type PrefetchPlanIr, type ResolvedMetaIr, type ResolvedSourceIr, type RootIr, type SelectionIr, type TableMetaIr, type ValueIr, type VariableDefaultIr, type VariableIr, compiledArtifactSchema, compiledOperationSchema, indexByHash, limitIrSchema, normalizeIr, orderIrSchema, predIrSchema, prefetchPlanIrSchema, requiredArtifactIrVersion, resolvedMetaIrSchema, resolvedSourceIrSchema, rootIrSchema, selectionIrSchema, tableMetaIrSchema, valueIrSchema, variableDefaultIrSchema, variableIrSchema };
|