@ref0/git 0.4.0 → 0.6.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 (167) hide show
  1. package/dist/access/private-refs.mjs +3 -4
  2. package/dist/auth/authorize.mjs +9 -4
  3. package/dist/auth/identify.d.mts +5 -3
  4. package/dist/auth/tokens.mjs +12 -11
  5. package/dist/client/local.mjs +2 -0
  6. package/dist/client/slice-push.d.mts +1 -1
  7. package/dist/contracts/access.d.mts +6 -2
  8. package/dist/contracts/authorize.d.mts +14 -10
  9. package/dist/contracts/events.d.mts +32 -5
  10. package/dist/contracts/events.mjs +14 -3
  11. package/dist/contracts/git.d.mts +68 -3
  12. package/dist/contracts/grants.d.mts +6 -1
  13. package/dist/contracts/lfs.d.mts +5 -2
  14. package/dist/contracts/objects.d.mts +7 -2
  15. package/dist/contracts/promises.d.mts +2 -14
  16. package/dist/contracts/push-uploads.d.mts +1 -1
  17. package/dist/contracts/queue.d.mts +15 -7
  18. package/dist/contracts/refs.d.mts +1 -1
  19. package/dist/contracts/result.d.mts +9 -5
  20. package/dist/contracts/result.mjs +5 -0
  21. package/dist/contracts/server.d.mts +13 -6
  22. package/dist/contracts/work.d.mts +1 -1
  23. package/dist/core/access.mjs +17 -1
  24. package/dist/core/call-names.d.mts +3 -1
  25. package/dist/core/claim-rows.d.mts +4 -0
  26. package/dist/core/claim-rows.mjs +53 -0
  27. package/dist/core/events/deliver.d.mts +12 -0
  28. package/dist/core/events/deliver.mjs +367 -145
  29. package/dist/core/events/seen.mjs +17 -3
  30. package/dist/core/forks.mjs +82 -20
  31. package/dist/core/hooks/post-receive.mjs +20 -17
  32. package/dist/core/index-job.mjs +23 -17
  33. package/dist/core/parts.d.mts +6 -0
  34. package/dist/core/purge.d.mts +8 -0
  35. package/dist/core/purge.mjs +16 -21
  36. package/dist/core/push-decide.mjs +26 -4
  37. package/dist/core/push.mjs +57 -20
  38. package/dist/core/ref-index-job.mjs +9 -14
  39. package/dist/core/ref-index.d.mts +1 -0
  40. package/dist/core/ref-index.mjs +28 -8
  41. package/dist/core/ref-view.mjs +14 -9
  42. package/dist/core/refs.mjs +13 -11
  43. package/dist/core/repack.d.mts +2 -1
  44. package/dist/core/repack.mjs +66 -118
  45. package/dist/core/repos.mjs +5 -5
  46. package/dist/core/rules/check.mjs +7 -6
  47. package/dist/core/rules/context.d.mts +1 -1
  48. package/dist/core/seam.d.mts +56 -9
  49. package/dist/core/seam.mjs +7 -1
  50. package/dist/core/still-takes.mjs +75 -0
  51. package/dist/core/view.d.mts +1 -0
  52. package/dist/core/view.mjs +8 -9
  53. package/dist/core/work.mjs +1 -1
  54. package/dist/extend.d.mts +2 -1
  55. package/dist/http/core-parts.mjs +19 -11
  56. package/dist/http/handler.mjs +2 -2
  57. package/dist/http/node.d.mts +2 -23
  58. package/dist/http/parts.d.mts +1 -0
  59. package/dist/http/push-uploads.d.mts +10 -2
  60. package/dist/http/push-uploads.mjs +31 -34
  61. package/dist/http/receive-pack.mjs +5 -3
  62. package/dist/http/upload-pack.mjs +2 -2
  63. package/dist/index.d.mts +11 -7
  64. package/dist/index.mjs +5 -3
  65. package/dist/lfs/base.d.mts +32 -0
  66. package/dist/lfs/base.mjs +8 -0
  67. package/dist/lfs/calls.mjs +21 -12
  68. package/dist/lfs/layer.d.mts +27 -0
  69. package/dist/lfs/layer.mjs +64 -0
  70. package/dist/lfs/locks.mjs +13 -27
  71. package/dist/lfs/namespace.d.mts +2 -0
  72. package/dist/lfs/objects.d.mts +23 -4
  73. package/dist/lfs/objects.mjs +65 -81
  74. package/dist/lfs/pointers.mjs +8 -6
  75. package/dist/lfs/public.d.mts +5 -0
  76. package/dist/lfs/public.mjs +8 -0
  77. package/dist/lfs/purge.mjs +19 -25
  78. package/dist/lfs/rows.mjs +22 -10
  79. package/dist/lfs/service.d.mts +9 -4
  80. package/dist/lfs/service.mjs +3 -12
  81. package/dist/lfs/upkeep.mjs +34 -49
  82. package/dist/node.d.mts +3 -2
  83. package/dist/node.mjs +1 -1
  84. package/dist/protocol/wire/advertisement.d.mts +4 -10
  85. package/dist/protocol/wire/advertisement.mjs +16 -12
  86. package/dist/protocol/wire/lines.d.mts +14 -2
  87. package/dist/protocol/wire/lines.mjs +32 -21
  88. package/dist/protocol/wire/v2.d.mts +4 -15
  89. package/dist/protocol/wire/v2.mjs +16 -14
  90. package/dist/queue/advance.mjs +78 -55
  91. package/dist/queue/calls.mjs +4 -2
  92. package/dist/queue/commit.mjs +20 -13
  93. package/dist/queue/host.d.mts +2 -2
  94. package/dist/queue/layer.d.mts +4 -2
  95. package/dist/queue/layer.mjs +8 -3
  96. package/dist/queue/limits.mjs +36 -6
  97. package/dist/queue/rows.mjs +14 -5
  98. package/dist/queue/state.mjs +19 -5
  99. package/dist/queue/steps.mjs +10 -4
  100. package/dist/queue/trim.mjs +284 -0
  101. package/dist/rest/blobs.d.mts +19 -19
  102. package/dist/rest/caller.d.mts +4 -4
  103. package/dist/rest/commits.d.mts +96 -96
  104. package/dist/rest/errors.d.mts +2 -2
  105. package/dist/rest/events.d.mts +2 -2
  106. package/dist/rest/files.d.mts +54 -54
  107. package/dist/rest/forks.d.mts +87 -87
  108. package/dist/rest/handler.mjs +13 -5
  109. package/dist/rest/layer.d.mts +14 -0
  110. package/dist/rest/layer.mjs +52 -0
  111. package/dist/rest/me.d.mts +2 -2
  112. package/dist/rest/merges.d.mts +2 -2
  113. package/dist/rest/namespace.d.mts +2 -0
  114. package/dist/rest/queue.d.mts +208 -208
  115. package/dist/rest/refs.d.mts +131 -131
  116. package/dist/rest/repos.d.mts +12 -12
  117. package/dist/rest/tags.d.mts +70 -70
  118. package/dist/rest/tokens.d.mts +23 -23
  119. package/dist/rest/topics.d.mts +111 -111
  120. package/dist/rest/trees.d.mts +57 -57
  121. package/dist/rest/wire.d.mts +2 -0
  122. package/dist/rest/wire.mjs +2 -2
  123. package/dist/rest/work.d.mts +6 -6
  124. package/dist/server/edge-node.d.mts +20 -0
  125. package/dist/server/edge-node.mjs +20 -0
  126. package/dist/server/edge.d.mts +10 -0
  127. package/dist/server/edge.mjs +23 -0
  128. package/dist/server/extension.mjs +1 -1
  129. package/dist/server/git-layer.d.mts +15 -4
  130. package/dist/server/git-layer.mjs +13 -2
  131. package/dist/server/git-namespace.d.mts +5 -4
  132. package/dist/server/git-namespace.mjs +6 -3
  133. package/dist/server/registry.d.mts +3 -0
  134. package/dist/server/registry.mjs +58 -7
  135. package/dist/server/server.d.mts +3 -0
  136. package/dist/server/server.mjs +81 -39
  137. package/dist/server/uploads.d.mts +14 -0
  138. package/dist/server/uploads.mjs +15 -0
  139. package/dist/storage/calls.d.mts +7 -8
  140. package/dist/storage/calls.mjs +14 -14
  141. package/dist/storage/clean-up.mjs +59 -29
  142. package/dist/storage/host-bucket.mjs +16 -1
  143. package/dist/storage/index-build.d.mts +1 -1
  144. package/dist/storage/layout.mjs +5 -0
  145. package/dist/storage/merge.d.mts +1 -1
  146. package/dist/storage/push-uploads.mjs +12 -16
  147. package/dist/storage/quarantine.d.mts +1 -1
  148. package/dist/storage/quarantine.mjs +51 -12
  149. package/dist/storage/receive-bounds.d.mts +1 -1
  150. package/dist/storage/repack-job.d.mts +1 -1
  151. package/dist/storage/repack-job.mjs +7 -14
  152. package/dist/storage/rows.mjs +42 -3
  153. package/dist/storage/runs.d.mts +1 -1
  154. package/dist/store/job-try.mjs +26 -0
  155. package/dist/store/list-job.mjs +22 -16
  156. package/dist/store/outbox.mjs +38 -12
  157. package/dist/store/promises.d.mts +6 -1
  158. package/dist/store/promises.mjs +74 -89
  159. package/dist/store/queue-jobs.mjs +22 -1
  160. package/dist/store/scopes.mjs +0 -10
  161. package/dist/sync/mirror.d.mts +1 -1
  162. package/dist/sync/mirror.mjs +1 -1
  163. package/dist/sync/publish.mjs +12 -7
  164. package/dist/sync/step.mjs +4 -0
  165. package/package.json +3 -3
  166. package/dist/lfs/repo.mjs +0 -42
  167. package/dist/storage/promise-calls.mjs +0 -29
@@ -1,24 +1,46 @@
1
1
  import { GitCallerMiddleware, GitRestServices } from "./caller.mjs";
2
2
  import * as Schema from "effect/Schema";
3
3
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
4
- declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndpoint.HttpApiEndpoint<"candidate", "GET", "/queue/candidates/:candidate", Schema.toCodecStringTree<Schema.Struct<{
5
- candidate: Schema.String;
6
- }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
7
- readonly id: Schema.String;
8
- readonly repo: Schema.String;
4
+ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/repos/:repo/-/queue/entries", Schema.toCodecStringTree<Schema.Struct<{
5
+ repo: Schema.String;
6
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
9
7
  readonly target: Schema.String;
10
- readonly base: Schema.NullOr<Schema.String>;
11
- readonly entries: Schema.$Array<Schema.String>;
12
- readonly state: Schema.Literals<readonly ["building", "checking", "closed"]>;
13
- readonly ref: Schema.optionalKey<Schema.String>;
14
- readonly commit: Schema.optionalKey<Schema.String>;
15
- readonly report: Schema.optionalKey<Schema.Struct<{
16
- readonly summary: Schema.optionalKey<Schema.String>;
17
- readonly url: Schema.optionalKey<Schema.String>;
8
+ readonly source: Schema.String;
9
+ readonly head: Schema.String;
10
+ readonly key: Schema.String;
11
+ readonly priority: Schema.optionalKey<Schema.Number>;
12
+ readonly meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
13
+ readonly jump: Schema.optionalKey<Schema.Boolean>;
14
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
15
+ readonly revision: Schema.Number;
16
+ readonly repeat: Schema.Boolean;
17
+ readonly entry: Schema.Struct<{
18
+ readonly target: Schema.String;
19
+ readonly source: Schema.String;
20
+ readonly head: Schema.String;
21
+ readonly key: Schema.String;
22
+ readonly priority: Schema.optionalKey<Schema.Number>;
18
23
  readonly meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
19
- readonly verdict: Schema.Literals<readonly ["pass", "fail", "cancel"]>;
20
- }>>;
21
- readonly reason: Schema.optionalKey<Schema.Literals<readonly ["merged", "passed", "failed", "cancelled", "timeout", "superseded", "restarted"]>>;
24
+ readonly id: Schema.String;
25
+ readonly repo: Schema.String;
26
+ readonly actor: Schema.Struct<{
27
+ readonly id: Schema.String;
28
+ }>;
29
+ readonly subject: Schema.optionalKey<Schema.Struct<{
30
+ readonly id: Schema.String;
31
+ }>>;
32
+ readonly state: Schema.Literals<readonly ["waiting", "checking", "held", "merged", "failed", "removed"]>;
33
+ readonly lanes: Schema.$Array<Schema.String>;
34
+ readonly report: Schema.optionalKey<Schema.Struct<{
35
+ readonly summary: Schema.optionalKey<Schema.String>;
36
+ readonly url: Schema.optionalKey<Schema.String>;
37
+ readonly meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
38
+ readonly verdict: Schema.Literals<readonly ["pass", "fail", "cancel"]>;
39
+ }>>;
40
+ readonly pinned: Schema.optionalKey<Schema.Literal<true>>;
41
+ }>;
42
+ readonly ahead: Schema.Number;
43
+ readonly replaced: Schema.optionalKey<Schema.String>;
22
44
  }>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
23
45
  readonly code: "ALREADY_EXISTS";
24
46
  readonly message: string;
@@ -303,7 +325,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
303
325
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
304
326
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
305
327
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
306
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
328
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
307
329
  indexBytes: Schema.optionalKey<Schema.Number>;
308
330
  pushBytes: Schema.optionalKey<Schema.Number>;
309
331
  most: Schema.optionalKey<Schema.Number>;
@@ -395,7 +417,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
395
417
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
396
418
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
397
419
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
398
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
420
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
399
421
  indexBytes: Schema.optionalKey<Schema.Number>;
400
422
  pushBytes: Schema.optionalKey<Schema.Number>;
401
423
  most: Schema.optionalKey<Schema.Number>;
@@ -418,17 +440,24 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
418
440
  }>, {
419
441
  "ref0-code": Schema.String;
420
442
  'www-authenticate': Schema.String;
421
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"report", "POST", "/queue/candidates/:candidate/report", Schema.toCodecStringTree<Schema.Struct<{
443
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"candidate", "GET", "/queue/candidates/:candidate", Schema.toCodecStringTree<Schema.Struct<{
422
444
  candidate: Schema.String;
423
- }>>, never, Schema.toCodecJson<Schema.Struct<{
424
- readonly summary: Schema.optionalKey<Schema.String>;
425
- readonly url: Schema.optionalKey<Schema.String>;
426
- readonly meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
427
- readonly verdict: Schema.Literals<readonly ["pass", "fail", "cancel"]>;
428
- readonly key: Schema.optionalKey<Schema.String>;
429
- readonly blame: Schema.optionalKey<Schema.$Array<Schema.String>>;
430
- }>>, never, Schema.toCodecJson<Schema.Struct<{
431
- readonly repeat: Schema.Boolean;
445
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
446
+ readonly id: Schema.String;
447
+ readonly repo: Schema.String;
448
+ readonly target: Schema.String;
449
+ readonly base: Schema.NullOr<Schema.String>;
450
+ readonly entries: Schema.$Array<Schema.String>;
451
+ readonly state: Schema.Literals<readonly ["building", "checking", "closed"]>;
452
+ readonly ref: Schema.optionalKey<Schema.String>;
453
+ readonly commit: Schema.optionalKey<Schema.String>;
454
+ readonly report: Schema.optionalKey<Schema.Struct<{
455
+ readonly summary: Schema.optionalKey<Schema.String>;
456
+ readonly url: Schema.optionalKey<Schema.String>;
457
+ readonly meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
458
+ readonly verdict: Schema.Literals<readonly ["pass", "fail", "cancel"]>;
459
+ }>>;
460
+ readonly reason: Schema.optionalKey<Schema.Literals<readonly ["merged", "passed", "failed", "cancelled", "timeout", "superseded", "restarted"]>>;
432
461
  }>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
433
462
  readonly code: "ALREADY_EXISTS";
434
463
  readonly message: string;
@@ -713,7 +742,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
713
742
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
714
743
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
715
744
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
716
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
745
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
717
746
  indexBytes: Schema.optionalKey<Schema.Number>;
718
747
  pushBytes: Schema.optionalKey<Schema.Number>;
719
748
  most: Schema.optionalKey<Schema.Number>;
@@ -805,7 +834,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
805
834
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
806
835
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
807
836
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
808
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
837
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
809
838
  indexBytes: Schema.optionalKey<Schema.Number>;
810
839
  pushBytes: Schema.optionalKey<Schema.Number>;
811
840
  most: Schema.optionalKey<Schema.Number>;
@@ -828,14 +857,31 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
828
857
  }>, {
829
858
  "ref0-code": Schema.String;
830
859
  'www-authenticate': Schema.String;
831
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"retry", "POST", "/queue/candidates/:candidate/retry", Schema.toCodecStringTree<Schema.Struct<{
832
- candidate: Schema.String;
833
- }>>, never, Schema.toCodecJson<Schema.Struct<{
834
- key: Schema.optionalKey<Schema.String>;
835
- }>>, never, Schema.toCodecJson<Schema.Struct<{
836
- readonly revision: Schema.Number;
837
- readonly repeat: Schema.Boolean;
838
- readonly candidate: Schema.String;
860
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"candidates", "GET", "/repos/:repo/-/queue/candidates", Schema.toCodecStringTree<Schema.Struct<{
861
+ repo: Schema.String;
862
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
863
+ after: Schema.optionalKey<Schema.String>;
864
+ limit: Schema.optionalKey<Schema.Int>;
865
+ target: Schema.optionalKey<Schema.String>;
866
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
867
+ readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
868
+ readonly id: Schema.String;
869
+ readonly repo: Schema.String;
870
+ readonly target: Schema.String;
871
+ readonly base: Schema.NullOr<Schema.String>;
872
+ readonly entries: Schema.$Array<Schema.String>;
873
+ readonly state: Schema.Literals<readonly ["building", "checking", "closed"]>;
874
+ readonly ref: Schema.optionalKey<Schema.String>;
875
+ readonly commit: Schema.optionalKey<Schema.String>;
876
+ readonly report: Schema.optionalKey<Schema.Struct<{
877
+ readonly summary: Schema.optionalKey<Schema.String>;
878
+ readonly url: Schema.optionalKey<Schema.String>;
879
+ readonly meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
880
+ readonly verdict: Schema.Literals<readonly ["pass", "fail", "cancel"]>;
881
+ }>>;
882
+ readonly reason: Schema.optionalKey<Schema.Literals<readonly ["merged", "passed", "failed", "cancelled", "timeout", "superseded", "restarted"]>>;
883
+ }>>>;
884
+ readonly next: Schema.optionalKey<Schema.String>;
839
885
  }>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
840
886
  readonly code: "ALREADY_EXISTS";
841
887
  readonly message: string;
@@ -1120,7 +1166,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
1120
1166
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
1121
1167
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
1122
1168
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
1123
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
1169
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
1124
1170
  indexBytes: Schema.optionalKey<Schema.Number>;
1125
1171
  pushBytes: Schema.optionalKey<Schema.Number>;
1126
1172
  most: Schema.optionalKey<Schema.Number>;
@@ -1212,7 +1258,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
1212
1258
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
1213
1259
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
1214
1260
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
1215
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
1261
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
1216
1262
  indexBytes: Schema.optionalKey<Schema.Number>;
1217
1263
  pushBytes: Schema.optionalKey<Schema.Number>;
1218
1264
  most: Schema.optionalKey<Schema.Number>;
@@ -1545,7 +1591,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
1545
1591
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
1546
1592
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
1547
1593
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
1548
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
1594
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
1549
1595
  indexBytes: Schema.optionalKey<Schema.Number>;
1550
1596
  pushBytes: Schema.optionalKey<Schema.Number>;
1551
1597
  most: Schema.optionalKey<Schema.Number>;
@@ -1637,7 +1683,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
1637
1683
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
1638
1684
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
1639
1685
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
1640
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
1686
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
1641
1687
  indexBytes: Schema.optionalKey<Schema.Number>;
1642
1688
  pushBytes: Schema.optionalKey<Schema.Number>;
1643
1689
  most: Schema.optionalKey<Schema.Number>;
@@ -1660,14 +1706,25 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
1660
1706
  }>, {
1661
1707
  "ref0-code": Schema.String;
1662
1708
  'www-authenticate': Schema.String;
1663
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/queue/entries/:entry", Schema.toCodecStringTree<Schema.Struct<{
1709
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"holdEntry", "POST", "/queue/entries/:entry/holds", Schema.toCodecStringTree<Schema.Struct<{
1664
1710
  entry: Schema.String;
1665
- }>>, Schema.toCodecStringTree<Schema.Struct<{
1666
- key: Schema.optionalKey<Schema.String>;
1667
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
1711
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1712
+ readonly key: Schema.optionalKey<Schema.String>;
1713
+ readonly reason: Schema.String;
1714
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1668
1715
  readonly revision: Schema.Number;
1669
1716
  readonly repeat: Schema.Boolean;
1670
- readonly entry: Schema.String;
1717
+ readonly hold: Schema.Union<readonly [Schema.Struct<{
1718
+ readonly id: Schema.String;
1719
+ readonly repo: Schema.String;
1720
+ readonly reason: Schema.String;
1721
+ readonly entry: Schema.String;
1722
+ }>, Schema.Struct<{
1723
+ readonly id: Schema.String;
1724
+ readonly repo: Schema.String;
1725
+ readonly reason: Schema.String;
1726
+ readonly target: Schema.String;
1727
+ }>]>;
1671
1728
  }>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
1672
1729
  readonly code: "ALREADY_EXISTS";
1673
1730
  readonly message: string;
@@ -1952,7 +2009,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
1952
2009
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
1953
2010
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
1954
2011
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
1955
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
2012
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
1956
2013
  indexBytes: Schema.optionalKey<Schema.Number>;
1957
2014
  pushBytes: Schema.optionalKey<Schema.Number>;
1958
2015
  most: Schema.optionalKey<Schema.Number>;
@@ -2044,7 +2101,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
2044
2101
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
2045
2102
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
2046
2103
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
2047
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
2104
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
2048
2105
  indexBytes: Schema.optionalKey<Schema.Number>;
2049
2106
  pushBytes: Schema.optionalKey<Schema.Number>;
2050
2107
  most: Schema.optionalKey<Schema.Number>;
@@ -2067,13 +2124,16 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
2067
2124
  }>, {
2068
2125
  "ref0-code": Schema.String;
2069
2126
  'www-authenticate': Schema.String;
2070
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"holdsOfEntry", "GET", "/queue/entries/:entry/holds", Schema.toCodecStringTree<Schema.Struct<{
2071
- entry: Schema.String;
2072
- }>>, Schema.toCodecStringTree<Schema.Struct<{
2073
- readonly after: Schema.optionalKey<Schema.String>;
2074
- readonly limit: Schema.optionalKey<Schema.Int>;
2075
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
2076
- readonly items: Schema.mutable<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
2127
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"holdTarget", "POST", "/repos/:repo/-/queue/holds", Schema.toCodecStringTree<Schema.Struct<{
2128
+ repo: Schema.String;
2129
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2130
+ readonly key: Schema.optionalKey<Schema.String>;
2131
+ readonly target: Schema.String;
2132
+ readonly reason: Schema.String;
2133
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
2134
+ readonly revision: Schema.Number;
2135
+ readonly repeat: Schema.Boolean;
2136
+ readonly hold: Schema.Union<readonly [Schema.Struct<{
2077
2137
  readonly id: Schema.String;
2078
2138
  readonly repo: Schema.String;
2079
2139
  readonly reason: Schema.String;
@@ -2083,8 +2143,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
2083
2143
  readonly repo: Schema.String;
2084
2144
  readonly reason: Schema.String;
2085
2145
  readonly target: Schema.String;
2086
- }>]>>>;
2087
- readonly next: Schema.optionalKey<Schema.String>;
2146
+ }>]>;
2088
2147
  }>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
2089
2148
  readonly code: "ALREADY_EXISTS";
2090
2149
  readonly message: string;
@@ -2369,7 +2428,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
2369
2428
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
2370
2429
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
2371
2430
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
2372
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
2431
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
2373
2432
  indexBytes: Schema.optionalKey<Schema.Number>;
2374
2433
  pushBytes: Schema.optionalKey<Schema.Number>;
2375
2434
  most: Schema.optionalKey<Schema.Number>;
@@ -2461,7 +2520,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
2461
2520
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
2462
2521
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
2463
2522
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
2464
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
2523
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
2465
2524
  indexBytes: Schema.optionalKey<Schema.Number>;
2466
2525
  pushBytes: Schema.optionalKey<Schema.Number>;
2467
2526
  most: Schema.optionalKey<Schema.Number>;
@@ -2484,15 +2543,13 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
2484
2543
  }>, {
2485
2544
  "ref0-code": Schema.String;
2486
2545
  'www-authenticate': Schema.String;
2487
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"holdEntry", "POST", "/queue/entries/:entry/holds", Schema.toCodecStringTree<Schema.Struct<{
2546
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"holdsOfEntry", "GET", "/queue/entries/:entry/holds", Schema.toCodecStringTree<Schema.Struct<{
2488
2547
  entry: Schema.String;
2489
- }>>, never, Schema.toCodecJson<Schema.Struct<{
2490
- readonly key: Schema.optionalKey<Schema.String>;
2491
- readonly reason: Schema.String;
2492
- }>>, never, Schema.toCodecJson<Schema.Struct<{
2493
- readonly revision: Schema.Number;
2494
- readonly repeat: Schema.Boolean;
2495
- readonly hold: Schema.Union<readonly [Schema.Struct<{
2548
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
2549
+ readonly after: Schema.optionalKey<Schema.String>;
2550
+ readonly limit: Schema.optionalKey<Schema.Int>;
2551
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
2552
+ readonly items: Schema.mutable<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
2496
2553
  readonly id: Schema.String;
2497
2554
  readonly repo: Schema.String;
2498
2555
  readonly reason: Schema.String;
@@ -2502,7 +2559,8 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
2502
2559
  readonly repo: Schema.String;
2503
2560
  readonly reason: Schema.String;
2504
2561
  readonly target: Schema.String;
2505
- }>]>;
2562
+ }>]>>>;
2563
+ readonly next: Schema.optionalKey<Schema.String>;
2506
2564
  }>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
2507
2565
  readonly code: "ALREADY_EXISTS";
2508
2566
  readonly message: string;
@@ -2787,7 +2845,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
2787
2845
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
2788
2846
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
2789
2847
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
2790
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
2848
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
2791
2849
  indexBytes: Schema.optionalKey<Schema.Number>;
2792
2850
  pushBytes: Schema.optionalKey<Schema.Number>;
2793
2851
  most: Schema.optionalKey<Schema.Number>;
@@ -2879,7 +2937,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
2879
2937
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
2880
2938
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
2881
2939
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
2882
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
2940
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
2883
2941
  indexBytes: Schema.optionalKey<Schema.Number>;
2884
2942
  pushBytes: Schema.optionalKey<Schema.Number>;
2885
2943
  most: Schema.optionalKey<Schema.Number>;
@@ -2902,15 +2960,25 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
2902
2960
  }>, {
2903
2961
  "ref0-code": Schema.String;
2904
2962
  'www-authenticate': Schema.String;
2905
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"release", "DELETE", "/queue/holds/:hold", Schema.toCodecStringTree<Schema.Struct<{
2906
- hold: Schema.String;
2963
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"holdsOfTarget", "GET", "/repos/:repo/-/queue/holds", Schema.toCodecStringTree<Schema.Struct<{
2964
+ repo: Schema.String;
2907
2965
  }>>, Schema.toCodecStringTree<Schema.Struct<{
2908
- key: Schema.optionalKey<Schema.String>;
2966
+ after: Schema.optionalKey<Schema.String>;
2967
+ limit: Schema.optionalKey<Schema.Int>;
2968
+ target: Schema.optionalKey<Schema.String>;
2909
2969
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
2910
- readonly revision: Schema.Number;
2911
- readonly repeat: Schema.Boolean;
2912
- readonly hold: Schema.String;
2913
- readonly entry: Schema.optionalKey<Schema.String>;
2970
+ readonly items: Schema.mutable<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
2971
+ readonly id: Schema.String;
2972
+ readonly repo: Schema.String;
2973
+ readonly reason: Schema.String;
2974
+ readonly entry: Schema.String;
2975
+ }>, Schema.Struct<{
2976
+ readonly id: Schema.String;
2977
+ readonly repo: Schema.String;
2978
+ readonly reason: Schema.String;
2979
+ readonly target: Schema.String;
2980
+ }>]>>>;
2981
+ readonly next: Schema.optionalKey<Schema.String>;
2914
2982
  }>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
2915
2983
  readonly code: "ALREADY_EXISTS";
2916
2984
  readonly message: string;
@@ -3195,7 +3263,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
3195
3263
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
3196
3264
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
3197
3265
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
3198
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
3266
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
3199
3267
  indexBytes: Schema.optionalKey<Schema.Number>;
3200
3268
  pushBytes: Schema.optionalKey<Schema.Number>;
3201
3269
  most: Schema.optionalKey<Schema.Number>;
@@ -3287,7 +3355,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
3287
3355
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
3288
3356
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
3289
3357
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
3290
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
3358
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
3291
3359
  indexBytes: Schema.optionalKey<Schema.Number>;
3292
3360
  pushBytes: Schema.optionalKey<Schema.Number>;
3293
3361
  most: Schema.optionalKey<Schema.Number>;
@@ -3310,7 +3378,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
3310
3378
  }>, {
3311
3379
  "ref0-code": Schema.String;
3312
3380
  'www-authenticate': Schema.String;
3313
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"candidates", "GET", "/repos/:repo/-/queue/candidates", Schema.toCodecStringTree<Schema.Struct<{
3381
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/repos/:repo/-/queue/entries", Schema.toCodecStringTree<Schema.Struct<{
3314
3382
  repo: Schema.String;
3315
3383
  }>>, Schema.toCodecStringTree<Schema.Struct<{
3316
3384
  after: Schema.optionalKey<Schema.String>;
@@ -3318,21 +3386,29 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
3318
3386
  target: Schema.optionalKey<Schema.String>;
3319
3387
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
3320
3388
  readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
3389
+ readonly target: Schema.String;
3390
+ readonly source: Schema.String;
3391
+ readonly head: Schema.String;
3392
+ readonly key: Schema.String;
3393
+ readonly priority: Schema.optionalKey<Schema.Number>;
3394
+ readonly meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
3321
3395
  readonly id: Schema.String;
3322
3396
  readonly repo: Schema.String;
3323
- readonly target: Schema.String;
3324
- readonly base: Schema.NullOr<Schema.String>;
3325
- readonly entries: Schema.$Array<Schema.String>;
3326
- readonly state: Schema.Literals<readonly ["building", "checking", "closed"]>;
3327
- readonly ref: Schema.optionalKey<Schema.String>;
3328
- readonly commit: Schema.optionalKey<Schema.String>;
3397
+ readonly actor: Schema.Struct<{
3398
+ readonly id: Schema.String;
3399
+ }>;
3400
+ readonly subject: Schema.optionalKey<Schema.Struct<{
3401
+ readonly id: Schema.String;
3402
+ }>>;
3403
+ readonly state: Schema.Literals<readonly ["waiting", "checking", "held", "merged", "failed", "removed"]>;
3404
+ readonly lanes: Schema.$Array<Schema.String>;
3329
3405
  readonly report: Schema.optionalKey<Schema.Struct<{
3330
3406
  readonly summary: Schema.optionalKey<Schema.String>;
3331
3407
  readonly url: Schema.optionalKey<Schema.String>;
3332
3408
  readonly meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
3333
3409
  readonly verdict: Schema.Literals<readonly ["pass", "fail", "cancel"]>;
3334
3410
  }>>;
3335
- readonly reason: Schema.optionalKey<Schema.Literals<readonly ["merged", "passed", "failed", "cancelled", "timeout", "superseded", "restarted"]>>;
3411
+ readonly pinned: Schema.optionalKey<Schema.Literal<true>>;
3336
3412
  }>>>;
3337
3413
  readonly next: Schema.optionalKey<Schema.String>;
3338
3414
  }>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
@@ -3619,7 +3695,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
3619
3695
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
3620
3696
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
3621
3697
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
3622
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
3698
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
3623
3699
  indexBytes: Schema.optionalKey<Schema.Number>;
3624
3700
  pushBytes: Schema.optionalKey<Schema.Number>;
3625
3701
  most: Schema.optionalKey<Schema.Number>;
@@ -3711,7 +3787,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
3711
3787
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
3712
3788
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
3713
3789
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
3714
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
3790
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
3715
3791
  indexBytes: Schema.optionalKey<Schema.Number>;
3716
3792
  pushBytes: Schema.optionalKey<Schema.Number>;
3717
3793
  most: Schema.optionalKey<Schema.Number>;
@@ -3734,39 +3810,15 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
3734
3810
  }>, {
3735
3811
  "ref0-code": Schema.String;
3736
3812
  'www-authenticate': Schema.String;
3737
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/repos/:repo/-/queue/entries", Schema.toCodecStringTree<Schema.Struct<{
3738
- repo: Schema.String;
3813
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"release", "DELETE", "/queue/holds/:hold", Schema.toCodecStringTree<Schema.Struct<{
3814
+ hold: Schema.String;
3739
3815
  }>>, Schema.toCodecStringTree<Schema.Struct<{
3740
- after: Schema.optionalKey<Schema.String>;
3741
- limit: Schema.optionalKey<Schema.Int>;
3742
- target: Schema.optionalKey<Schema.String>;
3816
+ key: Schema.optionalKey<Schema.String>;
3743
3817
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
3744
- readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
3745
- readonly target: Schema.String;
3746
- readonly source: Schema.String;
3747
- readonly head: Schema.String;
3748
- readonly key: Schema.String;
3749
- readonly priority: Schema.optionalKey<Schema.Number>;
3750
- readonly meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
3751
- readonly id: Schema.String;
3752
- readonly repo: Schema.String;
3753
- readonly actor: Schema.Struct<{
3754
- readonly id: Schema.String;
3755
- }>;
3756
- readonly subject: Schema.optionalKey<Schema.Struct<{
3757
- readonly id: Schema.String;
3758
- }>>;
3759
- readonly state: Schema.Literals<readonly ["waiting", "checking", "held", "merged", "failed", "removed"]>;
3760
- readonly lanes: Schema.$Array<Schema.String>;
3761
- readonly report: Schema.optionalKey<Schema.Struct<{
3762
- readonly summary: Schema.optionalKey<Schema.String>;
3763
- readonly url: Schema.optionalKey<Schema.String>;
3764
- readonly meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
3765
- readonly verdict: Schema.Literals<readonly ["pass", "fail", "cancel"]>;
3766
- }>>;
3767
- readonly pinned: Schema.optionalKey<Schema.Literal<true>>;
3768
- }>>>;
3769
- readonly next: Schema.optionalKey<Schema.String>;
3818
+ readonly revision: Schema.Number;
3819
+ readonly repeat: Schema.Boolean;
3820
+ readonly hold: Schema.String;
3821
+ readonly entry: Schema.optionalKey<Schema.String>;
3770
3822
  }>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
3771
3823
  readonly code: "ALREADY_EXISTS";
3772
3824
  readonly message: string;
@@ -4051,7 +4103,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
4051
4103
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
4052
4104
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
4053
4105
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
4054
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
4106
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
4055
4107
  indexBytes: Schema.optionalKey<Schema.Number>;
4056
4108
  pushBytes: Schema.optionalKey<Schema.Number>;
4057
4109
  most: Schema.optionalKey<Schema.Number>;
@@ -4143,7 +4195,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
4143
4195
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
4144
4196
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
4145
4197
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
4146
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
4198
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
4147
4199
  indexBytes: Schema.optionalKey<Schema.Number>;
4148
4200
  pushBytes: Schema.optionalKey<Schema.Number>;
4149
4201
  most: Schema.optionalKey<Schema.Number>;
@@ -4166,46 +4218,14 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
4166
4218
  }>, {
4167
4219
  "ref0-code": Schema.String;
4168
4220
  'www-authenticate': Schema.String;
4169
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/repos/:repo/-/queue/entries", Schema.toCodecStringTree<Schema.Struct<{
4170
- repo: Schema.String;
4171
- }>>, never, Schema.toCodecJson<Schema.Struct<{
4172
- readonly target: Schema.String;
4173
- readonly source: Schema.String;
4174
- readonly head: Schema.String;
4175
- readonly key: Schema.String;
4176
- readonly priority: Schema.optionalKey<Schema.Number>;
4177
- readonly meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
4178
- readonly jump: Schema.optionalKey<Schema.Boolean>;
4179
- }>>, never, Schema.toCodecJson<Schema.Struct<{
4221
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/queue/entries/:entry", Schema.toCodecStringTree<Schema.Struct<{
4222
+ entry: Schema.String;
4223
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
4224
+ key: Schema.optionalKey<Schema.String>;
4225
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
4180
4226
  readonly revision: Schema.Number;
4181
4227
  readonly repeat: Schema.Boolean;
4182
- readonly entry: Schema.Struct<{
4183
- readonly target: Schema.String;
4184
- readonly source: Schema.String;
4185
- readonly head: Schema.String;
4186
- readonly key: Schema.String;
4187
- readonly priority: Schema.optionalKey<Schema.Number>;
4188
- readonly meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
4189
- readonly id: Schema.String;
4190
- readonly repo: Schema.String;
4191
- readonly actor: Schema.Struct<{
4192
- readonly id: Schema.String;
4193
- }>;
4194
- readonly subject: Schema.optionalKey<Schema.Struct<{
4195
- readonly id: Schema.String;
4196
- }>>;
4197
- readonly state: Schema.Literals<readonly ["waiting", "checking", "held", "merged", "failed", "removed"]>;
4198
- readonly lanes: Schema.$Array<Schema.String>;
4199
- readonly report: Schema.optionalKey<Schema.Struct<{
4200
- readonly summary: Schema.optionalKey<Schema.String>;
4201
- readonly url: Schema.optionalKey<Schema.String>;
4202
- readonly meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
4203
- readonly verdict: Schema.Literals<readonly ["pass", "fail", "cancel"]>;
4204
- }>>;
4205
- readonly pinned: Schema.optionalKey<Schema.Literal<true>>;
4206
- }>;
4207
- readonly ahead: Schema.Number;
4208
- readonly replaced: Schema.optionalKey<Schema.String>;
4228
+ readonly entry: Schema.String;
4209
4229
  }>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
4210
4230
  readonly code: "ALREADY_EXISTS";
4211
4231
  readonly message: string;
@@ -4490,7 +4510,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
4490
4510
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
4491
4511
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
4492
4512
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
4493
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
4513
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
4494
4514
  indexBytes: Schema.optionalKey<Schema.Number>;
4495
4515
  pushBytes: Schema.optionalKey<Schema.Number>;
4496
4516
  most: Schema.optionalKey<Schema.Number>;
@@ -4582,7 +4602,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
4582
4602
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
4583
4603
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
4584
4604
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
4585
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
4605
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
4586
4606
  indexBytes: Schema.optionalKey<Schema.Number>;
4587
4607
  pushBytes: Schema.optionalKey<Schema.Number>;
4588
4608
  most: Schema.optionalKey<Schema.Number>;
@@ -4605,25 +4625,17 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
4605
4625
  }>, {
4606
4626
  "ref0-code": Schema.String;
4607
4627
  'www-authenticate': Schema.String;
4608
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"holdsOfTarget", "GET", "/repos/:repo/-/queue/holds", Schema.toCodecStringTree<Schema.Struct<{
4609
- repo: Schema.String;
4610
- }>>, Schema.toCodecStringTree<Schema.Struct<{
4611
- after: Schema.optionalKey<Schema.String>;
4612
- limit: Schema.optionalKey<Schema.Int>;
4613
- target: Schema.optionalKey<Schema.String>;
4614
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
4615
- readonly items: Schema.mutable<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
4616
- readonly id: Schema.String;
4617
- readonly repo: Schema.String;
4618
- readonly reason: Schema.String;
4619
- readonly entry: Schema.String;
4620
- }>, Schema.Struct<{
4621
- readonly id: Schema.String;
4622
- readonly repo: Schema.String;
4623
- readonly reason: Schema.String;
4624
- readonly target: Schema.String;
4625
- }>]>>>;
4626
- readonly next: Schema.optionalKey<Schema.String>;
4628
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"report", "POST", "/queue/candidates/:candidate/report", Schema.toCodecStringTree<Schema.Struct<{
4629
+ candidate: Schema.String;
4630
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
4631
+ readonly summary: Schema.optionalKey<Schema.String>;
4632
+ readonly url: Schema.optionalKey<Schema.String>;
4633
+ readonly meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
4634
+ readonly verdict: Schema.Literals<readonly ["pass", "fail", "cancel"]>;
4635
+ readonly key: Schema.optionalKey<Schema.String>;
4636
+ readonly blame: Schema.optionalKey<Schema.$Array<Schema.String>>;
4637
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
4638
+ readonly repeat: Schema.Boolean;
4627
4639
  }>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
4628
4640
  readonly code: "ALREADY_EXISTS";
4629
4641
  readonly message: string;
@@ -4908,7 +4920,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
4908
4920
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
4909
4921
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
4910
4922
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
4911
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
4923
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
4912
4924
  indexBytes: Schema.optionalKey<Schema.Number>;
4913
4925
  pushBytes: Schema.optionalKey<Schema.Number>;
4914
4926
  most: Schema.optionalKey<Schema.Number>;
@@ -5000,7 +5012,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
5000
5012
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
5001
5013
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
5002
5014
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
5003
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
5015
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
5004
5016
  indexBytes: Schema.optionalKey<Schema.Number>;
5005
5017
  pushBytes: Schema.optionalKey<Schema.Number>;
5006
5018
  most: Schema.optionalKey<Schema.Number>;
@@ -5023,26 +5035,16 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
5023
5035
  }>, {
5024
5036
  "ref0-code": Schema.String;
5025
5037
  'www-authenticate': Schema.String;
5026
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"holdTarget", "POST", "/repos/:repo/-/queue/holds", Schema.toCodecStringTree<Schema.Struct<{
5038
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"restart", "POST", "/repos/:repo/-/queue/restart", Schema.toCodecStringTree<Schema.Struct<{
5027
5039
  repo: Schema.String;
5028
5040
  }>>, never, Schema.toCodecJson<Schema.Struct<{
5029
- readonly key: Schema.optionalKey<Schema.String>;
5030
- readonly target: Schema.String;
5031
- readonly reason: Schema.String;
5041
+ key: Schema.optionalKey<Schema.String>;
5042
+ target: Schema.String;
5032
5043
  }>>, never, Schema.toCodecJson<Schema.Struct<{
5033
5044
  readonly revision: Schema.Number;
5034
5045
  readonly repeat: Schema.Boolean;
5035
- readonly hold: Schema.Union<readonly [Schema.Struct<{
5036
- readonly id: Schema.String;
5037
- readonly repo: Schema.String;
5038
- readonly reason: Schema.String;
5039
- readonly entry: Schema.String;
5040
- }>, Schema.Struct<{
5041
- readonly id: Schema.String;
5042
- readonly repo: Schema.String;
5043
- readonly reason: Schema.String;
5044
- readonly target: Schema.String;
5045
- }>]>;
5046
+ readonly target: Schema.String;
5047
+ readonly head: Schema.String;
5046
5048
  }>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
5047
5049
  readonly code: "ALREADY_EXISTS";
5048
5050
  readonly message: string;
@@ -5327,7 +5329,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
5327
5329
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
5328
5330
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
5329
5331
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
5330
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
5332
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
5331
5333
  indexBytes: Schema.optionalKey<Schema.Number>;
5332
5334
  pushBytes: Schema.optionalKey<Schema.Number>;
5333
5335
  most: Schema.optionalKey<Schema.Number>;
@@ -5419,7 +5421,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
5419
5421
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
5420
5422
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
5421
5423
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
5422
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
5424
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
5423
5425
  indexBytes: Schema.optionalKey<Schema.Number>;
5424
5426
  pushBytes: Schema.optionalKey<Schema.Number>;
5425
5427
  most: Schema.optionalKey<Schema.Number>;
@@ -5442,16 +5444,14 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
5442
5444
  }>, {
5443
5445
  "ref0-code": Schema.String;
5444
5446
  'www-authenticate': Schema.String;
5445
- }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"restart", "POST", "/repos/:repo/-/queue/restart", Schema.toCodecStringTree<Schema.Struct<{
5446
- repo: Schema.String;
5447
+ }>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"retry", "POST", "/queue/candidates/:candidate/retry", Schema.toCodecStringTree<Schema.Struct<{
5448
+ candidate: Schema.String;
5447
5449
  }>>, never, Schema.toCodecJson<Schema.Struct<{
5448
5450
  key: Schema.optionalKey<Schema.String>;
5449
- target: Schema.String;
5450
5451
  }>>, never, Schema.toCodecJson<Schema.Struct<{
5451
5452
  readonly revision: Schema.Number;
5452
5453
  readonly repeat: Schema.Boolean;
5453
- readonly target: Schema.String;
5454
- readonly head: Schema.String;
5454
+ readonly candidate: Schema.String;
5455
5455
  }>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
5456
5456
  readonly code: "ALREADY_EXISTS";
5457
5457
  readonly message: string;
@@ -5736,7 +5736,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
5736
5736
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
5737
5737
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
5738
5738
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
5739
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
5739
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
5740
5740
  indexBytes: Schema.optionalKey<Schema.Number>;
5741
5741
  pushBytes: Schema.optionalKey<Schema.Number>;
5742
5742
  most: Schema.optionalKey<Schema.Number>;
@@ -5828,7 +5828,7 @@ declare const QueueApiGroup_base: HttpApiGroup.HttpApiGroup<"queue", HttpApiEndp
5828
5828
  readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
5829
5829
  readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
5830
5830
  readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
5831
- reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
5831
+ reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
5832
5832
  indexBytes: Schema.optionalKey<Schema.Number>;
5833
5833
  pushBytes: Schema.optionalKey<Schema.Number>;
5834
5834
  most: Schema.optionalKey<Schema.Number>;