@rocicorp/zero 0.6.2024111701 → 0.6.2024111900

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 (58) hide show
  1. package/out/{chunk-NBTG5EEV.js → chunk-7E5TITAZ.js} +135 -48
  2. package/out/chunk-7E5TITAZ.js.map +7 -0
  3. package/out/shared/src/valita.d.ts.map +1 -1
  4. package/out/shared/src/valita.js +53 -4
  5. package/out/shared/src/valita.js.map +1 -1
  6. package/out/solid.js +1 -1
  7. package/out/zero-cache/src/config/zero-config.d.ts.map +1 -1
  8. package/out/zero-cache/src/config/zero-config.js +12 -4
  9. package/out/zero-cache/src/config/zero-config.js.map +1 -1
  10. package/out/zero-cache/src/services/change-streamer/pg/schema/shard.js +1 -1
  11. package/out/zero-cache/src/services/mutagen/write-authorizer.d.ts.map +1 -1
  12. package/out/zero-cache/src/services/mutagen/write-authorizer.js +15 -35
  13. package/out/zero-cache/src/services/mutagen/write-authorizer.js.map +1 -1
  14. package/out/zero-cache/src/services/view-syncer/cvr.d.ts.map +1 -1
  15. package/out/zero-cache/src/services/view-syncer/cvr.js +8 -2
  16. package/out/zero-cache/src/services/view-syncer/cvr.js.map +1 -1
  17. package/out/zero-cache/src/services/view-syncer/schema/types.d.ts +80 -15
  18. package/out/zero-cache/src/services/view-syncer/schema/types.d.ts.map +1 -1
  19. package/out/zero-protocol/src/ast.d.ts +75 -18
  20. package/out/zero-protocol/src/ast.d.ts.map +1 -1
  21. package/out/zero-protocol/src/ast.js +36 -13
  22. package/out/zero-protocol/src/ast.js.map +1 -1
  23. package/out/zero-protocol/src/change-desired-queries.d.ts +32 -6
  24. package/out/zero-protocol/src/change-desired-queries.d.ts.map +1 -1
  25. package/out/zero-protocol/src/connect.d.ts +32 -6
  26. package/out/zero-protocol/src/connect.d.ts.map +1 -1
  27. package/out/zero-protocol/src/down.d.ts +32 -6
  28. package/out/zero-protocol/src/down.d.ts.map +1 -1
  29. package/out/zero-protocol/src/poke.d.ts +64 -12
  30. package/out/zero-protocol/src/poke.d.ts.map +1 -1
  31. package/out/zero-protocol/src/queries-patch.d.ts +48 -9
  32. package/out/zero-protocol/src/queries-patch.d.ts.map +1 -1
  33. package/out/zero-protocol/src/up.d.ts +32 -6
  34. package/out/zero-protocol/src/up.d.ts.map +1 -1
  35. package/out/zero-schema/src/compiled-authorization.d.ts +224 -42
  36. package/out/zero-schema/src/compiled-authorization.d.ts.map +1 -1
  37. package/out/zero.js +1 -1
  38. package/out/zql/src/builder/builder.d.ts.map +1 -1
  39. package/out/zql/src/builder/builder.js +10 -12
  40. package/out/zql/src/builder/builder.js.map +1 -1
  41. package/out/zql/src/builder/filter.d.ts.map +1 -1
  42. package/out/zql/src/builder/filter.js +20 -5
  43. package/out/zql/src/builder/filter.js.map +1 -1
  44. package/out/zql/src/ivm/memory-source.js +4 -4
  45. package/out/zql/src/ivm/memory-source.js.map +1 -1
  46. package/out/zql/src/query/expression.d.ts +3 -2
  47. package/out/zql/src/query/expression.d.ts.map +1 -1
  48. package/out/zql/src/query/query-impl.d.ts.map +1 -1
  49. package/out/zqlite/src/table-source.d.ts +1 -1
  50. package/out/zqlite/src/table-source.d.ts.map +1 -1
  51. package/out/zqlite/src/table-source.js +38 -10
  52. package/out/zqlite/src/table-source.js.map +1 -1
  53. package/package.json +1 -1
  54. package/out/chunk-NBTG5EEV.js.map +0 -7
  55. package/out/zql/src/builder/error.d.ts +0 -3
  56. package/out/zql/src/builder/error.d.ts.map +0 -1
  57. package/out/zql/src/builder/error.js +0 -3
  58. package/out/zql/src/builder/error.js.map +0 -1
@@ -9,12 +9,25 @@ declare const putOpSchema: v.ObjectType<{
9
9
  where: v.Optional<{
10
10
  type: "simple";
11
11
  op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
12
- field: string;
13
- value: string | number | boolean | readonly (string | number | boolean)[] | {
12
+ left: {
13
+ type: "literal";
14
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
15
+ } | {
16
+ type: "column";
17
+ name: string;
18
+ } | {
14
19
  type: "static";
15
20
  anchor: "authData" | "preMutationRow";
16
21
  field: string;
17
- } | null;
22
+ };
23
+ right: {
24
+ type: "literal";
25
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
26
+ } | {
27
+ type: "static";
28
+ anchor: "authData" | "preMutationRow";
29
+ field: string;
30
+ };
18
31
  } | import("./ast.js").Conjunction | import("./ast.js").Disjunction | {
19
32
  readonly type: "correlatedSubquery";
20
33
  readonly related: import("./ast.js").CorrelatedSubquery;
@@ -46,12 +59,25 @@ declare const patchOpSchema: v.UnionType<[v.ObjectType<{
46
59
  where: v.Optional<{
47
60
  type: "simple";
48
61
  op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
49
- field: string;
50
- value: string | number | boolean | readonly (string | number | boolean)[] | {
62
+ left: {
63
+ type: "literal";
64
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
65
+ } | {
66
+ type: "column";
67
+ name: string;
68
+ } | {
51
69
  type: "static";
52
70
  anchor: "authData" | "preMutationRow";
53
71
  field: string;
54
- } | null;
72
+ };
73
+ right: {
74
+ type: "literal";
75
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
76
+ } | {
77
+ type: "static";
78
+ anchor: "authData" | "preMutationRow";
79
+ field: string;
80
+ };
55
81
  } | import("./ast.js").Conjunction | import("./ast.js").Disjunction | {
56
82
  readonly type: "correlatedSubquery";
57
83
  readonly related: import("./ast.js").CorrelatedSubquery;
@@ -81,12 +107,25 @@ export declare const queriesPatchSchema: v.ArrayType<v.UnionType<[v.ObjectType<{
81
107
  where: v.Optional<{
82
108
  type: "simple";
83
109
  op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
84
- field: string;
85
- value: string | number | boolean | readonly (string | number | boolean)[] | {
110
+ left: {
111
+ type: "literal";
112
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
113
+ } | {
114
+ type: "column";
115
+ name: string;
116
+ } | {
117
+ type: "static";
118
+ anchor: "authData" | "preMutationRow";
119
+ field: string;
120
+ };
121
+ right: {
122
+ type: "literal";
123
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
124
+ } | {
86
125
  type: "static";
87
126
  anchor: "authData" | "preMutationRow";
88
127
  field: string;
89
- } | null;
128
+ };
90
129
  } | import("./ast.js").Conjunction | import("./ast.js").Disjunction | {
91
130
  readonly type: "correlatedSubquery";
92
131
  readonly related: import("./ast.js").CorrelatedSubquery;
@@ -1 +1 @@
1
- {"version":3,"file":"queries-patch.d.ts","sourceRoot":"","sources":["../../../../zero-protocol/src/queries-patch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAGhD,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAIf,CAAC;AAEH,QAAA,MAAM,WAAW;;;aAGf,CAAC;AAEH,QAAA,MAAM,aAAa;;aAEjB,CAAC;AAEH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAAmD,CAAC;AAEvE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAAyB,CAAC;AAEzD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AACvD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AACvD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC3D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC3D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"queries-patch.d.ts","sourceRoot":"","sources":["../../../../zero-protocol/src/queries-patch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAGhD,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAIf,CAAC;AAEH,QAAA,MAAM,WAAW;;;aAGf,CAAC;AAEH,QAAA,MAAM,aAAa;;aAEjB,CAAC;AAEH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAAmD,CAAC;AAEvE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAAyB,CAAC;AAEzD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AACvD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AACvD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC3D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC3D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -10,12 +10,25 @@ export declare const upstreamSchema: v.UnionType<[v.TupleType<[v.Type<"initConne
10
10
  where: v.Optional<{
11
11
  type: "simple";
12
12
  op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
13
- field: string;
14
- value: string | number | boolean | readonly (string | number | boolean)[] | {
13
+ left: {
14
+ type: "literal";
15
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
16
+ } | {
17
+ type: "column";
18
+ name: string;
19
+ } | {
15
20
  type: "static";
16
21
  anchor: "authData" | "preMutationRow";
17
22
  field: string;
18
- } | null;
23
+ };
24
+ right: {
25
+ type: "literal";
26
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
27
+ } | {
28
+ type: "static";
29
+ anchor: "authData" | "preMutationRow";
30
+ field: string;
31
+ };
19
32
  } | import("./ast.js").Conjunction | import("./ast.js").Disjunction | {
20
33
  readonly type: "correlatedSubquery";
21
34
  readonly related: import("./ast.js").CorrelatedSubquery;
@@ -48,12 +61,25 @@ export declare const upstreamSchema: v.UnionType<[v.TupleType<[v.Type<"initConne
48
61
  where: v.Optional<{
49
62
  type: "simple";
50
63
  op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
51
- field: string;
52
- value: string | number | boolean | readonly (string | number | boolean)[] | {
64
+ left: {
65
+ type: "literal";
66
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
67
+ } | {
68
+ type: "column";
69
+ name: string;
70
+ } | {
71
+ type: "static";
72
+ anchor: "authData" | "preMutationRow";
73
+ field: string;
74
+ };
75
+ right: {
76
+ type: "literal";
77
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
78
+ } | {
53
79
  type: "static";
54
80
  anchor: "authData" | "preMutationRow";
55
81
  field: string;
56
- } | null;
82
+ };
57
83
  } | import("./ast.js").Conjunction | import("./ast.js").Disjunction | {
58
84
  readonly type: "correlatedSubquery";
59
85
  readonly related: import("./ast.js").CorrelatedSubquery;
@@ -1 +1 @@
1
- {"version":3,"file":"up.d.ts","sourceRoot":"","sources":["../../../../zero-protocol/src/up.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAQhD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAO1B,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"up.d.ts","sourceRoot":"","sources":["../../../../zero-protocol/src/up.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAQhD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAO1B,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -6,12 +6,25 @@ declare const ruleSchema: v.TupleType<[v.Type<"allow">, v.ObjectType<{
6
6
  where: v.Optional<{
7
7
  type: "simple";
8
8
  op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
9
- field: string;
10
- value: string | number | boolean | readonly (string | number | boolean)[] | {
9
+ left: {
10
+ type: "literal";
11
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
12
+ } | {
13
+ type: "column";
14
+ name: string;
15
+ } | {
11
16
  type: "static";
12
17
  anchor: "authData" | "preMutationRow";
13
18
  field: string;
14
- } | null;
19
+ };
20
+ right: {
21
+ type: "literal";
22
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
23
+ } | {
24
+ type: "static";
25
+ anchor: "authData" | "preMutationRow";
26
+ field: string;
27
+ };
15
28
  } | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
16
29
  readonly type: "correlatedSubquery";
17
30
  readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
@@ -33,12 +46,25 @@ declare const policySchema: v.ArrayType<v.TupleType<[v.Type<"allow">, v.ObjectTy
33
46
  where: v.Optional<{
34
47
  type: "simple";
35
48
  op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
36
- field: string;
37
- value: string | number | boolean | readonly (string | number | boolean)[] | {
49
+ left: {
50
+ type: "literal";
51
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
52
+ } | {
53
+ type: "column";
54
+ name: string;
55
+ } | {
38
56
  type: "static";
39
57
  anchor: "authData" | "preMutationRow";
40
58
  field: string;
41
- } | null;
59
+ };
60
+ right: {
61
+ type: "literal";
62
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
63
+ } | {
64
+ type: "static";
65
+ anchor: "authData" | "preMutationRow";
66
+ field: string;
67
+ };
42
68
  } | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
43
69
  readonly type: "correlatedSubquery";
44
70
  readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
@@ -60,12 +86,25 @@ declare const assetSchema: v.ObjectType<{
60
86
  where?: {
61
87
  type: "simple";
62
88
  op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
63
- field: string;
64
- value: string | number | boolean | readonly (string | number | boolean)[] | {
89
+ left: {
90
+ type: "literal";
91
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
92
+ } | {
93
+ type: "column";
94
+ name: string;
95
+ } | {
65
96
  type: "static";
66
97
  anchor: "authData" | "preMutationRow";
67
98
  field: string;
68
- } | null;
99
+ };
100
+ right: {
101
+ type: "literal";
102
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
103
+ } | {
104
+ type: "static";
105
+ anchor: "authData" | "preMutationRow";
106
+ field: string;
107
+ };
69
108
  } | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
70
109
  readonly type: "correlatedSubquery";
71
110
  readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
@@ -86,12 +125,25 @@ declare const assetSchema: v.ObjectType<{
86
125
  where?: {
87
126
  type: "simple";
88
127
  op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
89
- field: string;
90
- value: string | number | boolean | readonly (string | number | boolean)[] | {
128
+ left: {
129
+ type: "literal";
130
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
131
+ } | {
132
+ type: "column";
133
+ name: string;
134
+ } | {
135
+ type: "static";
136
+ anchor: "authData" | "preMutationRow";
137
+ field: string;
138
+ };
139
+ right: {
140
+ type: "literal";
141
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
142
+ } | {
91
143
  type: "static";
92
144
  anchor: "authData" | "preMutationRow";
93
145
  field: string;
94
- } | null;
146
+ };
95
147
  } | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
96
148
  readonly type: "correlatedSubquery";
97
149
  readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
@@ -112,12 +164,25 @@ declare const assetSchema: v.ObjectType<{
112
164
  where?: {
113
165
  type: "simple";
114
166
  op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
115
- field: string;
116
- value: string | number | boolean | readonly (string | number | boolean)[] | {
167
+ left: {
168
+ type: "literal";
169
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
170
+ } | {
171
+ type: "column";
172
+ name: string;
173
+ } | {
174
+ type: "static";
175
+ anchor: "authData" | "preMutationRow";
176
+ field: string;
177
+ };
178
+ right: {
179
+ type: "literal";
180
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
181
+ } | {
117
182
  type: "static";
118
183
  anchor: "authData" | "preMutationRow";
119
184
  field: string;
120
- } | null;
185
+ };
121
186
  } | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
122
187
  readonly type: "correlatedSubquery";
123
188
  readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
@@ -138,12 +203,25 @@ declare const assetSchema: v.ObjectType<{
138
203
  where?: {
139
204
  type: "simple";
140
205
  op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
141
- field: string;
142
- value: string | number | boolean | readonly (string | number | boolean)[] | {
206
+ left: {
207
+ type: "literal";
208
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
209
+ } | {
210
+ type: "column";
211
+ name: string;
212
+ } | {
143
213
  type: "static";
144
214
  anchor: "authData" | "preMutationRow";
145
215
  field: string;
146
- } | null;
216
+ };
217
+ right: {
218
+ type: "literal";
219
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
220
+ } | {
221
+ type: "static";
222
+ anchor: "authData" | "preMutationRow";
223
+ field: string;
224
+ };
147
225
  } | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
148
226
  readonly type: "correlatedSubquery";
149
227
  readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
@@ -168,12 +246,25 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
168
246
  where?: {
169
247
  type: "simple";
170
248
  op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
171
- field: string;
172
- value: string | number | boolean | readonly (string | number | boolean)[] | {
249
+ left: {
250
+ type: "literal";
251
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
252
+ } | {
253
+ type: "column";
254
+ name: string;
255
+ } | {
256
+ type: "static";
257
+ anchor: "authData" | "preMutationRow";
258
+ field: string;
259
+ };
260
+ right: {
261
+ type: "literal";
262
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
263
+ } | {
173
264
  type: "static";
174
265
  anchor: "authData" | "preMutationRow";
175
266
  field: string;
176
- } | null;
267
+ };
177
268
  } | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
178
269
  readonly type: "correlatedSubquery";
179
270
  readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
@@ -194,12 +285,25 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
194
285
  where?: {
195
286
  type: "simple";
196
287
  op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
197
- field: string;
198
- value: string | number | boolean | readonly (string | number | boolean)[] | {
288
+ left: {
289
+ type: "literal";
290
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
291
+ } | {
292
+ type: "column";
293
+ name: string;
294
+ } | {
199
295
  type: "static";
200
296
  anchor: "authData" | "preMutationRow";
201
297
  field: string;
202
- } | null;
298
+ };
299
+ right: {
300
+ type: "literal";
301
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
302
+ } | {
303
+ type: "static";
304
+ anchor: "authData" | "preMutationRow";
305
+ field: string;
306
+ };
203
307
  } | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
204
308
  readonly type: "correlatedSubquery";
205
309
  readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
@@ -220,12 +324,25 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
220
324
  where?: {
221
325
  type: "simple";
222
326
  op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
223
- field: string;
224
- value: string | number | boolean | readonly (string | number | boolean)[] | {
327
+ left: {
328
+ type: "literal";
329
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
330
+ } | {
331
+ type: "column";
332
+ name: string;
333
+ } | {
334
+ type: "static";
335
+ anchor: "authData" | "preMutationRow";
336
+ field: string;
337
+ };
338
+ right: {
339
+ type: "literal";
340
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
341
+ } | {
225
342
  type: "static";
226
343
  anchor: "authData" | "preMutationRow";
227
344
  field: string;
228
- } | null;
345
+ };
229
346
  } | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
230
347
  readonly type: "correlatedSubquery";
231
348
  readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
@@ -246,12 +363,25 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
246
363
  where?: {
247
364
  type: "simple";
248
365
  op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
249
- field: string;
250
- value: string | number | boolean | readonly (string | number | boolean)[] | {
366
+ left: {
367
+ type: "literal";
368
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
369
+ } | {
370
+ type: "column";
371
+ name: string;
372
+ } | {
373
+ type: "static";
374
+ anchor: "authData" | "preMutationRow";
375
+ field: string;
376
+ };
377
+ right: {
378
+ type: "literal";
379
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
380
+ } | {
251
381
  type: "static";
252
382
  anchor: "authData" | "preMutationRow";
253
383
  field: string;
254
- } | null;
384
+ };
255
385
  } | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
256
386
  readonly type: "correlatedSubquery";
257
387
  readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
@@ -274,12 +404,25 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
274
404
  where?: {
275
405
  type: "simple";
276
406
  op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
277
- field: string;
278
- value: string | number | boolean | readonly (string | number | boolean)[] | {
407
+ left: {
408
+ type: "literal";
409
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
410
+ } | {
411
+ type: "column";
412
+ name: string;
413
+ } | {
279
414
  type: "static";
280
415
  anchor: "authData" | "preMutationRow";
281
416
  field: string;
282
- } | null;
417
+ };
418
+ right: {
419
+ type: "literal";
420
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
421
+ } | {
422
+ type: "static";
423
+ anchor: "authData" | "preMutationRow";
424
+ field: string;
425
+ };
283
426
  } | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
284
427
  readonly type: "correlatedSubquery";
285
428
  readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
@@ -300,12 +443,25 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
300
443
  where?: {
301
444
  type: "simple";
302
445
  op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
303
- field: string;
304
- value: string | number | boolean | readonly (string | number | boolean)[] | {
446
+ left: {
447
+ type: "literal";
448
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
449
+ } | {
450
+ type: "column";
451
+ name: string;
452
+ } | {
305
453
  type: "static";
306
454
  anchor: "authData" | "preMutationRow";
307
455
  field: string;
308
- } | null;
456
+ };
457
+ right: {
458
+ type: "literal";
459
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
460
+ } | {
461
+ type: "static";
462
+ anchor: "authData" | "preMutationRow";
463
+ field: string;
464
+ };
309
465
  } | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
310
466
  readonly type: "correlatedSubquery";
311
467
  readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
@@ -326,12 +482,25 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
326
482
  where?: {
327
483
  type: "simple";
328
484
  op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
329
- field: string;
330
- value: string | number | boolean | readonly (string | number | boolean)[] | {
485
+ left: {
486
+ type: "literal";
487
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
488
+ } | {
489
+ type: "column";
490
+ name: string;
491
+ } | {
331
492
  type: "static";
332
493
  anchor: "authData" | "preMutationRow";
333
494
  field: string;
334
- } | null;
495
+ };
496
+ right: {
497
+ type: "literal";
498
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
499
+ } | {
500
+ type: "static";
501
+ anchor: "authData" | "preMutationRow";
502
+ field: string;
503
+ };
335
504
  } | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
336
505
  readonly type: "correlatedSubquery";
337
506
  readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
@@ -352,12 +521,25 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
352
521
  where?: {
353
522
  type: "simple";
354
523
  op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
355
- field: string;
356
- value: string | number | boolean | readonly (string | number | boolean)[] | {
524
+ left: {
525
+ type: "literal";
526
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
527
+ } | {
528
+ type: "column";
529
+ name: string;
530
+ } | {
531
+ type: "static";
532
+ anchor: "authData" | "preMutationRow";
533
+ field: string;
534
+ };
535
+ right: {
536
+ type: "literal";
537
+ value: string | number | boolean | readonly (string | number | boolean)[] | null;
538
+ } | {
357
539
  type: "static";
358
540
  anchor: "authData" | "preMutationRow";
359
541
  field: string;
360
- } | null;
542
+ };
361
543
  } | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
362
544
  readonly type: "correlatedSubquery";
363
545
  readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
@@ -1 +1 @@
1
- {"version":3,"file":"compiled-authorization.d.ts","sourceRoot":"","sources":["../../../../zero-schema/src/compiled-authorization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAGhD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;eAA2C,CAAC;AAC5D,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAC9C,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;gBAAsB,CAAC;AACzC,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAKf,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAE7D,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAK9B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
package/out/zero.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  escapeLike,
11
11
  getDefaultPuller,
12
12
  makeIDBName
13
- } from "./chunk-NBTG5EEV.js";
13
+ } from "./chunk-7E5TITAZ.js";
14
14
  import "./chunk-HARIWJ2J.js";
15
15
  import "./chunk-5UY46OAF.js";
16
16
  import "./chunk-F5QR3K72.js";
@@ -1 +1 @@
1
- {"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../../../../zql/src/builder/builder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,6BAA6B,CAAC;AAE3D,OAAO,KAAK,EACV,GAAG,EAOH,QAAQ,EAIT,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,oCAAoC,CAAC;AAC5D,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,2CAA2C,CAAC;AAM1E,OAAO,KAAK,EAAC,KAAK,EAAE,OAAO,EAAC,MAAM,oBAAoB,CAAC;AAEvD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAK7C,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACpC,cAAc,EAAE,GAAG,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAEjD;;;OAGG;IACH,aAAa,IAAI,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