@ref0/git 0.14.0 → 0.25.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 (492) hide show
  1. package/dist/access/private-refs.mjs +1 -1
  2. package/dist/auth/access-jwt.mjs +4 -4
  3. package/dist/auth/auth-namespace.d.mts +3 -3
  4. package/dist/auth/auth-namespace.mjs +3 -2
  5. package/dist/auth/auth.d.mts +3 -3
  6. package/dist/auth/auth.mjs +9 -8
  7. package/dist/auth/authorize.mjs +4 -4
  8. package/dist/auth/fences.d.mts +1 -2
  9. package/dist/auth/fences.mjs +3 -3
  10. package/dist/auth/grants.mjs +4 -4
  11. package/dist/auth/host-function.mjs +19 -2
  12. package/dist/auth/host-services.mjs +4 -6
  13. package/dist/auth/identify.d.mts +1 -1
  14. package/dist/auth/identify.mjs +9 -3
  15. package/dist/auth/token-cleanup.mjs +67 -0
  16. package/dist/auth/token-rows.mjs +7 -2
  17. package/dist/auth/token-text.mjs +9 -1
  18. package/dist/auth/tokens-base.d.mts +35 -0
  19. package/dist/auth/tokens-base.mjs +13 -0
  20. package/dist/auth/tokens-layer.d.mts +2 -27
  21. package/dist/auth/tokens-layer.mjs +6 -11
  22. package/dist/auth/tokens-public.d.mts +3 -3
  23. package/dist/auth/tokens.d.mts +7 -10
  24. package/dist/auth/tokens.mjs +10 -81
  25. package/dist/client/answer.mjs +21 -42
  26. package/dist/client/client.d.mts +17 -11
  27. package/dist/client/client.mjs +21 -12
  28. package/dist/client/git-http.mjs +18 -8
  29. package/dist/client/local.mjs +74 -37
  30. package/dist/client/negotiate.mjs +3 -3
  31. package/dist/client/push-upload.mjs +34 -17
  32. package/dist/client/remote.mjs +12 -13
  33. package/dist/client/run-remote-helper.d.mts +2 -1
  34. package/dist/client/run-remote-helper.mjs +61 -27
  35. package/dist/client/slice-push.d.mts +1 -1
  36. package/dist/client/transport.mjs +105 -46
  37. package/dist/contracts/blobs.d.mts +58 -11
  38. package/dist/contracts/blobs.mjs +17 -3
  39. package/dist/contracts/call-allowance.d.mts +13 -0
  40. package/dist/contracts/call-allowance.mjs +44 -0
  41. package/dist/contracts/calls-spent.mjs +12 -35
  42. package/dist/contracts/client.d.mts +18 -18
  43. package/dist/contracts/commits.d.mts +28 -28
  44. package/dist/contracts/commits.mjs +1 -1
  45. package/dist/contracts/engine.d.mts +8 -3
  46. package/dist/contracts/engine.mjs +10 -1
  47. package/dist/contracts/events.d.mts +1 -1
  48. package/dist/contracts/events.mjs +1 -1
  49. package/dist/contracts/files.d.mts +14 -14
  50. package/dist/contracts/files.mjs +1 -1
  51. package/dist/contracts/forks.d.mts +21 -21
  52. package/dist/contracts/forks.mjs +1 -1
  53. package/dist/contracts/git-events.d.mts +29 -1
  54. package/dist/contracts/git-hooks.d.mts +2 -2
  55. package/dist/contracts/git.d.mts +30 -5
  56. package/dist/contracts/grants.d.mts +24 -4
  57. package/dist/contracts/handlers.d.mts +1 -1
  58. package/dist/contracts/lfs.d.mts +28 -2
  59. package/dist/contracts/merges.d.mts +3 -2
  60. package/dist/contracts/object-values.d.mts +1 -0
  61. package/dist/contracts/object-values.mjs +16 -1
  62. package/dist/contracts/objects.d.mts +42 -41
  63. package/dist/contracts/opaque.mjs +1 -1
  64. package/dist/contracts/operations.mjs +1 -1
  65. package/dist/contracts/queue.d.mts +247 -55
  66. package/dist/contracts/queue.mjs +8 -9
  67. package/dist/contracts/refs.d.mts +30 -27
  68. package/dist/contracts/refs.mjs +1 -1
  69. package/dist/contracts/remote.d.mts +8 -12
  70. package/dist/contracts/remote.mjs +4 -1
  71. package/dist/contracts/repos.d.mts +32 -141
  72. package/dist/contracts/repos.mjs +6 -4
  73. package/dist/contracts/result.d.mts +40 -18
  74. package/dist/contracts/result.mjs +42 -9
  75. package/dist/contracts/rules.d.mts +2 -2
  76. package/dist/contracts/server.d.mts +25 -52
  77. package/dist/contracts/services.d.mts +6 -9
  78. package/dist/contracts/services.mjs +1 -2
  79. package/dist/contracts/signin.d.mts +1 -1
  80. package/dist/contracts/store.d.mts +7 -6
  81. package/dist/contracts/sync.d.mts +73 -12
  82. package/dist/contracts/sync.mjs +14 -3
  83. package/dist/contracts/tags.d.mts +13 -13
  84. package/dist/contracts/tags.mjs +1 -1
  85. package/dist/contracts/time.d.mts +3 -0
  86. package/dist/contracts/{promises.mjs → time.mjs} +1 -1
  87. package/dist/contracts/tokens.d.mts +17 -19
  88. package/dist/contracts/tokens.mjs +4 -3
  89. package/dist/contracts/topics.d.mts +10 -10
  90. package/dist/contracts/trees.d.mts +16 -16
  91. package/dist/contracts/trees.mjs +1 -1
  92. package/dist/contracts/work.d.mts +28 -17
  93. package/dist/contracts/work.mjs +2 -2
  94. package/dist/core/access.d.mts +1 -2
  95. package/dist/core/access.mjs +20 -9
  96. package/dist/core/ancestry.d.mts +1 -0
  97. package/dist/core/ancestry.mjs +30 -34
  98. package/dist/core/asked.mjs +1 -1
  99. package/dist/core/call-groups.mjs +48 -0
  100. package/dist/core/call-names.mjs +6 -1
  101. package/dist/core/call-services.mjs +11 -3
  102. package/dist/core/events/deliver.d.mts +2 -3
  103. package/dist/core/events/deliver.mjs +45 -38
  104. package/dist/core/events/retired.mjs +119 -0
  105. package/dist/core/forks.mjs +929 -433
  106. package/dist/core/hooks/groups.mjs +3 -3
  107. package/dist/core/imports.mjs +127 -41
  108. package/dist/core/index-job.mjs +131 -38
  109. package/dist/core/index-lost.d.mts +1 -2
  110. package/dist/core/index-lost.mjs +2 -2
  111. package/dist/core/loose-tally.mjs +38 -15
  112. package/dist/core/merge-parts.d.mts +17 -4
  113. package/dist/core/merge-parts.mjs +7 -2
  114. package/dist/core/mirror-rows.mjs +31 -1
  115. package/dist/core/objects/blobs.mjs +127 -3
  116. package/dist/core/objects/files.mjs +20 -17
  117. package/dist/core/objects/lines.mjs +2 -2
  118. package/dist/core/objects/merges.mjs +4 -1
  119. package/dist/core/objects/objects-layer.d.mts +1 -1
  120. package/dist/core/objects/objects-layer.mjs +4 -4
  121. package/dist/core/objects/peel.mjs +1 -7
  122. package/dist/core/objects/reading.mjs +41 -29
  123. package/dist/core/objects/tags.mjs +4 -1
  124. package/dist/core/objects/tree-edits.mjs +1 -1
  125. package/dist/core/objects/trees.mjs +257 -58
  126. package/dist/core/objects/writing.mjs +4 -10
  127. package/dist/core/own-writes.mjs +2 -2
  128. package/dist/core/parts.d.mts +11 -5
  129. package/dist/core/parts.mjs +9 -10
  130. package/dist/core/purge.mjs +310 -93
  131. package/dist/core/push-decide.mjs +2 -0
  132. package/dist/core/push-files.d.mts +1 -1
  133. package/dist/core/push.d.mts +2 -2
  134. package/dist/core/push.mjs +170 -128
  135. package/dist/core/receipts.d.mts +2 -2
  136. package/dist/core/receipts.mjs +17 -5
  137. package/dist/core/ref-index-job.mjs +7 -7
  138. package/dist/core/ref-view.mjs +75 -32
  139. package/dist/core/refs.mjs +7 -7
  140. package/dist/core/registered-rows.mjs +2 -2
  141. package/dist/core/repack.mjs +58 -48
  142. package/dist/core/repo-info.mjs +3 -3
  143. package/dist/core/repos.mjs +21 -9
  144. package/dist/core/rules/changes.mjs +18 -40
  145. package/dist/core/rules/check.mjs +6 -5
  146. package/dist/core/rules/commit-changes.mjs +3 -15
  147. package/dist/core/rules/context.d.mts +3 -3
  148. package/dist/core/rules/context.mjs +18 -14
  149. package/dist/core/rules/fetch.mjs +1 -1
  150. package/dist/core/rules/protect.mjs +30 -17
  151. package/dist/core/saved-caller-views.d.mts +8 -3
  152. package/dist/core/saved-caller-views.mjs +4 -4
  153. package/dist/core/saved-callers.d.mts +19 -2
  154. package/dist/core/saved-callers.mjs +1 -1
  155. package/dist/core/seam.d.mts +17 -28
  156. package/dist/core/seam.mjs +7 -28
  157. package/dist/core/tokens.mjs +1 -1
  158. package/dist/core/view.d.mts +6 -3
  159. package/dist/core/view.mjs +18 -25
  160. package/dist/core/work.mjs +60 -15
  161. package/dist/engine/allotted-xdiff.mjs +3 -16
  162. package/dist/engine/combined.d.mts +3 -0
  163. package/dist/engine/combined.mjs +200 -185
  164. package/dist/engine/content.d.mts +2 -2
  165. package/dist/engine/content.mjs +1 -1
  166. package/dist/engine/failures.mjs +2 -1
  167. package/dist/engine/merge.mjs +7 -9
  168. package/dist/engine/reads.d.mts +2 -2
  169. package/dist/engine/reads.mjs +25 -17
  170. package/dist/engine/xdiff.d.mts +1 -1
  171. package/dist/engine/xdiff.mjs +1 -1
  172. package/dist/event-streams/event-streams.d.mts +1 -1
  173. package/dist/event-streams/event-streams.mjs +1 -1
  174. package/dist/event-streams/stream.d.mts +3 -3
  175. package/dist/event-streams/stream.mjs +39 -16
  176. package/dist/extend.d.mts +2 -7
  177. package/dist/extend.mjs +1 -4
  178. package/dist/http/answers.mjs +8 -5
  179. package/dist/http/core-parts.mjs +169 -96
  180. package/dist/http/handler.mjs +82 -10
  181. package/dist/http/node.d.mts +14 -1
  182. package/dist/http/node.mjs +56 -27
  183. package/dist/http/parts.d.mts +2 -0
  184. package/dist/http/push-upload-job.mjs +165 -47
  185. package/dist/http/push-uploads.mjs +37 -22
  186. package/dist/http/receive-pack.mjs +14 -53
  187. package/dist/http/request-snapshot.mjs +258 -0
  188. package/dist/http/upload-pack.mjs +25 -20
  189. package/dist/index.d.mts +36 -28
  190. package/dist/index.mjs +12 -3
  191. package/dist/lfs/answer.mjs +37 -0
  192. package/dist/lfs/base.d.mts +3 -1
  193. package/dist/lfs/base.mjs +25 -1
  194. package/dist/lfs/copy.d.mts +70 -8
  195. package/dist/lfs/copy.mjs +217 -21
  196. package/dist/lfs/layer.d.mts +19 -4
  197. package/dist/lfs/layer.mjs +25 -13
  198. package/dist/lfs/locks.mjs +3 -3
  199. package/dist/lfs/objects.d.mts +2 -1
  200. package/dist/lfs/objects.mjs +89 -19
  201. package/dist/lfs/pointers.mjs +2 -2
  202. package/dist/lfs/rows.d.mts +1 -1
  203. package/dist/lfs/rows.mjs +50 -9
  204. package/dist/lfs/upkeep.mjs +82 -17
  205. package/dist/lfs/uploaded.mjs +1 -1
  206. package/dist/lfs/wire.mjs +7 -32
  207. package/dist/merges/merges.mjs +19 -4
  208. package/dist/node.d.mts +2 -2
  209. package/dist/protocol/bytes/buffers.d.mts +1 -1
  210. package/dist/protocol/bytes/buffers.mjs +14 -6
  211. package/dist/protocol/bytes/deflate.d.mts +1 -1
  212. package/dist/protocol/bytes/deflate.mjs +1 -1
  213. package/dist/protocol/bytes/inflate.d.mts +1 -1
  214. package/dist/protocol/bytes/inflate.mjs +1 -1
  215. package/dist/protocol/bytes/reader.mjs +6 -1
  216. package/dist/protocol/bytes/sha1.d.mts +1 -1
  217. package/dist/protocol/bytes/sha1.mjs +1 -1
  218. package/dist/protocol/bytes/streams.mjs +27 -1
  219. package/dist/protocol/diff/read.d.mts +6 -4
  220. package/dist/protocol/diff/read.mjs +110 -11
  221. package/dist/protocol/objects/lfs-pointer.d.mts +14 -2
  222. package/dist/protocol/objects/lfs-pointer.mjs +1 -3
  223. package/dist/protocol/objects/links-raw.mjs +24 -10
  224. package/dist/protocol/objects/tag.d.mts +1 -1
  225. package/dist/protocol/objects/tree.mjs +23 -6
  226. package/dist/protocol/packs/delta.d.mts +6 -3
  227. package/dist/protocol/packs/delta.mjs +96 -32
  228. package/dist/protocol/packs/graph.mjs +1 -1
  229. package/dist/protocol/packs/idx.d.mts +3 -2
  230. package/dist/protocol/packs/idx.mjs +23 -4
  231. package/dist/protocol/packs/parts.d.mts +4 -1
  232. package/dist/protocol/packs/parts.mjs +10 -7
  233. package/dist/protocol/packs/reader.d.mts +6 -1
  234. package/dist/protocol/packs/reader.mjs +4 -3
  235. package/dist/protocol/packs/write-error.d.mts +1 -1
  236. package/dist/protocol/packs/write-error.mjs +1 -1
  237. package/dist/protocol/packs/writer.mjs +26 -8
  238. package/dist/protocol/wire/advertisement.d.mts +1 -1
  239. package/dist/protocol/wire/advertisement.mjs +3 -2
  240. package/dist/protocol/wire/fetch.d.mts +1 -1
  241. package/dist/protocol/wire/fetch.mjs +1 -1
  242. package/dist/protocol/wire/lines.d.mts +9 -1
  243. package/dist/protocol/wire/lines.mjs +28 -1
  244. package/dist/protocol/wire/push-uploads.mjs +10 -7
  245. package/dist/protocol/wire/receive-pack.d.mts +1 -1
  246. package/dist/protocol/wire/receive-pack.mjs +1 -1
  247. package/dist/protocol/wire/report-status.d.mts +1 -1
  248. package/dist/protocol/wire/report-status.mjs +1 -1
  249. package/dist/protocol/wire/v2.d.mts +1 -1
  250. package/dist/protocol/wire/v2.mjs +1 -1
  251. package/dist/queue/advance.mjs +48 -44
  252. package/dist/queue/base.d.mts +57 -0
  253. package/dist/queue/base.mjs +44 -0
  254. package/dist/queue/calls.mjs +54 -57
  255. package/dist/queue/commit.mjs +2 -2
  256. package/dist/queue/host.d.mts +2 -16
  257. package/dist/queue/host.mjs +2 -7
  258. package/dist/queue/layer.d.mts +2 -2
  259. package/dist/queue/layer.mjs +19 -8
  260. package/dist/queue/limits.mjs +2 -0
  261. package/dist/queue/push-option.mjs +9 -24
  262. package/dist/queue/schedule.mjs +2 -2
  263. package/dist/queue/search.mjs +1 -1
  264. package/dist/queue/state.mjs +3 -11
  265. package/dist/queue/trim.mjs +6 -4
  266. package/dist/rest/blobs.mjs +29 -5
  267. package/dist/rest/caller.d.mts +4 -4271
  268. package/dist/rest/caller.mjs +4 -0
  269. package/dist/rest/client.d.mts +9 -6
  270. package/dist/rest/client.mjs +25 -8
  271. package/dist/rest/errors.mjs +1 -1
  272. package/dist/rest/handler.mjs +2 -2
  273. package/dist/rest/handlers.mjs +66 -11
  274. package/dist/rest/layer.d.mts +2 -2
  275. package/dist/rest/layer.mjs +6 -13
  276. package/dist/rest/listen.mjs +2 -2
  277. package/dist/rest/me.d.mts +3 -432
  278. package/dist/rest/refs.mjs +1 -1
  279. package/dist/server/check-fetch.mjs +3 -3
  280. package/dist/server/edge-node.d.mts +11 -8
  281. package/dist/server/edge-node.mjs +9 -6
  282. package/dist/server/edge.d.mts +21 -7
  283. package/dist/server/edge.mjs +56 -11
  284. package/dist/server/extension.mjs +1 -1
  285. package/dist/server/git-layer.d.mts +5 -6
  286. package/dist/server/git-layer.mjs +28 -23
  287. package/dist/server/git-namespace.d.mts +4 -3
  288. package/dist/server/git-namespace.mjs +3 -2
  289. package/dist/server/lifecycle.mjs +19 -107
  290. package/dist/server/registry.mjs +24 -13
  291. package/dist/server/server.mjs +249 -371
  292. package/dist/signin/context.d.mts +1 -2
  293. package/dist/signin/context.mjs +1 -1
  294. package/dist/signin/forms.mjs +1 -1
  295. package/dist/signin/grants.d.mts +2 -2
  296. package/dist/signin/grants.mjs +1 -1
  297. package/dist/signin/layer.d.mts +1 -1
  298. package/dist/signin/layer.mjs +1 -1
  299. package/dist/signin/wire.mjs +1 -1
  300. package/dist/storage/allotted.mjs +22 -12
  301. package/dist/storage/batch-upkeep.mjs +293 -0
  302. package/dist/storage/batches.d.mts +7 -0
  303. package/dist/storage/batches.mjs +347 -0
  304. package/dist/storage/budget.mjs +23 -1
  305. package/dist/storage/calls.d.mts +2 -3
  306. package/dist/storage/calls.mjs +166 -182
  307. package/dist/storage/charged-cache.mjs +180 -0
  308. package/dist/storage/chunks.d.mts +9 -0
  309. package/dist/storage/chunks.mjs +410 -0
  310. package/dist/storage/clean-up.mjs +72 -9
  311. package/dist/storage/counted-bucket.mjs +35 -13
  312. package/dist/storage/fetch-row-cache.d.mts +6 -0
  313. package/dist/storage/fetch-row-cache.mjs +211 -0
  314. package/dist/storage/fetch.d.mts +2 -0
  315. package/dist/storage/fetch.mjs +339 -450
  316. package/dist/storage/held-types.d.mts +0 -1
  317. package/dist/storage/host-bucket.mjs +10 -6
  318. package/dist/storage/id-mix.mjs +19 -5
  319. package/dist/storage/index-bitmaps.mjs +86 -51
  320. package/dist/storage/index-build.d.mts +2 -4
  321. package/dist/storage/index-build.mjs +324 -67
  322. package/dist/storage/index-fetch.d.mts +3 -1
  323. package/dist/storage/index-fetch.mjs +163 -83
  324. package/dist/storage/index-files.d.mts +3 -0
  325. package/dist/storage/index-files.mjs +10 -5
  326. package/dist/storage/index-graph.mjs +73 -23
  327. package/dist/storage/index-layers.mjs +55 -25
  328. package/dist/storage/index-reach.mjs +15 -22
  329. package/dist/storage/index-remap.mjs +200 -64
  330. package/dist/storage/index-whole.d.mts +7 -0
  331. package/dist/storage/index-whole.mjs +235 -0
  332. package/dist/storage/largest-files.mjs +1 -7
  333. package/dist/storage/layout.mjs +40 -1
  334. package/dist/storage/lfs-pointers.mjs +1 -6
  335. package/dist/storage/link-join.mjs +55 -16
  336. package/dist/storage/list-source.d.mts +7 -0
  337. package/dist/storage/list-source.mjs +288 -0
  338. package/dist/storage/loose.d.mts +10 -7
  339. package/dist/storage/loose.mjs +293 -82
  340. package/dist/storage/memory-budget.mjs +242 -26
  341. package/dist/storage/merge-cut.mjs +9 -6
  342. package/dist/storage/merge-fence.mjs +1 -1
  343. package/dist/storage/merge-plan.mjs +3 -2
  344. package/dist/storage/merge-row.mjs +8 -2
  345. package/dist/storage/merge-stream.mjs +164 -25
  346. package/dist/storage/merge-walk.mjs +8 -4
  347. package/dist/storage/merge-write.mjs +1 -1
  348. package/dist/storage/merge.d.mts +3 -4
  349. package/dist/storage/merge.mjs +3 -3
  350. package/dist/storage/object-rows.d.mts +4 -3
  351. package/dist/storage/object-rows.mjs +545 -84
  352. package/dist/storage/oid-table.mjs +171 -0
  353. package/dist/storage/pack-order.mjs +104 -47
  354. package/dist/storage/pack-ranges.d.mts +1 -2
  355. package/dist/storage/pack-ranges.mjs +48 -21
  356. package/dist/storage/pack-reads.d.mts +6 -3
  357. package/dist/storage/pack-reads.mjs +378 -98
  358. package/dist/storage/pack-receive.d.mts +2 -3
  359. package/dist/storage/pack-receive.mjs +22 -18
  360. package/dist/storage/packs.d.mts +2 -2
  361. package/dist/storage/packs.mjs +587 -156
  362. package/dist/storage/placed-reads.mjs +34 -17
  363. package/dist/storage/plan-columns.d.mts +4 -0
  364. package/dist/storage/plan-columns.mjs +238 -0
  365. package/dist/storage/prune-keep.mjs +134 -41
  366. package/dist/storage/prune-seen.mjs +1 -1
  367. package/dist/storage/prune-walk.mjs +203 -63
  368. package/dist/storage/prune.mjs +197 -121
  369. package/dist/storage/push-allotment.mjs +116 -25
  370. package/dist/storage/push-uploads.mjs +196 -58
  371. package/dist/storage/pushed-commits.mjs +24 -3
  372. package/dist/storage/quarantine.d.mts +3 -4
  373. package/dist/storage/range-cache.mjs +293 -41
  374. package/dist/storage/raw-ids.mjs +39 -10
  375. package/dist/storage/ready.d.mts +3 -4
  376. package/dist/storage/ready.mjs +121 -43
  377. package/dist/storage/receive-bounds.mjs +50 -13
  378. package/dist/storage/receive-cache.d.mts +7 -0
  379. package/dist/storage/receive-cache.mjs +147 -0
  380. package/dist/storage/receive-files.mjs +1 -1
  381. package/dist/storage/receive-links.mjs +1 -1
  382. package/dist/storage/receive-state.d.mts +2 -2
  383. package/dist/storage/receive-state.mjs +6 -8
  384. package/dist/storage/receive-steps.d.mts +20 -0
  385. package/dist/storage/receive-steps.mjs +298 -13
  386. package/dist/storage/repack-backlog.mjs +1 -3
  387. package/dist/storage/repack-contained.mjs +2 -2
  388. package/dist/storage/repack-job.mjs +1 -1
  389. package/dist/storage/repack.d.mts +3 -4
  390. package/dist/storage/repack.mjs +54 -9
  391. package/dist/storage/request-cache.mjs +57 -0
  392. package/dist/storage/roots.mjs +1 -24
  393. package/dist/storage/rows.d.mts +3 -3
  394. package/dist/storage/rows.mjs +2 -2
  395. package/dist/storage/runs.d.mts +2 -2
  396. package/dist/storage/runs.mjs +196 -44
  397. package/dist/storage/send-list.d.mts +1 -0
  398. package/dist/storage/send-list.mjs +112 -31
  399. package/dist/storage/single-flight.mjs +13 -7
  400. package/dist/storage/stream-whole.mjs +188 -66
  401. package/dist/storage/swap-walk.mjs +1 -1
  402. package/dist/storage/unpack.mjs +919 -199
  403. package/dist/storage/visible.mjs +112 -34
  404. package/dist/storage/walk.mjs +193 -38
  405. package/dist/storage/wants.mjs +27 -63
  406. package/dist/store/bodies.mjs +38 -0
  407. package/dist/store/call-count.d.mts +10 -14
  408. package/dist/store/call-count.mjs +58 -57
  409. package/dist/store/catalogue.d.mts +2 -2
  410. package/dist/store/catalogue.mjs +158 -36
  411. package/dist/store/crossing.mjs +1 -9
  412. package/dist/store/cursor-seal.d.mts +1 -2
  413. package/dist/store/cursor-seal.mjs +17 -7
  414. package/dist/store/door.mjs +188 -0
  415. package/dist/store/errors.d.mts +4 -5
  416. package/dist/store/errors.mjs +119 -49
  417. package/dist/store/git-store.mjs +30 -7
  418. package/dist/store/job-try.mjs +98 -40
  419. package/dist/store/list-job.mjs +32 -20
  420. package/dist/store/outbox.d.mts +2 -2
  421. package/dist/store/outbox.mjs +2 -2
  422. package/dist/store/queue-jobs.mjs +6 -12
  423. package/dist/store/records.d.mts +5 -2
  424. package/dist/store/records.mjs +5 -2
  425. package/dist/store/ref-rows.d.mts +2 -2
  426. package/dist/store/ref-rows.mjs +2 -2
  427. package/dist/store/repo-record.d.mts +2 -3
  428. package/dist/store/repo-record.mjs +34 -22
  429. package/dist/store/request-snapshot.mjs +5 -0
  430. package/dist/store/reservations.mjs +3 -3
  431. package/dist/store/scopes.mjs +11 -0
  432. package/dist/store/settle.mjs +4 -4
  433. package/dist/store/topic-jobs.mjs +5 -11
  434. package/dist/sync/bound.d.mts +3 -3
  435. package/dist/sync/bound.mjs +10 -7
  436. package/dist/sync/github.mjs +67 -69
  437. package/dist/sync/http.mjs +1 -1
  438. package/dist/sync/import.mjs +205 -57
  439. package/dist/sync/layer.d.mts +1 -1
  440. package/dist/sync/layer.mjs +6 -6
  441. package/dist/sync/lfs-batch.mjs +5 -6
  442. package/dist/sync/lfs-copy.mjs +191 -20
  443. package/dist/sync/mirror.mjs +34 -36
  444. package/dist/sync/said.mjs +17 -38
  445. package/dist/sync/step.mjs +292 -102
  446. package/dist/sync/tries.mjs +34 -15
  447. package/dist/sync.d.mts +2 -2
  448. package/dist/sync.mjs +2 -2
  449. package/dist/topics/advance.mjs +12 -13
  450. package/dist/topics/base.d.mts +15 -0
  451. package/dist/topics/base.mjs +8 -0
  452. package/dist/topics/calls.mjs +1 -1
  453. package/dist/topics/host.mjs +1 -1
  454. package/dist/topics/layer.d.mts +17 -21
  455. package/dist/topics/layer.mjs +2 -3
  456. package/dist/topics/members.mjs +4 -4
  457. package/dist/topics/public.d.mts +2 -1
  458. package/dist/topics/topic.mjs +2 -2
  459. package/package.json +5 -14
  460. package/dist/auth/helpers.mjs +0 -17
  461. package/dist/auth.d.mts +0 -5
  462. package/dist/auth.mjs +0 -5
  463. package/dist/contracts/promises.d.mts +0 -39
  464. package/dist/core/call-names.d.mts +0 -3
  465. package/dist/core/clock.mjs +0 -18
  466. package/dist/core/promise.mjs +0 -74
  467. package/dist/core/rules/commit-changes.d.mts +0 -13
  468. package/dist/effect.d.mts +0 -18
  469. package/dist/effect.mjs +0 -16
  470. package/dist/lfs/calls.mjs +0 -26
  471. package/dist/rest/api.d.mts +0 -23
  472. package/dist/rest/blobs.d.mts +0 -833
  473. package/dist/rest/commits.d.mts +0 -3543
  474. package/dist/rest/errors.d.mts +0 -2124
  475. package/dist/rest/events.d.mts +0 -426
  476. package/dist/rest/files.d.mts +0 -1342
  477. package/dist/rest/forks.d.mts +0 -2160
  478. package/dist/rest/handlers.d.mts +0 -8
  479. package/dist/rest/merges.d.mts +0 -477
  480. package/dist/rest/queue.d.mts +0 -5917
  481. package/dist/rest/refs.d.mts +0 -2988
  482. package/dist/rest/repos.d.mts +0 -2567
  483. package/dist/rest/tags.d.mts +0 -1316
  484. package/dist/rest/tokens.d.mts +0 -2614
  485. package/dist/rest/topics.d.mts +0 -2224
  486. package/dist/rest/trees.d.mts +0 -1709
  487. package/dist/rest/work.d.mts +0 -1695
  488. package/dist/server/joined.d.mts +0 -82
  489. package/dist/server/joined.mjs +0 -68
  490. package/dist/server/lifecycle.d.mts +0 -2
  491. package/dist/store/promises.d.mts +0 -11
  492. package/dist/store/promises.mjs +0 -327
@@ -1,2124 +0,0 @@
1
- import "../contracts/result.mjs";
2
- import "../client/transport.mjs";
3
- import * as Schema from "effect/Schema";
4
- import { HttpApiSchema } from "effect/http-api";
5
- /**
6
- * Every call's errors, as each REST endpoint declares them: a rate limit before 413, and each code
7
- * in `ref0-code` beside its body.
8
- */
9
- export declare const GitErrors: readonly [HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
10
- readonly code: "ALREADY_EXISTS";
11
- readonly message: string;
12
- readonly hint?: string;
13
- readonly context?: {
14
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
15
- readonly reason?: string;
16
- readonly verdict?: "fail" | "pass";
17
- };
18
- } | {
19
- readonly code: "DATA_LOSS";
20
- readonly message: string;
21
- readonly hint?: string;
22
- readonly context?: {
23
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
24
- readonly reason?: string;
25
- };
26
- } | {
27
- readonly code: "DEADLINE_EXCEEDED";
28
- readonly message: string;
29
- readonly hint?: string;
30
- readonly context?: {
31
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
32
- readonly id?: string;
33
- };
34
- } | {
35
- readonly code: "FAILED_PRECONDITION";
36
- readonly message: string;
37
- readonly hint?: string;
38
- readonly context?: {
39
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
40
- readonly reason?: string;
41
- readonly importState?: "cancelled" | "failed" | "running";
42
- readonly attribute?: string;
43
- readonly paths?: string[];
44
- readonly total?: number;
45
- readonly tip?: string;
46
- };
47
- } | {
48
- readonly code: "INTERNAL";
49
- readonly message: string;
50
- readonly hint?: string;
51
- readonly context?: {
52
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
53
- };
54
- } | {
55
- readonly code: "INVALID_ARGUMENT";
56
- readonly message: string;
57
- readonly hint?: string;
58
- readonly context?: {
59
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
60
- readonly reason?: string;
61
- readonly msgId?: string;
62
- readonly most?: number;
63
- readonly given?: number;
64
- };
65
- } | {
66
- readonly code: "NOT_ALLOWED";
67
- readonly message: string;
68
- readonly hint?: string;
69
- readonly context?: {
70
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
71
- readonly reason?: string;
72
- readonly entries?: string[];
73
- readonly paths?: string[];
74
- readonly total?: number;
75
- };
76
- } | {
77
- readonly code: "NOT_FOUND";
78
- readonly message: string;
79
- readonly hint?: string;
80
- readonly context?: {
81
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
82
- readonly reason?: string;
83
- readonly target?: string;
84
- };
85
- } | {
86
- readonly code: "RESOURCE_EXHAUSTED";
87
- readonly message: string;
88
- readonly hint?: string;
89
- readonly context?: {
90
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
91
- readonly reason?: string;
92
- readonly indexBytes?: number;
93
- readonly pushBytes?: number;
94
- readonly most?: number;
95
- };
96
- } | {
97
- readonly code: "UNAUTHENTICATED";
98
- readonly message: string;
99
- readonly hint?: string;
100
- readonly context?: {
101
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
102
- };
103
- } | {
104
- readonly code: "UNAVAILABLE";
105
- readonly message: string;
106
- readonly hint?: string;
107
- readonly context?: {
108
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
109
- readonly id?: string;
110
- readonly reason?: string;
111
- readonly packs?: number;
112
- readonly most?: number;
113
- readonly retryAfter?: number;
114
- };
115
- }, unknown, never, never>, Schema.Codec<{
116
- readonly code: "ALREADY_EXISTS";
117
- readonly message: string;
118
- readonly hint?: string;
119
- readonly context?: {
120
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
121
- readonly reason?: string;
122
- readonly verdict?: "fail" | "pass";
123
- };
124
- } | {
125
- readonly code: "DATA_LOSS";
126
- readonly message: string;
127
- readonly hint?: string;
128
- readonly context?: {
129
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
130
- readonly reason?: string;
131
- };
132
- } | {
133
- readonly code: "DEADLINE_EXCEEDED";
134
- readonly message: string;
135
- readonly hint?: string;
136
- readonly context?: {
137
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
138
- readonly id?: string;
139
- };
140
- } | {
141
- readonly code: "FAILED_PRECONDITION";
142
- readonly message: string;
143
- readonly hint?: string;
144
- readonly context?: {
145
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
146
- readonly reason?: string;
147
- readonly importState?: "cancelled" | "failed" | "running";
148
- readonly attribute?: string;
149
- readonly paths?: string[];
150
- readonly total?: number;
151
- readonly tip?: string;
152
- };
153
- } | {
154
- readonly code: "INTERNAL";
155
- readonly message: string;
156
- readonly hint?: string;
157
- readonly context?: {
158
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
159
- };
160
- } | {
161
- readonly code: "INVALID_ARGUMENT";
162
- readonly message: string;
163
- readonly hint?: string;
164
- readonly context?: {
165
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
166
- readonly reason?: string;
167
- readonly msgId?: string;
168
- readonly most?: number;
169
- readonly given?: number;
170
- };
171
- } | {
172
- readonly code: "NOT_ALLOWED";
173
- readonly message: string;
174
- readonly hint?: string;
175
- readonly context?: {
176
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
177
- readonly reason?: string;
178
- readonly entries?: string[];
179
- readonly paths?: string[];
180
- readonly total?: number;
181
- };
182
- } | {
183
- readonly code: "NOT_FOUND";
184
- readonly message: string;
185
- readonly hint?: string;
186
- readonly context?: {
187
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
188
- readonly reason?: string;
189
- readonly target?: string;
190
- };
191
- } | {
192
- readonly code: "RESOURCE_EXHAUSTED";
193
- readonly message: string;
194
- readonly hint?: string;
195
- readonly context?: {
196
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
197
- readonly reason?: string;
198
- readonly indexBytes?: number;
199
- readonly pushBytes?: number;
200
- readonly most?: number;
201
- };
202
- } | {
203
- readonly code: "UNAUTHENTICATED";
204
- readonly message: string;
205
- readonly hint?: string;
206
- readonly context?: {
207
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
208
- };
209
- } | {
210
- readonly code: "UNAVAILABLE";
211
- readonly message: string;
212
- readonly hint?: string;
213
- readonly context?: {
214
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
215
- readonly id?: string;
216
- readonly reason?: string;
217
- readonly packs?: number;
218
- readonly most?: number;
219
- readonly retryAfter?: number;
220
- };
221
- }, unknown, never, never>, {
222
- "ref0-code": Schema.String;
223
- }>, HttpApiSchema.encodeToWithHeaders<Schema.Struct<{
224
- readonly code: Schema.Literal<"ALREADY_EXISTS">;
225
- readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
226
- readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
227
- readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
228
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["key-reused"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
229
- verdict: Schema.optionalKey<Schema.Literals<readonly ["pass", "fail"]>>;
230
- }>, readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.decodeTo<Schema.String, Schema.String, never, never>, Schema.Number, Schema.Boolean, Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>, Schema.Undefined]>>]>>;
231
- }> | Schema.Struct<{
232
- readonly code: Schema.Literal<"DATA_LOSS">;
233
- readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
234
- readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
235
- readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
236
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["event-version", "graph-length", "merge-incomplete"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
237
- }>, readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.decodeTo<Schema.String, Schema.String, never, never>, Schema.Number, Schema.Boolean, Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>, Schema.Undefined]>>]>>;
238
- }> | Schema.Struct<{
239
- readonly code: Schema.Literal<"DEADLINE_EXCEEDED">;
240
- readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
241
- readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
242
- readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
243
- id: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
244
- }>, readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.decodeTo<Schema.String, Schema.String, never, never>, Schema.Number, Schema.Boolean, Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>, Schema.Undefined]>>]>>;
245
- }> | Schema.Struct<{
246
- readonly code: Schema.Literal<"FAILED_PRECONDITION">;
247
- readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
248
- readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
249
- readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
250
- reason: Schema.optionalKey<Schema.Union<readonly [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", "import-cancelled", "importing", "history-not-imported", "stage-gone", "remote-refused", "atomic-partner", "merges-off", "no-releases"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
251
- importState: Schema.optionalKey<Schema.Literals<readonly ["running", "cancelled", "failed"]>>;
252
- attribute: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
253
- paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
254
- total: Schema.optionalKey<Schema.Number>;
255
- tip: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
256
- }>, readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.decodeTo<Schema.String, Schema.String, never, never>, Schema.Number, Schema.Boolean, Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>, Schema.Undefined]>>]>>;
257
- }> | Schema.Struct<{
258
- readonly code: Schema.Literal<"INTERNAL">;
259
- readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
260
- readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
261
- readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{}>, readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.decodeTo<Schema.String, Schema.String, never, never>, Schema.Number, Schema.Boolean, Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>, Schema.Undefined]>>]>>;
262
- }> | Schema.Struct<{
263
- readonly code: Schema.Literal<"INVALID_ARGUMENT">;
264
- readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
265
- readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
266
- readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
267
- reason: Schema.optionalKey<Schema.Union<readonly [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"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
268
- msgId: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
269
- most: Schema.optionalKey<Schema.Number>;
270
- given: Schema.optionalKey<Schema.Number>;
271
- }>, readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.decodeTo<Schema.String, Schema.String, never, never>, Schema.Number, Schema.Boolean, Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>, Schema.Undefined]>>]>>;
272
- }> | Schema.Struct<{
273
- readonly code: Schema.Literal<"NOT_ALLOWED">;
274
- readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
275
- readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
276
- readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
277
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["files-refused", "entry-unpublishable", "fetch-depth-unsupported"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
278
- entries: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
279
- paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
280
- total: Schema.optionalKey<Schema.Number>;
281
- }>, readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.decodeTo<Schema.String, Schema.String, never, never>, Schema.Number, Schema.Boolean, Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>, Schema.Undefined]>>]>>;
282
- }> | Schema.Struct<{
283
- readonly code: Schema.Literal<"NOT_FOUND">;
284
- readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
285
- readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
286
- readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
287
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["no-queue", "no-sync", "no-topics", "ambiguous"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
288
- target: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
289
- }>, readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.decodeTo<Schema.String, Schema.String, never, never>, Schema.Number, Schema.Boolean, Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>, Schema.Undefined]>>]>>;
290
- }> | Schema.Struct<{
291
- readonly code: Schema.Literal<"RESOURCE_EXHAUSTED">;
292
- readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
293
- readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
294
- readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
295
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "repo-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", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large", "job-step-calls", "job-step-yielded"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
296
- indexBytes: Schema.optionalKey<Schema.Number>;
297
- pushBytes: Schema.optionalKey<Schema.Number>;
298
- most: Schema.optionalKey<Schema.Number>;
299
- }>, readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.decodeTo<Schema.String, Schema.String, never, never>, Schema.Number, Schema.Boolean, Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>, Schema.Undefined]>>]>>;
300
- }> | Schema.Struct<{
301
- readonly code: Schema.Literal<"UNAUTHENTICATED">;
302
- readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
303
- readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
304
- readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{}>, readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.decodeTo<Schema.String, Schema.String, never, never>, Schema.Number, Schema.Boolean, Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>, Schema.Undefined]>>]>>;
305
- }> | Schema.Struct<{
306
- readonly code: Schema.Literal<"UNAVAILABLE">;
307
- readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
308
- readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
309
- readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
310
- id: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
311
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["busy", "packs-awaiting-repack", "awaiting-index", "may-have-saved", "too-many-writes", "starting"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
312
- packs: Schema.optionalKey<Schema.Number>;
313
- most: Schema.optionalKey<Schema.Number>;
314
- retryAfter: Schema.optionalKey<Schema.Number>;
315
- }>, readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.decodeTo<Schema.String, Schema.String, never, never>, Schema.Number, Schema.Boolean, Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>, Schema.Undefined]>>]>>;
316
- }>, Schema.Struct<{
317
- readonly code: Schema.Literal<"ALREADY_EXISTS">;
318
- readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
319
- readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
320
- readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
321
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["key-reused"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
322
- verdict: Schema.optionalKey<Schema.Literals<readonly ["pass", "fail"]>>;
323
- }>, readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.decodeTo<Schema.String, Schema.String, never, never>, Schema.Number, Schema.Boolean, Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>, Schema.Undefined]>>]>>;
324
- }> | Schema.Struct<{
325
- readonly code: Schema.Literal<"DATA_LOSS">;
326
- readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
327
- readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
328
- readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
329
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["event-version", "graph-length", "merge-incomplete"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
330
- }>, readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.decodeTo<Schema.String, Schema.String, never, never>, Schema.Number, Schema.Boolean, Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>, Schema.Undefined]>>]>>;
331
- }> | Schema.Struct<{
332
- readonly code: Schema.Literal<"DEADLINE_EXCEEDED">;
333
- readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
334
- readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
335
- readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
336
- id: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
337
- }>, readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.decodeTo<Schema.String, Schema.String, never, never>, Schema.Number, Schema.Boolean, Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>, Schema.Undefined]>>]>>;
338
- }> | Schema.Struct<{
339
- readonly code: Schema.Literal<"FAILED_PRECONDITION">;
340
- readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
341
- readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
342
- readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
343
- reason: Schema.optionalKey<Schema.Union<readonly [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", "import-cancelled", "importing", "history-not-imported", "stage-gone", "remote-refused", "atomic-partner", "merges-off", "no-releases"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
344
- importState: Schema.optionalKey<Schema.Literals<readonly ["running", "cancelled", "failed"]>>;
345
- attribute: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
346
- paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
347
- total: Schema.optionalKey<Schema.Number>;
348
- tip: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
349
- }>, readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.decodeTo<Schema.String, Schema.String, never, never>, Schema.Number, Schema.Boolean, Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>, Schema.Undefined]>>]>>;
350
- }> | Schema.Struct<{
351
- readonly code: Schema.Literal<"INTERNAL">;
352
- readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
353
- readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
354
- readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{}>, readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.decodeTo<Schema.String, Schema.String, never, never>, Schema.Number, Schema.Boolean, Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>, Schema.Undefined]>>]>>;
355
- }> | Schema.Struct<{
356
- readonly code: Schema.Literal<"INVALID_ARGUMENT">;
357
- readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
358
- readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
359
- readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
360
- reason: Schema.optionalKey<Schema.Union<readonly [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"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
361
- msgId: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
362
- most: Schema.optionalKey<Schema.Number>;
363
- given: Schema.optionalKey<Schema.Number>;
364
- }>, readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.decodeTo<Schema.String, Schema.String, never, never>, Schema.Number, Schema.Boolean, Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>, Schema.Undefined]>>]>>;
365
- }> | Schema.Struct<{
366
- readonly code: Schema.Literal<"NOT_ALLOWED">;
367
- readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
368
- readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
369
- readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
370
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["files-refused", "entry-unpublishable", "fetch-depth-unsupported"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
371
- entries: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
372
- paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
373
- total: Schema.optionalKey<Schema.Number>;
374
- }>, readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.decodeTo<Schema.String, Schema.String, never, never>, Schema.Number, Schema.Boolean, Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>, Schema.Undefined]>>]>>;
375
- }> | Schema.Struct<{
376
- readonly code: Schema.Literal<"NOT_FOUND">;
377
- readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
378
- readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
379
- readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
380
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["no-queue", "no-sync", "no-topics", "ambiguous"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
381
- target: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
382
- }>, readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.decodeTo<Schema.String, Schema.String, never, never>, Schema.Number, Schema.Boolean, Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>, Schema.Undefined]>>]>>;
383
- }> | Schema.Struct<{
384
- readonly code: Schema.Literal<"RESOURCE_EXHAUSTED">;
385
- readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
386
- readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
387
- readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
388
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "repo-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", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large", "job-step-calls", "job-step-yielded"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
389
- indexBytes: Schema.optionalKey<Schema.Number>;
390
- pushBytes: Schema.optionalKey<Schema.Number>;
391
- most: Schema.optionalKey<Schema.Number>;
392
- }>, readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.decodeTo<Schema.String, Schema.String, never, never>, Schema.Number, Schema.Boolean, Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>, Schema.Undefined]>>]>>;
393
- }> | Schema.Struct<{
394
- readonly code: Schema.Literal<"UNAUTHENTICATED">;
395
- readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
396
- readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
397
- readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{}>, readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.decodeTo<Schema.String, Schema.String, never, never>, Schema.Number, Schema.Boolean, Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>, Schema.Undefined]>>]>>;
398
- }> | Schema.Struct<{
399
- readonly code: Schema.Literal<"UNAVAILABLE">;
400
- readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
401
- readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
402
- readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
403
- id: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
404
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["busy", "packs-awaiting-repack", "awaiting-index", "may-have-saved", "too-many-writes", "starting"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
405
- packs: Schema.optionalKey<Schema.Number>;
406
- most: Schema.optionalKey<Schema.Number>;
407
- retryAfter: Schema.optionalKey<Schema.Number>;
408
- }>, readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.decodeTo<Schema.String, Schema.String, never, never>, Schema.Number, Schema.Boolean, Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>, Schema.Undefined]>>]>>;
409
- }>, {
410
- "ref0-code": Schema.String;
411
- 'www-authenticate': Schema.String;
412
- }>, HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
413
- readonly code: "ALREADY_EXISTS";
414
- readonly message: string;
415
- readonly hint?: string;
416
- readonly context?: {
417
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
418
- readonly reason?: string;
419
- readonly verdict?: "fail" | "pass";
420
- };
421
- } | {
422
- readonly code: "DATA_LOSS";
423
- readonly message: string;
424
- readonly hint?: string;
425
- readonly context?: {
426
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
427
- readonly reason?: string;
428
- };
429
- } | {
430
- readonly code: "DEADLINE_EXCEEDED";
431
- readonly message: string;
432
- readonly hint?: string;
433
- readonly context?: {
434
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
435
- readonly id?: string;
436
- };
437
- } | {
438
- readonly code: "FAILED_PRECONDITION";
439
- readonly message: string;
440
- readonly hint?: string;
441
- readonly context?: {
442
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
443
- readonly reason?: string;
444
- readonly importState?: "cancelled" | "failed" | "running";
445
- readonly attribute?: string;
446
- readonly paths?: string[];
447
- readonly total?: number;
448
- readonly tip?: string;
449
- };
450
- } | {
451
- readonly code: "INTERNAL";
452
- readonly message: string;
453
- readonly hint?: string;
454
- readonly context?: {
455
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
456
- };
457
- } | {
458
- readonly code: "INVALID_ARGUMENT";
459
- readonly message: string;
460
- readonly hint?: string;
461
- readonly context?: {
462
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
463
- readonly reason?: string;
464
- readonly msgId?: string;
465
- readonly most?: number;
466
- readonly given?: number;
467
- };
468
- } | {
469
- readonly code: "NOT_ALLOWED";
470
- readonly message: string;
471
- readonly hint?: string;
472
- readonly context?: {
473
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
474
- readonly reason?: string;
475
- readonly entries?: string[];
476
- readonly paths?: string[];
477
- readonly total?: number;
478
- };
479
- } | {
480
- readonly code: "NOT_FOUND";
481
- readonly message: string;
482
- readonly hint?: string;
483
- readonly context?: {
484
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
485
- readonly reason?: string;
486
- readonly target?: string;
487
- };
488
- } | {
489
- readonly code: "RESOURCE_EXHAUSTED";
490
- readonly message: string;
491
- readonly hint?: string;
492
- readonly context?: {
493
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
494
- readonly reason?: string;
495
- readonly indexBytes?: number;
496
- readonly pushBytes?: number;
497
- readonly most?: number;
498
- };
499
- } | {
500
- readonly code: "UNAUTHENTICATED";
501
- readonly message: string;
502
- readonly hint?: string;
503
- readonly context?: {
504
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
505
- };
506
- } | {
507
- readonly code: "UNAVAILABLE";
508
- readonly message: string;
509
- readonly hint?: string;
510
- readonly context?: {
511
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
512
- readonly id?: string;
513
- readonly reason?: string;
514
- readonly packs?: number;
515
- readonly most?: number;
516
- readonly retryAfter?: number;
517
- };
518
- }, unknown, never, never>, Schema.Codec<{
519
- readonly code: "ALREADY_EXISTS";
520
- readonly message: string;
521
- readonly hint?: string;
522
- readonly context?: {
523
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
524
- readonly reason?: string;
525
- readonly verdict?: "fail" | "pass";
526
- };
527
- } | {
528
- readonly code: "DATA_LOSS";
529
- readonly message: string;
530
- readonly hint?: string;
531
- readonly context?: {
532
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
533
- readonly reason?: string;
534
- };
535
- } | {
536
- readonly code: "DEADLINE_EXCEEDED";
537
- readonly message: string;
538
- readonly hint?: string;
539
- readonly context?: {
540
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
541
- readonly id?: string;
542
- };
543
- } | {
544
- readonly code: "FAILED_PRECONDITION";
545
- readonly message: string;
546
- readonly hint?: string;
547
- readonly context?: {
548
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
549
- readonly reason?: string;
550
- readonly importState?: "cancelled" | "failed" | "running";
551
- readonly attribute?: string;
552
- readonly paths?: string[];
553
- readonly total?: number;
554
- readonly tip?: string;
555
- };
556
- } | {
557
- readonly code: "INTERNAL";
558
- readonly message: string;
559
- readonly hint?: string;
560
- readonly context?: {
561
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
562
- };
563
- } | {
564
- readonly code: "INVALID_ARGUMENT";
565
- readonly message: string;
566
- readonly hint?: string;
567
- readonly context?: {
568
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
569
- readonly reason?: string;
570
- readonly msgId?: string;
571
- readonly most?: number;
572
- readonly given?: number;
573
- };
574
- } | {
575
- readonly code: "NOT_ALLOWED";
576
- readonly message: string;
577
- readonly hint?: string;
578
- readonly context?: {
579
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
580
- readonly reason?: string;
581
- readonly entries?: string[];
582
- readonly paths?: string[];
583
- readonly total?: number;
584
- };
585
- } | {
586
- readonly code: "NOT_FOUND";
587
- readonly message: string;
588
- readonly hint?: string;
589
- readonly context?: {
590
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
591
- readonly reason?: string;
592
- readonly target?: string;
593
- };
594
- } | {
595
- readonly code: "RESOURCE_EXHAUSTED";
596
- readonly message: string;
597
- readonly hint?: string;
598
- readonly context?: {
599
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
600
- readonly reason?: string;
601
- readonly indexBytes?: number;
602
- readonly pushBytes?: number;
603
- readonly most?: number;
604
- };
605
- } | {
606
- readonly code: "UNAUTHENTICATED";
607
- readonly message: string;
608
- readonly hint?: string;
609
- readonly context?: {
610
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
611
- };
612
- } | {
613
- readonly code: "UNAVAILABLE";
614
- readonly message: string;
615
- readonly hint?: string;
616
- readonly context?: {
617
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
618
- readonly id?: string;
619
- readonly reason?: string;
620
- readonly packs?: number;
621
- readonly most?: number;
622
- readonly retryAfter?: number;
623
- };
624
- }, unknown, never, never>, {
625
- "ref0-code": Schema.String;
626
- }>, HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
627
- readonly code: "ALREADY_EXISTS";
628
- readonly message: string;
629
- readonly hint?: string;
630
- readonly context?: {
631
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
632
- readonly reason?: string;
633
- readonly verdict?: "fail" | "pass";
634
- };
635
- } | {
636
- readonly code: "DATA_LOSS";
637
- readonly message: string;
638
- readonly hint?: string;
639
- readonly context?: {
640
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
641
- readonly reason?: string;
642
- };
643
- } | {
644
- readonly code: "DEADLINE_EXCEEDED";
645
- readonly message: string;
646
- readonly hint?: string;
647
- readonly context?: {
648
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
649
- readonly id?: string;
650
- };
651
- } | {
652
- readonly code: "FAILED_PRECONDITION";
653
- readonly message: string;
654
- readonly hint?: string;
655
- readonly context?: {
656
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
657
- readonly reason?: string;
658
- readonly importState?: "cancelled" | "failed" | "running";
659
- readonly attribute?: string;
660
- readonly paths?: string[];
661
- readonly total?: number;
662
- readonly tip?: string;
663
- };
664
- } | {
665
- readonly code: "INTERNAL";
666
- readonly message: string;
667
- readonly hint?: string;
668
- readonly context?: {
669
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
670
- };
671
- } | {
672
- readonly code: "INVALID_ARGUMENT";
673
- readonly message: string;
674
- readonly hint?: string;
675
- readonly context?: {
676
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
677
- readonly reason?: string;
678
- readonly msgId?: string;
679
- readonly most?: number;
680
- readonly given?: number;
681
- };
682
- } | {
683
- readonly code: "NOT_ALLOWED";
684
- readonly message: string;
685
- readonly hint?: string;
686
- readonly context?: {
687
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
688
- readonly reason?: string;
689
- readonly entries?: string[];
690
- readonly paths?: string[];
691
- readonly total?: number;
692
- };
693
- } | {
694
- readonly code: "NOT_FOUND";
695
- readonly message: string;
696
- readonly hint?: string;
697
- readonly context?: {
698
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
699
- readonly reason?: string;
700
- readonly target?: string;
701
- };
702
- } | {
703
- readonly code: "RESOURCE_EXHAUSTED";
704
- readonly message: string;
705
- readonly hint?: string;
706
- readonly context?: {
707
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
708
- readonly reason?: string;
709
- readonly indexBytes?: number;
710
- readonly pushBytes?: number;
711
- readonly most?: number;
712
- };
713
- } | {
714
- readonly code: "UNAUTHENTICATED";
715
- readonly message: string;
716
- readonly hint?: string;
717
- readonly context?: {
718
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
719
- };
720
- } | {
721
- readonly code: "UNAVAILABLE";
722
- readonly message: string;
723
- readonly hint?: string;
724
- readonly context?: {
725
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
726
- readonly id?: string;
727
- readonly reason?: string;
728
- readonly packs?: number;
729
- readonly most?: number;
730
- readonly retryAfter?: number;
731
- };
732
- }, unknown, never, never>, Schema.Codec<{
733
- readonly code: "ALREADY_EXISTS";
734
- readonly message: string;
735
- readonly hint?: string;
736
- readonly context?: {
737
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
738
- readonly reason?: string;
739
- readonly verdict?: "fail" | "pass";
740
- };
741
- } | {
742
- readonly code: "DATA_LOSS";
743
- readonly message: string;
744
- readonly hint?: string;
745
- readonly context?: {
746
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
747
- readonly reason?: string;
748
- };
749
- } | {
750
- readonly code: "DEADLINE_EXCEEDED";
751
- readonly message: string;
752
- readonly hint?: string;
753
- readonly context?: {
754
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
755
- readonly id?: string;
756
- };
757
- } | {
758
- readonly code: "FAILED_PRECONDITION";
759
- readonly message: string;
760
- readonly hint?: string;
761
- readonly context?: {
762
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
763
- readonly reason?: string;
764
- readonly importState?: "cancelled" | "failed" | "running";
765
- readonly attribute?: string;
766
- readonly paths?: string[];
767
- readonly total?: number;
768
- readonly tip?: string;
769
- };
770
- } | {
771
- readonly code: "INTERNAL";
772
- readonly message: string;
773
- readonly hint?: string;
774
- readonly context?: {
775
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
776
- };
777
- } | {
778
- readonly code: "INVALID_ARGUMENT";
779
- readonly message: string;
780
- readonly hint?: string;
781
- readonly context?: {
782
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
783
- readonly reason?: string;
784
- readonly msgId?: string;
785
- readonly most?: number;
786
- readonly given?: number;
787
- };
788
- } | {
789
- readonly code: "NOT_ALLOWED";
790
- readonly message: string;
791
- readonly hint?: string;
792
- readonly context?: {
793
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
794
- readonly reason?: string;
795
- readonly entries?: string[];
796
- readonly paths?: string[];
797
- readonly total?: number;
798
- };
799
- } | {
800
- readonly code: "NOT_FOUND";
801
- readonly message: string;
802
- readonly hint?: string;
803
- readonly context?: {
804
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
805
- readonly reason?: string;
806
- readonly target?: string;
807
- };
808
- } | {
809
- readonly code: "RESOURCE_EXHAUSTED";
810
- readonly message: string;
811
- readonly hint?: string;
812
- readonly context?: {
813
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
814
- readonly reason?: string;
815
- readonly indexBytes?: number;
816
- readonly pushBytes?: number;
817
- readonly most?: number;
818
- };
819
- } | {
820
- readonly code: "UNAUTHENTICATED";
821
- readonly message: string;
822
- readonly hint?: string;
823
- readonly context?: {
824
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
825
- };
826
- } | {
827
- readonly code: "UNAVAILABLE";
828
- readonly message: string;
829
- readonly hint?: string;
830
- readonly context?: {
831
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
832
- readonly id?: string;
833
- readonly reason?: string;
834
- readonly packs?: number;
835
- readonly most?: number;
836
- readonly retryAfter?: number;
837
- };
838
- }, unknown, never, never>, {
839
- "ref0-code": Schema.String;
840
- }>, HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
841
- readonly code: "ALREADY_EXISTS";
842
- readonly message: string;
843
- readonly hint?: string;
844
- readonly context?: {
845
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
846
- readonly reason?: string;
847
- readonly verdict?: "fail" | "pass";
848
- };
849
- } | {
850
- readonly code: "DATA_LOSS";
851
- readonly message: string;
852
- readonly hint?: string;
853
- readonly context?: {
854
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
855
- readonly reason?: string;
856
- };
857
- } | {
858
- readonly code: "DEADLINE_EXCEEDED";
859
- readonly message: string;
860
- readonly hint?: string;
861
- readonly context?: {
862
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
863
- readonly id?: string;
864
- };
865
- } | {
866
- readonly code: "FAILED_PRECONDITION";
867
- readonly message: string;
868
- readonly hint?: string;
869
- readonly context?: {
870
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
871
- readonly reason?: string;
872
- readonly importState?: "cancelled" | "failed" | "running";
873
- readonly attribute?: string;
874
- readonly paths?: string[];
875
- readonly total?: number;
876
- readonly tip?: string;
877
- };
878
- } | {
879
- readonly code: "INTERNAL";
880
- readonly message: string;
881
- readonly hint?: string;
882
- readonly context?: {
883
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
884
- };
885
- } | {
886
- readonly code: "INVALID_ARGUMENT";
887
- readonly message: string;
888
- readonly hint?: string;
889
- readonly context?: {
890
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
891
- readonly reason?: string;
892
- readonly msgId?: string;
893
- readonly most?: number;
894
- readonly given?: number;
895
- };
896
- } | {
897
- readonly code: "NOT_ALLOWED";
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 entries?: string[];
904
- readonly paths?: string[];
905
- readonly total?: number;
906
- };
907
- } | {
908
- readonly code: "NOT_FOUND";
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 target?: string;
915
- };
916
- } | {
917
- readonly code: "RESOURCE_EXHAUSTED";
918
- readonly message: string;
919
- readonly hint?: string;
920
- readonly context?: {
921
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
922
- readonly reason?: string;
923
- readonly indexBytes?: number;
924
- readonly pushBytes?: number;
925
- readonly most?: number;
926
- };
927
- } | {
928
- readonly code: "UNAUTHENTICATED";
929
- readonly message: string;
930
- readonly hint?: string;
931
- readonly context?: {
932
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
933
- };
934
- } | {
935
- readonly code: "UNAVAILABLE";
936
- readonly message: string;
937
- readonly hint?: string;
938
- readonly context?: {
939
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
940
- readonly id?: string;
941
- readonly reason?: string;
942
- readonly packs?: number;
943
- readonly most?: number;
944
- readonly retryAfter?: number;
945
- };
946
- }, unknown, never, never>, Schema.Codec<{
947
- readonly code: "ALREADY_EXISTS";
948
- readonly message: string;
949
- readonly hint?: string;
950
- readonly context?: {
951
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
952
- readonly reason?: string;
953
- readonly verdict?: "fail" | "pass";
954
- };
955
- } | {
956
- readonly code: "DATA_LOSS";
957
- readonly message: string;
958
- readonly hint?: string;
959
- readonly context?: {
960
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
961
- readonly reason?: string;
962
- };
963
- } | {
964
- readonly code: "DEADLINE_EXCEEDED";
965
- readonly message: string;
966
- readonly hint?: string;
967
- readonly context?: {
968
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
969
- readonly id?: string;
970
- };
971
- } | {
972
- readonly code: "FAILED_PRECONDITION";
973
- readonly message: string;
974
- readonly hint?: string;
975
- readonly context?: {
976
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
977
- readonly reason?: string;
978
- readonly importState?: "cancelled" | "failed" | "running";
979
- readonly attribute?: string;
980
- readonly paths?: string[];
981
- readonly total?: number;
982
- readonly tip?: string;
983
- };
984
- } | {
985
- readonly code: "INTERNAL";
986
- readonly message: string;
987
- readonly hint?: string;
988
- readonly context?: {
989
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
990
- };
991
- } | {
992
- readonly code: "INVALID_ARGUMENT";
993
- readonly message: string;
994
- readonly hint?: string;
995
- readonly context?: {
996
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
997
- readonly reason?: string;
998
- readonly msgId?: string;
999
- readonly most?: number;
1000
- readonly given?: number;
1001
- };
1002
- } | {
1003
- readonly code: "NOT_ALLOWED";
1004
- readonly message: string;
1005
- readonly hint?: string;
1006
- readonly context?: {
1007
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1008
- readonly reason?: string;
1009
- readonly entries?: string[];
1010
- readonly paths?: string[];
1011
- readonly total?: number;
1012
- };
1013
- } | {
1014
- readonly code: "NOT_FOUND";
1015
- readonly message: string;
1016
- readonly hint?: string;
1017
- readonly context?: {
1018
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1019
- readonly reason?: string;
1020
- readonly target?: string;
1021
- };
1022
- } | {
1023
- readonly code: "RESOURCE_EXHAUSTED";
1024
- readonly message: string;
1025
- readonly hint?: string;
1026
- readonly context?: {
1027
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1028
- readonly reason?: string;
1029
- readonly indexBytes?: number;
1030
- readonly pushBytes?: number;
1031
- readonly most?: number;
1032
- };
1033
- } | {
1034
- readonly code: "UNAUTHENTICATED";
1035
- readonly message: string;
1036
- readonly hint?: string;
1037
- readonly context?: {
1038
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1039
- };
1040
- } | {
1041
- readonly code: "UNAVAILABLE";
1042
- readonly message: string;
1043
- readonly hint?: string;
1044
- readonly context?: {
1045
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1046
- readonly id?: string;
1047
- readonly reason?: string;
1048
- readonly packs?: number;
1049
- readonly most?: number;
1050
- readonly retryAfter?: number;
1051
- };
1052
- }, unknown, never, never>, {
1053
- "ref0-code": Schema.String;
1054
- }>, HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
1055
- readonly code: "ALREADY_EXISTS";
1056
- readonly message: string;
1057
- readonly hint?: string;
1058
- readonly context?: {
1059
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1060
- readonly reason?: string;
1061
- readonly verdict?: "fail" | "pass";
1062
- };
1063
- } | {
1064
- readonly code: "DATA_LOSS";
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
- };
1071
- } | {
1072
- readonly code: "DEADLINE_EXCEEDED";
1073
- readonly message: string;
1074
- readonly hint?: string;
1075
- readonly context?: {
1076
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1077
- readonly id?: string;
1078
- };
1079
- } | {
1080
- readonly code: "FAILED_PRECONDITION";
1081
- readonly message: string;
1082
- readonly hint?: string;
1083
- readonly context?: {
1084
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1085
- readonly reason?: string;
1086
- readonly importState?: "cancelled" | "failed" | "running";
1087
- readonly attribute?: string;
1088
- readonly paths?: string[];
1089
- readonly total?: number;
1090
- readonly tip?: string;
1091
- };
1092
- } | {
1093
- readonly code: "INTERNAL";
1094
- readonly message: string;
1095
- readonly hint?: string;
1096
- readonly context?: {
1097
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1098
- };
1099
- } | {
1100
- readonly code: "INVALID_ARGUMENT";
1101
- readonly message: string;
1102
- readonly hint?: string;
1103
- readonly context?: {
1104
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1105
- readonly reason?: string;
1106
- readonly msgId?: string;
1107
- readonly most?: number;
1108
- readonly given?: number;
1109
- };
1110
- } | {
1111
- readonly code: "NOT_ALLOWED";
1112
- readonly message: string;
1113
- readonly hint?: string;
1114
- readonly context?: {
1115
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1116
- readonly reason?: string;
1117
- readonly entries?: string[];
1118
- readonly paths?: string[];
1119
- readonly total?: number;
1120
- };
1121
- } | {
1122
- readonly code: "NOT_FOUND";
1123
- readonly message: string;
1124
- readonly hint?: string;
1125
- readonly context?: {
1126
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1127
- readonly reason?: string;
1128
- readonly target?: string;
1129
- };
1130
- } | {
1131
- readonly code: "RESOURCE_EXHAUSTED";
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 indexBytes?: number;
1138
- readonly pushBytes?: number;
1139
- readonly most?: number;
1140
- };
1141
- } | {
1142
- readonly code: "UNAUTHENTICATED";
1143
- readonly message: string;
1144
- readonly hint?: string;
1145
- readonly context?: {
1146
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1147
- };
1148
- } | {
1149
- readonly code: "UNAVAILABLE";
1150
- readonly message: string;
1151
- readonly hint?: string;
1152
- readonly context?: {
1153
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1154
- readonly id?: string;
1155
- readonly reason?: string;
1156
- readonly packs?: number;
1157
- readonly most?: number;
1158
- readonly retryAfter?: number;
1159
- };
1160
- }, unknown, never, never>, Schema.Codec<{
1161
- readonly code: "ALREADY_EXISTS";
1162
- readonly message: string;
1163
- readonly hint?: string;
1164
- readonly context?: {
1165
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1166
- readonly reason?: string;
1167
- readonly verdict?: "fail" | "pass";
1168
- };
1169
- } | {
1170
- readonly code: "DATA_LOSS";
1171
- readonly message: string;
1172
- readonly hint?: string;
1173
- readonly context?: {
1174
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1175
- readonly reason?: string;
1176
- };
1177
- } | {
1178
- readonly code: "DEADLINE_EXCEEDED";
1179
- readonly message: string;
1180
- readonly hint?: string;
1181
- readonly context?: {
1182
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1183
- readonly id?: string;
1184
- };
1185
- } | {
1186
- readonly code: "FAILED_PRECONDITION";
1187
- readonly message: string;
1188
- readonly hint?: string;
1189
- readonly context?: {
1190
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1191
- readonly reason?: string;
1192
- readonly importState?: "cancelled" | "failed" | "running";
1193
- readonly attribute?: string;
1194
- readonly paths?: string[];
1195
- readonly total?: number;
1196
- readonly tip?: string;
1197
- };
1198
- } | {
1199
- readonly code: "INTERNAL";
1200
- readonly message: string;
1201
- readonly hint?: string;
1202
- readonly context?: {
1203
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1204
- };
1205
- } | {
1206
- readonly code: "INVALID_ARGUMENT";
1207
- readonly message: string;
1208
- readonly hint?: string;
1209
- readonly context?: {
1210
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1211
- readonly reason?: string;
1212
- readonly msgId?: string;
1213
- readonly most?: number;
1214
- readonly given?: number;
1215
- };
1216
- } | {
1217
- readonly code: "NOT_ALLOWED";
1218
- readonly message: string;
1219
- readonly hint?: string;
1220
- readonly context?: {
1221
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1222
- readonly reason?: string;
1223
- readonly entries?: string[];
1224
- readonly paths?: string[];
1225
- readonly total?: number;
1226
- };
1227
- } | {
1228
- readonly code: "NOT_FOUND";
1229
- readonly message: string;
1230
- readonly hint?: string;
1231
- readonly context?: {
1232
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1233
- readonly reason?: string;
1234
- readonly target?: string;
1235
- };
1236
- } | {
1237
- readonly code: "RESOURCE_EXHAUSTED";
1238
- readonly message: string;
1239
- readonly hint?: string;
1240
- readonly context?: {
1241
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1242
- readonly reason?: string;
1243
- readonly indexBytes?: number;
1244
- readonly pushBytes?: number;
1245
- readonly most?: number;
1246
- };
1247
- } | {
1248
- readonly code: "UNAUTHENTICATED";
1249
- readonly message: string;
1250
- readonly hint?: string;
1251
- readonly context?: {
1252
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1253
- };
1254
- } | {
1255
- readonly code: "UNAVAILABLE";
1256
- readonly message: string;
1257
- readonly hint?: string;
1258
- readonly context?: {
1259
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1260
- readonly id?: string;
1261
- readonly reason?: string;
1262
- readonly packs?: number;
1263
- readonly most?: number;
1264
- readonly retryAfter?: number;
1265
- };
1266
- }, unknown, never, never>, {
1267
- "ref0-code": Schema.String;
1268
- }>, HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
1269
- readonly code: "ALREADY_EXISTS";
1270
- readonly message: string;
1271
- readonly hint?: string;
1272
- readonly context?: {
1273
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1274
- readonly reason?: string;
1275
- readonly verdict?: "fail" | "pass";
1276
- };
1277
- } | {
1278
- readonly code: "DATA_LOSS";
1279
- readonly message: string;
1280
- readonly hint?: string;
1281
- readonly context?: {
1282
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1283
- readonly reason?: string;
1284
- };
1285
- } | {
1286
- readonly code: "DEADLINE_EXCEEDED";
1287
- readonly message: string;
1288
- readonly hint?: string;
1289
- readonly context?: {
1290
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1291
- readonly id?: string;
1292
- };
1293
- } | {
1294
- readonly code: "FAILED_PRECONDITION";
1295
- readonly message: string;
1296
- readonly hint?: string;
1297
- readonly context?: {
1298
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1299
- readonly reason?: string;
1300
- readonly importState?: "cancelled" | "failed" | "running";
1301
- readonly attribute?: string;
1302
- readonly paths?: string[];
1303
- readonly total?: number;
1304
- readonly tip?: string;
1305
- };
1306
- } | {
1307
- readonly code: "INTERNAL";
1308
- readonly message: string;
1309
- readonly hint?: string;
1310
- readonly context?: {
1311
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1312
- };
1313
- } | {
1314
- readonly code: "INVALID_ARGUMENT";
1315
- readonly message: string;
1316
- readonly hint?: string;
1317
- readonly context?: {
1318
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1319
- readonly reason?: string;
1320
- readonly msgId?: string;
1321
- readonly most?: number;
1322
- readonly given?: number;
1323
- };
1324
- } | {
1325
- readonly code: "NOT_ALLOWED";
1326
- readonly message: string;
1327
- readonly hint?: string;
1328
- readonly context?: {
1329
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1330
- readonly reason?: string;
1331
- readonly entries?: string[];
1332
- readonly paths?: string[];
1333
- readonly total?: number;
1334
- };
1335
- } | {
1336
- readonly code: "NOT_FOUND";
1337
- readonly message: string;
1338
- readonly hint?: string;
1339
- readonly context?: {
1340
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1341
- readonly reason?: string;
1342
- readonly target?: string;
1343
- };
1344
- } | {
1345
- readonly code: "RESOURCE_EXHAUSTED";
1346
- readonly message: string;
1347
- readonly hint?: string;
1348
- readonly context?: {
1349
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1350
- readonly reason?: string;
1351
- readonly indexBytes?: number;
1352
- readonly pushBytes?: number;
1353
- readonly most?: number;
1354
- };
1355
- } | {
1356
- readonly code: "UNAUTHENTICATED";
1357
- readonly message: string;
1358
- readonly hint?: string;
1359
- readonly context?: {
1360
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1361
- };
1362
- } | {
1363
- readonly code: "UNAVAILABLE";
1364
- readonly message: string;
1365
- readonly hint?: string;
1366
- readonly context?: {
1367
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1368
- readonly id?: string;
1369
- readonly reason?: string;
1370
- readonly packs?: number;
1371
- readonly most?: number;
1372
- readonly retryAfter?: number;
1373
- };
1374
- }, unknown, never, never>, Schema.Codec<{
1375
- readonly code: "ALREADY_EXISTS";
1376
- readonly message: string;
1377
- readonly hint?: string;
1378
- readonly context?: {
1379
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1380
- readonly reason?: string;
1381
- readonly verdict?: "fail" | "pass";
1382
- };
1383
- } | {
1384
- readonly code: "DATA_LOSS";
1385
- readonly message: string;
1386
- readonly hint?: string;
1387
- readonly context?: {
1388
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1389
- readonly reason?: string;
1390
- };
1391
- } | {
1392
- readonly code: "DEADLINE_EXCEEDED";
1393
- readonly message: string;
1394
- readonly hint?: string;
1395
- readonly context?: {
1396
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1397
- readonly id?: string;
1398
- };
1399
- } | {
1400
- readonly code: "FAILED_PRECONDITION";
1401
- readonly message: string;
1402
- readonly hint?: string;
1403
- readonly context?: {
1404
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1405
- readonly reason?: string;
1406
- readonly importState?: "cancelled" | "failed" | "running";
1407
- readonly attribute?: string;
1408
- readonly paths?: string[];
1409
- readonly total?: number;
1410
- readonly tip?: string;
1411
- };
1412
- } | {
1413
- readonly code: "INTERNAL";
1414
- readonly message: string;
1415
- readonly hint?: string;
1416
- readonly context?: {
1417
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1418
- };
1419
- } | {
1420
- readonly code: "INVALID_ARGUMENT";
1421
- readonly message: string;
1422
- readonly hint?: string;
1423
- readonly context?: {
1424
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1425
- readonly reason?: string;
1426
- readonly msgId?: string;
1427
- readonly most?: number;
1428
- readonly given?: number;
1429
- };
1430
- } | {
1431
- readonly code: "NOT_ALLOWED";
1432
- readonly message: string;
1433
- readonly hint?: string;
1434
- readonly context?: {
1435
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1436
- readonly reason?: string;
1437
- readonly entries?: string[];
1438
- readonly paths?: string[];
1439
- readonly total?: number;
1440
- };
1441
- } | {
1442
- readonly code: "NOT_FOUND";
1443
- readonly message: string;
1444
- readonly hint?: string;
1445
- readonly context?: {
1446
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1447
- readonly reason?: string;
1448
- readonly target?: string;
1449
- };
1450
- } | {
1451
- readonly code: "RESOURCE_EXHAUSTED";
1452
- readonly message: string;
1453
- readonly hint?: string;
1454
- readonly context?: {
1455
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1456
- readonly reason?: string;
1457
- readonly indexBytes?: number;
1458
- readonly pushBytes?: number;
1459
- readonly most?: number;
1460
- };
1461
- } | {
1462
- readonly code: "UNAUTHENTICATED";
1463
- readonly message: string;
1464
- readonly hint?: string;
1465
- readonly context?: {
1466
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1467
- };
1468
- } | {
1469
- readonly code: "UNAVAILABLE";
1470
- readonly message: string;
1471
- readonly hint?: string;
1472
- readonly context?: {
1473
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1474
- readonly id?: string;
1475
- readonly reason?: string;
1476
- readonly packs?: number;
1477
- readonly most?: number;
1478
- readonly retryAfter?: number;
1479
- };
1480
- }, unknown, never, never>, {
1481
- "ref0-code": Schema.String;
1482
- }>, HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
1483
- readonly code: "ALREADY_EXISTS";
1484
- readonly message: string;
1485
- readonly hint?: string;
1486
- readonly context?: {
1487
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1488
- readonly reason?: string;
1489
- readonly verdict?: "fail" | "pass";
1490
- };
1491
- } | {
1492
- readonly code: "DATA_LOSS";
1493
- readonly message: string;
1494
- readonly hint?: string;
1495
- readonly context?: {
1496
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1497
- readonly reason?: string;
1498
- };
1499
- } | {
1500
- readonly code: "DEADLINE_EXCEEDED";
1501
- readonly message: string;
1502
- readonly hint?: string;
1503
- readonly context?: {
1504
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1505
- readonly id?: string;
1506
- };
1507
- } | {
1508
- readonly code: "FAILED_PRECONDITION";
1509
- readonly message: string;
1510
- readonly hint?: string;
1511
- readonly context?: {
1512
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1513
- readonly reason?: string;
1514
- readonly importState?: "cancelled" | "failed" | "running";
1515
- readonly attribute?: string;
1516
- readonly paths?: string[];
1517
- readonly total?: number;
1518
- readonly tip?: string;
1519
- };
1520
- } | {
1521
- readonly code: "INTERNAL";
1522
- readonly message: string;
1523
- readonly hint?: string;
1524
- readonly context?: {
1525
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1526
- };
1527
- } | {
1528
- readonly code: "INVALID_ARGUMENT";
1529
- readonly message: string;
1530
- readonly hint?: string;
1531
- readonly context?: {
1532
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1533
- readonly reason?: string;
1534
- readonly msgId?: string;
1535
- readonly most?: number;
1536
- readonly given?: number;
1537
- };
1538
- } | {
1539
- readonly code: "NOT_ALLOWED";
1540
- readonly message: string;
1541
- readonly hint?: string;
1542
- readonly context?: {
1543
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1544
- readonly reason?: string;
1545
- readonly entries?: string[];
1546
- readonly paths?: string[];
1547
- readonly total?: number;
1548
- };
1549
- } | {
1550
- readonly code: "NOT_FOUND";
1551
- readonly message: string;
1552
- readonly hint?: string;
1553
- readonly context?: {
1554
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1555
- readonly reason?: string;
1556
- readonly target?: string;
1557
- };
1558
- } | {
1559
- readonly code: "RESOURCE_EXHAUSTED";
1560
- readonly message: string;
1561
- readonly hint?: string;
1562
- readonly context?: {
1563
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1564
- readonly reason?: string;
1565
- readonly indexBytes?: number;
1566
- readonly pushBytes?: number;
1567
- readonly most?: number;
1568
- };
1569
- } | {
1570
- readonly code: "UNAUTHENTICATED";
1571
- readonly message: string;
1572
- readonly hint?: string;
1573
- readonly context?: {
1574
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1575
- };
1576
- } | {
1577
- readonly code: "UNAVAILABLE";
1578
- readonly message: string;
1579
- readonly hint?: string;
1580
- readonly context?: {
1581
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1582
- readonly id?: string;
1583
- readonly reason?: string;
1584
- readonly packs?: number;
1585
- readonly most?: number;
1586
- readonly retryAfter?: number;
1587
- };
1588
- }, unknown, never, never>, Schema.Codec<{
1589
- readonly code: "ALREADY_EXISTS";
1590
- readonly message: string;
1591
- readonly hint?: string;
1592
- readonly context?: {
1593
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1594
- readonly reason?: string;
1595
- readonly verdict?: "fail" | "pass";
1596
- };
1597
- } | {
1598
- readonly code: "DATA_LOSS";
1599
- readonly message: string;
1600
- readonly hint?: string;
1601
- readonly context?: {
1602
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1603
- readonly reason?: string;
1604
- };
1605
- } | {
1606
- readonly code: "DEADLINE_EXCEEDED";
1607
- readonly message: string;
1608
- readonly hint?: string;
1609
- readonly context?: {
1610
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1611
- readonly id?: string;
1612
- };
1613
- } | {
1614
- readonly code: "FAILED_PRECONDITION";
1615
- readonly message: string;
1616
- readonly hint?: string;
1617
- readonly context?: {
1618
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1619
- readonly reason?: string;
1620
- readonly importState?: "cancelled" | "failed" | "running";
1621
- readonly attribute?: string;
1622
- readonly paths?: string[];
1623
- readonly total?: number;
1624
- readonly tip?: string;
1625
- };
1626
- } | {
1627
- readonly code: "INTERNAL";
1628
- readonly message: string;
1629
- readonly hint?: string;
1630
- readonly context?: {
1631
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1632
- };
1633
- } | {
1634
- readonly code: "INVALID_ARGUMENT";
1635
- readonly message: string;
1636
- readonly hint?: string;
1637
- readonly context?: {
1638
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1639
- readonly reason?: string;
1640
- readonly msgId?: string;
1641
- readonly most?: number;
1642
- readonly given?: number;
1643
- };
1644
- } | {
1645
- readonly code: "NOT_ALLOWED";
1646
- readonly message: string;
1647
- readonly hint?: string;
1648
- readonly context?: {
1649
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1650
- readonly reason?: string;
1651
- readonly entries?: string[];
1652
- readonly paths?: string[];
1653
- readonly total?: number;
1654
- };
1655
- } | {
1656
- readonly code: "NOT_FOUND";
1657
- readonly message: string;
1658
- readonly hint?: string;
1659
- readonly context?: {
1660
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1661
- readonly reason?: string;
1662
- readonly target?: string;
1663
- };
1664
- } | {
1665
- readonly code: "RESOURCE_EXHAUSTED";
1666
- readonly message: string;
1667
- readonly hint?: string;
1668
- readonly context?: {
1669
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1670
- readonly reason?: string;
1671
- readonly indexBytes?: number;
1672
- readonly pushBytes?: number;
1673
- readonly most?: number;
1674
- };
1675
- } | {
1676
- readonly code: "UNAUTHENTICATED";
1677
- readonly message: string;
1678
- readonly hint?: string;
1679
- readonly context?: {
1680
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1681
- };
1682
- } | {
1683
- readonly code: "UNAVAILABLE";
1684
- readonly message: string;
1685
- readonly hint?: string;
1686
- readonly context?: {
1687
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1688
- readonly id?: string;
1689
- readonly reason?: string;
1690
- readonly packs?: number;
1691
- readonly most?: number;
1692
- readonly retryAfter?: number;
1693
- };
1694
- }, unknown, never, never>, {
1695
- "ref0-code": Schema.String;
1696
- }>, HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
1697
- readonly code: "ALREADY_EXISTS";
1698
- readonly message: string;
1699
- readonly hint?: string;
1700
- readonly context?: {
1701
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1702
- readonly reason?: string;
1703
- readonly verdict?: "fail" | "pass";
1704
- };
1705
- } | {
1706
- readonly code: "DATA_LOSS";
1707
- readonly message: string;
1708
- readonly hint?: string;
1709
- readonly context?: {
1710
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1711
- readonly reason?: string;
1712
- };
1713
- } | {
1714
- readonly code: "DEADLINE_EXCEEDED";
1715
- readonly message: string;
1716
- readonly hint?: string;
1717
- readonly context?: {
1718
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1719
- readonly id?: string;
1720
- };
1721
- } | {
1722
- readonly code: "FAILED_PRECONDITION";
1723
- readonly message: string;
1724
- readonly hint?: string;
1725
- readonly context?: {
1726
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1727
- readonly reason?: string;
1728
- readonly importState?: "cancelled" | "failed" | "running";
1729
- readonly attribute?: string;
1730
- readonly paths?: string[];
1731
- readonly total?: number;
1732
- readonly tip?: string;
1733
- };
1734
- } | {
1735
- readonly code: "INTERNAL";
1736
- readonly message: string;
1737
- readonly hint?: string;
1738
- readonly context?: {
1739
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1740
- };
1741
- } | {
1742
- readonly code: "INVALID_ARGUMENT";
1743
- readonly message: string;
1744
- readonly hint?: string;
1745
- readonly context?: {
1746
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1747
- readonly reason?: string;
1748
- readonly msgId?: string;
1749
- readonly most?: number;
1750
- readonly given?: number;
1751
- };
1752
- } | {
1753
- readonly code: "NOT_ALLOWED";
1754
- readonly message: string;
1755
- readonly hint?: string;
1756
- readonly context?: {
1757
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1758
- readonly reason?: string;
1759
- readonly entries?: string[];
1760
- readonly paths?: string[];
1761
- readonly total?: number;
1762
- };
1763
- } | {
1764
- readonly code: "NOT_FOUND";
1765
- readonly message: string;
1766
- readonly hint?: string;
1767
- readonly context?: {
1768
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1769
- readonly reason?: string;
1770
- readonly target?: string;
1771
- };
1772
- } | {
1773
- readonly code: "RESOURCE_EXHAUSTED";
1774
- readonly message: string;
1775
- readonly hint?: string;
1776
- readonly context?: {
1777
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1778
- readonly reason?: string;
1779
- readonly indexBytes?: number;
1780
- readonly pushBytes?: number;
1781
- readonly most?: number;
1782
- };
1783
- } | {
1784
- readonly code: "UNAUTHENTICATED";
1785
- readonly message: string;
1786
- readonly hint?: string;
1787
- readonly context?: {
1788
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1789
- };
1790
- } | {
1791
- readonly code: "UNAVAILABLE";
1792
- readonly message: string;
1793
- readonly hint?: string;
1794
- readonly context?: {
1795
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1796
- readonly id?: string;
1797
- readonly reason?: string;
1798
- readonly packs?: number;
1799
- readonly most?: number;
1800
- readonly retryAfter?: number;
1801
- };
1802
- }, unknown, never, never>, Schema.Codec<{
1803
- readonly code: "ALREADY_EXISTS";
1804
- readonly message: string;
1805
- readonly hint?: string;
1806
- readonly context?: {
1807
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1808
- readonly reason?: string;
1809
- readonly verdict?: "fail" | "pass";
1810
- };
1811
- } | {
1812
- readonly code: "DATA_LOSS";
1813
- readonly message: string;
1814
- readonly hint?: string;
1815
- readonly context?: {
1816
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1817
- readonly reason?: string;
1818
- };
1819
- } | {
1820
- readonly code: "DEADLINE_EXCEEDED";
1821
- readonly message: string;
1822
- readonly hint?: string;
1823
- readonly context?: {
1824
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1825
- readonly id?: string;
1826
- };
1827
- } | {
1828
- readonly code: "FAILED_PRECONDITION";
1829
- readonly message: string;
1830
- readonly hint?: string;
1831
- readonly context?: {
1832
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1833
- readonly reason?: string;
1834
- readonly importState?: "cancelled" | "failed" | "running";
1835
- readonly attribute?: string;
1836
- readonly paths?: string[];
1837
- readonly total?: number;
1838
- readonly tip?: string;
1839
- };
1840
- } | {
1841
- readonly code: "INTERNAL";
1842
- readonly message: string;
1843
- readonly hint?: string;
1844
- readonly context?: {
1845
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1846
- };
1847
- } | {
1848
- readonly code: "INVALID_ARGUMENT";
1849
- readonly message: string;
1850
- readonly hint?: string;
1851
- readonly context?: {
1852
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1853
- readonly reason?: string;
1854
- readonly msgId?: string;
1855
- readonly most?: number;
1856
- readonly given?: number;
1857
- };
1858
- } | {
1859
- readonly code: "NOT_ALLOWED";
1860
- readonly message: string;
1861
- readonly hint?: string;
1862
- readonly context?: {
1863
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1864
- readonly reason?: string;
1865
- readonly entries?: string[];
1866
- readonly paths?: string[];
1867
- readonly total?: number;
1868
- };
1869
- } | {
1870
- readonly code: "NOT_FOUND";
1871
- readonly message: string;
1872
- readonly hint?: string;
1873
- readonly context?: {
1874
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1875
- readonly reason?: string;
1876
- readonly target?: string;
1877
- };
1878
- } | {
1879
- readonly code: "RESOURCE_EXHAUSTED";
1880
- readonly message: string;
1881
- readonly hint?: string;
1882
- readonly context?: {
1883
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1884
- readonly reason?: string;
1885
- readonly indexBytes?: number;
1886
- readonly pushBytes?: number;
1887
- readonly most?: number;
1888
- };
1889
- } | {
1890
- readonly code: "UNAUTHENTICATED";
1891
- readonly message: string;
1892
- readonly hint?: string;
1893
- readonly context?: {
1894
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1895
- };
1896
- } | {
1897
- readonly code: "UNAVAILABLE";
1898
- readonly message: string;
1899
- readonly hint?: string;
1900
- readonly context?: {
1901
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1902
- readonly id?: string;
1903
- readonly reason?: string;
1904
- readonly packs?: number;
1905
- readonly most?: number;
1906
- readonly retryAfter?: number;
1907
- };
1908
- }, unknown, never, never>, {
1909
- "ref0-code": Schema.String;
1910
- }>, HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
1911
- readonly code: "ALREADY_EXISTS";
1912
- readonly message: string;
1913
- readonly hint?: string;
1914
- readonly context?: {
1915
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1916
- readonly reason?: string;
1917
- readonly verdict?: "fail" | "pass";
1918
- };
1919
- } | {
1920
- readonly code: "DATA_LOSS";
1921
- readonly message: string;
1922
- readonly hint?: string;
1923
- readonly context?: {
1924
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1925
- readonly reason?: string;
1926
- };
1927
- } | {
1928
- readonly code: "DEADLINE_EXCEEDED";
1929
- readonly message: string;
1930
- readonly hint?: string;
1931
- readonly context?: {
1932
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1933
- readonly id?: string;
1934
- };
1935
- } | {
1936
- readonly code: "FAILED_PRECONDITION";
1937
- readonly message: string;
1938
- readonly hint?: string;
1939
- readonly context?: {
1940
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1941
- readonly reason?: string;
1942
- readonly importState?: "cancelled" | "failed" | "running";
1943
- readonly attribute?: string;
1944
- readonly paths?: string[];
1945
- readonly total?: number;
1946
- readonly tip?: string;
1947
- };
1948
- } | {
1949
- readonly code: "INTERNAL";
1950
- readonly message: string;
1951
- readonly hint?: string;
1952
- readonly context?: {
1953
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1954
- };
1955
- } | {
1956
- readonly code: "INVALID_ARGUMENT";
1957
- readonly message: string;
1958
- readonly hint?: string;
1959
- readonly context?: {
1960
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1961
- readonly reason?: string;
1962
- readonly msgId?: string;
1963
- readonly most?: number;
1964
- readonly given?: number;
1965
- };
1966
- } | {
1967
- readonly code: "NOT_ALLOWED";
1968
- readonly message: string;
1969
- readonly hint?: string;
1970
- readonly context?: {
1971
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1972
- readonly reason?: string;
1973
- readonly entries?: string[];
1974
- readonly paths?: string[];
1975
- readonly total?: number;
1976
- };
1977
- } | {
1978
- readonly code: "NOT_FOUND";
1979
- readonly message: string;
1980
- readonly hint?: string;
1981
- readonly context?: {
1982
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1983
- readonly reason?: string;
1984
- readonly target?: string;
1985
- };
1986
- } | {
1987
- readonly code: "RESOURCE_EXHAUSTED";
1988
- readonly message: string;
1989
- readonly hint?: string;
1990
- readonly context?: {
1991
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
1992
- readonly reason?: string;
1993
- readonly indexBytes?: number;
1994
- readonly pushBytes?: number;
1995
- readonly most?: number;
1996
- };
1997
- } | {
1998
- readonly code: "UNAUTHENTICATED";
1999
- readonly message: string;
2000
- readonly hint?: string;
2001
- readonly context?: {
2002
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2003
- };
2004
- } | {
2005
- readonly code: "UNAVAILABLE";
2006
- readonly message: string;
2007
- readonly hint?: string;
2008
- readonly context?: {
2009
- readonly [x: string]: string | number | boolean | readonly string[] | undefined;
2010
- readonly id?: string;
2011
- readonly reason?: string;
2012
- readonly packs?: number;
2013
- readonly most?: number;
2014
- readonly retryAfter?: number;
2015
- };
2016
- }, unknown, never, never>, 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
- readonly retryAfter?: number;
2121
- };
2122
- }, unknown, never, never>, {
2123
- "ref0-code": Schema.String;
2124
- }>];