effect-app 4.0.0-beta.30 → 4.0.0-beta.301

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (365) hide show
  1. package/CHANGELOG.md +1435 -0
  2. package/dist/Array.d.ts +2 -1
  3. package/dist/Array.d.ts.map +1 -1
  4. package/dist/Array.js +4 -4
  5. package/dist/Chunk.d.ts.map +1 -1
  6. package/dist/Config/SecretURL.d.ts +3 -1
  7. package/dist/Config/SecretURL.d.ts.map +1 -1
  8. package/dist/Config/SecretURL.js +3 -6
  9. package/dist/Config/internal/configSecretURL.d.ts.map +1 -1
  10. package/dist/Config/internal/configSecretURL.js +2 -2
  11. package/dist/Config.d.ts +2 -0
  12. package/dist/Config.d.ts.map +1 -0
  13. package/dist/Config.js +8 -0
  14. package/dist/ConfigProvider.d.ts +2 -0
  15. package/dist/ConfigProvider.d.ts.map +1 -0
  16. package/dist/ConfigProvider.js +6 -0
  17. package/dist/{ServiceMap.d.ts → Context.d.ts} +18 -20
  18. package/dist/Context.d.ts.map +1 -0
  19. package/dist/Context.js +67 -0
  20. package/dist/DataDependencies.d.ts +388 -0
  21. package/dist/DataDependencies.d.ts.map +1 -0
  22. package/dist/DataDependencies.js +64 -0
  23. package/dist/Effect.d.ts +10 -9
  24. package/dist/Effect.d.ts.map +1 -1
  25. package/dist/Effect.js +5 -8
  26. package/dist/Emailer.d.ts +51 -0
  27. package/dist/Emailer.d.ts.map +1 -0
  28. package/dist/Emailer.js +7 -0
  29. package/dist/Function.d.ts.map +1 -1
  30. package/dist/Layer.d.ts +10 -6
  31. package/dist/Layer.d.ts.map +1 -1
  32. package/dist/Layer.js +3 -2
  33. package/dist/Model/Repository/Registry.d.ts +22 -0
  34. package/dist/Model/Repository/Registry.d.ts.map +1 -0
  35. package/dist/Model/Repository/Registry.js +18 -0
  36. package/dist/Model/Repository/ext.d.ts +60 -0
  37. package/dist/Model/Repository/ext.d.ts.map +1 -0
  38. package/dist/Model/Repository/ext.js +122 -0
  39. package/dist/Model/Repository/internal/internal.d.ts +63 -0
  40. package/dist/Model/Repository/internal/internal.d.ts.map +1 -0
  41. package/dist/Model/Repository/internal/internal.js +438 -0
  42. package/dist/Model/Repository/legacy.d.ts +21 -0
  43. package/dist/Model/Repository/legacy.d.ts.map +1 -0
  44. package/dist/Model/Repository/legacy.js +2 -0
  45. package/dist/Model/Repository/makeRepo.d.ts +54 -0
  46. package/dist/Model/Repository/makeRepo.d.ts.map +1 -0
  47. package/dist/Model/Repository/makeRepo.js +27 -0
  48. package/dist/Model/Repository/service.d.ts +121 -0
  49. package/dist/Model/Repository/service.d.ts.map +1 -0
  50. package/dist/Model/Repository/service.js +2 -0
  51. package/dist/Model/Repository/validation.d.ts +58 -0
  52. package/dist/Model/Repository/validation.d.ts.map +1 -0
  53. package/dist/Model/Repository/validation.js +32 -0
  54. package/dist/Model/Repository.d.ts +7 -0
  55. package/dist/Model/Repository.d.ts.map +1 -0
  56. package/dist/Model/Repository.js +7 -0
  57. package/dist/Model/dsl.d.ts +33 -0
  58. package/dist/Model/dsl.d.ts.map +1 -0
  59. package/dist/Model/dsl.js +43 -0
  60. package/dist/Model/filter/filterApi.d.ts +30 -0
  61. package/dist/Model/filter/filterApi.d.ts.map +1 -0
  62. package/dist/Model/filter/filterApi.js +2 -0
  63. package/dist/Model/filter/types/errors.d.ts +29 -0
  64. package/dist/Model/filter/types/errors.d.ts.map +1 -0
  65. package/dist/Model/filter/types/errors.js +2 -0
  66. package/dist/Model/filter/types/fields.d.ts +15 -0
  67. package/dist/Model/filter/types/fields.d.ts.map +1 -0
  68. package/dist/Model/filter/types/fields.js +2 -0
  69. package/dist/Model/filter/types/path/common.d.ts +316 -0
  70. package/dist/Model/filter/types/path/common.d.ts.map +1 -0
  71. package/dist/Model/filter/types/path/common.js +2 -0
  72. package/dist/Model/filter/types/path/eager.d.ts +94 -0
  73. package/dist/Model/filter/types/path/eager.d.ts.map +1 -0
  74. package/dist/Model/filter/types/path/eager.js +36 -0
  75. package/dist/Model/filter/types/path/index.d.ts +4 -0
  76. package/dist/Model/filter/types/path/index.d.ts.map +1 -0
  77. package/dist/Model/filter/types/path/index.js +3 -0
  78. package/dist/Model/filter/types/utils.d.ts +79 -0
  79. package/dist/Model/filter/types/utils.d.ts.map +1 -0
  80. package/dist/Model/filter/types/utils.js +2 -0
  81. package/dist/Model/filter/types/validator.d.ts +30 -0
  82. package/dist/Model/filter/types/validator.d.ts.map +1 -0
  83. package/dist/Model/filter/types/validator.js +2 -0
  84. package/dist/Model/filter/types.d.ts +5 -0
  85. package/dist/Model/filter/types.d.ts.map +1 -0
  86. package/dist/Model/filter/types.js +7 -0
  87. package/dist/Model/query/dsl.d.ts +514 -0
  88. package/dist/Model/query/dsl.d.ts.map +1 -0
  89. package/dist/Model/query/dsl.js +376 -0
  90. package/dist/Model/query/new-kid-interpreter.d.ts +132 -0
  91. package/dist/Model/query/new-kid-interpreter.d.ts.map +1 -0
  92. package/dist/Model/query/new-kid-interpreter.js +361 -0
  93. package/dist/Model/query.d.ts +15 -0
  94. package/dist/Model/query.d.ts.map +1 -0
  95. package/dist/Model/query.js +3 -0
  96. package/dist/Model.d.ts +5 -0
  97. package/dist/Model.d.ts.map +1 -0
  98. package/dist/Model.js +5 -0
  99. package/dist/NonEmptySet.d.ts +3 -1
  100. package/dist/NonEmptySet.d.ts.map +1 -1
  101. package/dist/NonEmptySet.js +2 -2
  102. package/dist/Option.d.ts +1 -0
  103. package/dist/Option.d.ts.map +1 -1
  104. package/dist/Option.js +3 -1
  105. package/dist/Pure.d.ts +7 -5
  106. package/dist/Pure.d.ts.map +1 -1
  107. package/dist/Pure.js +7 -4
  108. package/dist/QueueMaker.d.ts +11 -0
  109. package/dist/QueueMaker.d.ts.map +1 -0
  110. package/dist/QueueMaker.js +11 -0
  111. package/dist/RequestContext.d.ts +87 -0
  112. package/dist/RequestContext.d.ts.map +1 -0
  113. package/dist/RequestContext.js +45 -0
  114. package/dist/RequestScopedDependencies.d.ts +21 -0
  115. package/dist/RequestScopedDependencies.d.ts.map +1 -0
  116. package/dist/RequestScopedDependencies.js +16 -0
  117. package/dist/Schema/Class.d.ts +188 -19
  118. package/dist/Schema/Class.d.ts.map +1 -1
  119. package/dist/Schema/Class.js +260 -17
  120. package/dist/Schema/FastCheck.d.ts.map +1 -1
  121. package/dist/Schema/SchemaParser.d.ts +5 -0
  122. package/dist/Schema/SchemaParser.d.ts.map +1 -0
  123. package/dist/Schema/SchemaParser.js +6 -0
  124. package/dist/Schema/SpecialJsonSchema.d.ts +34 -0
  125. package/dist/Schema/SpecialJsonSchema.d.ts.map +1 -0
  126. package/dist/Schema/SpecialJsonSchema.js +118 -0
  127. package/dist/Schema/SpecialOpenApi.d.ts +32 -0
  128. package/dist/Schema/SpecialOpenApi.d.ts.map +1 -0
  129. package/dist/Schema/SpecialOpenApi.js +123 -0
  130. package/dist/Schema/brand.d.ts +4 -2
  131. package/dist/Schema/brand.d.ts.map +1 -1
  132. package/dist/Schema/brand.js +3 -1
  133. package/dist/Schema/email.d.ts.map +1 -1
  134. package/dist/Schema/email.js +7 -4
  135. package/dist/Schema/ext.d.ts +338 -55
  136. package/dist/Schema/ext.d.ts.map +1 -1
  137. package/dist/Schema/ext.js +358 -53
  138. package/dist/Schema/moreStrings.d.ts +82 -36
  139. package/dist/Schema/moreStrings.d.ts.map +1 -1
  140. package/dist/Schema/moreStrings.js +49 -42
  141. package/dist/Schema/numbers.d.ts +34 -21
  142. package/dist/Schema/numbers.d.ts.map +1 -1
  143. package/dist/Schema/numbers.js +55 -12
  144. package/dist/Schema/phoneNumber.d.ts.map +1 -1
  145. package/dist/Schema/phoneNumber.js +6 -3
  146. package/dist/Schema/schema.d.ts +1 -1
  147. package/dist/Schema/schema.d.ts.map +1 -1
  148. package/dist/Schema/schema.js +2 -2
  149. package/dist/Schema/strings.d.ts +18 -4
  150. package/dist/Schema/strings.d.ts.map +1 -1
  151. package/dist/Schema/strings.js +1 -5
  152. package/dist/Schema.d.ts +222 -8
  153. package/dist/Schema.d.ts.map +1 -1
  154. package/dist/Schema.js +191 -12
  155. package/dist/SchemaAST.d.ts +2 -0
  156. package/dist/SchemaAST.d.ts.map +1 -0
  157. package/dist/SchemaAST.js +2 -0
  158. package/dist/Set.d.ts +4 -1
  159. package/dist/Set.d.ts.map +1 -1
  160. package/dist/Set.js +3 -2
  161. package/dist/Store.d.ts +163 -0
  162. package/dist/Store.d.ts.map +1 -0
  163. package/dist/Store.js +113 -0
  164. package/dist/_ext/Array.d.ts +1 -1
  165. package/dist/_ext/Array.d.ts.map +1 -1
  166. package/dist/_ext/Array.js +4 -2
  167. package/dist/_ext/misc.d.ts +4 -1
  168. package/dist/_ext/misc.d.ts.map +1 -1
  169. package/dist/_ext/misc.js +4 -2
  170. package/dist/_ext/ord.ext.d.ts +2 -1
  171. package/dist/_ext/ord.ext.d.ts.map +1 -1
  172. package/dist/_ext/ord.ext.js +2 -2
  173. package/dist/builtin.d.ts +2 -14
  174. package/dist/builtin.d.ts.map +1 -1
  175. package/dist/builtin.js +1 -1
  176. package/dist/client/InvalidationKeys.d.ts +30 -0
  177. package/dist/client/InvalidationKeys.d.ts.map +1 -0
  178. package/dist/client/InvalidationKeys.js +37 -0
  179. package/dist/client/apiClientFactory.d.ts +19 -31
  180. package/dist/client/apiClientFactory.d.ts.map +1 -1
  181. package/dist/client/apiClientFactory.js +155 -35
  182. package/dist/client/clientFor.d.ts +54 -18
  183. package/dist/client/clientFor.d.ts.map +1 -1
  184. package/dist/client/clientFor.js +9 -1
  185. package/dist/client/errors.d.ts +82 -27
  186. package/dist/client/errors.d.ts.map +1 -1
  187. package/dist/client/errors.js +75 -19
  188. package/dist/client/makeClient.d.ts +490 -34
  189. package/dist/client/makeClient.d.ts.map +1 -1
  190. package/dist/client/makeClient.js +62 -28
  191. package/dist/client.d.ts +2 -0
  192. package/dist/client.d.ts.map +1 -1
  193. package/dist/client.js +3 -1
  194. package/dist/faker.d.ts.map +1 -1
  195. package/dist/http/Request.d.ts +1 -1
  196. package/dist/http/Request.d.ts.map +1 -1
  197. package/dist/http/Request.js +2 -2
  198. package/dist/ids.d.ts +42 -14
  199. package/dist/ids.d.ts.map +1 -1
  200. package/dist/ids.js +30 -5
  201. package/dist/index.d.ts +6 -7
  202. package/dist/index.d.ts.map +1 -1
  203. package/dist/index.js +8 -8
  204. package/dist/middleware.d.ts +13 -7
  205. package/dist/middleware.d.ts.map +1 -1
  206. package/dist/middleware.js +14 -8
  207. package/dist/rpc/Invalidation.d.ts +3140 -0
  208. package/dist/rpc/Invalidation.d.ts.map +1 -0
  209. package/dist/rpc/Invalidation.js +178 -0
  210. package/dist/rpc/MiddlewareMaker.d.ts +11 -7
  211. package/dist/rpc/MiddlewareMaker.d.ts.map +1 -1
  212. package/dist/rpc/MiddlewareMaker.js +59 -38
  213. package/dist/rpc/RpcContextMap.d.ts +3 -3
  214. package/dist/rpc/RpcContextMap.d.ts.map +1 -1
  215. package/dist/rpc/RpcContextMap.js +4 -4
  216. package/dist/rpc/RpcMiddleware.d.ts +14 -10
  217. package/dist/rpc/RpcMiddleware.d.ts.map +1 -1
  218. package/dist/rpc/RpcMiddleware.js +1 -1
  219. package/dist/rpc.d.ts +1 -1
  220. package/dist/rpc.d.ts.map +1 -1
  221. package/dist/rpc.js +2 -2
  222. package/dist/runtime.d.ts +19 -0
  223. package/dist/runtime.d.ts.map +1 -0
  224. package/dist/runtime.js +40 -0
  225. package/dist/setupRequest.d.ts +20 -0
  226. package/dist/setupRequest.d.ts.map +1 -0
  227. package/dist/setupRequest.js +72 -0
  228. package/dist/toast.d.ts +51 -0
  229. package/dist/toast.d.ts.map +1 -0
  230. package/dist/toast.js +34 -0
  231. package/dist/transform.d.ts +1 -1
  232. package/dist/transform.d.ts.map +1 -1
  233. package/dist/transform.js +4 -5
  234. package/dist/utils/effectify.d.ts +1 -1
  235. package/dist/utils/effectify.d.ts.map +1 -1
  236. package/dist/utils/effectify.js +2 -2
  237. package/dist/utils/extend.d.ts.map +1 -1
  238. package/dist/utils/gen.d.ts +4 -4
  239. package/dist/utils/gen.d.ts.map +1 -1
  240. package/dist/utils/logLevel.d.ts +2 -2
  241. package/dist/utils/logLevel.d.ts.map +1 -1
  242. package/dist/utils/logger.d.ts +4 -3
  243. package/dist/utils/logger.d.ts.map +1 -1
  244. package/dist/utils/logger.js +4 -4
  245. package/dist/utils.d.ts +34 -39
  246. package/dist/utils.d.ts.map +1 -1
  247. package/dist/utils.js +33 -37
  248. package/dist/validation/validators.d.ts.map +1 -1
  249. package/dist/validation.d.ts.map +1 -1
  250. package/dist/withToast.d.ts +30 -0
  251. package/dist/withToast.d.ts.map +1 -0
  252. package/dist/withToast.js +64 -0
  253. package/package.json +27 -251
  254. package/src/Array.ts +5 -5
  255. package/src/Chunk.ts +3 -3
  256. package/src/Config/SecretURL.ts +6 -3
  257. package/src/Config/internal/configSecretURL.ts +2 -2
  258. package/src/Config.ts +7 -0
  259. package/src/ConfigProvider.ts +5 -0
  260. package/src/{ServiceMap.ts → Context.ts} +56 -63
  261. package/src/DataDependencies.ts +114 -0
  262. package/src/Effect.ts +14 -16
  263. package/src/Emailer.ts +51 -0
  264. package/src/Inputify.type.ts +1 -1
  265. package/src/Layer.ts +11 -7
  266. package/src/Model/Repository/Registry.ts +35 -0
  267. package/src/Model/Repository/ext.ts +375 -0
  268. package/src/Model/Repository/internal/internal.ts +755 -0
  269. package/src/Model/Repository/legacy.ts +29 -0
  270. package/src/Model/Repository/makeRepo.ts +145 -0
  271. package/src/Model/Repository/service.ts +676 -0
  272. package/src/Model/Repository/validation.ts +31 -0
  273. package/src/Model/Repository.ts +6 -0
  274. package/src/Model/dsl.ts +129 -0
  275. package/src/Model/filter/filterApi.ts +60 -0
  276. package/src/Model/filter/types/errors.ts +47 -0
  277. package/src/Model/filter/types/fields.ts +50 -0
  278. package/src/Model/filter/types/path/common.ts +404 -0
  279. package/src/Model/filter/types/path/eager.ts +329 -0
  280. package/src/Model/filter/types/path/index.ts +4 -0
  281. package/src/Model/filter/types/utils.ts +128 -0
  282. package/src/Model/filter/types/validator.ts +46 -0
  283. package/src/Model/filter/types.ts +6 -0
  284. package/src/Model/query/dsl.ts +2770 -0
  285. package/src/Model/query/new-kid-interpreter.ts +526 -0
  286. package/src/Model/query.ts +13 -0
  287. package/src/Model.ts +4 -0
  288. package/src/NonEmptySet.ts +6 -4
  289. package/src/Option.ts +2 -0
  290. package/src/Pure.ts +10 -7
  291. package/src/QueueMaker.ts +11 -0
  292. package/src/RequestContext.ts +48 -0
  293. package/src/RequestScopedDependencies.ts +45 -0
  294. package/src/Schema/Class.ts +633 -59
  295. package/src/Schema/SchemaParser.ts +12 -0
  296. package/src/Schema/SpecialJsonSchema.ts +139 -0
  297. package/src/Schema/SpecialOpenApi.ts +130 -0
  298. package/src/Schema/brand.ts +22 -2
  299. package/src/Schema/email.ts +9 -4
  300. package/src/Schema/ext.ts +446 -91
  301. package/src/Schema/moreStrings.ts +147 -68
  302. package/src/Schema/numbers.ts +97 -28
  303. package/src/Schema/phoneNumber.ts +9 -5
  304. package/src/Schema/schema.ts +1 -1
  305. package/src/Schema/strings.ts +23 -14
  306. package/src/Schema.ts +397 -26
  307. package/src/SchemaAST.ts +1 -0
  308. package/src/Set.ts +6 -2
  309. package/src/Store.ts +273 -0
  310. package/src/_ext/Array.ts +4 -2
  311. package/src/_ext/misc.ts +4 -1
  312. package/src/_ext/ord.ext.ts +2 -1
  313. package/src/builtin-json.d.ts +24 -0
  314. package/src/builtin.ts +16 -21
  315. package/src/client/InvalidationKeys.ts +55 -0
  316. package/src/client/apiClientFactory.ts +299 -134
  317. package/src/client/clientFor.ts +107 -34
  318. package/src/client/errors.ts +100 -29
  319. package/src/client/makeClient.ts +594 -78
  320. package/src/client.ts +6 -4
  321. package/src/http/Request.ts +3 -3
  322. package/src/http.ts +1 -1
  323. package/src/ids.ts +33 -6
  324. package/src/index.ts +20 -23
  325. package/src/middleware.ts +13 -9
  326. package/src/rpc/Invalidation.ts +278 -0
  327. package/src/rpc/MiddlewareMaker.ts +88 -80
  328. package/src/rpc/README.md +2 -2
  329. package/src/rpc/RpcContextMap.ts +7 -6
  330. package/src/rpc/RpcMiddleware.ts +19 -13
  331. package/src/rpc.ts +4 -4
  332. package/src/runtime.ts +56 -0
  333. package/src/setupRequest.ts +138 -0
  334. package/src/toast.ts +54 -0
  335. package/src/transform.ts +4 -4
  336. package/src/utils/effectify.ts +1 -1
  337. package/src/utils/gen.ts +8 -8
  338. package/src/utils/logLevel.ts +1 -1
  339. package/src/utils/logger.ts +4 -3
  340. package/src/utils.ts +85 -158
  341. package/src/validation.ts +2 -2
  342. package/src/withToast.ts +133 -0
  343. package/test/dist/rpc.test.d.ts.map +1 -1
  344. package/test/dist/rpcMiddlewareContext.test.d.ts.map +1 -0
  345. package/test/dist/secretURL.test.d.ts.map +1 -0
  346. package/test/dist/special.test.d.ts.map +1 -0
  347. package/test/moreStrings.test.ts +1 -1
  348. package/test/rpc.test.ts +42 -13
  349. package/test/rpcMiddlewareContext.test.ts +63 -0
  350. package/test/schema.test.ts +459 -30
  351. package/test/secretURL.test.ts +160 -0
  352. package/test/special.test.ts +1258 -0
  353. package/test/utils.test.ts +7 -7
  354. package/tsconfig.base.json +6 -5
  355. package/tsconfig.json +3 -1
  356. package/tsconfig.src.json +29 -29
  357. package/tsconfig.test.json +2 -2
  358. package/dist/Operations.d.ts +0 -123
  359. package/dist/Operations.d.ts.map +0 -1
  360. package/dist/Operations.js +0 -29
  361. package/dist/ServiceMap.d.ts.map +0 -1
  362. package/dist/ServiceMap.js +0 -91
  363. package/eslint.config.mjs +0 -26
  364. package/src/Operations.ts +0 -55
  365. package/tsconfig.json.bak +0 -12
@@ -0,0 +1,3140 @@
1
+ import * as Ref from "effect/Ref";
2
+ import { Rpc } from "effect/unstable/rpc";
3
+ import { type ClientForOptions } from "../client/clientFor.js";
4
+ import * as Context from "../Context.js";
5
+ import * as DataDependencies from "../DataDependencies.js";
6
+ import * as Effect from "../Effect.js";
7
+ import * as S from "../Schema.js";
8
+ /**
9
+ * Shorthand for a handler-derived invalidation key.
10
+ * Accepts an RPC handler object so `add(GetMe)` is equivalent to
11
+ * `add(makeQueryKey(GetMe))`.
12
+ */
13
+ export type InvalidationKeyInput = InvalidationKey | {
14
+ readonly id: string;
15
+ readonly options?: ClientForOptions;
16
+ };
17
+ /**
18
+ * A single segment within an `InvalidationKey` array.
19
+ * Accepts any JSON-compatible value: string, number, boolean, null,
20
+ * arrays and objects recursively — matching TanStack Query's `queryKey` element type.
21
+ */
22
+ export declare const InvalidationKeySegment: S.Codec<S.Json, S.Json, never, never>;
23
+ export type InvalidationKeySegment = S.Schema.Type<typeof InvalidationKeySegment>;
24
+ /** Schema for a single invalidation key – an array of segments compatible with TanStack Query `queryKey`. */
25
+ export declare const InvalidationKey: S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
26
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
27
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
28
+ };
29
+ export type InvalidationKey = S.Schema.Type<typeof InvalidationKey>;
30
+ /** Schema for the full set of invalidation keys – an array of `InvalidationKey`. */
31
+ export declare const InvalidationKeys: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
32
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
33
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
34
+ }> & {
35
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
36
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
37
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
38
+ }>>;
39
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
40
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
41
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
42
+ }>, never>;
43
+ };
44
+ export type InvalidationKeys = S.Schema.Type<typeof InvalidationKeys>;
45
+ /** Metadata included in every command response for server-driven cache invalidation. */
46
+ export declare const CommandMetaData: S.Struct<{
47
+ readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
48
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
49
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
50
+ }> & {
51
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
52
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
53
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
54
+ }>>;
55
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
56
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
57
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
58
+ }>, never>;
59
+ };
60
+ readonly dataDependencies: S.Struct<{
61
+ readonly reads: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
62
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
63
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
64
+ Default: A;
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
+ Default: "repo";
69
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
70
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
71
+ };
72
+ readonly name: S.String;
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<{
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
+ };
158
+ 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
+ };
170
+ readonly name: S.String;
171
+ }>>, never, never>, never>;
172
+ };
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<{
198
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
199
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
200
+ Default: A;
201
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
202
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
203
+ };
204
+ Default: "repo";
205
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
206
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
207
+ };
208
+ readonly name: S.String;
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<{
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
+ };
270
+ 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>, never>;
284
+ };
285
+ }>;
286
+ }>;
287
+ export type CommandMetaData = S.Schema.Type<typeof CommandMetaData>;
288
+ export declare const emptyDataDependencies: DataDependencies.DataDependencySet;
289
+ export declare const makeMetaData: (invalidateQueries: InvalidationKeys, dataDependencies?: DataDependencies.DataDependencySet) => CommandMetaData;
290
+ export declare const QueryResponseWithMetaData: <S extends S.Top>(success: S) => S.Struct<{
291
+ readonly payload: S;
292
+ readonly metadata: S.Struct<{
293
+ readonly dataDependencies: 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<{
319
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
320
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
321
+ Default: A;
322
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
323
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
324
+ };
325
+ Default: "repo";
326
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
327
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
328
+ };
329
+ readonly name: S.String;
330
+ }>>, never, never> & {
331
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
332
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
333
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
334
+ Default: A;
335
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
336
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
337
+ };
338
+ Default: "repo";
339
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
340
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
341
+ };
342
+ readonly name: S.String;
343
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
344
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
345
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
346
+ Default: A;
347
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
348
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
349
+ };
350
+ Default: "repo";
351
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
352
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
353
+ };
354
+ readonly name: S.String;
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";
363
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
364
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
365
+ };
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<{
381
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
382
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
383
+ Default: A;
384
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
385
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
386
+ };
387
+ Default: "repo";
388
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
389
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
390
+ };
391
+ readonly name: S.String;
392
+ }, "Type">>>, S.$Array<S.Struct<{
393
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
394
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
395
+ Default: A;
396
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
397
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
398
+ };
399
+ Default: "repo";
400
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
401
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
402
+ };
403
+ readonly name: S.String;
404
+ }>>, never, never>, never>;
405
+ };
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<{
431
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
432
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
433
+ Default: A;
434
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
435
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
436
+ };
437
+ Default: "repo";
438
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
439
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
440
+ };
441
+ readonly name: S.String;
442
+ }>>, never, never> & {
443
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
444
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
445
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
446
+ Default: A;
447
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
448
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
449
+ };
450
+ Default: "repo";
451
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
452
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
453
+ };
454
+ readonly name: S.String;
455
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
456
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
457
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
458
+ Default: A;
459
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
460
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
461
+ };
462
+ Default: "repo";
463
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
464
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
465
+ };
466
+ readonly name: S.String;
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";
475
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
476
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
477
+ };
478
+ readonly name: S.String;
479
+ }>>, never, never>>;
480
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
481
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
482
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
483
+ Default: A;
484
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
485
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
486
+ };
487
+ Default: "repo";
488
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
489
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
490
+ };
491
+ readonly name: S.String;
492
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
493
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
494
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
495
+ Default: A;
496
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
497
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
498
+ };
499
+ Default: "repo";
500
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
501
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
502
+ };
503
+ readonly name: S.String;
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.
526
+ */
527
+ export declare const CommandResponseWithMetaData: <S extends S.Top>(success: S) => S.Struct<{
528
+ readonly payload: S;
529
+ readonly metadata: S.Struct<{
530
+ readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
531
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
532
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
533
+ }> & {
534
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
535
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
536
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
537
+ }>>;
538
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
539
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
540
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
541
+ }>, never>;
542
+ };
543
+ readonly dataDependencies: 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<{
569
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
570
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
571
+ Default: A;
572
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
573
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
574
+ };
575
+ Default: "repo";
576
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
577
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
578
+ };
579
+ readonly name: S.String;
580
+ }>>, never, never> & {
581
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
582
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
583
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
584
+ Default: A;
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
+ Default: "repo";
589
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
590
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
591
+ };
592
+ readonly name: S.String;
593
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
594
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
595
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
596
+ Default: A;
597
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
598
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
599
+ };
600
+ Default: "repo";
601
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
602
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
603
+ };
604
+ readonly name: S.String;
605
+ }, "Type">>>, S.$Array<S.Struct<{
606
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
607
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
608
+ Default: A;
609
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
610
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
611
+ };
612
+ Default: "repo";
613
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
614
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
615
+ };
616
+ readonly name: S.String;
617
+ }>>, never, never>>;
618
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
619
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
620
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
621
+ Default: A;
622
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
623
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
624
+ };
625
+ Default: "repo";
626
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
627
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
628
+ };
629
+ readonly name: S.String;
630
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
631
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
632
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
633
+ Default: A;
634
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
635
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
636
+ };
637
+ Default: "repo";
638
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
639
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
640
+ };
641
+ readonly name: S.String;
642
+ }, "Type">>>, S.$Array<S.Struct<{
643
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
644
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
645
+ Default: A;
646
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
647
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
648
+ };
649
+ Default: "repo";
650
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
651
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
652
+ };
653
+ readonly name: S.String;
654
+ }>>, never, never>, never>;
655
+ };
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<{
681
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
682
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
683
+ Default: A;
684
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
685
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
686
+ };
687
+ Default: "repo";
688
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
689
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
690
+ };
691
+ readonly name: S.String;
692
+ }>>, never, never> & {
693
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
694
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
695
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
696
+ Default: A;
697
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
698
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
699
+ };
700
+ Default: "repo";
701
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
702
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
703
+ };
704
+ readonly name: S.String;
705
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
706
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
707
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
708
+ Default: A;
709
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
710
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
711
+ };
712
+ Default: "repo";
713
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
714
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
715
+ };
716
+ readonly name: S.String;
717
+ }, "Type">>>, S.$Array<S.Struct<{
718
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
719
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
720
+ Default: A;
721
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
722
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
723
+ };
724
+ Default: "repo";
725
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
726
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
727
+ };
728
+ readonly name: S.String;
729
+ }>>, never, never>>;
730
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
731
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
732
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
733
+ Default: A;
734
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
735
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
736
+ };
737
+ Default: "repo";
738
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
739
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
740
+ };
741
+ readonly name: S.String;
742
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
743
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
744
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
745
+ Default: A;
746
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
747
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
748
+ };
749
+ Default: "repo";
750
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
751
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
752
+ };
753
+ readonly name: S.String;
754
+ }, "Type">>>, S.$Array<S.Struct<{
755
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
756
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
757
+ Default: A;
758
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
759
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
760
+ };
761
+ Default: "repo";
762
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
763
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
764
+ };
765
+ readonly name: S.String;
766
+ }>>, never, never>, never>;
767
+ };
768
+ }>;
769
+ }>;
770
+ }>;
771
+ /**
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.
777
+ */
778
+ export declare const CommandFailureWithMetaData: <E extends S.Top>(error: E) => S.Struct<{
779
+ readonly _tag: S.Literal<"CommandFailureWithMetaData">;
780
+ readonly error: E;
781
+ readonly metadata: S.Struct<{
782
+ readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
783
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
784
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
785
+ }> & {
786
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
787
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
788
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
789
+ }>>;
790
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
791
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
792
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
793
+ }>, never>;
794
+ };
795
+ readonly dataDependencies: 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<{
821
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
822
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
823
+ Default: A;
824
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
825
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
826
+ };
827
+ Default: "repo";
828
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
829
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
830
+ };
831
+ readonly name: S.String;
832
+ }>>, never, never> & {
833
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
834
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
835
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
836
+ Default: A;
837
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
838
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
839
+ };
840
+ Default: "repo";
841
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
842
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
843
+ };
844
+ readonly name: S.String;
845
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
846
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
847
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
848
+ Default: A;
849
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
850
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
851
+ };
852
+ Default: "repo";
853
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
854
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
855
+ };
856
+ readonly name: S.String;
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";
865
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
866
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
867
+ };
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<{
883
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
884
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
885
+ Default: A;
886
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
887
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
888
+ };
889
+ Default: "repo";
890
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
891
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
892
+ };
893
+ readonly name: S.String;
894
+ }, "Type">>>, S.$Array<S.Struct<{
895
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
896
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
897
+ Default: A;
898
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
899
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
900
+ };
901
+ Default: "repo";
902
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
903
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
904
+ };
905
+ readonly name: S.String;
906
+ }>>, never, never>, never>;
907
+ };
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
+ }>;
1023
+ /**
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.
1029
+ *
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).
1033
+ */
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">;
1039
+ readonly metadata: S.Struct<{
1040
+ readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
1041
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
1042
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
1043
+ }> & {
1044
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
1045
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
1046
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
1047
+ }>>;
1048
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
1049
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
1050
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
1051
+ }>, never>;
1052
+ };
1053
+ readonly dataDependencies: 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<{
1079
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1080
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
1081
+ Default: A;
1082
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
1083
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
1084
+ };
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 = import("effect/Schema").Void, Success extends S.Top = import("effect/Schema").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 = import("effect/Schema").Void, Success extends S.Top = import("effect/Schema").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<{
2711
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2712
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2713
+ Default: A;
2714
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2715
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2716
+ };
2717
+ Default: "repo";
2718
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2719
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2720
+ };
2721
+ readonly name: S.String;
2722
+ }, "Type">>>, S.$Array<S.Struct<{
2723
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2724
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2725
+ Default: A;
2726
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2727
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2728
+ };
2729
+ Default: "repo";
2730
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2731
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2732
+ };
2733
+ readonly name: S.String;
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";
2743
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2744
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2745
+ };
2746
+ readonly name: S.String;
2747
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2748
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2749
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2750
+ Default: A;
2751
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2752
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2753
+ };
2754
+ Default: "repo";
2755
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2756
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2757
+ };
2758
+ readonly name: S.String;
2759
+ }, "Type">>>, S.$Array<S.Struct<{
2760
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2761
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2762
+ Default: A;
2763
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2764
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2765
+ };
2766
+ Default: "repo";
2767
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2768
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2769
+ };
2770
+ readonly name: S.String;
2771
+ }>>, never, never>, never>;
2772
+ };
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<{
2798
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2799
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2800
+ Default: A;
2801
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2802
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2803
+ };
2804
+ Default: "repo";
2805
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2806
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2807
+ };
2808
+ readonly name: S.String;
2809
+ }>>, never, never> & {
2810
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2811
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2812
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2813
+ Default: A;
2814
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2815
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2816
+ };
2817
+ Default: "repo";
2818
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2819
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2820
+ };
2821
+ readonly name: S.String;
2822
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2823
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2824
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2825
+ Default: A;
2826
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2827
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2828
+ };
2829
+ Default: "repo";
2830
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2831
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2832
+ };
2833
+ readonly name: S.String;
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";
2842
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2843
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2844
+ };
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<{
2860
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2861
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2862
+ Default: A;
2863
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2864
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2865
+ };
2866
+ Default: "repo";
2867
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2868
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2869
+ };
2870
+ readonly name: S.String;
2871
+ }, "Type">>>, S.$Array<S.Struct<{
2872
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2873
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2874
+ Default: A;
2875
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2876
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2877
+ };
2878
+ Default: "repo";
2879
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2880
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2881
+ };
2882
+ readonly name: S.String;
2883
+ }>>, never, never>, never>;
2884
+ };
2885
+ }>;
2886
+ }>;
2887
+ }>]>, S.Struct<{
2888
+ readonly _tag: S.Literal<"error">;
2889
+ readonly error: S.Top & Error;
2890
+ readonly metadata: S.Struct<{
2891
+ readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
2892
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
2893
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
2894
+ }> & {
2895
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
2896
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
2897
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
2898
+ }>>;
2899
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
2900
+ withConstructorDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
2901
+ withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>, never>;
2902
+ }>, never>;
2903
+ };
2904
+ readonly dataDependencies: 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<{
2930
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2931
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2932
+ Default: A;
2933
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2934
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2935
+ };
2936
+ Default: "repo";
2937
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2938
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2939
+ };
2940
+ readonly name: S.String;
2941
+ }>>, never, never> & {
2942
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2943
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2944
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2945
+ Default: A;
2946
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2947
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2948
+ };
2949
+ Default: "repo";
2950
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2951
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2952
+ };
2953
+ readonly name: S.String;
2954
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2955
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2956
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2957
+ Default: A;
2958
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2959
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2960
+ };
2961
+ Default: "repo";
2962
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2963
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2964
+ };
2965
+ readonly name: S.String;
2966
+ }, "Type">>>, S.$Array<S.Struct<{
2967
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2968
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2969
+ Default: A;
2970
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2971
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2972
+ };
2973
+ Default: "repo";
2974
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2975
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2976
+ };
2977
+ readonly name: S.String;
2978
+ }>>, never, never>>;
2979
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2980
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2981
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2982
+ Default: A;
2983
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2984
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2985
+ };
2986
+ Default: "repo";
2987
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2988
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2989
+ };
2990
+ readonly name: S.String;
2991
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
2992
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2993
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
2994
+ Default: A;
2995
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
2996
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
2997
+ };
2998
+ Default: "repo";
2999
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
3000
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
3001
+ };
3002
+ readonly name: S.String;
3003
+ }, "Type">>>, S.$Array<S.Struct<{
3004
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
3005
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
3006
+ Default: A;
3007
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
3008
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
3009
+ };
3010
+ Default: "repo";
3011
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
3012
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
3013
+ };
3014
+ readonly name: S.String;
3015
+ }>>, never, never>, never>;
3016
+ };
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<{
3042
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
3043
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
3044
+ Default: A;
3045
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
3046
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
3047
+ };
3048
+ Default: "repo";
3049
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
3050
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
3051
+ };
3052
+ readonly name: S.String;
3053
+ }>>, never, never> & {
3054
+ withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
3055
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
3056
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
3057
+ Default: A;
3058
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
3059
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
3060
+ };
3061
+ Default: "repo";
3062
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
3063
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
3064
+ };
3065
+ readonly name: S.String;
3066
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
3067
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
3068
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
3069
+ Default: A;
3070
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
3071
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
3072
+ };
3073
+ Default: "repo";
3074
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
3075
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
3076
+ };
3077
+ readonly name: S.String;
3078
+ }, "Type">>>, S.$Array<S.Struct<{
3079
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
3080
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
3081
+ Default: A;
3082
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
3083
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
3084
+ };
3085
+ Default: "repo";
3086
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
3087
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
3088
+ };
3089
+ readonly name: S.String;
3090
+ }>>, never, never>>;
3091
+ withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
3092
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
3093
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
3094
+ Default: A;
3095
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
3096
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
3097
+ };
3098
+ Default: "repo";
3099
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
3100
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
3101
+ };
3102
+ readonly name: S.String;
3103
+ }, "Type">>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
3104
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
3105
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
3106
+ Default: A;
3107
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
3108
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
3109
+ };
3110
+ Default: "repo";
3111
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
3112
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
3113
+ };
3114
+ readonly name: S.String;
3115
+ }, "Type">>>, S.$Array<S.Struct<{
3116
+ readonly type: import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
3117
+ changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
3118
+ Default: A;
3119
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
3120
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
3121
+ };
3122
+ Default: "repo";
3123
+ withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
3124
+ withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
3125
+ };
3126
+ readonly name: S.String;
3127
+ }>>, never, never>, never>;
3128
+ };
3129
+ }>;
3130
+ }>;
3131
+ }>>>(tag: Tag, options?: {
3132
+ readonly payload?: Payload;
3133
+ readonly success?: Success;
3134
+ readonly error?: Error;
3135
+ readonly defect?: Rpc.DefectSchema;
3136
+ readonly stream?: Stream;
3137
+ 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;
3138
+ } | 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>;
3139
+ export {};
3140
+ //# sourceMappingURL=Invalidation.d.ts.map