@ref0/git 0.6.0 → 0.7.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 +28 -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 +4 -5
- package/dist/auth/fences.d.mts +1 -1
- package/dist/auth/host-function.mjs +17 -8
- package/dist/auth/identify.mjs +2 -1
- package/dist/auth/namespaces.d.mts +2 -2
- package/dist/auth/token-rows.mjs +1 -1
- package/dist/auth/tokens-layer.d.mts +42 -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 +29 -0
- package/dist/auth/tokens.d.mts +13 -6
- package/dist/auth/tokens.mjs +5 -5
- package/dist/auth.d.mts +2 -2
- package/dist/auth.mjs +2 -2
- package/dist/client/git-http.mjs +1 -1
- package/dist/client/local.mjs +4 -3
- package/dist/client/remote-helper.mjs +3 -8
- package/dist/client/remote.mjs +26 -7
- package/dist/client/run-remote-helper.d.mts +1 -1
- package/dist/client/run-remote-helper.mjs +2 -2
- package/dist/client/slice-push.d.mts +1 -1
- package/dist/contracts/access.d.mts +18 -10
- package/dist/contracts/access.mjs +17 -0
- package/dist/contracts/actors.d.mts +17 -1
- package/dist/contracts/actors.mjs +8 -1
- package/dist/contracts/authorize.d.mts +7 -4
- package/dist/contracts/blobs.d.mts +1 -1
- package/dist/contracts/blobs.mjs +1 -1
- package/dist/contracts/calls-spent.d.mts +6 -4
- package/dist/contracts/calls-spent.mjs +10 -8
- 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 +33 -22
- package/dist/contracts/events.mjs +13 -4
- package/dist/contracts/files.d.mts +2 -2
- package/dist/contracts/files.mjs +1 -1
- package/dist/contracts/forks.d.mts +58 -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 +37 -0
- package/dist/contracts/git-hooks.mjs +10 -0
- package/dist/contracts/git.d.mts +93 -42
- package/dist/contracts/git.mjs +6 -5
- package/dist/contracts/ids.d.mts +16 -0
- package/dist/contracts/ids.mjs +19 -4
- package/dist/contracts/lfs.d.mts +2 -0
- package/dist/contracts/namespaces.d.mts +2 -2
- package/dist/contracts/objects.d.mts +1 -1
- package/dist/contracts/opaque.mjs +9 -0
- package/dist/contracts/operations.d.mts +293 -100
- 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 +218 -47
- package/dist/contracts/queue.mjs +81 -6
- package/dist/contracts/refs.d.mts +30 -8
- package/dist/contracts/refs.mjs +1 -1
- package/dist/contracts/remote.d.mts +42 -21
- package/dist/contracts/remote.mjs +22 -0
- package/dist/contracts/repo-records.d.mts +2 -2
- package/dist/contracts/repos.d.mts +126 -79
- package/dist/contracts/repos.mjs +43 -5
- package/dist/contracts/result.d.mts +46 -31
- package/dist/contracts/result.mjs +43 -16
- package/dist/contracts/rules.d.mts +50 -44
- package/dist/contracts/rules.mjs +5 -1
- package/dist/contracts/server.d.mts +282 -198
- package/dist/contracts/services.d.mts +1 -7
- package/dist/contracts/services.mjs +1 -3
- package/dist/contracts/signin.d.mts +140 -43
- package/dist/contracts/signin.mjs +35 -1
- package/dist/contracts/store.d.mts +1 -1
- package/dist/contracts/sync.d.mts +112 -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 +232 -57
- package/dist/contracts/tokens.mjs +80 -19
- package/dist/contracts/topics.d.mts +22 -10
- package/dist/contracts/topics.mjs +6 -3
- 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 -10
- package/dist/core/access.mjs +31 -8
- package/dist/core/clock.mjs +1 -1
- package/dist/core/events/deliver.d.mts +3 -2
- package/dist/core/events/deliver.mjs +170 -92
- package/dist/core/forks.mjs +49 -24
- package/dist/core/hooks/groups.d.mts +27 -0
- package/dist/core/hooks/groups.mjs +74 -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/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 +3 -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 -3
- package/dist/core/purge.d.mts +2 -2
- package/dist/core/purge.mjs +80 -30
- package/dist/core/push.mjs +55 -74
- 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 +2 -2
- 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 +11 -9
- package/dist/core/repo-info.mjs +59 -25
- package/dist/core/repos.mjs +17 -11
- package/dist/core/rules/changes.mjs +2 -2
- package/dist/core/rules/commit-changes.mjs +1 -1
- package/dist/core/rules/context.d.mts +4 -5
- package/dist/core/rules/context.mjs +3 -4
- package/dist/core/rules/fetch.mjs +74 -21
- 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 +5 -1
- 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 -2
- package/dist/effect.mjs +2 -2
- 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/merge-base-walk.d.mts +2 -2
- package/dist/engine/merge-base-walk.mjs +1 -1
- package/dist/engine/merge-renames.mjs +1 -1
- 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 +3 -3
- package/dist/extend.mjs +3 -2
- package/dist/http/answers.mjs +4 -3
- package/dist/http/core-parts.mjs +2 -2
- package/dist/http/handler.mjs +1 -1
- package/dist/http/parts.d.mts +1 -0
- 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 +33 -20
- package/dist/index.mjs +13 -7
- package/dist/lfs/base.d.mts +2 -2
- package/dist/lfs/calls.mjs +3 -2
- package/dist/lfs/layer.d.mts +5 -4
- package/dist/lfs/layer.mjs +17 -16
- package/dist/lfs/locks.mjs +3 -3
- package/dist/lfs/objects.d.mts +3 -2
- package/dist/lfs/objects.mjs +149 -34
- package/dist/lfs/pointers.mjs +1 -1
- package/dist/lfs/purge.mjs +1 -1
- package/dist/lfs/rows.mjs +1 -1
- package/dist/lfs/upkeep.mjs +13 -9
- 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/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/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 +155 -63
- package/dist/queue/callers.mjs +56 -69
- package/dist/queue/calls.mjs +20 -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 +5 -10
- package/dist/queue/schedule.mjs +6 -5
- package/dist/queue/search.mjs +8 -13
- 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.mjs +6 -6
- package/dist/rest/commits.d.mts +335 -335
- 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 +30 -30
- package/dist/rest/forks.d.mts +150 -150
- package/dist/rest/handler.mjs +4 -3
- package/dist/rest/handlers.mjs +13 -7
- package/dist/rest/layer.d.mts +3 -3
- package/dist/rest/layer.mjs +8 -7
- package/dist/rest/listen.mjs +2 -2
- package/dist/rest/me.d.mts +18 -20
- package/dist/rest/me.mjs +1 -1
- package/dist/rest/merges.d.mts +10 -10
- package/dist/rest/queue.d.mts +140 -140
- package/dist/rest/queue.mjs +1 -1
- package/dist/rest/refs.d.mts +95 -95
- package/dist/rest/refs.mjs +1 -1
- package/dist/rest/repos.d.mts +127 -127
- 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 +63 -63
- package/dist/rest/topics.mjs +1 -1
- package/dist/rest/trees.d.mts +106 -106
- package/dist/rest/wire.d.mts +6 -4
- package/dist/rest/wire.mjs +4 -3
- package/dist/rest/work.d.mts +69 -69
- package/dist/rest/work.mjs +1 -1
- package/dist/server/check-fetch.mjs +9 -0
- package/dist/server/extension.mjs +3 -115
- package/dist/server/git-layer.d.mts +20 -3
- package/dist/server/git-layer.mjs +30 -19
- 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/routes.mjs +2 -2
- package/dist/server/server.d.mts +9 -2
- package/dist/server/server.mjs +279 -191
- package/dist/signin/context.d.mts +2 -1
- package/dist/signin/context.mjs +32 -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 +12 -5
- package/dist/storage/counted-bucket.mjs +34 -51
- package/dist/storage/fetch.mjs +1 -1
- package/dist/storage/host-bucket.mjs +1 -1
- package/dist/storage/index-build.d.mts +2 -2
- package/dist/storage/index-build.mjs +3 -3
- 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/memory-budget.mjs +7 -1
- package/dist/storage/merge-cut.mjs +24 -1
- package/dist/storage/merge-fence.mjs +1 -1
- package/dist/storage/merge-plan.mjs +5 -2
- package/dist/storage/merge-row.mjs +1 -1
- package/dist/storage/merge-stream.mjs +16 -7
- 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 +3 -3
- 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 +7 -9
- package/dist/storage/packs.d.mts +1 -1
- package/dist/storage/packs.mjs +45 -52
- 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 +49 -14
- 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 +3 -3
- 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 +1 -1
- package/dist/storage/receive-steps.mjs +1 -1
- package/dist/storage/repack-contained.mjs +2 -2
- package/dist/storage/repack-job.d.mts +2 -2
- package/dist/storage/repack-job.mjs +5 -4
- package/dist/storage/repack.d.mts +1 -1
- package/dist/storage/repack.mjs +9 -3
- 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 +1 -1
- package/dist/store/call-count.d.mts +1 -1
- package/dist/store/call-count.mjs +125 -34
- 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 +16 -24
- package/dist/store/ref-rows.d.mts +2 -2
- package/dist/store/ref-rows.mjs +6 -6
- package/dist/store/reservations.mjs +35 -8
- package/dist/store/scopes.mjs +6 -4
- 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/bridge.d.mts +6 -0
- package/dist/sync/bridge.mjs +29 -0
- 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 +17 -18
- package/dist/sync/layer.d.mts +9 -0
- package/dist/sync/layer.mjs +68 -0
- package/dist/sync/mirror.mjs +137 -58
- package/dist/sync/publish.mjs +3 -6
- package/dist/sync/step.mjs +217 -79
- 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 +205 -90
- 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 +1 -1
- 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/server/extension.d.mts +0 -21
- 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
|
@@ -1,34 +1,36 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { CandidateId, EntryFields, EntryId, HoldId } from "./queue.mjs";
|
|
3
|
-
import { RefEdit, RefSource, RefUpdateKind } from "./refs.mjs";
|
|
4
|
-
import { ActorId } from "./actors.mjs";
|
|
5
|
-
import { TokenCoverage } from "./tokens.mjs";
|
|
6
|
-
import { JobRef } from "@ref0/infra";
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
7
2
|
/** What `authorize` is asked about. */
|
|
8
|
-
export
|
|
9
|
-
readonly kind:
|
|
10
|
-
readonly repo:
|
|
11
|
-
}
|
|
3
|
+
export declare const RepoOperation: Schema.Struct<{
|
|
4
|
+
readonly kind: Schema.Literals<readonly ["fetch", "read", "object.create", "repo.create", "repo.update", "repo.delete"]>;
|
|
5
|
+
readonly repo: Schema.String;
|
|
6
|
+
}>;
|
|
7
|
+
export type RepoOperation = typeof RepoOperation.Type;
|
|
12
8
|
/**
|
|
13
9
|
* Anything that moves a ref. At advertisement, `updates` is empty. Each edit has no kind yet:
|
|
14
10
|
* whether a move is a fast-forward needs the pack, received after. The rules get the kind.
|
|
15
11
|
*/
|
|
16
|
-
export
|
|
17
|
-
readonly kind:
|
|
18
|
-
readonly repo:
|
|
19
|
-
readonly updates:
|
|
20
|
-
|
|
12
|
+
export declare const PushOperation: Schema.Struct<{
|
|
13
|
+
readonly kind: Schema.Literal<"push">;
|
|
14
|
+
readonly repo: Schema.String;
|
|
15
|
+
readonly updates: Schema.$Array<Schema.Struct<{
|
|
16
|
+
readonly ref: Schema.String;
|
|
17
|
+
readonly from: Schema.NullOr<Schema.String>;
|
|
18
|
+
readonly to: Schema.NullOr<Schema.String>;
|
|
19
|
+
}>>;
|
|
20
|
+
}>;
|
|
21
|
+
export type PushOperation = typeof PushOperation.Type;
|
|
21
22
|
/**
|
|
22
23
|
* A push with `-o allow-files` that adds or changes `paths` on `ref`, each a file a `Rules.files`
|
|
23
24
|
* rule there refuses: accepted, it lets them through, and the ref's `ref.updated` records them.
|
|
24
25
|
* At most 100 paths, the first refused first.
|
|
25
26
|
*/
|
|
26
|
-
export
|
|
27
|
-
readonly kind:
|
|
28
|
-
readonly repo:
|
|
29
|
-
readonly ref:
|
|
30
|
-
readonly paths:
|
|
31
|
-
}
|
|
27
|
+
export declare const FilesAllowOperation: Schema.Struct<{
|
|
28
|
+
readonly kind: Schema.Literal<"files.allow">;
|
|
29
|
+
readonly repo: Schema.String;
|
|
30
|
+
readonly ref: Schema.String;
|
|
31
|
+
readonly paths: Schema.$Array<Schema.String>;
|
|
32
|
+
}>;
|
|
33
|
+
export type FilesAllowOperation = typeof FilesAllowOperation.Type;
|
|
32
34
|
/**
|
|
33
35
|
* A change to `ref` that a `Rules.protect` rule (`protect.bypass`) or a `Rules.lock` rule
|
|
34
36
|
* (`lock.bypass`) there refuses, asked only once the rule would refuse it: accepted, it lifts that
|
|
@@ -36,82 +38,153 @@ export interface FilesAllowOperation {
|
|
|
36
38
|
* the rule refuses, never a create, and `source` how the change came, which a rule's `sources`
|
|
37
39
|
* turn on. Git's own `authorize` and the starter's refuse it, for everyone.
|
|
38
40
|
*/
|
|
39
|
-
export
|
|
40
|
-
readonly kind:
|
|
41
|
-
readonly repo:
|
|
42
|
-
readonly ref:
|
|
43
|
-
readonly move:
|
|
44
|
-
readonly source:
|
|
45
|
-
}
|
|
41
|
+
export declare const BypassOperation: Schema.Struct<{
|
|
42
|
+
readonly kind: Schema.Literals<readonly ["protect.bypass", "lock.bypass"]>;
|
|
43
|
+
readonly repo: Schema.String;
|
|
44
|
+
readonly ref: Schema.String;
|
|
45
|
+
readonly move: Schema.Literals<readonly ["fast-forward", "force", "delete"]>;
|
|
46
|
+
readonly source: Schema.Literals<readonly ["git", "api", "queue", "import"]>;
|
|
47
|
+
}>;
|
|
48
|
+
export type BypassOperation = typeof BypassOperation.Type;
|
|
46
49
|
/**
|
|
47
50
|
* A list of repos under `prefix`. An anonymous caller asks it for the public repos alone, which
|
|
48
51
|
* are all its list reads, so accepting it shows no private name.
|
|
49
52
|
*/
|
|
50
|
-
export
|
|
51
|
-
readonly kind:
|
|
52
|
-
readonly prefix
|
|
53
|
-
}
|
|
54
|
-
export
|
|
55
|
-
|
|
56
|
-
readonly
|
|
57
|
-
readonly
|
|
58
|
-
|
|
53
|
+
export declare const RepoListOperation: Schema.Struct<{
|
|
54
|
+
readonly kind: Schema.Literal<"repo.list">;
|
|
55
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
56
|
+
}>;
|
|
57
|
+
export type RepoListOperation = typeof RepoListOperation.Type;
|
|
58
|
+
export declare const ForkOperation: Schema.Struct<{
|
|
59
|
+
readonly kind: Schema.Literals<readonly ["fork.create", "fork.sync"]>;
|
|
60
|
+
readonly repo: Schema.String;
|
|
61
|
+
readonly holder: Schema.String;
|
|
62
|
+
}>;
|
|
63
|
+
export type ForkOperation = typeof ForkOperation.Type;
|
|
59
64
|
/**
|
|
60
65
|
* A new token's parties: `subject`, whom it's for and its caller once it's used, and `actor`, who
|
|
61
66
|
* acts for them, named only when it's someone else.
|
|
62
67
|
*/
|
|
63
|
-
export
|
|
64
|
-
readonly subject:
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
readonly
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
readonly kind:
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
readonly
|
|
85
|
-
readonly
|
|
86
|
-
|
|
87
|
-
}
|
|
68
|
+
export declare const TokenParties: Schema.Struct<{
|
|
69
|
+
readonly subject: Schema.Struct<{
|
|
70
|
+
readonly id: Schema.String;
|
|
71
|
+
}>;
|
|
72
|
+
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
73
|
+
readonly id: Schema.String;
|
|
74
|
+
}>>;
|
|
75
|
+
}>;
|
|
76
|
+
export type TokenParties = typeof TokenParties.Type;
|
|
77
|
+
export declare const TokenCreateOperation: Schema.Union<readonly [Schema.Struct<{
|
|
78
|
+
readonly repo: Schema.String;
|
|
79
|
+
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
80
|
+
readonly subject: Schema.Struct<{
|
|
81
|
+
readonly id: Schema.String;
|
|
82
|
+
}>;
|
|
83
|
+
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
84
|
+
readonly id: Schema.String;
|
|
85
|
+
}>>;
|
|
86
|
+
readonly kind: Schema.Literal<"token.create">;
|
|
87
|
+
}>, Schema.Struct<{
|
|
88
|
+
readonly prefix: Schema.String;
|
|
89
|
+
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
90
|
+
readonly subject: Schema.Struct<{
|
|
91
|
+
readonly id: Schema.String;
|
|
92
|
+
}>;
|
|
93
|
+
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
94
|
+
readonly id: Schema.String;
|
|
95
|
+
}>>;
|
|
96
|
+
readonly kind: Schema.Literal<"token.create">;
|
|
97
|
+
}>]>;
|
|
98
|
+
export type TokenCreateOperation = typeof TokenCreateOperation.Type;
|
|
99
|
+
export declare const TokenOperation: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
100
|
+
readonly repo: Schema.String;
|
|
101
|
+
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
102
|
+
readonly subject: Schema.Struct<{
|
|
103
|
+
readonly id: Schema.String;
|
|
104
|
+
}>;
|
|
105
|
+
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
106
|
+
readonly id: Schema.String;
|
|
107
|
+
}>>;
|
|
108
|
+
readonly kind: Schema.Literal<"token.create">;
|
|
109
|
+
}>, Schema.Struct<{
|
|
110
|
+
readonly prefix: Schema.String;
|
|
111
|
+
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
112
|
+
readonly subject: Schema.Struct<{
|
|
113
|
+
readonly id: Schema.String;
|
|
114
|
+
}>;
|
|
115
|
+
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
116
|
+
readonly id: Schema.String;
|
|
117
|
+
}>>;
|
|
118
|
+
readonly kind: Schema.Literal<"token.create">;
|
|
119
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
120
|
+
readonly repo: Schema.String;
|
|
121
|
+
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
122
|
+
readonly kind: Schema.Literal<"token.revoke">;
|
|
123
|
+
readonly subject: Schema.Struct<{
|
|
124
|
+
readonly id: Schema.String;
|
|
125
|
+
}>;
|
|
126
|
+
}>, Schema.Struct<{
|
|
127
|
+
readonly prefix: Schema.String;
|
|
128
|
+
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
129
|
+
readonly kind: Schema.Literal<"token.revoke">;
|
|
130
|
+
readonly subject: Schema.Struct<{
|
|
131
|
+
readonly id: Schema.String;
|
|
132
|
+
}>;
|
|
133
|
+
}>]>, Schema.Struct<{
|
|
134
|
+
readonly repo: Schema.String;
|
|
135
|
+
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
136
|
+
readonly kind: Schema.Literal<"token.list">;
|
|
137
|
+
}>, Schema.Struct<{
|
|
138
|
+
readonly prefix: Schema.String;
|
|
139
|
+
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
140
|
+
readonly kind: Schema.Literal<"token.list">;
|
|
141
|
+
}>]>;
|
|
142
|
+
export type TokenOperation = typeof TokenOperation.Type;
|
|
143
|
+
export declare const QueueAddOperation: Schema.Struct<{
|
|
144
|
+
readonly kind: Schema.Literal<"queue.add">;
|
|
145
|
+
readonly repo: Schema.String;
|
|
146
|
+
readonly entry: Schema.Struct<{
|
|
147
|
+
readonly target: Schema.String;
|
|
148
|
+
readonly source: Schema.String;
|
|
149
|
+
readonly head: Schema.String;
|
|
150
|
+
readonly key: Schema.String;
|
|
151
|
+
readonly priority: Schema.optionalKey<Schema.Number>;
|
|
152
|
+
readonly meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
153
|
+
}>;
|
|
154
|
+
}>;
|
|
155
|
+
export type QueueAddOperation = typeof QueueAddOperation.Type;
|
|
88
156
|
/** A hold on `target`, or on `entry` there, and a restart of `target`. */
|
|
89
|
-
export
|
|
90
|
-
readonly kind:
|
|
91
|
-
readonly repo:
|
|
92
|
-
readonly target:
|
|
93
|
-
readonly entry
|
|
94
|
-
}
|
|
95
|
-
export
|
|
96
|
-
|
|
97
|
-
readonly
|
|
98
|
-
readonly
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
readonly
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
157
|
+
export declare const QueueTargetOperation: Schema.Struct<{
|
|
158
|
+
readonly kind: Schema.Literals<readonly ["queue.hold", "queue.restart"]>;
|
|
159
|
+
readonly repo: Schema.String;
|
|
160
|
+
readonly target: Schema.String;
|
|
161
|
+
readonly entry: Schema.optionalKey<Schema.String>;
|
|
162
|
+
}>;
|
|
163
|
+
export type QueueTargetOperation = typeof QueueTargetOperation.Type;
|
|
164
|
+
export declare const QueueEntryOperation: Schema.Struct<{
|
|
165
|
+
readonly kind: Schema.Literal<"queue.remove">;
|
|
166
|
+
readonly repo: Schema.String;
|
|
167
|
+
readonly entry: Schema.String;
|
|
168
|
+
}>;
|
|
169
|
+
export type QueueEntryOperation = typeof QueueEntryOperation.Type;
|
|
170
|
+
export declare const QueueCandidateOperation: Schema.Struct<{
|
|
171
|
+
readonly kind: Schema.Literals<readonly ["queue.report", "queue.retry"]>;
|
|
172
|
+
readonly repo: Schema.String;
|
|
173
|
+
readonly candidate: Schema.String;
|
|
174
|
+
}>;
|
|
175
|
+
export type QueueCandidateOperation = typeof QueueCandidateOperation.Type;
|
|
176
|
+
export declare const QueueReleaseOperation: Schema.Struct<{
|
|
177
|
+
readonly kind: Schema.Literal<"queue.release">;
|
|
178
|
+
readonly repo: Schema.String;
|
|
179
|
+
readonly hold: Schema.String;
|
|
180
|
+
}>;
|
|
181
|
+
export type QueueReleaseOperation = typeof QueueReleaseOperation.Type;
|
|
110
182
|
/** A topic's add, removal, report or read; `topic` is left out for an add and a list. */
|
|
111
|
-
export
|
|
112
|
-
readonly kind:
|
|
113
|
-
readonly topic
|
|
114
|
-
}
|
|
183
|
+
export declare const TopicOperation: Schema.Struct<{
|
|
184
|
+
readonly kind: Schema.Literals<readonly ["topic.add", "topic.remove", "topic.report", "topic.read"]>;
|
|
185
|
+
readonly topic: Schema.optionalKey<Schema.String>;
|
|
186
|
+
}>;
|
|
187
|
+
export type TopicOperation = typeof TopicOperation.Type;
|
|
115
188
|
/**
|
|
116
189
|
* Which of a repo's private ref patterns the caller reads and publishes, asked once per caller and
|
|
117
190
|
* repo in a request, never once per ref, when the server was made with `access`. `patterns` is
|
|
@@ -120,22 +193,142 @@ export interface TopicOperation {
|
|
|
120
193
|
* the caller may make reachable from a ref more people see. An answer with neither, `accept()`
|
|
121
194
|
* with no value, or a refusal, sees no private ref and publishes nothing.
|
|
122
195
|
*/
|
|
123
|
-
export
|
|
124
|
-
readonly kind:
|
|
125
|
-
readonly repo:
|
|
126
|
-
readonly patterns:
|
|
127
|
-
}
|
|
196
|
+
export declare const RefsPrivateOperation: Schema.Struct<{
|
|
197
|
+
readonly kind: Schema.Literal<"refs.private">;
|
|
198
|
+
readonly repo: Schema.String;
|
|
199
|
+
readonly patterns: Schema.$Array<Schema.String>;
|
|
200
|
+
}>;
|
|
201
|
+
export type RefsPrivateOperation = typeof RefsPrivateOperation.Type;
|
|
128
202
|
/**
|
|
129
203
|
* `GET <base>/me`: who the caller is, asked with the caller alone before Git shows them their own
|
|
130
204
|
* IDs. A host refuses it to a credential it no longer honours, such as a token whose person has
|
|
131
205
|
* left the org it's over, so a refused token learns nothing at `/me` either.
|
|
132
206
|
*/
|
|
133
|
-
export
|
|
134
|
-
readonly kind:
|
|
135
|
-
}
|
|
136
|
-
export
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
207
|
+
export declare const MeOperation: Schema.Struct<{
|
|
208
|
+
readonly kind: Schema.Literal<"me">;
|
|
209
|
+
}>;
|
|
210
|
+
export type MeOperation = typeof MeOperation.Type;
|
|
211
|
+
/** A repo's work, or one job of it: `name` and `key` its `JobRef`'s, each left out to mean any. */
|
|
212
|
+
export declare const WorkOperation: Schema.Struct<{
|
|
213
|
+
readonly kind: Schema.Literals<readonly ["work.list", "work.retry", "work.discard"]>;
|
|
214
|
+
readonly repo: Schema.String;
|
|
215
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
216
|
+
readonly key: Schema.optionalKey<Schema.String>;
|
|
217
|
+
}>;
|
|
218
|
+
export type WorkOperation = typeof WorkOperation.Type;
|
|
219
|
+
export declare const Operation: Schema.Union<readonly [Schema.Struct<{
|
|
220
|
+
readonly kind: Schema.Literals<readonly ["fetch", "read", "object.create", "repo.create", "repo.update", "repo.delete"]>;
|
|
221
|
+
readonly repo: Schema.String;
|
|
222
|
+
}>, Schema.Struct<{
|
|
223
|
+
readonly kind: Schema.Literal<"push">;
|
|
224
|
+
readonly repo: Schema.String;
|
|
225
|
+
readonly updates: Schema.$Array<Schema.Struct<{
|
|
226
|
+
readonly ref: Schema.String;
|
|
227
|
+
readonly from: Schema.NullOr<Schema.String>;
|
|
228
|
+
readonly to: Schema.NullOr<Schema.String>;
|
|
229
|
+
}>>;
|
|
230
|
+
}>, Schema.Struct<{
|
|
231
|
+
readonly kind: Schema.Literal<"files.allow">;
|
|
232
|
+
readonly repo: Schema.String;
|
|
233
|
+
readonly ref: Schema.String;
|
|
234
|
+
readonly paths: Schema.$Array<Schema.String>;
|
|
235
|
+
}>, Schema.Struct<{
|
|
236
|
+
readonly kind: Schema.Literals<readonly ["protect.bypass", "lock.bypass"]>;
|
|
237
|
+
readonly repo: Schema.String;
|
|
238
|
+
readonly ref: Schema.String;
|
|
239
|
+
readonly move: Schema.Literals<readonly ["fast-forward", "force", "delete"]>;
|
|
240
|
+
readonly source: Schema.Literals<readonly ["git", "api", "queue", "import"]>;
|
|
241
|
+
}>, Schema.Struct<{
|
|
242
|
+
readonly kind: Schema.Literal<"repo.list">;
|
|
243
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
244
|
+
}>, Schema.Struct<{
|
|
245
|
+
readonly kind: Schema.Literals<readonly ["fork.create", "fork.sync"]>;
|
|
246
|
+
readonly repo: Schema.String;
|
|
247
|
+
readonly holder: Schema.String;
|
|
248
|
+
}>, Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
249
|
+
readonly repo: Schema.String;
|
|
250
|
+
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
251
|
+
readonly subject: Schema.Struct<{
|
|
252
|
+
readonly id: Schema.String;
|
|
253
|
+
}>;
|
|
254
|
+
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
255
|
+
readonly id: Schema.String;
|
|
256
|
+
}>>;
|
|
257
|
+
readonly kind: Schema.Literal<"token.create">;
|
|
258
|
+
}>, Schema.Struct<{
|
|
259
|
+
readonly prefix: Schema.String;
|
|
260
|
+
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
261
|
+
readonly subject: Schema.Struct<{
|
|
262
|
+
readonly id: Schema.String;
|
|
263
|
+
}>;
|
|
264
|
+
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
265
|
+
readonly id: Schema.String;
|
|
266
|
+
}>>;
|
|
267
|
+
readonly kind: Schema.Literal<"token.create">;
|
|
268
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
269
|
+
readonly repo: Schema.String;
|
|
270
|
+
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
271
|
+
readonly kind: Schema.Literal<"token.revoke">;
|
|
272
|
+
readonly subject: Schema.Struct<{
|
|
273
|
+
readonly id: Schema.String;
|
|
274
|
+
}>;
|
|
275
|
+
}>, Schema.Struct<{
|
|
276
|
+
readonly prefix: Schema.String;
|
|
277
|
+
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
278
|
+
readonly kind: Schema.Literal<"token.revoke">;
|
|
279
|
+
readonly subject: Schema.Struct<{
|
|
280
|
+
readonly id: Schema.String;
|
|
281
|
+
}>;
|
|
282
|
+
}>]>, Schema.Struct<{
|
|
283
|
+
readonly repo: Schema.String;
|
|
284
|
+
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
285
|
+
readonly kind: Schema.Literal<"token.list">;
|
|
286
|
+
}>, Schema.Struct<{
|
|
287
|
+
readonly prefix: Schema.String;
|
|
288
|
+
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
289
|
+
readonly kind: Schema.Literal<"token.list">;
|
|
290
|
+
}>]>, Schema.Struct<{
|
|
291
|
+
readonly kind: Schema.Literal<"queue.add">;
|
|
292
|
+
readonly repo: Schema.String;
|
|
293
|
+
readonly entry: Schema.Struct<{
|
|
294
|
+
readonly target: Schema.String;
|
|
295
|
+
readonly source: Schema.String;
|
|
296
|
+
readonly head: Schema.String;
|
|
297
|
+
readonly key: Schema.String;
|
|
298
|
+
readonly priority: Schema.optionalKey<Schema.Number>;
|
|
299
|
+
readonly meta: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
300
|
+
}>;
|
|
301
|
+
}>, Schema.Struct<{
|
|
302
|
+
readonly kind: Schema.Literals<readonly ["queue.hold", "queue.restart"]>;
|
|
303
|
+
readonly repo: Schema.String;
|
|
304
|
+
readonly target: Schema.String;
|
|
305
|
+
readonly entry: Schema.optionalKey<Schema.String>;
|
|
306
|
+
}>, Schema.Struct<{
|
|
307
|
+
readonly kind: Schema.Literal<"queue.remove">;
|
|
308
|
+
readonly repo: Schema.String;
|
|
309
|
+
readonly entry: Schema.String;
|
|
310
|
+
}>, Schema.Struct<{
|
|
311
|
+
readonly kind: Schema.Literals<readonly ["queue.report", "queue.retry"]>;
|
|
312
|
+
readonly repo: Schema.String;
|
|
313
|
+
readonly candidate: Schema.String;
|
|
314
|
+
}>, Schema.Struct<{
|
|
315
|
+
readonly kind: Schema.Literal<"queue.release">;
|
|
316
|
+
readonly repo: Schema.String;
|
|
317
|
+
readonly hold: Schema.String;
|
|
318
|
+
}>, Schema.Struct<{
|
|
319
|
+
readonly kind: Schema.Literals<readonly ["topic.add", "topic.remove", "topic.report", "topic.read"]>;
|
|
320
|
+
readonly topic: Schema.optionalKey<Schema.String>;
|
|
321
|
+
}>, Schema.Struct<{
|
|
322
|
+
readonly kind: Schema.Literals<readonly ["work.list", "work.retry", "work.discard"]>;
|
|
323
|
+
readonly repo: Schema.String;
|
|
324
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
325
|
+
readonly key: Schema.optionalKey<Schema.String>;
|
|
326
|
+
}>, Schema.Struct<{
|
|
327
|
+
readonly kind: Schema.Literal<"refs.private">;
|
|
328
|
+
readonly repo: Schema.String;
|
|
329
|
+
readonly patterns: Schema.$Array<Schema.String>;
|
|
330
|
+
}>, Schema.Struct<{
|
|
331
|
+
readonly kind: Schema.Literal<"me">;
|
|
332
|
+
}>]>;
|
|
333
|
+
export type Operation = typeof Operation.Type;
|
|
141
334
|
export type OperationKind = Operation['kind'];
|
|
@@ -16,6 +16,8 @@ export interface Store extends RecordStore {
|
|
|
16
16
|
list(scope: Scope, request: JobListRequest): Promise<Listing<JobItem>>;
|
|
17
17
|
retry(scope: Scope, job: JobRef, input?: RetryInput): Promise<void>;
|
|
18
18
|
discard(scope: Scope, job: JobRef): Promise<void>;
|
|
19
|
+
/** Frees what the store keeps for `scope`, as infra's `Store.drop` says: only core's purge calls it. */
|
|
20
|
+
drop(scope: Scope): Promise<void>;
|
|
19
21
|
}
|
|
20
22
|
/** The queue, as `JobQueue.JobQueue` gives it. */
|
|
21
23
|
interface JobQueue$1 {
|
|
@@ -16,7 +16,9 @@ export interface PushUploadOptions {
|
|
|
16
16
|
* least one of them to a commit: a push that only deletes refs is a plain push. `atomic` is
|
|
17
17
|
* receive-pack's `atomic` capability: left out, each ref moves or fails on its own. `reasons` is
|
|
18
18
|
* its `ref0-push-reasons` (Q901): complete's report then tells each refusal's reason on band 2, as
|
|
19
|
-
* `reason: <code>`; left out, the report is Git's alone.
|
|
19
|
+
* `reason: <code>`; left out, the report is Git's alone. `shallow` is a shallow clone's `shallow`
|
|
20
|
+
* lines, the commits it holds without their parents, which complete's push reads as a plain push's:
|
|
21
|
+
* left out, the clone is whole. The begin's body, at most 1 MiB, bounds them.
|
|
20
22
|
*/
|
|
21
23
|
export declare const BeginPushUpload: Schema.Struct<{
|
|
22
24
|
readonly bytes: Schema.Int;
|
|
@@ -28,6 +30,7 @@ export declare const BeginPushUpload: Schema.Struct<{
|
|
|
28
30
|
readonly pushOptions: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
29
31
|
readonly atomic: Schema.optionalKey<Schema.Boolean>;
|
|
30
32
|
readonly reasons: Schema.optionalKey<Schema.Boolean>;
|
|
33
|
+
readonly shallow: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
31
34
|
}>;
|
|
32
35
|
export type BeginPushUpload = typeof BeginPushUpload.Type;
|
|
33
36
|
/**
|
|
@@ -4,8 +4,10 @@ import * as Schema from "effect/Schema";
|
|
|
4
4
|
// src/contracts/push-uploads.ts
|
|
5
5
|
/** A push option, as a push upload's begin carries one: one line, with no NUL. */
|
|
6
6
|
const PushOptionLine = /* @__PURE__ */ Schema.String.check(Schema.makeFilter((option) => !/[\n\0]/.test(option) || "a push option is one line, with no NUL"));
|
|
7
|
-
/**
|
|
8
|
-
const
|
|
7
|
+
/** A full object ID, 40 lowercase hex, as an upload names each, checked before anything is staged. */
|
|
8
|
+
const FullOid = Oid.check(Schema.isPattern(/^[0-9a-f]{40}$/));
|
|
9
|
+
/** An upload's update names full object IDs, or `null` for none. */
|
|
10
|
+
const UploadOid = /* @__PURE__ */ Schema.NullOr(FullOid);
|
|
9
11
|
const UploadEdit = /* @__PURE__ */ Schema.Struct({
|
|
10
12
|
...RefEdit.fields,
|
|
11
13
|
from: UploadOid,
|
|
@@ -16,14 +18,17 @@ const UploadEdit = /* @__PURE__ */ Schema.Struct({
|
|
|
16
18
|
* least one of them to a commit: a push that only deletes refs is a plain push. `atomic` is
|
|
17
19
|
* receive-pack's `atomic` capability: left out, each ref moves or fails on its own. `reasons` is
|
|
18
20
|
* its `ref0-push-reasons` (Q901): complete's report then tells each refusal's reason on band 2, as
|
|
19
|
-
* `reason: <code>`; left out, the report is Git's alone.
|
|
21
|
+
* `reason: <code>`; left out, the report is Git's alone. `shallow` is a shallow clone's `shallow`
|
|
22
|
+
* lines, the commits it holds without their parents, which complete's push reads as a plain push's:
|
|
23
|
+
* left out, the clone is whole. The begin's body, at most 1 MiB, bounds them.
|
|
20
24
|
*/
|
|
21
25
|
const BeginPushUpload = /* @__PURE__ */ Schema.Struct({
|
|
22
26
|
bytes: Schema.Int.check(Schema.makeFilter((bytes) => bytes >= 1 || "a push upload holds a pack, of 1 byte or more")),
|
|
23
27
|
updates: Schema.Array(UploadEdit).check(Schema.makeFilter((updates) => updates.some((update) => update.to !== null) || "a push upload moves a ref to a commit: delete refs with a plain push")),
|
|
24
28
|
pushOptions: Schema.optionalKey(Schema.Array(PushOptionLine)),
|
|
25
29
|
atomic: Schema.optionalKey(Schema.Boolean),
|
|
26
|
-
reasons: Schema.optionalKey(Schema.Boolean)
|
|
30
|
+
reasons: Schema.optionalKey(Schema.Boolean),
|
|
31
|
+
shallow: Schema.optionalKey(Schema.Array(FullOid))
|
|
27
32
|
});
|
|
28
33
|
/**
|
|
29
34
|
* The upload's handle, the size of every part but the last, and when its part links stop being
|