@ref0/git 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/access/private-refs.mjs +0 -2
- package/dist/auth/authorize.mjs +31 -24
- package/dist/auth/bridge.mjs +8 -8
- package/dist/auth/fences.d.mts +0 -1
- package/dist/auth/fences.mjs +1 -1
- package/dist/auth/grants.d.mts +0 -1
- package/dist/auth/grants.mjs +2 -2
- package/dist/auth/host-function.d.mts +1 -7
- package/dist/auth/host-function.mjs +38 -38
- package/dist/auth/identify.d.mts +0 -1
- package/dist/auth/identify.mjs +1 -1
- package/dist/auth/policy.d.mts +7 -4
- package/dist/auth/policy.mjs +13 -10
- package/dist/auth/token-rows.mjs +2 -5
- package/dist/auth/tokens-layer.d.mts +0 -2
- package/dist/auth/tokens-public.d.mts +3 -3
- package/dist/auth/tokens-public.mjs +4 -2
- package/dist/auth/tokens.d.mts +6 -1
- package/dist/auth/tokens.mjs +7 -1
- package/dist/client/client.d.mts +22 -15
- package/dist/client/client.mjs +31 -27
- package/dist/client/git-http.mjs +22 -5
- package/dist/client/local.mjs +1 -1
- package/dist/client/namespace.d.mts +2 -0
- package/dist/client/push-upload.d.mts +1 -0
- package/dist/client/push-upload.mjs +169 -2
- package/dist/client/remote-helper.mjs +2 -4
- package/dist/client/remote.mjs +37 -15
- package/dist/client/run-remote-helper.mjs +4 -4
- package/dist/client/transport.mjs +26 -19
- package/dist/contracts/actors.d.mts +57 -28
- package/dist/contracts/actors.mjs +38 -2
- package/dist/contracts/authorize.d.mts +21 -15
- package/dist/contracts/callers.mjs +40 -0
- package/dist/contracts/calls-spent.d.mts +2 -12
- package/dist/contracts/calls-spent.mjs +4 -5
- package/dist/contracts/client.d.mts +16 -9
- package/dist/contracts/events.d.mts +82 -14
- package/dist/contracts/events.mjs +35 -9
- package/dist/contracts/files.d.mts +42 -42
- package/dist/contracts/forks.d.mts +0 -24
- package/dist/contracts/git-hooks.d.mts +217 -0
- package/dist/contracts/git-hooks.mjs +3 -1
- package/dist/contracts/git.d.mts +13 -3
- package/dist/contracts/grants.d.mts +46 -27
- package/dist/contracts/lfs.d.mts +17 -4
- package/dist/contracts/merges.d.mts +7 -7
- package/dist/contracts/objects.d.mts +38 -4
- package/dist/contracts/opaque.mjs +19 -1
- package/dist/contracts/operations.d.mts +8 -1
- package/dist/contracts/operations.mjs +209 -0
- package/dist/contracts/queue.d.mts +6 -5
- package/dist/contracts/queue.mjs +9 -20
- package/dist/contracts/remote.d.mts +13 -4
- package/dist/contracts/remote.mjs +3 -3
- package/dist/contracts/repos.d.mts +11 -40
- package/dist/contracts/repos.mjs +11 -10
- package/dist/contracts/result.d.mts +28 -11
- package/dist/contracts/result.mjs +32 -2
- package/dist/contracts/rules.d.mts +706 -46
- package/dist/contracts/rules.mjs +81 -2
- package/dist/contracts/server.d.mts +5 -275
- package/dist/contracts/services.d.mts +0 -3
- package/dist/contracts/services.mjs +1 -3
- package/dist/contracts/signin.d.mts +2 -2
- package/dist/contracts/signin.mjs +4 -5
- package/dist/contracts/sync.d.mts +1 -4
- package/dist/contracts/tokens.d.mts +29 -17
- package/dist/contracts/tokens.mjs +14 -3
- package/dist/contracts/topics.d.mts +38 -11
- package/dist/contracts/topics.mjs +8 -2
- package/dist/core/access.d.mts +0 -2
- package/dist/core/access.mjs +15 -4
- package/dist/core/ancestry.mjs +5 -4
- package/dist/core/events/deliver.mjs +19 -1
- package/dist/core/forks.mjs +30 -11
- package/dist/core/hooks/groups.d.mts +0 -1
- package/dist/core/hooks/groups.mjs +8 -9
- package/dist/core/index-job.mjs +23 -1
- package/dist/core/index-lost.d.mts +11 -0
- package/dist/core/index-lost.mjs +55 -0
- package/dist/core/loose-tally.mjs +46 -0
- package/dist/core/objects/commit-writes.mjs +1 -1
- package/dist/core/objects/commits.mjs +10 -9
- package/dist/core/objects/merges.mjs +1 -1
- package/dist/core/objects/reading.mjs +28 -13
- package/dist/core/objects/trees.mjs +1 -1
- package/dist/core/objects/writing.mjs +1 -0
- package/dist/core/parts.d.mts +7 -0
- package/dist/core/promise.mjs +1 -15
- package/dist/core/publish.mjs +9 -5
- package/dist/core/purge.mjs +30 -12
- package/dist/core/push.mjs +39 -16
- package/dist/core/ref-view.mjs +14 -6
- package/dist/core/repack.mjs +54 -27
- package/dist/core/repo-info.mjs +8 -6
- package/dist/core/repos.mjs +1 -0
- package/dist/core/rules/check.mjs +10 -10
- package/dist/core/rules/context.d.mts +3 -1
- package/dist/core/rules/context.mjs +16 -13
- package/dist/core/rules/fetch.mjs +17 -23
- package/dist/core/tokens.mjs +2 -1
- package/dist/core/view.d.mts +10 -1
- package/dist/core/view.mjs +15 -6
- package/dist/effect.d.mts +3 -6
- package/dist/effect.mjs +3 -6
- package/dist/engine/commits.mjs +23 -50
- package/dist/engine/failures.d.mts +1 -2
- package/dist/engine/failures.mjs +1 -3
- package/dist/engine/merge-base-walk.mjs +57 -142
- package/dist/engine/merge-bases.mjs +9 -7
- package/dist/engine/merge.mjs +20 -17
- package/dist/engine/parts.d.mts +1 -0
- package/dist/engine/parts.mjs +1 -1
- package/dist/engine/walk.mjs +15 -11
- package/dist/extend.d.mts +1 -2
- package/dist/extend.mjs +1 -2
- package/dist/http/core-parts.mjs +18 -10
- package/dist/http/handler.mjs +11 -31
- package/dist/http/parts.d.mts +0 -1
- package/dist/index.d.mts +29 -22
- package/dist/index.mjs +5 -2
- package/dist/lfs/base.d.mts +6 -3
- package/dist/lfs/base.mjs +2 -1
- package/dist/lfs/layer.d.mts +4 -3
- package/dist/lfs/layer.mjs +23 -9
- package/dist/lfs/objects.mjs +93 -41
- package/dist/lfs/pointers.mjs +69 -18
- package/dist/lfs/purge.mjs +6 -2
- package/dist/lfs/rows.mjs +24 -7
- package/dist/lfs/service.d.mts +6 -3
- package/dist/lfs/service.mjs +8 -2
- package/dist/lfs/upkeep.mjs +47 -28
- package/dist/lfs/upload-most.mjs +47 -0
- package/dist/lfs/uploaded.mjs +59 -0
- package/dist/protocol/bytes/sha256-hasher.mjs +51 -0
- package/dist/protocol/bytes/streams.mjs +84 -2
- package/dist/protocol/bytes/text.mjs +6 -1
- package/dist/protocol/diff/read.d.mts +1 -0
- package/dist/protocol/diff/read.mjs +5 -2
- package/dist/protocol/objects/commit.d.mts +7 -0
- package/dist/protocol/objects/commit.mjs +5 -1
- package/dist/protocol/objects/fsck.mjs +6 -3
- package/dist/queue/advance.mjs +77 -18
- package/dist/queue/calls.mjs +4 -14
- package/dist/queue/host.d.mts +4 -0
- package/dist/queue/lanes.mjs +1 -1
- package/dist/queue/layer.mjs +4 -2
- package/dist/queue/limits.mjs +18 -2
- package/dist/queue/rows.mjs +10 -1
- package/dist/queue/schedule.mjs +1 -1
- package/dist/queue/search.mjs +3 -4
- package/dist/queue/trim.mjs +2 -2
- package/dist/rest/client-namespace.d.mts +2 -0
- package/dist/rest/client.d.mts +32 -8
- package/dist/rest/client.mjs +308 -382
- package/dist/rest/commits.d.mts +150 -150
- package/dist/rest/files.d.mts +18 -18
- package/dist/rest/forks.d.mts +77 -89
- package/dist/rest/handlers.mjs +2 -1
- package/dist/rest/listen.d.mts +8 -6
- package/dist/rest/listen.mjs +31 -75
- package/dist/rest/me.d.mts +2 -2
- package/dist/rest/merges.d.mts +7 -7
- package/dist/rest/refs.d.mts +27 -27
- package/dist/rest/repos.d.mts +40 -52
- package/dist/rest/tokens.d.mts +12 -12
- package/dist/rest/topics.d.mts +13 -13
- package/dist/rest/trees.d.mts +66 -66
- package/dist/rest/wire.d.mts +20 -2
- package/dist/rest/work.d.mts +39 -39
- package/dist/rest.d.mts +1 -7
- package/dist/rest.mjs +1 -5
- package/dist/server/git-layer.d.mts +10 -2
- package/dist/server/git-layer.mjs +29 -10
- package/dist/server/joined.d.mts +12 -6
- package/dist/server/joined.mjs +3 -2
- package/dist/server/registry.mjs +11 -5
- package/dist/server/server.d.mts +0 -1
- package/dist/server/server.mjs +42 -49
- package/dist/signin/context.d.mts +0 -1
- package/dist/signin/context.mjs +5 -9
- package/dist/storage/clean-up.mjs +3 -1
- package/dist/storage/fsck.mjs +12 -2
- package/dist/storage/graph-rebuild.mjs +262 -0
- package/dist/storage/index-bitmaps.mjs +16 -10
- package/dist/storage/index-build.mjs +160 -24
- package/dist/storage/index-graph.d.mts +1 -0
- package/dist/storage/index-graph.mjs +29 -5
- package/dist/storage/index-layers.d.mts +1 -0
- package/dist/storage/index-layers.mjs +5 -2
- package/dist/storage/index-reach.mjs +7 -5
- package/dist/storage/index-remap.mjs +5 -5
- package/dist/storage/index-visible.mjs +16 -5
- package/dist/storage/lfs-pointers.d.mts +5 -5
- package/dist/storage/lfs-pointers.mjs +37 -11
- package/dist/storage/links.mjs +3 -3
- package/dist/storage/loose.mjs +4 -1
- package/dist/storage/memory-budget.mjs +1 -1
- package/dist/storage/merge-fence.mjs +81 -19
- package/dist/storage/merge-most.mjs +1 -0
- package/dist/storage/merge-row.mjs +16 -4
- package/dist/storage/merge-stream.mjs +9 -6
- package/dist/storage/object-rows.mjs +17 -1
- package/dist/storage/pack-order.d.mts +1 -0
- package/dist/storage/pack-order.mjs +18 -1
- package/dist/storage/pack-receive.mjs +10 -6
- package/dist/storage/packs.mjs +58 -27
- package/dist/storage/prune-walk.mjs +5 -2
- package/dist/storage/prune.mjs +168 -70
- package/dist/storage/ready.d.mts +1 -1
- package/dist/storage/ready.mjs +12 -3
- package/dist/storage/receive-bounds.mjs +3 -2
- package/dist/storage/receive-state.mjs +1 -1
- package/dist/storage/repack-contained.mjs +22 -14
- package/dist/storage/repack.d.mts +1 -1
- package/dist/storage/repack.mjs +3 -2
- package/dist/storage/unpack.mjs +7 -0
- package/dist/storage/visible.mjs +3 -2
- package/dist/storage/walk.d.mts +1 -0
- package/dist/storage/walk.mjs +9 -5
- package/dist/storage/wants.mjs +17 -11
- package/dist/store/call-count.d.mts +31 -3
- package/dist/store/call-count.mjs +51 -20
- package/dist/store/errors.d.mts +7 -1
- package/dist/store/errors.mjs +7 -1
- package/dist/store/job-try.mjs +3 -1
- package/dist/store/records.mjs +26 -5
- package/dist/store/repo-record.mjs +36 -12
- package/dist/store/scopes.mjs +15 -2
- package/dist/sync/bound.d.mts +1 -1
- package/dist/sync/import.mjs +15 -3
- package/dist/sync/layer.d.mts +5 -1
- package/dist/sync/layer.mjs +11 -9
- package/dist/sync/mirror.mjs +1 -1
- package/dist/sync/step.mjs +15 -15
- package/dist/topics/advance.mjs +11 -10
- package/dist/topics/layer.mjs +1 -1
- package/dist/topics/members.mjs +38 -9
- package/package.json +3 -3
- package/dist/engine/merge-base-walk.d.mts +0 -3
- package/dist/server/routes.d.mts +0 -32
- package/dist/server/routes.mjs +0 -69
- package/dist/sync/bridge.d.mts +0 -6
- package/dist/sync/bridge.mjs +0 -29
package/dist/rest/forks.d.mts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { GitCallerMiddleware, GitRestServices } from "./caller.mjs";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
3
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api";
|
|
4
|
-
declare const 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
|
-
|
|
7
|
-
|
|
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<{
|
|
8
11
|
readonly name: Schema.String;
|
|
9
12
|
readonly defaultBranch: Schema.optionalKey<Schema.String>;
|
|
10
13
|
readonly public: Schema.Boolean;
|
|
@@ -15,9 +18,6 @@ declare const ForksApiGroup_base: HttpApiGroup.HttpApiGroup<"forks", HttpApiEndp
|
|
|
15
18
|
readonly packs: Schema.optionalKey<Schema.Number>;
|
|
16
19
|
readonly packBytes: Schema.optionalKey<Schema.Number>;
|
|
17
20
|
readonly ownBytes: Schema.optionalKey<Schema.Number>;
|
|
18
|
-
readonly looseObjects: Schema.optionalKey<Schema.Number>;
|
|
19
|
-
readonly looseBytes: Schema.optionalKey<Schema.Number>;
|
|
20
|
-
readonly leavingBytes: Schema.optionalKey<Schema.Number>;
|
|
21
21
|
readonly pushedAt: Schema.optionalKey<Schema.Number>;
|
|
22
22
|
readonly maintainedAt: Schema.optionalKey<Schema.Number>;
|
|
23
23
|
}>;
|
|
@@ -432,43 +432,15 @@ declare const ForksApiGroup_base: HttpApiGroup.HttpApiGroup<"forks", HttpApiEndp
|
|
|
432
432
|
}>, {
|
|
433
433
|
"ref0-code": Schema.String;
|
|
434
434
|
'www-authenticate': Schema.String;
|
|
435
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
435
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"fetch", "POST", "/repos/:repo/-/forks/fetch", Schema.toCodecStringTree<Schema.Struct<{
|
|
436
436
|
repo: Schema.String;
|
|
437
|
-
}>>, Schema.
|
|
438
|
-
readonly
|
|
439
|
-
readonly
|
|
440
|
-
|
|
441
|
-
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
437
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
438
|
+
readonly source: Schema.String;
|
|
439
|
+
readonly head: Schema.optionalKey<Schema.String>;
|
|
440
|
+
readonly tips: Schema.$Array<Schema.Struct<{
|
|
442
441
|
readonly name: Schema.String;
|
|
443
|
-
readonly
|
|
444
|
-
|
|
445
|
-
readonly upstream: Schema.optionalKey<Schema.String>;
|
|
446
|
-
readonly stats: Schema.Struct<{
|
|
447
|
-
readonly repo: Schema.String;
|
|
448
|
-
readonly refs: Schema.Number;
|
|
449
|
-
readonly packs: Schema.optionalKey<Schema.Number>;
|
|
450
|
-
readonly packBytes: Schema.optionalKey<Schema.Number>;
|
|
451
|
-
readonly ownBytes: Schema.optionalKey<Schema.Number>;
|
|
452
|
-
readonly looseObjects: Schema.optionalKey<Schema.Number>;
|
|
453
|
-
readonly looseBytes: Schema.optionalKey<Schema.Number>;
|
|
454
|
-
readonly leavingBytes: Schema.optionalKey<Schema.Number>;
|
|
455
|
-
readonly pushedAt: Schema.optionalKey<Schema.Number>;
|
|
456
|
-
readonly maintainedAt: Schema.optionalKey<Schema.Number>;
|
|
457
|
-
}>;
|
|
458
|
-
readonly work: Schema.optionalKey<Schema.Struct<{
|
|
459
|
-
readonly waiting: Schema.Number;
|
|
460
|
-
readonly oldestDue: Schema.optionalKey<Schema.Number>;
|
|
461
|
-
readonly failed: Schema.Number;
|
|
462
|
-
readonly oldestFailed: Schema.optionalKey<Schema.Number>;
|
|
463
|
-
readonly index: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
464
|
-
readonly state: Schema.Literal<"refused">;
|
|
465
|
-
readonly retryAt: Schema.Number;
|
|
466
|
-
}>, Schema.Struct<{
|
|
467
|
-
readonly state: Schema.Literal<"too-large">;
|
|
468
|
-
}>]>>;
|
|
469
|
-
}>>;
|
|
470
|
-
}>>>;
|
|
471
|
-
readonly next: Schema.optionalKey<Schema.String>;
|
|
442
|
+
readonly oid: Schema.String;
|
|
443
|
+
}>>;
|
|
472
444
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
473
445
|
readonly code: "ALREADY_EXISTS";
|
|
474
446
|
readonly message: string;
|
|
@@ -868,13 +840,10 @@ declare const ForksApiGroup_base: HttpApiGroup.HttpApiGroup<"forks", HttpApiEndp
|
|
|
868
840
|
}>, {
|
|
869
841
|
"ref0-code": Schema.String;
|
|
870
842
|
'www-authenticate': Schema.String;
|
|
871
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
843
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/repos/:repo/-/forks/:holder", Schema.toCodecStringTree<Schema.Struct<{
|
|
872
844
|
repo: Schema.String;
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
readonly key: Schema.optionalKey<Schema.String>;
|
|
876
|
-
readonly name: Schema.optionalKey<Schema.String>;
|
|
877
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
845
|
+
holder: Schema.String;
|
|
846
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
878
847
|
readonly name: Schema.String;
|
|
879
848
|
readonly defaultBranch: Schema.optionalKey<Schema.String>;
|
|
880
849
|
readonly public: Schema.Boolean;
|
|
@@ -885,9 +854,6 @@ declare const ForksApiGroup_base: HttpApiGroup.HttpApiGroup<"forks", HttpApiEndp
|
|
|
885
854
|
readonly packs: Schema.optionalKey<Schema.Number>;
|
|
886
855
|
readonly packBytes: Schema.optionalKey<Schema.Number>;
|
|
887
856
|
readonly ownBytes: Schema.optionalKey<Schema.Number>;
|
|
888
|
-
readonly looseObjects: Schema.optionalKey<Schema.Number>;
|
|
889
|
-
readonly looseBytes: Schema.optionalKey<Schema.Number>;
|
|
890
|
-
readonly leavingBytes: Schema.optionalKey<Schema.Number>;
|
|
891
857
|
readonly pushedAt: Schema.optionalKey<Schema.Number>;
|
|
892
858
|
readonly maintainedAt: Schema.optionalKey<Schema.Number>;
|
|
893
859
|
}>;
|
|
@@ -1302,39 +1268,40 @@ declare const ForksApiGroup_base: HttpApiGroup.HttpApiGroup<"forks", HttpApiEndp
|
|
|
1302
1268
|
}>, {
|
|
1303
1269
|
"ref0-code": Schema.String;
|
|
1304
1270
|
'www-authenticate': Schema.String;
|
|
1305
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1271
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/repos/:repo/-/forks", Schema.toCodecStringTree<Schema.Struct<{
|
|
1306
1272
|
repo: Schema.String;
|
|
1307
|
-
}>>,
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
readonly
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
readonly
|
|
1316
|
-
readonly
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
}
|
|
1337
|
-
}
|
|
1273
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
1274
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
1275
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
1276
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1277
|
+
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
1278
|
+
readonly name: Schema.String;
|
|
1279
|
+
readonly defaultBranch: Schema.optionalKey<Schema.String>;
|
|
1280
|
+
readonly public: Schema.Boolean;
|
|
1281
|
+
readonly upstream: Schema.optionalKey<Schema.String>;
|
|
1282
|
+
readonly stats: Schema.Struct<{
|
|
1283
|
+
readonly repo: Schema.String;
|
|
1284
|
+
readonly refs: Schema.Number;
|
|
1285
|
+
readonly packs: Schema.optionalKey<Schema.Number>;
|
|
1286
|
+
readonly packBytes: Schema.optionalKey<Schema.Number>;
|
|
1287
|
+
readonly ownBytes: Schema.optionalKey<Schema.Number>;
|
|
1288
|
+
readonly pushedAt: Schema.optionalKey<Schema.Number>;
|
|
1289
|
+
readonly maintainedAt: Schema.optionalKey<Schema.Number>;
|
|
1290
|
+
}>;
|
|
1291
|
+
readonly work: Schema.optionalKey<Schema.Struct<{
|
|
1292
|
+
readonly waiting: Schema.Number;
|
|
1293
|
+
readonly oldestDue: Schema.optionalKey<Schema.Number>;
|
|
1294
|
+
readonly failed: Schema.Number;
|
|
1295
|
+
readonly oldestFailed: Schema.optionalKey<Schema.Number>;
|
|
1296
|
+
readonly index: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1297
|
+
readonly state: Schema.Literal<"refused">;
|
|
1298
|
+
readonly retryAt: Schema.Number;
|
|
1299
|
+
}>, Schema.Struct<{
|
|
1300
|
+
readonly state: Schema.Literal<"too-large">;
|
|
1301
|
+
}>]>>;
|
|
1302
|
+
}>>;
|
|
1303
|
+
}>>>;
|
|
1304
|
+
readonly next: Schema.optionalKey<Schema.String>;
|
|
1338
1305
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
1339
1306
|
readonly code: "ALREADY_EXISTS";
|
|
1340
1307
|
readonly message: string;
|
|
@@ -1734,14 +1701,35 @@ declare const ForksApiGroup_base: HttpApiGroup.HttpApiGroup<"forks", HttpApiEndp
|
|
|
1734
1701
|
}>, {
|
|
1735
1702
|
"ref0-code": Schema.String;
|
|
1736
1703
|
'www-authenticate': Schema.String;
|
|
1737
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1704
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"sync", "POST", "/repos/:repo/-/forks/sync", Schema.toCodecStringTree<Schema.Struct<{
|
|
1738
1705
|
repo: Schema.String;
|
|
1739
|
-
}>>, never,
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
readonly
|
|
1743
|
-
|
|
1744
|
-
|
|
1706
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1707
|
+
key: Schema.optionalKey<Schema.String>;
|
|
1708
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1709
|
+
readonly name: Schema.String;
|
|
1710
|
+
readonly defaultBranch: Schema.optionalKey<Schema.String>;
|
|
1711
|
+
readonly public: Schema.Boolean;
|
|
1712
|
+
readonly upstream: Schema.optionalKey<Schema.String>;
|
|
1713
|
+
readonly stats: Schema.Struct<{
|
|
1714
|
+
readonly repo: Schema.String;
|
|
1715
|
+
readonly refs: Schema.Number;
|
|
1716
|
+
readonly packs: Schema.optionalKey<Schema.Number>;
|
|
1717
|
+
readonly packBytes: Schema.optionalKey<Schema.Number>;
|
|
1718
|
+
readonly ownBytes: Schema.optionalKey<Schema.Number>;
|
|
1719
|
+
readonly pushedAt: Schema.optionalKey<Schema.Number>;
|
|
1720
|
+
readonly maintainedAt: Schema.optionalKey<Schema.Number>;
|
|
1721
|
+
}>;
|
|
1722
|
+
readonly work: Schema.optionalKey<Schema.Struct<{
|
|
1723
|
+
readonly waiting: Schema.Number;
|
|
1724
|
+
readonly oldestDue: Schema.optionalKey<Schema.Number>;
|
|
1725
|
+
readonly failed: Schema.Number;
|
|
1726
|
+
readonly oldestFailed: Schema.optionalKey<Schema.Number>;
|
|
1727
|
+
readonly index: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1728
|
+
readonly state: Schema.Literal<"refused">;
|
|
1729
|
+
readonly retryAt: Schema.Number;
|
|
1730
|
+
}>, Schema.Struct<{
|
|
1731
|
+
readonly state: Schema.Literal<"too-large">;
|
|
1732
|
+
}>]>>;
|
|
1745
1733
|
}>>;
|
|
1746
1734
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
1747
1735
|
readonly code: "ALREADY_EXISTS";
|
package/dist/rest/handlers.mjs
CHANGED
|
@@ -445,7 +445,8 @@ const createToken = /* @__PURE__ */ Effect.fnUntraced(function* (scope, body) {
|
|
|
445
445
|
const tokens = yield* tokenCalls;
|
|
446
446
|
yield* authorized({
|
|
447
447
|
kind: "token.create",
|
|
448
|
-
...tokenParties(body)
|
|
448
|
+
...tokenParties(body),
|
|
449
|
+
scope: body.scope
|
|
449
450
|
}, scope);
|
|
450
451
|
return yield* tokens.create(scope.target, body);
|
|
451
452
|
});
|
package/dist/rest/listen.d.mts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { CallInput } from "../contracts/actors.mjs";
|
|
2
1
|
import { RepoName } from "../contracts/ids.mjs";
|
|
3
|
-
import {
|
|
2
|
+
import { GitError } from "../contracts/result.mjs";
|
|
4
3
|
import { RepoStreamEvent } from "./wire.mjs";
|
|
5
|
-
|
|
4
|
+
import "effect/Effect";
|
|
5
|
+
import * as Stream from "effect/Stream";
|
|
6
|
+
export interface ListenInput {
|
|
6
7
|
/** The last `seq` read: the stream starts after it. Left out, it starts at the oldest kept. */
|
|
7
8
|
readonly after?: number;
|
|
8
9
|
}
|
|
@@ -13,9 +14,10 @@ export interface RestEvents {
|
|
|
13
14
|
* after the last `seq` read, and tried again while the remote is `UNAVAILABLE` or past its
|
|
14
15
|
* deadline. The stream errors with any other refusal a reconnect meets, such as access lost,
|
|
15
16
|
* and `FAILED_PRECONDITION`, reason `cursor-expired`, once the server keeps no events after it:
|
|
16
|
-
* retention took them, or no event had its `seq`. It closes after `repo.deleted`.
|
|
17
|
-
* connection
|
|
17
|
+
* retention took them, or no event had its `seq`. It closes after `repo.deleted`. The first
|
|
18
|
+
* connection opens on the first pull, so a refusal there fails it, and interrupting the stream
|
|
19
|
+
* closes the connection.
|
|
18
20
|
*/
|
|
19
|
-
readonly listen: (repo: RepoName, input?: ListenInput) =>
|
|
21
|
+
readonly listen: (repo: RepoName, input?: ListenInput) => Stream.Stream<RepoStreamEvent, GitError>;
|
|
20
22
|
}
|
|
21
23
|
export type { RepoStreamEvent };
|
package/dist/rest/listen.mjs
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { ownedReader } from "../protocol/bytes/reader.mjs";
|
|
2
1
|
import { gitError } from "../contracts/result.mjs";
|
|
3
2
|
import { RepoStreamEvent, StreamEnd } from "./wire.mjs";
|
|
4
3
|
import * as Effect from "effect/Effect";
|
|
5
4
|
import * as Option from "effect/Option";
|
|
6
5
|
import * as Schema from "effect/Schema";
|
|
7
6
|
import * as Predicate from "effect/Predicate";
|
|
7
|
+
import * as Stream from "effect/Stream";
|
|
8
8
|
import * as Sse from "effect/encoding/Sse";
|
|
9
9
|
// src/rest/listen.ts
|
|
10
10
|
/** The first pause before opening again a connection that sent no event, doubled up to 9 s. */
|
|
11
11
|
const firstPause = 100;
|
|
12
12
|
const maxPause = 9e3;
|
|
13
|
-
const pause = (ms, signal) => Effect.runPromise(Effect.sleep(ms), { signal }).catch(() => void 0);
|
|
14
13
|
const expired = (after) => gitError("FAILED_PRECONDITION", `The remote keeps no events after ${after}: listen again without 'after'`, { context: {
|
|
15
14
|
reason: "cursor-expired",
|
|
16
15
|
after
|
|
@@ -31,20 +30,14 @@ const eventOf = (data, seq) => {
|
|
|
31
30
|
return event?.seq === seq ? event : void 0;
|
|
32
31
|
};
|
|
33
32
|
/** A repo's events over `connect`'s connections, each opened after the last `seq` read. */
|
|
34
|
-
const listenOver =
|
|
35
|
-
const ending = new AbortController();
|
|
36
|
-
const signal = input.signal === void 0 ? ending.signal : AbortSignal.any([input.signal, ending.signal]);
|
|
33
|
+
const listenOver = (connect, input = {}) => Stream.suspend(() => {
|
|
37
34
|
let last = input.after;
|
|
38
|
-
|
|
39
|
-
if (opened.kind === "error") return opened;
|
|
40
|
-
let owned = ownedReader(opened.value);
|
|
41
|
-
let body = owned.reader;
|
|
42
|
-
let decoder = new TextDecoder();
|
|
35
|
+
let opened = false;
|
|
43
36
|
let heard = false;
|
|
44
37
|
let wait = firstPause;
|
|
45
38
|
let failure;
|
|
46
39
|
let deleted = false;
|
|
47
|
-
|
|
40
|
+
let read = [];
|
|
48
41
|
const parser = Sse.makeParser((event) => {
|
|
49
42
|
if (!Predicate.isTagged(event, "Event") || failure !== void 0 || deleted) return;
|
|
50
43
|
if (event.event === "end") {
|
|
@@ -62,75 +55,38 @@ const listenOver = async (connect, input = {}) => {
|
|
|
62
55
|
failure = unreadable(`event ${seq}'s data isn't that event`);
|
|
63
56
|
return;
|
|
64
57
|
}
|
|
65
|
-
|
|
58
|
+
read.push(parsed);
|
|
66
59
|
heard = true;
|
|
67
60
|
last = seq;
|
|
68
61
|
deleted ||= parsed.type === "repo.deleted";
|
|
69
62
|
});
|
|
70
|
-
const end = () => {
|
|
71
|
-
ending.abort();
|
|
72
|
-
owned.close();
|
|
73
|
-
};
|
|
74
|
-
signal.addEventListener("abort", end, { once: true });
|
|
75
63
|
/**
|
|
76
|
-
*
|
|
77
|
-
*
|
|
64
|
+
* The next connection after `last`: pausing first when the last one sent no event, and again
|
|
65
|
+
* after each failure that passes, on the backoff.
|
|
78
66
|
*/
|
|
79
|
-
const reconnect =
|
|
67
|
+
const reconnect = () => Effect.suspend(() => {
|
|
68
|
+
const paused = heard ? Effect.void : Effect.sleep(wait);
|
|
69
|
+
wait = heard ? firstPause : Math.min(wait * 2, maxPause);
|
|
70
|
+
heard = false;
|
|
71
|
+
return paused.pipe(Effect.andThen(Effect.suspend(() => connect(last))), Effect.catch((error) => passing(error) ? reconnect() : Effect.fail(error)));
|
|
72
|
+
});
|
|
73
|
+
const next = Effect.suspend(() => {
|
|
74
|
+
if (opened) return reconnect();
|
|
75
|
+
opened = true;
|
|
76
|
+
return connect(last);
|
|
77
|
+
});
|
|
78
|
+
/** One connection's events, the chunk that held a failure ending them with it. */
|
|
79
|
+
const eventsOf = (body) => Stream.suspend(() => {
|
|
80
|
+
const decoder = new TextDecoder();
|
|
80
81
|
parser.reset();
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
if (!
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
body = owned.reader;
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
if (!passing(again.error)) {
|
|
95
|
-
failure = again.error;
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
return {
|
|
101
|
-
kind: "success",
|
|
102
|
-
value: new ReadableStream({
|
|
103
|
-
pull: async (controller) => {
|
|
104
|
-
for (;;) {
|
|
105
|
-
if (input.signal?.aborted === true) {
|
|
106
|
-
end();
|
|
107
|
-
return controller.error(input.signal.reason);
|
|
108
|
-
}
|
|
109
|
-
const next = queue.shift();
|
|
110
|
-
if (next !== void 0) return controller.enqueue(next);
|
|
111
|
-
if (failure !== void 0) {
|
|
112
|
-
end();
|
|
113
|
-
return controller.error(failure);
|
|
114
|
-
}
|
|
115
|
-
if (signal.aborted || deleted) {
|
|
116
|
-
end();
|
|
117
|
-
return controller.close();
|
|
118
|
-
}
|
|
119
|
-
const read = await body.read().catch(() => ({
|
|
120
|
-
done: true,
|
|
121
|
-
value: void 0
|
|
122
|
-
}));
|
|
123
|
-
if (read.done) {
|
|
124
|
-
owned.close();
|
|
125
|
-
await reconnect();
|
|
126
|
-
continue;
|
|
127
|
-
}
|
|
128
|
-
const tooLong = parser.feed(decoder.decode(read.value, { stream: true }));
|
|
129
|
-
if (tooLong !== void 0 && !deleted) failure ??= unreadable(tooLong.message);
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
cancel: () => end()
|
|
133
|
-
}, { highWaterMark: 0 })
|
|
134
|
-
};
|
|
135
|
-
};
|
|
82
|
+
return body.pipe(Stream.catch(() => Stream.empty), Stream.flatMap((chunk) => {
|
|
83
|
+
const tooLong = parser.feed(decoder.decode(chunk, { stream: true }));
|
|
84
|
+
if (tooLong !== void 0 && !deleted) failure ??= unreadable(tooLong.message);
|
|
85
|
+
const events = Stream.fromIterable(read);
|
|
86
|
+
read = [];
|
|
87
|
+
return failure === void 0 ? events : Stream.concat(events, Stream.fail(failure));
|
|
88
|
+
}));
|
|
89
|
+
});
|
|
90
|
+
return Stream.fromEffectRepeat(next).pipe(Stream.flatMap(eventsOf), Stream.takeUntil((event) => event.type === "repo.deleted"));
|
|
91
|
+
});
|
|
136
92
|
export { listenOver };
|
package/dist/rest/me.d.mts
CHANGED
|
@@ -20,14 +20,14 @@ declare const MeApiGroup_base: HttpApiGroup.HttpApiGroup<"me", HttpApiEndpoint.H
|
|
|
20
20
|
readonly repo: Schema.String;
|
|
21
21
|
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
22
22
|
readonly id: Schema.String;
|
|
23
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write"]>;
|
|
23
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
24
24
|
readonly expiresAt: Schema.Number;
|
|
25
25
|
readonly createdAt: Schema.Number;
|
|
26
26
|
}>, Schema.Struct<{
|
|
27
27
|
readonly prefix: Schema.String;
|
|
28
28
|
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
29
29
|
readonly id: Schema.String;
|
|
30
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write"]>;
|
|
30
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
31
31
|
readonly expiresAt: Schema.Number;
|
|
32
32
|
readonly createdAt: Schema.Number;
|
|
33
33
|
}>]>>;
|
package/dist/rest/merges.d.mts
CHANGED
|
@@ -4,21 +4,21 @@ import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api";
|
|
|
4
4
|
declare const MergesApiGroup_base: HttpApiGroup.HttpApiGroup<"merges", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/repos/:repo/-/merges", Schema.toCodecStringTree<Schema.Struct<{
|
|
5
5
|
repo: Schema.String;
|
|
6
6
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
7
|
-
readonly
|
|
8
|
-
readonly
|
|
9
|
-
readonly committer: Schema.optionalKey<Schema.Struct<{
|
|
7
|
+
readonly message: Schema.String;
|
|
8
|
+
readonly author: Schema.Struct<{
|
|
10
9
|
readonly name: Schema.String;
|
|
11
10
|
readonly email: Schema.String;
|
|
12
11
|
readonly at: Schema.Number;
|
|
13
12
|
readonly offset: Schema.Int;
|
|
14
|
-
}
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
13
|
+
}>;
|
|
14
|
+
readonly ours: Schema.String;
|
|
15
|
+
readonly theirs: Schema.String;
|
|
16
|
+
readonly committer: Schema.optionalKey<Schema.Struct<{
|
|
17
17
|
readonly name: Schema.String;
|
|
18
18
|
readonly email: Schema.String;
|
|
19
19
|
readonly at: Schema.Number;
|
|
20
20
|
readonly offset: Schema.Int;
|
|
21
|
-
}
|
|
21
|
+
}>>;
|
|
22
22
|
readonly key: Schema.optionalKey<Schema.String>;
|
|
23
23
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
24
24
|
readonly kind: Schema.Literal<"merged">;
|
package/dist/rest/refs.d.mts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
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 RefsApiGroup_base: HttpApiGroup.HttpApiGroup<"refs", HttpApiEndpoint.HttpApiEndpoint<"
|
|
4
|
+
declare const RefsApiGroup_base: HttpApiGroup.HttpApiGroup<"refs", HttpApiEndpoint.HttpApiEndpoint<"count", "GET", "/repos/:repo/-/refs/count", Schema.toCodecStringTree<Schema.Struct<{
|
|
5
5
|
repo: Schema.String;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
7
|
+
prefix: Schema.optionalKey<Schema.String>;
|
|
8
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
9
|
+
readonly count: Schema.Int;
|
|
10
|
+
}>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
|
|
10
11
|
readonly code: "ALREADY_EXISTS";
|
|
11
12
|
readonly message: string;
|
|
12
13
|
readonly hint?: string;
|
|
@@ -810,12 +811,20 @@ declare const RefsApiGroup_base: HttpApiGroup.HttpApiGroup<"refs", HttpApiEndpoi
|
|
|
810
811
|
}>, {
|
|
811
812
|
"ref0-code": Schema.String;
|
|
812
813
|
'www-authenticate': Schema.String;
|
|
813
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
814
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/repos/:repo/-/refs", Schema.toCodecStringTree<Schema.Struct<{
|
|
814
815
|
repo: Schema.String;
|
|
815
816
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
816
817
|
prefix: Schema.optionalKey<Schema.String>;
|
|
818
|
+
pointsAt: Schema.optionalKey<Schema.String>;
|
|
819
|
+
protected: Schema.optionalKey<Schema.Boolean>;
|
|
820
|
+
after: Schema.optionalKey<Schema.String>;
|
|
821
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
817
822
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
818
|
-
readonly
|
|
823
|
+
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
824
|
+
readonly name: Schema.String;
|
|
825
|
+
readonly oid: Schema.String;
|
|
826
|
+
}>>>;
|
|
827
|
+
readonly next: Schema.optionalKey<Schema.String>;
|
|
819
828
|
}>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
|
|
820
829
|
readonly code: "ALREADY_EXISTS";
|
|
821
830
|
readonly message: string;
|
|
@@ -1215,21 +1224,12 @@ declare const RefsApiGroup_base: HttpApiGroup.HttpApiGroup<"refs", HttpApiEndpoi
|
|
|
1215
1224
|
}>, {
|
|
1216
1225
|
"ref0-code": Schema.String;
|
|
1217
1226
|
'www-authenticate': Schema.String;
|
|
1218
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1227
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"protection", "GET", "/repos/:repo/-/protection/:ref", Schema.toCodecStringTree<Schema.Struct<{
|
|
1219
1228
|
repo: Schema.String;
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
after: Schema.optionalKey<Schema.String>;
|
|
1225
|
-
limit: Schema.optionalKey<Schema.Int>;
|
|
1226
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1227
|
-
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
1228
|
-
readonly name: Schema.String;
|
|
1229
|
-
readonly oid: Schema.String;
|
|
1230
|
-
}>>>;
|
|
1231
|
-
readonly next: Schema.optionalKey<Schema.String>;
|
|
1232
|
-
}>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
|
|
1229
|
+
ref: Schema.String;
|
|
1230
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.NullOr<Schema.Struct<{
|
|
1231
|
+
readonly sources: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["git", "api", "queue", "import"]>>>;
|
|
1232
|
+
}>>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
|
|
1233
1233
|
readonly code: "ALREADY_EXISTS";
|
|
1234
1234
|
readonly message: string;
|
|
1235
1235
|
readonly hint?: string;
|
|
@@ -1628,11 +1628,13 @@ declare const RefsApiGroup_base: HttpApiGroup.HttpApiGroup<"refs", HttpApiEndpoi
|
|
|
1628
1628
|
}>, {
|
|
1629
1629
|
"ref0-code": Schema.String;
|
|
1630
1630
|
'www-authenticate': Schema.String;
|
|
1631
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1631
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"protections", "POST", "/repos/:repo/-/protections", Schema.toCodecStringTree<Schema.Struct<{
|
|
1632
1632
|
repo: Schema.String;
|
|
1633
1633
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1634
1634
|
readonly refs: Schema.$Array<Schema.String>;
|
|
1635
|
-
}>>, never, Schema.toCodecJson<Schema.$Array<Schema.
|
|
1635
|
+
}>>, never, Schema.toCodecJson<Schema.$Array<Schema.NullOr<Schema.Struct<{
|
|
1636
|
+
readonly sources: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["git", "api", "queue", "import"]>>>;
|
|
1637
|
+
}>>>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
|
|
1636
1638
|
readonly code: "ALREADY_EXISTS";
|
|
1637
1639
|
readonly message: string;
|
|
1638
1640
|
readonly hint?: string;
|
|
@@ -2031,13 +2033,11 @@ declare const RefsApiGroup_base: HttpApiGroup.HttpApiGroup<"refs", HttpApiEndpoi
|
|
|
2031
2033
|
}>, {
|
|
2032
2034
|
"ref0-code": Schema.String;
|
|
2033
2035
|
'www-authenticate': Schema.String;
|
|
2034
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
2036
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"sees", "POST", "/repos/:repo/-/sees", Schema.toCodecStringTree<Schema.Struct<{
|
|
2035
2037
|
repo: Schema.String;
|
|
2036
2038
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2037
2039
|
readonly refs: Schema.$Array<Schema.String>;
|
|
2038
|
-
}>>, never, Schema.toCodecJson<Schema.$Array<Schema.
|
|
2039
|
-
readonly sources: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["git", "api", "queue", "import"]>>>;
|
|
2040
|
-
}>>>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
|
|
2040
|
+
}>>, never, Schema.toCodecJson<Schema.$Array<Schema.Boolean>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
|
|
2041
2041
|
readonly code: "ALREADY_EXISTS";
|
|
2042
2042
|
readonly message: string;
|
|
2043
2043
|
readonly hint?: string;
|