@ref0/git 0.7.0 → 0.9.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/private-refs.mjs +0 -2
- package/dist/auth/authorize.mjs +31 -24
- package/dist/auth/bridge.mjs +8 -8
- package/dist/auth/fences.d.mts +0 -1
- package/dist/auth/fences.mjs +1 -1
- package/dist/auth/grants.d.mts +0 -1
- package/dist/auth/grants.mjs +2 -2
- package/dist/auth/host-function.d.mts +1 -7
- package/dist/auth/host-function.mjs +38 -38
- package/dist/auth/identify.d.mts +0 -1
- package/dist/auth/identify.mjs +1 -1
- package/dist/auth/policy.d.mts +7 -4
- package/dist/auth/policy.mjs +13 -10
- package/dist/auth/token-rows.mjs +2 -5
- package/dist/auth/tokens-layer.d.mts +0 -2
- package/dist/auth/tokens-public.d.mts +3 -3
- package/dist/auth/tokens-public.mjs +4 -2
- package/dist/auth/tokens.d.mts +6 -1
- package/dist/auth/tokens.mjs +7 -1
- package/dist/client/client.d.mts +22 -15
- package/dist/client/client.mjs +31 -27
- package/dist/client/git-http.mjs +22 -5
- package/dist/client/local.mjs +1 -1
- package/dist/client/namespace.d.mts +2 -0
- package/dist/client/push-upload.d.mts +1 -0
- package/dist/client/push-upload.mjs +169 -2
- package/dist/client/remote-helper.mjs +2 -4
- package/dist/client/remote.mjs +37 -15
- package/dist/client/run-remote-helper.mjs +4 -4
- package/dist/client/transport.mjs +26 -19
- package/dist/contracts/actors.d.mts +57 -28
- package/dist/contracts/actors.mjs +38 -2
- package/dist/contracts/authorize.d.mts +21 -15
- package/dist/contracts/callers.mjs +40 -0
- package/dist/contracts/calls-spent.d.mts +2 -12
- package/dist/contracts/calls-spent.mjs +4 -5
- package/dist/contracts/client.d.mts +16 -9
- package/dist/contracts/events.d.mts +82 -14
- package/dist/contracts/events.mjs +35 -9
- package/dist/contracts/files.d.mts +42 -42
- package/dist/contracts/forks.d.mts +0 -24
- package/dist/contracts/git-hooks.d.mts +217 -0
- package/dist/contracts/git-hooks.mjs +3 -1
- package/dist/contracts/git.d.mts +13 -3
- package/dist/contracts/grants.d.mts +46 -27
- package/dist/contracts/lfs.d.mts +17 -4
- package/dist/contracts/merges.d.mts +7 -7
- package/dist/contracts/objects.d.mts +38 -4
- package/dist/contracts/opaque.mjs +19 -1
- package/dist/contracts/operations.d.mts +8 -1
- package/dist/contracts/operations.mjs +209 -0
- package/dist/contracts/queue.d.mts +6 -5
- package/dist/contracts/queue.mjs +9 -20
- package/dist/contracts/remote.d.mts +13 -4
- package/dist/contracts/remote.mjs +3 -3
- package/dist/contracts/repos.d.mts +11 -40
- package/dist/contracts/repos.mjs +11 -10
- package/dist/contracts/result.d.mts +28 -11
- package/dist/contracts/result.mjs +32 -2
- package/dist/contracts/rules.d.mts +706 -46
- package/dist/contracts/rules.mjs +81 -2
- package/dist/contracts/server.d.mts +5 -275
- package/dist/contracts/services.d.mts +0 -3
- package/dist/contracts/services.mjs +1 -3
- package/dist/contracts/signin.d.mts +2 -2
- package/dist/contracts/signin.mjs +4 -5
- package/dist/contracts/sync.d.mts +1 -4
- package/dist/contracts/tokens.d.mts +29 -17
- package/dist/contracts/tokens.mjs +14 -3
- package/dist/contracts/topics.d.mts +38 -11
- package/dist/contracts/topics.mjs +8 -2
- package/dist/core/access.d.mts +0 -2
- package/dist/core/access.mjs +15 -4
- package/dist/core/ancestry.mjs +5 -4
- package/dist/core/events/deliver.mjs +19 -1
- package/dist/core/forks.mjs +30 -11
- package/dist/core/hooks/groups.d.mts +0 -1
- package/dist/core/hooks/groups.mjs +8 -9
- package/dist/core/index-job.mjs +23 -1
- package/dist/core/index-lost.d.mts +11 -0
- package/dist/core/index-lost.mjs +55 -0
- package/dist/core/loose-tally.mjs +46 -0
- package/dist/core/objects/commit-writes.mjs +1 -1
- package/dist/core/objects/commits.mjs +10 -9
- package/dist/core/objects/merges.mjs +1 -1
- package/dist/core/objects/reading.mjs +28 -13
- package/dist/core/objects/trees.mjs +1 -1
- package/dist/core/objects/writing.mjs +1 -0
- package/dist/core/parts.d.mts +7 -0
- package/dist/core/promise.mjs +1 -15
- package/dist/core/publish.mjs +9 -5
- package/dist/core/purge.mjs +30 -12
- package/dist/core/push.mjs +39 -16
- package/dist/core/ref-view.mjs +14 -6
- package/dist/core/repack.mjs +54 -27
- package/dist/core/repo-info.mjs +8 -6
- package/dist/core/repos.mjs +1 -0
- package/dist/core/rules/check.mjs +10 -10
- package/dist/core/rules/context.d.mts +3 -1
- package/dist/core/rules/context.mjs +16 -13
- package/dist/core/rules/fetch.mjs +17 -23
- package/dist/core/tokens.mjs +2 -1
- package/dist/core/view.d.mts +10 -1
- package/dist/core/view.mjs +15 -6
- package/dist/effect.d.mts +3 -6
- package/dist/effect.mjs +3 -6
- package/dist/engine/commits.mjs +23 -50
- package/dist/engine/failures.d.mts +1 -2
- package/dist/engine/failures.mjs +1 -3
- package/dist/engine/merge-base-walk.mjs +57 -142
- package/dist/engine/merge-bases.mjs +9 -7
- package/dist/engine/merge.mjs +20 -17
- package/dist/engine/parts.d.mts +1 -0
- package/dist/engine/parts.mjs +1 -1
- package/dist/engine/walk.mjs +15 -11
- package/dist/extend.d.mts +1 -2
- package/dist/extend.mjs +1 -2
- package/dist/http/core-parts.mjs +18 -10
- package/dist/http/handler.mjs +11 -31
- package/dist/http/parts.d.mts +0 -1
- package/dist/index.d.mts +29 -22
- package/dist/index.mjs +5 -2
- package/dist/lfs/base.d.mts +6 -3
- package/dist/lfs/base.mjs +2 -1
- package/dist/lfs/layer.d.mts +4 -3
- package/dist/lfs/layer.mjs +23 -9
- package/dist/lfs/objects.mjs +93 -41
- package/dist/lfs/pointers.mjs +69 -18
- package/dist/lfs/purge.mjs +6 -2
- package/dist/lfs/rows.mjs +24 -7
- package/dist/lfs/service.d.mts +6 -3
- package/dist/lfs/service.mjs +8 -2
- package/dist/lfs/upkeep.mjs +47 -28
- package/dist/lfs/upload-most.mjs +47 -0
- package/dist/lfs/uploaded.mjs +59 -0
- package/dist/protocol/bytes/sha256-hasher.mjs +51 -0
- package/dist/protocol/bytes/streams.mjs +84 -2
- package/dist/protocol/bytes/text.mjs +6 -1
- package/dist/protocol/diff/read.d.mts +1 -0
- package/dist/protocol/diff/read.mjs +5 -2
- package/dist/protocol/objects/commit.d.mts +7 -0
- package/dist/protocol/objects/commit.mjs +5 -1
- package/dist/protocol/objects/fsck.mjs +6 -3
- package/dist/queue/advance.mjs +77 -18
- package/dist/queue/calls.mjs +4 -14
- package/dist/queue/host.d.mts +4 -0
- package/dist/queue/lanes.mjs +1 -1
- package/dist/queue/layer.mjs +4 -2
- package/dist/queue/limits.mjs +18 -2
- package/dist/queue/rows.mjs +10 -1
- package/dist/queue/schedule.mjs +1 -1
- package/dist/queue/search.mjs +3 -4
- package/dist/queue/trim.mjs +2 -2
- package/dist/rest/client-namespace.d.mts +2 -0
- package/dist/rest/client.d.mts +32 -8
- package/dist/rest/client.mjs +308 -382
- package/dist/rest/commits.d.mts +150 -150
- package/dist/rest/files.d.mts +18 -18
- package/dist/rest/forks.d.mts +77 -89
- package/dist/rest/handlers.mjs +2 -1
- package/dist/rest/listen.d.mts +8 -6
- package/dist/rest/listen.mjs +31 -75
- package/dist/rest/me.d.mts +2 -2
- package/dist/rest/merges.d.mts +7 -7
- package/dist/rest/refs.d.mts +27 -27
- package/dist/rest/repos.d.mts +40 -52
- package/dist/rest/tokens.d.mts +12 -12
- package/dist/rest/topics.d.mts +13 -13
- package/dist/rest/trees.d.mts +66 -66
- package/dist/rest/wire.d.mts +20 -2
- package/dist/rest/work.d.mts +39 -39
- package/dist/rest.d.mts +1 -7
- package/dist/rest.mjs +1 -5
- package/dist/server/git-layer.d.mts +10 -2
- package/dist/server/git-layer.mjs +29 -10
- package/dist/server/joined.d.mts +12 -6
- package/dist/server/joined.mjs +3 -2
- package/dist/server/registry.mjs +11 -5
- package/dist/server/server.d.mts +0 -1
- package/dist/server/server.mjs +42 -49
- package/dist/signin/context.d.mts +0 -1
- package/dist/signin/context.mjs +5 -9
- package/dist/storage/clean-up.mjs +3 -1
- package/dist/storage/fsck.mjs +12 -2
- package/dist/storage/graph-rebuild.mjs +262 -0
- package/dist/storage/index-bitmaps.mjs +16 -10
- package/dist/storage/index-build.mjs +160 -24
- package/dist/storage/index-graph.d.mts +1 -0
- package/dist/storage/index-graph.mjs +29 -5
- package/dist/storage/index-layers.d.mts +1 -0
- package/dist/storage/index-layers.mjs +5 -2
- package/dist/storage/index-reach.mjs +7 -5
- package/dist/storage/index-remap.mjs +5 -5
- package/dist/storage/index-visible.mjs +16 -5
- package/dist/storage/lfs-pointers.d.mts +5 -5
- package/dist/storage/lfs-pointers.mjs +37 -11
- package/dist/storage/links.mjs +3 -3
- package/dist/storage/loose.mjs +4 -1
- package/dist/storage/memory-budget.mjs +1 -1
- package/dist/storage/merge-fence.mjs +81 -19
- package/dist/storage/merge-most.mjs +1 -0
- package/dist/storage/merge-row.mjs +16 -4
- package/dist/storage/merge-stream.mjs +9 -6
- package/dist/storage/object-rows.mjs +17 -1
- package/dist/storage/pack-order.d.mts +1 -0
- package/dist/storage/pack-order.mjs +18 -1
- package/dist/storage/pack-receive.mjs +10 -6
- package/dist/storage/packs.mjs +58 -27
- package/dist/storage/prune-walk.mjs +5 -2
- package/dist/storage/prune.mjs +168 -70
- package/dist/storage/ready.d.mts +1 -1
- package/dist/storage/ready.mjs +12 -3
- package/dist/storage/receive-bounds.mjs +3 -2
- package/dist/storage/receive-state.mjs +1 -1
- package/dist/storage/repack-contained.mjs +22 -14
- package/dist/storage/repack.d.mts +1 -1
- package/dist/storage/repack.mjs +3 -2
- package/dist/storage/unpack.mjs +7 -0
- package/dist/storage/visible.mjs +3 -2
- package/dist/storage/walk.d.mts +1 -0
- package/dist/storage/walk.mjs +9 -5
- package/dist/storage/wants.mjs +17 -11
- package/dist/store/call-count.d.mts +31 -3
- package/dist/store/call-count.mjs +51 -20
- package/dist/store/errors.d.mts +7 -1
- package/dist/store/errors.mjs +7 -1
- package/dist/store/job-try.mjs +3 -1
- package/dist/store/records.mjs +26 -5
- package/dist/store/repo-record.mjs +36 -12
- package/dist/store/scopes.mjs +15 -2
- package/dist/sync/bound.d.mts +1 -1
- package/dist/sync/import.mjs +15 -3
- package/dist/sync/layer.d.mts +5 -1
- package/dist/sync/layer.mjs +11 -9
- package/dist/sync/mirror.mjs +1 -1
- package/dist/sync/step.mjs +15 -15
- package/dist/topics/advance.mjs +11 -10
- package/dist/topics/layer.mjs +1 -1
- package/dist/topics/members.mjs +38 -9
- package/package.json +3 -3
- package/dist/engine/merge-base-walk.d.mts +0 -3
- package/dist/server/routes.d.mts +0 -32
- package/dist/server/routes.mjs +0 -69
- package/dist/sync/bridge.d.mts +0 -6
- package/dist/sync/bridge.mjs +0 -29
package/dist/rest/repos.d.mts
CHANGED
|
@@ -17,9 +17,6 @@ declare const ReposApiGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndp
|
|
|
17
17
|
readonly packs: Schema.optionalKey<Schema.Number>;
|
|
18
18
|
readonly packBytes: Schema.optionalKey<Schema.Number>;
|
|
19
19
|
readonly ownBytes: Schema.optionalKey<Schema.Number>;
|
|
20
|
-
readonly looseObjects: Schema.optionalKey<Schema.Number>;
|
|
21
|
-
readonly looseBytes: Schema.optionalKey<Schema.Number>;
|
|
22
|
-
readonly leavingBytes: Schema.optionalKey<Schema.Number>;
|
|
23
20
|
readonly pushedAt: Schema.optionalKey<Schema.Number>;
|
|
24
21
|
readonly maintainedAt: Schema.optionalKey<Schema.Number>;
|
|
25
22
|
}>;
|
|
@@ -845,38 +842,11 @@ declare const ReposApiGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndp
|
|
|
845
842
|
}>, {
|
|
846
843
|
"ref0-code": Schema.String;
|
|
847
844
|
'www-authenticate': Schema.String;
|
|
848
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
845
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"delete", "DELETE", "/repos/:repo/-/repo", Schema.toCodecStringTree<Schema.Struct<{
|
|
849
846
|
repo: Schema.String;
|
|
850
|
-
}>>,
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
readonly public: Schema.Boolean;
|
|
854
|
-
readonly upstream: Schema.optionalKey<Schema.String>;
|
|
855
|
-
readonly stats: Schema.Struct<{
|
|
856
|
-
readonly repo: Schema.String;
|
|
857
|
-
readonly refs: Schema.Number;
|
|
858
|
-
readonly packs: Schema.optionalKey<Schema.Number>;
|
|
859
|
-
readonly packBytes: Schema.optionalKey<Schema.Number>;
|
|
860
|
-
readonly ownBytes: Schema.optionalKey<Schema.Number>;
|
|
861
|
-
readonly looseObjects: Schema.optionalKey<Schema.Number>;
|
|
862
|
-
readonly looseBytes: Schema.optionalKey<Schema.Number>;
|
|
863
|
-
readonly leavingBytes: Schema.optionalKey<Schema.Number>;
|
|
864
|
-
readonly pushedAt: Schema.optionalKey<Schema.Number>;
|
|
865
|
-
readonly maintainedAt: Schema.optionalKey<Schema.Number>;
|
|
866
|
-
}>;
|
|
867
|
-
readonly work: Schema.optionalKey<Schema.Struct<{
|
|
868
|
-
readonly waiting: Schema.Number;
|
|
869
|
-
readonly oldestDue: Schema.optionalKey<Schema.Number>;
|
|
870
|
-
readonly failed: Schema.Number;
|
|
871
|
-
readonly oldestFailed: Schema.optionalKey<Schema.Number>;
|
|
872
|
-
readonly index: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
873
|
-
readonly state: Schema.Literal<"refused">;
|
|
874
|
-
readonly retryAt: Schema.Number;
|
|
875
|
-
}>, Schema.Struct<{
|
|
876
|
-
readonly state: Schema.Literal<"too-large">;
|
|
877
|
-
}>]>>;
|
|
878
|
-
}>>;
|
|
879
|
-
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
847
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
848
|
+
key: Schema.optionalKey<Schema.String>;
|
|
849
|
+
}>>, never, never, Schema.toCodecJson<Schema.$Record<Schema.String, Schema.Never>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
880
850
|
readonly code: "ALREADY_EXISTS";
|
|
881
851
|
readonly message: string;
|
|
882
852
|
readonly hint?: string;
|
|
@@ -1275,13 +1245,9 @@ declare const ReposApiGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndp
|
|
|
1275
1245
|
}>, {
|
|
1276
1246
|
"ref0-code": Schema.String;
|
|
1277
1247
|
'www-authenticate': Schema.String;
|
|
1278
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1248
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/repos/:repo/-/repo", Schema.toCodecStringTree<Schema.Struct<{
|
|
1279
1249
|
repo: Schema.String;
|
|
1280
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1281
|
-
readonly key: Schema.optionalKey<Schema.String>;
|
|
1282
|
-
readonly defaultBranch: Schema.optionalKey<Schema.String>;
|
|
1283
|
-
readonly public: Schema.optionalKey<Schema.Boolean>;
|
|
1284
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1250
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1285
1251
|
readonly name: Schema.String;
|
|
1286
1252
|
readonly defaultBranch: Schema.optionalKey<Schema.String>;
|
|
1287
1253
|
readonly public: Schema.Boolean;
|
|
@@ -1292,9 +1258,6 @@ declare const ReposApiGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndp
|
|
|
1292
1258
|
readonly packs: Schema.optionalKey<Schema.Number>;
|
|
1293
1259
|
readonly packBytes: Schema.optionalKey<Schema.Number>;
|
|
1294
1260
|
readonly ownBytes: Schema.optionalKey<Schema.Number>;
|
|
1295
|
-
readonly looseObjects: Schema.optionalKey<Schema.Number>;
|
|
1296
|
-
readonly looseBytes: Schema.optionalKey<Schema.Number>;
|
|
1297
|
-
readonly leavingBytes: Schema.optionalKey<Schema.Number>;
|
|
1298
1261
|
readonly pushedAt: Schema.optionalKey<Schema.Number>;
|
|
1299
1262
|
readonly maintainedAt: Schema.optionalKey<Schema.Number>;
|
|
1300
1263
|
}>;
|
|
@@ -1709,11 +1672,12 @@ declare const ReposApiGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndp
|
|
|
1709
1672
|
}>, {
|
|
1710
1673
|
"ref0-code": Schema.String;
|
|
1711
1674
|
'www-authenticate': Schema.String;
|
|
1712
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1675
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"update", "PATCH", "/repos/:repo/-/repo", Schema.toCodecStringTree<Schema.Struct<{
|
|
1713
1676
|
repo: Schema.String;
|
|
1714
1677
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1715
1678
|
readonly key: Schema.optionalKey<Schema.String>;
|
|
1716
|
-
readonly
|
|
1679
|
+
readonly defaultBranch: Schema.optionalKey<Schema.String>;
|
|
1680
|
+
readonly public: Schema.optionalKey<Schema.Boolean>;
|
|
1717
1681
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1718
1682
|
readonly name: Schema.String;
|
|
1719
1683
|
readonly defaultBranch: Schema.optionalKey<Schema.String>;
|
|
@@ -1725,9 +1689,6 @@ declare const ReposApiGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndp
|
|
|
1725
1689
|
readonly packs: Schema.optionalKey<Schema.Number>;
|
|
1726
1690
|
readonly packBytes: Schema.optionalKey<Schema.Number>;
|
|
1727
1691
|
readonly ownBytes: Schema.optionalKey<Schema.Number>;
|
|
1728
|
-
readonly looseObjects: Schema.optionalKey<Schema.Number>;
|
|
1729
|
-
readonly looseBytes: Schema.optionalKey<Schema.Number>;
|
|
1730
|
-
readonly leavingBytes: Schema.optionalKey<Schema.Number>;
|
|
1731
1692
|
readonly pushedAt: Schema.optionalKey<Schema.Number>;
|
|
1732
1693
|
readonly maintainedAt: Schema.optionalKey<Schema.Number>;
|
|
1733
1694
|
}>;
|
|
@@ -2142,11 +2103,38 @@ declare const ReposApiGroup_base: HttpApiGroup.HttpApiGroup<"repos", HttpApiEndp
|
|
|
2142
2103
|
}>, {
|
|
2143
2104
|
"ref0-code": Schema.String;
|
|
2144
2105
|
'www-authenticate': Schema.String;
|
|
2145
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
2106
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"rename", "POST", "/repos/:repo/-/repo/rename", Schema.toCodecStringTree<Schema.Struct<{
|
|
2146
2107
|
repo: Schema.String;
|
|
2147
|
-
}>>, Schema.
|
|
2148
|
-
key: Schema.optionalKey<Schema.String>;
|
|
2149
|
-
|
|
2108
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2109
|
+
readonly key: Schema.optionalKey<Schema.String>;
|
|
2110
|
+
readonly to: Schema.String;
|
|
2111
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2112
|
+
readonly name: Schema.String;
|
|
2113
|
+
readonly defaultBranch: Schema.optionalKey<Schema.String>;
|
|
2114
|
+
readonly public: Schema.Boolean;
|
|
2115
|
+
readonly upstream: Schema.optionalKey<Schema.String>;
|
|
2116
|
+
readonly stats: Schema.Struct<{
|
|
2117
|
+
readonly repo: Schema.String;
|
|
2118
|
+
readonly refs: Schema.Number;
|
|
2119
|
+
readonly packs: Schema.optionalKey<Schema.Number>;
|
|
2120
|
+
readonly packBytes: Schema.optionalKey<Schema.Number>;
|
|
2121
|
+
readonly ownBytes: Schema.optionalKey<Schema.Number>;
|
|
2122
|
+
readonly pushedAt: Schema.optionalKey<Schema.Number>;
|
|
2123
|
+
readonly maintainedAt: Schema.optionalKey<Schema.Number>;
|
|
2124
|
+
}>;
|
|
2125
|
+
readonly work: Schema.optionalKey<Schema.Struct<{
|
|
2126
|
+
readonly waiting: Schema.Number;
|
|
2127
|
+
readonly oldestDue: Schema.optionalKey<Schema.Number>;
|
|
2128
|
+
readonly failed: Schema.Number;
|
|
2129
|
+
readonly oldestFailed: Schema.optionalKey<Schema.Number>;
|
|
2130
|
+
readonly index: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2131
|
+
readonly state: Schema.Literal<"refused">;
|
|
2132
|
+
readonly retryAt: Schema.Number;
|
|
2133
|
+
}>, Schema.Struct<{
|
|
2134
|
+
readonly state: Schema.Literal<"too-large">;
|
|
2135
|
+
}>]>>;
|
|
2136
|
+
}>>;
|
|
2137
|
+
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
2150
2138
|
readonly code: "ALREADY_EXISTS";
|
|
2151
2139
|
readonly message: string;
|
|
2152
2140
|
readonly hint?: string;
|
package/dist/rest/tokens.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api";
|
|
|
4
4
|
declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEndpoint.HttpApiEndpoint<"createPrefix", "POST", "/tokens", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
5
5
|
prefix: Schema.String;
|
|
6
6
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
7
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write"]>;
|
|
7
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
8
8
|
readonly expiresAt: Schema.Number;
|
|
9
9
|
readonly subject: Schema.Struct<{
|
|
10
10
|
readonly id: Schema.String;
|
|
@@ -16,7 +16,7 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
16
16
|
readonly repo: Schema.String;
|
|
17
17
|
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
18
18
|
readonly id: Schema.String;
|
|
19
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write"]>;
|
|
19
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
20
20
|
readonly expiresAt: Schema.Number;
|
|
21
21
|
readonly createdAt: Schema.Number;
|
|
22
22
|
readonly subject: Schema.Struct<{
|
|
@@ -31,7 +31,7 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
31
31
|
readonly prefix: Schema.String;
|
|
32
32
|
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
33
33
|
readonly id: Schema.String;
|
|
34
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write"]>;
|
|
34
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
35
35
|
readonly expiresAt: Schema.Number;
|
|
36
36
|
readonly createdAt: Schema.Number;
|
|
37
37
|
readonly subject: Schema.Struct<{
|
|
@@ -444,7 +444,7 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
444
444
|
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"createRepo", "POST", "/repos/:repo/-/tokens", Schema.toCodecStringTree<Schema.Struct<{
|
|
445
445
|
repo: Schema.String;
|
|
446
446
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
447
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write"]>;
|
|
447
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
448
448
|
readonly expiresAt: Schema.Number;
|
|
449
449
|
readonly subject: Schema.Struct<{
|
|
450
450
|
readonly id: Schema.String;
|
|
@@ -456,7 +456,7 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
456
456
|
readonly repo: Schema.String;
|
|
457
457
|
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
458
458
|
readonly id: Schema.String;
|
|
459
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write"]>;
|
|
459
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
460
460
|
readonly expiresAt: Schema.Number;
|
|
461
461
|
readonly createdAt: Schema.Number;
|
|
462
462
|
readonly subject: Schema.Struct<{
|
|
@@ -471,7 +471,7 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
471
471
|
readonly prefix: Schema.String;
|
|
472
472
|
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
473
473
|
readonly id: Schema.String;
|
|
474
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write"]>;
|
|
474
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
475
475
|
readonly expiresAt: Schema.Number;
|
|
476
476
|
readonly createdAt: Schema.Number;
|
|
477
477
|
readonly subject: Schema.Struct<{
|
|
@@ -887,7 +887,7 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
887
887
|
readonly repo: Schema.String;
|
|
888
888
|
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
889
889
|
readonly id: Schema.String;
|
|
890
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write"]>;
|
|
890
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
891
891
|
readonly expiresAt: Schema.Number;
|
|
892
892
|
readonly createdAt: Schema.Number;
|
|
893
893
|
readonly subject: Schema.Struct<{
|
|
@@ -901,7 +901,7 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
901
901
|
readonly prefix: Schema.String;
|
|
902
902
|
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
903
903
|
readonly id: Schema.String;
|
|
904
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write"]>;
|
|
904
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
905
905
|
readonly expiresAt: Schema.Number;
|
|
906
906
|
readonly createdAt: Schema.Number;
|
|
907
907
|
readonly subject: Schema.Struct<{
|
|
@@ -1320,7 +1320,7 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
1320
1320
|
readonly repo: Schema.String;
|
|
1321
1321
|
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
1322
1322
|
readonly id: Schema.String;
|
|
1323
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write"]>;
|
|
1323
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
1324
1324
|
readonly expiresAt: Schema.Number;
|
|
1325
1325
|
readonly createdAt: Schema.Number;
|
|
1326
1326
|
readonly subject: Schema.Struct<{
|
|
@@ -1334,7 +1334,7 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
1334
1334
|
readonly prefix: Schema.String;
|
|
1335
1335
|
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
1336
1336
|
readonly id: Schema.String;
|
|
1337
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write"]>;
|
|
1337
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
1338
1338
|
readonly expiresAt: Schema.Number;
|
|
1339
1339
|
readonly createdAt: Schema.Number;
|
|
1340
1340
|
readonly subject: Schema.Struct<{
|
|
@@ -1756,7 +1756,7 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
1756
1756
|
readonly repo: Schema.String;
|
|
1757
1757
|
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
1758
1758
|
readonly id: Schema.String;
|
|
1759
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write"]>;
|
|
1759
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
1760
1760
|
readonly expiresAt: Schema.Number;
|
|
1761
1761
|
readonly createdAt: Schema.Number;
|
|
1762
1762
|
readonly subject: Schema.Struct<{
|
|
@@ -1770,7 +1770,7 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
1770
1770
|
readonly prefix: Schema.String;
|
|
1771
1771
|
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
1772
1772
|
readonly id: Schema.String;
|
|
1773
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write"]>;
|
|
1773
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
1774
1774
|
readonly expiresAt: Schema.Number;
|
|
1775
1775
|
readonly createdAt: Schema.Number;
|
|
1776
1776
|
readonly subject: Schema.Struct<{
|
package/dist/rest/topics.d.mts
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { GitCallerMiddleware, GitRestServices } from "./caller.mjs";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
3
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
4
|
-
declare const TopicsApiGroup_base: HttpApiGroup.HttpApiGroup<"topics", HttpApiEndpoint.HttpApiEndpoint<"
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const TopicsApiGroup_base: HttpApiGroup.HttpApiGroup<"topics", HttpApiEndpoint.HttpApiEndpoint<"add", "POST", "/topics", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
5
|
+
readonly key: Schema.String;
|
|
6
|
+
readonly entries: Schema.$Array<Schema.Struct<{
|
|
7
|
+
readonly target: Schema.String;
|
|
8
|
+
readonly source: Schema.String;
|
|
9
|
+
readonly head: Schema.String;
|
|
10
|
+
readonly key: Schema.String;
|
|
11
|
+
readonly repo: Schema.String;
|
|
12
|
+
}>>;
|
|
13
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
7
14
|
readonly id: Schema.String;
|
|
8
15
|
readonly key: Schema.String;
|
|
9
16
|
readonly state: Schema.Literals<readonly ["reserving", "checking", "publishing", "failed", "merged", "removed"]>;
|
|
@@ -1335,16 +1342,9 @@ declare const TopicsApiGroup_base: HttpApiGroup.HttpApiGroup<"topics", HttpApiEn
|
|
|
1335
1342
|
}>, {
|
|
1336
1343
|
"ref0-code": Schema.String;
|
|
1337
1344
|
'www-authenticate': Schema.String;
|
|
1338
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
readonly target: Schema.String;
|
|
1342
|
-
readonly source: Schema.String;
|
|
1343
|
-
readonly head: Schema.String;
|
|
1344
|
-
readonly key: Schema.String;
|
|
1345
|
-
readonly repo: Schema.String;
|
|
1346
|
-
}>>;
|
|
1347
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1345
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"remove", "DELETE", "/topics/:topic", Schema.toCodecStringTree<Schema.Struct<{
|
|
1346
|
+
topic: Schema.String;
|
|
1347
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1348
1348
|
readonly id: Schema.String;
|
|
1349
1349
|
readonly key: Schema.String;
|
|
1350
1350
|
readonly state: Schema.Literals<readonly ["reserving", "checking", "publishing", "failed", "merged", "removed"]>;
|
package/dist/rest/trees.d.mts
CHANGED
|
@@ -1,28 +1,20 @@
|
|
|
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 TreesApiGroup_base: HttpApiGroup.HttpApiGroup<"trees", HttpApiEndpoint.HttpApiEndpoint<"
|
|
4
|
+
declare const TreesApiGroup_base: HttpApiGroup.HttpApiGroup<"trees", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/repos/:repo/-/trees", Schema.toCodecStringTree<Schema.Struct<{
|
|
5
5
|
repo: Schema.String;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
entries: Schema.optionalKey<Schema.Int>;
|
|
11
|
-
milliseconds: Schema.optionalKey<Schema.Int>;
|
|
12
|
-
after: Schema.optionalKey<Schema.String>;
|
|
13
|
-
limit: Schema.optionalKey<Schema.Int>;
|
|
14
|
-
recursive: Schema.optionalKey<Schema.Boolean>;
|
|
15
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
16
|
-
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
17
|
-
readonly name: Schema.String;
|
|
6
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
7
|
+
readonly key: Schema.optionalKey<Schema.String>;
|
|
8
|
+
readonly base: Schema.optionalKey<Schema.String>;
|
|
9
|
+
readonly changes: Schema.$Array<Schema.Struct<{
|
|
18
10
|
readonly path: Schema.String;
|
|
19
|
-
readonly mode: Schema.String
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
22
|
-
readonly
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
readonly
|
|
11
|
+
readonly mode: Schema.optionalKey<Schema.String>;
|
|
12
|
+
readonly oid: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
13
|
+
readonly content: Schema.optionalKey<Schema.String>;
|
|
14
|
+
readonly contentBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
15
|
+
}>>;
|
|
16
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
17
|
+
readonly oid: Schema.String;
|
|
26
18
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
27
19
|
readonly code: "ALREADY_EXISTS";
|
|
28
20
|
readonly message: string;
|
|
@@ -422,21 +414,40 @@ declare const TreesApiGroup_base: HttpApiGroup.HttpApiGroup<"trees", HttpApiEndp
|
|
|
422
414
|
}>, {
|
|
423
415
|
"ref0-code": Schema.String;
|
|
424
416
|
'www-authenticate': Schema.String;
|
|
425
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
417
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"diff", "POST", "/repos/:repo/-/trees/diff", Schema.toCodecStringTree<Schema.Struct<{
|
|
426
418
|
repo: Schema.String;
|
|
427
419
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
428
|
-
readonly base: Schema.
|
|
429
|
-
readonly
|
|
430
|
-
readonly
|
|
431
|
-
readonly key: Schema.optionalKey<Schema.String>;
|
|
420
|
+
readonly base: Schema.String;
|
|
421
|
+
readonly head: Schema.String;
|
|
422
|
+
readonly renames: Schema.optionalKey<Schema.Boolean>;
|
|
432
423
|
readonly limits: Schema.optionalKey<Schema.Struct<{
|
|
433
424
|
readonly objects: Schema.optionalKey<Schema.Int>;
|
|
434
425
|
readonly bytes: Schema.optionalKey<Schema.Int>;
|
|
435
426
|
readonly entries: Schema.optionalKey<Schema.Int>;
|
|
436
427
|
readonly milliseconds: Schema.optionalKey<Schema.Int>;
|
|
437
428
|
}>>;
|
|
429
|
+
readonly page: Schema.optionalKey<Schema.Struct<{
|
|
430
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
431
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
432
|
+
}>>;
|
|
438
433
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
439
|
-
readonly
|
|
434
|
+
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
435
|
+
status: Schema.Literals<readonly ["A", "D", "M", "R", "T"]>;
|
|
436
|
+
path: Schema.String;
|
|
437
|
+
from: Schema.optionalKey<Schema.String>;
|
|
438
|
+
similarity: Schema.optionalKey<Schema.Number>;
|
|
439
|
+
old: Schema.optionalKey<Schema.Struct<{
|
|
440
|
+
readonly mode: Schema.String;
|
|
441
|
+
readonly oid: Schema.String;
|
|
442
|
+
}>>;
|
|
443
|
+
new: Schema.optionalKey<Schema.Struct<{
|
|
444
|
+
readonly mode: Schema.String;
|
|
445
|
+
readonly oid: Schema.String;
|
|
446
|
+
}>>;
|
|
447
|
+
pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
448
|
+
fromPathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
449
|
+
}>>>;
|
|
450
|
+
readonly next: Schema.optionalKey<Schema.String>;
|
|
440
451
|
readonly renamesSkipped: Schema.optionalKey<Schema.Literals<readonly ["rename-limit", "memory-limit"]>>;
|
|
441
452
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
442
453
|
readonly code: "ALREADY_EXISTS";
|
|
@@ -837,41 +848,28 @@ declare const TreesApiGroup_base: HttpApiGroup.HttpApiGroup<"trees", HttpApiEndp
|
|
|
837
848
|
}>, {
|
|
838
849
|
"ref0-code": Schema.String;
|
|
839
850
|
'www-authenticate': Schema.String;
|
|
840
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
851
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/repos/:repo/-/trees/:oid", Schema.toCodecStringTree<Schema.Struct<{
|
|
841
852
|
repo: Schema.String;
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
readonly page: Schema.optionalKey<Schema.Struct<{
|
|
853
|
-
readonly after: Schema.optionalKey<Schema.String>;
|
|
854
|
-
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
855
|
-
}>>;
|
|
856
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
853
|
+
oid: Schema.String;
|
|
854
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
855
|
+
objects: Schema.optionalKey<Schema.Int>;
|
|
856
|
+
bytes: Schema.optionalKey<Schema.Int>;
|
|
857
|
+
entries: Schema.optionalKey<Schema.Int>;
|
|
858
|
+
milliseconds: Schema.optionalKey<Schema.Int>;
|
|
859
|
+
after: Schema.optionalKey<Schema.String>;
|
|
860
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
861
|
+
recursive: Schema.optionalKey<Schema.Boolean>;
|
|
862
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
857
863
|
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
858
|
-
|
|
859
|
-
path: Schema.String;
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
}>>;
|
|
866
|
-
new: Schema.optionalKey<Schema.Struct<{
|
|
867
|
-
readonly mode: Schema.String;
|
|
868
|
-
readonly oid: Schema.String;
|
|
869
|
-
}>>;
|
|
870
|
-
pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
871
|
-
fromPathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
864
|
+
readonly name: Schema.String;
|
|
865
|
+
readonly path: Schema.String;
|
|
866
|
+
readonly mode: Schema.String;
|
|
867
|
+
readonly type: Schema.Literals<readonly ["blob", "tree", "commit"]>;
|
|
868
|
+
readonly oid: Schema.String;
|
|
869
|
+
readonly size: Schema.optionalKey<Schema.Int>;
|
|
870
|
+
readonly pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
872
871
|
}>>>;
|
|
873
872
|
readonly next: Schema.optionalKey<Schema.String>;
|
|
874
|
-
readonly renamesSkipped: Schema.optionalKey<Schema.Literals<readonly ["rename-limit", "memory-limit"]>>;
|
|
875
873
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
876
874
|
readonly code: "ALREADY_EXISTS";
|
|
877
875
|
readonly message: string;
|
|
@@ -1271,20 +1269,22 @@ declare const TreesApiGroup_base: HttpApiGroup.HttpApiGroup<"trees", HttpApiEndp
|
|
|
1271
1269
|
}>, {
|
|
1272
1270
|
"ref0-code": Schema.String;
|
|
1273
1271
|
'www-authenticate': Schema.String;
|
|
1274
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1272
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"merge", "POST", "/repos/:repo/-/trees/merge", Schema.toCodecStringTree<Schema.Struct<{
|
|
1275
1273
|
repo: Schema.String;
|
|
1276
1274
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1277
|
-
readonly key: Schema.optionalKey<Schema.String>;
|
|
1278
1275
|
readonly base: Schema.optionalKey<Schema.String>;
|
|
1279
|
-
readonly
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
readonly
|
|
1284
|
-
readonly
|
|
1276
|
+
readonly ours: Schema.String;
|
|
1277
|
+
readonly theirs: Schema.String;
|
|
1278
|
+
readonly key: Schema.optionalKey<Schema.String>;
|
|
1279
|
+
readonly limits: Schema.optionalKey<Schema.Struct<{
|
|
1280
|
+
readonly objects: Schema.optionalKey<Schema.Int>;
|
|
1281
|
+
readonly bytes: Schema.optionalKey<Schema.Int>;
|
|
1282
|
+
readonly entries: Schema.optionalKey<Schema.Int>;
|
|
1283
|
+
readonly milliseconds: Schema.optionalKey<Schema.Int>;
|
|
1285
1284
|
}>>;
|
|
1286
1285
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1287
|
-
readonly
|
|
1286
|
+
readonly tree: Schema.String;
|
|
1287
|
+
readonly renamesSkipped: Schema.optionalKey<Schema.Literals<readonly ["rename-limit", "memory-limit"]>>;
|
|
1288
1288
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
1289
1289
|
readonly code: "ALREADY_EXISTS";
|
|
1290
1290
|
readonly message: string;
|
package/dist/rest/wire.d.mts
CHANGED
|
@@ -171,6 +171,24 @@ export declare const RepoStreamEvent: Schema.Union<readonly [Schema.Union<readon
|
|
|
171
171
|
readonly type: Schema.Literal<"repo.work.failed">;
|
|
172
172
|
readonly refused: Schema.Literals<readonly ["spent", "too-large"]>;
|
|
173
173
|
readonly error: Schema.String;
|
|
174
|
+
}>, Schema.Struct<{
|
|
175
|
+
readonly seq: Schema.Int;
|
|
176
|
+
readonly at: Schema.Number;
|
|
177
|
+
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
178
|
+
readonly id: Schema.String;
|
|
179
|
+
}>>;
|
|
180
|
+
readonly subject: Schema.optionalKey<Schema.Struct<{
|
|
181
|
+
readonly id: Schema.String;
|
|
182
|
+
}>>;
|
|
183
|
+
readonly repo: Schema.String;
|
|
184
|
+
readonly internalId: Schema.TemplateLiteral<readonly ["r_", Schema.String]>;
|
|
185
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
186
|
+
readonly type: Schema.Literal<"repo.work.failed">;
|
|
187
|
+
readonly name: Schema.Literal<"git.repack">;
|
|
188
|
+
readonly key: Schema.Literal<"prune">;
|
|
189
|
+
readonly refused: Schema.Literal<"busy">;
|
|
190
|
+
readonly periods: Schema.Int;
|
|
191
|
+
readonly error: Schema.String;
|
|
174
192
|
}>]>]>, Schema.Union<readonly [Schema.Struct<{
|
|
175
193
|
readonly seq: Schema.Int;
|
|
176
194
|
readonly at: Schema.Number;
|
|
@@ -222,7 +240,7 @@ export declare const RepoStreamEvent: Schema.Union<readonly [Schema.Union<readon
|
|
|
222
240
|
readonly url: Schema.optionalKey<Schema.String>;
|
|
223
241
|
readonly type: Schema.Literal<"queue.entry.failed">;
|
|
224
242
|
readonly entry: Schema.String;
|
|
225
|
-
readonly reason: Schema.Literals<readonly ["conflict", "reported", "host-error", "interaction", "refused", "tooManyCommits"]>;
|
|
243
|
+
readonly reason: Schema.Literals<readonly ["conflict", "reported", "host-error", "interaction", "refused", "tooManyCommits", "tooLarge"]>;
|
|
226
244
|
readonly candidate: Schema.optionalKey<Schema.String>;
|
|
227
245
|
readonly error: Schema.optionalKey<Schema.String>;
|
|
228
246
|
}>, Schema.Struct<{
|
|
@@ -395,7 +413,7 @@ export declare const RepoStreamEvent: Schema.Union<readonly [Schema.Union<readon
|
|
|
395
413
|
}>>;
|
|
396
414
|
readonly type: Schema.Literals<readonly ["token.created", "token.revoked"]>;
|
|
397
415
|
readonly token: Schema.String;
|
|
398
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write"]>;
|
|
416
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
399
417
|
readonly subject: Schema.Struct<{
|
|
400
418
|
readonly id: Schema.String;
|
|
401
419
|
}>;
|
package/dist/rest/work.d.mts
CHANGED
|
@@ -1,13 +1,39 @@
|
|
|
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<"list", "GET", "/repos/:repo/-/work", Schema.toCodecStringTree<Schema.Struct<{
|
|
5
5
|
repo: Schema.String;
|
|
6
|
-
}>>,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}>>, never,
|
|
6
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
7
|
+
after: Schema.optionalKey<Schema.String>;
|
|
8
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
9
|
+
state: Schema.optionalKey<Schema.Literals<readonly ["waiting", "running", "failed"]>>;
|
|
10
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
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<{
|
|
11
37
|
readonly code: "ALREADY_EXISTS";
|
|
12
38
|
readonly message: string;
|
|
13
39
|
readonly hint?: string;
|
|
@@ -406,7 +432,7 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
406
432
|
}>, {
|
|
407
433
|
"ref0-code": Schema.String;
|
|
408
434
|
'www-authenticate': Schema.String;
|
|
409
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
435
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"discard", "POST", "/repos/:repo/-/work/discard", Schema.toCodecStringTree<Schema.Struct<{
|
|
410
436
|
repo: Schema.String;
|
|
411
437
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
412
438
|
readonly name: Schema.String;
|
|
@@ -811,39 +837,13 @@ declare const WorkApiGroup_base: HttpApiGroup.HttpApiGroup<"work", HttpApiEndpoi
|
|
|
811
837
|
}>, {
|
|
812
838
|
"ref0-code": Schema.String;
|
|
813
839
|
'www-authenticate': Schema.String;
|
|
814
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
840
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"retry", "POST", "/repos/:repo/-/work/retry", Schema.toCodecStringTree<Schema.Struct<{
|
|
815
841
|
repo: Schema.String;
|
|
816
|
-
}>>, Schema.
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
}>>, never,
|
|
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<{
|
|
842
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
843
|
+
readonly name: Schema.String;
|
|
844
|
+
readonly key: Schema.String;
|
|
845
|
+
readonly requestKey: Schema.optionalKey<Schema.String>;
|
|
846
|
+
}>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
847
847
|
readonly code: "ALREADY_EXISTS";
|
|
848
848
|
readonly message: string;
|
|
849
849
|
readonly hint?: string;
|
package/dist/rest.d.mts
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
import { RestClient, RestTokenCalls, createRestClient } from "./rest/client.mjs";
|
|
2
|
-
import { tokenScopes, tokenStates } from "./contracts/tokens.mjs";
|
|
3
|
-
import { RepoStreamEvent } from "./rest/wire.mjs";
|
|
4
|
-
import { ListenInput, RestEvents } from "./rest/listen.mjs";
|
|
5
1
|
import { RestHandler, createRestHandler } from "./rest/handler.mjs";
|
|
6
|
-
|
|
7
|
-
import { jobStates } from "@ref0/infra";
|
|
8
|
-
export { type ListenInput, type Me, type RepoStreamEvent, type RestClient, type RestEvents, type RestHandler, type RestTokenCalls, createRestClient, createRestHandler, jobStates, tokenScopes, tokenStates };
|
|
2
|
+
export { type RestHandler, createRestHandler };
|
package/dist/rest.mjs
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { tokenScopes, tokenStates } from "./contracts/tokens.mjs";
|
|
3
|
-
import { createRestHandler } from "./rest/handler.mjs";
|
|
4
|
-
import { jobStates } from "@ref0/infra";
|
|
5
|
-
export { createRestClient, createRestHandler, jobStates, tokenScopes, tokenStates };
|
|
1
|
+
export { createRestHandler } from "./rest/handler.mjs";
|