@ref0/git 0.3.0 → 0.4.0

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 (607) hide show
  1. package/dist/_virtual/_rolldown/runtime.mjs +12 -0
  2. package/dist/access/private-refs.d.mts +12 -9
  3. package/dist/access/private-refs.mjs +69 -46
  4. package/dist/auth/access-jwt.mjs +7 -7
  5. package/dist/auth/auth.d.mts +41 -0
  6. package/dist/auth/auth.mjs +39 -0
  7. package/dist/auth/authorize.mjs +57 -80
  8. package/dist/auth/bridge.mjs +30 -0
  9. package/dist/auth/fences.d.mts +22 -2
  10. package/dist/auth/fences.mjs +3 -3
  11. package/dist/auth/grants.d.mts +25 -0
  12. package/dist/auth/grants.mjs +29 -34
  13. package/dist/auth/helpers.mjs +4 -4
  14. package/dist/auth/host-function.d.mts +9 -2
  15. package/dist/auth/host-function.mjs +35 -8
  16. package/dist/auth/identify.d.mts +3 -0
  17. package/dist/auth/identify.mjs +9 -11
  18. package/dist/auth/namespaces.d.mts +3 -0
  19. package/dist/auth/policy.d.mts +57 -0
  20. package/dist/auth/policy.mjs +56 -0
  21. package/dist/auth/token-rows.mjs +6 -6
  22. package/dist/auth/token-text.mjs +16 -4
  23. package/dist/auth/tokens.d.mts +3 -0
  24. package/dist/auth/tokens.mjs +51 -13
  25. package/dist/auth.d.mts +2 -1
  26. package/dist/auth.mjs +2 -1
  27. package/dist/client/answer.mjs +49 -11
  28. package/dist/client/client.d.mts +2 -2
  29. package/dist/client/client.mjs +3 -3
  30. package/dist/client/git-http.d.mts +6 -0
  31. package/dist/client/git-http.mjs +23 -36
  32. package/dist/client/helper-node.d.mts +12 -0
  33. package/dist/client/helper-node.mjs +108 -5
  34. package/dist/client/local.mjs +94 -99
  35. package/dist/client/negotiate.mjs +10 -8
  36. package/dist/client/push-upload.d.mts +14 -0
  37. package/dist/client/push-upload.mjs +12 -12
  38. package/dist/client/remote-helper.mjs +22 -20
  39. package/dist/client/remote.mjs +28 -22
  40. package/dist/client/run-remote-helper.d.mts +40 -16
  41. package/dist/client/run-remote-helper.mjs +147 -154
  42. package/dist/client/scrub.d.mts +8 -2
  43. package/dist/client/scrub.mjs +76 -4
  44. package/dist/client/slice-push.d.mts +77 -0
  45. package/dist/client/slice-push.mjs +169 -0
  46. package/dist/client/slice-report.mjs +188 -0
  47. package/dist/client/slices.d.mts +44 -0
  48. package/dist/client/slices.mjs +131 -0
  49. package/dist/client/transport.d.mts +1 -0
  50. package/dist/client/transport.mjs +30 -26
  51. package/dist/contracts/access.d.mts +36 -9
  52. package/dist/contracts/actors.d.mts +28 -10
  53. package/dist/contracts/actors.mjs +17 -0
  54. package/dist/contracts/authorize.d.mts +77 -0
  55. package/dist/contracts/authorize.mjs +25 -0
  56. package/dist/contracts/blobs.d.mts +48 -15
  57. package/dist/contracts/blobs.mjs +30 -0
  58. package/dist/contracts/calls-spent.d.mts +1 -0
  59. package/dist/contracts/calls-spent.mjs +58 -18
  60. package/dist/contracts/client.d.mts +14 -16
  61. package/dist/contracts/commits.d.mts +558 -76
  62. package/dist/contracts/commits.mjs +147 -0
  63. package/dist/contracts/engine.d.mts +91 -55
  64. package/dist/contracts/engine.mjs +103 -0
  65. package/dist/contracts/events.d.mts +1382 -205
  66. package/dist/contracts/events.mjs +485 -0
  67. package/dist/contracts/files.d.mts +295 -50
  68. package/dist/contracts/files.mjs +100 -0
  69. package/dist/contracts/forks.d.mts +306 -25
  70. package/dist/contracts/forks.mjs +39 -0
  71. package/dist/contracts/git.d.mts +107 -0
  72. package/dist/contracts/git.mjs +23 -0
  73. package/dist/contracts/grants.d.mts +2 -2
  74. package/dist/contracts/ids.d.mts +23 -8
  75. package/dist/contracts/ids.mjs +40 -5
  76. package/dist/contracts/lfs.d.mts +9 -4
  77. package/dist/contracts/merges.d.mts +68 -16
  78. package/dist/contracts/merges.mjs +27 -0
  79. package/dist/contracts/namespaces.d.mts +14 -0
  80. package/dist/contracts/object-values.d.mts +96 -0
  81. package/dist/contracts/object-values.mjs +104 -0
  82. package/dist/contracts/objects.d.mts +323 -87
  83. package/dist/contracts/operations.d.mts +24 -16
  84. package/dist/contracts/promises.d.mts +13 -2
  85. package/dist/contracts/push-uploads.d.mts +39 -24
  86. package/dist/contracts/push-uploads.mjs +54 -0
  87. package/dist/contracts/queue.d.mts +444 -139
  88. package/dist/contracts/queue.mjs +197 -0
  89. package/dist/contracts/refs.d.mts +248 -45
  90. package/dist/contracts/refs.mjs +117 -0
  91. package/dist/contracts/repo-records.d.mts +34 -0
  92. package/dist/contracts/repo-records.mjs +18 -0
  93. package/dist/contracts/repos.d.mts +411 -58
  94. package/dist/contracts/repos.mjs +136 -0
  95. package/dist/contracts/result.d.mts +335 -69
  96. package/dist/contracts/result.mjs +350 -5
  97. package/dist/contracts/rules.d.mts +60 -48
  98. package/dist/contracts/rules.mjs +9 -0
  99. package/dist/contracts/server.d.mts +113 -47
  100. package/dist/contracts/services.d.mts +15 -24
  101. package/dist/contracts/services.mjs +5 -9
  102. package/dist/contracts/signin.d.mts +64 -31
  103. package/dist/contracts/signin.mjs +18 -0
  104. package/dist/contracts/store.d.mts +45 -5
  105. package/dist/contracts/store.mjs +31 -0
  106. package/dist/contracts/sync.d.mts +81 -46
  107. package/dist/contracts/sync.mjs +41 -2
  108. package/dist/contracts/tags.d.mts +204 -22
  109. package/dist/contracts/tags.mjs +51 -1
  110. package/dist/contracts/tokens.d.mts +32 -7
  111. package/dist/contracts/tokens.mjs +31 -1
  112. package/dist/contracts/topics.d.mts +123 -67
  113. package/dist/contracts/topics.mjs +109 -0
  114. package/dist/contracts/trees.d.mts +132 -52
  115. package/dist/contracts/trees.mjs +105 -0
  116. package/dist/contracts/work.d.mts +127 -20
  117. package/dist/contracts/work.mjs +69 -0
  118. package/dist/core/access.d.mts +25 -14
  119. package/dist/core/access.mjs +77 -108
  120. package/dist/core/ancestry.mjs +86 -18
  121. package/dist/core/call-names.mjs +1 -0
  122. package/dist/core/call-services.mjs +73 -0
  123. package/dist/core/changes.d.mts +31 -0
  124. package/dist/core/changes.mjs +5 -0
  125. package/dist/core/clock.mjs +3 -3
  126. package/dist/core/events/deliver.mjs +119 -33
  127. package/dist/core/events/seen.mjs +124 -0
  128. package/dist/core/forks.mjs +371 -159
  129. package/dist/core/hooks/order.d.mts +9 -0
  130. package/dist/core/hooks/order.mjs +25 -0
  131. package/dist/core/hooks/post-receive.mjs +13 -12
  132. package/dist/core/hooks/pre-receive.d.mts +8 -1
  133. package/dist/core/hooks/pre-receive.mjs +8 -6
  134. package/dist/core/imports.mjs +212 -0
  135. package/dist/core/index-job.mjs +131 -38
  136. package/dist/core/merge-parts.d.mts +30 -0
  137. package/dist/core/merge-parts.mjs +31 -0
  138. package/dist/core/names.mjs +4 -16
  139. package/dist/core/namespaces.d.mts +2 -0
  140. package/dist/core/objects/blobs.mjs +4 -4
  141. package/dist/core/objects/commit-writes.mjs +19 -17
  142. package/dist/core/objects/commits.mjs +12 -12
  143. package/dist/core/objects/files.mjs +10 -11
  144. package/dist/core/objects/lines.mjs +15 -32
  145. package/dist/core/objects/merges.mjs +4 -4
  146. package/dist/core/objects/objects-layer.d.mts +21 -0
  147. package/dist/core/objects/objects-layer.mjs +47 -0
  148. package/dist/core/objects/objects-namespace.d.mts +6 -0
  149. package/dist/core/objects/objects-namespace.mjs +13 -0
  150. package/dist/core/objects/objects.d.mts +49 -0
  151. package/dist/core/objects/objects.mjs +18 -0
  152. package/dist/core/objects/peel.mjs +3 -3
  153. package/dist/core/objects/reading.mjs +135 -40
  154. package/dist/core/objects/tags.mjs +7 -7
  155. package/dist/core/objects/tree-edits.mjs +40 -27
  156. package/dist/core/objects/trees.mjs +23 -18
  157. package/dist/core/objects/writing.mjs +43 -44
  158. package/dist/core/own-writes.mjs +3 -3
  159. package/dist/core/parts.d.mts +125 -0
  160. package/dist/core/parts.mjs +59 -0
  161. package/dist/core/promise.mjs +13 -9
  162. package/dist/core/publish.mjs +27 -17
  163. package/dist/core/purge.mjs +242 -0
  164. package/dist/core/push-decide.mjs +93 -28
  165. package/dist/core/push.mjs +300 -156
  166. package/dist/core/receipts.d.mts +4 -3
  167. package/dist/core/receipts.mjs +20 -12
  168. package/dist/core/ref-conflicts.mjs +70 -4
  169. package/dist/core/ref-index-job.mjs +181 -0
  170. package/dist/core/ref-index.d.mts +25 -0
  171. package/dist/core/ref-index.mjs +136 -0
  172. package/dist/core/ref-view.mjs +166 -0
  173. package/dist/core/refs.mjs +313 -95
  174. package/dist/core/repack.d.mts +10 -0
  175. package/dist/core/repack.mjs +261 -81
  176. package/dist/core/repo-info.mjs +99 -0
  177. package/dist/core/repos.mjs +114 -80
  178. package/dist/core/rules/changes.mjs +48 -20
  179. package/dist/core/rules/check.mjs +29 -22
  180. package/dist/core/rules/commit-changes.d.mts +13 -0
  181. package/dist/core/rules/commit-changes.mjs +100 -91
  182. package/dist/core/rules/context.d.mts +67 -8
  183. package/dist/core/rules/context.mjs +88 -51
  184. package/dist/core/rules/facts.mjs +1 -1
  185. package/dist/core/rules/fetch.mjs +24 -26
  186. package/dist/core/rules/files.d.mts +13 -0
  187. package/dist/core/rules/files.mjs +27 -28
  188. package/dist/core/rules/namespace.d.mts +2 -0
  189. package/dist/core/rules/patterns.mjs +29 -5
  190. package/dist/core/rules/protect.d.mts +12 -6
  191. package/dist/core/rules/protect.mjs +22 -20
  192. package/dist/core/rules/rules-layer.d.mts +17 -0
  193. package/dist/core/rules/rules-layer.mjs +26 -0
  194. package/dist/core/rules/rules.d.mts +8 -0
  195. package/dist/core/rules/rules.mjs +16 -0
  196. package/dist/core/rules/service.mjs +18 -0
  197. package/dist/core/seam.d.mts +8 -5
  198. package/dist/core/seam.mjs +19 -15
  199. package/dist/core/tokens.mjs +29 -23
  200. package/dist/core/view.d.mts +105 -6
  201. package/dist/core/view.mjs +211 -109
  202. package/dist/core/work.mjs +40 -14
  203. package/dist/effect.d.mts +3 -4
  204. package/dist/effect.mjs +2 -3
  205. package/dist/engine/allotted-xdiff.d.mts +1 -0
  206. package/dist/engine/allotted-xdiff.mjs +1 -1
  207. package/dist/engine/attributes.mjs +1 -1
  208. package/dist/engine/combined.d.mts +18 -0
  209. package/dist/engine/combined.mjs +39 -44
  210. package/dist/engine/commits.mjs +5 -4
  211. package/dist/engine/content.d.mts +3 -2
  212. package/dist/engine/content.mjs +2 -2
  213. package/dist/engine/failures.d.mts +2 -2
  214. package/dist/engine/failures.mjs +2 -9
  215. package/dist/engine/merge-base-walk.d.mts +3 -2
  216. package/dist/engine/merge-base-walk.mjs +1 -1
  217. package/dist/engine/merge-bases.mjs +3 -2
  218. package/dist/engine/merge.mjs +568 -566
  219. package/dist/engine/parts.d.mts +3 -2
  220. package/dist/engine/parts.mjs +40 -7
  221. package/dist/engine/reads.d.mts +1 -0
  222. package/dist/engine/reads.mjs +5 -5
  223. package/dist/engine/walk.mjs +23 -24
  224. package/dist/engine/xdiff.d.mts +2 -33
  225. package/dist/engine/xdiff.mjs +6 -3
  226. package/dist/event-streams/event-streams.d.mts +25 -0
  227. package/dist/event-streams/event-streams.mjs +22 -0
  228. package/dist/event-streams/namespace.d.mts +2 -0
  229. package/dist/event-streams/stream.d.mts +42 -0
  230. package/dist/{core/events → event-streams}/stream.mjs +106 -49
  231. package/dist/extend.d.mts +4 -2
  232. package/dist/http/answers.mjs +8 -4
  233. package/dist/http/bodies.mjs +84 -56
  234. package/dist/http/core-parts.mjs +206 -60
  235. package/dist/http/handler.d.mts +2 -0
  236. package/dist/http/handler.mjs +17 -11
  237. package/dist/http/node.mjs +10 -6
  238. package/dist/http/parts.d.mts +12 -0
  239. package/dist/http/push-uploads.d.mts +9 -0
  240. package/dist/http/push-uploads.mjs +76 -66
  241. package/dist/http/receive-pack.mjs +162 -28
  242. package/dist/http/upload-pack.mjs +106 -81
  243. package/dist/index.d.mts +48 -28
  244. package/dist/index.mjs +29 -7
  245. package/dist/lfs/calls.mjs +2 -2
  246. package/dist/lfs/locks.mjs +24 -20
  247. package/dist/lfs/objects.d.mts +7 -0
  248. package/dist/lfs/objects.mjs +31 -26
  249. package/dist/lfs/pointers.mjs +7 -7
  250. package/dist/lfs/purge.mjs +50 -0
  251. package/dist/lfs/repo.mjs +5 -5
  252. package/dist/lfs/rows.mjs +8 -8
  253. package/dist/lfs/service.d.mts +9 -0
  254. package/dist/lfs/service.mjs +32 -25
  255. package/dist/lfs/upkeep.mjs +5 -5
  256. package/dist/lfs/wire.mjs +80 -38
  257. package/dist/merges/merges.d.mts +20 -0
  258. package/dist/merges/merges.mjs +32 -0
  259. package/dist/merges/namespace.d.mts +2 -0
  260. package/dist/merges/public.d.mts +6 -0
  261. package/dist/merges/public.mjs +10 -0
  262. package/dist/node.d.mts +1 -2
  263. package/dist/node.mjs +1 -3
  264. package/dist/protocol/bytes/buffers.d.mts +9 -3
  265. package/dist/protocol/bytes/buffers.mjs +11 -5
  266. package/dist/protocol/bytes/deflate.d.mts +7 -5
  267. package/dist/protocol/bytes/deflate.mjs +59 -23
  268. package/dist/protocol/bytes/inflate.d.mts +4 -3
  269. package/dist/protocol/bytes/inflate.mjs +61 -26
  270. package/dist/protocol/bytes/reader.mjs +61 -0
  271. package/dist/protocol/bytes/sha1-hasher.d.mts +3 -1
  272. package/dist/protocol/bytes/sha1-hasher.mjs +13 -3
  273. package/dist/protocol/bytes/sha1.d.mts +1 -1
  274. package/dist/protocol/bytes/sha1.mjs +5 -5
  275. package/dist/protocol/bytes/streams.mjs +16 -6
  276. package/dist/protocol/diff/patch.d.mts +4 -0
  277. package/dist/protocol/diff/patch.mjs +1 -1
  278. package/dist/protocol/diff/paths.mjs +1 -1
  279. package/dist/protocol/diff/read.d.mts +1 -1
  280. package/dist/protocol/diff/read.mjs +102 -90
  281. package/dist/protocol/framing/pkt-line.d.mts +1 -0
  282. package/dist/protocol/framing/pkt-line.mjs +40 -6
  283. package/dist/protocol/objects/checked-blobs.d.mts +1 -0
  284. package/dist/protocol/objects/fsck.mjs +7 -1
  285. package/dist/protocol/objects/held.mjs +5 -11
  286. package/dist/protocol/objects/ident.mjs +1 -1
  287. package/dist/protocol/objects/object-rules.mjs +15 -7
  288. package/dist/protocol/objects/object.d.mts +6 -2
  289. package/dist/protocol/objects/object.mjs +5 -2
  290. package/dist/protocol/objects/tag.d.mts +3 -1
  291. package/dist/protocol/objects/tag.mjs +27 -1
  292. package/dist/protocol/objects/tree.mjs +1 -1
  293. package/dist/protocol/packs/delta.d.mts +1 -1
  294. package/dist/protocol/packs/delta.mjs +2 -2
  295. package/dist/protocol/packs/graph.mjs +55 -56
  296. package/dist/protocol/packs/idx.d.mts +4 -2
  297. package/dist/protocol/packs/idx.mjs +156 -63
  298. package/dist/protocol/packs/indexer.d.mts +22 -4
  299. package/dist/protocol/packs/indexer.mjs +14 -35
  300. package/dist/protocol/packs/parts.mjs +5 -5
  301. package/dist/protocol/packs/pos.mjs +12 -5
  302. package/dist/protocol/packs/reader.d.mts +19 -12
  303. package/dist/protocol/packs/reader.mjs +252 -25
  304. package/dist/protocol/packs/rev.d.mts +1 -1
  305. package/dist/protocol/packs/rev.mjs +42 -24
  306. package/dist/protocol/packs/types-file.mjs +85 -0
  307. package/dist/protocol/packs/write-error.d.mts +1 -1
  308. package/dist/protocol/packs/write-error.mjs +2 -2
  309. package/dist/protocol/packs/writer.d.mts +40 -15
  310. package/dist/protocol/packs/writer.mjs +142 -49
  311. package/dist/protocol/wire/advertisement.d.mts +39 -14
  312. package/dist/protocol/wire/advertisement.mjs +127 -31
  313. package/dist/protocol/wire/fetch.d.mts +57 -19
  314. package/dist/protocol/wire/fetch.mjs +57 -26
  315. package/dist/protocol/wire/json.mjs +25 -0
  316. package/dist/protocol/wire/lines.d.mts +10 -0
  317. package/dist/protocol/wire/lines.mjs +20 -6
  318. package/dist/protocol/wire/push-limits.d.mts +6 -0
  319. package/dist/protocol/wire/push-limits.mjs +88 -0
  320. package/dist/protocol/wire/push-uploads.mjs +3 -28
  321. package/dist/protocol/wire/receive-pack.d.mts +30 -14
  322. package/dist/protocol/wire/receive-pack.mjs +29 -2
  323. package/dist/protocol/wire/report-status.d.mts +30 -11
  324. package/dist/protocol/wire/report-status.mjs +21 -2
  325. package/dist/protocol/wire/v2.d.mts +56 -29
  326. package/dist/protocol/wire/v2.mjs +91 -16
  327. package/dist/protocol.d.mts +4 -3
  328. package/dist/protocol.mjs +7 -6
  329. package/dist/queue/advance.mjs +189 -120
  330. package/dist/queue/callers.mjs +12 -9
  331. package/dist/queue/calls.mjs +311 -155
  332. package/dist/queue/commit.mjs +70 -26
  333. package/dist/queue/host.d.mts +39 -12
  334. package/dist/queue/host.mjs +36 -38
  335. package/dist/queue/lanes.mjs +1 -1
  336. package/dist/queue/layer.d.mts +14 -0
  337. package/dist/queue/layer.mjs +55 -0
  338. package/dist/queue/limits.mjs +13 -2
  339. package/dist/queue/namespace.d.mts +2 -0
  340. package/dist/queue/pages.mjs +1 -1
  341. package/dist/queue/public.d.mts +6 -0
  342. package/dist/queue/public.mjs +21 -0
  343. package/dist/queue/push-option.mjs +49 -30
  344. package/dist/queue/rows.mjs +24 -16
  345. package/dist/queue/schedule.mjs +22 -22
  346. package/dist/queue/search.mjs +8 -7
  347. package/dist/queue/state.mjs +49 -13
  348. package/dist/queue/steps.mjs +6 -3
  349. package/dist/remote-helper.d.mts +5 -2
  350. package/dist/remote-helper.mjs +5 -2
  351. package/dist/rest/api.d.mts +1 -1
  352. package/dist/rest/blobs.d.mts +790 -23
  353. package/dist/rest/blobs.mjs +4 -4
  354. package/dist/rest/caller.d.mts +4163 -36
  355. package/dist/rest/caller.mjs +2 -2
  356. package/dist/rest/client.mjs +80 -70
  357. package/dist/rest/commits.d.mts +3315 -244
  358. package/dist/rest/commits.mjs +18 -64
  359. package/dist/rest/errors.d.mts +2082 -22
  360. package/dist/rest/errors.mjs +46 -89
  361. package/dist/rest/events.d.mts +394 -11
  362. package/dist/rest/events.mjs +13 -9
  363. package/dist/rest/files.d.mts +1265 -114
  364. package/dist/rest/files.mjs +11 -42
  365. package/dist/rest/forks.d.mts +2005 -62
  366. package/dist/rest/forks.mjs +10 -13
  367. package/dist/rest/handler.d.mts +3 -0
  368. package/dist/rest/handler.mjs +22 -14
  369. package/dist/rest/handlers.mjs +53 -60
  370. package/dist/rest/listen.d.mts +5 -8
  371. package/dist/rest/listen.mjs +23 -29
  372. package/dist/rest/me.d.mts +393 -10
  373. package/dist/rest/me.mjs +2 -2
  374. package/dist/rest/merges.d.mts +399 -16
  375. package/dist/rest/merges.mjs +3 -17
  376. package/dist/rest/paths.mjs +1 -0
  377. package/dist/rest/queue.d.mts +5615 -240
  378. package/dist/rest/queue.mjs +15 -130
  379. package/dist/rest/refs.d.mts +2859 -132
  380. package/dist/rest/refs.mjs +19 -39
  381. package/dist/rest/repos.d.mts +2421 -93
  382. package/dist/rest/repos.mjs +10 -33
  383. package/dist/rest/tags.d.mts +1205 -54
  384. package/dist/rest/tags.mjs +6 -34
  385. package/dist/rest/tokens.d.mts +2369 -66
  386. package/dist/rest/tokens.mjs +7 -4
  387. package/dist/rest/topics.d.mts +2060 -113
  388. package/dist/rest/topics.mjs +23 -71
  389. package/dist/rest/trees.d.mts +1610 -75
  390. package/dist/rest/trees.mjs +16 -57
  391. package/dist/rest/wire.d.mts +402 -0
  392. package/dist/rest/wire.mjs +32 -46
  393. package/dist/rest/work.d.mts +1204 -63
  394. package/dist/rest/work.mjs +7 -51
  395. package/dist/rest.d.mts +3 -3
  396. package/dist/server/extension.d.mts +6 -2
  397. package/dist/server/extension.mjs +54 -30
  398. package/dist/server/git-layer.d.mts +23 -0
  399. package/dist/server/git-layer.mjs +107 -0
  400. package/dist/server/git-namespace.d.mts +6 -0
  401. package/dist/server/git-namespace.mjs +15 -0
  402. package/dist/server/lifecycle.d.mts +1 -2
  403. package/dist/server/lifecycle.mjs +8 -15
  404. package/dist/server/namespaces.d.mts +2 -0
  405. package/dist/server/registry.d.mts +9 -0
  406. package/dist/server/registry.mjs +167 -0
  407. package/dist/server/route-match.mjs +88 -0
  408. package/dist/server/routes.d.mts +12 -8
  409. package/dist/server/routes.mjs +27 -18
  410. package/dist/server/server.d.mts +19 -0
  411. package/dist/server/server.mjs +281 -198
  412. package/dist/signin/codes.mjs +9 -6
  413. package/dist/signin/context.d.mts +1 -0
  414. package/dist/signin/context.mjs +4 -4
  415. package/dist/signin/device.mjs +8 -8
  416. package/dist/signin/forms.mjs +11 -29
  417. package/dist/signin/grants.d.mts +4 -2
  418. package/dist/signin/grants.mjs +20 -19
  419. package/dist/signin/route.mjs +2 -2
  420. package/dist/signin/web.mjs +7 -7
  421. package/dist/signin/wire.mjs +6 -6
  422. package/dist/storage/budget.mjs +51 -18
  423. package/dist/storage/calls.d.mts +22 -4
  424. package/dist/storage/calls.mjs +347 -110
  425. package/dist/storage/clean-up.mjs +80 -35
  426. package/dist/storage/counted-bucket.mjs +115 -0
  427. package/dist/storage/fetch.d.mts +2 -0
  428. package/dist/storage/fetch.mjs +243 -100
  429. package/dist/storage/fsck.mjs +56 -7
  430. package/dist/storage/held-types.d.mts +7 -0
  431. package/dist/storage/held-types.mjs +263 -0
  432. package/dist/storage/host-bucket.mjs +28 -0
  433. package/dist/storage/id-mix.d.mts +1 -0
  434. package/dist/storage/id-mix.mjs +55 -0
  435. package/dist/storage/index-bitmaps.d.mts +2 -1
  436. package/dist/storage/index-bitmaps.mjs +233 -101
  437. package/dist/storage/index-build.d.mts +7 -3
  438. package/dist/storage/index-build.mjs +650 -164
  439. package/dist/storage/index-fetch.d.mts +3 -1
  440. package/dist/storage/index-fetch.mjs +297 -195
  441. package/dist/storage/index-files.mjs +25 -27
  442. package/dist/storage/index-graph.d.mts +2 -1
  443. package/dist/storage/index-graph.mjs +127 -91
  444. package/dist/storage/index-layers.d.mts +11 -0
  445. package/dist/storage/index-layers.mjs +258 -78
  446. package/dist/storage/index-reach.mjs +181 -75
  447. package/dist/storage/index-remap.mjs +74 -32
  448. package/dist/storage/index-shallow.mjs +311 -0
  449. package/dist/storage/index-visible.mjs +168 -0
  450. package/dist/storage/layout.d.mts +1 -0
  451. package/dist/storage/layout.mjs +39 -8
  452. package/dist/storage/lfs-pointers.d.mts +3 -1
  453. package/dist/storage/lfs-pointers.mjs +25 -9
  454. package/dist/storage/link-join.d.mts +4 -0
  455. package/dist/storage/link-join.mjs +50 -12
  456. package/dist/storage/links.mjs +89 -4
  457. package/dist/storage/listed-ids.mjs +10 -0
  458. package/dist/storage/loose.d.mts +11 -4
  459. package/dist/storage/loose.mjs +102 -69
  460. package/dist/storage/memory-budget.d.mts +5 -0
  461. package/dist/storage/memory-budget.mjs +530 -102
  462. package/dist/storage/merge-choose.mjs +258 -0
  463. package/dist/storage/merge-cut.mjs +47 -0
  464. package/dist/storage/merge-fence.mjs +89 -0
  465. package/dist/storage/merge-index.mjs +347 -0
  466. package/dist/storage/merge-most.mjs +202 -0
  467. package/dist/storage/merge-plan.mjs +171 -0
  468. package/dist/storage/merge-row.mjs +258 -0
  469. package/dist/storage/merge-stream.mjs +497 -0
  470. package/dist/storage/merge-walk.mjs +199 -0
  471. package/dist/storage/merge-write.mjs +129 -0
  472. package/dist/storage/merge.d.mts +10 -0
  473. package/dist/storage/merge.mjs +82 -306
  474. package/dist/storage/object-rows.d.mts +4 -2
  475. package/dist/storage/object-rows.mjs +101 -17
  476. package/dist/storage/pack-order.d.mts +1 -1
  477. package/dist/storage/pack-order.mjs +69 -54
  478. package/dist/storage/pack-ranges.d.mts +1 -1
  479. package/dist/storage/pack-ranges.mjs +396 -60
  480. package/dist/storage/pack-reads.d.mts +6 -2
  481. package/dist/storage/pack-reads.mjs +598 -126
  482. package/dist/storage/pack-receive.d.mts +5 -0
  483. package/dist/storage/pack-receive.mjs +820 -237
  484. package/dist/storage/packs-memory.d.mts +25 -0
  485. package/dist/storage/packs-memory.mjs +49 -0
  486. package/dist/storage/packs.d.mts +7 -5
  487. package/dist/storage/packs.mjs +554 -213
  488. package/dist/storage/placed-reads.mjs +205 -0
  489. package/dist/storage/promise-calls.mjs +29 -0
  490. package/dist/storage/prune-keep.mjs +164 -0
  491. package/dist/storage/prune-walk.mjs +578 -0
  492. package/dist/storage/prune.mjs +739 -332
  493. package/dist/storage/push-allotment.mjs +3 -3
  494. package/dist/storage/push-uploads.mjs +22 -13
  495. package/dist/storage/pushed-commits.mjs +8 -9
  496. package/dist/storage/quarantine.d.mts +10 -0
  497. package/dist/storage/quarantine.mjs +28 -25
  498. package/dist/storage/range-cache.mjs +71 -0
  499. package/dist/storage/raw-ids.mjs +20 -1
  500. package/dist/storage/ready.d.mts +4 -2
  501. package/dist/storage/ready.mjs +109 -48
  502. package/dist/storage/receive-admission.mjs +67 -0
  503. package/dist/storage/receive-bounds.d.mts +1 -0
  504. package/dist/storage/receive-bounds.mjs +202 -0
  505. package/dist/storage/receive-files.mjs +248 -0
  506. package/dist/storage/receive-links.mjs +281 -244
  507. package/dist/storage/receive-state.d.mts +9 -0
  508. package/dist/storage/receive-state.mjs +150 -0
  509. package/dist/storage/receive-steps.mjs +344 -0
  510. package/dist/storage/receive-sweep.mjs +160 -0
  511. package/dist/storage/receive-table.d.mts +3 -0
  512. package/dist/storage/receive-table.mjs +197 -0
  513. package/dist/storage/repack-backlog.mjs +70 -0
  514. package/dist/storage/repack-contained.mjs +269 -0
  515. package/dist/storage/repack-job.d.mts +3 -0
  516. package/dist/storage/repack-job.mjs +24 -7
  517. package/dist/storage/repack.d.mts +4 -4
  518. package/dist/storage/repack.mjs +156 -77
  519. package/dist/storage/roots.mjs +23 -7
  520. package/dist/storage/rows.d.mts +4 -2
  521. package/dist/storage/rows.mjs +40 -7
  522. package/dist/storage/runs.d.mts +8 -0
  523. package/dist/storage/runs.mjs +731 -0
  524. package/dist/storage/send-list.d.mts +2 -1
  525. package/dist/storage/send-list.mjs +261 -76
  526. package/dist/storage/shallow.d.mts +3 -2
  527. package/dist/storage/shallow.mjs +7 -7
  528. package/dist/storage/single-flight.mjs +47 -0
  529. package/dist/storage/stream-whole.mjs +121 -54
  530. package/dist/storage/swap-walk.mjs +188 -0
  531. package/dist/storage/unpack.mjs +52 -23
  532. package/dist/storage/visible.mjs +58 -39
  533. package/dist/storage/walk.d.mts +2 -0
  534. package/dist/storage/walk.mjs +20 -7
  535. package/dist/storage/wants.mjs +185 -33
  536. package/dist/storage/written-bases.mjs +172 -0
  537. package/dist/store/call-count.d.mts +69 -4
  538. package/dist/store/call-count.mjs +193 -51
  539. package/dist/store/catalogue.d.mts +17 -3
  540. package/dist/store/catalogue.mjs +135 -48
  541. package/dist/store/crossing.mjs +2 -4
  542. package/dist/store/cursor-seal.d.mts +12 -1
  543. package/dist/store/cursor-seal.mjs +7 -6
  544. package/dist/store/errors.d.mts +2 -2
  545. package/dist/store/errors.mjs +112 -24
  546. package/dist/store/git-store.mjs +21 -2
  547. package/dist/store/list-job.mjs +5 -5
  548. package/dist/store/outbox.d.mts +15 -5
  549. package/dist/store/outbox.mjs +106 -28
  550. package/dist/store/promises.d.mts +3 -2
  551. package/dist/store/promises.mjs +94 -35
  552. package/dist/store/queue-jobs.mjs +12 -12
  553. package/dist/store/records.d.mts +64 -1
  554. package/dist/store/records.mjs +101 -32
  555. package/dist/store/ref-rows.d.mts +18 -2
  556. package/dist/store/ref-rows.mjs +62 -5
  557. package/dist/store/repo-record.mjs +11 -9
  558. package/dist/store/reservations.mjs +9 -8
  559. package/dist/store/scopes.mjs +13 -1
  560. package/dist/store/settle.mjs +1 -1
  561. package/dist/store/topic-jobs.mjs +4 -4
  562. package/dist/sync/bound.d.mts +5 -3
  563. package/dist/sync/bound.mjs +32 -3
  564. package/dist/sync/github.mjs +7 -7
  565. package/dist/sync/import.d.mts +2 -0
  566. package/dist/sync/import.mjs +46 -50
  567. package/dist/sync/jobs.mjs +15 -23
  568. package/dist/sync/mirror.d.mts +5 -1
  569. package/dist/sync/mirror.mjs +121 -44
  570. package/dist/sync/publish.d.mts +1 -0
  571. package/dist/sync/publish.mjs +10 -12
  572. package/dist/sync/step.mjs +439 -71
  573. package/dist/sync/tries.mjs +50 -32
  574. package/dist/sync.d.mts +3 -3
  575. package/dist/sync.mjs +2 -2
  576. package/dist/topics/advance.mjs +103 -86
  577. package/dist/topics/calls.mjs +97 -67
  578. package/dist/topics/directory.mjs +31 -11
  579. package/dist/topics/host.d.mts +0 -1
  580. package/dist/topics/host.mjs +2 -12
  581. package/dist/topics/members.mjs +30 -24
  582. package/dist/topics/rows.mjs +10 -9
  583. package/dist/topics/topic.mjs +20 -9
  584. package/package.json +8 -15
  585. package/dist/auth/authorize.d.mts +0 -5
  586. package/dist/contracts/objects.mjs +0 -54
  587. package/dist/core/events/stream.d.mts +0 -19
  588. package/dist/core/rules/define.d.mts +0 -5
  589. package/dist/core/rules/define.mjs +0 -13
  590. package/dist/core/rules/fetch.d.mts +0 -5
  591. package/dist/core/sight.mjs +0 -99
  592. package/dist/engine/engine.d.mts +0 -25
  593. package/dist/engine/engine.mjs +0 -49
  594. package/dist/engine/xdiff/NOTICE.md +0 -63
  595. package/dist/engine/xdiff/compiled.d.mts +0 -7
  596. package/dist/engine/xdiff/compiled.mjs +0 -9
  597. package/dist/engine/xdiff/embedded.mjs +0 -4
  598. package/dist/engine/xdiff/node.d.mts +0 -7
  599. package/dist/engine/xdiff/node.mjs +0 -10
  600. package/dist/engine/xdiff/upstream/LGPL-2.1 +0 -511
  601. package/dist/engine/xdiff/xdiff.wasm +0 -0
  602. package/dist/engine.d.mts +0 -3
  603. package/dist/engine.mjs +0 -3
  604. package/dist/storage/distinct-ids.mjs +0 -39
  605. package/dist/storage/held-memo.mjs +0 -188
  606. package/dist/storage/index-remap.d.mts +0 -8
  607. package/dist/sync/records.mjs +0 -73
@@ -1,4 +1,3 @@
1
- import { JsonHttpError } from "./errors.mjs";
2
1
  import { Caller } from "../contracts/actors.mjs";
3
2
  import { GitError } from "../contracts/result.mjs";
4
3
  import { ServerCalls } from "../contracts/server.mjs";
@@ -22,75 +21,4203 @@ export interface RestServerSeam {
22
21
  readonly listen: Listen;
23
22
  }
24
23
  declare const GitRestServices_base: Context.ServiceClass<GitRestServices, "@ref0/git/GitRestServices", RestServerSeam>;
25
- export declare class GitRestServices extends GitRestServices_base {}
24
+ export declare class GitRestServices extends /* @__PURE__ */ GitRestServices_base {}
26
25
  declare const GitCallerMiddleware_base: HttpApiMiddleware.ServiceClass<GitCallerMiddleware, "@ref0/git/GitCallerMiddleware", {
27
26
  requires: GitRestServices;
28
27
  provides: Caller<unknown>;
29
- error: readonly [import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, {
28
+ error: readonly [import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<{
29
+ readonly code: "ALREADY_EXISTS";
30
+ readonly message: string;
31
+ readonly hint?: string;
32
+ readonly context?: {
33
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
34
+ readonly reason?: string;
35
+ readonly verdict?: "fail" | "pass";
36
+ };
37
+ } | {
38
+ readonly code: "DATA_LOSS";
39
+ readonly message: string;
40
+ readonly hint?: string;
41
+ readonly context?: {
42
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
43
+ readonly reason?: string;
44
+ };
45
+ } | {
46
+ readonly code: "DEADLINE_EXCEEDED";
47
+ readonly message: string;
48
+ readonly hint?: string;
49
+ readonly context?: {
50
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
51
+ readonly id?: string;
52
+ };
53
+ } | {
54
+ readonly code: "FAILED_PRECONDITION";
55
+ readonly message: string;
56
+ readonly hint?: string;
57
+ readonly context?: {
58
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
59
+ readonly reason?: string;
60
+ readonly importState?: "cancelled" | "failed" | "running";
61
+ readonly attribute?: string;
62
+ readonly paths?: string[];
63
+ readonly total?: number;
64
+ readonly tip?: string;
65
+ };
66
+ } | {
67
+ readonly code: "INTERNAL";
68
+ readonly message: string;
69
+ readonly hint?: string;
70
+ readonly context?: {
71
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
72
+ };
73
+ } | {
74
+ readonly code: "INVALID_ARGUMENT";
75
+ readonly message: string;
76
+ readonly hint?: string;
77
+ readonly context?: {
78
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
79
+ readonly reason?: string;
80
+ readonly msgId?: string;
81
+ readonly most?: number;
82
+ readonly given?: number;
83
+ };
84
+ } | {
85
+ readonly code: "NOT_ALLOWED";
86
+ readonly message: string;
87
+ readonly hint?: string;
88
+ readonly context?: {
89
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
90
+ readonly reason?: string;
91
+ readonly entries?: string[];
92
+ readonly paths?: string[];
93
+ readonly total?: number;
94
+ };
95
+ } | {
96
+ readonly code: "NOT_FOUND";
97
+ readonly message: string;
98
+ readonly hint?: string;
99
+ readonly context?: {
100
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
101
+ readonly reason?: string;
102
+ readonly target?: string;
103
+ };
104
+ } | {
105
+ readonly code: "RESOURCE_EXHAUSTED";
106
+ readonly message: string;
107
+ readonly hint?: string;
108
+ readonly context?: {
109
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
110
+ readonly reason?: string;
111
+ readonly indexBytes?: number;
112
+ readonly pushBytes?: number;
113
+ readonly most?: number;
114
+ };
115
+ } | {
116
+ readonly code: "UNAUTHENTICATED";
117
+ readonly message: string;
118
+ readonly hint?: string;
119
+ readonly context?: {
120
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
121
+ };
122
+ } | {
123
+ readonly code: "UNAVAILABLE";
124
+ readonly message: string;
125
+ readonly hint?: string;
126
+ readonly context?: {
127
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
128
+ readonly id?: string;
129
+ readonly reason?: string;
130
+ readonly packs?: number;
131
+ readonly most?: number;
132
+ };
133
+ }, unknown, never, never>, import("effect/Schema").Codec<{
134
+ readonly code: "ALREADY_EXISTS";
135
+ readonly message: string;
136
+ readonly hint?: string;
137
+ readonly context?: {
138
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
139
+ readonly reason?: string;
140
+ readonly verdict?: "fail" | "pass";
141
+ };
142
+ } | {
143
+ readonly code: "DATA_LOSS";
144
+ readonly message: string;
145
+ readonly hint?: string;
146
+ readonly context?: {
147
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
148
+ readonly reason?: string;
149
+ };
150
+ } | {
151
+ readonly code: "DEADLINE_EXCEEDED";
152
+ readonly message: string;
153
+ readonly hint?: string;
154
+ readonly context?: {
155
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
156
+ readonly id?: string;
157
+ };
158
+ } | {
159
+ readonly code: "FAILED_PRECONDITION";
160
+ readonly message: string;
161
+ readonly hint?: string;
162
+ readonly context?: {
163
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
164
+ readonly reason?: string;
165
+ readonly importState?: "cancelled" | "failed" | "running";
166
+ readonly attribute?: string;
167
+ readonly paths?: string[];
168
+ readonly total?: number;
169
+ readonly tip?: string;
170
+ };
171
+ } | {
172
+ readonly code: "INTERNAL";
173
+ readonly message: string;
174
+ readonly hint?: string;
175
+ readonly context?: {
176
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
177
+ };
178
+ } | {
179
+ readonly code: "INVALID_ARGUMENT";
180
+ readonly message: string;
181
+ readonly hint?: string;
182
+ readonly context?: {
183
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
184
+ readonly reason?: string;
185
+ readonly msgId?: string;
186
+ readonly most?: number;
187
+ readonly given?: number;
188
+ };
189
+ } | {
190
+ readonly code: "NOT_ALLOWED";
191
+ readonly message: string;
192
+ readonly hint?: string;
193
+ readonly context?: {
194
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
195
+ readonly reason?: string;
196
+ readonly entries?: string[];
197
+ readonly paths?: string[];
198
+ readonly total?: number;
199
+ };
200
+ } | {
201
+ readonly code: "NOT_FOUND";
202
+ readonly message: string;
203
+ readonly hint?: string;
204
+ readonly context?: {
205
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
206
+ readonly reason?: string;
207
+ readonly target?: string;
208
+ };
209
+ } | {
210
+ readonly code: "RESOURCE_EXHAUSTED";
211
+ readonly message: string;
212
+ readonly hint?: string;
213
+ readonly context?: {
214
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
215
+ readonly reason?: string;
216
+ readonly indexBytes?: number;
217
+ readonly pushBytes?: number;
218
+ readonly most?: number;
219
+ };
220
+ } | {
221
+ readonly code: "UNAUTHENTICATED";
222
+ readonly message: string;
223
+ readonly hint?: string;
224
+ readonly context?: {
225
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
226
+ };
227
+ } | {
228
+ readonly code: "UNAVAILABLE";
229
+ readonly message: string;
230
+ readonly hint?: string;
231
+ readonly context?: {
232
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
233
+ readonly id?: string;
234
+ readonly reason?: string;
235
+ readonly packs?: number;
236
+ readonly most?: number;
237
+ };
238
+ }, unknown, never, never>, {
30
239
  "ref0-code": import("effect/Schema").String;
31
240
  }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Struct<{
32
- code: import("effect/Schema").Literal<"UNAUTHENTICATED">;
33
- message: import("effect/Schema").String;
34
- hint: import("effect/Schema").optionalKey<import("effect/Schema").String>;
35
- context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{}>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").String>, import("effect/Schema").Undefined]>>]>>;
241
+ readonly code: import("effect/Schema").Literal<"ALREADY_EXISTS">;
242
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
243
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
244
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
245
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["key-reused"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
246
+ verdict: import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["pass", "fail"]>>;
247
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
248
+ }> | import("effect/Schema").Struct<{
249
+ readonly code: import("effect/Schema").Literal<"DATA_LOSS">;
250
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
251
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
252
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
253
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["graph-length", "merge-incomplete"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
254
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
255
+ }> | import("effect/Schema").Struct<{
256
+ readonly code: import("effect/Schema").Literal<"DEADLINE_EXCEEDED">;
257
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
258
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
259
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
260
+ id: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
261
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
262
+ }> | import("effect/Schema").Struct<{
263
+ readonly code: import("effect/Schema").Literal<"FAILED_PRECONDITION">;
264
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
265
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
266
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
267
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["cursor-expired", "diverged", "merge-conflict", "candidate-superseded", "candidate-cancelled", "entry-gone", "ref-conflict", "newer-format", "changed-while-checked", "unsupported-attribute", "unrelated-histories", "unsupported-virtual-base", "own-repo", "not-a-fork", "no-copy-rows", "shallow-root", "shallow-upload", "sync-unbound", "import-cancelled", "importing", "history-not-imported", "stage-gone", "remote-refused", "atomic-partner", "merges-off"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
268
+ importState: import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["running", "cancelled", "failed"]>>;
269
+ attribute: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
270
+ paths: import("effect/Schema").optionalKey<import("effect/Schema").mutable<import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>>>;
271
+ total: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
272
+ tip: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
273
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
274
+ }> | import("effect/Schema").Struct<{
275
+ readonly code: import("effect/Schema").Literal<"INTERNAL">;
276
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
277
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
278
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{}>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
279
+ }> | import("effect/Schema").Struct<{
280
+ readonly code: import("effect/Schema").Literal<"INVALID_ARGUMENT">;
281
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
282
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
283
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
284
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["ofs-delta", "fsck", "provider-unknown", "body-ended", "link-wrong-type", "tag-target-missing", "object-missing", "boundary-not-in-pack", "too-many-short-ids", "too-many-parents"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
285
+ msgId: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
286
+ most: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
287
+ given: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
288
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
289
+ }> | import("effect/Schema").Struct<{
290
+ readonly code: import("effect/Schema").Literal<"NOT_ALLOWED">;
291
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
292
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
293
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
294
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["files-refused", "entry-unpublishable"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
295
+ entries: import("effect/Schema").optionalKey<import("effect/Schema").mutable<import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>>>;
296
+ paths: import("effect/Schema").optionalKey<import("effect/Schema").mutable<import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>>>;
297
+ total: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
298
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
299
+ }> | import("effect/Schema").Struct<{
300
+ readonly code: import("effect/Schema").Literal<"NOT_FOUND">;
301
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
302
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
303
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
304
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["no-queue", "no-topics", "ambiguous"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
305
+ target: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
306
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
307
+ }> | import("effect/Schema").Struct<{
308
+ readonly code: import("effect/Schema").Literal<"RESOURCE_EXHAUSTED">;
309
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
310
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
311
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
312
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
313
+ indexBytes: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
314
+ pushBytes: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
315
+ most: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
316
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
317
+ }> | import("effect/Schema").Struct<{
318
+ readonly code: import("effect/Schema").Literal<"UNAUTHENTICATED">;
319
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
320
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
321
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{}>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
322
+ }> | import("effect/Schema").Struct<{
323
+ readonly code: import("effect/Schema").Literal<"UNAVAILABLE">;
324
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
325
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
326
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
327
+ id: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
328
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["busy", "packs-awaiting-repack", "awaiting-index", "may-have-saved", "too-many-writes"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
329
+ packs: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
330
+ most: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
331
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
36
332
  }>, import("effect/Schema").Struct<{
37
- code: import("effect/Schema").Literal<"UNAUTHENTICATED">;
38
- message: import("effect/Schema").String;
39
- hint: import("effect/Schema").optionalKey<import("effect/Schema").String>;
40
- context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{}>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").String>, import("effect/Schema").Undefined]>>]>>;
333
+ readonly code: import("effect/Schema").Literal<"ALREADY_EXISTS">;
334
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
335
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
336
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
337
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["key-reused"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
338
+ verdict: import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["pass", "fail"]>>;
339
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
340
+ }> | import("effect/Schema").Struct<{
341
+ readonly code: import("effect/Schema").Literal<"DATA_LOSS">;
342
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
343
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
344
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
345
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["graph-length", "merge-incomplete"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
346
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
347
+ }> | import("effect/Schema").Struct<{
348
+ readonly code: import("effect/Schema").Literal<"DEADLINE_EXCEEDED">;
349
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
350
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
351
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
352
+ id: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
353
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
354
+ }> | import("effect/Schema").Struct<{
355
+ readonly code: import("effect/Schema").Literal<"FAILED_PRECONDITION">;
356
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
357
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
358
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
359
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["cursor-expired", "diverged", "merge-conflict", "candidate-superseded", "candidate-cancelled", "entry-gone", "ref-conflict", "newer-format", "changed-while-checked", "unsupported-attribute", "unrelated-histories", "unsupported-virtual-base", "own-repo", "not-a-fork", "no-copy-rows", "shallow-root", "shallow-upload", "sync-unbound", "import-cancelled", "importing", "history-not-imported", "stage-gone", "remote-refused", "atomic-partner", "merges-off"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
360
+ importState: import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["running", "cancelled", "failed"]>>;
361
+ attribute: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
362
+ paths: import("effect/Schema").optionalKey<import("effect/Schema").mutable<import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>>>;
363
+ total: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
364
+ tip: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
365
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
366
+ }> | import("effect/Schema").Struct<{
367
+ readonly code: import("effect/Schema").Literal<"INTERNAL">;
368
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
369
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
370
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{}>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
371
+ }> | import("effect/Schema").Struct<{
372
+ readonly code: import("effect/Schema").Literal<"INVALID_ARGUMENT">;
373
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
374
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
375
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
376
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["ofs-delta", "fsck", "provider-unknown", "body-ended", "link-wrong-type", "tag-target-missing", "object-missing", "boundary-not-in-pack", "too-many-short-ids", "too-many-parents"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
377
+ msgId: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
378
+ most: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
379
+ given: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
380
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
381
+ }> | import("effect/Schema").Struct<{
382
+ readonly code: import("effect/Schema").Literal<"NOT_ALLOWED">;
383
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
384
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
385
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
386
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["files-refused", "entry-unpublishable"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
387
+ entries: import("effect/Schema").optionalKey<import("effect/Schema").mutable<import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>>>;
388
+ paths: import("effect/Schema").optionalKey<import("effect/Schema").mutable<import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>>>;
389
+ total: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
390
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
391
+ }> | import("effect/Schema").Struct<{
392
+ readonly code: import("effect/Schema").Literal<"NOT_FOUND">;
393
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
394
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
395
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
396
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["no-queue", "no-topics", "ambiguous"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
397
+ target: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
398
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
399
+ }> | import("effect/Schema").Struct<{
400
+ readonly code: import("effect/Schema").Literal<"RESOURCE_EXHAUSTED">;
401
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
402
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
403
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
404
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
405
+ indexBytes: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
406
+ pushBytes: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
407
+ most: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
408
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
409
+ }> | import("effect/Schema").Struct<{
410
+ readonly code: import("effect/Schema").Literal<"UNAUTHENTICATED">;
411
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
412
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
413
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{}>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
414
+ }> | import("effect/Schema").Struct<{
415
+ readonly code: import("effect/Schema").Literal<"UNAVAILABLE">;
416
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
417
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
418
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
419
+ id: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
420
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["busy", "packs-awaiting-repack", "awaiting-index", "may-have-saved", "too-many-writes"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
421
+ packs: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
422
+ most: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
423
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
41
424
  }>, {
42
425
  "ref0-code": import("effect/Schema").String;
43
426
  'www-authenticate': import("effect/Schema").String;
44
- }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, {
427
+ }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<{
428
+ readonly code: "ALREADY_EXISTS";
429
+ readonly message: string;
430
+ readonly hint?: string;
431
+ readonly context?: {
432
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
433
+ readonly reason?: string;
434
+ readonly verdict?: "fail" | "pass";
435
+ };
436
+ } | {
437
+ readonly code: "DATA_LOSS";
438
+ readonly message: string;
439
+ readonly hint?: string;
440
+ readonly context?: {
441
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
442
+ readonly reason?: string;
443
+ };
444
+ } | {
445
+ readonly code: "DEADLINE_EXCEEDED";
446
+ readonly message: string;
447
+ readonly hint?: string;
448
+ readonly context?: {
449
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
450
+ readonly id?: string;
451
+ };
452
+ } | {
453
+ readonly code: "FAILED_PRECONDITION";
454
+ readonly message: string;
455
+ readonly hint?: string;
456
+ readonly context?: {
457
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
458
+ readonly reason?: string;
459
+ readonly importState?: "cancelled" | "failed" | "running";
460
+ readonly attribute?: string;
461
+ readonly paths?: string[];
462
+ readonly total?: number;
463
+ readonly tip?: string;
464
+ };
465
+ } | {
466
+ readonly code: "INTERNAL";
467
+ readonly message: string;
468
+ readonly hint?: string;
469
+ readonly context?: {
470
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
471
+ };
472
+ } | {
473
+ readonly code: "INVALID_ARGUMENT";
474
+ readonly message: string;
475
+ readonly hint?: string;
476
+ readonly context?: {
477
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
478
+ readonly reason?: string;
479
+ readonly msgId?: string;
480
+ readonly most?: number;
481
+ readonly given?: number;
482
+ };
483
+ } | {
484
+ readonly code: "NOT_ALLOWED";
485
+ readonly message: string;
486
+ readonly hint?: string;
487
+ readonly context?: {
488
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
489
+ readonly reason?: string;
490
+ readonly entries?: string[];
491
+ readonly paths?: string[];
492
+ readonly total?: number;
493
+ };
494
+ } | {
495
+ readonly code: "NOT_FOUND";
496
+ readonly message: string;
497
+ readonly hint?: string;
498
+ readonly context?: {
499
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
500
+ readonly reason?: string;
501
+ readonly target?: string;
502
+ };
503
+ } | {
504
+ readonly code: "RESOURCE_EXHAUSTED";
505
+ readonly message: string;
506
+ readonly hint?: string;
507
+ readonly context?: {
508
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
509
+ readonly reason?: string;
510
+ readonly indexBytes?: number;
511
+ readonly pushBytes?: number;
512
+ readonly most?: number;
513
+ };
514
+ } | {
515
+ readonly code: "UNAUTHENTICATED";
516
+ readonly message: string;
517
+ readonly hint?: string;
518
+ readonly context?: {
519
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
520
+ };
521
+ } | {
522
+ readonly code: "UNAVAILABLE";
523
+ readonly message: string;
524
+ readonly hint?: string;
525
+ readonly context?: {
526
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
527
+ readonly id?: string;
528
+ readonly reason?: string;
529
+ readonly packs?: number;
530
+ readonly most?: number;
531
+ };
532
+ }, unknown, never, never>, import("effect/Schema").Codec<{
533
+ readonly code: "ALREADY_EXISTS";
534
+ readonly message: string;
535
+ readonly hint?: string;
536
+ readonly context?: {
537
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
538
+ readonly reason?: string;
539
+ readonly verdict?: "fail" | "pass";
540
+ };
541
+ } | {
542
+ readonly code: "DATA_LOSS";
543
+ readonly message: string;
544
+ readonly hint?: string;
545
+ readonly context?: {
546
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
547
+ readonly reason?: string;
548
+ };
549
+ } | {
550
+ readonly code: "DEADLINE_EXCEEDED";
551
+ readonly message: string;
552
+ readonly hint?: string;
553
+ readonly context?: {
554
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
555
+ readonly id?: string;
556
+ };
557
+ } | {
558
+ readonly code: "FAILED_PRECONDITION";
559
+ readonly message: string;
560
+ readonly hint?: string;
561
+ readonly context?: {
562
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
563
+ readonly reason?: string;
564
+ readonly importState?: "cancelled" | "failed" | "running";
565
+ readonly attribute?: string;
566
+ readonly paths?: string[];
567
+ readonly total?: number;
568
+ readonly tip?: string;
569
+ };
570
+ } | {
571
+ readonly code: "INTERNAL";
572
+ readonly message: string;
573
+ readonly hint?: string;
574
+ readonly context?: {
575
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
576
+ };
577
+ } | {
578
+ readonly code: "INVALID_ARGUMENT";
579
+ readonly message: string;
580
+ readonly hint?: string;
581
+ readonly context?: {
582
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
583
+ readonly reason?: string;
584
+ readonly msgId?: string;
585
+ readonly most?: number;
586
+ readonly given?: number;
587
+ };
588
+ } | {
589
+ readonly code: "NOT_ALLOWED";
590
+ readonly message: string;
591
+ readonly hint?: string;
592
+ readonly context?: {
593
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
594
+ readonly reason?: string;
595
+ readonly entries?: string[];
596
+ readonly paths?: string[];
597
+ readonly total?: number;
598
+ };
599
+ } | {
600
+ readonly code: "NOT_FOUND";
601
+ readonly message: string;
602
+ readonly hint?: string;
603
+ readonly context?: {
604
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
605
+ readonly reason?: string;
606
+ readonly target?: string;
607
+ };
608
+ } | {
609
+ readonly code: "RESOURCE_EXHAUSTED";
610
+ readonly message: string;
611
+ readonly hint?: string;
612
+ readonly context?: {
613
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
614
+ readonly reason?: string;
615
+ readonly indexBytes?: number;
616
+ readonly pushBytes?: number;
617
+ readonly most?: number;
618
+ };
619
+ } | {
620
+ readonly code: "UNAUTHENTICATED";
621
+ readonly message: string;
622
+ readonly hint?: string;
623
+ readonly context?: {
624
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
625
+ };
626
+ } | {
627
+ readonly code: "UNAVAILABLE";
628
+ readonly message: string;
629
+ readonly hint?: string;
630
+ readonly context?: {
631
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
632
+ readonly id?: string;
633
+ readonly reason?: string;
634
+ readonly packs?: number;
635
+ readonly most?: number;
636
+ };
637
+ }, unknown, never, never>, {
45
638
  "ref0-code": import("effect/Schema").String;
46
- }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, {
639
+ }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<{
640
+ readonly code: "ALREADY_EXISTS";
641
+ readonly message: string;
642
+ readonly hint?: string;
643
+ readonly context?: {
644
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
645
+ readonly reason?: string;
646
+ readonly verdict?: "fail" | "pass";
647
+ };
648
+ } | {
649
+ readonly code: "DATA_LOSS";
650
+ readonly message: string;
651
+ readonly hint?: string;
652
+ readonly context?: {
653
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
654
+ readonly reason?: string;
655
+ };
656
+ } | {
657
+ readonly code: "DEADLINE_EXCEEDED";
658
+ readonly message: string;
659
+ readonly hint?: string;
660
+ readonly context?: {
661
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
662
+ readonly id?: string;
663
+ };
664
+ } | {
665
+ readonly code: "FAILED_PRECONDITION";
666
+ readonly message: string;
667
+ readonly hint?: string;
668
+ readonly context?: {
669
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
670
+ readonly reason?: string;
671
+ readonly importState?: "cancelled" | "failed" | "running";
672
+ readonly attribute?: string;
673
+ readonly paths?: string[];
674
+ readonly total?: number;
675
+ readonly tip?: string;
676
+ };
677
+ } | {
678
+ readonly code: "INTERNAL";
679
+ readonly message: string;
680
+ readonly hint?: string;
681
+ readonly context?: {
682
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
683
+ };
684
+ } | {
685
+ readonly code: "INVALID_ARGUMENT";
686
+ readonly message: string;
687
+ readonly hint?: string;
688
+ readonly context?: {
689
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
690
+ readonly reason?: string;
691
+ readonly msgId?: string;
692
+ readonly most?: number;
693
+ readonly given?: number;
694
+ };
695
+ } | {
696
+ readonly code: "NOT_ALLOWED";
697
+ readonly message: string;
698
+ readonly hint?: string;
699
+ readonly context?: {
700
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
701
+ readonly reason?: string;
702
+ readonly entries?: string[];
703
+ readonly paths?: string[];
704
+ readonly total?: number;
705
+ };
706
+ } | {
707
+ readonly code: "NOT_FOUND";
708
+ readonly message: string;
709
+ readonly hint?: string;
710
+ readonly context?: {
711
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
712
+ readonly reason?: string;
713
+ readonly target?: string;
714
+ };
715
+ } | {
716
+ readonly code: "RESOURCE_EXHAUSTED";
717
+ readonly message: string;
718
+ readonly hint?: string;
719
+ readonly context?: {
720
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
721
+ readonly reason?: string;
722
+ readonly indexBytes?: number;
723
+ readonly pushBytes?: number;
724
+ readonly most?: number;
725
+ };
726
+ } | {
727
+ readonly code: "UNAUTHENTICATED";
728
+ readonly message: string;
729
+ readonly hint?: string;
730
+ readonly context?: {
731
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
732
+ };
733
+ } | {
734
+ readonly code: "UNAVAILABLE";
735
+ readonly message: string;
736
+ readonly hint?: string;
737
+ readonly context?: {
738
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
739
+ readonly id?: string;
740
+ readonly reason?: string;
741
+ readonly packs?: number;
742
+ readonly most?: number;
743
+ };
744
+ }, unknown, never, never>, import("effect/Schema").Codec<{
745
+ readonly code: "ALREADY_EXISTS";
746
+ readonly message: string;
747
+ readonly hint?: string;
748
+ readonly context?: {
749
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
750
+ readonly reason?: string;
751
+ readonly verdict?: "fail" | "pass";
752
+ };
753
+ } | {
754
+ readonly code: "DATA_LOSS";
755
+ readonly message: string;
756
+ readonly hint?: string;
757
+ readonly context?: {
758
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
759
+ readonly reason?: string;
760
+ };
761
+ } | {
762
+ readonly code: "DEADLINE_EXCEEDED";
763
+ readonly message: string;
764
+ readonly hint?: string;
765
+ readonly context?: {
766
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
767
+ readonly id?: string;
768
+ };
769
+ } | {
770
+ readonly code: "FAILED_PRECONDITION";
771
+ readonly message: string;
772
+ readonly hint?: string;
773
+ readonly context?: {
774
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
775
+ readonly reason?: string;
776
+ readonly importState?: "cancelled" | "failed" | "running";
777
+ readonly attribute?: string;
778
+ readonly paths?: string[];
779
+ readonly total?: number;
780
+ readonly tip?: string;
781
+ };
782
+ } | {
783
+ readonly code: "INTERNAL";
784
+ readonly message: string;
785
+ readonly hint?: string;
786
+ readonly context?: {
787
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
788
+ };
789
+ } | {
790
+ readonly code: "INVALID_ARGUMENT";
791
+ readonly message: string;
792
+ readonly hint?: string;
793
+ readonly context?: {
794
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
795
+ readonly reason?: string;
796
+ readonly msgId?: string;
797
+ readonly most?: number;
798
+ readonly given?: number;
799
+ };
800
+ } | {
801
+ readonly code: "NOT_ALLOWED";
802
+ readonly message: string;
803
+ readonly hint?: string;
804
+ readonly context?: {
805
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
806
+ readonly reason?: string;
807
+ readonly entries?: string[];
808
+ readonly paths?: string[];
809
+ readonly total?: number;
810
+ };
811
+ } | {
812
+ readonly code: "NOT_FOUND";
813
+ readonly message: string;
814
+ readonly hint?: string;
815
+ readonly context?: {
816
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
817
+ readonly reason?: string;
818
+ readonly target?: string;
819
+ };
820
+ } | {
821
+ readonly code: "RESOURCE_EXHAUSTED";
822
+ readonly message: string;
823
+ readonly hint?: string;
824
+ readonly context?: {
825
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
826
+ readonly reason?: string;
827
+ readonly indexBytes?: number;
828
+ readonly pushBytes?: number;
829
+ readonly most?: number;
830
+ };
831
+ } | {
832
+ readonly code: "UNAUTHENTICATED";
833
+ readonly message: string;
834
+ readonly hint?: string;
835
+ readonly context?: {
836
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
837
+ };
838
+ } | {
839
+ readonly code: "UNAVAILABLE";
840
+ readonly message: string;
841
+ readonly hint?: string;
842
+ readonly context?: {
843
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
844
+ readonly id?: string;
845
+ readonly reason?: string;
846
+ readonly packs?: number;
847
+ readonly most?: number;
848
+ };
849
+ }, unknown, never, never>, {
47
850
  "ref0-code": import("effect/Schema").String;
48
- }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, {
851
+ }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<{
852
+ readonly code: "ALREADY_EXISTS";
853
+ readonly message: string;
854
+ readonly hint?: string;
855
+ readonly context?: {
856
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
857
+ readonly reason?: string;
858
+ readonly verdict?: "fail" | "pass";
859
+ };
860
+ } | {
861
+ readonly code: "DATA_LOSS";
862
+ readonly message: string;
863
+ readonly hint?: string;
864
+ readonly context?: {
865
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
866
+ readonly reason?: string;
867
+ };
868
+ } | {
869
+ readonly code: "DEADLINE_EXCEEDED";
870
+ readonly message: string;
871
+ readonly hint?: string;
872
+ readonly context?: {
873
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
874
+ readonly id?: string;
875
+ };
876
+ } | {
877
+ readonly code: "FAILED_PRECONDITION";
878
+ readonly message: string;
879
+ readonly hint?: string;
880
+ readonly context?: {
881
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
882
+ readonly reason?: string;
883
+ readonly importState?: "cancelled" | "failed" | "running";
884
+ readonly attribute?: string;
885
+ readonly paths?: string[];
886
+ readonly total?: number;
887
+ readonly tip?: string;
888
+ };
889
+ } | {
890
+ readonly code: "INTERNAL";
891
+ readonly message: string;
892
+ readonly hint?: string;
893
+ readonly context?: {
894
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
895
+ };
896
+ } | {
897
+ readonly code: "INVALID_ARGUMENT";
898
+ readonly message: string;
899
+ readonly hint?: string;
900
+ readonly context?: {
901
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
902
+ readonly reason?: string;
903
+ readonly msgId?: string;
904
+ readonly most?: number;
905
+ readonly given?: number;
906
+ };
907
+ } | {
908
+ readonly code: "NOT_ALLOWED";
909
+ readonly message: string;
910
+ readonly hint?: string;
911
+ readonly context?: {
912
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
913
+ readonly reason?: string;
914
+ readonly entries?: string[];
915
+ readonly paths?: string[];
916
+ readonly total?: number;
917
+ };
918
+ } | {
919
+ readonly code: "NOT_FOUND";
920
+ readonly message: string;
921
+ readonly hint?: string;
922
+ readonly context?: {
923
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
924
+ readonly reason?: string;
925
+ readonly target?: string;
926
+ };
927
+ } | {
928
+ readonly code: "RESOURCE_EXHAUSTED";
929
+ readonly message: string;
930
+ readonly hint?: string;
931
+ readonly context?: {
932
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
933
+ readonly reason?: string;
934
+ readonly indexBytes?: number;
935
+ readonly pushBytes?: number;
936
+ readonly most?: number;
937
+ };
938
+ } | {
939
+ readonly code: "UNAUTHENTICATED";
940
+ readonly message: string;
941
+ readonly hint?: string;
942
+ readonly context?: {
943
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
944
+ };
945
+ } | {
946
+ readonly code: "UNAVAILABLE";
947
+ readonly message: string;
948
+ readonly hint?: string;
949
+ readonly context?: {
950
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
951
+ readonly id?: string;
952
+ readonly reason?: string;
953
+ readonly packs?: number;
954
+ readonly most?: number;
955
+ };
956
+ }, unknown, never, never>, import("effect/Schema").Codec<{
957
+ readonly code: "ALREADY_EXISTS";
958
+ readonly message: string;
959
+ readonly hint?: string;
960
+ readonly context?: {
961
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
962
+ readonly reason?: string;
963
+ readonly verdict?: "fail" | "pass";
964
+ };
965
+ } | {
966
+ readonly code: "DATA_LOSS";
967
+ readonly message: string;
968
+ readonly hint?: string;
969
+ readonly context?: {
970
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
971
+ readonly reason?: string;
972
+ };
973
+ } | {
974
+ readonly code: "DEADLINE_EXCEEDED";
975
+ readonly message: string;
976
+ readonly hint?: string;
977
+ readonly context?: {
978
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
979
+ readonly id?: string;
980
+ };
981
+ } | {
982
+ readonly code: "FAILED_PRECONDITION";
983
+ readonly message: string;
984
+ readonly hint?: string;
985
+ readonly context?: {
986
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
987
+ readonly reason?: string;
988
+ readonly importState?: "cancelled" | "failed" | "running";
989
+ readonly attribute?: string;
990
+ readonly paths?: string[];
991
+ readonly total?: number;
992
+ readonly tip?: string;
993
+ };
994
+ } | {
995
+ readonly code: "INTERNAL";
996
+ readonly message: string;
997
+ readonly hint?: string;
998
+ readonly context?: {
999
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1000
+ };
1001
+ } | {
1002
+ readonly code: "INVALID_ARGUMENT";
1003
+ readonly message: string;
1004
+ readonly hint?: string;
1005
+ readonly context?: {
1006
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1007
+ readonly reason?: string;
1008
+ readonly msgId?: string;
1009
+ readonly most?: number;
1010
+ readonly given?: number;
1011
+ };
1012
+ } | {
1013
+ readonly code: "NOT_ALLOWED";
1014
+ readonly message: string;
1015
+ readonly hint?: string;
1016
+ readonly context?: {
1017
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1018
+ readonly reason?: string;
1019
+ readonly entries?: string[];
1020
+ readonly paths?: string[];
1021
+ readonly total?: number;
1022
+ };
1023
+ } | {
1024
+ readonly code: "NOT_FOUND";
1025
+ readonly message: string;
1026
+ readonly hint?: string;
1027
+ readonly context?: {
1028
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1029
+ readonly reason?: string;
1030
+ readonly target?: string;
1031
+ };
1032
+ } | {
1033
+ readonly code: "RESOURCE_EXHAUSTED";
1034
+ readonly message: string;
1035
+ readonly hint?: string;
1036
+ readonly context?: {
1037
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1038
+ readonly reason?: string;
1039
+ readonly indexBytes?: number;
1040
+ readonly pushBytes?: number;
1041
+ readonly most?: number;
1042
+ };
1043
+ } | {
1044
+ readonly code: "UNAUTHENTICATED";
1045
+ readonly message: string;
1046
+ readonly hint?: string;
1047
+ readonly context?: {
1048
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1049
+ };
1050
+ } | {
1051
+ readonly code: "UNAVAILABLE";
1052
+ readonly message: string;
1053
+ readonly hint?: string;
1054
+ readonly context?: {
1055
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1056
+ readonly id?: string;
1057
+ readonly reason?: string;
1058
+ readonly packs?: number;
1059
+ readonly most?: number;
1060
+ };
1061
+ }, unknown, never, never>, {
49
1062
  "ref0-code": import("effect/Schema").String;
50
- }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, {
1063
+ }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<{
1064
+ readonly code: "ALREADY_EXISTS";
1065
+ readonly message: string;
1066
+ readonly hint?: string;
1067
+ readonly context?: {
1068
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1069
+ readonly reason?: string;
1070
+ readonly verdict?: "fail" | "pass";
1071
+ };
1072
+ } | {
1073
+ readonly code: "DATA_LOSS";
1074
+ readonly message: string;
1075
+ readonly hint?: string;
1076
+ readonly context?: {
1077
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1078
+ readonly reason?: string;
1079
+ };
1080
+ } | {
1081
+ readonly code: "DEADLINE_EXCEEDED";
1082
+ readonly message: string;
1083
+ readonly hint?: string;
1084
+ readonly context?: {
1085
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1086
+ readonly id?: string;
1087
+ };
1088
+ } | {
1089
+ readonly code: "FAILED_PRECONDITION";
1090
+ readonly message: string;
1091
+ readonly hint?: string;
1092
+ readonly context?: {
1093
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1094
+ readonly reason?: string;
1095
+ readonly importState?: "cancelled" | "failed" | "running";
1096
+ readonly attribute?: string;
1097
+ readonly paths?: string[];
1098
+ readonly total?: number;
1099
+ readonly tip?: string;
1100
+ };
1101
+ } | {
1102
+ readonly code: "INTERNAL";
1103
+ readonly message: string;
1104
+ readonly hint?: string;
1105
+ readonly context?: {
1106
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1107
+ };
1108
+ } | {
1109
+ readonly code: "INVALID_ARGUMENT";
1110
+ readonly message: string;
1111
+ readonly hint?: string;
1112
+ readonly context?: {
1113
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1114
+ readonly reason?: string;
1115
+ readonly msgId?: string;
1116
+ readonly most?: number;
1117
+ readonly given?: number;
1118
+ };
1119
+ } | {
1120
+ readonly code: "NOT_ALLOWED";
1121
+ readonly message: string;
1122
+ readonly hint?: string;
1123
+ readonly context?: {
1124
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1125
+ readonly reason?: string;
1126
+ readonly entries?: string[];
1127
+ readonly paths?: string[];
1128
+ readonly total?: number;
1129
+ };
1130
+ } | {
1131
+ readonly code: "NOT_FOUND";
1132
+ readonly message: string;
1133
+ readonly hint?: string;
1134
+ readonly context?: {
1135
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1136
+ readonly reason?: string;
1137
+ readonly target?: string;
1138
+ };
1139
+ } | {
1140
+ readonly code: "RESOURCE_EXHAUSTED";
1141
+ readonly message: string;
1142
+ readonly hint?: string;
1143
+ readonly context?: {
1144
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1145
+ readonly reason?: string;
1146
+ readonly indexBytes?: number;
1147
+ readonly pushBytes?: number;
1148
+ readonly most?: number;
1149
+ };
1150
+ } | {
1151
+ readonly code: "UNAUTHENTICATED";
1152
+ readonly message: string;
1153
+ readonly hint?: string;
1154
+ readonly context?: {
1155
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1156
+ };
1157
+ } | {
1158
+ readonly code: "UNAVAILABLE";
1159
+ readonly message: string;
1160
+ readonly hint?: string;
1161
+ readonly context?: {
1162
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1163
+ readonly id?: string;
1164
+ readonly reason?: string;
1165
+ readonly packs?: number;
1166
+ readonly most?: number;
1167
+ };
1168
+ }, unknown, never, never>, import("effect/Schema").Codec<{
1169
+ readonly code: "ALREADY_EXISTS";
1170
+ readonly message: string;
1171
+ readonly hint?: string;
1172
+ readonly context?: {
1173
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1174
+ readonly reason?: string;
1175
+ readonly verdict?: "fail" | "pass";
1176
+ };
1177
+ } | {
1178
+ readonly code: "DATA_LOSS";
1179
+ readonly message: string;
1180
+ readonly hint?: string;
1181
+ readonly context?: {
1182
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1183
+ readonly reason?: string;
1184
+ };
1185
+ } | {
1186
+ readonly code: "DEADLINE_EXCEEDED";
1187
+ readonly message: string;
1188
+ readonly hint?: string;
1189
+ readonly context?: {
1190
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1191
+ readonly id?: string;
1192
+ };
1193
+ } | {
1194
+ readonly code: "FAILED_PRECONDITION";
1195
+ readonly message: string;
1196
+ readonly hint?: string;
1197
+ readonly context?: {
1198
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1199
+ readonly reason?: string;
1200
+ readonly importState?: "cancelled" | "failed" | "running";
1201
+ readonly attribute?: string;
1202
+ readonly paths?: string[];
1203
+ readonly total?: number;
1204
+ readonly tip?: string;
1205
+ };
1206
+ } | {
1207
+ readonly code: "INTERNAL";
1208
+ readonly message: string;
1209
+ readonly hint?: string;
1210
+ readonly context?: {
1211
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1212
+ };
1213
+ } | {
1214
+ readonly code: "INVALID_ARGUMENT";
1215
+ readonly message: string;
1216
+ readonly hint?: string;
1217
+ readonly context?: {
1218
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1219
+ readonly reason?: string;
1220
+ readonly msgId?: string;
1221
+ readonly most?: number;
1222
+ readonly given?: number;
1223
+ };
1224
+ } | {
1225
+ readonly code: "NOT_ALLOWED";
1226
+ readonly message: string;
1227
+ readonly hint?: string;
1228
+ readonly context?: {
1229
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1230
+ readonly reason?: string;
1231
+ readonly entries?: string[];
1232
+ readonly paths?: string[];
1233
+ readonly total?: number;
1234
+ };
1235
+ } | {
1236
+ readonly code: "NOT_FOUND";
1237
+ readonly message: string;
1238
+ readonly hint?: string;
1239
+ readonly context?: {
1240
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1241
+ readonly reason?: string;
1242
+ readonly target?: string;
1243
+ };
1244
+ } | {
1245
+ readonly code: "RESOURCE_EXHAUSTED";
1246
+ readonly message: string;
1247
+ readonly hint?: string;
1248
+ readonly context?: {
1249
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1250
+ readonly reason?: string;
1251
+ readonly indexBytes?: number;
1252
+ readonly pushBytes?: number;
1253
+ readonly most?: number;
1254
+ };
1255
+ } | {
1256
+ readonly code: "UNAUTHENTICATED";
1257
+ readonly message: string;
1258
+ readonly hint?: string;
1259
+ readonly context?: {
1260
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1261
+ };
1262
+ } | {
1263
+ readonly code: "UNAVAILABLE";
1264
+ readonly message: string;
1265
+ readonly hint?: string;
1266
+ readonly context?: {
1267
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1268
+ readonly id?: string;
1269
+ readonly reason?: string;
1270
+ readonly packs?: number;
1271
+ readonly most?: number;
1272
+ };
1273
+ }, unknown, never, never>, {
51
1274
  "ref0-code": import("effect/Schema").String;
52
- }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, {
1275
+ }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<{
1276
+ readonly code: "ALREADY_EXISTS";
1277
+ readonly message: string;
1278
+ readonly hint?: string;
1279
+ readonly context?: {
1280
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1281
+ readonly reason?: string;
1282
+ readonly verdict?: "fail" | "pass";
1283
+ };
1284
+ } | {
1285
+ readonly code: "DATA_LOSS";
1286
+ readonly message: string;
1287
+ readonly hint?: string;
1288
+ readonly context?: {
1289
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1290
+ readonly reason?: string;
1291
+ };
1292
+ } | {
1293
+ readonly code: "DEADLINE_EXCEEDED";
1294
+ readonly message: string;
1295
+ readonly hint?: string;
1296
+ readonly context?: {
1297
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1298
+ readonly id?: string;
1299
+ };
1300
+ } | {
1301
+ readonly code: "FAILED_PRECONDITION";
1302
+ readonly message: string;
1303
+ readonly hint?: string;
1304
+ readonly context?: {
1305
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1306
+ readonly reason?: string;
1307
+ readonly importState?: "cancelled" | "failed" | "running";
1308
+ readonly attribute?: string;
1309
+ readonly paths?: string[];
1310
+ readonly total?: number;
1311
+ readonly tip?: string;
1312
+ };
1313
+ } | {
1314
+ readonly code: "INTERNAL";
1315
+ readonly message: string;
1316
+ readonly hint?: string;
1317
+ readonly context?: {
1318
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1319
+ };
1320
+ } | {
1321
+ readonly code: "INVALID_ARGUMENT";
1322
+ readonly message: string;
1323
+ readonly hint?: string;
1324
+ readonly context?: {
1325
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1326
+ readonly reason?: string;
1327
+ readonly msgId?: string;
1328
+ readonly most?: number;
1329
+ readonly given?: number;
1330
+ };
1331
+ } | {
1332
+ readonly code: "NOT_ALLOWED";
1333
+ readonly message: string;
1334
+ readonly hint?: string;
1335
+ readonly context?: {
1336
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1337
+ readonly reason?: string;
1338
+ readonly entries?: string[];
1339
+ readonly paths?: string[];
1340
+ readonly total?: number;
1341
+ };
1342
+ } | {
1343
+ readonly code: "NOT_FOUND";
1344
+ readonly message: string;
1345
+ readonly hint?: string;
1346
+ readonly context?: {
1347
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1348
+ readonly reason?: string;
1349
+ readonly target?: string;
1350
+ };
1351
+ } | {
1352
+ readonly code: "RESOURCE_EXHAUSTED";
1353
+ readonly message: string;
1354
+ readonly hint?: string;
1355
+ readonly context?: {
1356
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1357
+ readonly reason?: string;
1358
+ readonly indexBytes?: number;
1359
+ readonly pushBytes?: number;
1360
+ readonly most?: number;
1361
+ };
1362
+ } | {
1363
+ readonly code: "UNAUTHENTICATED";
1364
+ readonly message: string;
1365
+ readonly hint?: string;
1366
+ readonly context?: {
1367
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1368
+ };
1369
+ } | {
1370
+ readonly code: "UNAVAILABLE";
1371
+ readonly message: string;
1372
+ readonly hint?: string;
1373
+ readonly context?: {
1374
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1375
+ readonly id?: string;
1376
+ readonly reason?: string;
1377
+ readonly packs?: number;
1378
+ readonly most?: number;
1379
+ };
1380
+ }, unknown, never, never>, import("effect/Schema").Codec<{
1381
+ readonly code: "ALREADY_EXISTS";
1382
+ readonly message: string;
1383
+ readonly hint?: string;
1384
+ readonly context?: {
1385
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1386
+ readonly reason?: string;
1387
+ readonly verdict?: "fail" | "pass";
1388
+ };
1389
+ } | {
1390
+ readonly code: "DATA_LOSS";
1391
+ readonly message: string;
1392
+ readonly hint?: string;
1393
+ readonly context?: {
1394
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1395
+ readonly reason?: string;
1396
+ };
1397
+ } | {
1398
+ readonly code: "DEADLINE_EXCEEDED";
1399
+ readonly message: string;
1400
+ readonly hint?: string;
1401
+ readonly context?: {
1402
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1403
+ readonly id?: string;
1404
+ };
1405
+ } | {
1406
+ readonly code: "FAILED_PRECONDITION";
1407
+ readonly message: string;
1408
+ readonly hint?: string;
1409
+ readonly context?: {
1410
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1411
+ readonly reason?: string;
1412
+ readonly importState?: "cancelled" | "failed" | "running";
1413
+ readonly attribute?: string;
1414
+ readonly paths?: string[];
1415
+ readonly total?: number;
1416
+ readonly tip?: string;
1417
+ };
1418
+ } | {
1419
+ readonly code: "INTERNAL";
1420
+ readonly message: string;
1421
+ readonly hint?: string;
1422
+ readonly context?: {
1423
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1424
+ };
1425
+ } | {
1426
+ readonly code: "INVALID_ARGUMENT";
1427
+ readonly message: string;
1428
+ readonly hint?: string;
1429
+ readonly context?: {
1430
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1431
+ readonly reason?: string;
1432
+ readonly msgId?: string;
1433
+ readonly most?: number;
1434
+ readonly given?: number;
1435
+ };
1436
+ } | {
1437
+ readonly code: "NOT_ALLOWED";
1438
+ readonly message: string;
1439
+ readonly hint?: string;
1440
+ readonly context?: {
1441
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1442
+ readonly reason?: string;
1443
+ readonly entries?: string[];
1444
+ readonly paths?: string[];
1445
+ readonly total?: number;
1446
+ };
1447
+ } | {
1448
+ readonly code: "NOT_FOUND";
1449
+ readonly message: string;
1450
+ readonly hint?: string;
1451
+ readonly context?: {
1452
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1453
+ readonly reason?: string;
1454
+ readonly target?: string;
1455
+ };
1456
+ } | {
1457
+ readonly code: "RESOURCE_EXHAUSTED";
1458
+ readonly message: string;
1459
+ readonly hint?: string;
1460
+ readonly context?: {
1461
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1462
+ readonly reason?: string;
1463
+ readonly indexBytes?: number;
1464
+ readonly pushBytes?: number;
1465
+ readonly most?: number;
1466
+ };
1467
+ } | {
1468
+ readonly code: "UNAUTHENTICATED";
1469
+ readonly message: string;
1470
+ readonly hint?: string;
1471
+ readonly context?: {
1472
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1473
+ };
1474
+ } | {
1475
+ readonly code: "UNAVAILABLE";
1476
+ readonly message: string;
1477
+ readonly hint?: string;
1478
+ readonly context?: {
1479
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1480
+ readonly id?: string;
1481
+ readonly reason?: string;
1482
+ readonly packs?: number;
1483
+ readonly most?: number;
1484
+ };
1485
+ }, unknown, never, never>, {
53
1486
  "ref0-code": import("effect/Schema").String;
54
- }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, {
1487
+ }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<{
1488
+ readonly code: "ALREADY_EXISTS";
1489
+ readonly message: string;
1490
+ readonly hint?: string;
1491
+ readonly context?: {
1492
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1493
+ readonly reason?: string;
1494
+ readonly verdict?: "fail" | "pass";
1495
+ };
1496
+ } | {
1497
+ readonly code: "DATA_LOSS";
1498
+ readonly message: string;
1499
+ readonly hint?: string;
1500
+ readonly context?: {
1501
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1502
+ readonly reason?: string;
1503
+ };
1504
+ } | {
1505
+ readonly code: "DEADLINE_EXCEEDED";
1506
+ readonly message: string;
1507
+ readonly hint?: string;
1508
+ readonly context?: {
1509
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1510
+ readonly id?: string;
1511
+ };
1512
+ } | {
1513
+ readonly code: "FAILED_PRECONDITION";
1514
+ readonly message: string;
1515
+ readonly hint?: string;
1516
+ readonly context?: {
1517
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1518
+ readonly reason?: string;
1519
+ readonly importState?: "cancelled" | "failed" | "running";
1520
+ readonly attribute?: string;
1521
+ readonly paths?: string[];
1522
+ readonly total?: number;
1523
+ readonly tip?: string;
1524
+ };
1525
+ } | {
1526
+ readonly code: "INTERNAL";
1527
+ readonly message: string;
1528
+ readonly hint?: string;
1529
+ readonly context?: {
1530
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1531
+ };
1532
+ } | {
1533
+ readonly code: "INVALID_ARGUMENT";
1534
+ readonly message: string;
1535
+ readonly hint?: string;
1536
+ readonly context?: {
1537
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1538
+ readonly reason?: string;
1539
+ readonly msgId?: string;
1540
+ readonly most?: number;
1541
+ readonly given?: number;
1542
+ };
1543
+ } | {
1544
+ readonly code: "NOT_ALLOWED";
1545
+ readonly message: string;
1546
+ readonly hint?: string;
1547
+ readonly context?: {
1548
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1549
+ readonly reason?: string;
1550
+ readonly entries?: string[];
1551
+ readonly paths?: string[];
1552
+ readonly total?: number;
1553
+ };
1554
+ } | {
1555
+ readonly code: "NOT_FOUND";
1556
+ readonly message: string;
1557
+ readonly hint?: string;
1558
+ readonly context?: {
1559
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1560
+ readonly reason?: string;
1561
+ readonly target?: string;
1562
+ };
1563
+ } | {
1564
+ readonly code: "RESOURCE_EXHAUSTED";
1565
+ readonly message: string;
1566
+ readonly hint?: string;
1567
+ readonly context?: {
1568
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1569
+ readonly reason?: string;
1570
+ readonly indexBytes?: number;
1571
+ readonly pushBytes?: number;
1572
+ readonly most?: number;
1573
+ };
1574
+ } | {
1575
+ readonly code: "UNAUTHENTICATED";
1576
+ readonly message: string;
1577
+ readonly hint?: string;
1578
+ readonly context?: {
1579
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1580
+ };
1581
+ } | {
1582
+ readonly code: "UNAVAILABLE";
1583
+ readonly message: string;
1584
+ readonly hint?: string;
1585
+ readonly context?: {
1586
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1587
+ readonly id?: string;
1588
+ readonly reason?: string;
1589
+ readonly packs?: number;
1590
+ readonly most?: number;
1591
+ };
1592
+ }, unknown, never, never>, import("effect/Schema").Codec<{
1593
+ readonly code: "ALREADY_EXISTS";
1594
+ readonly message: string;
1595
+ readonly hint?: string;
1596
+ readonly context?: {
1597
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1598
+ readonly reason?: string;
1599
+ readonly verdict?: "fail" | "pass";
1600
+ };
1601
+ } | {
1602
+ readonly code: "DATA_LOSS";
1603
+ readonly message: string;
1604
+ readonly hint?: string;
1605
+ readonly context?: {
1606
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1607
+ readonly reason?: string;
1608
+ };
1609
+ } | {
1610
+ readonly code: "DEADLINE_EXCEEDED";
1611
+ readonly message: string;
1612
+ readonly hint?: string;
1613
+ readonly context?: {
1614
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1615
+ readonly id?: string;
1616
+ };
1617
+ } | {
1618
+ readonly code: "FAILED_PRECONDITION";
1619
+ readonly message: string;
1620
+ readonly hint?: string;
1621
+ readonly context?: {
1622
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1623
+ readonly reason?: string;
1624
+ readonly importState?: "cancelled" | "failed" | "running";
1625
+ readonly attribute?: string;
1626
+ readonly paths?: string[];
1627
+ readonly total?: number;
1628
+ readonly tip?: string;
1629
+ };
1630
+ } | {
1631
+ readonly code: "INTERNAL";
1632
+ readonly message: string;
1633
+ readonly hint?: string;
1634
+ readonly context?: {
1635
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1636
+ };
1637
+ } | {
1638
+ readonly code: "INVALID_ARGUMENT";
1639
+ readonly message: string;
1640
+ readonly hint?: string;
1641
+ readonly context?: {
1642
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1643
+ readonly reason?: string;
1644
+ readonly msgId?: string;
1645
+ readonly most?: number;
1646
+ readonly given?: number;
1647
+ };
1648
+ } | {
1649
+ readonly code: "NOT_ALLOWED";
1650
+ readonly message: string;
1651
+ readonly hint?: string;
1652
+ readonly context?: {
1653
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1654
+ readonly reason?: string;
1655
+ readonly entries?: string[];
1656
+ readonly paths?: string[];
1657
+ readonly total?: number;
1658
+ };
1659
+ } | {
1660
+ readonly code: "NOT_FOUND";
1661
+ readonly message: string;
1662
+ readonly hint?: string;
1663
+ readonly context?: {
1664
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1665
+ readonly reason?: string;
1666
+ readonly target?: string;
1667
+ };
1668
+ } | {
1669
+ readonly code: "RESOURCE_EXHAUSTED";
1670
+ readonly message: string;
1671
+ readonly hint?: string;
1672
+ readonly context?: {
1673
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1674
+ readonly reason?: string;
1675
+ readonly indexBytes?: number;
1676
+ readonly pushBytes?: number;
1677
+ readonly most?: number;
1678
+ };
1679
+ } | {
1680
+ readonly code: "UNAUTHENTICATED";
1681
+ readonly message: string;
1682
+ readonly hint?: string;
1683
+ readonly context?: {
1684
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1685
+ };
1686
+ } | {
1687
+ readonly code: "UNAVAILABLE";
1688
+ readonly message: string;
1689
+ readonly hint?: string;
1690
+ readonly context?: {
1691
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1692
+ readonly id?: string;
1693
+ readonly reason?: string;
1694
+ readonly packs?: number;
1695
+ readonly most?: number;
1696
+ };
1697
+ }, unknown, never, never>, {
55
1698
  "ref0-code": import("effect/Schema").String;
56
- }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, {
1699
+ }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<{
1700
+ readonly code: "ALREADY_EXISTS";
1701
+ readonly message: string;
1702
+ readonly hint?: string;
1703
+ readonly context?: {
1704
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1705
+ readonly reason?: string;
1706
+ readonly verdict?: "fail" | "pass";
1707
+ };
1708
+ } | {
1709
+ readonly code: "DATA_LOSS";
1710
+ readonly message: string;
1711
+ readonly hint?: string;
1712
+ readonly context?: {
1713
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1714
+ readonly reason?: string;
1715
+ };
1716
+ } | {
1717
+ readonly code: "DEADLINE_EXCEEDED";
1718
+ readonly message: string;
1719
+ readonly hint?: string;
1720
+ readonly context?: {
1721
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1722
+ readonly id?: string;
1723
+ };
1724
+ } | {
1725
+ readonly code: "FAILED_PRECONDITION";
1726
+ readonly message: string;
1727
+ readonly hint?: string;
1728
+ readonly context?: {
1729
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1730
+ readonly reason?: string;
1731
+ readonly importState?: "cancelled" | "failed" | "running";
1732
+ readonly attribute?: string;
1733
+ readonly paths?: string[];
1734
+ readonly total?: number;
1735
+ readonly tip?: string;
1736
+ };
1737
+ } | {
1738
+ readonly code: "INTERNAL";
1739
+ readonly message: string;
1740
+ readonly hint?: string;
1741
+ readonly context?: {
1742
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1743
+ };
1744
+ } | {
1745
+ readonly code: "INVALID_ARGUMENT";
1746
+ readonly message: string;
1747
+ readonly hint?: string;
1748
+ readonly context?: {
1749
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1750
+ readonly reason?: string;
1751
+ readonly msgId?: string;
1752
+ readonly most?: number;
1753
+ readonly given?: number;
1754
+ };
1755
+ } | {
1756
+ readonly code: "NOT_ALLOWED";
1757
+ readonly message: string;
1758
+ readonly hint?: string;
1759
+ readonly context?: {
1760
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1761
+ readonly reason?: string;
1762
+ readonly entries?: string[];
1763
+ readonly paths?: string[];
1764
+ readonly total?: number;
1765
+ };
1766
+ } | {
1767
+ readonly code: "NOT_FOUND";
1768
+ readonly message: string;
1769
+ readonly hint?: string;
1770
+ readonly context?: {
1771
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1772
+ readonly reason?: string;
1773
+ readonly target?: string;
1774
+ };
1775
+ } | {
1776
+ readonly code: "RESOURCE_EXHAUSTED";
1777
+ readonly message: string;
1778
+ readonly hint?: string;
1779
+ readonly context?: {
1780
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1781
+ readonly reason?: string;
1782
+ readonly indexBytes?: number;
1783
+ readonly pushBytes?: number;
1784
+ readonly most?: number;
1785
+ };
1786
+ } | {
1787
+ readonly code: "UNAUTHENTICATED";
1788
+ readonly message: string;
1789
+ readonly hint?: string;
1790
+ readonly context?: {
1791
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1792
+ };
1793
+ } | {
1794
+ readonly code: "UNAVAILABLE";
1795
+ readonly message: string;
1796
+ readonly hint?: string;
1797
+ readonly context?: {
1798
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1799
+ readonly id?: string;
1800
+ readonly reason?: string;
1801
+ readonly packs?: number;
1802
+ readonly most?: number;
1803
+ };
1804
+ }, unknown, never, never>, import("effect/Schema").Codec<{
1805
+ readonly code: "ALREADY_EXISTS";
1806
+ readonly message: string;
1807
+ readonly hint?: string;
1808
+ readonly context?: {
1809
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1810
+ readonly reason?: string;
1811
+ readonly verdict?: "fail" | "pass";
1812
+ };
1813
+ } | {
1814
+ readonly code: "DATA_LOSS";
1815
+ readonly message: string;
1816
+ readonly hint?: string;
1817
+ readonly context?: {
1818
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1819
+ readonly reason?: string;
1820
+ };
1821
+ } | {
1822
+ readonly code: "DEADLINE_EXCEEDED";
1823
+ readonly message: string;
1824
+ readonly hint?: string;
1825
+ readonly context?: {
1826
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1827
+ readonly id?: string;
1828
+ };
1829
+ } | {
1830
+ readonly code: "FAILED_PRECONDITION";
1831
+ readonly message: string;
1832
+ readonly hint?: string;
1833
+ readonly context?: {
1834
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1835
+ readonly reason?: string;
1836
+ readonly importState?: "cancelled" | "failed" | "running";
1837
+ readonly attribute?: string;
1838
+ readonly paths?: string[];
1839
+ readonly total?: number;
1840
+ readonly tip?: string;
1841
+ };
1842
+ } | {
1843
+ readonly code: "INTERNAL";
1844
+ readonly message: string;
1845
+ readonly hint?: string;
1846
+ readonly context?: {
1847
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1848
+ };
1849
+ } | {
1850
+ readonly code: "INVALID_ARGUMENT";
1851
+ readonly message: string;
1852
+ readonly hint?: string;
1853
+ readonly context?: {
1854
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1855
+ readonly reason?: string;
1856
+ readonly msgId?: string;
1857
+ readonly most?: number;
1858
+ readonly given?: number;
1859
+ };
1860
+ } | {
1861
+ readonly code: "NOT_ALLOWED";
1862
+ readonly message: string;
1863
+ readonly hint?: string;
1864
+ readonly context?: {
1865
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1866
+ readonly reason?: string;
1867
+ readonly entries?: string[];
1868
+ readonly paths?: string[];
1869
+ readonly total?: number;
1870
+ };
1871
+ } | {
1872
+ readonly code: "NOT_FOUND";
1873
+ readonly message: string;
1874
+ readonly hint?: string;
1875
+ readonly context?: {
1876
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1877
+ readonly reason?: string;
1878
+ readonly target?: string;
1879
+ };
1880
+ } | {
1881
+ readonly code: "RESOURCE_EXHAUSTED";
1882
+ readonly message: string;
1883
+ readonly hint?: string;
1884
+ readonly context?: {
1885
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1886
+ readonly reason?: string;
1887
+ readonly indexBytes?: number;
1888
+ readonly pushBytes?: number;
1889
+ readonly most?: number;
1890
+ };
1891
+ } | {
1892
+ readonly code: "UNAUTHENTICATED";
1893
+ readonly message: string;
1894
+ readonly hint?: string;
1895
+ readonly context?: {
1896
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1897
+ };
1898
+ } | {
1899
+ readonly code: "UNAVAILABLE";
1900
+ readonly message: string;
1901
+ readonly hint?: string;
1902
+ readonly context?: {
1903
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1904
+ readonly id?: string;
1905
+ readonly reason?: string;
1906
+ readonly packs?: number;
1907
+ readonly most?: number;
1908
+ };
1909
+ }, unknown, never, never>, {
57
1910
  "ref0-code": import("effect/Schema").String;
58
- }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, {
1911
+ }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<{
1912
+ readonly code: "ALREADY_EXISTS";
1913
+ readonly message: string;
1914
+ readonly hint?: string;
1915
+ readonly context?: {
1916
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1917
+ readonly reason?: string;
1918
+ readonly verdict?: "fail" | "pass";
1919
+ };
1920
+ } | {
1921
+ readonly code: "DATA_LOSS";
1922
+ readonly message: string;
1923
+ readonly hint?: string;
1924
+ readonly context?: {
1925
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1926
+ readonly reason?: string;
1927
+ };
1928
+ } | {
1929
+ readonly code: "DEADLINE_EXCEEDED";
1930
+ readonly message: string;
1931
+ readonly hint?: string;
1932
+ readonly context?: {
1933
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1934
+ readonly id?: string;
1935
+ };
1936
+ } | {
1937
+ readonly code: "FAILED_PRECONDITION";
1938
+ readonly message: string;
1939
+ readonly hint?: string;
1940
+ readonly context?: {
1941
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1942
+ readonly reason?: string;
1943
+ readonly importState?: "cancelled" | "failed" | "running";
1944
+ readonly attribute?: string;
1945
+ readonly paths?: string[];
1946
+ readonly total?: number;
1947
+ readonly tip?: string;
1948
+ };
1949
+ } | {
1950
+ readonly code: "INTERNAL";
1951
+ readonly message: string;
1952
+ readonly hint?: string;
1953
+ readonly context?: {
1954
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1955
+ };
1956
+ } | {
1957
+ readonly code: "INVALID_ARGUMENT";
1958
+ readonly message: string;
1959
+ readonly hint?: string;
1960
+ readonly context?: {
1961
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1962
+ readonly reason?: string;
1963
+ readonly msgId?: string;
1964
+ readonly most?: number;
1965
+ readonly given?: number;
1966
+ };
1967
+ } | {
1968
+ readonly code: "NOT_ALLOWED";
1969
+ readonly message: string;
1970
+ readonly hint?: string;
1971
+ readonly context?: {
1972
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1973
+ readonly reason?: string;
1974
+ readonly entries?: string[];
1975
+ readonly paths?: string[];
1976
+ readonly total?: number;
1977
+ };
1978
+ } | {
1979
+ readonly code: "NOT_FOUND";
1980
+ readonly message: string;
1981
+ readonly hint?: string;
1982
+ readonly context?: {
1983
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1984
+ readonly reason?: string;
1985
+ readonly target?: string;
1986
+ };
1987
+ } | {
1988
+ readonly code: "RESOURCE_EXHAUSTED";
1989
+ readonly message: string;
1990
+ readonly hint?: string;
1991
+ readonly context?: {
1992
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1993
+ readonly reason?: string;
1994
+ readonly indexBytes?: number;
1995
+ readonly pushBytes?: number;
1996
+ readonly most?: number;
1997
+ };
1998
+ } | {
1999
+ readonly code: "UNAUTHENTICATED";
2000
+ readonly message: string;
2001
+ readonly hint?: string;
2002
+ readonly context?: {
2003
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2004
+ };
2005
+ } | {
2006
+ readonly code: "UNAVAILABLE";
2007
+ readonly message: string;
2008
+ readonly hint?: string;
2009
+ readonly context?: {
2010
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2011
+ readonly id?: string;
2012
+ readonly reason?: string;
2013
+ readonly packs?: number;
2014
+ readonly most?: number;
2015
+ };
2016
+ }, unknown, never, never>, import("effect/Schema").Codec<{
2017
+ readonly code: "ALREADY_EXISTS";
2018
+ readonly message: string;
2019
+ readonly hint?: string;
2020
+ readonly context?: {
2021
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2022
+ readonly reason?: string;
2023
+ readonly verdict?: "fail" | "pass";
2024
+ };
2025
+ } | {
2026
+ readonly code: "DATA_LOSS";
2027
+ readonly message: string;
2028
+ readonly hint?: string;
2029
+ readonly context?: {
2030
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2031
+ readonly reason?: string;
2032
+ };
2033
+ } | {
2034
+ readonly code: "DEADLINE_EXCEEDED";
2035
+ readonly message: string;
2036
+ readonly hint?: string;
2037
+ readonly context?: {
2038
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2039
+ readonly id?: string;
2040
+ };
2041
+ } | {
2042
+ readonly code: "FAILED_PRECONDITION";
2043
+ readonly message: string;
2044
+ readonly hint?: string;
2045
+ readonly context?: {
2046
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2047
+ readonly reason?: string;
2048
+ readonly importState?: "cancelled" | "failed" | "running";
2049
+ readonly attribute?: string;
2050
+ readonly paths?: string[];
2051
+ readonly total?: number;
2052
+ readonly tip?: string;
2053
+ };
2054
+ } | {
2055
+ readonly code: "INTERNAL";
2056
+ readonly message: string;
2057
+ readonly hint?: string;
2058
+ readonly context?: {
2059
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2060
+ };
2061
+ } | {
2062
+ readonly code: "INVALID_ARGUMENT";
2063
+ readonly message: string;
2064
+ readonly hint?: string;
2065
+ readonly context?: {
2066
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2067
+ readonly reason?: string;
2068
+ readonly msgId?: string;
2069
+ readonly most?: number;
2070
+ readonly given?: number;
2071
+ };
2072
+ } | {
2073
+ readonly code: "NOT_ALLOWED";
2074
+ readonly message: string;
2075
+ readonly hint?: string;
2076
+ readonly context?: {
2077
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2078
+ readonly reason?: string;
2079
+ readonly entries?: string[];
2080
+ readonly paths?: string[];
2081
+ readonly total?: number;
2082
+ };
2083
+ } | {
2084
+ readonly code: "NOT_FOUND";
2085
+ readonly message: string;
2086
+ readonly hint?: string;
2087
+ readonly context?: {
2088
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2089
+ readonly reason?: string;
2090
+ readonly target?: string;
2091
+ };
2092
+ } | {
2093
+ readonly code: "RESOURCE_EXHAUSTED";
2094
+ readonly message: string;
2095
+ readonly hint?: string;
2096
+ readonly context?: {
2097
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2098
+ readonly reason?: string;
2099
+ readonly indexBytes?: number;
2100
+ readonly pushBytes?: number;
2101
+ readonly most?: number;
2102
+ };
2103
+ } | {
2104
+ readonly code: "UNAUTHENTICATED";
2105
+ readonly message: string;
2106
+ readonly hint?: string;
2107
+ readonly context?: {
2108
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2109
+ };
2110
+ } | {
2111
+ readonly code: "UNAVAILABLE";
2112
+ readonly message: string;
2113
+ readonly hint?: string;
2114
+ readonly context?: {
2115
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2116
+ readonly id?: string;
2117
+ readonly reason?: string;
2118
+ readonly packs?: number;
2119
+ readonly most?: number;
2120
+ };
2121
+ }, unknown, never, never>, {
59
2122
  "ref0-code": import("effect/Schema").String;
60
2123
  }>];
61
2124
  clientError: never;
62
2125
  requiredForClient: false;
63
2126
  security: never;
64
- }, HttpApiMiddleware.HttpApiMiddleware<Caller<unknown>, readonly [import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, {
2127
+ }, HttpApiMiddleware.HttpApiMiddleware<Caller<unknown>, readonly [import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<{
2128
+ readonly code: "ALREADY_EXISTS";
2129
+ readonly message: string;
2130
+ readonly hint?: string;
2131
+ readonly context?: {
2132
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2133
+ readonly reason?: string;
2134
+ readonly verdict?: "fail" | "pass";
2135
+ };
2136
+ } | {
2137
+ readonly code: "DATA_LOSS";
2138
+ readonly message: string;
2139
+ readonly hint?: string;
2140
+ readonly context?: {
2141
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2142
+ readonly reason?: string;
2143
+ };
2144
+ } | {
2145
+ readonly code: "DEADLINE_EXCEEDED";
2146
+ readonly message: string;
2147
+ readonly hint?: string;
2148
+ readonly context?: {
2149
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2150
+ readonly id?: string;
2151
+ };
2152
+ } | {
2153
+ readonly code: "FAILED_PRECONDITION";
2154
+ readonly message: string;
2155
+ readonly hint?: string;
2156
+ readonly context?: {
2157
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2158
+ readonly reason?: string;
2159
+ readonly importState?: "cancelled" | "failed" | "running";
2160
+ readonly attribute?: string;
2161
+ readonly paths?: string[];
2162
+ readonly total?: number;
2163
+ readonly tip?: string;
2164
+ };
2165
+ } | {
2166
+ readonly code: "INTERNAL";
2167
+ readonly message: string;
2168
+ readonly hint?: string;
2169
+ readonly context?: {
2170
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2171
+ };
2172
+ } | {
2173
+ readonly code: "INVALID_ARGUMENT";
2174
+ readonly message: string;
2175
+ readonly hint?: string;
2176
+ readonly context?: {
2177
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2178
+ readonly reason?: string;
2179
+ readonly msgId?: string;
2180
+ readonly most?: number;
2181
+ readonly given?: number;
2182
+ };
2183
+ } | {
2184
+ readonly code: "NOT_ALLOWED";
2185
+ readonly message: string;
2186
+ readonly hint?: string;
2187
+ readonly context?: {
2188
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2189
+ readonly reason?: string;
2190
+ readonly entries?: string[];
2191
+ readonly paths?: string[];
2192
+ readonly total?: number;
2193
+ };
2194
+ } | {
2195
+ readonly code: "NOT_FOUND";
2196
+ readonly message: string;
2197
+ readonly hint?: string;
2198
+ readonly context?: {
2199
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2200
+ readonly reason?: string;
2201
+ readonly target?: string;
2202
+ };
2203
+ } | {
2204
+ readonly code: "RESOURCE_EXHAUSTED";
2205
+ readonly message: string;
2206
+ readonly hint?: string;
2207
+ readonly context?: {
2208
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2209
+ readonly reason?: string;
2210
+ readonly indexBytes?: number;
2211
+ readonly pushBytes?: number;
2212
+ readonly most?: number;
2213
+ };
2214
+ } | {
2215
+ readonly code: "UNAUTHENTICATED";
2216
+ readonly message: string;
2217
+ readonly hint?: string;
2218
+ readonly context?: {
2219
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2220
+ };
2221
+ } | {
2222
+ readonly code: "UNAVAILABLE";
2223
+ readonly message: string;
2224
+ readonly hint?: string;
2225
+ readonly context?: {
2226
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2227
+ readonly id?: string;
2228
+ readonly reason?: string;
2229
+ readonly packs?: number;
2230
+ readonly most?: number;
2231
+ };
2232
+ }, unknown, never, never>, import("effect/Schema").Codec<{
2233
+ readonly code: "ALREADY_EXISTS";
2234
+ readonly message: string;
2235
+ readonly hint?: string;
2236
+ readonly context?: {
2237
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2238
+ readonly reason?: string;
2239
+ readonly verdict?: "fail" | "pass";
2240
+ };
2241
+ } | {
2242
+ readonly code: "DATA_LOSS";
2243
+ readonly message: string;
2244
+ readonly hint?: string;
2245
+ readonly context?: {
2246
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2247
+ readonly reason?: string;
2248
+ };
2249
+ } | {
2250
+ readonly code: "DEADLINE_EXCEEDED";
2251
+ readonly message: string;
2252
+ readonly hint?: string;
2253
+ readonly context?: {
2254
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2255
+ readonly id?: string;
2256
+ };
2257
+ } | {
2258
+ readonly code: "FAILED_PRECONDITION";
2259
+ readonly message: string;
2260
+ readonly hint?: string;
2261
+ readonly context?: {
2262
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2263
+ readonly reason?: string;
2264
+ readonly importState?: "cancelled" | "failed" | "running";
2265
+ readonly attribute?: string;
2266
+ readonly paths?: string[];
2267
+ readonly total?: number;
2268
+ readonly tip?: string;
2269
+ };
2270
+ } | {
2271
+ readonly code: "INTERNAL";
2272
+ readonly message: string;
2273
+ readonly hint?: string;
2274
+ readonly context?: {
2275
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2276
+ };
2277
+ } | {
2278
+ readonly code: "INVALID_ARGUMENT";
2279
+ readonly message: string;
2280
+ readonly hint?: string;
2281
+ readonly context?: {
2282
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2283
+ readonly reason?: string;
2284
+ readonly msgId?: string;
2285
+ readonly most?: number;
2286
+ readonly given?: number;
2287
+ };
2288
+ } | {
2289
+ readonly code: "NOT_ALLOWED";
2290
+ readonly message: string;
2291
+ readonly hint?: string;
2292
+ readonly context?: {
2293
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2294
+ readonly reason?: string;
2295
+ readonly entries?: string[];
2296
+ readonly paths?: string[];
2297
+ readonly total?: number;
2298
+ };
2299
+ } | {
2300
+ readonly code: "NOT_FOUND";
2301
+ readonly message: string;
2302
+ readonly hint?: string;
2303
+ readonly context?: {
2304
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2305
+ readonly reason?: string;
2306
+ readonly target?: string;
2307
+ };
2308
+ } | {
2309
+ readonly code: "RESOURCE_EXHAUSTED";
2310
+ readonly message: string;
2311
+ readonly hint?: string;
2312
+ readonly context?: {
2313
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2314
+ readonly reason?: string;
2315
+ readonly indexBytes?: number;
2316
+ readonly pushBytes?: number;
2317
+ readonly most?: number;
2318
+ };
2319
+ } | {
2320
+ readonly code: "UNAUTHENTICATED";
2321
+ readonly message: string;
2322
+ readonly hint?: string;
2323
+ readonly context?: {
2324
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2325
+ };
2326
+ } | {
2327
+ readonly code: "UNAVAILABLE";
2328
+ readonly message: string;
2329
+ readonly hint?: string;
2330
+ readonly context?: {
2331
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2332
+ readonly id?: string;
2333
+ readonly reason?: string;
2334
+ readonly packs?: number;
2335
+ readonly most?: number;
2336
+ };
2337
+ }, unknown, never, never>, {
65
2338
  "ref0-code": import("effect/Schema").String;
66
2339
  }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Struct<{
67
- code: import("effect/Schema").Literal<"UNAUTHENTICATED">;
68
- message: import("effect/Schema").String;
69
- hint: import("effect/Schema").optionalKey<import("effect/Schema").String>;
70
- context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{}>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").String>, import("effect/Schema").Undefined]>>]>>;
2340
+ readonly code: import("effect/Schema").Literal<"ALREADY_EXISTS">;
2341
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
2342
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2343
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
2344
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["key-reused"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
2345
+ verdict: import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["pass", "fail"]>>;
2346
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
2347
+ }> | import("effect/Schema").Struct<{
2348
+ readonly code: import("effect/Schema").Literal<"DATA_LOSS">;
2349
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
2350
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2351
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
2352
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["graph-length", "merge-incomplete"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
2353
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
2354
+ }> | import("effect/Schema").Struct<{
2355
+ readonly code: import("effect/Schema").Literal<"DEADLINE_EXCEEDED">;
2356
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
2357
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2358
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
2359
+ id: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2360
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
2361
+ }> | import("effect/Schema").Struct<{
2362
+ readonly code: import("effect/Schema").Literal<"FAILED_PRECONDITION">;
2363
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
2364
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2365
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
2366
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["cursor-expired", "diverged", "merge-conflict", "candidate-superseded", "candidate-cancelled", "entry-gone", "ref-conflict", "newer-format", "changed-while-checked", "unsupported-attribute", "unrelated-histories", "unsupported-virtual-base", "own-repo", "not-a-fork", "no-copy-rows", "shallow-root", "shallow-upload", "sync-unbound", "import-cancelled", "importing", "history-not-imported", "stage-gone", "remote-refused", "atomic-partner", "merges-off"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
2367
+ importState: import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["running", "cancelled", "failed"]>>;
2368
+ attribute: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2369
+ paths: import("effect/Schema").optionalKey<import("effect/Schema").mutable<import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>>>;
2370
+ total: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
2371
+ tip: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2372
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
2373
+ }> | import("effect/Schema").Struct<{
2374
+ readonly code: import("effect/Schema").Literal<"INTERNAL">;
2375
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
2376
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2377
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{}>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
2378
+ }> | import("effect/Schema").Struct<{
2379
+ readonly code: import("effect/Schema").Literal<"INVALID_ARGUMENT">;
2380
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
2381
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2382
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
2383
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["ofs-delta", "fsck", "provider-unknown", "body-ended", "link-wrong-type", "tag-target-missing", "object-missing", "boundary-not-in-pack", "too-many-short-ids", "too-many-parents"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
2384
+ msgId: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2385
+ most: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
2386
+ given: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
2387
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
2388
+ }> | import("effect/Schema").Struct<{
2389
+ readonly code: import("effect/Schema").Literal<"NOT_ALLOWED">;
2390
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
2391
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2392
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
2393
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["files-refused", "entry-unpublishable"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
2394
+ entries: import("effect/Schema").optionalKey<import("effect/Schema").mutable<import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>>>;
2395
+ paths: import("effect/Schema").optionalKey<import("effect/Schema").mutable<import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>>>;
2396
+ total: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
2397
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
2398
+ }> | import("effect/Schema").Struct<{
2399
+ readonly code: import("effect/Schema").Literal<"NOT_FOUND">;
2400
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
2401
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2402
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
2403
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["no-queue", "no-topics", "ambiguous"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
2404
+ target: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2405
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
2406
+ }> | import("effect/Schema").Struct<{
2407
+ readonly code: import("effect/Schema").Literal<"RESOURCE_EXHAUSTED">;
2408
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
2409
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2410
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
2411
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
2412
+ indexBytes: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
2413
+ pushBytes: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
2414
+ most: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
2415
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
2416
+ }> | import("effect/Schema").Struct<{
2417
+ readonly code: import("effect/Schema").Literal<"UNAUTHENTICATED">;
2418
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
2419
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2420
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{}>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
2421
+ }> | import("effect/Schema").Struct<{
2422
+ readonly code: import("effect/Schema").Literal<"UNAVAILABLE">;
2423
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
2424
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2425
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
2426
+ id: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2427
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["busy", "packs-awaiting-repack", "awaiting-index", "may-have-saved", "too-many-writes"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
2428
+ packs: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
2429
+ most: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
2430
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
71
2431
  }>, import("effect/Schema").Struct<{
72
- code: import("effect/Schema").Literal<"UNAUTHENTICATED">;
73
- message: import("effect/Schema").String;
74
- hint: import("effect/Schema").optionalKey<import("effect/Schema").String>;
75
- context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{}>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").String, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").String>, import("effect/Schema").Undefined]>>]>>;
2432
+ readonly code: import("effect/Schema").Literal<"ALREADY_EXISTS">;
2433
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
2434
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2435
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
2436
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["key-reused"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
2437
+ verdict: import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["pass", "fail"]>>;
2438
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
2439
+ }> | import("effect/Schema").Struct<{
2440
+ readonly code: import("effect/Schema").Literal<"DATA_LOSS">;
2441
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
2442
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2443
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
2444
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["graph-length", "merge-incomplete"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
2445
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
2446
+ }> | import("effect/Schema").Struct<{
2447
+ readonly code: import("effect/Schema").Literal<"DEADLINE_EXCEEDED">;
2448
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
2449
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2450
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
2451
+ id: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2452
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
2453
+ }> | import("effect/Schema").Struct<{
2454
+ readonly code: import("effect/Schema").Literal<"FAILED_PRECONDITION">;
2455
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
2456
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2457
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
2458
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["cursor-expired", "diverged", "merge-conflict", "candidate-superseded", "candidate-cancelled", "entry-gone", "ref-conflict", "newer-format", "changed-while-checked", "unsupported-attribute", "unrelated-histories", "unsupported-virtual-base", "own-repo", "not-a-fork", "no-copy-rows", "shallow-root", "shallow-upload", "sync-unbound", "import-cancelled", "importing", "history-not-imported", "stage-gone", "remote-refused", "atomic-partner", "merges-off"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
2459
+ importState: import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["running", "cancelled", "failed"]>>;
2460
+ attribute: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2461
+ paths: import("effect/Schema").optionalKey<import("effect/Schema").mutable<import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>>>;
2462
+ total: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
2463
+ tip: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2464
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
2465
+ }> | import("effect/Schema").Struct<{
2466
+ readonly code: import("effect/Schema").Literal<"INTERNAL">;
2467
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
2468
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2469
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{}>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
2470
+ }> | import("effect/Schema").Struct<{
2471
+ readonly code: import("effect/Schema").Literal<"INVALID_ARGUMENT">;
2472
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
2473
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2474
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
2475
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["ofs-delta", "fsck", "provider-unknown", "body-ended", "link-wrong-type", "tag-target-missing", "object-missing", "boundary-not-in-pack", "too-many-short-ids", "too-many-parents"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
2476
+ msgId: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2477
+ most: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
2478
+ given: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
2479
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
2480
+ }> | import("effect/Schema").Struct<{
2481
+ readonly code: import("effect/Schema").Literal<"NOT_ALLOWED">;
2482
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
2483
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2484
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
2485
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["files-refused", "entry-unpublishable"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
2486
+ entries: import("effect/Schema").optionalKey<import("effect/Schema").mutable<import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>>>;
2487
+ paths: import("effect/Schema").optionalKey<import("effect/Schema").mutable<import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>>>;
2488
+ total: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
2489
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
2490
+ }> | import("effect/Schema").Struct<{
2491
+ readonly code: import("effect/Schema").Literal<"NOT_FOUND">;
2492
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
2493
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2494
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
2495
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["no-queue", "no-topics", "ambiguous"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
2496
+ target: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2497
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
2498
+ }> | import("effect/Schema").Struct<{
2499
+ readonly code: import("effect/Schema").Literal<"RESOURCE_EXHAUSTED">;
2500
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
2501
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2502
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
2503
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
2504
+ indexBytes: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
2505
+ pushBytes: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
2506
+ most: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
2507
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
2508
+ }> | import("effect/Schema").Struct<{
2509
+ readonly code: import("effect/Schema").Literal<"UNAUTHENTICATED">;
2510
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
2511
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2512
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{}>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
2513
+ }> | import("effect/Schema").Struct<{
2514
+ readonly code: import("effect/Schema").Literal<"UNAVAILABLE">;
2515
+ readonly message: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
2516
+ readonly hint: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2517
+ readonly context: import("effect/Schema").optionalKey<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
2518
+ id: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>;
2519
+ reason: import("effect/Schema").optionalKey<import("effect/Schema").Union<readonly [import("effect/Schema").Literals<readonly ["busy", "packs-awaiting-repack", "awaiting-index", "may-have-saved", "too-many-writes"]>, import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>]>>;
2520
+ packs: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
2521
+ most: import("effect/Schema").optionalKey<import("effect/Schema").Number>;
2522
+ }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>, import("effect/Schema").Number, import("effect/Schema").Boolean, import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>>, import("effect/Schema").Undefined]>>]>>;
76
2523
  }>, {
77
2524
  "ref0-code": import("effect/Schema").String;
78
2525
  'www-authenticate': import("effect/Schema").String;
79
- }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, {
2526
+ }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<{
2527
+ readonly code: "ALREADY_EXISTS";
2528
+ readonly message: string;
2529
+ readonly hint?: string;
2530
+ readonly context?: {
2531
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2532
+ readonly reason?: string;
2533
+ readonly verdict?: "fail" | "pass";
2534
+ };
2535
+ } | {
2536
+ readonly code: "DATA_LOSS";
2537
+ readonly message: string;
2538
+ readonly hint?: string;
2539
+ readonly context?: {
2540
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2541
+ readonly reason?: string;
2542
+ };
2543
+ } | {
2544
+ readonly code: "DEADLINE_EXCEEDED";
2545
+ readonly message: string;
2546
+ readonly hint?: string;
2547
+ readonly context?: {
2548
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2549
+ readonly id?: string;
2550
+ };
2551
+ } | {
2552
+ readonly code: "FAILED_PRECONDITION";
2553
+ readonly message: string;
2554
+ readonly hint?: string;
2555
+ readonly context?: {
2556
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2557
+ readonly reason?: string;
2558
+ readonly importState?: "cancelled" | "failed" | "running";
2559
+ readonly attribute?: string;
2560
+ readonly paths?: string[];
2561
+ readonly total?: number;
2562
+ readonly tip?: string;
2563
+ };
2564
+ } | {
2565
+ readonly code: "INTERNAL";
2566
+ readonly message: string;
2567
+ readonly hint?: string;
2568
+ readonly context?: {
2569
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2570
+ };
2571
+ } | {
2572
+ readonly code: "INVALID_ARGUMENT";
2573
+ readonly message: string;
2574
+ readonly hint?: string;
2575
+ readonly context?: {
2576
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2577
+ readonly reason?: string;
2578
+ readonly msgId?: string;
2579
+ readonly most?: number;
2580
+ readonly given?: number;
2581
+ };
2582
+ } | {
2583
+ readonly code: "NOT_ALLOWED";
2584
+ readonly message: string;
2585
+ readonly hint?: string;
2586
+ readonly context?: {
2587
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2588
+ readonly reason?: string;
2589
+ readonly entries?: string[];
2590
+ readonly paths?: string[];
2591
+ readonly total?: number;
2592
+ };
2593
+ } | {
2594
+ readonly code: "NOT_FOUND";
2595
+ readonly message: string;
2596
+ readonly hint?: string;
2597
+ readonly context?: {
2598
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2599
+ readonly reason?: string;
2600
+ readonly target?: string;
2601
+ };
2602
+ } | {
2603
+ readonly code: "RESOURCE_EXHAUSTED";
2604
+ readonly message: string;
2605
+ readonly hint?: string;
2606
+ readonly context?: {
2607
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2608
+ readonly reason?: string;
2609
+ readonly indexBytes?: number;
2610
+ readonly pushBytes?: number;
2611
+ readonly most?: number;
2612
+ };
2613
+ } | {
2614
+ readonly code: "UNAUTHENTICATED";
2615
+ readonly message: string;
2616
+ readonly hint?: string;
2617
+ readonly context?: {
2618
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2619
+ };
2620
+ } | {
2621
+ readonly code: "UNAVAILABLE";
2622
+ readonly message: string;
2623
+ readonly hint?: string;
2624
+ readonly context?: {
2625
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2626
+ readonly id?: string;
2627
+ readonly reason?: string;
2628
+ readonly packs?: number;
2629
+ readonly most?: number;
2630
+ };
2631
+ }, unknown, never, never>, import("effect/Schema").Codec<{
2632
+ readonly code: "ALREADY_EXISTS";
2633
+ readonly message: string;
2634
+ readonly hint?: string;
2635
+ readonly context?: {
2636
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2637
+ readonly reason?: string;
2638
+ readonly verdict?: "fail" | "pass";
2639
+ };
2640
+ } | {
2641
+ readonly code: "DATA_LOSS";
2642
+ readonly message: string;
2643
+ readonly hint?: string;
2644
+ readonly context?: {
2645
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2646
+ readonly reason?: string;
2647
+ };
2648
+ } | {
2649
+ readonly code: "DEADLINE_EXCEEDED";
2650
+ readonly message: string;
2651
+ readonly hint?: string;
2652
+ readonly context?: {
2653
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2654
+ readonly id?: string;
2655
+ };
2656
+ } | {
2657
+ readonly code: "FAILED_PRECONDITION";
2658
+ readonly message: string;
2659
+ readonly hint?: string;
2660
+ readonly context?: {
2661
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2662
+ readonly reason?: string;
2663
+ readonly importState?: "cancelled" | "failed" | "running";
2664
+ readonly attribute?: string;
2665
+ readonly paths?: string[];
2666
+ readonly total?: number;
2667
+ readonly tip?: string;
2668
+ };
2669
+ } | {
2670
+ readonly code: "INTERNAL";
2671
+ readonly message: string;
2672
+ readonly hint?: string;
2673
+ readonly context?: {
2674
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2675
+ };
2676
+ } | {
2677
+ readonly code: "INVALID_ARGUMENT";
2678
+ readonly message: string;
2679
+ readonly hint?: string;
2680
+ readonly context?: {
2681
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2682
+ readonly reason?: string;
2683
+ readonly msgId?: string;
2684
+ readonly most?: number;
2685
+ readonly given?: number;
2686
+ };
2687
+ } | {
2688
+ readonly code: "NOT_ALLOWED";
2689
+ readonly message: string;
2690
+ readonly hint?: string;
2691
+ readonly context?: {
2692
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2693
+ readonly reason?: string;
2694
+ readonly entries?: string[];
2695
+ readonly paths?: string[];
2696
+ readonly total?: number;
2697
+ };
2698
+ } | {
2699
+ readonly code: "NOT_FOUND";
2700
+ readonly message: string;
2701
+ readonly hint?: string;
2702
+ readonly context?: {
2703
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2704
+ readonly reason?: string;
2705
+ readonly target?: string;
2706
+ };
2707
+ } | {
2708
+ readonly code: "RESOURCE_EXHAUSTED";
2709
+ readonly message: string;
2710
+ readonly hint?: string;
2711
+ readonly context?: {
2712
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2713
+ readonly reason?: string;
2714
+ readonly indexBytes?: number;
2715
+ readonly pushBytes?: number;
2716
+ readonly most?: number;
2717
+ };
2718
+ } | {
2719
+ readonly code: "UNAUTHENTICATED";
2720
+ readonly message: string;
2721
+ readonly hint?: string;
2722
+ readonly context?: {
2723
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2724
+ };
2725
+ } | {
2726
+ readonly code: "UNAVAILABLE";
2727
+ readonly message: string;
2728
+ readonly hint?: string;
2729
+ readonly context?: {
2730
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2731
+ readonly id?: string;
2732
+ readonly reason?: string;
2733
+ readonly packs?: number;
2734
+ readonly most?: number;
2735
+ };
2736
+ }, unknown, never, never>, {
80
2737
  "ref0-code": import("effect/Schema").String;
81
- }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, {
2738
+ }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<{
2739
+ readonly code: "ALREADY_EXISTS";
2740
+ readonly message: string;
2741
+ readonly hint?: string;
2742
+ readonly context?: {
2743
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2744
+ readonly reason?: string;
2745
+ readonly verdict?: "fail" | "pass";
2746
+ };
2747
+ } | {
2748
+ readonly code: "DATA_LOSS";
2749
+ readonly message: string;
2750
+ readonly hint?: string;
2751
+ readonly context?: {
2752
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2753
+ readonly reason?: string;
2754
+ };
2755
+ } | {
2756
+ readonly code: "DEADLINE_EXCEEDED";
2757
+ readonly message: string;
2758
+ readonly hint?: string;
2759
+ readonly context?: {
2760
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2761
+ readonly id?: string;
2762
+ };
2763
+ } | {
2764
+ readonly code: "FAILED_PRECONDITION";
2765
+ readonly message: string;
2766
+ readonly hint?: string;
2767
+ readonly context?: {
2768
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2769
+ readonly reason?: string;
2770
+ readonly importState?: "cancelled" | "failed" | "running";
2771
+ readonly attribute?: string;
2772
+ readonly paths?: string[];
2773
+ readonly total?: number;
2774
+ readonly tip?: string;
2775
+ };
2776
+ } | {
2777
+ readonly code: "INTERNAL";
2778
+ readonly message: string;
2779
+ readonly hint?: string;
2780
+ readonly context?: {
2781
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2782
+ };
2783
+ } | {
2784
+ readonly code: "INVALID_ARGUMENT";
2785
+ readonly message: string;
2786
+ readonly hint?: string;
2787
+ readonly context?: {
2788
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2789
+ readonly reason?: string;
2790
+ readonly msgId?: string;
2791
+ readonly most?: number;
2792
+ readonly given?: number;
2793
+ };
2794
+ } | {
2795
+ readonly code: "NOT_ALLOWED";
2796
+ readonly message: string;
2797
+ readonly hint?: string;
2798
+ readonly context?: {
2799
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2800
+ readonly reason?: string;
2801
+ readonly entries?: string[];
2802
+ readonly paths?: string[];
2803
+ readonly total?: number;
2804
+ };
2805
+ } | {
2806
+ readonly code: "NOT_FOUND";
2807
+ readonly message: string;
2808
+ readonly hint?: string;
2809
+ readonly context?: {
2810
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2811
+ readonly reason?: string;
2812
+ readonly target?: string;
2813
+ };
2814
+ } | {
2815
+ readonly code: "RESOURCE_EXHAUSTED";
2816
+ readonly message: string;
2817
+ readonly hint?: string;
2818
+ readonly context?: {
2819
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2820
+ readonly reason?: string;
2821
+ readonly indexBytes?: number;
2822
+ readonly pushBytes?: number;
2823
+ readonly most?: number;
2824
+ };
2825
+ } | {
2826
+ readonly code: "UNAUTHENTICATED";
2827
+ readonly message: string;
2828
+ readonly hint?: string;
2829
+ readonly context?: {
2830
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2831
+ };
2832
+ } | {
2833
+ readonly code: "UNAVAILABLE";
2834
+ readonly message: string;
2835
+ readonly hint?: string;
2836
+ readonly context?: {
2837
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2838
+ readonly id?: string;
2839
+ readonly reason?: string;
2840
+ readonly packs?: number;
2841
+ readonly most?: number;
2842
+ };
2843
+ }, unknown, never, never>, import("effect/Schema").Codec<{
2844
+ readonly code: "ALREADY_EXISTS";
2845
+ readonly message: string;
2846
+ readonly hint?: string;
2847
+ readonly context?: {
2848
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2849
+ readonly reason?: string;
2850
+ readonly verdict?: "fail" | "pass";
2851
+ };
2852
+ } | {
2853
+ readonly code: "DATA_LOSS";
2854
+ readonly message: string;
2855
+ readonly hint?: string;
2856
+ readonly context?: {
2857
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2858
+ readonly reason?: string;
2859
+ };
2860
+ } | {
2861
+ readonly code: "DEADLINE_EXCEEDED";
2862
+ readonly message: string;
2863
+ readonly hint?: string;
2864
+ readonly context?: {
2865
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2866
+ readonly id?: string;
2867
+ };
2868
+ } | {
2869
+ readonly code: "FAILED_PRECONDITION";
2870
+ readonly message: string;
2871
+ readonly hint?: string;
2872
+ readonly context?: {
2873
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2874
+ readonly reason?: string;
2875
+ readonly importState?: "cancelled" | "failed" | "running";
2876
+ readonly attribute?: string;
2877
+ readonly paths?: string[];
2878
+ readonly total?: number;
2879
+ readonly tip?: string;
2880
+ };
2881
+ } | {
2882
+ readonly code: "INTERNAL";
2883
+ readonly message: string;
2884
+ readonly hint?: string;
2885
+ readonly context?: {
2886
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2887
+ };
2888
+ } | {
2889
+ readonly code: "INVALID_ARGUMENT";
2890
+ readonly message: string;
2891
+ readonly hint?: string;
2892
+ readonly context?: {
2893
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2894
+ readonly reason?: string;
2895
+ readonly msgId?: string;
2896
+ readonly most?: number;
2897
+ readonly given?: number;
2898
+ };
2899
+ } | {
2900
+ readonly code: "NOT_ALLOWED";
2901
+ readonly message: string;
2902
+ readonly hint?: string;
2903
+ readonly context?: {
2904
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2905
+ readonly reason?: string;
2906
+ readonly entries?: string[];
2907
+ readonly paths?: string[];
2908
+ readonly total?: number;
2909
+ };
2910
+ } | {
2911
+ readonly code: "NOT_FOUND";
2912
+ readonly message: string;
2913
+ readonly hint?: string;
2914
+ readonly context?: {
2915
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2916
+ readonly reason?: string;
2917
+ readonly target?: string;
2918
+ };
2919
+ } | {
2920
+ readonly code: "RESOURCE_EXHAUSTED";
2921
+ readonly message: string;
2922
+ readonly hint?: string;
2923
+ readonly context?: {
2924
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2925
+ readonly reason?: string;
2926
+ readonly indexBytes?: number;
2927
+ readonly pushBytes?: number;
2928
+ readonly most?: number;
2929
+ };
2930
+ } | {
2931
+ readonly code: "UNAUTHENTICATED";
2932
+ readonly message: string;
2933
+ readonly hint?: string;
2934
+ readonly context?: {
2935
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2936
+ };
2937
+ } | {
2938
+ readonly code: "UNAVAILABLE";
2939
+ readonly message: string;
2940
+ readonly hint?: string;
2941
+ readonly context?: {
2942
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2943
+ readonly id?: string;
2944
+ readonly reason?: string;
2945
+ readonly packs?: number;
2946
+ readonly most?: number;
2947
+ };
2948
+ }, unknown, never, never>, {
82
2949
  "ref0-code": import("effect/Schema").String;
83
- }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, {
2950
+ }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<{
2951
+ readonly code: "ALREADY_EXISTS";
2952
+ readonly message: string;
2953
+ readonly hint?: string;
2954
+ readonly context?: {
2955
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2956
+ readonly reason?: string;
2957
+ readonly verdict?: "fail" | "pass";
2958
+ };
2959
+ } | {
2960
+ readonly code: "DATA_LOSS";
2961
+ readonly message: string;
2962
+ readonly hint?: string;
2963
+ readonly context?: {
2964
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2965
+ readonly reason?: string;
2966
+ };
2967
+ } | {
2968
+ readonly code: "DEADLINE_EXCEEDED";
2969
+ readonly message: string;
2970
+ readonly hint?: string;
2971
+ readonly context?: {
2972
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2973
+ readonly id?: string;
2974
+ };
2975
+ } | {
2976
+ readonly code: "FAILED_PRECONDITION";
2977
+ readonly message: string;
2978
+ readonly hint?: string;
2979
+ readonly context?: {
2980
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2981
+ readonly reason?: string;
2982
+ readonly importState?: "cancelled" | "failed" | "running";
2983
+ readonly attribute?: string;
2984
+ readonly paths?: string[];
2985
+ readonly total?: number;
2986
+ readonly tip?: string;
2987
+ };
2988
+ } | {
2989
+ readonly code: "INTERNAL";
2990
+ readonly message: string;
2991
+ readonly hint?: string;
2992
+ readonly context?: {
2993
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2994
+ };
2995
+ } | {
2996
+ readonly code: "INVALID_ARGUMENT";
2997
+ readonly message: string;
2998
+ readonly hint?: string;
2999
+ readonly context?: {
3000
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3001
+ readonly reason?: string;
3002
+ readonly msgId?: string;
3003
+ readonly most?: number;
3004
+ readonly given?: number;
3005
+ };
3006
+ } | {
3007
+ readonly code: "NOT_ALLOWED";
3008
+ readonly message: string;
3009
+ readonly hint?: string;
3010
+ readonly context?: {
3011
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3012
+ readonly reason?: string;
3013
+ readonly entries?: string[];
3014
+ readonly paths?: string[];
3015
+ readonly total?: number;
3016
+ };
3017
+ } | {
3018
+ readonly code: "NOT_FOUND";
3019
+ readonly message: string;
3020
+ readonly hint?: string;
3021
+ readonly context?: {
3022
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3023
+ readonly reason?: string;
3024
+ readonly target?: string;
3025
+ };
3026
+ } | {
3027
+ readonly code: "RESOURCE_EXHAUSTED";
3028
+ readonly message: string;
3029
+ readonly hint?: string;
3030
+ readonly context?: {
3031
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3032
+ readonly reason?: string;
3033
+ readonly indexBytes?: number;
3034
+ readonly pushBytes?: number;
3035
+ readonly most?: number;
3036
+ };
3037
+ } | {
3038
+ readonly code: "UNAUTHENTICATED";
3039
+ readonly message: string;
3040
+ readonly hint?: string;
3041
+ readonly context?: {
3042
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3043
+ };
3044
+ } | {
3045
+ readonly code: "UNAVAILABLE";
3046
+ readonly message: string;
3047
+ readonly hint?: string;
3048
+ readonly context?: {
3049
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3050
+ readonly id?: string;
3051
+ readonly reason?: string;
3052
+ readonly packs?: number;
3053
+ readonly most?: number;
3054
+ };
3055
+ }, unknown, never, never>, import("effect/Schema").Codec<{
3056
+ readonly code: "ALREADY_EXISTS";
3057
+ readonly message: string;
3058
+ readonly hint?: string;
3059
+ readonly context?: {
3060
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3061
+ readonly reason?: string;
3062
+ readonly verdict?: "fail" | "pass";
3063
+ };
3064
+ } | {
3065
+ readonly code: "DATA_LOSS";
3066
+ readonly message: string;
3067
+ readonly hint?: string;
3068
+ readonly context?: {
3069
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3070
+ readonly reason?: string;
3071
+ };
3072
+ } | {
3073
+ readonly code: "DEADLINE_EXCEEDED";
3074
+ readonly message: string;
3075
+ readonly hint?: string;
3076
+ readonly context?: {
3077
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3078
+ readonly id?: string;
3079
+ };
3080
+ } | {
3081
+ readonly code: "FAILED_PRECONDITION";
3082
+ readonly message: string;
3083
+ readonly hint?: string;
3084
+ readonly context?: {
3085
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3086
+ readonly reason?: string;
3087
+ readonly importState?: "cancelled" | "failed" | "running";
3088
+ readonly attribute?: string;
3089
+ readonly paths?: string[];
3090
+ readonly total?: number;
3091
+ readonly tip?: string;
3092
+ };
3093
+ } | {
3094
+ readonly code: "INTERNAL";
3095
+ readonly message: string;
3096
+ readonly hint?: string;
3097
+ readonly context?: {
3098
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3099
+ };
3100
+ } | {
3101
+ readonly code: "INVALID_ARGUMENT";
3102
+ readonly message: string;
3103
+ readonly hint?: string;
3104
+ readonly context?: {
3105
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3106
+ readonly reason?: string;
3107
+ readonly msgId?: string;
3108
+ readonly most?: number;
3109
+ readonly given?: number;
3110
+ };
3111
+ } | {
3112
+ readonly code: "NOT_ALLOWED";
3113
+ readonly message: string;
3114
+ readonly hint?: string;
3115
+ readonly context?: {
3116
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3117
+ readonly reason?: string;
3118
+ readonly entries?: string[];
3119
+ readonly paths?: string[];
3120
+ readonly total?: number;
3121
+ };
3122
+ } | {
3123
+ readonly code: "NOT_FOUND";
3124
+ readonly message: string;
3125
+ readonly hint?: string;
3126
+ readonly context?: {
3127
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3128
+ readonly reason?: string;
3129
+ readonly target?: string;
3130
+ };
3131
+ } | {
3132
+ readonly code: "RESOURCE_EXHAUSTED";
3133
+ readonly message: string;
3134
+ readonly hint?: string;
3135
+ readonly context?: {
3136
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3137
+ readonly reason?: string;
3138
+ readonly indexBytes?: number;
3139
+ readonly pushBytes?: number;
3140
+ readonly most?: number;
3141
+ };
3142
+ } | {
3143
+ readonly code: "UNAUTHENTICATED";
3144
+ readonly message: string;
3145
+ readonly hint?: string;
3146
+ readonly context?: {
3147
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3148
+ };
3149
+ } | {
3150
+ readonly code: "UNAVAILABLE";
3151
+ readonly message: string;
3152
+ readonly hint?: string;
3153
+ readonly context?: {
3154
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3155
+ readonly id?: string;
3156
+ readonly reason?: string;
3157
+ readonly packs?: number;
3158
+ readonly most?: number;
3159
+ };
3160
+ }, unknown, never, never>, {
84
3161
  "ref0-code": import("effect/Schema").String;
85
- }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, {
3162
+ }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<{
3163
+ readonly code: "ALREADY_EXISTS";
3164
+ readonly message: string;
3165
+ readonly hint?: string;
3166
+ readonly context?: {
3167
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3168
+ readonly reason?: string;
3169
+ readonly verdict?: "fail" | "pass";
3170
+ };
3171
+ } | {
3172
+ readonly code: "DATA_LOSS";
3173
+ readonly message: string;
3174
+ readonly hint?: string;
3175
+ readonly context?: {
3176
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3177
+ readonly reason?: string;
3178
+ };
3179
+ } | {
3180
+ readonly code: "DEADLINE_EXCEEDED";
3181
+ readonly message: string;
3182
+ readonly hint?: string;
3183
+ readonly context?: {
3184
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3185
+ readonly id?: string;
3186
+ };
3187
+ } | {
3188
+ readonly code: "FAILED_PRECONDITION";
3189
+ readonly message: string;
3190
+ readonly hint?: string;
3191
+ readonly context?: {
3192
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3193
+ readonly reason?: string;
3194
+ readonly importState?: "cancelled" | "failed" | "running";
3195
+ readonly attribute?: string;
3196
+ readonly paths?: string[];
3197
+ readonly total?: number;
3198
+ readonly tip?: string;
3199
+ };
3200
+ } | {
3201
+ readonly code: "INTERNAL";
3202
+ readonly message: string;
3203
+ readonly hint?: string;
3204
+ readonly context?: {
3205
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3206
+ };
3207
+ } | {
3208
+ readonly code: "INVALID_ARGUMENT";
3209
+ readonly message: string;
3210
+ readonly hint?: string;
3211
+ readonly context?: {
3212
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3213
+ readonly reason?: string;
3214
+ readonly msgId?: string;
3215
+ readonly most?: number;
3216
+ readonly given?: number;
3217
+ };
3218
+ } | {
3219
+ readonly code: "NOT_ALLOWED";
3220
+ readonly message: string;
3221
+ readonly hint?: string;
3222
+ readonly context?: {
3223
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3224
+ readonly reason?: string;
3225
+ readonly entries?: string[];
3226
+ readonly paths?: string[];
3227
+ readonly total?: number;
3228
+ };
3229
+ } | {
3230
+ readonly code: "NOT_FOUND";
3231
+ readonly message: string;
3232
+ readonly hint?: string;
3233
+ readonly context?: {
3234
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3235
+ readonly reason?: string;
3236
+ readonly target?: string;
3237
+ };
3238
+ } | {
3239
+ readonly code: "RESOURCE_EXHAUSTED";
3240
+ readonly message: string;
3241
+ readonly hint?: string;
3242
+ readonly context?: {
3243
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3244
+ readonly reason?: string;
3245
+ readonly indexBytes?: number;
3246
+ readonly pushBytes?: number;
3247
+ readonly most?: number;
3248
+ };
3249
+ } | {
3250
+ readonly code: "UNAUTHENTICATED";
3251
+ readonly message: string;
3252
+ readonly hint?: string;
3253
+ readonly context?: {
3254
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3255
+ };
3256
+ } | {
3257
+ readonly code: "UNAVAILABLE";
3258
+ readonly message: string;
3259
+ readonly hint?: string;
3260
+ readonly context?: {
3261
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3262
+ readonly id?: string;
3263
+ readonly reason?: string;
3264
+ readonly packs?: number;
3265
+ readonly most?: number;
3266
+ };
3267
+ }, unknown, never, never>, import("effect/Schema").Codec<{
3268
+ readonly code: "ALREADY_EXISTS";
3269
+ readonly message: string;
3270
+ readonly hint?: string;
3271
+ readonly context?: {
3272
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3273
+ readonly reason?: string;
3274
+ readonly verdict?: "fail" | "pass";
3275
+ };
3276
+ } | {
3277
+ readonly code: "DATA_LOSS";
3278
+ readonly message: string;
3279
+ readonly hint?: string;
3280
+ readonly context?: {
3281
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3282
+ readonly reason?: string;
3283
+ };
3284
+ } | {
3285
+ readonly code: "DEADLINE_EXCEEDED";
3286
+ readonly message: string;
3287
+ readonly hint?: string;
3288
+ readonly context?: {
3289
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3290
+ readonly id?: string;
3291
+ };
3292
+ } | {
3293
+ readonly code: "FAILED_PRECONDITION";
3294
+ readonly message: string;
3295
+ readonly hint?: string;
3296
+ readonly context?: {
3297
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3298
+ readonly reason?: string;
3299
+ readonly importState?: "cancelled" | "failed" | "running";
3300
+ readonly attribute?: string;
3301
+ readonly paths?: string[];
3302
+ readonly total?: number;
3303
+ readonly tip?: string;
3304
+ };
3305
+ } | {
3306
+ readonly code: "INTERNAL";
3307
+ readonly message: string;
3308
+ readonly hint?: string;
3309
+ readonly context?: {
3310
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3311
+ };
3312
+ } | {
3313
+ readonly code: "INVALID_ARGUMENT";
3314
+ readonly message: string;
3315
+ readonly hint?: string;
3316
+ readonly context?: {
3317
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3318
+ readonly reason?: string;
3319
+ readonly msgId?: string;
3320
+ readonly most?: number;
3321
+ readonly given?: number;
3322
+ };
3323
+ } | {
3324
+ readonly code: "NOT_ALLOWED";
3325
+ readonly message: string;
3326
+ readonly hint?: string;
3327
+ readonly context?: {
3328
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3329
+ readonly reason?: string;
3330
+ readonly entries?: string[];
3331
+ readonly paths?: string[];
3332
+ readonly total?: number;
3333
+ };
3334
+ } | {
3335
+ readonly code: "NOT_FOUND";
3336
+ readonly message: string;
3337
+ readonly hint?: string;
3338
+ readonly context?: {
3339
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3340
+ readonly reason?: string;
3341
+ readonly target?: string;
3342
+ };
3343
+ } | {
3344
+ readonly code: "RESOURCE_EXHAUSTED";
3345
+ readonly message: string;
3346
+ readonly hint?: string;
3347
+ readonly context?: {
3348
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3349
+ readonly reason?: string;
3350
+ readonly indexBytes?: number;
3351
+ readonly pushBytes?: number;
3352
+ readonly most?: number;
3353
+ };
3354
+ } | {
3355
+ readonly code: "UNAUTHENTICATED";
3356
+ readonly message: string;
3357
+ readonly hint?: string;
3358
+ readonly context?: {
3359
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3360
+ };
3361
+ } | {
3362
+ readonly code: "UNAVAILABLE";
3363
+ readonly message: string;
3364
+ readonly hint?: string;
3365
+ readonly context?: {
3366
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3367
+ readonly id?: string;
3368
+ readonly reason?: string;
3369
+ readonly packs?: number;
3370
+ readonly most?: number;
3371
+ };
3372
+ }, unknown, never, never>, {
86
3373
  "ref0-code": import("effect/Schema").String;
87
- }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, {
3374
+ }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<{
3375
+ readonly code: "ALREADY_EXISTS";
3376
+ readonly message: string;
3377
+ readonly hint?: string;
3378
+ readonly context?: {
3379
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3380
+ readonly reason?: string;
3381
+ readonly verdict?: "fail" | "pass";
3382
+ };
3383
+ } | {
3384
+ readonly code: "DATA_LOSS";
3385
+ readonly message: string;
3386
+ readonly hint?: string;
3387
+ readonly context?: {
3388
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3389
+ readonly reason?: string;
3390
+ };
3391
+ } | {
3392
+ readonly code: "DEADLINE_EXCEEDED";
3393
+ readonly message: string;
3394
+ readonly hint?: string;
3395
+ readonly context?: {
3396
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3397
+ readonly id?: string;
3398
+ };
3399
+ } | {
3400
+ readonly code: "FAILED_PRECONDITION";
3401
+ readonly message: string;
3402
+ readonly hint?: string;
3403
+ readonly context?: {
3404
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3405
+ readonly reason?: string;
3406
+ readonly importState?: "cancelled" | "failed" | "running";
3407
+ readonly attribute?: string;
3408
+ readonly paths?: string[];
3409
+ readonly total?: number;
3410
+ readonly tip?: string;
3411
+ };
3412
+ } | {
3413
+ readonly code: "INTERNAL";
3414
+ readonly message: string;
3415
+ readonly hint?: string;
3416
+ readonly context?: {
3417
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3418
+ };
3419
+ } | {
3420
+ readonly code: "INVALID_ARGUMENT";
3421
+ readonly message: string;
3422
+ readonly hint?: string;
3423
+ readonly context?: {
3424
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3425
+ readonly reason?: string;
3426
+ readonly msgId?: string;
3427
+ readonly most?: number;
3428
+ readonly given?: number;
3429
+ };
3430
+ } | {
3431
+ readonly code: "NOT_ALLOWED";
3432
+ readonly message: string;
3433
+ readonly hint?: string;
3434
+ readonly context?: {
3435
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3436
+ readonly reason?: string;
3437
+ readonly entries?: string[];
3438
+ readonly paths?: string[];
3439
+ readonly total?: number;
3440
+ };
3441
+ } | {
3442
+ readonly code: "NOT_FOUND";
3443
+ readonly message: string;
3444
+ readonly hint?: string;
3445
+ readonly context?: {
3446
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3447
+ readonly reason?: string;
3448
+ readonly target?: string;
3449
+ };
3450
+ } | {
3451
+ readonly code: "RESOURCE_EXHAUSTED";
3452
+ readonly message: string;
3453
+ readonly hint?: string;
3454
+ readonly context?: {
3455
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3456
+ readonly reason?: string;
3457
+ readonly indexBytes?: number;
3458
+ readonly pushBytes?: number;
3459
+ readonly most?: number;
3460
+ };
3461
+ } | {
3462
+ readonly code: "UNAUTHENTICATED";
3463
+ readonly message: string;
3464
+ readonly hint?: string;
3465
+ readonly context?: {
3466
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3467
+ };
3468
+ } | {
3469
+ readonly code: "UNAVAILABLE";
3470
+ readonly message: string;
3471
+ readonly hint?: string;
3472
+ readonly context?: {
3473
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3474
+ readonly id?: string;
3475
+ readonly reason?: string;
3476
+ readonly packs?: number;
3477
+ readonly most?: number;
3478
+ };
3479
+ }, unknown, never, never>, import("effect/Schema").Codec<{
3480
+ readonly code: "ALREADY_EXISTS";
3481
+ readonly message: string;
3482
+ readonly hint?: string;
3483
+ readonly context?: {
3484
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3485
+ readonly reason?: string;
3486
+ readonly verdict?: "fail" | "pass";
3487
+ };
3488
+ } | {
3489
+ readonly code: "DATA_LOSS";
3490
+ readonly message: string;
3491
+ readonly hint?: string;
3492
+ readonly context?: {
3493
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3494
+ readonly reason?: string;
3495
+ };
3496
+ } | {
3497
+ readonly code: "DEADLINE_EXCEEDED";
3498
+ readonly message: string;
3499
+ readonly hint?: string;
3500
+ readonly context?: {
3501
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3502
+ readonly id?: string;
3503
+ };
3504
+ } | {
3505
+ readonly code: "FAILED_PRECONDITION";
3506
+ readonly message: string;
3507
+ readonly hint?: string;
3508
+ readonly context?: {
3509
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3510
+ readonly reason?: string;
3511
+ readonly importState?: "cancelled" | "failed" | "running";
3512
+ readonly attribute?: string;
3513
+ readonly paths?: string[];
3514
+ readonly total?: number;
3515
+ readonly tip?: string;
3516
+ };
3517
+ } | {
3518
+ readonly code: "INTERNAL";
3519
+ readonly message: string;
3520
+ readonly hint?: string;
3521
+ readonly context?: {
3522
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3523
+ };
3524
+ } | {
3525
+ readonly code: "INVALID_ARGUMENT";
3526
+ readonly message: string;
3527
+ readonly hint?: string;
3528
+ readonly context?: {
3529
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3530
+ readonly reason?: string;
3531
+ readonly msgId?: string;
3532
+ readonly most?: number;
3533
+ readonly given?: number;
3534
+ };
3535
+ } | {
3536
+ readonly code: "NOT_ALLOWED";
3537
+ readonly message: string;
3538
+ readonly hint?: string;
3539
+ readonly context?: {
3540
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3541
+ readonly reason?: string;
3542
+ readonly entries?: string[];
3543
+ readonly paths?: string[];
3544
+ readonly total?: number;
3545
+ };
3546
+ } | {
3547
+ readonly code: "NOT_FOUND";
3548
+ readonly message: string;
3549
+ readonly hint?: string;
3550
+ readonly context?: {
3551
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3552
+ readonly reason?: string;
3553
+ readonly target?: string;
3554
+ };
3555
+ } | {
3556
+ readonly code: "RESOURCE_EXHAUSTED";
3557
+ readonly message: string;
3558
+ readonly hint?: string;
3559
+ readonly context?: {
3560
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3561
+ readonly reason?: string;
3562
+ readonly indexBytes?: number;
3563
+ readonly pushBytes?: number;
3564
+ readonly most?: number;
3565
+ };
3566
+ } | {
3567
+ readonly code: "UNAUTHENTICATED";
3568
+ readonly message: string;
3569
+ readonly hint?: string;
3570
+ readonly context?: {
3571
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3572
+ };
3573
+ } | {
3574
+ readonly code: "UNAVAILABLE";
3575
+ readonly message: string;
3576
+ readonly hint?: string;
3577
+ readonly context?: {
3578
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3579
+ readonly id?: string;
3580
+ readonly reason?: string;
3581
+ readonly packs?: number;
3582
+ readonly most?: number;
3583
+ };
3584
+ }, unknown, never, never>, {
88
3585
  "ref0-code": import("effect/Schema").String;
89
- }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, {
3586
+ }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<{
3587
+ readonly code: "ALREADY_EXISTS";
3588
+ readonly message: string;
3589
+ readonly hint?: string;
3590
+ readonly context?: {
3591
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3592
+ readonly reason?: string;
3593
+ readonly verdict?: "fail" | "pass";
3594
+ };
3595
+ } | {
3596
+ readonly code: "DATA_LOSS";
3597
+ readonly message: string;
3598
+ readonly hint?: string;
3599
+ readonly context?: {
3600
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3601
+ readonly reason?: string;
3602
+ };
3603
+ } | {
3604
+ readonly code: "DEADLINE_EXCEEDED";
3605
+ readonly message: string;
3606
+ readonly hint?: string;
3607
+ readonly context?: {
3608
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3609
+ readonly id?: string;
3610
+ };
3611
+ } | {
3612
+ readonly code: "FAILED_PRECONDITION";
3613
+ readonly message: string;
3614
+ readonly hint?: string;
3615
+ readonly context?: {
3616
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3617
+ readonly reason?: string;
3618
+ readonly importState?: "cancelled" | "failed" | "running";
3619
+ readonly attribute?: string;
3620
+ readonly paths?: string[];
3621
+ readonly total?: number;
3622
+ readonly tip?: string;
3623
+ };
3624
+ } | {
3625
+ readonly code: "INTERNAL";
3626
+ readonly message: string;
3627
+ readonly hint?: string;
3628
+ readonly context?: {
3629
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3630
+ };
3631
+ } | {
3632
+ readonly code: "INVALID_ARGUMENT";
3633
+ readonly message: string;
3634
+ readonly hint?: string;
3635
+ readonly context?: {
3636
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3637
+ readonly reason?: string;
3638
+ readonly msgId?: string;
3639
+ readonly most?: number;
3640
+ readonly given?: number;
3641
+ };
3642
+ } | {
3643
+ readonly code: "NOT_ALLOWED";
3644
+ readonly message: string;
3645
+ readonly hint?: string;
3646
+ readonly context?: {
3647
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3648
+ readonly reason?: string;
3649
+ readonly entries?: string[];
3650
+ readonly paths?: string[];
3651
+ readonly total?: number;
3652
+ };
3653
+ } | {
3654
+ readonly code: "NOT_FOUND";
3655
+ readonly message: string;
3656
+ readonly hint?: string;
3657
+ readonly context?: {
3658
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3659
+ readonly reason?: string;
3660
+ readonly target?: string;
3661
+ };
3662
+ } | {
3663
+ readonly code: "RESOURCE_EXHAUSTED";
3664
+ readonly message: string;
3665
+ readonly hint?: string;
3666
+ readonly context?: {
3667
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3668
+ readonly reason?: string;
3669
+ readonly indexBytes?: number;
3670
+ readonly pushBytes?: number;
3671
+ readonly most?: number;
3672
+ };
3673
+ } | {
3674
+ readonly code: "UNAUTHENTICATED";
3675
+ readonly message: string;
3676
+ readonly hint?: string;
3677
+ readonly context?: {
3678
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3679
+ };
3680
+ } | {
3681
+ readonly code: "UNAVAILABLE";
3682
+ readonly message: string;
3683
+ readonly hint?: string;
3684
+ readonly context?: {
3685
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3686
+ readonly id?: string;
3687
+ readonly reason?: string;
3688
+ readonly packs?: number;
3689
+ readonly most?: number;
3690
+ };
3691
+ }, unknown, never, never>, import("effect/Schema").Codec<{
3692
+ readonly code: "ALREADY_EXISTS";
3693
+ readonly message: string;
3694
+ readonly hint?: string;
3695
+ readonly context?: {
3696
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3697
+ readonly reason?: string;
3698
+ readonly verdict?: "fail" | "pass";
3699
+ };
3700
+ } | {
3701
+ readonly code: "DATA_LOSS";
3702
+ readonly message: string;
3703
+ readonly hint?: string;
3704
+ readonly context?: {
3705
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3706
+ readonly reason?: string;
3707
+ };
3708
+ } | {
3709
+ readonly code: "DEADLINE_EXCEEDED";
3710
+ readonly message: string;
3711
+ readonly hint?: string;
3712
+ readonly context?: {
3713
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3714
+ readonly id?: string;
3715
+ };
3716
+ } | {
3717
+ readonly code: "FAILED_PRECONDITION";
3718
+ readonly message: string;
3719
+ readonly hint?: string;
3720
+ readonly context?: {
3721
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3722
+ readonly reason?: string;
3723
+ readonly importState?: "cancelled" | "failed" | "running";
3724
+ readonly attribute?: string;
3725
+ readonly paths?: string[];
3726
+ readonly total?: number;
3727
+ readonly tip?: string;
3728
+ };
3729
+ } | {
3730
+ readonly code: "INTERNAL";
3731
+ readonly message: string;
3732
+ readonly hint?: string;
3733
+ readonly context?: {
3734
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3735
+ };
3736
+ } | {
3737
+ readonly code: "INVALID_ARGUMENT";
3738
+ readonly message: string;
3739
+ readonly hint?: string;
3740
+ readonly context?: {
3741
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3742
+ readonly reason?: string;
3743
+ readonly msgId?: string;
3744
+ readonly most?: number;
3745
+ readonly given?: number;
3746
+ };
3747
+ } | {
3748
+ readonly code: "NOT_ALLOWED";
3749
+ readonly message: string;
3750
+ readonly hint?: string;
3751
+ readonly context?: {
3752
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3753
+ readonly reason?: string;
3754
+ readonly entries?: string[];
3755
+ readonly paths?: string[];
3756
+ readonly total?: number;
3757
+ };
3758
+ } | {
3759
+ readonly code: "NOT_FOUND";
3760
+ readonly message: string;
3761
+ readonly hint?: string;
3762
+ readonly context?: {
3763
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3764
+ readonly reason?: string;
3765
+ readonly target?: string;
3766
+ };
3767
+ } | {
3768
+ readonly code: "RESOURCE_EXHAUSTED";
3769
+ readonly message: string;
3770
+ readonly hint?: string;
3771
+ readonly context?: {
3772
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3773
+ readonly reason?: string;
3774
+ readonly indexBytes?: number;
3775
+ readonly pushBytes?: number;
3776
+ readonly most?: number;
3777
+ };
3778
+ } | {
3779
+ readonly code: "UNAUTHENTICATED";
3780
+ readonly message: string;
3781
+ readonly hint?: string;
3782
+ readonly context?: {
3783
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3784
+ };
3785
+ } | {
3786
+ readonly code: "UNAVAILABLE";
3787
+ readonly message: string;
3788
+ readonly hint?: string;
3789
+ readonly context?: {
3790
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3791
+ readonly id?: string;
3792
+ readonly reason?: string;
3793
+ readonly packs?: number;
3794
+ readonly most?: number;
3795
+ };
3796
+ }, unknown, never, never>, {
90
3797
  "ref0-code": import("effect/Schema").String;
91
- }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, {
3798
+ }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<{
3799
+ readonly code: "ALREADY_EXISTS";
3800
+ readonly message: string;
3801
+ readonly hint?: string;
3802
+ readonly context?: {
3803
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3804
+ readonly reason?: string;
3805
+ readonly verdict?: "fail" | "pass";
3806
+ };
3807
+ } | {
3808
+ readonly code: "DATA_LOSS";
3809
+ readonly message: string;
3810
+ readonly hint?: string;
3811
+ readonly context?: {
3812
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3813
+ readonly reason?: string;
3814
+ };
3815
+ } | {
3816
+ readonly code: "DEADLINE_EXCEEDED";
3817
+ readonly message: string;
3818
+ readonly hint?: string;
3819
+ readonly context?: {
3820
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3821
+ readonly id?: string;
3822
+ };
3823
+ } | {
3824
+ readonly code: "FAILED_PRECONDITION";
3825
+ readonly message: string;
3826
+ readonly hint?: string;
3827
+ readonly context?: {
3828
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3829
+ readonly reason?: string;
3830
+ readonly importState?: "cancelled" | "failed" | "running";
3831
+ readonly attribute?: string;
3832
+ readonly paths?: string[];
3833
+ readonly total?: number;
3834
+ readonly tip?: string;
3835
+ };
3836
+ } | {
3837
+ readonly code: "INTERNAL";
3838
+ readonly message: string;
3839
+ readonly hint?: string;
3840
+ readonly context?: {
3841
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3842
+ };
3843
+ } | {
3844
+ readonly code: "INVALID_ARGUMENT";
3845
+ readonly message: string;
3846
+ readonly hint?: string;
3847
+ readonly context?: {
3848
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3849
+ readonly reason?: string;
3850
+ readonly msgId?: string;
3851
+ readonly most?: number;
3852
+ readonly given?: number;
3853
+ };
3854
+ } | {
3855
+ readonly code: "NOT_ALLOWED";
3856
+ readonly message: string;
3857
+ readonly hint?: string;
3858
+ readonly context?: {
3859
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3860
+ readonly reason?: string;
3861
+ readonly entries?: string[];
3862
+ readonly paths?: string[];
3863
+ readonly total?: number;
3864
+ };
3865
+ } | {
3866
+ readonly code: "NOT_FOUND";
3867
+ readonly message: string;
3868
+ readonly hint?: string;
3869
+ readonly context?: {
3870
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3871
+ readonly reason?: string;
3872
+ readonly target?: string;
3873
+ };
3874
+ } | {
3875
+ readonly code: "RESOURCE_EXHAUSTED";
3876
+ readonly message: string;
3877
+ readonly hint?: string;
3878
+ readonly context?: {
3879
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3880
+ readonly reason?: string;
3881
+ readonly indexBytes?: number;
3882
+ readonly pushBytes?: number;
3883
+ readonly most?: number;
3884
+ };
3885
+ } | {
3886
+ readonly code: "UNAUTHENTICATED";
3887
+ readonly message: string;
3888
+ readonly hint?: string;
3889
+ readonly context?: {
3890
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3891
+ };
3892
+ } | {
3893
+ readonly code: "UNAVAILABLE";
3894
+ readonly message: string;
3895
+ readonly hint?: string;
3896
+ readonly context?: {
3897
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3898
+ readonly id?: string;
3899
+ readonly reason?: string;
3900
+ readonly packs?: number;
3901
+ readonly most?: number;
3902
+ };
3903
+ }, unknown, never, never>, import("effect/Schema").Codec<{
3904
+ readonly code: "ALREADY_EXISTS";
3905
+ readonly message: string;
3906
+ readonly hint?: string;
3907
+ readonly context?: {
3908
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3909
+ readonly reason?: string;
3910
+ readonly verdict?: "fail" | "pass";
3911
+ };
3912
+ } | {
3913
+ readonly code: "DATA_LOSS";
3914
+ readonly message: string;
3915
+ readonly hint?: string;
3916
+ readonly context?: {
3917
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3918
+ readonly reason?: string;
3919
+ };
3920
+ } | {
3921
+ readonly code: "DEADLINE_EXCEEDED";
3922
+ readonly message: string;
3923
+ readonly hint?: string;
3924
+ readonly context?: {
3925
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3926
+ readonly id?: string;
3927
+ };
3928
+ } | {
3929
+ readonly code: "FAILED_PRECONDITION";
3930
+ readonly message: string;
3931
+ readonly hint?: string;
3932
+ readonly context?: {
3933
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3934
+ readonly reason?: string;
3935
+ readonly importState?: "cancelled" | "failed" | "running";
3936
+ readonly attribute?: string;
3937
+ readonly paths?: string[];
3938
+ readonly total?: number;
3939
+ readonly tip?: string;
3940
+ };
3941
+ } | {
3942
+ readonly code: "INTERNAL";
3943
+ readonly message: string;
3944
+ readonly hint?: string;
3945
+ readonly context?: {
3946
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3947
+ };
3948
+ } | {
3949
+ readonly code: "INVALID_ARGUMENT";
3950
+ readonly message: string;
3951
+ readonly hint?: string;
3952
+ readonly context?: {
3953
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3954
+ readonly reason?: string;
3955
+ readonly msgId?: string;
3956
+ readonly most?: number;
3957
+ readonly given?: number;
3958
+ };
3959
+ } | {
3960
+ readonly code: "NOT_ALLOWED";
3961
+ readonly message: string;
3962
+ readonly hint?: string;
3963
+ readonly context?: {
3964
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3965
+ readonly reason?: string;
3966
+ readonly entries?: string[];
3967
+ readonly paths?: string[];
3968
+ readonly total?: number;
3969
+ };
3970
+ } | {
3971
+ readonly code: "NOT_FOUND";
3972
+ readonly message: string;
3973
+ readonly hint?: string;
3974
+ readonly context?: {
3975
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3976
+ readonly reason?: string;
3977
+ readonly target?: string;
3978
+ };
3979
+ } | {
3980
+ readonly code: "RESOURCE_EXHAUSTED";
3981
+ readonly message: string;
3982
+ readonly hint?: string;
3983
+ readonly context?: {
3984
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3985
+ readonly reason?: string;
3986
+ readonly indexBytes?: number;
3987
+ readonly pushBytes?: number;
3988
+ readonly most?: number;
3989
+ };
3990
+ } | {
3991
+ readonly code: "UNAUTHENTICATED";
3992
+ readonly message: string;
3993
+ readonly hint?: string;
3994
+ readonly context?: {
3995
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
3996
+ };
3997
+ } | {
3998
+ readonly code: "UNAVAILABLE";
3999
+ readonly message: string;
4000
+ readonly hint?: string;
4001
+ readonly context?: {
4002
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
4003
+ readonly id?: string;
4004
+ readonly reason?: string;
4005
+ readonly packs?: number;
4006
+ readonly most?: number;
4007
+ };
4008
+ }, unknown, never, never>, {
92
4009
  "ref0-code": import("effect/Schema").String;
93
- }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, import("effect/Schema").Codec<JsonHttpError, unknown, never, never>, {
4010
+ }>, import("effect/http-api/HttpApiSchema").encodeToWithHeaders<import("effect/Schema").Codec<{
4011
+ readonly code: "ALREADY_EXISTS";
4012
+ readonly message: string;
4013
+ readonly hint?: string;
4014
+ readonly context?: {
4015
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
4016
+ readonly reason?: string;
4017
+ readonly verdict?: "fail" | "pass";
4018
+ };
4019
+ } | {
4020
+ readonly code: "DATA_LOSS";
4021
+ readonly message: string;
4022
+ readonly hint?: string;
4023
+ readonly context?: {
4024
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
4025
+ readonly reason?: string;
4026
+ };
4027
+ } | {
4028
+ readonly code: "DEADLINE_EXCEEDED";
4029
+ readonly message: string;
4030
+ readonly hint?: string;
4031
+ readonly context?: {
4032
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
4033
+ readonly id?: string;
4034
+ };
4035
+ } | {
4036
+ readonly code: "FAILED_PRECONDITION";
4037
+ readonly message: string;
4038
+ readonly hint?: string;
4039
+ readonly context?: {
4040
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
4041
+ readonly reason?: string;
4042
+ readonly importState?: "cancelled" | "failed" | "running";
4043
+ readonly attribute?: string;
4044
+ readonly paths?: string[];
4045
+ readonly total?: number;
4046
+ readonly tip?: string;
4047
+ };
4048
+ } | {
4049
+ readonly code: "INTERNAL";
4050
+ readonly message: string;
4051
+ readonly hint?: string;
4052
+ readonly context?: {
4053
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
4054
+ };
4055
+ } | {
4056
+ readonly code: "INVALID_ARGUMENT";
4057
+ readonly message: string;
4058
+ readonly hint?: string;
4059
+ readonly context?: {
4060
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
4061
+ readonly reason?: string;
4062
+ readonly msgId?: string;
4063
+ readonly most?: number;
4064
+ readonly given?: number;
4065
+ };
4066
+ } | {
4067
+ readonly code: "NOT_ALLOWED";
4068
+ readonly message: string;
4069
+ readonly hint?: string;
4070
+ readonly context?: {
4071
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
4072
+ readonly reason?: string;
4073
+ readonly entries?: string[];
4074
+ readonly paths?: string[];
4075
+ readonly total?: number;
4076
+ };
4077
+ } | {
4078
+ readonly code: "NOT_FOUND";
4079
+ readonly message: string;
4080
+ readonly hint?: string;
4081
+ readonly context?: {
4082
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
4083
+ readonly reason?: string;
4084
+ readonly target?: string;
4085
+ };
4086
+ } | {
4087
+ readonly code: "RESOURCE_EXHAUSTED";
4088
+ readonly message: string;
4089
+ readonly hint?: string;
4090
+ readonly context?: {
4091
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
4092
+ readonly reason?: string;
4093
+ readonly indexBytes?: number;
4094
+ readonly pushBytes?: number;
4095
+ readonly most?: number;
4096
+ };
4097
+ } | {
4098
+ readonly code: "UNAUTHENTICATED";
4099
+ readonly message: string;
4100
+ readonly hint?: string;
4101
+ readonly context?: {
4102
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
4103
+ };
4104
+ } | {
4105
+ readonly code: "UNAVAILABLE";
4106
+ readonly message: string;
4107
+ readonly hint?: string;
4108
+ readonly context?: {
4109
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
4110
+ readonly id?: string;
4111
+ readonly reason?: string;
4112
+ readonly packs?: number;
4113
+ readonly most?: number;
4114
+ };
4115
+ }, unknown, never, never>, import("effect/Schema").Codec<{
4116
+ readonly code: "ALREADY_EXISTS";
4117
+ readonly message: string;
4118
+ readonly hint?: string;
4119
+ readonly context?: {
4120
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
4121
+ readonly reason?: string;
4122
+ readonly verdict?: "fail" | "pass";
4123
+ };
4124
+ } | {
4125
+ readonly code: "DATA_LOSS";
4126
+ readonly message: string;
4127
+ readonly hint?: string;
4128
+ readonly context?: {
4129
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
4130
+ readonly reason?: string;
4131
+ };
4132
+ } | {
4133
+ readonly code: "DEADLINE_EXCEEDED";
4134
+ readonly message: string;
4135
+ readonly hint?: string;
4136
+ readonly context?: {
4137
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
4138
+ readonly id?: string;
4139
+ };
4140
+ } | {
4141
+ readonly code: "FAILED_PRECONDITION";
4142
+ readonly message: string;
4143
+ readonly hint?: string;
4144
+ readonly context?: {
4145
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
4146
+ readonly reason?: string;
4147
+ readonly importState?: "cancelled" | "failed" | "running";
4148
+ readonly attribute?: string;
4149
+ readonly paths?: string[];
4150
+ readonly total?: number;
4151
+ readonly tip?: string;
4152
+ };
4153
+ } | {
4154
+ readonly code: "INTERNAL";
4155
+ readonly message: string;
4156
+ readonly hint?: string;
4157
+ readonly context?: {
4158
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
4159
+ };
4160
+ } | {
4161
+ readonly code: "INVALID_ARGUMENT";
4162
+ readonly message: string;
4163
+ readonly hint?: string;
4164
+ readonly context?: {
4165
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
4166
+ readonly reason?: string;
4167
+ readonly msgId?: string;
4168
+ readonly most?: number;
4169
+ readonly given?: number;
4170
+ };
4171
+ } | {
4172
+ readonly code: "NOT_ALLOWED";
4173
+ readonly message: string;
4174
+ readonly hint?: string;
4175
+ readonly context?: {
4176
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
4177
+ readonly reason?: string;
4178
+ readonly entries?: string[];
4179
+ readonly paths?: string[];
4180
+ readonly total?: number;
4181
+ };
4182
+ } | {
4183
+ readonly code: "NOT_FOUND";
4184
+ readonly message: string;
4185
+ readonly hint?: string;
4186
+ readonly context?: {
4187
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
4188
+ readonly reason?: string;
4189
+ readonly target?: string;
4190
+ };
4191
+ } | {
4192
+ readonly code: "RESOURCE_EXHAUSTED";
4193
+ readonly message: string;
4194
+ readonly hint?: string;
4195
+ readonly context?: {
4196
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
4197
+ readonly reason?: string;
4198
+ readonly indexBytes?: number;
4199
+ readonly pushBytes?: number;
4200
+ readonly most?: number;
4201
+ };
4202
+ } | {
4203
+ readonly code: "UNAUTHENTICATED";
4204
+ readonly message: string;
4205
+ readonly hint?: string;
4206
+ readonly context?: {
4207
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
4208
+ };
4209
+ } | {
4210
+ readonly code: "UNAVAILABLE";
4211
+ readonly message: string;
4212
+ readonly hint?: string;
4213
+ readonly context?: {
4214
+ readonly [x: string]: string | number | boolean | readonly string[] | undefined;
4215
+ readonly id?: string;
4216
+ readonly reason?: string;
4217
+ readonly packs?: number;
4218
+ readonly most?: number;
4219
+ };
4220
+ }, unknown, never, never>, {
94
4221
  "ref0-code": import("effect/Schema").String;
95
4222
  }>], GitRestServices>>;
96
4223
  /**