@ref0/git 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/access/private-refs.mjs +3 -4
- package/dist/auth/authorize.mjs +9 -4
- package/dist/auth/identify.d.mts +5 -3
- package/dist/auth/tokens.mjs +12 -11
- package/dist/client/local.mjs +2 -0
- package/dist/client/slice-push.d.mts +1 -1
- package/dist/contracts/access.d.mts +6 -2
- package/dist/contracts/authorize.d.mts +14 -10
- package/dist/contracts/events.d.mts +32 -5
- package/dist/contracts/events.mjs +14 -3
- package/dist/contracts/git.d.mts +68 -3
- package/dist/contracts/grants.d.mts +6 -1
- package/dist/contracts/lfs.d.mts +5 -2
- package/dist/contracts/objects.d.mts +7 -2
- package/dist/contracts/promises.d.mts +2 -14
- package/dist/contracts/push-uploads.d.mts +1 -1
- package/dist/contracts/queue.d.mts +15 -7
- package/dist/contracts/refs.d.mts +1 -1
- package/dist/contracts/result.d.mts +9 -5
- package/dist/contracts/result.mjs +5 -0
- package/dist/contracts/server.d.mts +13 -6
- package/dist/contracts/work.d.mts +1 -1
- package/dist/core/access.mjs +17 -1
- package/dist/core/call-names.d.mts +3 -1
- package/dist/core/claim-rows.d.mts +4 -0
- package/dist/core/claim-rows.mjs +53 -0
- package/dist/core/events/deliver.d.mts +12 -0
- package/dist/core/events/deliver.mjs +367 -145
- package/dist/core/events/seen.mjs +17 -3
- package/dist/core/forks.mjs +82 -20
- package/dist/core/hooks/post-receive.mjs +20 -17
- package/dist/core/index-job.mjs +23 -17
- package/dist/core/parts.d.mts +6 -0
- package/dist/core/purge.d.mts +8 -0
- package/dist/core/purge.mjs +16 -21
- package/dist/core/push-decide.mjs +26 -4
- package/dist/core/push.mjs +57 -20
- package/dist/core/ref-index-job.mjs +9 -14
- package/dist/core/ref-index.d.mts +1 -0
- package/dist/core/ref-index.mjs +28 -8
- package/dist/core/ref-view.mjs +14 -9
- package/dist/core/refs.mjs +13 -11
- package/dist/core/repack.d.mts +2 -1
- package/dist/core/repack.mjs +66 -118
- package/dist/core/repos.mjs +5 -5
- package/dist/core/rules/check.mjs +7 -6
- package/dist/core/rules/context.d.mts +1 -1
- package/dist/core/seam.d.mts +56 -9
- package/dist/core/seam.mjs +7 -1
- package/dist/core/still-takes.mjs +75 -0
- package/dist/core/view.d.mts +1 -0
- package/dist/core/view.mjs +8 -9
- package/dist/core/work.mjs +1 -1
- package/dist/extend.d.mts +2 -1
- package/dist/http/core-parts.mjs +19 -11
- package/dist/http/handler.mjs +2 -2
- package/dist/http/node.d.mts +2 -23
- package/dist/http/parts.d.mts +1 -0
- package/dist/http/push-uploads.d.mts +10 -2
- package/dist/http/push-uploads.mjs +31 -34
- package/dist/http/receive-pack.mjs +5 -3
- package/dist/http/upload-pack.mjs +2 -2
- package/dist/index.d.mts +11 -7
- package/dist/index.mjs +5 -3
- package/dist/lfs/base.d.mts +32 -0
- package/dist/lfs/base.mjs +8 -0
- package/dist/lfs/calls.mjs +21 -12
- package/dist/lfs/layer.d.mts +27 -0
- package/dist/lfs/layer.mjs +64 -0
- package/dist/lfs/locks.mjs +13 -27
- package/dist/lfs/namespace.d.mts +2 -0
- package/dist/lfs/objects.d.mts +23 -4
- package/dist/lfs/objects.mjs +65 -81
- package/dist/lfs/pointers.mjs +8 -6
- package/dist/lfs/public.d.mts +5 -0
- package/dist/lfs/public.mjs +8 -0
- package/dist/lfs/purge.mjs +19 -25
- package/dist/lfs/rows.mjs +22 -10
- package/dist/lfs/service.d.mts +9 -4
- package/dist/lfs/service.mjs +3 -12
- package/dist/lfs/upkeep.mjs +34 -49
- package/dist/node.d.mts +3 -2
- package/dist/node.mjs +1 -1
- package/dist/protocol/wire/advertisement.d.mts +4 -10
- package/dist/protocol/wire/advertisement.mjs +16 -12
- package/dist/protocol/wire/lines.d.mts +14 -2
- package/dist/protocol/wire/lines.mjs +32 -21
- package/dist/protocol/wire/v2.d.mts +4 -15
- package/dist/protocol/wire/v2.mjs +16 -14
- package/dist/queue/advance.mjs +78 -55
- package/dist/queue/calls.mjs +4 -2
- package/dist/queue/commit.mjs +20 -13
- package/dist/queue/host.d.mts +2 -2
- package/dist/queue/layer.d.mts +4 -2
- package/dist/queue/layer.mjs +8 -3
- package/dist/queue/limits.mjs +36 -6
- package/dist/queue/rows.mjs +14 -5
- package/dist/queue/state.mjs +19 -5
- package/dist/queue/steps.mjs +10 -4
- package/dist/queue/trim.mjs +284 -0
- package/dist/rest/blobs.d.mts +19 -19
- package/dist/rest/caller.d.mts +4 -4
- package/dist/rest/commits.d.mts +96 -96
- package/dist/rest/errors.d.mts +2 -2
- package/dist/rest/events.d.mts +2 -2
- package/dist/rest/files.d.mts +54 -54
- package/dist/rest/forks.d.mts +87 -87
- package/dist/rest/handler.mjs +13 -5
- package/dist/rest/layer.d.mts +14 -0
- package/dist/rest/layer.mjs +52 -0
- package/dist/rest/me.d.mts +2 -2
- package/dist/rest/merges.d.mts +2 -2
- package/dist/rest/namespace.d.mts +2 -0
- package/dist/rest/queue.d.mts +208 -208
- package/dist/rest/refs.d.mts +131 -131
- package/dist/rest/repos.d.mts +12 -12
- package/dist/rest/tags.d.mts +70 -70
- package/dist/rest/tokens.d.mts +23 -23
- package/dist/rest/topics.d.mts +111 -111
- package/dist/rest/trees.d.mts +57 -57
- package/dist/rest/wire.d.mts +2 -0
- package/dist/rest/wire.mjs +2 -2
- package/dist/rest/work.d.mts +6 -6
- package/dist/server/edge-node.d.mts +20 -0
- package/dist/server/edge-node.mjs +20 -0
- package/dist/server/edge.d.mts +10 -0
- package/dist/server/edge.mjs +23 -0
- package/dist/server/extension.mjs +1 -1
- package/dist/server/git-layer.d.mts +15 -4
- package/dist/server/git-layer.mjs +13 -2
- package/dist/server/git-namespace.d.mts +5 -4
- package/dist/server/git-namespace.mjs +6 -3
- package/dist/server/registry.d.mts +3 -0
- package/dist/server/registry.mjs +58 -7
- package/dist/server/server.d.mts +3 -0
- package/dist/server/server.mjs +81 -39
- package/dist/server/uploads.d.mts +14 -0
- package/dist/server/uploads.mjs +15 -0
- package/dist/storage/calls.d.mts +7 -8
- package/dist/storage/calls.mjs +14 -14
- package/dist/storage/clean-up.mjs +59 -29
- package/dist/storage/host-bucket.mjs +16 -1
- package/dist/storage/index-build.d.mts +1 -1
- package/dist/storage/layout.mjs +5 -0
- package/dist/storage/merge.d.mts +1 -1
- package/dist/storage/push-uploads.mjs +12 -16
- package/dist/storage/quarantine.d.mts +1 -1
- package/dist/storage/quarantine.mjs +51 -12
- package/dist/storage/receive-bounds.d.mts +1 -1
- package/dist/storage/repack-job.d.mts +1 -1
- package/dist/storage/repack-job.mjs +7 -14
- package/dist/storage/rows.mjs +42 -3
- package/dist/storage/runs.d.mts +1 -1
- package/dist/store/job-try.mjs +26 -0
- package/dist/store/list-job.mjs +22 -16
- package/dist/store/outbox.mjs +38 -12
- package/dist/store/promises.d.mts +6 -1
- package/dist/store/promises.mjs +74 -89
- package/dist/store/queue-jobs.mjs +22 -1
- package/dist/store/scopes.mjs +0 -10
- package/dist/sync/mirror.d.mts +1 -1
- package/dist/sync/mirror.mjs +1 -1
- package/dist/sync/publish.mjs +12 -7
- package/dist/sync/step.mjs +4 -0
- package/package.json +3 -3
- package/dist/lfs/repo.mjs +0 -42
- package/dist/storage/promise-calls.mjs +0 -29
package/dist/rest/topics.d.mts
CHANGED
|
@@ -1,55 +1,57 @@
|
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
readonly id: Schema.String;
|
|
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;
|
|
11
10
|
readonly key: Schema.String;
|
|
12
|
-
readonly
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
readonly
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
readonly
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
readonly
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
readonly
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
11
|
+
readonly repo: Schema.String;
|
|
12
|
+
}>>;
|
|
13
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
14
|
+
readonly id: Schema.String;
|
|
15
|
+
readonly key: Schema.String;
|
|
16
|
+
readonly state: Schema.Literals<readonly ["reserving", "checking", "publishing", "failed", "merged", "removed"]>;
|
|
17
|
+
readonly entries: Schema.$Array<Schema.Struct<{
|
|
18
|
+
readonly repo: Schema.String;
|
|
19
|
+
readonly target: Schema.String;
|
|
20
|
+
readonly entry: Schema.String;
|
|
21
|
+
readonly key: Schema.String;
|
|
22
|
+
readonly source: Schema.String;
|
|
23
|
+
readonly head: Schema.String;
|
|
24
|
+
}>>;
|
|
25
|
+
readonly pending: Schema.$Array<Schema.Struct<{
|
|
26
|
+
readonly repo: Schema.String;
|
|
27
|
+
readonly target: Schema.String;
|
|
28
|
+
readonly source: Schema.String;
|
|
29
|
+
readonly head: Schema.String;
|
|
30
|
+
readonly key: Schema.String;
|
|
31
|
+
}>>;
|
|
32
|
+
readonly candidates: Schema.$Array<Schema.Struct<{
|
|
33
|
+
readonly repo: Schema.String;
|
|
34
|
+
readonly target: Schema.String;
|
|
35
|
+
readonly candidate: Schema.String;
|
|
36
|
+
readonly ref: Schema.String;
|
|
37
|
+
readonly commit: Schema.String;
|
|
38
|
+
}>>;
|
|
39
|
+
readonly waitingOn: Schema.optionalKey<Schema.Struct<{
|
|
40
|
+
readonly repo: Schema.String;
|
|
41
|
+
readonly target: Schema.String;
|
|
42
|
+
readonly topic: Schema.optionalKey<Schema.String>;
|
|
43
|
+
readonly hold: Schema.optionalKey<Schema.String>;
|
|
44
|
+
}>>;
|
|
45
|
+
readonly failure: Schema.optionalKey<Schema.Struct<{
|
|
46
|
+
readonly reason: Schema.Literals<readonly ["entry-failed", "reported", "cancelled", "refused", "host-error", "work-failed", "timeout", "report-timeout", "prepare-rejected"]>;
|
|
47
|
+
readonly repo: Schema.optionalKey<Schema.String>;
|
|
48
|
+
readonly entry: Schema.optionalKey<Schema.String>;
|
|
49
|
+
readonly candidate: Schema.optionalKey<Schema.String>;
|
|
50
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
51
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
52
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
53
|
+
readonly hint: Schema.String;
|
|
54
|
+
}>>;
|
|
53
55
|
}>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
|
|
54
56
|
readonly code: "ALREADY_EXISTS";
|
|
55
57
|
readonly message: string;
|
|
@@ -334,7 +336,7 @@ declare const TopicsApiGroup_base: HttpApiGroup.HttpApiGroup<"topics", HttpApiEn
|
|
|
334
336
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
335
337
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
336
338
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
337
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
339
|
+
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>]>>;
|
|
338
340
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
339
341
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
340
342
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -426,7 +428,7 @@ declare const TopicsApiGroup_base: HttpApiGroup.HttpApiGroup<"topics", HttpApiEn
|
|
|
426
428
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
427
429
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
428
430
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
429
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
431
|
+
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>]>>;
|
|
430
432
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
431
433
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
432
434
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -449,16 +451,9 @@ declare const TopicsApiGroup_base: HttpApiGroup.HttpApiGroup<"topics", HttpApiEn
|
|
|
449
451
|
}>, {
|
|
450
452
|
"ref0-code": Schema.String;
|
|
451
453
|
'www-authenticate': Schema.String;
|
|
452
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
readonly target: Schema.String;
|
|
456
|
-
readonly source: Schema.String;
|
|
457
|
-
readonly head: Schema.String;
|
|
458
|
-
readonly key: Schema.String;
|
|
459
|
-
readonly repo: Schema.String;
|
|
460
|
-
}>>;
|
|
461
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
454
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/topics/:topic", Schema.toCodecStringTree<Schema.Struct<{
|
|
455
|
+
topic: Schema.String;
|
|
456
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
462
457
|
readonly id: Schema.String;
|
|
463
458
|
readonly key: Schema.String;
|
|
464
459
|
readonly state: Schema.Literals<readonly ["reserving", "checking", "publishing", "failed", "merged", "removed"]>;
|
|
@@ -784,7 +779,7 @@ declare const TopicsApiGroup_base: HttpApiGroup.HttpApiGroup<"topics", HttpApiEn
|
|
|
784
779
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
785
780
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
786
781
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
787
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
782
|
+
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>]>>;
|
|
788
783
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
789
784
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
790
785
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -876,7 +871,7 @@ declare const TopicsApiGroup_base: HttpApiGroup.HttpApiGroup<"topics", HttpApiEn
|
|
|
876
871
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
877
872
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
878
873
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
879
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
874
|
+
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>]>>;
|
|
880
875
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
881
876
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
882
877
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -899,50 +894,55 @@ declare const TopicsApiGroup_base: HttpApiGroup.HttpApiGroup<"topics", HttpApiEn
|
|
|
899
894
|
}>, {
|
|
900
895
|
"ref0-code": Schema.String;
|
|
901
896
|
'www-authenticate': Schema.String;
|
|
902
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
readonly
|
|
908
|
-
|
|
909
|
-
readonly repo: Schema.String;
|
|
910
|
-
readonly target: Schema.String;
|
|
911
|
-
readonly entry: Schema.String;
|
|
912
|
-
readonly key: Schema.String;
|
|
913
|
-
readonly source: Schema.String;
|
|
914
|
-
readonly head: Schema.String;
|
|
915
|
-
}>>;
|
|
916
|
-
readonly pending: Schema.$Array<Schema.Struct<{
|
|
917
|
-
readonly repo: Schema.String;
|
|
918
|
-
readonly target: Schema.String;
|
|
919
|
-
readonly source: Schema.String;
|
|
920
|
-
readonly head: Schema.String;
|
|
897
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/topics", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
898
|
+
after: Schema.optionalKey<Schema.String>;
|
|
899
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
900
|
+
state: Schema.optionalKey<Schema.Literals<readonly ["reserving", "checking", "publishing", "failed", "merged", "removed"]>>;
|
|
901
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
902
|
+
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
903
|
+
readonly id: Schema.String;
|
|
921
904
|
readonly key: Schema.String;
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
readonly
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
readonly
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
905
|
+
readonly state: Schema.Literals<readonly ["reserving", "checking", "publishing", "failed", "merged", "removed"]>;
|
|
906
|
+
readonly entries: Schema.$Array<Schema.Struct<{
|
|
907
|
+
readonly repo: Schema.String;
|
|
908
|
+
readonly target: Schema.String;
|
|
909
|
+
readonly entry: Schema.String;
|
|
910
|
+
readonly key: Schema.String;
|
|
911
|
+
readonly source: Schema.String;
|
|
912
|
+
readonly head: Schema.String;
|
|
913
|
+
}>>;
|
|
914
|
+
readonly pending: Schema.$Array<Schema.Struct<{
|
|
915
|
+
readonly repo: Schema.String;
|
|
916
|
+
readonly target: Schema.String;
|
|
917
|
+
readonly source: Schema.String;
|
|
918
|
+
readonly head: Schema.String;
|
|
919
|
+
readonly key: Schema.String;
|
|
920
|
+
}>>;
|
|
921
|
+
readonly candidates: Schema.$Array<Schema.Struct<{
|
|
922
|
+
readonly repo: Schema.String;
|
|
923
|
+
readonly target: Schema.String;
|
|
924
|
+
readonly candidate: Schema.String;
|
|
925
|
+
readonly ref: Schema.String;
|
|
926
|
+
readonly commit: Schema.String;
|
|
927
|
+
}>>;
|
|
928
|
+
readonly waitingOn: Schema.optionalKey<Schema.Struct<{
|
|
929
|
+
readonly repo: Schema.String;
|
|
930
|
+
readonly target: Schema.String;
|
|
931
|
+
readonly topic: Schema.optionalKey<Schema.String>;
|
|
932
|
+
readonly hold: Schema.optionalKey<Schema.String>;
|
|
933
|
+
}>>;
|
|
934
|
+
readonly failure: Schema.optionalKey<Schema.Struct<{
|
|
935
|
+
readonly reason: Schema.Literals<readonly ["entry-failed", "reported", "cancelled", "refused", "host-error", "work-failed", "timeout", "report-timeout", "prepare-rejected"]>;
|
|
936
|
+
readonly repo: Schema.optionalKey<Schema.String>;
|
|
937
|
+
readonly entry: Schema.optionalKey<Schema.String>;
|
|
938
|
+
readonly candidate: Schema.optionalKey<Schema.String>;
|
|
939
|
+
readonly summary: Schema.optionalKey<Schema.String>;
|
|
940
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
941
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
942
|
+
readonly hint: Schema.String;
|
|
943
|
+
}>>;
|
|
944
|
+
}>>>;
|
|
945
|
+
readonly next: Schema.optionalKey<Schema.String>;
|
|
946
946
|
}>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
|
|
947
947
|
readonly code: "ALREADY_EXISTS";
|
|
948
948
|
readonly message: string;
|
|
@@ -1227,7 +1227,7 @@ declare const TopicsApiGroup_base: HttpApiGroup.HttpApiGroup<"topics", HttpApiEn
|
|
|
1227
1227
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
1228
1228
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1229
1229
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1230
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
1230
|
+
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>]>>;
|
|
1231
1231
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
1232
1232
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
1233
1233
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -1319,7 +1319,7 @@ declare const TopicsApiGroup_base: HttpApiGroup.HttpApiGroup<"topics", HttpApiEn
|
|
|
1319
1319
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
1320
1320
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1321
1321
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1322
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
1322
|
+
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>]>>;
|
|
1323
1323
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
1324
1324
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
1325
1325
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -1670,7 +1670,7 @@ declare const TopicsApiGroup_base: HttpApiGroup.HttpApiGroup<"topics", HttpApiEn
|
|
|
1670
1670
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
1671
1671
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1672
1672
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1673
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
1673
|
+
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>]>>;
|
|
1674
1674
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
1675
1675
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
1676
1676
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -1762,7 +1762,7 @@ declare const TopicsApiGroup_base: HttpApiGroup.HttpApiGroup<"topics", HttpApiEn
|
|
|
1762
1762
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
1763
1763
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1764
1764
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1765
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
1765
|
+
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>]>>;
|
|
1766
1766
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
1767
1767
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
1768
1768
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -2079,7 +2079,7 @@ declare const TopicsApiGroup_base: HttpApiGroup.HttpApiGroup<"topics", HttpApiEn
|
|
|
2079
2079
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
2080
2080
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
2081
2081
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
2082
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
2082
|
+
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>]>>;
|
|
2083
2083
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
2084
2084
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
2085
2085
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -2171,7 +2171,7 @@ declare const TopicsApiGroup_base: HttpApiGroup.HttpApiGroup<"topics", HttpApiEn
|
|
|
2171
2171
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
2172
2172
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
2173
2173
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
2174
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
2174
|
+
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>]>>;
|
|
2175
2175
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
2176
2176
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
2177
2177
|
most: Schema.optionalKey<Schema.Number>;
|
package/dist/rest/trees.d.mts
CHANGED
|
@@ -299,7 +299,7 @@ declare const TreesApiGroup_base: HttpApiGroup.HttpApiGroup<"trees", HttpApiEndp
|
|
|
299
299
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
300
300
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
301
301
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
302
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
302
|
+
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>]>>;
|
|
303
303
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
304
304
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
305
305
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -391,7 +391,7 @@ declare const TreesApiGroup_base: HttpApiGroup.HttpApiGroup<"trees", HttpApiEndp
|
|
|
391
391
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
392
392
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
393
393
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
394
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
394
|
+
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>]>>;
|
|
395
395
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
396
396
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
397
397
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -414,28 +414,41 @@ declare const TreesApiGroup_base: HttpApiGroup.HttpApiGroup<"trees", HttpApiEndp
|
|
|
414
414
|
}>, {
|
|
415
415
|
"ref0-code": Schema.String;
|
|
416
416
|
'www-authenticate': Schema.String;
|
|
417
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
417
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"diff", "POST", "/repos/:repo/-/trees/diff", Schema.toCodecStringTree<Schema.Struct<{
|
|
418
418
|
repo: Schema.String;
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
}
|
|
419
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
420
|
+
readonly base: Schema.String;
|
|
421
|
+
readonly head: Schema.String;
|
|
422
|
+
readonly renames: Schema.optionalKey<Schema.Boolean>;
|
|
423
|
+
readonly limits: Schema.optionalKey<Schema.Struct<{
|
|
424
|
+
readonly objects: Schema.optionalKey<Schema.Int>;
|
|
425
|
+
readonly bytes: Schema.optionalKey<Schema.Int>;
|
|
426
|
+
readonly entries: Schema.optionalKey<Schema.Int>;
|
|
427
|
+
readonly milliseconds: Schema.optionalKey<Schema.Int>;
|
|
428
|
+
}>>;
|
|
429
|
+
readonly page: Schema.optionalKey<Schema.Struct<{
|
|
430
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
431
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
432
|
+
}>>;
|
|
433
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
429
434
|
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
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>;
|
|
437
449
|
}>>>;
|
|
438
450
|
readonly next: Schema.optionalKey<Schema.String>;
|
|
451
|
+
readonly renamesSkipped: Schema.optionalKey<Schema.Literals<readonly ["rename-limit", "memory-limit"]>>;
|
|
439
452
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
440
453
|
readonly code: "ALREADY_EXISTS";
|
|
441
454
|
readonly message: string;
|
|
@@ -720,7 +733,7 @@ declare const TreesApiGroup_base: HttpApiGroup.HttpApiGroup<"trees", HttpApiEndp
|
|
|
720
733
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
721
734
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
722
735
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
723
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
736
|
+
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>]>>;
|
|
724
737
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
725
738
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
726
739
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -812,7 +825,7 @@ declare const TreesApiGroup_base: HttpApiGroup.HttpApiGroup<"trees", HttpApiEndp
|
|
|
812
825
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
813
826
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
814
827
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
815
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
828
|
+
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>]>>;
|
|
816
829
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
817
830
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
818
831
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -835,41 +848,28 @@ declare const TreesApiGroup_base: HttpApiGroup.HttpApiGroup<"trees", HttpApiEndp
|
|
|
835
848
|
}>, {
|
|
836
849
|
"ref0-code": Schema.String;
|
|
837
850
|
'www-authenticate': Schema.String;
|
|
838
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
851
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/repos/:repo/-/trees/:oid", Schema.toCodecStringTree<Schema.Struct<{
|
|
839
852
|
repo: Schema.String;
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
readonly page: Schema.optionalKey<Schema.Struct<{
|
|
851
|
-
readonly after: Schema.optionalKey<Schema.String>;
|
|
852
|
-
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
853
|
-
}>>;
|
|
854
|
-
}>>, 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<{
|
|
855
863
|
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
856
|
-
|
|
857
|
-
path: Schema.String;
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
}>>;
|
|
864
|
-
new: Schema.optionalKey<Schema.Struct<{
|
|
865
|
-
readonly mode: Schema.String;
|
|
866
|
-
readonly oid: Schema.String;
|
|
867
|
-
}>>;
|
|
868
|
-
pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
869
|
-
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>;
|
|
870
871
|
}>>>;
|
|
871
872
|
readonly next: Schema.optionalKey<Schema.String>;
|
|
872
|
-
readonly renamesSkipped: Schema.optionalKey<Schema.Literals<readonly ["rename-limit", "memory-limit"]>>;
|
|
873
873
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
874
874
|
readonly code: "ALREADY_EXISTS";
|
|
875
875
|
readonly message: string;
|
|
@@ -1154,7 +1154,7 @@ declare const TreesApiGroup_base: HttpApiGroup.HttpApiGroup<"trees", HttpApiEndp
|
|
|
1154
1154
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
1155
1155
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1156
1156
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1157
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
1157
|
+
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>]>>;
|
|
1158
1158
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
1159
1159
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
1160
1160
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -1246,7 +1246,7 @@ declare const TreesApiGroup_base: HttpApiGroup.HttpApiGroup<"trees", HttpApiEndp
|
|
|
1246
1246
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
1247
1247
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1248
1248
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1249
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
1249
|
+
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>]>>;
|
|
1250
1250
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
1251
1251
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
1252
1252
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -1569,7 +1569,7 @@ declare const TreesApiGroup_base: HttpApiGroup.HttpApiGroup<"trees", HttpApiEndp
|
|
|
1569
1569
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
1570
1570
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1571
1571
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1572
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
1572
|
+
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>]>>;
|
|
1573
1573
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
1574
1574
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
1575
1575
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -1661,7 +1661,7 @@ declare const TreesApiGroup_base: HttpApiGroup.HttpApiGroup<"trees", HttpApiEndp
|
|
|
1661
1661
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
1662
1662
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1663
1663
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1664
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
1664
|
+
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>]>>;
|
|
1665
1665
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
1666
1666
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
1667
1667
|
most: Schema.optionalKey<Schema.Number>;
|
package/dist/rest/wire.d.mts
CHANGED
|
@@ -93,6 +93,7 @@ export declare const RepoStreamEvent: Schema.Union<readonly [Schema.Union<readon
|
|
|
93
93
|
readonly internalId: Schema.TemplateLiteral<readonly ["r_", Schema.String]>;
|
|
94
94
|
readonly token: Schema.optionalKey<Schema.String>;
|
|
95
95
|
readonly type: Schema.Literal<"ref.updated">;
|
|
96
|
+
readonly kind: Schema.Literals<readonly ["create", "fast-forward", "force", "delete"]>;
|
|
96
97
|
readonly push: Schema.Struct<{
|
|
97
98
|
readonly id: Schema.String;
|
|
98
99
|
readonly branches: Schema.Int;
|
|
@@ -102,6 +103,7 @@ export declare const RepoStreamEvent: Schema.Union<readonly [Schema.Union<readon
|
|
|
102
103
|
readonly at: Schema.Int;
|
|
103
104
|
readonly of: Schema.Int;
|
|
104
105
|
}>>;
|
|
106
|
+
readonly options: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
105
107
|
}>;
|
|
106
108
|
readonly filesAllowed: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
107
109
|
readonly bypassed: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
package/dist/rest/wire.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Oid } from "../contracts/ids.mjs";
|
|
2
|
-
import { ActorId, NamedActor } from "../contracts/actors.mjs";
|
|
3
|
-
import { Moment } from "../contracts/repos.mjs";
|
|
4
2
|
import { DiffListing, Listing, Page } from "../contracts/engine.mjs";
|
|
3
|
+
import { Moment } from "../contracts/repos.mjs";
|
|
4
|
+
import { ActorId, NamedActor } from "../contracts/actors.mjs";
|
|
5
5
|
import { QueueEvent, RepoEvent, RepoTokenEvent } from "../contracts/events.mjs";
|
|
6
6
|
import { ReadLimits as ReadLimits$1 } from "../contracts/object-values.mjs";
|
|
7
7
|
import * as Schema from "effect/Schema";
|