@ref0/git 0.6.0 → 0.8.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.
- package/dist/access/namespace.d.mts +2 -0
- package/dist/access/private-refs.d.mts +6 -29
- package/dist/access/private-refs.mjs +26 -13
- package/dist/access/public.d.mts +6 -0
- package/dist/access/public.mjs +9 -0
- package/dist/auth/access-jwt.d.mts +10 -6
- package/dist/auth/access-jwt.mjs +59 -40
- package/dist/auth/auth-namespace.d.mts +6 -0
- package/dist/auth/auth-namespace.mjs +12 -0
- package/dist/auth/auth.d.mts +3 -6
- package/dist/auth/auth.mjs +2 -9
- package/dist/auth/authorize.mjs +35 -29
- package/dist/auth/bridge.mjs +8 -8
- package/dist/auth/fences.d.mts +1 -2
- package/dist/auth/fences.mjs +1 -1
- package/dist/auth/grants.d.mts +0 -1
- package/dist/auth/grants.mjs +2 -2
- package/dist/auth/host-function.d.mts +1 -7
- package/dist/auth/host-function.mjs +51 -42
- package/dist/auth/identify.d.mts +0 -1
- package/dist/auth/identify.mjs +3 -2
- package/dist/auth/namespaces.d.mts +2 -2
- package/dist/auth/policy.d.mts +7 -4
- package/dist/auth/policy.mjs +13 -10
- package/dist/auth/token-rows.mjs +3 -6
- package/dist/auth/tokens-layer.d.mts +40 -0
- package/dist/auth/tokens-layer.mjs +29 -0
- package/dist/auth/tokens-namespace.d.mts +2 -0
- package/dist/auth/tokens-public.d.mts +6 -0
- package/dist/auth/tokens-public.mjs +31 -0
- package/dist/auth/tokens.d.mts +19 -7
- package/dist/auth/tokens.mjs +12 -6
- package/dist/auth.d.mts +2 -2
- package/dist/auth.mjs +2 -2
- package/dist/client/client.d.mts +22 -15
- package/dist/client/client.mjs +31 -27
- package/dist/client/git-http.mjs +23 -6
- package/dist/client/local.mjs +5 -4
- package/dist/client/namespace.d.mts +2 -0
- package/dist/client/push-upload.d.mts +1 -0
- package/dist/client/push-upload.mjs +169 -2
- package/dist/client/remote-helper.mjs +5 -12
- package/dist/client/remote.mjs +63 -22
- package/dist/client/run-remote-helper.d.mts +1 -1
- package/dist/client/run-remote-helper.mjs +6 -6
- package/dist/client/slice-push.d.mts +1 -1
- package/dist/client/transport.mjs +26 -19
- package/dist/contracts/access.d.mts +18 -10
- package/dist/contracts/access.mjs +17 -0
- package/dist/contracts/actors.d.mts +73 -28
- package/dist/contracts/actors.mjs +45 -2
- package/dist/contracts/authorize.d.mts +26 -17
- package/dist/contracts/blobs.d.mts +1 -1
- package/dist/contracts/blobs.mjs +1 -1
- package/dist/contracts/callers.mjs +40 -0
- package/dist/contracts/calls-spent.d.mts +6 -4
- package/dist/contracts/calls-spent.mjs +10 -8
- package/dist/contracts/client.d.mts +16 -9
- package/dist/contracts/commits.d.mts +2 -2
- package/dist/contracts/commits.mjs +1 -1
- package/dist/contracts/engine.d.mts +1 -1
- package/dist/contracts/events.d.mts +45 -32
- package/dist/contracts/events.mjs +21 -10
- package/dist/contracts/files.d.mts +44 -44
- package/dist/contracts/files.mjs +1 -1
- package/dist/contracts/forks.d.mts +34 -58
- package/dist/contracts/forks.mjs +1 -1
- package/dist/contracts/git-events.d.mts +50 -0
- package/dist/contracts/git-events.mjs +23 -0
- package/dist/contracts/git-hooks.d.mts +254 -0
- package/dist/contracts/git-hooks.mjs +12 -0
- package/dist/contracts/git.d.mts +93 -42
- package/dist/contracts/git.mjs +6 -5
- package/dist/contracts/grants.d.mts +46 -27
- package/dist/contracts/ids.d.mts +16 -0
- package/dist/contracts/ids.mjs +19 -4
- package/dist/contracts/lfs.d.mts +19 -4
- package/dist/contracts/merges.d.mts +7 -7
- package/dist/contracts/namespaces.d.mts +2 -2
- package/dist/contracts/objects.d.mts +21 -5
- package/dist/contracts/opaque.mjs +27 -0
- package/dist/contracts/operations.d.mts +301 -101
- package/dist/contracts/operations.mjs +209 -0
- package/dist/contracts/promises.d.mts +2 -0
- package/dist/contracts/push-uploads.d.mts +4 -1
- package/dist/contracts/push-uploads.mjs +9 -4
- package/dist/contracts/queue.d.mts +220 -49
- package/dist/contracts/queue.mjs +68 -6
- package/dist/contracts/refs.d.mts +30 -8
- package/dist/contracts/refs.mjs +1 -1
- package/dist/contracts/remote.d.mts +53 -23
- package/dist/contracts/remote.mjs +22 -0
- package/dist/contracts/repo-records.d.mts +2 -2
- package/dist/contracts/repos.d.mts +100 -82
- package/dist/contracts/repos.mjs +47 -8
- package/dist/contracts/result.d.mts +73 -41
- package/dist/contracts/result.mjs +74 -17
- package/dist/contracts/rules.d.mts +734 -68
- package/dist/contracts/rules.mjs +84 -1
- package/dist/contracts/server.d.mts +20 -206
- package/dist/contracts/services.d.mts +1 -10
- package/dist/contracts/services.mjs +1 -5
- package/dist/contracts/signin.d.mts +140 -43
- package/dist/contracts/signin.mjs +36 -3
- package/dist/contracts/store.d.mts +1 -1
- package/dist/contracts/sync.d.mts +109 -90
- package/dist/contracts/sync.mjs +34 -7
- package/dist/contracts/tags.d.mts +1 -1
- package/dist/contracts/tags.mjs +1 -1
- package/dist/contracts/tokens.d.mts +247 -60
- package/dist/contracts/tokens.mjs +93 -21
- package/dist/contracts/topics.d.mts +59 -20
- package/dist/contracts/topics.mjs +14 -5
- package/dist/contracts/trees.d.mts +2 -2
- package/dist/contracts/trees.mjs +1 -1
- package/dist/contracts/work.d.mts +2 -2
- package/dist/contracts/work.mjs +2 -2
- package/dist/core/access.d.mts +10 -12
- package/dist/core/access.mjs +45 -11
- package/dist/core/clock.mjs +1 -1
- package/dist/core/events/deliver.d.mts +3 -2
- package/dist/core/events/deliver.mjs +188 -92
- package/dist/core/forks.mjs +78 -34
- package/dist/core/hooks/groups.d.mts +26 -0
- package/dist/core/hooks/groups.mjs +73 -0
- package/dist/core/hooks/namespace.d.mts +2 -0
- package/dist/core/hooks/order.d.mts +2 -2
- package/dist/core/hooks/order.mjs +6 -6
- package/dist/core/hooks/public.d.mts +7 -0
- package/dist/core/hooks/public.mjs +5 -0
- package/dist/core/imports.mjs +94 -10
- package/dist/core/index-job.mjs +11 -8
- package/dist/core/loose-tally.mjs +46 -0
- package/dist/core/merge-parts.d.mts +1 -1
- package/dist/core/merge-parts.mjs +1 -1
- package/dist/core/mirror-rows.mjs +18 -0
- package/dist/core/names.mjs +1 -1
- package/dist/core/namespaces.d.mts +2 -1
- package/dist/core/objects/commit-writes.mjs +5 -5
- package/dist/core/objects/merges.mjs +1 -1
- package/dist/core/objects/objects-layer.mjs +1 -1
- package/dist/core/objects/reading.mjs +52 -7
- package/dist/core/objects/tree-edits.mjs +13 -28
- package/dist/core/objects/trees.mjs +4 -4
- package/dist/core/objects/writing.mjs +4 -3
- package/dist/core/own-writes.mjs +1 -1
- package/dist/core/parts.d.mts +22 -3
- package/dist/core/parts.mjs +5 -3
- package/dist/core/promise.mjs +23 -17
- package/dist/core/purge.d.mts +2 -2
- package/dist/core/purge.mjs +89 -34
- package/dist/core/push.mjs +67 -79
- package/dist/core/receipts.d.mts +2 -2
- package/dist/core/receipts.mjs +28 -4
- package/dist/core/ref-index-job.mjs +4 -4
- package/dist/core/ref-view.mjs +16 -8
- package/dist/core/refs.mjs +41 -10
- package/dist/core/registered-records.mjs +30 -0
- package/dist/core/{claim-rows.mjs → registered-rows.mjs} +6 -6
- package/dist/core/repack.d.mts +2 -2
- package/dist/core/repack.mjs +30 -23
- package/dist/core/repo-info.mjs +62 -26
- package/dist/core/repos.mjs +18 -11
- package/dist/core/rules/changes.mjs +2 -2
- package/dist/core/rules/check.mjs +10 -10
- package/dist/core/rules/commit-changes.mjs +1 -1
- package/dist/core/rules/context.d.mts +7 -6
- package/dist/core/rules/context.mjs +18 -16
- package/dist/core/rules/fetch.mjs +78 -31
- package/dist/core/saved-caller-views.d.mts +72 -0
- package/dist/core/saved-caller-views.mjs +123 -0
- package/dist/core/saved-callers-public.d.mts +5 -0
- package/dist/core/saved-callers-public.mjs +10 -0
- package/dist/core/saved-callers.mjs +95 -0
- package/dist/core/seam.d.mts +12 -1
- package/dist/core/seam.mjs +4 -2
- package/dist/core/tokens.mjs +7 -2
- package/dist/core/view.d.mts +1 -1
- package/dist/core/view.mjs +1 -1
- package/dist/core/work.mjs +6 -5
- package/dist/effect.d.mts +2 -4
- package/dist/effect.mjs +2 -4
- package/dist/engine/commits.mjs +19 -47
- package/dist/engine/content.d.mts +2 -2
- package/dist/engine/content.mjs +1 -1
- package/dist/engine/diff.mjs +2 -2
- package/dist/engine/failures.d.mts +1 -2
- package/dist/engine/failures.mjs +1 -3
- package/dist/engine/merge-base-walk.mjs +57 -142
- package/dist/engine/merge-bases.mjs +5 -5
- package/dist/engine/merge-renames.mjs +1 -1
- package/dist/engine/merge.mjs +16 -14
- package/dist/engine/reads.d.mts +2 -2
- package/dist/engine/reads.mjs +1 -1
- package/dist/engine/xdiff.d.mts +1 -1
- package/dist/engine/xdiff.mjs +2 -2
- package/dist/event-streams/event-streams.d.mts +6 -2
- package/dist/event-streams/event-streams.mjs +6 -2
- package/dist/event-streams/stream.mjs +5 -2
- package/dist/extend.d.mts +2 -3
- package/dist/extend.mjs +2 -2
- package/dist/http/answers.mjs +4 -3
- package/dist/http/core-parts.mjs +3 -4
- package/dist/http/handler.mjs +12 -32
- package/dist/http/parts.d.mts +1 -1
- package/dist/http/push-uploads.mjs +7 -5
- package/dist/http/receive-pack.mjs +3 -3
- package/dist/http/upload-pack.mjs +6 -5
- package/dist/index.d.mts +44 -24
- package/dist/index.mjs +17 -8
- package/dist/lfs/base.d.mts +8 -5
- package/dist/lfs/base.mjs +2 -1
- package/dist/lfs/calls.mjs +3 -2
- package/dist/lfs/layer.d.mts +9 -7
- package/dist/lfs/layer.mjs +37 -22
- package/dist/lfs/locks.mjs +3 -3
- package/dist/lfs/objects.d.mts +3 -2
- package/dist/lfs/objects.mjs +235 -71
- package/dist/lfs/pointers.mjs +70 -19
- package/dist/lfs/purge.mjs +7 -3
- package/dist/lfs/rows.mjs +25 -8
- package/dist/lfs/service.d.mts +6 -3
- package/dist/lfs/service.mjs +8 -2
- package/dist/lfs/upkeep.mjs +53 -31
- package/dist/lfs/upload-most.mjs +41 -0
- package/dist/lfs/uploaded.mjs +59 -0
- package/dist/lfs/wire.mjs +1 -1
- package/dist/protocol/bytes/buffers.d.mts +1 -1
- package/dist/protocol/bytes/buffers.mjs +1 -1
- package/dist/protocol/bytes/deflate.d.mts +1 -1
- package/dist/protocol/bytes/deflate.mjs +1 -1
- package/dist/protocol/bytes/hmac-sha256.mjs +3 -6
- package/dist/protocol/bytes/inflate.d.mts +1 -1
- package/dist/protocol/bytes/inflate.mjs +1 -1
- package/dist/protocol/bytes/sha1.d.mts +1 -1
- package/dist/protocol/bytes/sha1.mjs +2 -2
- package/dist/protocol/bytes/sha256-hasher.mjs +51 -0
- package/dist/protocol/bytes/text.mjs +6 -1
- package/dist/protocol/diff/read.d.mts +1 -1
- package/dist/protocol/diff/read.mjs +1 -1
- package/dist/protocol/diff/tree-diff.d.mts +1 -1
- package/dist/protocol/diff/tree-diff.mjs +11 -11
- package/dist/protocol/objects/fsck.mjs +6 -3
- package/dist/protocol/objects/lfs-pointer.mjs +6 -1
- package/dist/protocol/objects/tag.mjs +1 -1
- package/dist/protocol/objects/tree.mjs +1 -1
- package/dist/protocol/packs/graph.mjs +1 -1
- package/dist/protocol/packs/idx.d.mts +1 -1
- package/dist/protocol/packs/idx.mjs +1 -1
- package/dist/protocol/packs/parts.mjs +1 -1
- package/dist/protocol/packs/reader.d.mts +1 -1
- package/dist/protocol/packs/reader.mjs +2 -2
- package/dist/protocol/packs/write-error.d.mts +1 -1
- package/dist/protocol/packs/write-error.mjs +1 -1
- package/dist/protocol/packs/writer.mjs +4 -4
- package/dist/protocol/wire/advertisement.d.mts +1 -1
- package/dist/protocol/wire/advertisement.mjs +1 -1
- package/dist/protocol/wire/fetch.d.mts +1 -1
- package/dist/protocol/wire/fetch.mjs +1 -1
- package/dist/protocol/wire/lines.d.mts +1 -1
- package/dist/protocol/wire/lines.mjs +2 -2
- package/dist/protocol/wire/push-uploads.mjs +4 -2
- package/dist/protocol/wire/receive-pack.d.mts +1 -1
- package/dist/protocol/wire/receive-pack.mjs +1 -1
- package/dist/protocol/wire/report-status.d.mts +1 -1
- package/dist/protocol/wire/report-status.mjs +1 -1
- package/dist/protocol/wire/v2.d.mts +2 -2
- package/dist/protocol/wire/v2.mjs +2 -2
- package/dist/queue/advance.mjs +190 -68
- package/dist/queue/callers.mjs +56 -69
- package/dist/queue/calls.mjs +10 -11
- package/dist/queue/commit.mjs +28 -22
- package/dist/queue/host.d.mts +10 -11
- package/dist/queue/host.mjs +15 -7
- package/dist/queue/lanes.mjs +9 -18
- package/dist/queue/layer.d.mts +3 -3
- package/dist/queue/layer.mjs +11 -10
- package/dist/queue/limits.mjs +17 -5
- package/dist/queue/rows.mjs +13 -10
- package/dist/queue/schedule.mjs +7 -6
- package/dist/queue/search.mjs +11 -17
- package/dist/queue/state.mjs +7 -2
- package/dist/queue/trim.mjs +10 -5
- package/dist/rest/api.d.mts +1 -1
- package/dist/rest/blobs.d.mts +20 -20
- package/dist/rest/caller.d.mts +22 -20
- package/dist/rest/client-namespace.d.mts +2 -0
- package/dist/rest/client.d.mts +32 -8
- package/dist/rest/client.mjs +314 -388
- package/dist/rest/commits.d.mts +284 -284
- package/dist/rest/errors.d.mts +10 -10
- package/dist/rest/errors.mjs +1 -1
- package/dist/rest/events.d.mts +13 -11
- package/dist/rest/events.mjs +3 -1
- package/dist/rest/files.d.mts +48 -48
- package/dist/rest/forks.d.mts +131 -143
- package/dist/rest/handler.mjs +4 -3
- package/dist/rest/handlers.mjs +15 -8
- package/dist/rest/layer.d.mts +3 -3
- package/dist/rest/layer.mjs +8 -7
- package/dist/rest/listen.d.mts +8 -6
- package/dist/rest/listen.mjs +33 -77
- package/dist/rest/me.d.mts +18 -20
- package/dist/rest/me.mjs +1 -1
- package/dist/rest/merges.d.mts +17 -17
- package/dist/rest/queue.d.mts +140 -140
- package/dist/rest/queue.mjs +1 -1
- package/dist/rest/refs.d.mts +214 -214
- package/dist/rest/refs.mjs +1 -1
- package/dist/rest/repos.d.mts +123 -135
- package/dist/rest/tags.d.mts +30 -30
- package/dist/rest/tokens.d.mts +250 -260
- package/dist/rest/tokens.mjs +10 -42
- package/dist/rest/topics.d.mts +162 -162
- package/dist/rest/topics.mjs +1 -1
- package/dist/rest/trees.d.mts +117 -117
- package/dist/rest/wire.d.mts +7 -5
- package/dist/rest/wire.mjs +4 -3
- package/dist/rest/work.d.mts +69 -69
- package/dist/rest/work.mjs +1 -1
- package/dist/rest.d.mts +1 -7
- package/dist/rest.mjs +1 -5
- package/dist/server/check-fetch.mjs +9 -0
- package/dist/server/extension.mjs +3 -115
- package/dist/server/git-layer.d.mts +30 -5
- package/dist/server/git-layer.mjs +59 -29
- package/dist/server/git-namespace.d.mts +4 -4
- package/dist/server/git-namespace.mjs +6 -4
- package/dist/server/joined.d.mts +83 -0
- package/dist/server/joined.mjs +91 -0
- package/dist/server/registry.d.mts +7 -3
- package/dist/server/registry.mjs +135 -31
- package/dist/server/server.d.mts +9 -3
- package/dist/server/server.mjs +277 -208
- package/dist/signin/context.d.mts +2 -2
- package/dist/signin/context.mjs +28 -37
- package/dist/signin/device.mjs +5 -5
- package/dist/signin/forms.mjs +1 -1
- package/dist/signin/grants.d.mts +2 -3
- package/dist/signin/grants.mjs +5 -5
- package/dist/signin/layer.d.mts +9 -0
- package/dist/signin/layer.mjs +41 -0
- package/dist/signin/namespace.d.mts +2 -0
- package/dist/signin/public.d.mts +6 -0
- package/dist/signin/public.mjs +5 -0
- package/dist/signin/route.mjs +47 -21
- package/dist/signin/web.mjs +3 -3
- package/dist/signin/wire.mjs +1 -1
- package/dist/storage/calls.d.mts +1 -1
- package/dist/storage/calls.mjs +4 -4
- package/dist/storage/clean-up.mjs +15 -6
- package/dist/storage/counted-bucket.mjs +34 -51
- package/dist/storage/fetch.mjs +1 -1
- package/dist/storage/fsck.mjs +12 -2
- package/dist/storage/graph-rebuild.mjs +262 -0
- package/dist/storage/host-bucket.mjs +1 -1
- package/dist/storage/index-build.d.mts +2 -2
- package/dist/storage/index-build.mjs +103 -15
- package/dist/storage/index-fetch.mjs +10 -6
- package/dist/storage/index-graph.mjs +1 -1
- package/dist/storage/index-layers.mjs +1 -1
- package/dist/storage/index-visible.mjs +1 -1
- package/dist/storage/lfs-pointers.d.mts +5 -5
- package/dist/storage/lfs-pointers.mjs +37 -11
- package/dist/storage/loose.mjs +4 -1
- package/dist/storage/memory-budget.mjs +8 -2
- package/dist/storage/merge-cut.mjs +24 -1
- package/dist/storage/merge-fence.mjs +82 -20
- package/dist/storage/merge-most.mjs +1 -0
- package/dist/storage/merge-plan.mjs +5 -2
- package/dist/storage/merge-row.mjs +17 -5
- package/dist/storage/merge-stream.mjs +25 -13
- package/dist/storage/merge-write.mjs +1 -1
- package/dist/storage/merge.d.mts +2 -2
- package/dist/storage/merge.mjs +1 -1
- package/dist/storage/object-rows.d.mts +2 -2
- package/dist/storage/object-rows.mjs +20 -4
- package/dist/storage/pack-ranges.d.mts +3 -1
- package/dist/storage/pack-ranges.mjs +168 -69
- package/dist/storage/pack-reads.mjs +4 -4
- package/dist/storage/pack-receive.d.mts +1 -1
- package/dist/storage/pack-receive.mjs +17 -15
- package/dist/storage/packs.d.mts +1 -1
- package/dist/storage/packs.mjs +103 -79
- package/dist/storage/placed-reads.mjs +81 -15
- package/dist/storage/prune-seen.mjs +126 -0
- package/dist/storage/prune-walk.mjs +87 -99
- package/dist/storage/prune.mjs +113 -50
- package/dist/storage/push-uploads.mjs +4 -2
- package/dist/storage/quarantine.d.mts +2 -2
- package/dist/storage/ready.d.mts +2 -2
- package/dist/storage/ready.mjs +15 -6
- package/dist/storage/receive-files.mjs +1 -1
- package/dist/storage/receive-links.mjs +1 -1
- package/dist/storage/receive-state.d.mts +2 -2
- package/dist/storage/receive-state.mjs +2 -2
- package/dist/storage/receive-steps.mjs +1 -1
- package/dist/storage/repack-contained.mjs +24 -16
- package/dist/storage/repack-job.d.mts +2 -2
- package/dist/storage/repack-job.mjs +5 -4
- package/dist/storage/repack.d.mts +2 -2
- package/dist/storage/repack.mjs +12 -5
- package/dist/storage/rows.d.mts +2 -2
- package/dist/storage/rows.mjs +1 -1
- package/dist/storage/runs.d.mts +2 -2
- package/dist/storage/runs.mjs +15 -6
- package/dist/storage/send-list.mjs +6 -6
- package/dist/storage/single-flight.mjs +2 -2
- package/dist/storage/swap-walk.mjs +1 -1
- package/dist/storage/unpack.mjs +8 -1
- package/dist/store/call-count.d.mts +24 -4
- package/dist/store/call-count.mjs +158 -44
- package/dist/store/catalogue.d.mts +1 -1
- package/dist/store/catalogue.mjs +2 -2
- package/dist/store/crossing.mjs +2 -6
- package/dist/store/cursor-seal.mjs +1 -1
- package/dist/store/errors.d.mts +7 -3
- package/dist/store/errors.mjs +41 -13
- package/dist/store/job-try.mjs +119 -15
- package/dist/store/list-job.mjs +5 -5
- package/dist/store/outbox.d.mts +2 -2
- package/dist/store/outbox.mjs +75 -16
- package/dist/store/promises.d.mts +2 -2
- package/dist/store/promises.mjs +31 -6
- package/dist/store/queue-jobs.mjs +1 -1
- package/dist/store/records.d.mts +2 -2
- package/dist/store/records.mjs +22 -24
- package/dist/store/ref-rows.d.mts +2 -2
- package/dist/store/ref-rows.mjs +6 -6
- package/dist/store/repo-record.mjs +29 -12
- package/dist/store/reservations.mjs +35 -8
- package/dist/store/scopes.mjs +12 -5
- package/dist/store/topic-jobs.mjs +8 -8
- package/dist/sync/bound.d.mts +1 -3
- package/dist/sync/bound.mjs +30 -42
- package/dist/sync/github.d.mts +5 -6
- package/dist/sync/github.mjs +37 -42
- package/dist/sync/http.mjs +15 -0
- package/dist/sync/import.mjs +30 -19
- package/dist/sync/layer.d.mts +13 -0
- package/dist/sync/layer.mjs +73 -0
- package/dist/sync/mirror.mjs +137 -58
- package/dist/sync/publish.mjs +3 -6
- package/dist/sync/step.mjs +223 -85
- package/dist/sync/tries.mjs +22 -15
- package/dist/sync.d.mts +3 -6
- package/dist/sync.mjs +3 -6
- package/dist/topics/advance.mjs +210 -94
- package/dist/topics/calls.mjs +8 -8
- package/dist/topics/directory.mjs +35 -12
- package/dist/topics/host.d.mts +5 -8
- package/dist/topics/host.mjs +42 -19
- package/dist/topics/layer.d.mts +381 -0
- package/dist/topics/layer.mjs +62 -0
- package/dist/topics/members.mjs +39 -10
- package/dist/topics/namespace.d.mts +2 -0
- package/dist/topics/public.d.mts +6 -0
- package/dist/topics/public.mjs +13 -0
- package/dist/topics/rows.mjs +12 -3
- package/dist/topics/topic.mjs +11 -10
- package/package.json +8 -13
- package/dist/access.d.mts +0 -2
- package/dist/access.mjs +0 -1
- package/dist/core/hooks/post-receive.mjs +0 -216
- package/dist/core/hooks/pre-receive.d.mts +0 -12
- package/dist/core/hooks/pre-receive.mjs +0 -36
- package/dist/engine/merge-base-walk.d.mts +0 -3
- package/dist/server/extension.d.mts +0 -21
- package/dist/server/routes.d.mts +0 -32
- package/dist/server/routes.mjs +0 -69
- package/dist/sync/import.d.mts +0 -10
- package/dist/sync/jobs.d.mts +0 -9
- package/dist/sync/jobs.mjs +0 -75
- package/dist/sync/mirror.d.mts +0 -13
- package/dist/sync/publish.d.mts +0 -6
- /package/dist/core/{claim-rows.d.mts → registered-rows.d.mts} +0 -0
package/dist/rest/handler.mjs
CHANGED
|
@@ -10,10 +10,10 @@ import { normalBase, restPath, wireRepoPath } from "./paths.mjs";
|
|
|
10
10
|
import { exitIn, noCall } from "../store/crossing.mjs";
|
|
11
11
|
import { answerSpent } from "../store/errors.mjs";
|
|
12
12
|
import * as Effect from "effect/Effect";
|
|
13
|
-
import * as
|
|
13
|
+
import * as Option from "effect/Option";
|
|
14
14
|
import * as Cause from "effect/Cause";
|
|
15
15
|
import * as Exit from "effect/Exit";
|
|
16
|
-
import * as
|
|
16
|
+
import * as Context from "effect/Context";
|
|
17
17
|
import * as Layer from "effect/Layer";
|
|
18
18
|
import { HttpApiBuilder } from "effect/http-api";
|
|
19
19
|
import * as HttpRouter from "effect/http/HttpRouter";
|
|
@@ -118,12 +118,13 @@ const serveRest = (parts) => {
|
|
|
118
118
|
const createRestHandler = (git) => {
|
|
119
119
|
const seam = seamOf(git);
|
|
120
120
|
if (seam === void 0) throw new TypeError("createRestHandler takes a server createGitServer made");
|
|
121
|
-
const { basePath, identify, authorize, callsFor, renamedTo, listen } = lazyParts(seam);
|
|
121
|
+
const { basePath, identify, authorize, callsFor, tokensOn, renamedTo, listen } = lazyParts(seam);
|
|
122
122
|
const { door } = seam;
|
|
123
123
|
const services = Context.make(GitRestServices, {
|
|
124
124
|
basePath,
|
|
125
125
|
identify,
|
|
126
126
|
callsFor,
|
|
127
|
+
tokensOn,
|
|
127
128
|
authorize,
|
|
128
129
|
listen
|
|
129
130
|
});
|
package/dist/rest/handlers.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { noTokens } from "../auth/tokens-layer.mjs";
|
|
1
2
|
import { tokenParties } from "../auth/tokens.mjs";
|
|
2
3
|
import { treeOrChanges } from "../core/objects/commit-writes.mjs";
|
|
3
4
|
import { base64Size, jsonSize, responseBytes, responseTooLarge } from "../core/objects/reading.mjs";
|
|
@@ -6,6 +7,7 @@ import { boundedBytes } from "../protocol/bytes/reader.mjs";
|
|
|
6
7
|
import { tryUnlessSpent } from "../contracts/calls-spent.mjs";
|
|
7
8
|
import { gitError } from "../contracts/result.mjs";
|
|
8
9
|
import { GitCaller } from "../contracts/services.mjs";
|
|
10
|
+
import { Topics } from "../topics/layer.mjs";
|
|
9
11
|
import { GitRestApi } from "./api.mjs";
|
|
10
12
|
import { GitCallerMiddleware, GitRestServices, IncomingRequest } from "./caller.mjs";
|
|
11
13
|
import { sseResponse } from "./events.mjs";
|
|
@@ -128,7 +130,6 @@ const commitInputOf = ({ tree, changes, ...fields }, by) => {
|
|
|
128
130
|
changes: edits
|
|
129
131
|
}));
|
|
130
132
|
};
|
|
131
|
-
const noTokens = /* @__PURE__ */ gitError("NOT_FOUND", "This server doesn't have tokens turned on", { hostHint: "Pass tokens() in the server's features" });
|
|
132
133
|
const anonymous = /* @__PURE__ */ gitError("UNAUTHENTICATED", "Sign in to see who you are");
|
|
133
134
|
/**
|
|
134
135
|
* The caller as `/me` shows them, once `authorize` takes the `me` kind: `Me`'s schema drops what it
|
|
@@ -162,7 +163,8 @@ const GitCallerMiddlewareLive = Layer.succeed(GitCallerMiddleware)((httpEffect)
|
|
|
162
163
|
const services = yield* GitRestServices;
|
|
163
164
|
const request = yield* incoming;
|
|
164
165
|
const caller = yield* services.identify(request);
|
|
165
|
-
|
|
166
|
+
const topics = services.callsFor(caller).topics;
|
|
167
|
+
return yield* (topics === void 0 ? httpEffect : Effect.provideService(httpEffect, Topics, topics)).pipe(Effect.catch((error) => HttpApiSchemaError.is(error) && isRequestPart(error) ? Effect.fail(invalidArgument(error)) : Effect.fail(error)), Effect.provideService(GitCaller, caller));
|
|
166
168
|
}).pipe(answerSpent));
|
|
167
169
|
const actor = GitCaller.useSync((caller) => caller.actor);
|
|
168
170
|
/** The server's calls, each deciding for the caller `identify` answered: its token's ceiling too. */
|
|
@@ -403,8 +405,12 @@ const FilesHandlers = HttpApiBuilder.group(GitRestApi, "files", (handlers) => ha
|
|
|
403
405
|
actor: yield* actor
|
|
404
406
|
});
|
|
405
407
|
})));
|
|
406
|
-
/**
|
|
408
|
+
/**
|
|
409
|
+
* The server's token calls, after `authorize`: direct calls trust host code, REST doesn't. With
|
|
410
|
+
* Git's own tokens off, `noTokens`, before anything is authorized.
|
|
411
|
+
*/
|
|
407
412
|
const tokenCalls = Effect.gen(function* () {
|
|
413
|
+
if (!(yield* (yield* GitRestServices).tokensOn)) return yield* Effect.fail(noTokens);
|
|
408
414
|
const server = yield* callsFor;
|
|
409
415
|
if (server.tokens === void 0) return yield* Effect.fail(noTokens);
|
|
410
416
|
return server.tokens;
|
|
@@ -439,7 +445,8 @@ const createToken = /* @__PURE__ */ Effect.fnUntraced(function* (scope, body) {
|
|
|
439
445
|
const tokens = yield* tokenCalls;
|
|
440
446
|
yield* authorized({
|
|
441
447
|
kind: "token.create",
|
|
442
|
-
...tokenParties(body)
|
|
448
|
+
...tokenParties(body),
|
|
449
|
+
scope: body.scope
|
|
443
450
|
}, scope);
|
|
444
451
|
return yield* tokens.create(scope.target, body);
|
|
445
452
|
});
|
|
@@ -547,14 +554,14 @@ const QueueHandlers = HttpApiBuilder.group(GitRestApi, "queue", (handlers) => ha
|
|
|
547
554
|
});
|
|
548
555
|
})));
|
|
549
556
|
const noTopics = /* @__PURE__ */ gitError("NOT_FOUND", "This server has no topics", {
|
|
550
|
-
hostHint: "
|
|
557
|
+
hostHint: "Provide Topics.layer()",
|
|
551
558
|
context: { reason: "no-topics" }
|
|
552
559
|
});
|
|
553
560
|
/** The server's topic calls, for the caller: `NOT_FOUND`, `no-topics`, on a server with none. */
|
|
554
561
|
const topicCalls = Effect.gen(function* () {
|
|
555
|
-
const
|
|
556
|
-
if (
|
|
557
|
-
return
|
|
562
|
+
const topics = yield* Effect.serviceOption(Topics);
|
|
563
|
+
if (Option.isNone(topics)) return yield* Effect.fail(noTopics);
|
|
564
|
+
return topics.value;
|
|
558
565
|
});
|
|
559
566
|
const TopicsHandlers = HttpApiBuilder.group(GitRestApi, "topics", (handlers) => handlers.handle("add", ({ payload }) => Effect.gen(function* () {
|
|
560
567
|
return yield* (yield* topicCalls).add({
|
package/dist/rest/layer.d.mts
CHANGED
|
@@ -6,9 +6,9 @@ declare namespace layer_d_exports {
|
|
|
6
6
|
export { layer };
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* Git's REST API as a feature of `Git.layer`: it
|
|
10
|
-
* band, after every other
|
|
11
|
-
* Without it, no REST URL is served. A server
|
|
9
|
+
* Git's REST API as a feature of `Git.layer`: it registers `rest`, and answers its URLs in the `post`
|
|
10
|
+
* band, after every other registration's route and Git's own, over the calls of the server the build made.
|
|
11
|
+
* Without it, no REST URL is served. A server without `Tokens.layer()` answers its tokens URLs `404`.
|
|
12
12
|
*/
|
|
13
13
|
export declare const layer: () => Layer.Layer<never, GitError, Git | ServerSeam>;
|
|
14
14
|
export { layer_d_exports };
|
package/dist/rest/layer.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { register } from "../contracts/git.mjs";
|
|
3
3
|
import { ServerSeam } from "../core/seam.mjs";
|
|
4
4
|
import { GitRestServices } from "./caller.mjs";
|
|
5
5
|
import { notFound, restApp } from "./handler.mjs";
|
|
@@ -8,7 +8,7 @@ import * as Context from "effect/Context";
|
|
|
8
8
|
import * as Layer from "effect/Layer";
|
|
9
9
|
// src/rest/layer.ts
|
|
10
10
|
var layer_exports = /* @__PURE__ */ __exportAll({ layer: () => layer });
|
|
11
|
-
/** REST's URLs under `<base>`, as `restPath` owns them: each a route of the `rest`
|
|
11
|
+
/** REST's URLs under `<base>`, as `restPath` owns them: each a route of the `rest` registration. */
|
|
12
12
|
const restRoots = [
|
|
13
13
|
"/me",
|
|
14
14
|
"/repos/*",
|
|
@@ -17,18 +17,19 @@ const restRoots = [
|
|
|
17
17
|
"/topics/*"
|
|
18
18
|
];
|
|
19
19
|
/**
|
|
20
|
-
* Git's REST API as a feature of `Git.layer`: it
|
|
21
|
-
* band, after every other
|
|
22
|
-
* Without it, no REST URL is served. A server
|
|
20
|
+
* Git's REST API as a feature of `Git.layer`: it registers `rest`, and answers its URLs in the `post`
|
|
21
|
+
* band, after every other registration's route and Git's own, over the calls of the server the build made.
|
|
22
|
+
* Without it, no REST URL is served. A server without `Tokens.layer()` answers its tokens URLs `404`.
|
|
23
23
|
*/
|
|
24
24
|
const layer = () => Layer.effectDiscard(Effect.gen(function* () {
|
|
25
25
|
const built = yield* (yield* ServerSeam).parts;
|
|
26
|
-
const rest = yield*
|
|
27
|
-
const { basePath, identify, callsFor, authorize, listen, renamedTo } = built;
|
|
26
|
+
const rest = yield* register({ name: "rest" });
|
|
27
|
+
const { basePath, identify, callsFor, tokensOn, authorize, listen, renamedTo } = built;
|
|
28
28
|
const services = Context.make(GitRestServices, {
|
|
29
29
|
basePath,
|
|
30
30
|
identify,
|
|
31
31
|
callsFor,
|
|
32
|
+
tokensOn,
|
|
32
33
|
authorize,
|
|
33
34
|
listen
|
|
34
35
|
});
|
package/dist/rest/listen.d.mts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { CallInput } from "../contracts/actors.mjs";
|
|
2
1
|
import { RepoName } from "../contracts/ids.mjs";
|
|
3
|
-
import {
|
|
2
|
+
import { GitError } from "../contracts/result.mjs";
|
|
4
3
|
import { RepoStreamEvent } from "./wire.mjs";
|
|
5
|
-
|
|
4
|
+
import "effect/Effect";
|
|
5
|
+
import * as Stream from "effect/Stream";
|
|
6
|
+
export interface ListenInput {
|
|
6
7
|
/** The last `seq` read: the stream starts after it. Left out, it starts at the oldest kept. */
|
|
7
8
|
readonly after?: number;
|
|
8
9
|
}
|
|
@@ -13,9 +14,10 @@ export interface RestEvents {
|
|
|
13
14
|
* after the last `seq` read, and tried again while the remote is `UNAVAILABLE` or past its
|
|
14
15
|
* deadline. The stream errors with any other refusal a reconnect meets, such as access lost,
|
|
15
16
|
* and `FAILED_PRECONDITION`, reason `cursor-expired`, once the server keeps no events after it:
|
|
16
|
-
* retention took them, or no event had its `seq`. It closes after `repo.deleted`.
|
|
17
|
-
* connection
|
|
17
|
+
* retention took them, or no event had its `seq`. It closes after `repo.deleted`. The first
|
|
18
|
+
* connection opens on the first pull, so a refusal there fails it, and interrupting the stream
|
|
19
|
+
* closes the connection.
|
|
18
20
|
*/
|
|
19
|
-
readonly listen: (repo: RepoName, input?: ListenInput) =>
|
|
21
|
+
readonly listen: (repo: RepoName, input?: ListenInput) => Stream.Stream<RepoStreamEvent, GitError>;
|
|
20
22
|
}
|
|
21
23
|
export type { RepoStreamEvent };
|
package/dist/rest/listen.mjs
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { ownedReader } from "../protocol/bytes/reader.mjs";
|
|
2
1
|
import { gitError } from "../contracts/result.mjs";
|
|
3
2
|
import { RepoStreamEvent, StreamEnd } from "./wire.mjs";
|
|
4
|
-
import * as Schema from "effect/Schema";
|
|
5
3
|
import * as Effect from "effect/Effect";
|
|
6
|
-
import * as Predicate from "effect/Predicate";
|
|
7
4
|
import * as Option from "effect/Option";
|
|
5
|
+
import * as Schema from "effect/Schema";
|
|
6
|
+
import * as Predicate from "effect/Predicate";
|
|
7
|
+
import * as Stream from "effect/Stream";
|
|
8
8
|
import * as Sse from "effect/encoding/Sse";
|
|
9
9
|
// src/rest/listen.ts
|
|
10
10
|
/** The first pause before opening again a connection that sent no event, doubled up to 9 s. */
|
|
11
11
|
const firstPause = 100;
|
|
12
12
|
const maxPause = 9e3;
|
|
13
|
-
const pause = (ms, signal) => Effect.runPromise(Effect.sleep(ms), { signal }).catch(() => void 0);
|
|
14
13
|
const expired = (after) => gitError("FAILED_PRECONDITION", `The remote keeps no events after ${after}: listen again without 'after'`, { context: {
|
|
15
14
|
reason: "cursor-expired",
|
|
16
15
|
after
|
|
@@ -31,20 +30,14 @@ const eventOf = (data, seq) => {
|
|
|
31
30
|
return event?.seq === seq ? event : void 0;
|
|
32
31
|
};
|
|
33
32
|
/** A repo's events over `connect`'s connections, each opened after the last `seq` read. */
|
|
34
|
-
const listenOver =
|
|
35
|
-
const ending = new AbortController();
|
|
36
|
-
const signal = input.signal === void 0 ? ending.signal : AbortSignal.any([input.signal, ending.signal]);
|
|
33
|
+
const listenOver = (connect, input = {}) => Stream.suspend(() => {
|
|
37
34
|
let last = input.after;
|
|
38
|
-
|
|
39
|
-
if (opened.kind === "error") return opened;
|
|
40
|
-
let owned = ownedReader(opened.value);
|
|
41
|
-
let body = owned.reader;
|
|
42
|
-
let decoder = new TextDecoder();
|
|
35
|
+
let opened = false;
|
|
43
36
|
let heard = false;
|
|
44
37
|
let wait = firstPause;
|
|
45
38
|
let failure;
|
|
46
39
|
let deleted = false;
|
|
47
|
-
|
|
40
|
+
let read = [];
|
|
48
41
|
const parser = Sse.makeParser((event) => {
|
|
49
42
|
if (!Predicate.isTagged(event, "Event") || failure !== void 0 || deleted) return;
|
|
50
43
|
if (event.event === "end") {
|
|
@@ -62,75 +55,38 @@ const listenOver = async (connect, input = {}) => {
|
|
|
62
55
|
failure = unreadable(`event ${seq}'s data isn't that event`);
|
|
63
56
|
return;
|
|
64
57
|
}
|
|
65
|
-
|
|
58
|
+
read.push(parsed);
|
|
66
59
|
heard = true;
|
|
67
60
|
last = seq;
|
|
68
61
|
deleted ||= parsed.type === "repo.deleted";
|
|
69
62
|
});
|
|
70
|
-
const end = () => {
|
|
71
|
-
ending.abort();
|
|
72
|
-
owned.close();
|
|
73
|
-
};
|
|
74
|
-
signal.addEventListener("abort", end, { once: true });
|
|
75
63
|
/**
|
|
76
|
-
*
|
|
77
|
-
*
|
|
64
|
+
* The next connection after `last`: pausing first when the last one sent no event, and again
|
|
65
|
+
* after each failure that passes, on the backoff.
|
|
78
66
|
*/
|
|
79
|
-
const reconnect =
|
|
67
|
+
const reconnect = () => Effect.suspend(() => {
|
|
68
|
+
const paused = heard ? Effect.void : Effect.sleep(wait);
|
|
69
|
+
wait = heard ? firstPause : Math.min(wait * 2, maxPause);
|
|
70
|
+
heard = false;
|
|
71
|
+
return paused.pipe(Effect.andThen(Effect.suspend(() => connect(last))), Effect.catch((error) => passing(error) ? reconnect() : Effect.fail(error)));
|
|
72
|
+
});
|
|
73
|
+
const next = Effect.suspend(() => {
|
|
74
|
+
if (opened) return reconnect();
|
|
75
|
+
opened = true;
|
|
76
|
+
return connect(last);
|
|
77
|
+
});
|
|
78
|
+
/** One connection's events, the chunk that held a failure ending them with it. */
|
|
79
|
+
const eventsOf = (body) => Stream.suspend(() => {
|
|
80
|
+
const decoder = new TextDecoder();
|
|
80
81
|
parser.reset();
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
if (!
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
body = owned.reader;
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
if (!passing(again.error)) {
|
|
95
|
-
failure = again.error;
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
return {
|
|
101
|
-
kind: "success",
|
|
102
|
-
value: new ReadableStream({
|
|
103
|
-
pull: async (controller) => {
|
|
104
|
-
for (;;) {
|
|
105
|
-
if (input.signal?.aborted === true) {
|
|
106
|
-
end();
|
|
107
|
-
return controller.error(input.signal.reason);
|
|
108
|
-
}
|
|
109
|
-
const next = queue.shift();
|
|
110
|
-
if (next !== void 0) return controller.enqueue(next);
|
|
111
|
-
if (failure !== void 0) {
|
|
112
|
-
end();
|
|
113
|
-
return controller.error(failure);
|
|
114
|
-
}
|
|
115
|
-
if (signal.aborted || deleted) {
|
|
116
|
-
end();
|
|
117
|
-
return controller.close();
|
|
118
|
-
}
|
|
119
|
-
const read = await body.read().catch(() => ({
|
|
120
|
-
done: true,
|
|
121
|
-
value: void 0
|
|
122
|
-
}));
|
|
123
|
-
if (read.done) {
|
|
124
|
-
owned.close();
|
|
125
|
-
await reconnect();
|
|
126
|
-
continue;
|
|
127
|
-
}
|
|
128
|
-
const tooLong = parser.feed(decoder.decode(read.value, { stream: true }));
|
|
129
|
-
if (tooLong !== void 0 && !deleted) failure ??= unreadable(tooLong.message);
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
cancel: () => end()
|
|
133
|
-
}, { highWaterMark: 0 })
|
|
134
|
-
};
|
|
135
|
-
};
|
|
82
|
+
return body.pipe(Stream.catch(() => Stream.empty), Stream.flatMap((chunk) => {
|
|
83
|
+
const tooLong = parser.feed(decoder.decode(chunk, { stream: true }));
|
|
84
|
+
if (tooLong !== void 0 && !deleted) failure ??= unreadable(tooLong.message);
|
|
85
|
+
const events = Stream.fromIterable(read);
|
|
86
|
+
read = [];
|
|
87
|
+
return failure === void 0 ? events : Stream.concat(events, Stream.fail(failure));
|
|
88
|
+
}));
|
|
89
|
+
});
|
|
90
|
+
return Stream.fromEffectRepeat(next).pipe(Stream.flatMap(eventsOf), Stream.takeUntil((event) => event.type === "repo.deleted"));
|
|
91
|
+
});
|
|
136
92
|
export { listenOver };
|
package/dist/rest/me.d.mts
CHANGED
|
@@ -17,21 +17,19 @@ declare const MeApiGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.H
|
|
|
17
17
|
readonly id: Schema.String;
|
|
18
18
|
}>>;
|
|
19
19
|
readonly token: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
20
|
-
id: Schema.String;
|
|
21
|
-
scope: Schema.Literals<readonly ["read", "report", "write"]>;
|
|
22
|
-
expiresAt: Schema.Number;
|
|
23
|
-
createdAt: Schema.Number;
|
|
24
|
-
} & {
|
|
25
20
|
readonly repo: Schema.String;
|
|
26
21
|
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
22
|
+
readonly id: Schema.String;
|
|
23
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
24
|
+
readonly expiresAt: Schema.Number;
|
|
25
|
+
readonly createdAt: Schema.Number;
|
|
27
26
|
}>, Schema.Struct<{
|
|
28
|
-
id: Schema.String;
|
|
29
|
-
scope: Schema.Literals<readonly ["read", "report", "write"]>;
|
|
30
|
-
expiresAt: Schema.Number;
|
|
31
|
-
createdAt: Schema.Number;
|
|
32
|
-
} & {
|
|
33
27
|
readonly prefix: Schema.String;
|
|
34
28
|
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
29
|
+
readonly id: Schema.String;
|
|
30
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
31
|
+
readonly expiresAt: Schema.Number;
|
|
32
|
+
readonly createdAt: Schema.Number;
|
|
35
33
|
}>]>>;
|
|
36
34
|
}>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
|
|
37
35
|
readonly code: "ALREADY_EXISTS";
|
|
@@ -258,7 +256,7 @@ declare const MeApiGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.H
|
|
|
258
256
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
259
257
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
260
258
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
261
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["graph-length", "merge-incomplete"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
259
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["event-version", "graph-length", "merge-incomplete"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
262
260
|
}>, 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]>>]>>;
|
|
263
261
|
}> | Schema.Struct<{
|
|
264
262
|
readonly code: Schema.Literal<"DEADLINE_EXCEEDED">;
|
|
@@ -272,7 +270,7 @@ declare const MeApiGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.H
|
|
|
272
270
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
273
271
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
274
272
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
275
|
-
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", "
|
|
273
|
+
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>]>>;
|
|
276
274
|
importState: Schema.optionalKey<Schema.Literals<readonly ["running", "cancelled", "failed"]>>;
|
|
277
275
|
attribute: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
278
276
|
paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
@@ -299,7 +297,7 @@ declare const MeApiGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.H
|
|
|
299
297
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
300
298
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
301
299
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
302
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["files-refused", "entry-unpublishable"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
300
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["files-refused", "entry-unpublishable", "fetch-depth-unsupported"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
303
301
|
entries: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
304
302
|
paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
305
303
|
total: Schema.optionalKey<Schema.Number>;
|
|
@@ -309,7 +307,7 @@ declare const MeApiGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.H
|
|
|
309
307
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
310
308
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
311
309
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
312
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["no-queue", "no-topics", "ambiguous"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
310
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["no-queue", "no-sync", "no-topics", "ambiguous"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
313
311
|
target: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
314
312
|
}>, 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]>>]>>;
|
|
315
313
|
}> | Schema.Struct<{
|
|
@@ -317,7 +315,7 @@ declare const MeApiGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.H
|
|
|
317
315
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
318
316
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
319
317
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
320
|
-
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>]>>;
|
|
318
|
+
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", "job-step-calls", "job-step-yielded"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
321
319
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
322
320
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
323
321
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -350,7 +348,7 @@ declare const MeApiGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.H
|
|
|
350
348
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
351
349
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
352
350
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
353
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["graph-length", "merge-incomplete"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
351
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["event-version", "graph-length", "merge-incomplete"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
354
352
|
}>, 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
353
|
}> | Schema.Struct<{
|
|
356
354
|
readonly code: Schema.Literal<"DEADLINE_EXCEEDED">;
|
|
@@ -364,7 +362,7 @@ declare const MeApiGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.H
|
|
|
364
362
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
365
363
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
366
364
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
367
|
-
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", "
|
|
365
|
+
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>]>>;
|
|
368
366
|
importState: Schema.optionalKey<Schema.Literals<readonly ["running", "cancelled", "failed"]>>;
|
|
369
367
|
attribute: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
370
368
|
paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
@@ -391,7 +389,7 @@ declare const MeApiGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.H
|
|
|
391
389
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
392
390
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
393
391
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
394
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["files-refused", "entry-unpublishable"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
392
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["files-refused", "entry-unpublishable", "fetch-depth-unsupported"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
395
393
|
entries: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
396
394
|
paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
397
395
|
total: Schema.optionalKey<Schema.Number>;
|
|
@@ -401,7 +399,7 @@ declare const MeApiGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.H
|
|
|
401
399
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
402
400
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
403
401
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
404
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["no-queue", "no-topics", "ambiguous"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
402
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["no-queue", "no-sync", "no-topics", "ambiguous"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
405
403
|
target: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
406
404
|
}>, 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]>>]>>;
|
|
407
405
|
}> | Schema.Struct<{
|
|
@@ -409,7 +407,7 @@ declare const MeApiGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.H
|
|
|
409
407
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
410
408
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
411
409
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
412
|
-
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>]>>;
|
|
410
|
+
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", "job-step-calls", "job-step-yielded"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
413
411
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
414
412
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
415
413
|
most: Schema.optionalKey<Schema.Number>;
|
package/dist/rest/me.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GitCallerMiddleware } from "./caller.mjs";
|
|
2
2
|
import { GitErrors } from "./errors.mjs";
|
|
3
|
-
import { TokenInfo } from "./tokens.mjs";
|
|
4
3
|
import { ActorId } from "../contracts/actors.mjs";
|
|
4
|
+
import { TokenInfo } from "../contracts/tokens.mjs";
|
|
5
5
|
import * as Schema from "effect/Schema";
|
|
6
6
|
import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/http-api";
|
|
7
7
|
// src/rest/me.ts
|
package/dist/rest/merges.d.mts
CHANGED
|
@@ -4,21 +4,21 @@ import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api";
|
|
|
4
4
|
declare const MergesApiGroup_base: HttpApiGroup.HttpApiGroup<"merges", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/repos/:repo/-/merges", Schema.toCodecStringTree<Schema.Struct<{
|
|
5
5
|
repo: Schema.String;
|
|
6
6
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
7
|
-
readonly
|
|
8
|
-
readonly
|
|
9
|
-
readonly committer: Schema.optionalKey<Schema.Struct<{
|
|
7
|
+
readonly message: Schema.String;
|
|
8
|
+
readonly author: Schema.Struct<{
|
|
10
9
|
readonly name: Schema.String;
|
|
11
10
|
readonly email: Schema.String;
|
|
12
11
|
readonly at: Schema.Number;
|
|
13
12
|
readonly offset: Schema.Int;
|
|
14
|
-
}
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
13
|
+
}>;
|
|
14
|
+
readonly ours: Schema.String;
|
|
15
|
+
readonly theirs: Schema.String;
|
|
16
|
+
readonly committer: Schema.optionalKey<Schema.Struct<{
|
|
17
17
|
readonly name: Schema.String;
|
|
18
18
|
readonly email: Schema.String;
|
|
19
19
|
readonly at: Schema.Number;
|
|
20
20
|
readonly offset: Schema.Int;
|
|
21
|
-
}
|
|
21
|
+
}>>;
|
|
22
22
|
readonly key: Schema.optionalKey<Schema.String>;
|
|
23
23
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
24
24
|
readonly kind: Schema.Literal<"merged">;
|
|
@@ -289,7 +289,7 @@ declare const MergesApiGroup_base: HttpApiGroup.HttpApiGroup<"merges", HttpApiEn
|
|
|
289
289
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
290
290
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
291
291
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
292
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["graph-length", "merge-incomplete"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
292
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["event-version", "graph-length", "merge-incomplete"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
293
293
|
}>, 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]>>]>>;
|
|
294
294
|
}> | Schema.Struct<{
|
|
295
295
|
readonly code: Schema.Literal<"DEADLINE_EXCEEDED">;
|
|
@@ -303,7 +303,7 @@ declare const MergesApiGroup_base: HttpApiGroup.HttpApiGroup<"merges", HttpApiEn
|
|
|
303
303
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
304
304
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
305
305
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
306
|
-
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", "
|
|
306
|
+
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>]>>;
|
|
307
307
|
importState: Schema.optionalKey<Schema.Literals<readonly ["running", "cancelled", "failed"]>>;
|
|
308
308
|
attribute: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
309
309
|
paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
@@ -330,7 +330,7 @@ declare const MergesApiGroup_base: HttpApiGroup.HttpApiGroup<"merges", HttpApiEn
|
|
|
330
330
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
331
331
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
332
332
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
333
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["files-refused", "entry-unpublishable"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
333
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["files-refused", "entry-unpublishable", "fetch-depth-unsupported"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
334
334
|
entries: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
335
335
|
paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
336
336
|
total: Schema.optionalKey<Schema.Number>;
|
|
@@ -340,7 +340,7 @@ declare const MergesApiGroup_base: HttpApiGroup.HttpApiGroup<"merges", HttpApiEn
|
|
|
340
340
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
341
341
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
342
342
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
343
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["no-queue", "no-topics", "ambiguous"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
343
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["no-queue", "no-sync", "no-topics", "ambiguous"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
344
344
|
target: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
345
345
|
}>, 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]>>]>>;
|
|
346
346
|
}> | Schema.Struct<{
|
|
@@ -348,7 +348,7 @@ declare const MergesApiGroup_base: HttpApiGroup.HttpApiGroup<"merges", HttpApiEn
|
|
|
348
348
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
349
349
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
350
350
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
351
|
-
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>]>>;
|
|
351
|
+
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", "job-step-calls", "job-step-yielded"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
352
352
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
353
353
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
354
354
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -381,7 +381,7 @@ declare const MergesApiGroup_base: HttpApiGroup.HttpApiGroup<"merges", HttpApiEn
|
|
|
381
381
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
382
382
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
383
383
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
384
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["graph-length", "merge-incomplete"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
384
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["event-version", "graph-length", "merge-incomplete"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
385
385
|
}>, 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]>>]>>;
|
|
386
386
|
}> | Schema.Struct<{
|
|
387
387
|
readonly code: Schema.Literal<"DEADLINE_EXCEEDED">;
|
|
@@ -395,7 +395,7 @@ declare const MergesApiGroup_base: HttpApiGroup.HttpApiGroup<"merges", HttpApiEn
|
|
|
395
395
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
396
396
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
397
397
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
398
|
-
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", "
|
|
398
|
+
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>]>>;
|
|
399
399
|
importState: Schema.optionalKey<Schema.Literals<readonly ["running", "cancelled", "failed"]>>;
|
|
400
400
|
attribute: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
401
401
|
paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
@@ -422,7 +422,7 @@ declare const MergesApiGroup_base: HttpApiGroup.HttpApiGroup<"merges", HttpApiEn
|
|
|
422
422
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
423
423
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
424
424
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
425
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["files-refused", "entry-unpublishable"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
425
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["files-refused", "entry-unpublishable", "fetch-depth-unsupported"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
426
426
|
entries: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
427
427
|
paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
428
428
|
total: Schema.optionalKey<Schema.Number>;
|
|
@@ -432,7 +432,7 @@ declare const MergesApiGroup_base: HttpApiGroup.HttpApiGroup<"merges", HttpApiEn
|
|
|
432
432
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
433
433
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
434
434
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
435
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["no-queue", "no-topics", "ambiguous"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
435
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["no-queue", "no-sync", "no-topics", "ambiguous"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
436
436
|
target: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
437
437
|
}>, 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]>>]>>;
|
|
438
438
|
}> | Schema.Struct<{
|
|
@@ -440,7 +440,7 @@ declare const MergesApiGroup_base: HttpApiGroup.HttpApiGroup<"merges", HttpApiEn
|
|
|
440
440
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
441
441
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
442
442
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
443
|
-
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>]>>;
|
|
443
|
+
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", "job-step-calls", "job-step-yielded"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
444
444
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
445
445
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
446
446
|
most: Schema.optionalKey<Schema.Number>;
|