@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/forks.d.mts
CHANGED
|
@@ -1,43 +1,41 @@
|
|
|
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 ForksApiGroup_base: HttpApiGroup.HttpApiGroup<"forks", HttpApiEndpoint.HttpApiEndpoint<"
|
|
4
|
+
declare const ForksApiGroup_base: HttpApiGroup.HttpApiGroup<"forks", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/repos/:repo/-/forks", Schema.toCodecStringTree<Schema.Struct<{
|
|
5
5
|
repo: Schema.String;
|
|
6
|
-
}>>, Schema.
|
|
7
|
-
readonly
|
|
8
|
-
readonly
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}>>>;
|
|
40
|
-
readonly next: Schema.optionalKey<Schema.String>;
|
|
6
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
7
|
+
readonly holder: Schema.String;
|
|
8
|
+
readonly key: Schema.optionalKey<Schema.String>;
|
|
9
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
10
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
11
|
+
readonly name: Schema.String;
|
|
12
|
+
readonly defaultBranch: Schema.optionalKey<Schema.String>;
|
|
13
|
+
readonly public: Schema.Boolean;
|
|
14
|
+
readonly upstream: Schema.optionalKey<Schema.String>;
|
|
15
|
+
readonly stats: Schema.Struct<{
|
|
16
|
+
readonly repo: Schema.String;
|
|
17
|
+
readonly refs: Schema.Number;
|
|
18
|
+
readonly packs: Schema.Number;
|
|
19
|
+
readonly packBytes: Schema.Number;
|
|
20
|
+
readonly ownBytes: Schema.Number;
|
|
21
|
+
readonly looseObjects: Schema.Number;
|
|
22
|
+
readonly looseBytes: Schema.Number;
|
|
23
|
+
readonly leavingBytes: Schema.Number;
|
|
24
|
+
readonly pushedAt: Schema.optionalKey<Schema.Number>;
|
|
25
|
+
readonly maintainedAt: Schema.optionalKey<Schema.Number>;
|
|
26
|
+
}>;
|
|
27
|
+
readonly work: Schema.Struct<{
|
|
28
|
+
readonly waiting: Schema.Number;
|
|
29
|
+
readonly oldestDue: Schema.optionalKey<Schema.Number>;
|
|
30
|
+
readonly failed: Schema.Number;
|
|
31
|
+
readonly oldestFailed: Schema.optionalKey<Schema.Number>;
|
|
32
|
+
readonly index: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
33
|
+
readonly state: Schema.Literal<"refused">;
|
|
34
|
+
readonly retryAt: Schema.Number;
|
|
35
|
+
}>, Schema.Struct<{
|
|
36
|
+
readonly state: Schema.Literal<"too-large">;
|
|
37
|
+
}>]>>;
|
|
38
|
+
}>;
|
|
41
39
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
42
40
|
readonly code: "ALREADY_EXISTS";
|
|
43
41
|
readonly message: string;
|
|
@@ -322,7 +320,7 @@ declare const ForksApiGroup_base: HttpApiGroup.HttpApiGroup<"forks", HttpApiEndp
|
|
|
322
320
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
323
321
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
324
322
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
325
|
-
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>]>>;
|
|
323
|
+
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>]>>;
|
|
326
324
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
327
325
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
328
326
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -414,7 +412,7 @@ declare const ForksApiGroup_base: HttpApiGroup.HttpApiGroup<"forks", HttpApiEndp
|
|
|
414
412
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
415
413
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
416
414
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
417
|
-
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>]>>;
|
|
415
|
+
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>]>>;
|
|
418
416
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
419
417
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
420
418
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -437,41 +435,15 @@ declare const ForksApiGroup_base: HttpApiGroup.HttpApiGroup<"forks", HttpApiEndp
|
|
|
437
435
|
}>, {
|
|
438
436
|
"ref0-code": Schema.String;
|
|
439
437
|
'www-authenticate': Schema.String;
|
|
440
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
438
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"fetch", "POST", "/repos/:repo/-/forks/fetch", Schema.toCodecStringTree<Schema.Struct<{
|
|
441
439
|
repo: Schema.String;
|
|
442
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
443
|
-
readonly
|
|
444
|
-
readonly
|
|
445
|
-
readonly
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
readonly public: Schema.Boolean;
|
|
450
|
-
readonly upstream: Schema.optionalKey<Schema.String>;
|
|
451
|
-
readonly stats: Schema.Struct<{
|
|
452
|
-
readonly repo: Schema.String;
|
|
453
|
-
readonly refs: Schema.Number;
|
|
454
|
-
readonly packs: Schema.Number;
|
|
455
|
-
readonly packBytes: Schema.Number;
|
|
456
|
-
readonly ownBytes: Schema.Number;
|
|
457
|
-
readonly looseObjects: Schema.Number;
|
|
458
|
-
readonly looseBytes: Schema.Number;
|
|
459
|
-
readonly leavingBytes: Schema.Number;
|
|
460
|
-
readonly pushedAt: Schema.optionalKey<Schema.Number>;
|
|
461
|
-
readonly maintainedAt: Schema.optionalKey<Schema.Number>;
|
|
462
|
-
}>;
|
|
463
|
-
readonly work: Schema.Struct<{
|
|
464
|
-
readonly waiting: Schema.Number;
|
|
465
|
-
readonly oldestDue: Schema.optionalKey<Schema.Number>;
|
|
466
|
-
readonly failed: Schema.Number;
|
|
467
|
-
readonly oldestFailed: Schema.optionalKey<Schema.Number>;
|
|
468
|
-
readonly index: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
469
|
-
readonly state: Schema.Literal<"refused">;
|
|
470
|
-
readonly retryAt: Schema.Number;
|
|
471
|
-
}>, Schema.Struct<{
|
|
472
|
-
readonly state: Schema.Literal<"too-large">;
|
|
473
|
-
}>]>>;
|
|
474
|
-
}>;
|
|
440
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
441
|
+
readonly source: Schema.String;
|
|
442
|
+
readonly head: Schema.optionalKey<Schema.String>;
|
|
443
|
+
readonly tips: Schema.$Array<Schema.Struct<{
|
|
444
|
+
readonly name: Schema.String;
|
|
445
|
+
readonly oid: Schema.String;
|
|
446
|
+
}>>;
|
|
475
447
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
476
448
|
readonly code: "ALREADY_EXISTS";
|
|
477
449
|
readonly message: string;
|
|
@@ -756,7 +728,7 @@ declare const ForksApiGroup_base: HttpApiGroup.HttpApiGroup<"forks", HttpApiEndp
|
|
|
756
728
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
757
729
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
758
730
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
759
|
-
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>]>>;
|
|
731
|
+
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>]>>;
|
|
760
732
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
761
733
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
762
734
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -848,7 +820,7 @@ declare const ForksApiGroup_base: HttpApiGroup.HttpApiGroup<"forks", HttpApiEndp
|
|
|
848
820
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
849
821
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
850
822
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
851
|
-
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>]>>;
|
|
823
|
+
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>]>>;
|
|
852
824
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
853
825
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
854
826
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -1187,7 +1159,7 @@ declare const ForksApiGroup_base: HttpApiGroup.HttpApiGroup<"forks", HttpApiEndp
|
|
|
1187
1159
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
1188
1160
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1189
1161
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1190
|
-
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>]>>;
|
|
1162
|
+
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>]>>;
|
|
1191
1163
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
1192
1164
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
1193
1165
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -1279,7 +1251,7 @@ declare const ForksApiGroup_base: HttpApiGroup.HttpApiGroup<"forks", HttpApiEndp
|
|
|
1279
1251
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
1280
1252
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1281
1253
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1282
|
-
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>]>>;
|
|
1254
|
+
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>]>>;
|
|
1283
1255
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
1284
1256
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
1285
1257
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -1302,15 +1274,43 @@ declare const ForksApiGroup_base: HttpApiGroup.HttpApiGroup<"forks", HttpApiEndp
|
|
|
1302
1274
|
}>, {
|
|
1303
1275
|
"ref0-code": Schema.String;
|
|
1304
1276
|
'www-authenticate': Schema.String;
|
|
1305
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1277
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/repos/:repo/-/forks", Schema.toCodecStringTree<Schema.Struct<{
|
|
1306
1278
|
repo: Schema.String;
|
|
1307
|
-
}>>,
|
|
1308
|
-
readonly
|
|
1309
|
-
readonly
|
|
1310
|
-
|
|
1279
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
1280
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
1281
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
1282
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1283
|
+
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
1311
1284
|
readonly name: Schema.String;
|
|
1312
|
-
readonly
|
|
1313
|
-
|
|
1285
|
+
readonly defaultBranch: Schema.optionalKey<Schema.String>;
|
|
1286
|
+
readonly public: Schema.Boolean;
|
|
1287
|
+
readonly upstream: Schema.optionalKey<Schema.String>;
|
|
1288
|
+
readonly stats: Schema.Struct<{
|
|
1289
|
+
readonly repo: Schema.String;
|
|
1290
|
+
readonly refs: Schema.Number;
|
|
1291
|
+
readonly packs: Schema.Number;
|
|
1292
|
+
readonly packBytes: Schema.Number;
|
|
1293
|
+
readonly ownBytes: Schema.Number;
|
|
1294
|
+
readonly looseObjects: Schema.Number;
|
|
1295
|
+
readonly looseBytes: Schema.Number;
|
|
1296
|
+
readonly leavingBytes: Schema.Number;
|
|
1297
|
+
readonly pushedAt: Schema.optionalKey<Schema.Number>;
|
|
1298
|
+
readonly maintainedAt: Schema.optionalKey<Schema.Number>;
|
|
1299
|
+
}>;
|
|
1300
|
+
readonly work: Schema.Struct<{
|
|
1301
|
+
readonly waiting: Schema.Number;
|
|
1302
|
+
readonly oldestDue: Schema.optionalKey<Schema.Number>;
|
|
1303
|
+
readonly failed: Schema.Number;
|
|
1304
|
+
readonly oldestFailed: Schema.optionalKey<Schema.Number>;
|
|
1305
|
+
readonly index: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1306
|
+
readonly state: Schema.Literal<"refused">;
|
|
1307
|
+
readonly retryAt: Schema.Number;
|
|
1308
|
+
}>, Schema.Struct<{
|
|
1309
|
+
readonly state: Schema.Literal<"too-large">;
|
|
1310
|
+
}>]>>;
|
|
1311
|
+
}>;
|
|
1312
|
+
}>>>;
|
|
1313
|
+
readonly next: Schema.optionalKey<Schema.String>;
|
|
1314
1314
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
1315
1315
|
readonly code: "ALREADY_EXISTS";
|
|
1316
1316
|
readonly message: string;
|
|
@@ -1595,7 +1595,7 @@ declare const ForksApiGroup_base: HttpApiGroup.HttpApiGroup<"forks", HttpApiEndp
|
|
|
1595
1595
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
1596
1596
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1597
1597
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1598
|
-
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>]>>;
|
|
1598
|
+
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>]>>;
|
|
1599
1599
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
1600
1600
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
1601
1601
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -1687,7 +1687,7 @@ declare const ForksApiGroup_base: HttpApiGroup.HttpApiGroup<"forks", HttpApiEndp
|
|
|
1687
1687
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
1688
1688
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
1689
1689
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
1690
|
-
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>]>>;
|
|
1690
|
+
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>]>>;
|
|
1691
1691
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
1692
1692
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
1693
1693
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -2027,7 +2027,7 @@ declare const ForksApiGroup_base: HttpApiGroup.HttpApiGroup<"forks", HttpApiEndp
|
|
|
2027
2027
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
2028
2028
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
2029
2029
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
2030
|
-
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>]>>;
|
|
2030
|
+
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>]>>;
|
|
2031
2031
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
2032
2032
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
2033
2033
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -2119,7 +2119,7 @@ declare const ForksApiGroup_base: HttpApiGroup.HttpApiGroup<"forks", HttpApiEndp
|
|
|
2119
2119
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
2120
2120
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
2121
2121
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
2122
|
-
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>]>>;
|
|
2122
|
+
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>]>>;
|
|
2123
2123
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
2124
2124
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
2125
2125
|
most: Schema.optionalKey<Schema.Number>;
|
package/dist/rest/handler.mjs
CHANGED
|
@@ -33,7 +33,7 @@ const failed = (cause) => {
|
|
|
33
33
|
};
|
|
34
34
|
/** `door`'s refusal now, thrown when it's the closed one: a failed build answers as JSON. */
|
|
35
35
|
const askClosed = (door) => {
|
|
36
|
-
const refused = door
|
|
36
|
+
const refused = door?.refusal();
|
|
37
37
|
if (refused !== void 0 && isServerClosed(refused)) throw refused;
|
|
38
38
|
};
|
|
39
39
|
const notFound = () => jsonError(gitError("NOT_FOUND", "Nothing is served at this URL"));
|
|
@@ -59,8 +59,8 @@ const refused = (cause) => Option.match(Cause.findErrorOption(cause), {
|
|
|
59
59
|
onNone: () => false,
|
|
60
60
|
onSome: (error) => error.code === "UNAUTHENTICATED"
|
|
61
61
|
});
|
|
62
|
-
/** REST over
|
|
63
|
-
const
|
|
62
|
+
/** REST's app over its parts: a URL REST owns answered, `undefined` for any other. */
|
|
63
|
+
const restApp = (parts) => {
|
|
64
64
|
const base = normalBase(parts.basePath);
|
|
65
65
|
const app = HttpApiBuilder.layer(GitRestApi).pipe(Layer.provide(GitRestHandlers), Layer.provide([HttpServer.layerServices, Layer.succeedContext(parts.services)]));
|
|
66
66
|
const web = HttpRouter.toWebHandler(app, { disableLogger: true });
|
|
@@ -96,11 +96,19 @@ const serveRest = (parts) => {
|
|
|
96
96
|
askClosed(parts.door);
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
|
+
return {
|
|
100
|
+
owned,
|
|
101
|
+
dispose: web.dispose
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
/** REST over a server's parts: the handler `createRestHandler` returns. */
|
|
105
|
+
const serveRest = (parts) => {
|
|
106
|
+
const { owned, dispose } = restApp(parts);
|
|
99
107
|
const route = async (request) => await owned(request) ?? await parts.route(request);
|
|
100
108
|
return {
|
|
101
109
|
fetch: async (request) => await route(request) ?? notFound(),
|
|
102
110
|
route,
|
|
103
|
-
dispose
|
|
111
|
+
dispose
|
|
104
112
|
};
|
|
105
113
|
};
|
|
106
114
|
/**
|
|
@@ -134,4 +142,4 @@ const createRestHandler = (git) => {
|
|
|
134
142
|
route
|
|
135
143
|
};
|
|
136
144
|
};
|
|
137
|
-
export { createRestHandler, serveRest };
|
|
145
|
+
export { createRestHandler, notFound, restApp, serveRest };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Git } from "../contracts/git.mjs";
|
|
2
|
+
import { GitError } from "../contracts/result.mjs";
|
|
3
|
+
import { ServerSeam } from "../core/seam.mjs";
|
|
4
|
+
import * as Layer from "effect/Layer";
|
|
5
|
+
declare namespace layer_d_exports {
|
|
6
|
+
export { layer };
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Git's REST API as a feature of `Git.layer`: it claims `rest`, and answers its URLs in the `post`
|
|
10
|
+
* band, after every other claim's route and Git's own, over the calls of the server the build made.
|
|
11
|
+
* Without it, no REST URL is served. A server with no `tokens` answers its tokens URLs `404`.
|
|
12
|
+
*/
|
|
13
|
+
export declare const layer: () => Layer.Layer<never, GitError, Git | ServerSeam>;
|
|
14
|
+
export { layer_d_exports };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import { claim } from "../contracts/git.mjs";
|
|
3
|
+
import { ServerSeam } from "../core/seam.mjs";
|
|
4
|
+
import { GitRestServices } from "./caller.mjs";
|
|
5
|
+
import { notFound, restApp } from "./handler.mjs";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Context from "effect/Context";
|
|
8
|
+
import * as Layer from "effect/Layer";
|
|
9
|
+
// src/rest/layer.ts
|
|
10
|
+
var layer_exports = /* @__PURE__ */ __exportAll({ layer: () => layer });
|
|
11
|
+
/** REST's URLs under `<base>`, as `restPath` owns them: each a route of the `rest` claim. */
|
|
12
|
+
const restRoots = [
|
|
13
|
+
"/me",
|
|
14
|
+
"/repos/*",
|
|
15
|
+
"/tokens/*",
|
|
16
|
+
"/queue/*",
|
|
17
|
+
"/topics/*"
|
|
18
|
+
];
|
|
19
|
+
/**
|
|
20
|
+
* Git's REST API as a feature of `Git.layer`: it claims `rest`, and answers its URLs in the `post`
|
|
21
|
+
* band, after every other claim's route and Git's own, over the calls of the server the build made.
|
|
22
|
+
* Without it, no REST URL is served. A server with no `tokens` answers its tokens URLs `404`.
|
|
23
|
+
*/
|
|
24
|
+
const layer = () => Layer.effectDiscard(Effect.gen(function* () {
|
|
25
|
+
const built = yield* (yield* ServerSeam).parts;
|
|
26
|
+
const rest = yield* claim({ name: "rest" });
|
|
27
|
+
const { basePath, identify, callsFor, authorize, listen, renamedTo } = built;
|
|
28
|
+
const services = Context.make(GitRestServices, {
|
|
29
|
+
basePath,
|
|
30
|
+
identify,
|
|
31
|
+
callsFor,
|
|
32
|
+
authorize,
|
|
33
|
+
listen
|
|
34
|
+
});
|
|
35
|
+
const renamedFor = (request, repo) => Effect.flatMap(identify(request), (caller) => renamedTo(caller, repo));
|
|
36
|
+
const { owned } = yield* Effect.acquireRelease(Effect.sync(() => restApp({
|
|
37
|
+
basePath,
|
|
38
|
+
services,
|
|
39
|
+
renamedFor,
|
|
40
|
+
requestMost: Effect.succeed(built.requestMost)
|
|
41
|
+
})), (app) => Effect.promise(app.dispose));
|
|
42
|
+
const handle = ({ request }) => Effect.promise(async () => await owned(request) ?? notFound());
|
|
43
|
+
for (const path of restRoots) yield* rest.addRoute({
|
|
44
|
+
order: "post",
|
|
45
|
+
handler: {
|
|
46
|
+
method: "*",
|
|
47
|
+
path,
|
|
48
|
+
handle
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}));
|
|
52
|
+
export { layer, layer_exports };
|
package/dist/rest/me.d.mts
CHANGED
|
@@ -317,7 +317,7 @@ declare const MeApiGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.H
|
|
|
317
317
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
318
318
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
319
319
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
320
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
320
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
321
321
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
322
322
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
323
323
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -409,7 +409,7 @@ declare const MeApiGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.H
|
|
|
409
409
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
410
410
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
411
411
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
412
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
412
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
413
413
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
414
414
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
415
415
|
most: Schema.optionalKey<Schema.Number>;
|
package/dist/rest/merges.d.mts
CHANGED
|
@@ -348,7 +348,7 @@ declare const MergesApiGroup_base: HttpApiGroup.HttpApiGroup<"merges", HttpApiEn
|
|
|
348
348
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
349
349
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
350
350
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
351
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
351
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
352
352
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
353
353
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
354
354
|
most: Schema.optionalKey<Schema.Number>;
|
|
@@ -440,7 +440,7 @@ declare const MergesApiGroup_base: HttpApiGroup.HttpApiGroup<"merges", HttpApiEn
|
|
|
440
440
|
readonly message: Schema.decodeTo<Schema.String, Schema.String, never, never>;
|
|
441
441
|
readonly hint: Schema.optionalKey<Schema.decodeTo<Schema.String, Schema.String, never, never>>;
|
|
442
442
|
readonly context: Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
443
|
-
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
443
|
+
reason: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["too-large", "rate-limited", "walk-limit", "diff-limit", "object-too-large", "delta-too-large", "response-too-large", "too-many-pointers", "fetch-plan-too-large", "too-many-store-calls", "call-budget", "events-undelivered", "events-waiting", "name-churn", "queue-full", "queue-targets-full", "too-many-gitmodules-and-gitattributes", "prune-walk-too-large"]>, Schema.decodeTo<Schema.String, Schema.String, never, never>]>>;
|
|
444
444
|
indexBytes: Schema.optionalKey<Schema.Number>;
|
|
445
445
|
pushBytes: Schema.optionalKey<Schema.Number>;
|
|
446
446
|
most: Schema.optionalKey<Schema.Number>;
|