effect-app 4.0.0-beta.303 → 4.0.0-beta.305

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.
@@ -1,360 +1,249 @@
1
+ import type { NonEmptyReadonlyArray } from "effect/Array";
1
2
  import * as Ref from "effect/Ref";
2
3
  import * as Stream from "effect/Stream";
3
4
  import * as Effect from "./Effect.js";
4
5
  import * as RequestScopedDependencies from "./RequestScopedDependencies.js";
5
6
  import * as S from "./Schema.js";
6
- export declare const DataDependency: S.Struct<{
7
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
8
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
9
- Default: A;
10
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
11
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
12
- };
13
- Default: "repo";
14
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
15
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
16
- };
7
+ export declare const DataDependency: S.Union<readonly [S.Struct<{
8
+ readonly type: S.Literal<"repo">;
17
9
  readonly name: S.String;
18
- }>;
19
- export type DataDependency = S.Schema.Type<typeof DataDependency>;
20
- export declare const DataDependencies: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
21
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
22
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
23
- Default: A;
24
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
25
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
26
- };
27
- Default: "repo";
28
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
29
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
30
- };
10
+ readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
11
+ }>, S.Struct<{
12
+ readonly type: S.Literal<"signal">;
31
13
  readonly name: S.String;
32
- }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
33
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
34
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
35
- Default: A;
36
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
37
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
38
- };
39
- Default: "repo";
40
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
41
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
42
- };
14
+ readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
15
+ }>]>;
16
+ export type DataDependency = S.Schema.Type<typeof DataDependency>;
17
+ export declare const DataDependencies: S.decodeTo<S.instanceOf<ReadonlySet<{
18
+ readonly type: "repo";
19
+ readonly name: string;
20
+ readonly ids?: readonly [string, ...string[]] | undefined;
21
+ } | {
22
+ readonly type: "signal";
23
+ readonly name: string;
24
+ readonly ids?: readonly [string, ...string[]] | undefined;
25
+ }>, ReadonlySet<{
26
+ readonly type: "repo";
27
+ readonly name: string;
28
+ readonly ids?: readonly [string, ...string[]] | undefined;
29
+ } | {
30
+ readonly type: "signal";
31
+ readonly name: string;
32
+ readonly ids?: readonly [string, ...string[]] | undefined;
33
+ }>>, S.$Array<S.Union<readonly [S.Struct<{
34
+ readonly type: S.Literal<"repo">;
43
35
  readonly name: S.String;
44
- }, "Type">>>, S.$Array<S.Struct<{
45
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
46
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
47
- Default: A;
48
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
49
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
50
- };
51
- Default: "repo";
52
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
53
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
54
- };
36
+ readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
37
+ }>, S.Struct<{
38
+ readonly type: S.Literal<"signal">;
55
39
  readonly name: S.String;
56
- }>>, never, never> & {
57
- withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
58
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
59
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
60
- Default: A;
61
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
62
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
63
- };
64
- Default: "repo";
65
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
66
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
67
- };
68
- readonly name: S.String;
69
- }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
70
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
71
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
72
- Default: A;
73
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
74
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
75
- };
76
- Default: "repo";
77
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
78
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
79
- };
40
+ readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
41
+ }>]>>, never, never> & {
42
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<{
43
+ readonly type: "repo";
44
+ readonly name: string;
45
+ readonly ids?: readonly [string, ...string[]] | undefined;
46
+ } | {
47
+ readonly type: "signal";
48
+ readonly name: string;
49
+ readonly ids?: readonly [string, ...string[]] | undefined;
50
+ }>, ReadonlySet<{
51
+ readonly type: "repo";
52
+ readonly name: string;
53
+ readonly ids?: readonly [string, ...string[]] | undefined;
54
+ } | {
55
+ readonly type: "signal";
56
+ readonly name: string;
57
+ readonly ids?: readonly [string, ...string[]] | undefined;
58
+ }>>, S.$Array<S.Union<readonly [S.Struct<{
59
+ readonly type: S.Literal<"repo">;
80
60
  readonly name: S.String;
81
- }, "Type">>>, S.$Array<S.Struct<{
82
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
83
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
84
- Default: A;
85
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
86
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
87
- };
88
- Default: "repo";
89
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
90
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
91
- };
61
+ readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
62
+ }>, S.Struct<{
63
+ readonly type: S.Literal<"signal">;
92
64
  readonly name: S.String;
93
- }>>, never, never>>;
94
- withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
95
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
96
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
97
- Default: A;
98
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
99
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
100
- };
101
- Default: "repo";
102
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
103
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
104
- };
65
+ readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
66
+ }>]>>, never, never>>;
67
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<{
68
+ readonly type: "repo";
69
+ readonly name: string;
70
+ readonly ids?: readonly [string, ...string[]] | undefined;
71
+ } | {
72
+ readonly type: "signal";
73
+ readonly name: string;
74
+ readonly ids?: readonly [string, ...string[]] | undefined;
75
+ }>, ReadonlySet<{
76
+ readonly type: "repo";
77
+ readonly name: string;
78
+ readonly ids?: readonly [string, ...string[]] | undefined;
79
+ } | {
80
+ readonly type: "signal";
81
+ readonly name: string;
82
+ readonly ids?: readonly [string, ...string[]] | undefined;
83
+ }>>, S.$Array<S.Union<readonly [S.Struct<{
84
+ readonly type: S.Literal<"repo">;
105
85
  readonly name: S.String;
106
- }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
107
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
108
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
109
- Default: A;
110
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
111
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
112
- };
113
- Default: "repo";
114
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
115
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
116
- };
86
+ readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
87
+ }>, S.Struct<{
88
+ readonly type: S.Literal<"signal">;
117
89
  readonly name: S.String;
118
- }, "Type">>>, S.$Array<S.Struct<{
119
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
120
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
121
- Default: A;
122
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
123
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
124
- };
125
- Default: "repo";
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
- readonly name: S.String;
130
- }>>, never, never>, never>;
90
+ readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
91
+ }>]>>, never, never>, never>;
131
92
  };
132
93
  export type DataDependencies = S.Schema.Type<typeof DataDependencies>;
133
94
  export declare const empty: () => DataDependencies;
134
95
  export declare const DataDependencySet: S.Struct<{
135
- readonly reads: 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<{
148
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
149
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
150
- Default: A;
151
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
152
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
153
- };
154
- Default: "repo";
155
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
156
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
157
- };
96
+ readonly reads: S.decodeTo<S.instanceOf<ReadonlySet<{
97
+ readonly type: "repo";
98
+ readonly name: string;
99
+ readonly ids?: readonly [string, ...string[]] | undefined;
100
+ } | {
101
+ readonly type: "signal";
102
+ readonly name: string;
103
+ readonly ids?: readonly [string, ...string[]] | undefined;
104
+ }>, ReadonlySet<{
105
+ readonly type: "repo";
106
+ readonly name: string;
107
+ readonly ids?: readonly [string, ...string[]] | undefined;
108
+ } | {
109
+ readonly type: "signal";
110
+ readonly name: string;
111
+ readonly ids?: readonly [string, ...string[]] | undefined;
112
+ }>>, S.$Array<S.Union<readonly [S.Struct<{
113
+ readonly type: S.Literal<"repo">;
158
114
  readonly name: S.String;
159
- }, "Type">>>, S.$Array<S.Struct<{
160
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
161
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
162
- Default: A;
163
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
164
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
165
- };
166
- Default: "repo";
167
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
168
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
169
- };
115
+ readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
116
+ }>, S.Struct<{
117
+ readonly type: S.Literal<"signal">;
170
118
  readonly name: S.String;
171
- }>>, never, never> & {
172
- withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
173
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
174
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
175
- Default: A;
176
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
177
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
178
- };
179
- Default: "repo";
180
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
181
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
182
- };
183
- readonly name: S.String;
184
- }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
185
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
186
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
187
- Default: A;
188
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
189
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
190
- };
191
- Default: "repo";
192
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
193
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
194
- };
195
- readonly name: S.String;
196
- }, "Type">>>, S.$Array<S.Struct<{
197
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
198
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
199
- Default: A;
200
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
201
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
202
- };
203
- Default: "repo";
204
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
205
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
206
- };
119
+ readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
120
+ }>]>>, never, never> & {
121
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<{
122
+ readonly type: "repo";
123
+ readonly name: string;
124
+ readonly ids?: readonly [string, ...string[]] | undefined;
125
+ } | {
126
+ readonly type: "signal";
127
+ readonly name: string;
128
+ readonly ids?: readonly [string, ...string[]] | undefined;
129
+ }>, ReadonlySet<{
130
+ readonly type: "repo";
131
+ readonly name: string;
132
+ readonly ids?: readonly [string, ...string[]] | undefined;
133
+ } | {
134
+ readonly type: "signal";
135
+ readonly name: string;
136
+ readonly ids?: readonly [string, ...string[]] | undefined;
137
+ }>>, S.$Array<S.Union<readonly [S.Struct<{
138
+ readonly type: S.Literal<"repo">;
207
139
  readonly name: S.String;
208
- }>>, never, never>>;
209
- withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
210
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
211
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
212
- Default: A;
213
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
214
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
215
- };
216
- Default: "repo";
217
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
218
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
219
- };
140
+ readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
141
+ }>, S.Struct<{
142
+ readonly type: S.Literal<"signal">;
220
143
  readonly name: S.String;
221
- }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
222
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
223
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
224
- Default: A;
225
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
226
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
227
- };
228
- Default: "repo";
229
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
230
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
231
- };
144
+ readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
145
+ }>]>>, never, never>>;
146
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<{
147
+ readonly type: "repo";
148
+ readonly name: string;
149
+ readonly ids?: readonly [string, ...string[]] | undefined;
150
+ } | {
151
+ readonly type: "signal";
152
+ readonly name: string;
153
+ readonly ids?: readonly [string, ...string[]] | undefined;
154
+ }>, ReadonlySet<{
155
+ readonly type: "repo";
156
+ readonly name: string;
157
+ readonly ids?: readonly [string, ...string[]] | undefined;
158
+ } | {
159
+ readonly type: "signal";
160
+ readonly name: string;
161
+ readonly ids?: readonly [string, ...string[]] | undefined;
162
+ }>>, S.$Array<S.Union<readonly [S.Struct<{
163
+ readonly type: S.Literal<"repo">;
232
164
  readonly name: S.String;
233
- }, "Type">>>, S.$Array<S.Struct<{
234
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
235
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
236
- Default: A;
237
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
238
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
239
- };
240
- Default: "repo";
241
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
242
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
243
- };
165
+ readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
166
+ }>, S.Struct<{
167
+ readonly type: S.Literal<"signal">;
244
168
  readonly name: S.String;
245
- }>>, never, never>, never>;
169
+ readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
170
+ }>]>>, never, never>, never>;
246
171
  };
247
- readonly writes: 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
- };
172
+ readonly writes: S.decodeTo<S.instanceOf<ReadonlySet<{
173
+ readonly type: "repo";
174
+ readonly name: string;
175
+ readonly ids?: readonly [string, ...string[]] | undefined;
176
+ } | {
177
+ readonly type: "signal";
178
+ readonly name: string;
179
+ readonly ids?: readonly [string, ...string[]] | undefined;
180
+ }>, ReadonlySet<{
181
+ readonly type: "repo";
182
+ readonly name: string;
183
+ readonly ids?: readonly [string, ...string[]] | undefined;
184
+ } | {
185
+ readonly type: "signal";
186
+ readonly name: string;
187
+ readonly ids?: readonly [string, ...string[]] | undefined;
188
+ }>>, S.$Array<S.Union<readonly [S.Struct<{
189
+ readonly type: S.Literal<"repo">;
258
190
  readonly name: S.String;
259
- }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
260
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
261
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
262
- Default: A;
263
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
264
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
265
- };
266
- Default: "repo";
267
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
268
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
269
- };
191
+ readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
192
+ }>, S.Struct<{
193
+ readonly type: S.Literal<"signal">;
270
194
  readonly name: S.String;
271
- }, "Type">>>, S.$Array<S.Struct<{
272
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
273
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
274
- Default: A;
275
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
276
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
277
- };
278
- Default: "repo";
279
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
280
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
281
- };
282
- readonly name: S.String;
283
- }>>, never, never> & {
284
- withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
285
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
286
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
287
- Default: A;
288
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
289
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
290
- };
291
- Default: "repo";
292
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
293
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
294
- };
295
- readonly name: S.String;
296
- }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
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;
300
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
301
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
302
- };
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
- }, "Type">>>, S.$Array<S.Struct<{
309
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
310
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
311
- Default: A;
312
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
313
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
314
- };
315
- Default: "repo";
316
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
317
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
318
- };
195
+ readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
196
+ }>]>>, never, never> & {
197
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<{
198
+ readonly type: "repo";
199
+ readonly name: string;
200
+ readonly ids?: readonly [string, ...string[]] | undefined;
201
+ } | {
202
+ readonly type: "signal";
203
+ readonly name: string;
204
+ readonly ids?: readonly [string, ...string[]] | undefined;
205
+ }>, ReadonlySet<{
206
+ readonly type: "repo";
207
+ readonly name: string;
208
+ readonly ids?: readonly [string, ...string[]] | undefined;
209
+ } | {
210
+ readonly type: "signal";
211
+ readonly name: string;
212
+ readonly ids?: readonly [string, ...string[]] | undefined;
213
+ }>>, S.$Array<S.Union<readonly [S.Struct<{
214
+ readonly type: S.Literal<"repo">;
319
215
  readonly name: S.String;
320
- }>>, never, never>>;
321
- withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
322
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
323
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
324
- Default: A;
325
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
326
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
327
- };
328
- Default: "repo";
329
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
330
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
331
- };
216
+ readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
217
+ }>, S.Struct<{
218
+ readonly type: S.Literal<"signal">;
332
219
  readonly name: S.String;
333
- }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
334
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
335
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
336
- Default: A;
337
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
338
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
339
- };
340
- Default: "repo";
341
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
342
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
343
- };
220
+ readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
221
+ }>]>>, never, never>>;
222
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<{
223
+ readonly type: "repo";
224
+ readonly name: string;
225
+ readonly ids?: readonly [string, ...string[]] | undefined;
226
+ } | {
227
+ readonly type: "signal";
228
+ readonly name: string;
229
+ readonly ids?: readonly [string, ...string[]] | undefined;
230
+ }>, ReadonlySet<{
231
+ readonly type: "repo";
232
+ readonly name: string;
233
+ readonly ids?: readonly [string, ...string[]] | undefined;
234
+ } | {
235
+ readonly type: "signal";
236
+ readonly name: string;
237
+ readonly ids?: readonly [string, ...string[]] | undefined;
238
+ }>>, S.$Array<S.Union<readonly [S.Struct<{
239
+ readonly type: S.Literal<"repo">;
344
240
  readonly name: S.String;
345
- }, "Type">>>, S.$Array<S.Struct<{
346
- readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
347
- changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
348
- Default: A;
349
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
350
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
351
- };
352
- Default: "repo";
353
- withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
354
- withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
355
- };
241
+ readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
242
+ }>, S.Struct<{
243
+ readonly type: S.Literal<"signal">;
356
244
  readonly name: S.String;
357
- }>>, never, never>, never>;
245
+ readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
246
+ }>]>>, never, never>, never>;
358
247
  };
359
248
  }>;
360
249
  export type DataDependencySet = S.Schema.Type<typeof DataDependencySet>;
@@ -365,6 +254,7 @@ export interface DataDependencyRecorderService {
365
254
  readonly drain: Effect.Effect<DataDependencySet>;
366
255
  readonly drainWrites: Effect.Effect<DataDependencies>;
367
256
  }
257
+ export declare const merge: (...groups: ReadonlyArray<DataDependencies>) => DataDependencies;
368
258
  export declare const DataDependencyRecorder: RequestScopedDependencies.RequestScopedDependency<DataDependencyRecorderService, never, never>;
369
259
  export type DataDependencyRecorder = typeof DataDependencyRecorder;
370
260
  export type DataDependencyRecorderNotStartedError = RequestScopedDependencies.RequestScopedDependencyNotStartedError;
@@ -378,8 +268,10 @@ export declare const ensureDataDependencyRecorder: <A, E, R>(self: Effect.Effect
378
268
  /** Stream variant of {@link ensureDataDependencyRecorder}. */
379
269
  export declare const ensureDataDependencyRecorderStream: <A, E, R>(self: Stream.Stream<A, E, R>) => Stream.Stream<A, E, R>;
380
270
  export declare const makeDataDependencyRecorder: (readsRef: Ref.Ref<DataDependencies>, writesRef: Ref.Ref<DataDependencies>) => DataDependencyRecorderService;
381
- export declare const repo: (name: string) => DataDependency;
382
- export declare const signal: (name: string) => DataDependency;
271
+ export declare const repo: (name: string, ids?: NonEmptyReadonlyArray<string>) => DataDependency;
272
+ export declare const signal: (name: string, ids?: NonEmptyReadonlyArray<string>) => DataDependency;
273
+ export declare const readRepo: (name: string) => Effect.Effect<void, RequestScopedDependencies.RequestScopedDependencyNotStartedError, never>;
274
+ export declare const withRepoReadScope: (name: string, ids: NonEmptyReadonlyArray<string>) => <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
383
275
  export declare const QueryReadDependenciesMetaKey = "effect-app.query.readDependencies";
384
276
  export declare const read: (dependency: DataDependency) => Effect.Effect<void, RequestScopedDependencies.RequestScopedDependencyNotStartedError, never>;
385
277
  export declare const write: (dependency: DataDependency) => Effect.Effect<void, RequestScopedDependencies.RequestScopedDependencyNotStartedError, never>;