@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
package/dist/rest/wire.d.mts
CHANGED
|
@@ -2,6 +2,7 @@ import { ActorId, NamedActor } from "../contracts/actors.mjs";
|
|
|
2
2
|
import { DiffListing, RenamesSkipped, Signature } from "../contracts/engine.mjs";
|
|
3
3
|
import { Oid } from "../contracts/ids.mjs";
|
|
4
4
|
import { Moment } from "../contracts/repos.mjs";
|
|
5
|
+
import { CreatedToken, TokenCreate, TokenId, TokenInfo, TokenList, TokenRecord } from "../contracts/tokens.mjs";
|
|
5
6
|
import * as Schema from "effect/Schema";
|
|
6
7
|
/**
|
|
7
8
|
* What a repo's stream sends, each as one event's data, its `seq` its SSE ID: the repo's own
|
|
@@ -81,6 +82,9 @@ export declare const RepoStreamEvent: Schema.Union<readonly [Schema.Union<readon
|
|
|
81
82
|
readonly type: Schema.Literal<"repo.visibility.changed">;
|
|
82
83
|
readonly public: Schema.Boolean;
|
|
83
84
|
}>, Schema.Struct<{
|
|
85
|
+
readonly ref: Schema.String;
|
|
86
|
+
readonly from: Schema.NullOr<Schema.String>;
|
|
87
|
+
readonly to: Schema.NullOr<Schema.String>;
|
|
84
88
|
readonly seq: Schema.Int;
|
|
85
89
|
readonly at: Schema.Number;
|
|
86
90
|
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
@@ -104,12 +108,10 @@ export declare const RepoStreamEvent: Schema.Union<readonly [Schema.Union<readon
|
|
|
104
108
|
readonly of: Schema.Int;
|
|
105
109
|
}>>;
|
|
106
110
|
readonly options: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
111
|
+
readonly onBehalfOf: Schema.optionalKey<Schema.Literal<true>>;
|
|
107
112
|
}>;
|
|
108
113
|
readonly filesAllowed: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
109
114
|
readonly bypassed: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
110
|
-
readonly ref: Schema.String;
|
|
111
|
-
readonly from: Schema.NullOr<Schema.String>;
|
|
112
|
-
readonly to: Schema.NullOr<Schema.String>;
|
|
113
115
|
}>, Schema.Struct<{
|
|
114
116
|
readonly seq: Schema.Int;
|
|
115
117
|
readonly at: Schema.Number;
|
|
@@ -220,7 +222,7 @@ export declare const RepoStreamEvent: Schema.Union<readonly [Schema.Union<readon
|
|
|
220
222
|
readonly url: Schema.optionalKey<Schema.String>;
|
|
221
223
|
readonly type: Schema.Literal<"queue.entry.failed">;
|
|
222
224
|
readonly entry: Schema.String;
|
|
223
|
-
readonly reason: Schema.Literals<readonly ["conflict", "reported", "host-error", "interaction", "refused"]>;
|
|
225
|
+
readonly reason: Schema.Literals<readonly ["conflict", "reported", "host-error", "interaction", "refused", "tooManyCommits"]>;
|
|
224
226
|
readonly candidate: Schema.optionalKey<Schema.String>;
|
|
225
227
|
readonly error: Schema.optionalKey<Schema.String>;
|
|
226
228
|
}>, Schema.Struct<{
|
package/dist/rest/wire.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Oid } from "../contracts/ids.mjs";
|
|
2
|
-
import { DiffListing, Listing, Page } from "../contracts/engine.mjs";
|
|
3
2
|
import { Moment } from "../contracts/repos.mjs";
|
|
4
|
-
import { ActorId
|
|
3
|
+
import { ActorId } from "../contracts/actors.mjs";
|
|
4
|
+
import { DiffListing, Listing, Page } from "../contracts/engine.mjs";
|
|
5
5
|
import { QueueEvent, RepoEvent, RepoTokenEvent } from "../contracts/events.mjs";
|
|
6
|
+
import { CreatedToken, TokenCreate, TokenId, TokenInfo, TokenList, TokenRecord } from "../contracts/tokens.mjs";
|
|
6
7
|
import { ReadLimits as ReadLimits$1 } from "../contracts/object-values.mjs";
|
|
7
8
|
import * as Schema from "effect/Schema";
|
|
8
9
|
// src/rest/wire.ts
|
|
@@ -40,4 +41,4 @@ const RepoStreamEvent = /* @__PURE__ */ Schema.Union([
|
|
|
40
41
|
QueueEvent,
|
|
41
42
|
RepoTokenEvent
|
|
42
43
|
]);
|
|
43
|
-
export { ActorId, Base64, DiffListing, LimitsFields, Listing, Moment,
|
|
44
|
+
export { ActorId, Base64, CreatedToken, DiffListing, LimitsFields, Listing, Moment, Oid, Page, PageQuery, ReadLimits, RepoParam, RepoStreamEvent, Seq, StreamEnd, TokenCreate, TokenId, TokenInfo, TokenList, TokenRecord, WriteKey };
|
package/dist/rest/work.d.mts
CHANGED
|
@@ -1,39 +1,13 @@
|
|
|
1
1
|
import { GitCallerMiddleware, GitRestServices } from "./caller.mjs";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
3
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api";
|
|
4
|
-
declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoint.HttpApiEndpoint<"
|
|
4
|
+
declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoint.HttpApiEndpoint<"discard", "POST", "/repos/:repo/-/work/discard", Schema.toCodecStringTree<Schema.Struct<{
|
|
5
5
|
repo: Schema.String;
|
|
6
|
-
}>>, Schema.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}>>, never,
|
|
11
|
-
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
12
|
-
readonly scope: Schema.String;
|
|
13
|
-
readonly name: Schema.String;
|
|
14
|
-
readonly key: Schema.String;
|
|
15
|
-
readonly data: Schema.Unknown;
|
|
16
|
-
readonly due: Schema.Number;
|
|
17
|
-
readonly attempt: Schema.Number;
|
|
18
|
-
readonly trace: Schema.optionalKey<Schema.String>;
|
|
19
|
-
readonly firstTry: Schema.optionalKey<Schema.Number>;
|
|
20
|
-
readonly claim: Schema.optionalKey<Schema.Number>;
|
|
21
|
-
readonly state: Schema.Literals<readonly ["waiting", "running", "failed"]>;
|
|
22
|
-
readonly error: Schema.optionalKey<Schema.String>;
|
|
23
|
-
readonly failedAt: Schema.optionalKey<Schema.Number>;
|
|
24
|
-
readonly progress: Schema.optionalKey<Schema.Struct<{
|
|
25
|
-
readonly phase: Schema.String;
|
|
26
|
-
readonly measures: Schema.$Array<Schema.Struct<{
|
|
27
|
-
readonly unit: Schema.Literals<readonly ["bytes", "objects", "entries", "packs"]>;
|
|
28
|
-
readonly completed: Schema.Number;
|
|
29
|
-
readonly total: Schema.optionalKey<Schema.Number>;
|
|
30
|
-
}>>;
|
|
31
|
-
readonly attempt: Schema.Number;
|
|
32
|
-
readonly at: Schema.Number;
|
|
33
|
-
}>>;
|
|
34
|
-
}>>>;
|
|
35
|
-
readonly next: Schema.optionalKey<Schema.String>;
|
|
36
|
-
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
6
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
7
|
+
readonly name: Schema.String;
|
|
8
|
+
readonly key: Schema.String;
|
|
9
|
+
readonly requestKey: Schema.optionalKey<Schema.String>;
|
|
10
|
+
}>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
37
11
|
readonly code: "ALREADY_EXISTS";
|
|
38
12
|
readonly message: string;
|
|
39
13
|
readonly hint?: string;
|
|
@@ -258,7 +232,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
258
232
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
259
233
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
260
234
|
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>]>>;
|
|
235
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["event-version", "graph-length", "merge-incomplete"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
262
236
|
}>, 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
237
|
}> | Schema.Struct<{
|
|
264
238
|
readonly code: Schema.Literal<"DEADLINE_EXCEEDED">;
|
|
@@ -272,7 +246,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
272
246
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
273
247
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
274
248
|
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", "
|
|
249
|
+
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
250
|
importState: Schema.optionalKey<Schema.Literals<readonly ["running", "cancelled", "failed"]>>;
|
|
277
251
|
attribute: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
278
252
|
paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
@@ -299,7 +273,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
299
273
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
300
274
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
301
275
|
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>]>>;
|
|
276
|
+
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
277
|
entries: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
304
278
|
paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
305
279
|
total: Schema.optionalKey<Schema.Number>;
|
|
@@ -309,7 +283,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
309
283
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
310
284
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
311
285
|
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>]>>;
|
|
286
|
+
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
287
|
target: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
314
288
|
}>, 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
289
|
}> | Schema.Struct<{
|
|
@@ -317,7 +291,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
317
291
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
318
292
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
319
293
|
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>]>>;
|
|
294
|
+
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
295
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
322
296
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
323
297
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -350,7 +324,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
350
324
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
351
325
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
352
326
|
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>]>>;
|
|
327
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["event-version", "graph-length", "merge-incomplete"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
354
328
|
}>, 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
329
|
}> | Schema.Struct<{
|
|
356
330
|
readonly code: Schema.Literal<"DEADLINE_EXCEEDED">;
|
|
@@ -364,7 +338,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
364
338
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
365
339
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
366
340
|
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", "
|
|
341
|
+
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
342
|
importState: Schema.optionalKey<Schema.Literals<readonly ["running", "cancelled", "failed"]>>;
|
|
369
343
|
attribute: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
370
344
|
paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
@@ -391,7 +365,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
391
365
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
392
366
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
393
367
|
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>]>>;
|
|
368
|
+
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
369
|
entries: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
396
370
|
paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
397
371
|
total: Schema.optionalKey<Schema.Number>;
|
|
@@ -401,7 +375,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
401
375
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
402
376
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
403
377
|
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>]>>;
|
|
378
|
+
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
379
|
target: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
406
380
|
}>, 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
381
|
}> | Schema.Struct<{
|
|
@@ -409,7 +383,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
409
383
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
410
384
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
411
385
|
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>]>>;
|
|
386
|
+
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
387
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
414
388
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
415
389
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -432,7 +406,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
432
406
|
}>, {
|
|
433
407
|
"ref0-code": Schema.String;
|
|
434
408
|
'www-authenticate': Schema.String;
|
|
435
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
409
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"retry", "POST", "/repos/:repo/-/work/retry", Schema.toCodecStringTree<Schema.Struct<{
|
|
436
410
|
repo: Schema.String;
|
|
437
411
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
438
412
|
readonly name: Schema.String;
|
|
@@ -663,7 +637,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
663
637
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
664
638
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
665
639
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
666
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["graph-length", "merge-incomplete"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
640
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["event-version", "graph-length", "merge-incomplete"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
667
641
|
}>, 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]>>]>>;
|
|
668
642
|
}> | Schema.Struct<{
|
|
669
643
|
readonly code: Schema.Literal<"DEADLINE_EXCEEDED">;
|
|
@@ -677,7 +651,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
677
651
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
678
652
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
679
653
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
680
|
-
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", "
|
|
654
|
+
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>]>>;
|
|
681
655
|
importState: Schema.optionalKey<Schema.Literals<readonly ["running", "cancelled", "failed"]>>;
|
|
682
656
|
attribute: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
683
657
|
paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
@@ -704,7 +678,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
704
678
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
705
679
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
706
680
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
707
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["files-refused", "entry-unpublishable"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
681
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["files-refused", "entry-unpublishable", "fetch-depth-unsupported"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
708
682
|
entries: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
709
683
|
paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
710
684
|
total: Schema.optionalKey<Schema.Number>;
|
|
@@ -714,7 +688,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
714
688
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
715
689
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
716
690
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
717
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["no-queue", "no-topics", "ambiguous"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
691
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["no-queue", "no-sync", "no-topics", "ambiguous"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
718
692
|
target: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
719
693
|
}>, 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]>>]>>;
|
|
720
694
|
}> | Schema.Struct<{
|
|
@@ -722,7 +696,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
722
696
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
723
697
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
724
698
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
725
|
-
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>]>>;
|
|
699
|
+
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>]>>;
|
|
726
700
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
727
701
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
728
702
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -755,7 +729,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
755
729
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
756
730
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
757
731
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
758
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["graph-length", "merge-incomplete"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
732
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["event-version", "graph-length", "merge-incomplete"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
759
733
|
}>, 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]>>]>>;
|
|
760
734
|
}> | Schema.Struct<{
|
|
761
735
|
readonly code: Schema.Literal<"DEADLINE_EXCEEDED">;
|
|
@@ -769,7 +743,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
769
743
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
770
744
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
771
745
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
772
|
-
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", "
|
|
746
|
+
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>]>>;
|
|
773
747
|
importState: Schema.optionalKey<Schema.Literals<readonly ["running", "cancelled", "failed"]>>;
|
|
774
748
|
attribute: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
775
749
|
paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
@@ -796,7 +770,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
796
770
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
797
771
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
798
772
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
799
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["files-refused", "entry-unpublishable"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
773
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["files-refused", "entry-unpublishable", "fetch-depth-unsupported"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
800
774
|
entries: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
801
775
|
paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
802
776
|
total: Schema.optionalKey<Schema.Number>;
|
|
@@ -806,7 +780,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
806
780
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
807
781
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
808
782
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
809
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["no-queue", "no-topics", "ambiguous"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
783
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["no-queue", "no-sync", "no-topics", "ambiguous"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
810
784
|
target: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
811
785
|
}>, 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]>>]>>;
|
|
812
786
|
}> | Schema.Struct<{
|
|
@@ -814,7 +788,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
814
788
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
815
789
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
816
790
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
817
|
-
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>]>>;
|
|
791
|
+
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>]>>;
|
|
818
792
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
819
793
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
820
794
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -837,13 +811,39 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
837
811
|
}>, {
|
|
838
812
|
"ref0-code": Schema.String;
|
|
839
813
|
'www-authenticate': Schema.String;
|
|
840
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
814
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/repos/:repo/-/work", Schema.toCodecStringTree<Schema.Struct<{
|
|
841
815
|
repo: Schema.String;
|
|
842
|
-
}>>,
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
}>>, never,
|
|
816
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
817
|
+
after: Schema.optionalKey<Schema.String>;
|
|
818
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
819
|
+
state: Schema.optionalKey<Schema.Literals<readonly ["waiting", "running", "failed"]>>;
|
|
820
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
821
|
+
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
822
|
+
readonly scope: Schema.String;
|
|
823
|
+
readonly name: Schema.String;
|
|
824
|
+
readonly key: Schema.String;
|
|
825
|
+
readonly data: Schema.Unknown;
|
|
826
|
+
readonly due: Schema.Number;
|
|
827
|
+
readonly attempt: Schema.Number;
|
|
828
|
+
readonly trace: Schema.optionalKey<Schema.String>;
|
|
829
|
+
readonly firstTry: Schema.optionalKey<Schema.Number>;
|
|
830
|
+
readonly claim: Schema.optionalKey<Schema.Number>;
|
|
831
|
+
readonly state: Schema.Literals<readonly ["waiting", "running", "failed"]>;
|
|
832
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
833
|
+
readonly failedAt: Schema.optionalKey<Schema.Number>;
|
|
834
|
+
readonly progress: Schema.optionalKey<Schema.Struct<{
|
|
835
|
+
readonly phase: Schema.String;
|
|
836
|
+
readonly measures: Schema.$Array<Schema.Struct<{
|
|
837
|
+
readonly unit: Schema.Literals<readonly ["bytes", "objects", "entries", "packs"]>;
|
|
838
|
+
readonly completed: Schema.Number;
|
|
839
|
+
readonly total: Schema.optionalKey<Schema.Number>;
|
|
840
|
+
}>>;
|
|
841
|
+
readonly attempt: Schema.Number;
|
|
842
|
+
readonly at: Schema.Number;
|
|
843
|
+
}>>;
|
|
844
|
+
}>>>;
|
|
845
|
+
readonly next: Schema.optionalKey<Schema.String>;
|
|
846
|
+
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
847
847
|
readonly code: "ALREADY_EXISTS";
|
|
848
848
|
readonly message: string;
|
|
849
849
|
readonly hint?: string;
|
|
@@ -1068,7 +1068,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
1068
1068
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
1069
1069
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1070
1070
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1071
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["graph-length", "merge-incomplete"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
1071
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["event-version", "graph-length", "merge-incomplete"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
1072
1072
|
}>, 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]>>]>>;
|
|
1073
1073
|
}> | Schema.Struct<{
|
|
1074
1074
|
readonly code: Schema.Literal<"DEADLINE_EXCEEDED">;
|
|
@@ -1082,7 +1082,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
1082
1082
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
1083
1083
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1084
1084
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1085
|
-
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", "
|
|
1085
|
+
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>]>>;
|
|
1086
1086
|
importState: Schema.optionalKey<Schema.Literals<readonly ["running", "cancelled", "failed"]>>;
|
|
1087
1087
|
attribute: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1088
1088
|
paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
@@ -1109,7 +1109,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
1109
1109
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
1110
1110
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1111
1111
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1112
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["files-refused", "entry-unpublishable"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
1112
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["files-refused", "entry-unpublishable", "fetch-depth-unsupported"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
1113
1113
|
entries: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
1114
1114
|
paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
1115
1115
|
total: Schema.optionalKey<Schema.Number>;
|
|
@@ -1119,7 +1119,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
1119
1119
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
1120
1120
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1121
1121
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1122
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["no-queue", "no-topics", "ambiguous"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
1122
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["no-queue", "no-sync", "no-topics", "ambiguous"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
1123
1123
|
target: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1124
1124
|
}>, 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]>>]>>;
|
|
1125
1125
|
}> | Schema.Struct<{
|
|
@@ -1127,7 +1127,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
1127
1127
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
1128
1128
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1129
1129
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1130
|
-
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>]>>;
|
|
1130
|
+
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>]>>;
|
|
1131
1131
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
1132
1132
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
1133
1133
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -1160,7 +1160,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
1160
1160
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
1161
1161
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1162
1162
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1163
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["graph-length", "merge-incomplete"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
1163
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["event-version", "graph-length", "merge-incomplete"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
1164
1164
|
}>, 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]>>]>>;
|
|
1165
1165
|
}> | Schema.Struct<{
|
|
1166
1166
|
readonly code: Schema.Literal<"DEADLINE_EXCEEDED">;
|
|
@@ -1174,7 +1174,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
1174
1174
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
1175
1175
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1176
1176
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1177
|
-
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", "
|
|
1177
|
+
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>]>>;
|
|
1178
1178
|
importState: Schema.optionalKey<Schema.Literals<readonly ["running", "cancelled", "failed"]>>;
|
|
1179
1179
|
attribute: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1180
1180
|
paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
@@ -1201,7 +1201,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
1201
1201
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
1202
1202
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1203
1203
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1204
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["files-refused", "entry-unpublishable"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
1204
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["files-refused", "entry-unpublishable", "fetch-depth-unsupported"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
1205
1205
|
entries: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
1206
1206
|
paths: Schema.optionalKey<Schema.mutable<Schema.$Array<Schema.decodeTo<Schema.String, Schema.String, never, never>>>>;
|
|
1207
1207
|
total: Schema.optionalKey<Schema.Number>;
|
|
@@ -1211,7 +1211,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
1211
1211
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
1212
1212
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1213
1213
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1214
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["no-queue", "no-topics", "ambiguous"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
1214
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["no-queue", "no-sync", "no-topics", "ambiguous"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
1215
1215
|
target: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1216
1216
|
}>, 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]>>]>>;
|
|
1217
1217
|
}> | Schema.Struct<{
|
|
@@ -1219,7 +1219,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
1219
1219
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
1220
1220
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1221
1221
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1222
|
-
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>]>>;
|
|
1222
|
+
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>]>>;
|
|
1223
1223
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
1224
1224
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
1225
1225
|
most: Schema.optionalKey<Schema.Number>;
|
package/dist/rest/work.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { JobState, WorkItem, WorkWrite } from "../contracts/work.mjs";
|
|
2
1
|
import { Listing } from "../contracts/engine.mjs";
|
|
2
|
+
import { JobState, WorkItem, WorkWrite } from "../contracts/work.mjs";
|
|
3
3
|
import { GitCallerMiddleware } from "./caller.mjs";
|
|
4
4
|
import { GitErrors } from "./errors.mjs";
|
|
5
5
|
import { PageQuery, RepoParam } from "./wire.mjs";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { checkRead } from "../core/rules/fetch.mjs";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
// src/server/check-fetch.ts
|
|
4
|
+
/**
|
|
5
|
+
* `Git.checkFetch` over a server's `parts`: the host's fetch rules asked of one read of bytes, over
|
|
6
|
+
* the context the server's calls run on, once its build is done.
|
|
7
|
+
*/
|
|
8
|
+
const checkFetchOver = (parts) => (repo, input) => Effect.flatMap(parts, ({ needs }) => Effect.provideContext(checkRead(repo, input), needs));
|
|
9
|
+
export { checkFetchOver };
|
|
@@ -1,117 +1,5 @@
|
|
|
1
|
-
import { gitError } from "../contracts/result.mjs";
|
|
2
|
-
import { servedSources } from "../core/rules/protect.mjs";
|
|
3
|
-
import { aroundCalls, guardedCall } from "../core/promise.mjs";
|
|
4
|
-
import { lazyParts, seamOf } from "../core/seam.mjs";
|
|
5
|
-
import { importStateOf } from "../core/imports.mjs";
|
|
6
|
-
import { RequestCalls, countedAs, lessCallsBefore } from "../store/call-count.mjs";
|
|
7
|
-
import { hostRecordOf, internalIdOf } from "../store/catalogue.mjs";
|
|
8
|
-
import { runIn, uncounted } from "../store/crossing.mjs";
|
|
9
|
-
import { thrownError } from "../store/errors.mjs";
|
|
10
1
|
import { openRegistry } from "./registry.mjs";
|
|
11
|
-
import * as Effect from "effect/Effect";
|
|
12
2
|
// src/server/extension.ts
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const unbound = Number.POSITIVE_INFINITY;
|
|
17
|
-
/** `request`'s count, or `undefined` for none or one built by hand. */
|
|
18
|
-
const countOf = (request) => request === void 0 ? void 0 : requestCounts.get(request);
|
|
19
|
-
/** A server's registry, empty until extensions add to it and its build adds its own jobs. */
|
|
20
|
-
const openExtensions = (queued) => ({
|
|
21
|
-
registry: openRegistry(),
|
|
22
|
-
binds: [],
|
|
23
|
-
queued
|
|
24
|
-
});
|
|
25
|
-
/** Each server's joins so far, which name their claims. */
|
|
26
|
-
const joinsOf = /* @__PURE__ */ new WeakMap();
|
|
27
|
-
/** The next join's claim, named by its place: `extension-001`, then `-002`, in name order. */
|
|
28
|
-
const joinClaim = (extensions) => {
|
|
29
|
-
const joins = (joinsOf.get(extensions) ?? 0) + 1;
|
|
30
|
-
joinsOf.set(extensions, joins);
|
|
31
|
-
return extensions.registry.bridge(`extension-${String(joins).padStart(3, "0")}`);
|
|
32
|
-
};
|
|
33
|
-
/** Called once, by `createGitServer`, for the server it returns. */
|
|
34
|
-
const attachExtensions = (git, attached) => {
|
|
35
|
-
attachedByServer.set(git, attached);
|
|
36
|
-
};
|
|
37
|
-
/** Thrown as an `Error`, the refusal its cause, since `extendGit` runs once at setup. */
|
|
38
|
-
const refused = (message) => new Error(message, { cause: gitError("FAILED_PRECONDITION", message) });
|
|
39
|
-
/** The refusal of a join after the tick that made the server, when its build has started. */
|
|
40
|
-
const lateJoin = (call) => `${call} joins a server in the tick createGitServer made it in: call it where the server is made, before any await`;
|
|
41
|
-
/**
|
|
42
|
-
* Jobs the server registers and finds by name, such as `syncJobs`' definitions, which a push saves
|
|
43
|
-
* in its commit, with what binds them in the server's build. Refused after the tick that made the
|
|
44
|
-
* server, or for a job name the server knows already.
|
|
45
|
-
*/
|
|
46
|
-
const knowJobs = (git, jobs, bind) => {
|
|
47
|
-
const attached = attachedByServer.get(git);
|
|
48
|
-
if (attached === void 0) throw new TypeError("syncJobs takes a server createGitServer made");
|
|
49
|
-
if (attached.admit("join") === "late") throw refused(lateJoin("syncJobs"));
|
|
50
|
-
joinClaim(attached.extensions).addJobs(jobs);
|
|
51
|
-
attached.extensions.binds.push(bind);
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* Joins a package built on Git, such as `@ref0/github`, to one server: its `bind` and then its jobs
|
|
55
|
-
* on the server's queue, in its build, its push rules after the host's own, and its grant
|
|
56
|
-
* resolvers before `auth`. Refused after the tick that made the server, for a job name or a grant
|
|
57
|
-
* resolver's name already registered, or for a job named `git.…`, as Git's own are. The bridge until SV's step 2b-1 deletes it (Q1030).
|
|
58
|
-
*/
|
|
59
|
-
const extendGit = (git, extension) => {
|
|
60
|
-
const attached = attachedByServer.get(git);
|
|
61
|
-
const seam = seamOf(git);
|
|
62
|
-
if (attached === void 0 || seam === void 0) throw new TypeError("extendGit takes a server createGitServer made");
|
|
63
|
-
const { extensions } = attached;
|
|
64
|
-
if (attached.admit("join") === "late") throw refused(lateJoin("extendGit"));
|
|
65
|
-
const own = (extension.jobs ?? []).find((job) => job.name.startsWith("git."));
|
|
66
|
-
if (own !== void 0) throw refused(`Git's own jobs are named 'git.…': name '${own.name}' another way`);
|
|
67
|
-
const claim = joinClaim(extensions);
|
|
68
|
-
claim.addGrants(extension.grants ?? []);
|
|
69
|
-
claim.addJobs(extension.jobs ?? []);
|
|
70
|
-
const requestMost = {
|
|
71
|
-
bucket: unbound,
|
|
72
|
-
subrequests: unbound
|
|
73
|
-
};
|
|
74
|
-
extensions.binds.push((built) => {
|
|
75
|
-
Object.assign(requestMost, lessCallsBefore(built.parts.requestMost));
|
|
76
|
-
});
|
|
77
|
-
const { bind } = extension;
|
|
78
|
-
if (bind !== void 0) extensions.binds.push((built) => bind(built.adapter));
|
|
79
|
-
if (!extensions.queued) servedSources(extension.pushRules ?? []);
|
|
80
|
-
claim.addPushRules(extension.pushRules ?? []);
|
|
81
|
-
const { built, through } = attached;
|
|
82
|
-
const store = Effect.map(built, ({ adapter }) => adapter.store);
|
|
83
|
-
const extensionCall = (effect, calls) => runIn(Effect.mapError(through(effect), thrownError), calls === void 0 ? uncounted("an extension's own call, outside a request") : {
|
|
84
|
-
calls,
|
|
85
|
-
budget: void 0
|
|
86
|
-
});
|
|
87
|
-
const effectCall = guardedCall(through);
|
|
88
|
-
const effectCallsFor = (caller, calls) => {
|
|
89
|
-
const made = lazyParts(seam).callsFor(caller);
|
|
90
|
-
return calls === void 0 ? made : aroundCalls(made, (effect) => countedAs(effect, calls));
|
|
91
|
-
};
|
|
92
|
-
return {
|
|
93
|
-
basePath: attached.basePath,
|
|
94
|
-
queueKeys: attached.queueKeys,
|
|
95
|
-
internalId: (repo) => extensionCall(Effect.flatMap(store, (on) => internalIdOf(on, repo))),
|
|
96
|
-
effectInternalId: (repo) => effectCall(Effect.flatMap(store, (on) => internalIdOf(on, repo))),
|
|
97
|
-
repo: (internalId) => extensionCall(Effect.flatMap(store, (on) => hostRecordOf(on, internalId))),
|
|
98
|
-
effectRepo: (internalId) => effectCall(Effect.flatMap(store, (on) => hostRecordOf(on, internalId))),
|
|
99
|
-
ready: attached.ready,
|
|
100
|
-
request: () => {
|
|
101
|
-
const made = Object.freeze({ kind: "git-request" });
|
|
102
|
-
requestCounts.set(made, new RequestCalls(requestMost));
|
|
103
|
-
return made;
|
|
104
|
-
},
|
|
105
|
-
callsFor: (caller, request) => attached.callsFor(caller, countOf(request)),
|
|
106
|
-
effectCallsFor: (caller, request) => effectCallsFor(caller, countOf(request)),
|
|
107
|
-
hostCalls: () => attached.hostCalls,
|
|
108
|
-
effectHostCalls: () => attached.effectHostCalls,
|
|
109
|
-
access: (caller, repo, request) => extensionCall(attached.access(caller, repo), countOf(request)),
|
|
110
|
-
effectAccess: (caller, repo, request, internalId) => effectCall(countedAs(attached.access(caller, repo, internalId), countOf(request))),
|
|
111
|
-
importState: (internalId) => effectCall(Effect.flatMap(store, (on) => importStateOf(on, internalId))),
|
|
112
|
-
grantAgain: (resolver, input) => extensionCall(attached.grantAgain(resolver, input)),
|
|
113
|
-
effectGrantAgain: (resolver, input) => effectCall(attached.grantAgain(resolver, input)),
|
|
114
|
-
grantOf: attached.grantOf
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
export { attachExtensions, countOf, extendGit, knowJobs, openExtensions };
|
|
3
|
+
/** A server's registry, empty until its build and the Layers joined to it register. */
|
|
4
|
+
const openExtensions = (basePath = "") => ({ registry: openRegistry(basePath) });
|
|
5
|
+
export { openExtensions };
|