effect-app 4.0.0-beta.284 → 4.0.0-beta.285

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.
@@ -58,7 +58,7 @@ export declare const CommandMetaData: S.Struct<{
58
58
  }>, never>;
59
59
  };
60
60
  readonly dataDependencies: S.Struct<{
61
- readonly reads: S.$Array<S.Struct<{
61
+ readonly reads: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
62
62
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
63
63
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
64
64
  Default: A;
@@ -70,8 +70,81 @@ export declare const CommandMetaData: S.Struct<{
70
70
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
71
71
  };
72
72
  readonly name: S.String;
73
- }>> & {
74
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
73
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
74
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
75
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
76
+ Default: A;
77
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
78
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
79
+ };
80
+ Default: "repo";
81
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
82
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
83
+ };
84
+ readonly name: S.String;
85
+ }, "Type">>>, S.$Array<S.Struct<{
86
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
87
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
88
+ Default: A;
89
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
90
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
91
+ };
92
+ Default: "repo";
93
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
94
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
95
+ };
96
+ readonly name: S.String;
97
+ }>>, never, never> & {
98
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
99
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
100
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
101
+ Default: A;
102
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
103
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
104
+ };
105
+ Default: "repo";
106
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
107
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
108
+ };
109
+ readonly name: S.String;
110
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
111
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
112
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
113
+ Default: A;
114
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
115
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
116
+ };
117
+ Default: "repo";
118
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
119
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
120
+ };
121
+ readonly name: S.String;
122
+ }, "Type">>>, S.$Array<S.Struct<{
123
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
124
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
125
+ Default: A;
126
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
127
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
128
+ };
129
+ Default: "repo";
130
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
131
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
132
+ };
133
+ readonly name: S.String;
134
+ }>>, never, never>>;
135
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
136
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
137
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
138
+ Default: A;
139
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
140
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
141
+ };
142
+ Default: "repo";
143
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
144
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
145
+ };
146
+ readonly name: S.String;
147
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
75
148
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
76
149
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
77
150
  Default: A;
@@ -83,8 +156,7 @@ export declare const CommandMetaData: S.Struct<{
83
156
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
84
157
  };
85
158
  readonly name: S.String;
86
- }>>>;
87
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
159
+ }, "Type">>>, S.$Array<S.Struct<{
88
160
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
89
161
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
90
162
  Default: A;
@@ -96,9 +168,33 @@ export declare const CommandMetaData: S.Struct<{
96
168
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
97
169
  };
98
170
  readonly name: S.String;
99
- }>>, never>;
171
+ }>>, never, never>, never>;
100
172
  };
101
- readonly writes: S.$Array<S.Struct<{
173
+ readonly writes: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
174
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
175
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
176
+ Default: A;
177
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
178
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
179
+ };
180
+ Default: "repo";
181
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
182
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
183
+ };
184
+ readonly name: S.String;
185
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
186
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
187
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
188
+ Default: A;
189
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
190
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
191
+ };
192
+ Default: "repo";
193
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
194
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
195
+ };
196
+ readonly name: S.String;
197
+ }, "Type">>>, S.$Array<S.Struct<{
102
198
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
103
199
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
104
200
  Default: A;
@@ -110,8 +206,57 @@ export declare const CommandMetaData: S.Struct<{
110
206
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
111
207
  };
112
208
  readonly name: S.String;
113
- }>> & {
114
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
209
+ }>>, never, never> & {
210
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
211
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
212
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
213
+ Default: A;
214
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
215
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
216
+ };
217
+ Default: "repo";
218
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
219
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
220
+ };
221
+ readonly name: S.String;
222
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
223
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
224
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
225
+ Default: A;
226
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
227
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
228
+ };
229
+ Default: "repo";
230
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
231
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
232
+ };
233
+ readonly name: S.String;
234
+ }, "Type">>>, S.$Array<S.Struct<{
235
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
236
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
237
+ Default: A;
238
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
239
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
240
+ };
241
+ Default: "repo";
242
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
243
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
244
+ };
245
+ readonly name: S.String;
246
+ }>>, never, never>>;
247
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
248
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
249
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
250
+ Default: A;
251
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
252
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
253
+ };
254
+ Default: "repo";
255
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
256
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
257
+ };
258
+ readonly name: S.String;
259
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
115
260
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
116
261
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
117
262
  Default: A;
@@ -123,8 +268,7 @@ export declare const CommandMetaData: S.Struct<{
123
268
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
124
269
  };
125
270
  readonly name: S.String;
126
- }>>>;
127
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
271
+ }, "Type">>>, S.$Array<S.Struct<{
128
272
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
129
273
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
130
274
  Default: A;
@@ -136,7 +280,7 @@ export declare const CommandMetaData: S.Struct<{
136
280
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
137
281
  };
138
282
  readonly name: S.String;
139
- }>>, never>;
283
+ }>>, never, never>, never>;
140
284
  };
141
285
  }>;
142
286
  }>;
@@ -147,7 +291,31 @@ export declare const QueryResponseWithMetaData: <S extends S.Top>(success: S) =>
147
291
  readonly payload: S;
148
292
  readonly metadata: S.Struct<{
149
293
  readonly dataDependencies: S.Struct<{
150
- readonly reads: S.$Array<S.Struct<{
294
+ readonly reads: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
295
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
296
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
297
+ Default: A;
298
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
299
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
300
+ };
301
+ Default: "repo";
302
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
303
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
304
+ };
305
+ readonly name: S.String;
306
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
307
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
308
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
309
+ Default: A;
310
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
311
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
312
+ };
313
+ Default: "repo";
314
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
315
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
316
+ };
317
+ readonly name: S.String;
318
+ }, "Type">>>, S.$Array<S.Struct<{
151
319
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
152
320
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
153
321
  Default: A;
@@ -159,8 +327,8 @@ export declare const QueryResponseWithMetaData: <S extends S.Top>(success: S) =>
159
327
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
160
328
  };
161
329
  readonly name: S.String;
162
- }>> & {
163
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
330
+ }>>, never, never> & {
331
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
164
332
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
165
333
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
166
334
  Default: A;
@@ -172,8 +340,7 @@ export declare const QueryResponseWithMetaData: <S extends S.Top>(success: S) =>
172
340
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
173
341
  };
174
342
  readonly name: S.String;
175
- }>>>;
176
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
343
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
177
344
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
178
345
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
179
346
  Default: A;
@@ -185,22 +352,32 @@ export declare const QueryResponseWithMetaData: <S extends S.Top>(success: S) =>
185
352
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
186
353
  };
187
354
  readonly name: S.String;
188
- }>>, never>;
189
- };
190
- readonly writes: S.$Array<S.Struct<{
191
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
192
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
193
- Default: A;
355
+ }, "Type">>>, S.$Array<S.Struct<{
356
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
357
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
358
+ Default: A;
359
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
360
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
361
+ };
362
+ Default: "repo";
194
363
  withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
195
364
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
196
365
  };
197
- Default: "repo";
198
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
199
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
200
- };
201
- readonly name: S.String;
202
- }>> & {
203
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
366
+ readonly name: S.String;
367
+ }>>, never, never>>;
368
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
369
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
370
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
371
+ Default: A;
372
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
373
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
374
+ };
375
+ Default: "repo";
376
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
377
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
378
+ };
379
+ readonly name: S.String;
380
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
204
381
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
205
382
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
206
383
  Default: A;
@@ -212,8 +389,7 @@ export declare const QueryResponseWithMetaData: <S extends S.Top>(success: S) =>
212
389
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
213
390
  };
214
391
  readonly name: S.String;
215
- }>>>;
216
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
392
+ }, "Type">>>, S.$Array<S.Struct<{
217
393
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
218
394
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
219
395
  Default: A;
@@ -225,35 +401,33 @@ export declare const QueryResponseWithMetaData: <S extends S.Top>(success: S) =>
225
401
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
226
402
  };
227
403
  readonly name: S.String;
228
- }>>, never>;
404
+ }>>, never, never>, never>;
229
405
  };
230
- }>;
231
- }>;
232
- }>;
233
- /**
234
- * Wraps a command's success schema so that the wire format carries both the `payload`
235
- * (the handler's actual return value) and `metadata` (server-driven cache invalidation keys).
236
- * Transparent to users: the server handler returns the plain payload and the client receives
237
- * the plain payload — wrapping/unwrapping is handled internally by the routing layer.
238
- */
239
- export declare const CommandResponseWithMetaData: <S extends S.Top>(success: S) => S.Struct<{
240
- readonly payload: S;
241
- readonly metadata: S.Struct<{
242
- readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
243
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
244
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
245
- }> & {
246
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
247
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
248
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
249
- }>>;
250
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
251
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
252
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
253
- }>, never>;
254
- };
255
- readonly dataDependencies: S.Struct<{
256
- readonly reads: S.$Array<S.Struct<{
406
+ readonly writes: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
407
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
408
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
409
+ Default: A;
410
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
411
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
412
+ };
413
+ Default: "repo";
414
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
415
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
416
+ };
417
+ readonly name: S.String;
418
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
419
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
420
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
421
+ Default: A;
422
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
423
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
424
+ };
425
+ Default: "repo";
426
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
427
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
428
+ };
429
+ readonly name: S.String;
430
+ }, "Type">>>, S.$Array<S.Struct<{
257
431
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
258
432
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
259
433
  Default: A;
@@ -265,8 +439,8 @@ export declare const CommandResponseWithMetaData: <S extends S.Top>(success: S)
265
439
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
266
440
  };
267
441
  readonly name: S.String;
268
- }>> & {
269
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
442
+ }>>, never, never> & {
443
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
270
444
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
271
445
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
272
446
  Default: A;
@@ -278,8 +452,7 @@ export declare const CommandResponseWithMetaData: <S extends S.Top>(success: S)
278
452
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
279
453
  };
280
454
  readonly name: S.String;
281
- }>>>;
282
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
455
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
283
456
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
284
457
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
285
458
  Default: A;
@@ -291,22 +464,20 @@ export declare const CommandResponseWithMetaData: <S extends S.Top>(success: S)
291
464
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
292
465
  };
293
466
  readonly name: S.String;
294
- }>>, never>;
295
- };
296
- readonly writes: S.$Array<S.Struct<{
297
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
298
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
299
- Default: A;
467
+ }, "Type">>>, S.$Array<S.Struct<{
468
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
469
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
470
+ Default: A;
471
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
472
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
473
+ };
474
+ Default: "repo";
300
475
  withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
301
476
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
302
477
  };
303
- Default: "repo";
304
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
305
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
306
- };
307
- readonly name: S.String;
308
- }>> & {
309
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
478
+ readonly name: S.String;
479
+ }>>, never, never>>;
480
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
310
481
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
311
482
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
312
483
  Default: A;
@@ -318,8 +489,7 @@ export declare const CommandResponseWithMetaData: <S extends S.Top>(success: S)
318
489
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
319
490
  };
320
491
  readonly name: S.String;
321
- }>>>;
322
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
492
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
323
493
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
324
494
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
325
495
  Default: A;
@@ -331,21 +501,31 @@ export declare const CommandResponseWithMetaData: <S extends S.Top>(success: S)
331
501
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
332
502
  };
333
503
  readonly name: S.String;
334
- }>>, never>;
335
- };
336
- }>;
337
- }>;
338
- }>;
339
- /**
340
- * Wraps a command's failure schema so that the wire format carries both the `error`
341
- * (the handler's actual failure value) and `metadata` (server-driven cache invalidation keys
342
- * accumulated thus far before the failure occurred).
343
- * Transparent to users: the server handler fails with the plain error and the client receives
344
- * the plain error — wrapping/unwrapping is handled internally by the routing layer.
504
+ }, "Type">>>, S.$Array<S.Struct<{
505
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
506
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
507
+ Default: A;
508
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
509
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
510
+ };
511
+ Default: "repo";
512
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
513
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
514
+ };
515
+ readonly name: S.String;
516
+ }>>, never, never>, never>;
517
+ };
518
+ }>;
519
+ }>;
520
+ }>;
521
+ /**
522
+ * Wraps a command's success schema so that the wire format carries both the `payload`
523
+ * (the handler's actual return value) and `metadata` (server-driven cache invalidation keys).
524
+ * Transparent to users: the server handler returns the plain payload and the client receives
525
+ * the plain payload — wrapping/unwrapping is handled internally by the routing layer.
345
526
  */
346
- export declare const CommandFailureWithMetaData: <E extends S.Top>(error: E) => S.Struct<{
347
- readonly _tag: S.Literal<"CommandFailureWithMetaData">;
348
- readonly error: E;
527
+ export declare const CommandResponseWithMetaData: <S extends S.Top>(success: S) => S.Struct<{
528
+ readonly payload: S;
349
529
  readonly metadata: S.Struct<{
350
530
  readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
351
531
  withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
@@ -361,7 +541,31 @@ export declare const CommandFailureWithMetaData: <E extends S.Top>(error: E) =>
361
541
  }>, never>;
362
542
  };
363
543
  readonly dataDependencies: S.Struct<{
364
- readonly reads: S.$Array<S.Struct<{
544
+ readonly reads: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
545
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
546
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
547
+ Default: A;
548
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
549
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
550
+ };
551
+ Default: "repo";
552
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
553
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
554
+ };
555
+ readonly name: S.String;
556
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
557
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
558
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
559
+ Default: A;
560
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
561
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
562
+ };
563
+ Default: "repo";
564
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
565
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
566
+ };
567
+ readonly name: S.String;
568
+ }, "Type">>>, S.$Array<S.Struct<{
365
569
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
366
570
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
367
571
  Default: A;
@@ -373,8 +577,8 @@ export declare const CommandFailureWithMetaData: <E extends S.Top>(error: E) =>
373
577
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
374
578
  };
375
579
  readonly name: S.String;
376
- }>> & {
377
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
580
+ }>>, never, never> & {
581
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
378
582
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
379
583
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
380
584
  Default: A;
@@ -386,8 +590,7 @@ export declare const CommandFailureWithMetaData: <E extends S.Top>(error: E) =>
386
590
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
387
591
  };
388
592
  readonly name: S.String;
389
- }>>>;
390
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
593
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
391
594
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
392
595
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
393
596
  Default: A;
@@ -399,22 +602,7 @@ export declare const CommandFailureWithMetaData: <E extends S.Top>(error: E) =>
399
602
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
400
603
  };
401
604
  readonly name: S.String;
402
- }>>, never>;
403
- };
404
- readonly writes: S.$Array<S.Struct<{
405
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
406
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
407
- Default: A;
408
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
409
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
410
- };
411
- Default: "repo";
412
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
413
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
414
- };
415
- readonly name: S.String;
416
- }>> & {
417
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
605
+ }, "Type">>>, S.$Array<S.Struct<{
418
606
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
419
607
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
420
608
  Default: A;
@@ -426,8 +614,8 @@ export declare const CommandFailureWithMetaData: <E extends S.Top>(error: E) =>
426
614
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
427
615
  };
428
616
  readonly name: S.String;
429
- }>>>;
430
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
617
+ }>>, never, never>>;
618
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
431
619
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
432
620
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
433
621
  Default: A;
@@ -439,56 +627,7 @@ export declare const CommandFailureWithMetaData: <E extends S.Top>(error: E) =>
439
627
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
440
628
  };
441
629
  readonly name: S.String;
442
- }>>, never>;
443
- };
444
- }>;
445
- }>;
446
- }>;
447
- /**
448
- * Stream chunk schema for stream responses with metadata.
449
- * Each item is either a data value, an intermediate "metadata" signal carrying cache
450
- * invalidation keys accumulated since the previous drain, or a final "done" signal.
451
- * Transparent to users: stream handlers return plain values and clients receive plain values —
452
- * wrapping/unwrapping is handled internally by the routing layer.
453
- *
454
- * The "done" chunk is always the last item in the stream and carries any remaining invalidation
455
- * keys. An optional "metadata" chunk may appear after any "value" chunk and carries keys
456
- * accumulated since the last drain (V3: mid-stream invalidation).
457
- */
458
- export declare const StreamResponseChunk: <S extends S.Top>(success: S) => S.Union<readonly [S.Struct<{
459
- readonly _tag: S.Literal<"value">;
460
- readonly value: S;
461
- }>, S.Struct<{
462
- readonly _tag: S.Literal<"metadata">;
463
- readonly metadata: S.Struct<{
464
- readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
465
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
466
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
467
- }> & {
468
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
469
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
470
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
471
- }>>;
472
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
473
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
474
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
475
- }>, never>;
476
- };
477
- readonly dataDependencies: S.Struct<{
478
- readonly reads: S.$Array<S.Struct<{
479
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
480
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
481
- Default: A;
482
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
483
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
484
- };
485
- Default: "repo";
486
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
487
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
488
- };
489
- readonly name: S.String;
490
- }>> & {
491
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
630
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
492
631
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
493
632
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
494
633
  Default: A;
@@ -500,8 +639,7 @@ export declare const StreamResponseChunk: <S extends S.Top>(success: S) => S.Uni
500
639
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
501
640
  };
502
641
  readonly name: S.String;
503
- }>>>;
504
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
642
+ }, "Type">>>, S.$Array<S.Struct<{
505
643
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
506
644
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
507
645
  Default: A;
@@ -513,9 +651,33 @@ export declare const StreamResponseChunk: <S extends S.Top>(success: S) => S.Uni
513
651
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
514
652
  };
515
653
  readonly name: S.String;
516
- }>>, never>;
654
+ }>>, never, never>, never>;
517
655
  };
518
- readonly writes: S.$Array<S.Struct<{
656
+ readonly writes: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
657
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
658
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
659
+ Default: A;
660
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
661
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
662
+ };
663
+ Default: "repo";
664
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
665
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
666
+ };
667
+ readonly name: S.String;
668
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
669
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
670
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
671
+ Default: A;
672
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
673
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
674
+ };
675
+ Default: "repo";
676
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
677
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
678
+ };
679
+ readonly name: S.String;
680
+ }, "Type">>>, S.$Array<S.Struct<{
519
681
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
520
682
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
521
683
  Default: A;
@@ -527,8 +689,8 @@ export declare const StreamResponseChunk: <S extends S.Top>(success: S) => S.Uni
527
689
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
528
690
  };
529
691
  readonly name: S.String;
530
- }>> & {
531
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
692
+ }>>, never, never> & {
693
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
532
694
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
533
695
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
534
696
  Default: A;
@@ -540,8 +702,7 @@ export declare const StreamResponseChunk: <S extends S.Top>(success: S) => S.Uni
540
702
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
541
703
  };
542
704
  readonly name: S.String;
543
- }>>>;
544
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
705
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
545
706
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
546
707
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
547
708
  Default: A;
@@ -553,41 +714,7 @@ export declare const StreamResponseChunk: <S extends S.Top>(success: S) => S.Uni
553
714
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
554
715
  };
555
716
  readonly name: S.String;
556
- }>>, never>;
557
- };
558
- }>;
559
- }>;
560
- }>, S.Struct<{
561
- readonly _tag: S.Literal<"done">;
562
- readonly metadata: S.Struct<{
563
- readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
564
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
565
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
566
- }> & {
567
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
568
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
569
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
570
- }>>;
571
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
572
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
573
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
574
- }>, never>;
575
- };
576
- readonly dataDependencies: S.Struct<{
577
- readonly reads: S.$Array<S.Struct<{
578
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
579
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
580
- Default: A;
581
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
582
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
583
- };
584
- Default: "repo";
585
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
586
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
587
- };
588
- readonly name: S.String;
589
- }>> & {
590
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
717
+ }, "Type">>>, S.$Array<S.Struct<{
591
718
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
592
719
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
593
720
  Default: A;
@@ -599,8 +726,8 @@ export declare const StreamResponseChunk: <S extends S.Top>(success: S) => S.Uni
599
726
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
600
727
  };
601
728
  readonly name: S.String;
602
- }>>>;
603
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
729
+ }>>, never, never>>;
730
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
604
731
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
605
732
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
606
733
  Default: A;
@@ -612,22 +739,7 @@ export declare const StreamResponseChunk: <S extends S.Top>(success: S) => S.Uni
612
739
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
613
740
  };
614
741
  readonly name: S.String;
615
- }>>, never>;
616
- };
617
- readonly writes: S.$Array<S.Struct<{
618
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
619
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
620
- Default: A;
621
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
622
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
623
- };
624
- Default: "repo";
625
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
626
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
627
- };
628
- readonly name: S.String;
629
- }>> & {
630
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
742
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
631
743
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
632
744
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
633
745
  Default: A;
@@ -639,8 +751,7 @@ export declare const StreamResponseChunk: <S extends S.Top>(success: S) => S.Uni
639
751
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
640
752
  };
641
753
  readonly name: S.String;
642
- }>>>;
643
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
754
+ }, "Type">>>, S.$Array<S.Struct<{
644
755
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
645
756
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
646
757
  Default: A;
@@ -652,28 +763,20 @@ export declare const StreamResponseChunk: <S extends S.Top>(success: S) => S.Uni
652
763
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
653
764
  };
654
765
  readonly name: S.String;
655
- }>>, never>;
766
+ }>>, never, never>, never>;
656
767
  };
657
768
  }>;
658
769
  }>;
659
- }>]>;
660
- export type StreamResponseChunk<A> = {
661
- readonly _tag: "value";
662
- readonly value: A;
663
- } | {
664
- readonly _tag: "metadata";
665
- readonly metadata: CommandMetaData;
666
- } | {
667
- readonly _tag: "done";
668
- readonly metadata: CommandMetaData;
669
- };
770
+ }>;
670
771
  /**
671
- * Stream chunk schema for stream failures with metadata.
672
- * Used to signal a stream failure while still carrying cache invalidation keys
673
- * accumulated thus far.
772
+ * Wraps a command's failure schema so that the wire format carries both the `error`
773
+ * (the handler's actual failure value) and `metadata` (server-driven cache invalidation keys
774
+ * accumulated thus far before the failure occurred).
775
+ * Transparent to users: the server handler fails with the plain error and the client receives
776
+ * the plain error — wrapping/unwrapping is handled internally by the routing layer.
674
777
  */
675
- export declare const StreamFailureChunk: <E extends S.Top>(error: E) => S.Struct<{
676
- readonly _tag: S.Literal<"error">;
778
+ export declare const CommandFailureWithMetaData: <E extends S.Top>(error: E) => S.Struct<{
779
+ readonly _tag: S.Literal<"CommandFailureWithMetaData">;
677
780
  readonly error: E;
678
781
  readonly metadata: S.Struct<{
679
782
  readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
@@ -690,7 +793,31 @@ export declare const StreamFailureChunk: <E extends S.Top>(error: E) => S.Struct
690
793
  }>, never>;
691
794
  };
692
795
  readonly dataDependencies: S.Struct<{
693
- readonly reads: S.$Array<S.Struct<{
796
+ readonly reads: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
797
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
798
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
799
+ Default: A;
800
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
801
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
802
+ };
803
+ Default: "repo";
804
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
805
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
806
+ };
807
+ readonly name: S.String;
808
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
809
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
810
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
811
+ Default: A;
812
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
813
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
814
+ };
815
+ Default: "repo";
816
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
817
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
818
+ };
819
+ readonly name: S.String;
820
+ }, "Type">>>, S.$Array<S.Struct<{
694
821
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
695
822
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
696
823
  Default: A;
@@ -702,8 +829,8 @@ export declare const StreamFailureChunk: <E extends S.Top>(error: E) => S.Struct
702
829
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
703
830
  };
704
831
  readonly name: S.String;
705
- }>> & {
706
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
832
+ }>>, never, never> & {
833
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
707
834
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
708
835
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
709
836
  Default: A;
@@ -715,8 +842,7 @@ export declare const StreamFailureChunk: <E extends S.Top>(error: E) => S.Struct
715
842
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
716
843
  };
717
844
  readonly name: S.String;
718
- }>>>;
719
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
845
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
720
846
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
721
847
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
722
848
  Default: A;
@@ -728,22 +854,32 @@ export declare const StreamFailureChunk: <E extends S.Top>(error: E) => S.Struct
728
854
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
729
855
  };
730
856
  readonly name: S.String;
731
- }>>, never>;
732
- };
733
- readonly writes: S.$Array<S.Struct<{
734
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
735
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
736
- Default: A;
857
+ }, "Type">>>, S.$Array<S.Struct<{
858
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
859
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
860
+ Default: A;
861
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
862
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
863
+ };
864
+ Default: "repo";
737
865
  withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
738
866
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
739
867
  };
740
- Default: "repo";
741
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
742
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
743
- };
744
- readonly name: S.String;
745
- }>> & {
746
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
868
+ readonly name: S.String;
869
+ }>>, never, never>>;
870
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
871
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
872
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
873
+ Default: A;
874
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
875
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
876
+ };
877
+ Default: "repo";
878
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
879
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
880
+ };
881
+ readonly name: S.String;
882
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
747
883
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
748
884
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
749
885
  Default: A;
@@ -755,8 +891,7 @@ export declare const StreamFailureChunk: <E extends S.Top>(error: E) => S.Struct
755
891
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
756
892
  };
757
893
  readonly name: S.String;
758
- }>>>;
759
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
894
+ }, "Type">>>, S.$Array<S.Struct<{
760
895
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
761
896
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
762
897
  Default: A;
@@ -768,120 +903,139 @@ export declare const StreamFailureChunk: <E extends S.Top>(error: E) => S.Struct
768
903
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
769
904
  };
770
905
  readonly name: S.String;
771
- }>>, never>;
906
+ }>>, never, never>, never>;
772
907
  };
773
- }>;
774
- }>;
775
- }>;
776
- export type StreamFailureChunk<E> = {
777
- readonly _tag: "error";
778
- readonly error: E;
779
- readonly metadata: CommandMetaData;
780
- };
781
- /**
782
- * Context annotation for declaring static cache invalidation keys on a low-level `Rpc` definition.
783
- * These keys are always included in the command response metadata, regardless of the handler logic.
784
- *
785
- * Prefer using `makeQueryKey` over raw string arrays to stay in sync with the actual query
786
- * definitions without manual string maintenance:
787
- *
788
- * ```ts
789
- * import { makeQueryKey } from "effect-app/client"
790
- * import { Invalidation } from "effect-app/rpc"
791
- * import * as UserRsc from "../User/index.js" // separate module to avoid circular deps
792
- *
793
- * class UpdateProfile extends Rpc.make("UpdateProfile", { ... })
794
- * .annotate(Invalidation.Invalidates, [makeQueryKey(UserRsc.GetMe), makeQueryKey(UserRsc.GetProfile)]) {}
795
- * ```
796
- *
797
- * **Circular dependency note:** if mutations and queries live in the same file you may hit a
798
- * circular reference at evaluation time. The idiomatic fix is to move mutations into their own
799
- * module (e.g. `User/mutations.ts`) that directly imports the relevant query classes rather than
800
- * re-exporting them through a barrel.
801
- *
802
- * For the higher-level `Command`/`Query` builders from `makeRpcClient`, use the
803
- * `invalidatesQueries` callback argument instead (it receives the same query keys at runtime).
804
- */
805
- export declare const Invalidates: Context.Reference<readonly (readonly S.Json[])[]>;
806
- export type Invalidates = typeof Invalidates;
807
- /** The shape of the per-request service that accumulates invalidation keys. */
808
- export interface InvalidationSetService {
809
- readonly add: (input: InvalidationKeyInput | ReadonlyArray<InvalidationKeyInput>) => Effect.Effect<void>;
810
- readonly get: Effect.Effect<ReadonlyArray<InvalidationKey>>;
811
- /**
812
- * V3: Reads all currently accumulated keys and resets the bucket to empty.
813
- * Used by the stream routing layer to emit intermediate "metadata" chunks
814
- * without re-sending keys that have already been forwarded to the client.
815
- */
816
- readonly drain: Effect.Effect<ReadonlyArray<InvalidationKey>>;
817
- }
908
+ readonly writes: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
909
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
910
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
911
+ Default: A;
912
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
913
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
914
+ };
915
+ Default: "repo";
916
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
917
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
918
+ };
919
+ readonly name: S.String;
920
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
921
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
922
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
923
+ Default: A;
924
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
925
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
926
+ };
927
+ Default: "repo";
928
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
929
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
930
+ };
931
+ readonly name: S.String;
932
+ }, "Type">>>, S.$Array<S.Struct<{
933
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
934
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
935
+ Default: A;
936
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
937
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
938
+ };
939
+ Default: "repo";
940
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
941
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
942
+ };
943
+ readonly name: S.String;
944
+ }>>, never, never> & {
945
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
946
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
947
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
948
+ Default: A;
949
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
950
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
951
+ };
952
+ Default: "repo";
953
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
954
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
955
+ };
956
+ readonly name: S.String;
957
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
958
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
959
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
960
+ Default: A;
961
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
962
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
963
+ };
964
+ Default: "repo";
965
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
966
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
967
+ };
968
+ readonly name: S.String;
969
+ }, "Type">>>, S.$Array<S.Struct<{
970
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
971
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
972
+ Default: A;
973
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
974
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
975
+ };
976
+ Default: "repo";
977
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
978
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
979
+ };
980
+ readonly name: S.String;
981
+ }>>, never, never>>;
982
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
983
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
984
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
985
+ Default: A;
986
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
987
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
988
+ };
989
+ Default: "repo";
990
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
991
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
992
+ };
993
+ readonly name: S.String;
994
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
995
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
996
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
997
+ Default: A;
998
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
999
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1000
+ };
1001
+ Default: "repo";
1002
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1003
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1004
+ };
1005
+ readonly name: S.String;
1006
+ }, "Type">>>, S.$Array<S.Struct<{
1007
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1008
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1009
+ Default: A;
1010
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1011
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1012
+ };
1013
+ Default: "repo";
1014
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1015
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1016
+ };
1017
+ readonly name: S.String;
1018
+ }>>, never, never>, never>;
1019
+ };
1020
+ }>;
1021
+ }>;
1022
+ }>;
818
1023
  /**
819
- * Request-scoped service for accumulating invalidation keys dynamically inside a handler.
820
- * Provided by `InvalidationMiddlewareLive` for every RPC call; has a no-op default so it is
821
- * safe to use even when the HTTP middleware is absent (tests, workers, etc.).
822
- *
823
- * Use `InvalidationSet.add(key)` as a shorthand to skip `.use(_ => _.add(key))`. The
824
- * underlying service is still available via `.use` / `.useSync` for advanced cases.
825
- *
826
- * `add` accepts an RPC handler directly (e.g. `UserRsc.GetMe`) — its query key is derived via
827
- * `makeQueryKey` so keys stay in sync with the actual query definitions. Raw `InvalidationKey`
828
- * arrays and arrays of either form are also accepted.
829
- *
830
- * ```ts
831
- * import * as Effect from "effect/Effect"
832
- * import { Invalidation } from "effect-app/rpc"
833
- * import * as CartRsc from "../Cart/queries.js"
834
- * import * as UserRsc from "../User/queries.js"
835
- *
836
- * const handler = Effect.fnUntraced(function*(req: UpdateCartRequest) {
837
- * const cart = yield* CartRepo.save(req.cart)
838
- *
839
- * // single handler
840
- * yield* Invalidation.InvalidationSet.add(UserRsc.GetMe)
841
- *
842
- * // batch
843
- * if (cart.isCheckedOut) {
844
- * yield* Invalidation.InvalidationSet.add([CartRsc.GetCartStats, UserRsc.GetMe])
845
- * }
846
- *
847
- * return cart
848
- * })
849
- * ```
1024
+ * Stream chunk schema for stream responses with metadata.
1025
+ * Each item is either a data value, an intermediate "metadata" signal carrying cache
1026
+ * invalidation keys accumulated since the previous drain, or a final "done" signal.
1027
+ * Transparent to users: stream handlers return plain values and clients receive plain values —
1028
+ * wrapping/unwrapping is handled internally by the routing layer.
850
1029
  *
851
- * You can combine static (`Invalidates` annotation) and dynamic (`InvalidationSet.use`) keys:
852
- * the annotation pre-populates the set before the handler runs; dynamic additions accumulate
853
- * throughout the handler. All keys are included in the command response metadata.
854
- */
855
- declare const InvalidationSetRef: Context.Reference<InvalidationSetService>;
856
- export declare const InvalidationSet: Context.Reference<InvalidationSetService> & {
857
- /**
858
- * Shortcut for `InvalidationSet.use(_ => _.add(input))`. Accepts a single
859
- * `InvalidationKeyInput` or an array of them.
860
- */
861
- add: (input: InvalidationKeyInput | ReadonlyArray<InvalidationKeyInput>) => Effect.Effect<void, never, never>;
862
- };
863
- export type InvalidationSet = typeof InvalidationSetRef;
864
- /** Creates a fresh `InvalidationSet` implementation backed by a `Ref`. */
865
- export declare const makeInvalidationSet: (ref: Ref.Ref<ReadonlyArray<InvalidationKey>>) => InvalidationSetService;
866
- /**
867
- * `Rpc.Custom` definition for command RPCs that wrap the success/error schemas
868
- * with `CommandResponseWithMetaData` / `CommandFailureWithMetaData`. The wrap
869
- * lets server forward accumulated invalidation keys on both success and
870
- * handler-thrown failure paths. Middleware-thrown errors bypass the wrap
871
- * (the handler never ran, so no metadata) and flow raw at the Cause level —
872
- * the client decodes them via the `rpc.middlewares[*].error` failure-union
873
- * channel of `Rpc.exitSchema`.
874
- */
875
- export interface CommandRpc extends Rpc.Custom {
876
- readonly out: Rpc.Custom.Out<ReturnType<typeof CommandResponseWithMetaData<this["success"] & S.Top>>, ReturnType<typeof CommandFailureWithMetaData<this["error"] & S.Top>>>;
877
- }
878
- /**
879
- * Custom Rpc constructor for command RPCs.
880
- * Wraps the success schema with `CommandResponseWithMetaData` and the error
881
- * schema with `CommandFailureWithMetaData`.
1030
+ * The "done" chunk is always the last item in the stream and carries any remaining invalidation
1031
+ * keys. An optional "metadata" chunk may appear after any "value" chunk and carries keys
1032
+ * accumulated since the last drain (V3: mid-stream invalidation).
882
1033
  */
883
- export declare const makeCommandRpc: <const Tag extends string, Payload extends S.Top | import("effect/Schema").Struct.Fields = S.Void_, Success extends S.Top = S.Void_, Error extends S.Top = S.Never, const Stream extends boolean = false, Out extends Rpc.Custom.OutDefault = Rpc.Custom.Out<S.Struct<{
884
- readonly payload: S.Top & Success;
1034
+ export declare const StreamResponseChunk: <S extends S.Top>(success: S) => S.Union<readonly [S.Struct<{
1035
+ readonly _tag: S.Literal<"value">;
1036
+ readonly value: S;
1037
+ }>, S.Struct<{
1038
+ readonly _tag: S.Literal<"metadata">;
885
1039
  readonly metadata: S.Struct<{
886
1040
  readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
887
1041
  withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
@@ -897,20 +1051,1663 @@ export declare const makeCommandRpc: <const Tag extends string, Payload extends
897
1051
  }>, never>;
898
1052
  };
899
1053
  readonly dataDependencies: S.Struct<{
900
- readonly reads: S.$Array<S.Struct<{
1054
+ readonly reads: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1055
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1056
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1057
+ Default: A;
1058
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1059
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1060
+ };
1061
+ Default: "repo";
1062
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1063
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1064
+ };
1065
+ readonly name: S.String;
1066
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1067
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1068
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1069
+ Default: A;
1070
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1071
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1072
+ };
1073
+ Default: "repo";
1074
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1075
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1076
+ };
1077
+ readonly name: S.String;
1078
+ }, "Type">>>, S.$Array<S.Struct<{
901
1079
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
902
1080
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
903
1081
  Default: A;
904
1082
  withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
905
1083
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
906
1084
  };
907
- Default: "repo";
908
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
909
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
910
- };
911
- readonly name: S.String;
912
- }>> & {
913
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
1085
+ Default: "repo";
1086
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1087
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1088
+ };
1089
+ readonly name: S.String;
1090
+ }>>, never, never> & {
1091
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1092
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1093
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1094
+ Default: A;
1095
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1096
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1097
+ };
1098
+ Default: "repo";
1099
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1100
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1101
+ };
1102
+ readonly name: S.String;
1103
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1104
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1105
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1106
+ Default: A;
1107
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1108
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1109
+ };
1110
+ Default: "repo";
1111
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1112
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1113
+ };
1114
+ readonly name: S.String;
1115
+ }, "Type">>>, S.$Array<S.Struct<{
1116
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1117
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1118
+ Default: A;
1119
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1120
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1121
+ };
1122
+ Default: "repo";
1123
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1124
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1125
+ };
1126
+ readonly name: S.String;
1127
+ }>>, never, never>>;
1128
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1129
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1130
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1131
+ Default: A;
1132
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1133
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1134
+ };
1135
+ Default: "repo";
1136
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1137
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1138
+ };
1139
+ readonly name: S.String;
1140
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1141
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1142
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1143
+ Default: A;
1144
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1145
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1146
+ };
1147
+ Default: "repo";
1148
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1149
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1150
+ };
1151
+ readonly name: S.String;
1152
+ }, "Type">>>, S.$Array<S.Struct<{
1153
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1154
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1155
+ Default: A;
1156
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1157
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1158
+ };
1159
+ Default: "repo";
1160
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1161
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1162
+ };
1163
+ readonly name: S.String;
1164
+ }>>, never, never>, never>;
1165
+ };
1166
+ readonly writes: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1167
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1168
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1169
+ Default: A;
1170
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1171
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1172
+ };
1173
+ Default: "repo";
1174
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1175
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1176
+ };
1177
+ readonly name: S.String;
1178
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1179
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1180
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1181
+ Default: A;
1182
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1183
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1184
+ };
1185
+ Default: "repo";
1186
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1187
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1188
+ };
1189
+ readonly name: S.String;
1190
+ }, "Type">>>, S.$Array<S.Struct<{
1191
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1192
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1193
+ Default: A;
1194
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1195
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1196
+ };
1197
+ Default: "repo";
1198
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1199
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1200
+ };
1201
+ readonly name: S.String;
1202
+ }>>, never, never> & {
1203
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1204
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1205
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1206
+ Default: A;
1207
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1208
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1209
+ };
1210
+ Default: "repo";
1211
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1212
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1213
+ };
1214
+ readonly name: S.String;
1215
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1216
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1217
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1218
+ Default: A;
1219
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1220
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1221
+ };
1222
+ Default: "repo";
1223
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1224
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1225
+ };
1226
+ readonly name: S.String;
1227
+ }, "Type">>>, S.$Array<S.Struct<{
1228
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1229
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1230
+ Default: A;
1231
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1232
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1233
+ };
1234
+ Default: "repo";
1235
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1236
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1237
+ };
1238
+ readonly name: S.String;
1239
+ }>>, never, never>>;
1240
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1241
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1242
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1243
+ Default: A;
1244
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1245
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1246
+ };
1247
+ Default: "repo";
1248
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1249
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1250
+ };
1251
+ readonly name: S.String;
1252
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1253
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1254
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1255
+ Default: A;
1256
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1257
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1258
+ };
1259
+ Default: "repo";
1260
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1261
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1262
+ };
1263
+ readonly name: S.String;
1264
+ }, "Type">>>, S.$Array<S.Struct<{
1265
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1266
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1267
+ Default: A;
1268
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1269
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1270
+ };
1271
+ Default: "repo";
1272
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1273
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1274
+ };
1275
+ readonly name: S.String;
1276
+ }>>, never, never>, never>;
1277
+ };
1278
+ }>;
1279
+ }>;
1280
+ }>, S.Struct<{
1281
+ readonly _tag: S.Literal<"done">;
1282
+ readonly metadata: S.Struct<{
1283
+ readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
1284
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
1285
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
1286
+ }> & {
1287
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
1288
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
1289
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
1290
+ }>>;
1291
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
1292
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
1293
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
1294
+ }>, never>;
1295
+ };
1296
+ readonly dataDependencies: S.Struct<{
1297
+ readonly reads: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1298
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1299
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1300
+ Default: A;
1301
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1302
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1303
+ };
1304
+ Default: "repo";
1305
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1306
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1307
+ };
1308
+ readonly name: S.String;
1309
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1310
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1311
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1312
+ Default: A;
1313
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1314
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1315
+ };
1316
+ Default: "repo";
1317
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1318
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1319
+ };
1320
+ readonly name: S.String;
1321
+ }, "Type">>>, S.$Array<S.Struct<{
1322
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1323
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1324
+ Default: A;
1325
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1326
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1327
+ };
1328
+ Default: "repo";
1329
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1330
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1331
+ };
1332
+ readonly name: S.String;
1333
+ }>>, never, never> & {
1334
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1335
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1336
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1337
+ Default: A;
1338
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1339
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1340
+ };
1341
+ Default: "repo";
1342
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1343
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1344
+ };
1345
+ readonly name: S.String;
1346
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1347
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1348
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1349
+ Default: A;
1350
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1351
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1352
+ };
1353
+ Default: "repo";
1354
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1355
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1356
+ };
1357
+ readonly name: S.String;
1358
+ }, "Type">>>, S.$Array<S.Struct<{
1359
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1360
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1361
+ Default: A;
1362
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1363
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1364
+ };
1365
+ Default: "repo";
1366
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1367
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1368
+ };
1369
+ readonly name: S.String;
1370
+ }>>, never, never>>;
1371
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1372
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1373
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1374
+ Default: A;
1375
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1376
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1377
+ };
1378
+ Default: "repo";
1379
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1380
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1381
+ };
1382
+ readonly name: S.String;
1383
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1384
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1385
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1386
+ Default: A;
1387
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1388
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1389
+ };
1390
+ Default: "repo";
1391
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1392
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1393
+ };
1394
+ readonly name: S.String;
1395
+ }, "Type">>>, S.$Array<S.Struct<{
1396
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1397
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1398
+ Default: A;
1399
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1400
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1401
+ };
1402
+ Default: "repo";
1403
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1404
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1405
+ };
1406
+ readonly name: S.String;
1407
+ }>>, never, never>, never>;
1408
+ };
1409
+ readonly writes: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1410
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1411
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1412
+ Default: A;
1413
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1414
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1415
+ };
1416
+ Default: "repo";
1417
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1418
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1419
+ };
1420
+ readonly name: S.String;
1421
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1422
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1423
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1424
+ Default: A;
1425
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1426
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1427
+ };
1428
+ Default: "repo";
1429
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1430
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1431
+ };
1432
+ readonly name: S.String;
1433
+ }, "Type">>>, S.$Array<S.Struct<{
1434
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1435
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1436
+ Default: A;
1437
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1438
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1439
+ };
1440
+ Default: "repo";
1441
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1442
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1443
+ };
1444
+ readonly name: S.String;
1445
+ }>>, never, never> & {
1446
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1447
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1448
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1449
+ Default: A;
1450
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1451
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1452
+ };
1453
+ Default: "repo";
1454
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1455
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1456
+ };
1457
+ readonly name: S.String;
1458
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1459
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1460
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1461
+ Default: A;
1462
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1463
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1464
+ };
1465
+ Default: "repo";
1466
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1467
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1468
+ };
1469
+ readonly name: S.String;
1470
+ }, "Type">>>, S.$Array<S.Struct<{
1471
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1472
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1473
+ Default: A;
1474
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1475
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1476
+ };
1477
+ Default: "repo";
1478
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1479
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1480
+ };
1481
+ readonly name: S.String;
1482
+ }>>, never, never>>;
1483
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1484
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1485
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1486
+ Default: A;
1487
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1488
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1489
+ };
1490
+ Default: "repo";
1491
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1492
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1493
+ };
1494
+ readonly name: S.String;
1495
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1496
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1497
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1498
+ Default: A;
1499
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1500
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1501
+ };
1502
+ Default: "repo";
1503
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1504
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1505
+ };
1506
+ readonly name: S.String;
1507
+ }, "Type">>>, S.$Array<S.Struct<{
1508
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1509
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1510
+ Default: A;
1511
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1512
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1513
+ };
1514
+ Default: "repo";
1515
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1516
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1517
+ };
1518
+ readonly name: S.String;
1519
+ }>>, never, never>, never>;
1520
+ };
1521
+ }>;
1522
+ }>;
1523
+ }>]>;
1524
+ export type StreamResponseChunk<A> = {
1525
+ readonly _tag: "value";
1526
+ readonly value: A;
1527
+ } | {
1528
+ readonly _tag: "metadata";
1529
+ readonly metadata: CommandMetaData;
1530
+ } | {
1531
+ readonly _tag: "done";
1532
+ readonly metadata: CommandMetaData;
1533
+ };
1534
+ /**
1535
+ * Stream chunk schema for stream failures with metadata.
1536
+ * Used to signal a stream failure while still carrying cache invalidation keys
1537
+ * accumulated thus far.
1538
+ */
1539
+ export declare const StreamFailureChunk: <E extends S.Top>(error: E) => S.Struct<{
1540
+ readonly _tag: S.Literal<"error">;
1541
+ readonly error: E;
1542
+ readonly metadata: S.Struct<{
1543
+ readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
1544
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
1545
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
1546
+ }> & {
1547
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
1548
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
1549
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
1550
+ }>>;
1551
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
1552
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
1553
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
1554
+ }>, never>;
1555
+ };
1556
+ readonly dataDependencies: S.Struct<{
1557
+ readonly reads: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1558
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1559
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1560
+ Default: A;
1561
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1562
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1563
+ };
1564
+ Default: "repo";
1565
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1566
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1567
+ };
1568
+ readonly name: S.String;
1569
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1570
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1571
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1572
+ Default: A;
1573
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1574
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1575
+ };
1576
+ Default: "repo";
1577
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1578
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1579
+ };
1580
+ readonly name: S.String;
1581
+ }, "Type">>>, S.$Array<S.Struct<{
1582
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1583
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1584
+ Default: A;
1585
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1586
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1587
+ };
1588
+ Default: "repo";
1589
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1590
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1591
+ };
1592
+ readonly name: S.String;
1593
+ }>>, never, never> & {
1594
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1595
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1596
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1597
+ Default: A;
1598
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1599
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1600
+ };
1601
+ Default: "repo";
1602
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1603
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1604
+ };
1605
+ readonly name: S.String;
1606
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1607
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1608
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1609
+ Default: A;
1610
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1611
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1612
+ };
1613
+ Default: "repo";
1614
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1615
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1616
+ };
1617
+ readonly name: S.String;
1618
+ }, "Type">>>, S.$Array<S.Struct<{
1619
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1620
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1621
+ Default: A;
1622
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1623
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1624
+ };
1625
+ Default: "repo";
1626
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1627
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1628
+ };
1629
+ readonly name: S.String;
1630
+ }>>, never, never>>;
1631
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1632
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1633
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1634
+ Default: A;
1635
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1636
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1637
+ };
1638
+ Default: "repo";
1639
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1640
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1641
+ };
1642
+ readonly name: S.String;
1643
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1644
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1645
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1646
+ Default: A;
1647
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1648
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1649
+ };
1650
+ Default: "repo";
1651
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1652
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1653
+ };
1654
+ readonly name: S.String;
1655
+ }, "Type">>>, S.$Array<S.Struct<{
1656
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1657
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1658
+ Default: A;
1659
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1660
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1661
+ };
1662
+ Default: "repo";
1663
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1664
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1665
+ };
1666
+ readonly name: S.String;
1667
+ }>>, never, never>, never>;
1668
+ };
1669
+ readonly writes: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1670
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1671
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1672
+ Default: A;
1673
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1674
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1675
+ };
1676
+ Default: "repo";
1677
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1678
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1679
+ };
1680
+ readonly name: S.String;
1681
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1682
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1683
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1684
+ Default: A;
1685
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1686
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1687
+ };
1688
+ Default: "repo";
1689
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1690
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1691
+ };
1692
+ readonly name: S.String;
1693
+ }, "Type">>>, S.$Array<S.Struct<{
1694
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1695
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1696
+ Default: A;
1697
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1698
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1699
+ };
1700
+ Default: "repo";
1701
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1702
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1703
+ };
1704
+ readonly name: S.String;
1705
+ }>>, never, never> & {
1706
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1707
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1708
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1709
+ Default: A;
1710
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1711
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1712
+ };
1713
+ Default: "repo";
1714
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1715
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1716
+ };
1717
+ readonly name: S.String;
1718
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1719
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1720
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1721
+ Default: A;
1722
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1723
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1724
+ };
1725
+ Default: "repo";
1726
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1727
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1728
+ };
1729
+ readonly name: S.String;
1730
+ }, "Type">>>, S.$Array<S.Struct<{
1731
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1732
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1733
+ Default: A;
1734
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1735
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1736
+ };
1737
+ Default: "repo";
1738
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1739
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1740
+ };
1741
+ readonly name: S.String;
1742
+ }>>, never, never>>;
1743
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1744
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1745
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1746
+ Default: A;
1747
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1748
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1749
+ };
1750
+ Default: "repo";
1751
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1752
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1753
+ };
1754
+ readonly name: S.String;
1755
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1756
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1757
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1758
+ Default: A;
1759
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1760
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1761
+ };
1762
+ Default: "repo";
1763
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1764
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1765
+ };
1766
+ readonly name: S.String;
1767
+ }, "Type">>>, S.$Array<S.Struct<{
1768
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1769
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1770
+ Default: A;
1771
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1772
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1773
+ };
1774
+ Default: "repo";
1775
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1776
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1777
+ };
1778
+ readonly name: S.String;
1779
+ }>>, never, never>, never>;
1780
+ };
1781
+ }>;
1782
+ }>;
1783
+ }>;
1784
+ export type StreamFailureChunk<E> = {
1785
+ readonly _tag: "error";
1786
+ readonly error: E;
1787
+ readonly metadata: CommandMetaData;
1788
+ };
1789
+ /**
1790
+ * Context annotation for declaring static cache invalidation keys on a low-level `Rpc` definition.
1791
+ * These keys are always included in the command response metadata, regardless of the handler logic.
1792
+ *
1793
+ * Prefer using `makeQueryKey` over raw string arrays to stay in sync with the actual query
1794
+ * definitions without manual string maintenance:
1795
+ *
1796
+ * ```ts
1797
+ * import { makeQueryKey } from "effect-app/client"
1798
+ * import { Invalidation } from "effect-app/rpc"
1799
+ * import * as UserRsc from "../User/index.js" // separate module to avoid circular deps
1800
+ *
1801
+ * class UpdateProfile extends Rpc.make("UpdateProfile", { ... })
1802
+ * .annotate(Invalidation.Invalidates, [makeQueryKey(UserRsc.GetMe), makeQueryKey(UserRsc.GetProfile)]) {}
1803
+ * ```
1804
+ *
1805
+ * **Circular dependency note:** if mutations and queries live in the same file you may hit a
1806
+ * circular reference at evaluation time. The idiomatic fix is to move mutations into their own
1807
+ * module (e.g. `User/mutations.ts`) that directly imports the relevant query classes rather than
1808
+ * re-exporting them through a barrel.
1809
+ *
1810
+ * For the higher-level `Command`/`Query` builders from `makeRpcClient`, use the
1811
+ * `invalidatesQueries` callback argument instead (it receives the same query keys at runtime).
1812
+ */
1813
+ export declare const Invalidates: Context.Reference<readonly (readonly S.Json[])[]>;
1814
+ export type Invalidates = typeof Invalidates;
1815
+ /** The shape of the per-request service that accumulates invalidation keys. */
1816
+ export interface InvalidationSetService {
1817
+ readonly add: (input: InvalidationKeyInput | ReadonlyArray<InvalidationKeyInput>) => Effect.Effect<void>;
1818
+ readonly get: Effect.Effect<ReadonlyArray<InvalidationKey>>;
1819
+ /**
1820
+ * V3: Reads all currently accumulated keys and resets the bucket to empty.
1821
+ * Used by the stream routing layer to emit intermediate "metadata" chunks
1822
+ * without re-sending keys that have already been forwarded to the client.
1823
+ */
1824
+ readonly drain: Effect.Effect<ReadonlyArray<InvalidationKey>>;
1825
+ }
1826
+ /**
1827
+ * Request-scoped service for accumulating invalidation keys dynamically inside a handler.
1828
+ * Provided by `InvalidationMiddlewareLive` for every RPC call; has a no-op default so it is
1829
+ * safe to use even when the HTTP middleware is absent (tests, workers, etc.).
1830
+ *
1831
+ * Use `InvalidationSet.add(key)` as a shorthand to skip `.use(_ => _.add(key))`. The
1832
+ * underlying service is still available via `.use` / `.useSync` for advanced cases.
1833
+ *
1834
+ * `add` accepts an RPC handler directly (e.g. `UserRsc.GetMe`) — its query key is derived via
1835
+ * `makeQueryKey` so keys stay in sync with the actual query definitions. Raw `InvalidationKey`
1836
+ * arrays and arrays of either form are also accepted.
1837
+ *
1838
+ * ```ts
1839
+ * import * as Effect from "effect/Effect"
1840
+ * import { Invalidation } from "effect-app/rpc"
1841
+ * import * as CartRsc from "../Cart/queries.js"
1842
+ * import * as UserRsc from "../User/queries.js"
1843
+ *
1844
+ * const handler = Effect.fnUntraced(function*(req: UpdateCartRequest) {
1845
+ * const cart = yield* CartRepo.save(req.cart)
1846
+ *
1847
+ * // single handler
1848
+ * yield* Invalidation.InvalidationSet.add(UserRsc.GetMe)
1849
+ *
1850
+ * // batch
1851
+ * if (cart.isCheckedOut) {
1852
+ * yield* Invalidation.InvalidationSet.add([CartRsc.GetCartStats, UserRsc.GetMe])
1853
+ * }
1854
+ *
1855
+ * return cart
1856
+ * })
1857
+ * ```
1858
+ *
1859
+ * You can combine static (`Invalidates` annotation) and dynamic (`InvalidationSet.use`) keys:
1860
+ * the annotation pre-populates the set before the handler runs; dynamic additions accumulate
1861
+ * throughout the handler. All keys are included in the command response metadata.
1862
+ */
1863
+ declare const InvalidationSetRef: Context.Reference<InvalidationSetService>;
1864
+ export declare const InvalidationSet: Context.Reference<InvalidationSetService> & {
1865
+ /**
1866
+ * Shortcut for `InvalidationSet.use(_ => _.add(input))`. Accepts a single
1867
+ * `InvalidationKeyInput` or an array of them.
1868
+ */
1869
+ add: (input: InvalidationKeyInput | ReadonlyArray<InvalidationKeyInput>) => Effect.Effect<void, never, never>;
1870
+ };
1871
+ export type InvalidationSet = typeof InvalidationSetRef;
1872
+ /** Creates a fresh `InvalidationSet` implementation backed by a `Ref`. */
1873
+ export declare const makeInvalidationSet: (ref: Ref.Ref<ReadonlyArray<InvalidationKey>>) => InvalidationSetService;
1874
+ /**
1875
+ * `Rpc.Custom` definition for command RPCs that wrap the success/error schemas
1876
+ * with `CommandResponseWithMetaData` / `CommandFailureWithMetaData`. The wrap
1877
+ * lets server forward accumulated invalidation keys on both success and
1878
+ * handler-thrown failure paths. Middleware-thrown errors bypass the wrap
1879
+ * (the handler never ran, so no metadata) and flow raw at the Cause level —
1880
+ * the client decodes them via the `rpc.middlewares[*].error` failure-union
1881
+ * channel of `Rpc.exitSchema`.
1882
+ */
1883
+ export interface CommandRpc extends Rpc.Custom {
1884
+ readonly out: Rpc.Custom.Out<ReturnType<typeof CommandResponseWithMetaData<this["success"] & S.Top>>, ReturnType<typeof CommandFailureWithMetaData<this["error"] & S.Top>>>;
1885
+ }
1886
+ /**
1887
+ * Custom Rpc constructor for command RPCs.
1888
+ * Wraps the success schema with `CommandResponseWithMetaData` and the error
1889
+ * schema with `CommandFailureWithMetaData`.
1890
+ */
1891
+ export declare const makeCommandRpc: <const Tag extends string, Payload extends S.Top | import("effect/Schema").Struct.Fields = S.Void_, Success extends S.Top = S.Void_, Error extends S.Top = S.Never, const Stream extends boolean = false, Out extends Rpc.Custom.OutDefault = Rpc.Custom.Out<S.Struct<{
1892
+ readonly payload: S.Top & Success;
1893
+ readonly metadata: S.Struct<{
1894
+ readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
1895
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
1896
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
1897
+ }> & {
1898
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
1899
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
1900
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
1901
+ }>>;
1902
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
1903
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
1904
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
1905
+ }>, never>;
1906
+ };
1907
+ readonly dataDependencies: S.Struct<{
1908
+ readonly reads: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1909
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1910
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1911
+ Default: A;
1912
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1913
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1914
+ };
1915
+ Default: "repo";
1916
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1917
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1918
+ };
1919
+ readonly name: S.String;
1920
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1921
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1922
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1923
+ Default: A;
1924
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1925
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1926
+ };
1927
+ Default: "repo";
1928
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1929
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1930
+ };
1931
+ readonly name: S.String;
1932
+ }, "Type">>>, S.$Array<S.Struct<{
1933
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1934
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1935
+ Default: A;
1936
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1937
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1938
+ };
1939
+ Default: "repo";
1940
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1941
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1942
+ };
1943
+ readonly name: S.String;
1944
+ }>>, never, never> & {
1945
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1946
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1947
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1948
+ Default: A;
1949
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1950
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1951
+ };
1952
+ Default: "repo";
1953
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1954
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1955
+ };
1956
+ readonly name: S.String;
1957
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1958
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1959
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1960
+ Default: A;
1961
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1962
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1963
+ };
1964
+ Default: "repo";
1965
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1966
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1967
+ };
1968
+ readonly name: S.String;
1969
+ }, "Type">>>, S.$Array<S.Struct<{
1970
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1971
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1972
+ Default: A;
1973
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1974
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1975
+ };
1976
+ Default: "repo";
1977
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1978
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1979
+ };
1980
+ readonly name: S.String;
1981
+ }>>, never, never>>;
1982
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1983
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1984
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1985
+ Default: A;
1986
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1987
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1988
+ };
1989
+ Default: "repo";
1990
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1991
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1992
+ };
1993
+ readonly name: S.String;
1994
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1995
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1996
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1997
+ Default: A;
1998
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1999
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2000
+ };
2001
+ Default: "repo";
2002
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2003
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2004
+ };
2005
+ readonly name: S.String;
2006
+ }, "Type">>>, S.$Array<S.Struct<{
2007
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2008
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2009
+ Default: A;
2010
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2011
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2012
+ };
2013
+ Default: "repo";
2014
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2015
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2016
+ };
2017
+ readonly name: S.String;
2018
+ }>>, never, never>, never>;
2019
+ };
2020
+ readonly writes: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2021
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2022
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2023
+ Default: A;
2024
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2025
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2026
+ };
2027
+ Default: "repo";
2028
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2029
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2030
+ };
2031
+ readonly name: S.String;
2032
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2033
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2034
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2035
+ Default: A;
2036
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2037
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2038
+ };
2039
+ Default: "repo";
2040
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2041
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2042
+ };
2043
+ readonly name: S.String;
2044
+ }, "Type">>>, S.$Array<S.Struct<{
2045
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2046
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2047
+ Default: A;
2048
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2049
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2050
+ };
2051
+ Default: "repo";
2052
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2053
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2054
+ };
2055
+ readonly name: S.String;
2056
+ }>>, never, never> & {
2057
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2058
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2059
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2060
+ Default: A;
2061
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2062
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2063
+ };
2064
+ Default: "repo";
2065
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2066
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2067
+ };
2068
+ readonly name: S.String;
2069
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2070
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2071
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2072
+ Default: A;
2073
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2074
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2075
+ };
2076
+ Default: "repo";
2077
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2078
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2079
+ };
2080
+ readonly name: S.String;
2081
+ }, "Type">>>, S.$Array<S.Struct<{
2082
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2083
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2084
+ Default: A;
2085
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2086
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2087
+ };
2088
+ Default: "repo";
2089
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2090
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2091
+ };
2092
+ readonly name: S.String;
2093
+ }>>, never, never>>;
2094
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2095
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2096
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2097
+ Default: A;
2098
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2099
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2100
+ };
2101
+ Default: "repo";
2102
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2103
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2104
+ };
2105
+ readonly name: S.String;
2106
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2107
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2108
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2109
+ Default: A;
2110
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2111
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2112
+ };
2113
+ Default: "repo";
2114
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2115
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2116
+ };
2117
+ readonly name: S.String;
2118
+ }, "Type">>>, S.$Array<S.Struct<{
2119
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2120
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2121
+ Default: A;
2122
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2123
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2124
+ };
2125
+ Default: "repo";
2126
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2127
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2128
+ };
2129
+ readonly name: S.String;
2130
+ }>>, never, never>, never>;
2131
+ };
2132
+ }>;
2133
+ }>;
2134
+ }>, S.Struct<{
2135
+ readonly _tag: S.Literal<"CommandFailureWithMetaData">;
2136
+ readonly error: S.Top & Error;
2137
+ readonly metadata: S.Struct<{
2138
+ readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
2139
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
2140
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
2141
+ }> & {
2142
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
2143
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
2144
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
2145
+ }>>;
2146
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
2147
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
2148
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
2149
+ }>, never>;
2150
+ };
2151
+ readonly dataDependencies: S.Struct<{
2152
+ readonly reads: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2153
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2154
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2155
+ Default: A;
2156
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2157
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2158
+ };
2159
+ Default: "repo";
2160
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2161
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2162
+ };
2163
+ readonly name: S.String;
2164
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2165
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2166
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2167
+ Default: A;
2168
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2169
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2170
+ };
2171
+ Default: "repo";
2172
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2173
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2174
+ };
2175
+ readonly name: S.String;
2176
+ }, "Type">>>, S.$Array<S.Struct<{
2177
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2178
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2179
+ Default: A;
2180
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2181
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2182
+ };
2183
+ Default: "repo";
2184
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2185
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2186
+ };
2187
+ readonly name: S.String;
2188
+ }>>, never, never> & {
2189
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2190
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2191
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2192
+ Default: A;
2193
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2194
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2195
+ };
2196
+ Default: "repo";
2197
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2198
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2199
+ };
2200
+ readonly name: S.String;
2201
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2202
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2203
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2204
+ Default: A;
2205
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2206
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2207
+ };
2208
+ Default: "repo";
2209
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2210
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2211
+ };
2212
+ readonly name: S.String;
2213
+ }, "Type">>>, S.$Array<S.Struct<{
2214
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2215
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2216
+ Default: A;
2217
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2218
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2219
+ };
2220
+ Default: "repo";
2221
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2222
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2223
+ };
2224
+ readonly name: S.String;
2225
+ }>>, never, never>>;
2226
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2227
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2228
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2229
+ Default: A;
2230
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2231
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2232
+ };
2233
+ Default: "repo";
2234
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2235
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2236
+ };
2237
+ readonly name: S.String;
2238
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2239
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2240
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2241
+ Default: A;
2242
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2243
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2244
+ };
2245
+ Default: "repo";
2246
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2247
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2248
+ };
2249
+ readonly name: S.String;
2250
+ }, "Type">>>, S.$Array<S.Struct<{
2251
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2252
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2253
+ Default: A;
2254
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2255
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2256
+ };
2257
+ Default: "repo";
2258
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2259
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2260
+ };
2261
+ readonly name: S.String;
2262
+ }>>, never, never>, never>;
2263
+ };
2264
+ readonly writes: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2265
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2266
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2267
+ Default: A;
2268
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2269
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2270
+ };
2271
+ Default: "repo";
2272
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2273
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2274
+ };
2275
+ readonly name: S.String;
2276
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2277
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2278
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2279
+ Default: A;
2280
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2281
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2282
+ };
2283
+ Default: "repo";
2284
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2285
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2286
+ };
2287
+ readonly name: S.String;
2288
+ }, "Type">>>, S.$Array<S.Struct<{
2289
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2290
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2291
+ Default: A;
2292
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2293
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2294
+ };
2295
+ Default: "repo";
2296
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2297
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2298
+ };
2299
+ readonly name: S.String;
2300
+ }>>, never, never> & {
2301
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2302
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2303
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2304
+ Default: A;
2305
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2306
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2307
+ };
2308
+ Default: "repo";
2309
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2310
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2311
+ };
2312
+ readonly name: S.String;
2313
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2314
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2315
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2316
+ Default: A;
2317
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2318
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2319
+ };
2320
+ Default: "repo";
2321
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2322
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2323
+ };
2324
+ readonly name: S.String;
2325
+ }, "Type">>>, S.$Array<S.Struct<{
2326
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2327
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2328
+ Default: A;
2329
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2330
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2331
+ };
2332
+ Default: "repo";
2333
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2334
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2335
+ };
2336
+ readonly name: S.String;
2337
+ }>>, never, never>>;
2338
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2339
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2340
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2341
+ Default: A;
2342
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2343
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2344
+ };
2345
+ Default: "repo";
2346
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2347
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2348
+ };
2349
+ readonly name: S.String;
2350
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2351
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2352
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2353
+ Default: A;
2354
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2355
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2356
+ };
2357
+ Default: "repo";
2358
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2359
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2360
+ };
2361
+ readonly name: S.String;
2362
+ }, "Type">>>, S.$Array<S.Struct<{
2363
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2364
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2365
+ Default: A;
2366
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2367
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2368
+ };
2369
+ Default: "repo";
2370
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2371
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2372
+ };
2373
+ readonly name: S.String;
2374
+ }>>, never, never>, never>;
2375
+ };
2376
+ }>;
2377
+ }>;
2378
+ }>>>(tag: Tag, options?: {
2379
+ readonly payload?: Payload;
2380
+ readonly success?: Success;
2381
+ readonly error?: Error;
2382
+ readonly defect?: Rpc.DefectSchema;
2383
+ readonly stream?: Stream;
2384
+ readonly primaryKey?: [Payload] extends [import("effect/Schema").Struct.Fields] ? (payload: Payload extends import("effect/Schema").Struct.Fields ? import("effect/Schema").Struct.View<Payload, "Type", import("effect/Schema").Struct.TypeOptionalKeys<Payload>, import("effect/Schema").Struct.TypeMutableKeys<Payload>> extends infer T ? { [K in keyof T]: T[K]; } : never : Payload["Type"]) => string : never;
2385
+ } | undefined) => Rpc.Rpc<Tag, Payload extends import("effect/Schema").Struct.Fields ? import("effect/Schema").Struct<Payload> : Payload, Stream extends true ? import("effect/unstable/rpc/RpcSchema").Stream<Out["success"], Out["error"]> : Out["success"], Stream extends true ? S.Never : Out["error"], never, never>;
2386
+ /**
2387
+ * `Rpc.Custom` definition for stream RPCs that wrap the success/error schemas
2388
+ * with `StreamResponseChunk` / `StreamFailureChunk`.
2389
+ */
2390
+ export interface StreamRpc extends Rpc.Custom {
2391
+ readonly out: Rpc.Custom.Out<ReturnType<typeof StreamResponseChunk<this["success"] & S.Top>>, ReturnType<typeof StreamFailureChunk<this["error"] & S.Top>>>;
2392
+ }
2393
+ /**
2394
+ * Custom Rpc constructor for stream RPCs.
2395
+ * Wraps the success schema with `StreamResponseChunk` and
2396
+ * the error schema with `StreamFailureChunk`.
2397
+ */
2398
+ export declare const makeStreamRpc: <const Tag extends string, Payload extends S.Top | import("effect/Schema").Struct.Fields = S.Void_, Success extends S.Top = S.Void_, Error extends S.Top = S.Never, const Stream extends boolean = false, Out extends Rpc.Custom.OutDefault = Rpc.Custom.Out<S.Union<readonly [S.Struct<{
2399
+ readonly _tag: S.Literal<"value">;
2400
+ readonly value: S.Top & Success;
2401
+ }>, S.Struct<{
2402
+ readonly _tag: S.Literal<"metadata">;
2403
+ readonly metadata: S.Struct<{
2404
+ readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
2405
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
2406
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
2407
+ }> & {
2408
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
2409
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
2410
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
2411
+ }>>;
2412
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
2413
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
2414
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
2415
+ }>, never>;
2416
+ };
2417
+ readonly dataDependencies: S.Struct<{
2418
+ readonly reads: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2419
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2420
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2421
+ Default: A;
2422
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2423
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2424
+ };
2425
+ Default: "repo";
2426
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2427
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2428
+ };
2429
+ readonly name: S.String;
2430
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2431
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2432
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2433
+ Default: A;
2434
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2435
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2436
+ };
2437
+ Default: "repo";
2438
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2439
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2440
+ };
2441
+ readonly name: S.String;
2442
+ }, "Type">>>, S.$Array<S.Struct<{
2443
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2444
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2445
+ Default: A;
2446
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2447
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2448
+ };
2449
+ Default: "repo";
2450
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2451
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2452
+ };
2453
+ readonly name: S.String;
2454
+ }>>, never, never> & {
2455
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2456
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2457
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2458
+ Default: A;
2459
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2460
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2461
+ };
2462
+ Default: "repo";
2463
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2464
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2465
+ };
2466
+ readonly name: S.String;
2467
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2468
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2469
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2470
+ Default: A;
2471
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2472
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2473
+ };
2474
+ Default: "repo";
2475
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2476
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2477
+ };
2478
+ readonly name: S.String;
2479
+ }, "Type">>>, S.$Array<S.Struct<{
2480
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2481
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2482
+ Default: A;
2483
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2484
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2485
+ };
2486
+ Default: "repo";
2487
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2488
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2489
+ };
2490
+ readonly name: S.String;
2491
+ }>>, never, never>>;
2492
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2493
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2494
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2495
+ Default: A;
2496
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2497
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2498
+ };
2499
+ Default: "repo";
2500
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2501
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2502
+ };
2503
+ readonly name: S.String;
2504
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2505
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2506
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2507
+ Default: A;
2508
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2509
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2510
+ };
2511
+ Default: "repo";
2512
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2513
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2514
+ };
2515
+ readonly name: S.String;
2516
+ }, "Type">>>, S.$Array<S.Struct<{
2517
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2518
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2519
+ Default: A;
2520
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2521
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2522
+ };
2523
+ Default: "repo";
2524
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2525
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2526
+ };
2527
+ readonly name: S.String;
2528
+ }>>, never, never>, never>;
2529
+ };
2530
+ readonly writes: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2531
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2532
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2533
+ Default: A;
2534
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2535
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2536
+ };
2537
+ Default: "repo";
2538
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2539
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2540
+ };
2541
+ readonly name: S.String;
2542
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2543
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2544
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2545
+ Default: A;
2546
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2547
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2548
+ };
2549
+ Default: "repo";
2550
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2551
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2552
+ };
2553
+ readonly name: S.String;
2554
+ }, "Type">>>, S.$Array<S.Struct<{
2555
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2556
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2557
+ Default: A;
2558
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2559
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2560
+ };
2561
+ Default: "repo";
2562
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2563
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2564
+ };
2565
+ readonly name: S.String;
2566
+ }>>, never, never> & {
2567
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2568
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2569
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2570
+ Default: A;
2571
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2572
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2573
+ };
2574
+ Default: "repo";
2575
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2576
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2577
+ };
2578
+ readonly name: S.String;
2579
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2580
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2581
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2582
+ Default: A;
2583
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2584
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2585
+ };
2586
+ Default: "repo";
2587
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2588
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2589
+ };
2590
+ readonly name: S.String;
2591
+ }, "Type">>>, S.$Array<S.Struct<{
2592
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2593
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2594
+ Default: A;
2595
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2596
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2597
+ };
2598
+ Default: "repo";
2599
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2600
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2601
+ };
2602
+ readonly name: S.String;
2603
+ }>>, never, never>>;
2604
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2605
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2606
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2607
+ Default: A;
2608
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2609
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2610
+ };
2611
+ Default: "repo";
2612
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2613
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2614
+ };
2615
+ readonly name: S.String;
2616
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2617
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2618
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2619
+ Default: A;
2620
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2621
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2622
+ };
2623
+ Default: "repo";
2624
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2625
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2626
+ };
2627
+ readonly name: S.String;
2628
+ }, "Type">>>, S.$Array<S.Struct<{
2629
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2630
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2631
+ Default: A;
2632
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2633
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2634
+ };
2635
+ Default: "repo";
2636
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2637
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2638
+ };
2639
+ readonly name: S.String;
2640
+ }>>, never, never>, never>;
2641
+ };
2642
+ }>;
2643
+ }>;
2644
+ }>, S.Struct<{
2645
+ readonly _tag: S.Literal<"done">;
2646
+ readonly metadata: S.Struct<{
2647
+ readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
2648
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
2649
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
2650
+ }> & {
2651
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
2652
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
2653
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
2654
+ }>>;
2655
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
2656
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
2657
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
2658
+ }>, never>;
2659
+ };
2660
+ readonly dataDependencies: S.Struct<{
2661
+ readonly reads: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2662
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2663
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2664
+ Default: A;
2665
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2666
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2667
+ };
2668
+ Default: "repo";
2669
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2670
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2671
+ };
2672
+ readonly name: S.String;
2673
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2674
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2675
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2676
+ Default: A;
2677
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2678
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2679
+ };
2680
+ Default: "repo";
2681
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2682
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2683
+ };
2684
+ readonly name: S.String;
2685
+ }, "Type">>>, S.$Array<S.Struct<{
2686
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2687
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2688
+ Default: A;
2689
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2690
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2691
+ };
2692
+ Default: "repo";
2693
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2694
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2695
+ };
2696
+ readonly name: S.String;
2697
+ }>>, never, never> & {
2698
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2699
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2700
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2701
+ Default: A;
2702
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2703
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2704
+ };
2705
+ Default: "repo";
2706
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2707
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2708
+ };
2709
+ readonly name: S.String;
2710
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
914
2711
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
915
2712
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
916
2713
  Default: A;
@@ -922,8 +2719,7 @@ export declare const makeCommandRpc: <const Tag extends string, Payload extends
922
2719
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
923
2720
  };
924
2721
  readonly name: S.String;
925
- }>>>;
926
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
2722
+ }, "Type">>>, S.$Array<S.Struct<{
927
2723
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
928
2724
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
929
2725
  Default: A;
@@ -935,22 +2731,20 @@ export declare const makeCommandRpc: <const Tag extends string, Payload extends
935
2731
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
936
2732
  };
937
2733
  readonly name: S.String;
938
- }>>, never>;
939
- };
940
- readonly writes: S.$Array<S.Struct<{
941
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
942
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
943
- Default: A;
2734
+ }>>, never, never>>;
2735
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2736
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2737
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2738
+ Default: A;
2739
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2740
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2741
+ };
2742
+ Default: "repo";
944
2743
  withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
945
2744
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
946
2745
  };
947
- Default: "repo";
948
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
949
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
950
- };
951
- readonly name: S.String;
952
- }>> & {
953
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
2746
+ readonly name: S.String;
2747
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
954
2748
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
955
2749
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
956
2750
  Default: A;
@@ -962,8 +2756,7 @@ export declare const makeCommandRpc: <const Tag extends string, Payload extends
962
2756
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
963
2757
  };
964
2758
  readonly name: S.String;
965
- }>>>;
966
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
2759
+ }, "Type">>>, S.$Array<S.Struct<{
967
2760
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
968
2761
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
969
2762
  Default: A;
@@ -975,29 +2768,33 @@ export declare const makeCommandRpc: <const Tag extends string, Payload extends
975
2768
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
976
2769
  };
977
2770
  readonly name: S.String;
978
- }>>, never>;
2771
+ }>>, never, never>, never>;
979
2772
  };
980
- }>;
981
- }>;
982
- }>, S.Struct<{
983
- readonly _tag: S.Literal<"CommandFailureWithMetaData">;
984
- readonly error: S.Top & Error;
985
- readonly metadata: S.Struct<{
986
- readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
987
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
988
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
989
- }> & {
990
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
991
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
992
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
993
- }>>;
994
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
995
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
996
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
997
- }>, never>;
998
- };
999
- readonly dataDependencies: S.Struct<{
1000
- readonly reads: S.$Array<S.Struct<{
2773
+ readonly writes: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2774
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2775
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2776
+ Default: A;
2777
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2778
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2779
+ };
2780
+ Default: "repo";
2781
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2782
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2783
+ };
2784
+ readonly name: S.String;
2785
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2786
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2787
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2788
+ Default: A;
2789
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2790
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2791
+ };
2792
+ Default: "repo";
2793
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2794
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2795
+ };
2796
+ readonly name: S.String;
2797
+ }, "Type">>>, S.$Array<S.Struct<{
1001
2798
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1002
2799
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1003
2800
  Default: A;
@@ -1009,8 +2806,8 @@ export declare const makeCommandRpc: <const Tag extends string, Payload extends
1009
2806
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1010
2807
  };
1011
2808
  readonly name: S.String;
1012
- }>> & {
1013
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
2809
+ }>>, never, never> & {
2810
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1014
2811
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1015
2812
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1016
2813
  Default: A;
@@ -1022,8 +2819,7 @@ export declare const makeCommandRpc: <const Tag extends string, Payload extends
1022
2819
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1023
2820
  };
1024
2821
  readonly name: S.String;
1025
- }>>>;
1026
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
2822
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1027
2823
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1028
2824
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1029
2825
  Default: A;
@@ -1035,22 +2831,32 @@ export declare const makeCommandRpc: <const Tag extends string, Payload extends
1035
2831
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1036
2832
  };
1037
2833
  readonly name: S.String;
1038
- }>>, never>;
1039
- };
1040
- readonly writes: S.$Array<S.Struct<{
1041
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1042
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1043
- Default: A;
2834
+ }, "Type">>>, S.$Array<S.Struct<{
2835
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2836
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2837
+ Default: A;
2838
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2839
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2840
+ };
2841
+ Default: "repo";
1044
2842
  withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1045
2843
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1046
2844
  };
1047
- Default: "repo";
1048
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1049
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1050
- };
1051
- readonly name: S.String;
1052
- }>> & {
1053
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
2845
+ readonly name: S.String;
2846
+ }>>, never, never>>;
2847
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2848
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2849
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2850
+ Default: A;
2851
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2852
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2853
+ };
2854
+ Default: "repo";
2855
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2856
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2857
+ };
2858
+ readonly name: S.String;
2859
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1054
2860
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1055
2861
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1056
2862
  Default: A;
@@ -1062,8 +2868,7 @@ export declare const makeCommandRpc: <const Tag extends string, Payload extends
1062
2868
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1063
2869
  };
1064
2870
  readonly name: S.String;
1065
- }>>>;
1066
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
2871
+ }, "Type">>>, S.$Array<S.Struct<{
1067
2872
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1068
2873
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1069
2874
  Default: A;
@@ -1075,35 +2880,13 @@ export declare const makeCommandRpc: <const Tag extends string, Payload extends
1075
2880
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1076
2881
  };
1077
2882
  readonly name: S.String;
1078
- }>>, never>;
2883
+ }>>, never, never>, never>;
1079
2884
  };
1080
2885
  }>;
1081
2886
  }>;
1082
- }>>>(tag: Tag, options?: {
1083
- readonly payload?: Payload;
1084
- readonly success?: Success;
1085
- readonly error?: Error;
1086
- readonly defect?: Rpc.DefectSchema;
1087
- readonly stream?: Stream;
1088
- readonly primaryKey?: [Payload] extends [import("effect/Schema").Struct.Fields] ? (payload: Payload extends import("effect/Schema").Struct.Fields ? import("effect/Schema").Struct.View<Payload, "Type", import("effect/Schema").Struct.TypeOptionalKeys<Payload>, import("effect/Schema").Struct.TypeMutableKeys<Payload>> extends infer T ? { [K in keyof T]: T[K]; } : never : Payload["Type"]) => string : never;
1089
- } | undefined) => Rpc.Rpc<Tag, Payload extends import("effect/Schema").Struct.Fields ? import("effect/Schema").Struct<Payload> : Payload, Stream extends true ? import("effect/unstable/rpc/RpcSchema").Stream<Out["success"], Out["error"]> : Out["success"], Stream extends true ? S.Never : Out["error"], never, never>;
1090
- /**
1091
- * `Rpc.Custom` definition for stream RPCs that wrap the success/error schemas
1092
- * with `StreamResponseChunk` / `StreamFailureChunk`.
1093
- */
1094
- export interface StreamRpc extends Rpc.Custom {
1095
- readonly out: Rpc.Custom.Out<ReturnType<typeof StreamResponseChunk<this["success"] & S.Top>>, ReturnType<typeof StreamFailureChunk<this["error"] & S.Top>>>;
1096
- }
1097
- /**
1098
- * Custom Rpc constructor for stream RPCs.
1099
- * Wraps the success schema with `StreamResponseChunk` and
1100
- * the error schema with `StreamFailureChunk`.
1101
- */
1102
- export declare const makeStreamRpc: <const Tag extends string, Payload extends S.Top | import("effect/Schema").Struct.Fields = S.Void_, Success extends S.Top = S.Void_, Error extends S.Top = S.Never, const Stream extends boolean = false, Out extends Rpc.Custom.OutDefault = Rpc.Custom.Out<S.Union<readonly [S.Struct<{
1103
- readonly _tag: S.Literal<"value">;
1104
- readonly value: S.Top & Success;
1105
- }>, S.Struct<{
1106
- readonly _tag: S.Literal<"metadata">;
2887
+ }>]>, S.Struct<{
2888
+ readonly _tag: S.Literal<"error">;
2889
+ readonly error: S.Top & Error;
1107
2890
  readonly metadata: S.Struct<{
1108
2891
  readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
1109
2892
  withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
@@ -1119,7 +2902,31 @@ export declare const makeStreamRpc: <const Tag extends string, Payload extends S
1119
2902
  }>, never>;
1120
2903
  };
1121
2904
  readonly dataDependencies: S.Struct<{
1122
- readonly reads: S.$Array<S.Struct<{
2905
+ readonly reads: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2906
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2907
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2908
+ Default: A;
2909
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2910
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2911
+ };
2912
+ Default: "repo";
2913
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2914
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2915
+ };
2916
+ readonly name: S.String;
2917
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2918
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2919
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2920
+ Default: A;
2921
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2922
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2923
+ };
2924
+ Default: "repo";
2925
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2926
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2927
+ };
2928
+ readonly name: S.String;
2929
+ }, "Type">>>, S.$Array<S.Struct<{
1123
2930
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1124
2931
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1125
2932
  Default: A;
@@ -1131,8 +2938,8 @@ export declare const makeStreamRpc: <const Tag extends string, Payload extends S
1131
2938
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1132
2939
  };
1133
2940
  readonly name: S.String;
1134
- }>> & {
1135
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
2941
+ }>>, never, never> & {
2942
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1136
2943
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1137
2944
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1138
2945
  Default: A;
@@ -1144,8 +2951,7 @@ export declare const makeStreamRpc: <const Tag extends string, Payload extends S
1144
2951
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1145
2952
  };
1146
2953
  readonly name: S.String;
1147
- }>>>;
1148
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
2954
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1149
2955
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1150
2956
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1151
2957
  Default: A;
@@ -1157,22 +2963,7 @@ export declare const makeStreamRpc: <const Tag extends string, Payload extends S
1157
2963
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1158
2964
  };
1159
2965
  readonly name: S.String;
1160
- }>>, never>;
1161
- };
1162
- readonly writes: S.$Array<S.Struct<{
1163
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1164
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1165
- Default: A;
1166
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1167
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1168
- };
1169
- Default: "repo";
1170
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1171
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1172
- };
1173
- readonly name: S.String;
1174
- }>> & {
1175
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
2966
+ }, "Type">>>, S.$Array<S.Struct<{
1176
2967
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1177
2968
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1178
2969
  Default: A;
@@ -1184,8 +2975,8 @@ export declare const makeStreamRpc: <const Tag extends string, Payload extends S
1184
2975
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1185
2976
  };
1186
2977
  readonly name: S.String;
1187
- }>>>;
1188
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
2978
+ }>>, never, never>>;
2979
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1189
2980
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1190
2981
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1191
2982
  Default: A;
@@ -1197,41 +2988,7 @@ export declare const makeStreamRpc: <const Tag extends string, Payload extends S
1197
2988
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1198
2989
  };
1199
2990
  readonly name: S.String;
1200
- }>>, never>;
1201
- };
1202
- }>;
1203
- }>;
1204
- }>, S.Struct<{
1205
- readonly _tag: S.Literal<"done">;
1206
- readonly metadata: S.Struct<{
1207
- readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
1208
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
1209
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
1210
- }> & {
1211
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
1212
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
1213
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
1214
- }>>;
1215
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
1216
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
1217
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
1218
- }>, never>;
1219
- };
1220
- readonly dataDependencies: S.Struct<{
1221
- readonly reads: S.$Array<S.Struct<{
1222
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1223
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1224
- Default: A;
1225
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1226
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1227
- };
1228
- Default: "repo";
1229
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1230
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1231
- };
1232
- readonly name: S.String;
1233
- }>> & {
1234
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
2991
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1235
2992
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1236
2993
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1237
2994
  Default: A;
@@ -1243,8 +3000,7 @@ export declare const makeStreamRpc: <const Tag extends string, Payload extends S
1243
3000
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1244
3001
  };
1245
3002
  readonly name: S.String;
1246
- }>>>;
1247
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
3003
+ }, "Type">>>, S.$Array<S.Struct<{
1248
3004
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1249
3005
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1250
3006
  Default: A;
@@ -1256,9 +3012,33 @@ export declare const makeStreamRpc: <const Tag extends string, Payload extends S
1256
3012
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1257
3013
  };
1258
3014
  readonly name: S.String;
1259
- }>>, never>;
3015
+ }>>, never, never>, never>;
1260
3016
  };
1261
- readonly writes: S.$Array<S.Struct<{
3017
+ readonly writes: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
3018
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
3019
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
3020
+ Default: A;
3021
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
3022
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
3023
+ };
3024
+ Default: "repo";
3025
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
3026
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
3027
+ };
3028
+ readonly name: S.String;
3029
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
3030
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
3031
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
3032
+ Default: A;
3033
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
3034
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
3035
+ };
3036
+ Default: "repo";
3037
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
3038
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
3039
+ };
3040
+ readonly name: S.String;
3041
+ }, "Type">>>, S.$Array<S.Struct<{
1262
3042
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1263
3043
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1264
3044
  Default: A;
@@ -1270,8 +3050,8 @@ export declare const makeStreamRpc: <const Tag extends string, Payload extends S
1270
3050
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1271
3051
  };
1272
3052
  readonly name: S.String;
1273
- }>> & {
1274
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
3053
+ }>>, never, never> & {
3054
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1275
3055
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1276
3056
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1277
3057
  Default: A;
@@ -1283,8 +3063,7 @@ export declare const makeStreamRpc: <const Tag extends string, Payload extends S
1283
3063
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1284
3064
  };
1285
3065
  readonly name: S.String;
1286
- }>>>;
1287
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
3066
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1288
3067
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1289
3068
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1290
3069
  Default: A;
@@ -1296,42 +3075,7 @@ export declare const makeStreamRpc: <const Tag extends string, Payload extends S
1296
3075
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1297
3076
  };
1298
3077
  readonly name: S.String;
1299
- }>>, never>;
1300
- };
1301
- }>;
1302
- }>;
1303
- }>]>, S.Struct<{
1304
- readonly _tag: S.Literal<"error">;
1305
- readonly error: S.Top & Error;
1306
- readonly metadata: S.Struct<{
1307
- readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
1308
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
1309
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
1310
- }> & {
1311
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
1312
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
1313
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
1314
- }>>;
1315
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
1316
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
1317
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
1318
- }>, never>;
1319
- };
1320
- readonly dataDependencies: S.Struct<{
1321
- readonly reads: S.$Array<S.Struct<{
1322
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1323
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1324
- Default: A;
1325
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1326
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1327
- };
1328
- Default: "repo";
1329
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1330
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1331
- };
1332
- readonly name: S.String;
1333
- }>> & {
1334
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
3078
+ }, "Type">>>, S.$Array<S.Struct<{
1335
3079
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1336
3080
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1337
3081
  Default: A;
@@ -1343,8 +3087,8 @@ export declare const makeStreamRpc: <const Tag extends string, Payload extends S
1343
3087
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1344
3088
  };
1345
3089
  readonly name: S.String;
1346
- }>>>;
1347
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
3090
+ }>>, never, never>>;
3091
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1348
3092
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1349
3093
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1350
3094
  Default: A;
@@ -1356,22 +3100,7 @@ export declare const makeStreamRpc: <const Tag extends string, Payload extends S
1356
3100
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1357
3101
  };
1358
3102
  readonly name: S.String;
1359
- }>>, never>;
1360
- };
1361
- readonly writes: S.$Array<S.Struct<{
1362
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1363
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1364
- Default: A;
1365
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1366
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1367
- };
1368
- Default: "repo";
1369
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1370
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1371
- };
1372
- readonly name: S.String;
1373
- }>> & {
1374
- withConstructorDefault: S.withConstructorDefault<S.$Array<S.Struct<{
3103
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
1375
3104
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1376
3105
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1377
3106
  Default: A;
@@ -1383,8 +3112,7 @@ export declare const makeStreamRpc: <const Tag extends string, Payload extends S
1383
3112
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1384
3113
  };
1385
3114
  readonly name: S.String;
1386
- }>>>;
1387
- withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Struct<{
3115
+ }, "Type">>>, S.$Array<S.Struct<{
1388
3116
  readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1389
3117
  changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1390
3118
  Default: A;
@@ -1396,7 +3124,7 @@ export declare const makeStreamRpc: <const Tag extends string, Payload extends S
1396
3124
  withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1397
3125
  };
1398
3126
  readonly name: S.String;
1399
- }>>, never>;
3127
+ }>>, never, never>, never>;
1400
3128
  };
1401
3129
  }>;
1402
3130
  }>;