@ref0/git 0.11.0 → 0.12.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 +5 -4
- package/dist/contracts/forks.d.mts +3 -2
- package/dist/contracts/git.d.mts +23 -5
- package/dist/contracts/result.d.mts +7 -5
- package/dist/contracts/result.mjs +7 -5
- package/dist/contracts/sync.d.mts +11 -0
- package/dist/core/access.d.mts +1 -0
- package/dist/core/access.mjs +10 -11
- package/dist/core/asked.mjs +30 -0
- package/dist/core/events/deliver.d.mts +1 -0
- package/dist/core/events/deliver.mjs +5 -1
- package/dist/core/forks.mjs +39 -13
- package/dist/core/imports.mjs +9 -4
- package/dist/core/objects/reading.mjs +17 -9
- package/dist/core/parts.d.mts +2 -1
- package/dist/core/push.mjs +11 -8
- package/dist/core/refs.mjs +6 -3
- package/dist/core/registered-rows.d.mts +1 -0
- package/dist/core/registered-rows.mjs +7 -5
- package/dist/core/repack.mjs +5 -3
- package/dist/core/saved-caller-views.d.mts +18 -0
- package/dist/core/saved-caller-views.mjs +17 -4
- package/dist/core/saved-callers-public.d.mts +3 -3
- package/dist/core/saved-callers-public.mjs +3 -2
- package/dist/core/saved-callers.d.mts +7 -0
- package/dist/extend.d.mts +2 -1
- package/dist/extend.mjs +2 -1
- package/dist/http/push-uploads.mjs +6 -3
- package/dist/lfs/locks.mjs +14 -9
- package/dist/lfs/objects.mjs +27 -20
- package/dist/queue/calls.mjs +21 -1
- package/dist/rest/blobs.d.mts +15 -15
- package/dist/rest/commits.d.mts +191 -191
- package/dist/rest/files.d.mts +70 -70
- package/dist/rest/forks.d.mts +72 -72
- package/dist/rest/layer.mjs +8 -1
- package/dist/rest/queue.d.mts +212 -212
- package/dist/rest/refs.d.mts +148 -148
- package/dist/rest/repos.d.mts +47 -47
- package/dist/rest/tags.d.mts +76 -76
- package/dist/rest/tokens.d.mts +101 -101
- package/dist/rest/topics.d.mts +112 -112
- package/dist/rest/trees.d.mts +73 -73
- package/dist/rest/work.d.mts +39 -39
- package/dist/server/git-namespace.d.mts +3 -3
- package/dist/server/server.mjs +6 -4
- package/dist/storage/memory-budget.mjs +128 -6
- package/dist/storage/merge-cut.mjs +5 -4
- package/dist/storage/pack-reads.mjs +239 -27
- package/dist/storage/prune-seen.mjs +11 -6
- package/dist/storage/prune-walk.mjs +168 -68
- package/dist/storage/quarantine.mjs +2 -0
- package/dist/store/repo-record.d.mts +25 -0
- package/dist/store/repo-record.mjs +55 -1
- package/dist/sync/github.mjs +10 -1
- package/dist/sync/import.mjs +3 -2
- package/dist/sync/mirror.mjs +24 -17
- package/dist/sync/said.mjs +204 -0
- package/dist/sync/step.mjs +8 -8
- package/dist/sync/tries.mjs +34 -18
- package/dist/topics/advance.mjs +10 -3
- package/package.json +3 -3
package/dist/rest/tags.d.mts
CHANGED
|
@@ -1,57 +1,32 @@
|
|
|
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 TagsApiGroup_base: HttpApiGroup.HttpApiGroup<"tags", HttpApiEndpoint.HttpApiEndpoint<"
|
|
4
|
+
declare const TagsApiGroup_base: HttpApiGroup.HttpApiGroup<"tags", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/repos/:repo/-/tags", Schema.toCodecStringTree<Schema.Struct<{
|
|
5
5
|
repo: Schema.String;
|
|
6
6
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
7
|
-
readonly
|
|
8
|
-
readonly
|
|
9
|
-
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
readonly
|
|
7
|
+
readonly object: Schema.String;
|
|
8
|
+
readonly tag: Schema.String;
|
|
9
|
+
readonly tagger: Schema.Struct<{
|
|
10
|
+
readonly name: Schema.String;
|
|
11
|
+
readonly email: Schema.String;
|
|
12
|
+
readonly at: Schema.Number;
|
|
13
|
+
readonly offset: Schema.Int;
|
|
14
|
+
}>;
|
|
15
|
+
readonly message: Schema.String;
|
|
16
|
+
readonly key: Schema.optionalKey<Schema.String>;
|
|
17
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
16
18
|
readonly oid: Schema.String;
|
|
19
|
+
readonly object: Schema.String;
|
|
17
20
|
readonly type: Schema.Literals<readonly ["commit", "tree", "blob", "tag"]>;
|
|
18
|
-
readonly
|
|
19
|
-
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
22
|
-
readonly
|
|
23
|
-
readonly
|
|
24
|
-
readonly name: Schema.String;
|
|
25
|
-
readonly email: Schema.String;
|
|
26
|
-
readonly at: Schema.Number;
|
|
27
|
-
readonly offset: Schema.Int;
|
|
28
|
-
}>>;
|
|
29
|
-
readonly message: Schema.String;
|
|
30
|
-
}>>;
|
|
31
|
-
readonly commit: Schema.optionalKey<Schema.Struct<{
|
|
32
|
-
readonly oid: Schema.String;
|
|
33
|
-
readonly tree: Schema.String;
|
|
34
|
-
readonly parents: Schema.$Array<Schema.String>;
|
|
35
|
-
readonly author: Schema.Struct<{
|
|
36
|
-
readonly name: Schema.String;
|
|
37
|
-
readonly email: Schema.String;
|
|
38
|
-
readonly at: Schema.Number;
|
|
39
|
-
readonly offset: Schema.Int;
|
|
40
|
-
}>;
|
|
41
|
-
readonly committer: Schema.Struct<{
|
|
42
|
-
readonly name: Schema.String;
|
|
43
|
-
readonly email: Schema.String;
|
|
44
|
-
readonly at: Schema.Number;
|
|
45
|
-
readonly offset: Schema.Int;
|
|
46
|
-
}>;
|
|
47
|
-
readonly subject: Schema.String;
|
|
48
|
-
readonly message: Schema.String;
|
|
49
|
-
readonly signature: Schema.optionalKey<Schema.String>;
|
|
21
|
+
readonly tag: Schema.String;
|
|
22
|
+
readonly tagger: Schema.optionalKey<Schema.Struct<{
|
|
23
|
+
readonly name: Schema.String;
|
|
24
|
+
readonly email: Schema.String;
|
|
25
|
+
readonly at: Schema.Number;
|
|
26
|
+
readonly offset: Schema.Int;
|
|
50
27
|
}>>;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
readonly oid: Schema.String;
|
|
54
|
-
}>]>>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
28
|
+
readonly message: Schema.String;
|
|
29
|
+
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
55
30
|
readonly code: "ALREADY_EXISTS";
|
|
56
31
|
readonly message: string;
|
|
57
32
|
readonly hint?: string;
|
|
@@ -450,20 +425,15 @@ declare const TagsApiGroup_base: HttpApiGroup.HttpApiGroup<"tags", HttpApiEndpoi
|
|
|
450
425
|
}>, {
|
|
451
426
|
"ref0-code": Schema.String;
|
|
452
427
|
'www-authenticate': Schema.String;
|
|
453
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
428
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/repos/:repo/-/tags/:oid", Schema.toCodecStringTree<Schema.Struct<{
|
|
454
429
|
repo: Schema.String;
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
readonly
|
|
458
|
-
readonly
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
readonly offset: Schema.Int;
|
|
463
|
-
}>;
|
|
464
|
-
readonly message: Schema.String;
|
|
465
|
-
readonly key: Schema.optionalKey<Schema.String>;
|
|
466
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
430
|
+
oid: Schema.String;
|
|
431
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
432
|
+
readonly objects: Schema.optionalKey<Schema.Int>;
|
|
433
|
+
readonly bytes: Schema.optionalKey<Schema.Int>;
|
|
434
|
+
readonly entries: Schema.optionalKey<Schema.Int>;
|
|
435
|
+
readonly milliseconds: Schema.optionalKey<Schema.Int>;
|
|
436
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
467
437
|
readonly oid: Schema.String;
|
|
468
438
|
readonly object: Schema.String;
|
|
469
439
|
readonly type: Schema.Literals<readonly ["commit", "tree", "blob", "tag"]>;
|
|
@@ -874,27 +844,57 @@ declare const TagsApiGroup_base: HttpApiGroup.HttpApiGroup<"tags", HttpApiEndpoi
|
|
|
874
844
|
}>, {
|
|
875
845
|
"ref0-code": Schema.String;
|
|
876
846
|
'www-authenticate': Schema.String;
|
|
877
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
847
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"peel", "POST", "/repos/:repo/-/tags/peel", Schema.toCodecStringTree<Schema.Struct<{
|
|
878
848
|
repo: Schema.String;
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
readonly
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
849
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
850
|
+
readonly oids: Schema.$Array<Schema.String>;
|
|
851
|
+
readonly limits: Schema.optionalKey<Schema.Struct<{
|
|
852
|
+
readonly objects: Schema.optionalKey<Schema.Int>;
|
|
853
|
+
readonly bytes: Schema.optionalKey<Schema.Int>;
|
|
854
|
+
readonly entries: Schema.optionalKey<Schema.Int>;
|
|
855
|
+
readonly milliseconds: Schema.optionalKey<Schema.Int>;
|
|
856
|
+
}>>;
|
|
857
|
+
}>>, never, Schema.toCodecJson<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
858
|
+
readonly found: Schema.Literal<true>;
|
|
886
859
|
readonly oid: Schema.String;
|
|
887
|
-
readonly object: Schema.String;
|
|
888
860
|
readonly type: Schema.Literals<readonly ["commit", "tree", "blob", "tag"]>;
|
|
889
|
-
readonly
|
|
890
|
-
|
|
891
|
-
readonly
|
|
892
|
-
readonly
|
|
893
|
-
readonly
|
|
894
|
-
readonly
|
|
861
|
+
readonly tags: Schema.$Array<Schema.Struct<{
|
|
862
|
+
readonly oid: Schema.String;
|
|
863
|
+
readonly object: Schema.String;
|
|
864
|
+
readonly type: Schema.Literals<readonly ["commit", "tree", "blob", "tag"]>;
|
|
865
|
+
readonly tag: Schema.String;
|
|
866
|
+
readonly tagger: Schema.optionalKey<Schema.Struct<{
|
|
867
|
+
readonly name: Schema.String;
|
|
868
|
+
readonly email: Schema.String;
|
|
869
|
+
readonly at: Schema.Number;
|
|
870
|
+
readonly offset: Schema.Int;
|
|
871
|
+
}>>;
|
|
872
|
+
readonly message: Schema.String;
|
|
895
873
|
}>>;
|
|
896
|
-
readonly
|
|
897
|
-
|
|
874
|
+
readonly commit: Schema.optionalKey<Schema.Struct<{
|
|
875
|
+
readonly oid: Schema.String;
|
|
876
|
+
readonly tree: Schema.String;
|
|
877
|
+
readonly parents: Schema.$Array<Schema.String>;
|
|
878
|
+
readonly author: Schema.Struct<{
|
|
879
|
+
readonly name: Schema.String;
|
|
880
|
+
readonly email: Schema.String;
|
|
881
|
+
readonly at: Schema.Number;
|
|
882
|
+
readonly offset: Schema.Int;
|
|
883
|
+
}>;
|
|
884
|
+
readonly committer: Schema.Struct<{
|
|
885
|
+
readonly name: Schema.String;
|
|
886
|
+
readonly email: Schema.String;
|
|
887
|
+
readonly at: Schema.Number;
|
|
888
|
+
readonly offset: Schema.Int;
|
|
889
|
+
}>;
|
|
890
|
+
readonly subject: Schema.String;
|
|
891
|
+
readonly message: Schema.String;
|
|
892
|
+
readonly signature: Schema.optionalKey<Schema.String>;
|
|
893
|
+
}>>;
|
|
894
|
+
}>, Schema.Struct<{
|
|
895
|
+
readonly found: Schema.Literal<false>;
|
|
896
|
+
readonly oid: Schema.String;
|
|
897
|
+
}>]>>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
898
898
|
readonly code: "ALREADY_EXISTS";
|
|
899
899
|
readonly message: string;
|
|
900
900
|
readonly hint?: string;
|
package/dist/rest/tokens.d.mts
CHANGED
|
@@ -1,44 +1,11 @@
|
|
|
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 TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEndpoint.HttpApiEndpoint<"
|
|
5
|
-
|
|
4
|
+
declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/tokens/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
5
|
+
id: Schema.String;
|
|
6
6
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
state: Schema.optionalKey<Schema.Literals<readonly ["active", "expired", "revoked", "all"]>>;
|
|
10
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
11
|
-
readonly items: Schema.mutable<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
12
|
-
readonly repo: Schema.String;
|
|
13
|
-
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
14
|
-
readonly id: Schema.String;
|
|
15
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
16
|
-
readonly expiresAt: Schema.Number;
|
|
17
|
-
readonly createdAt: Schema.Number;
|
|
18
|
-
readonly subject: Schema.Struct<{
|
|
19
|
-
readonly id: Schema.String;
|
|
20
|
-
}>;
|
|
21
|
-
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
22
|
-
readonly id: Schema.String;
|
|
23
|
-
}>>;
|
|
24
|
-
readonly revokedAt: Schema.optionalKey<Schema.Number>;
|
|
25
|
-
}>, Schema.Struct<{
|
|
26
|
-
readonly prefix: Schema.String;
|
|
27
|
-
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
28
|
-
readonly id: Schema.String;
|
|
29
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
30
|
-
readonly expiresAt: Schema.Number;
|
|
31
|
-
readonly createdAt: Schema.Number;
|
|
32
|
-
readonly subject: Schema.Struct<{
|
|
33
|
-
readonly id: Schema.String;
|
|
34
|
-
}>;
|
|
35
|
-
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
36
|
-
readonly id: Schema.String;
|
|
37
|
-
}>>;
|
|
38
|
-
readonly revokedAt: Schema.optionalKey<Schema.Number>;
|
|
39
|
-
}>]>>>;
|
|
40
|
-
readonly next: Schema.optionalKey<Schema.String>;
|
|
41
|
-
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
7
|
+
key: Schema.optionalKey<Schema.String>;
|
|
8
|
+
}>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
42
9
|
readonly code: "ALREADY_EXISTS";
|
|
43
10
|
readonly message: string;
|
|
44
11
|
readonly hint?: string;
|
|
@@ -437,48 +404,43 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
437
404
|
}>, {
|
|
438
405
|
"ref0-code": Schema.String;
|
|
439
406
|
'www-authenticate': Schema.String;
|
|
440
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
readonly
|
|
448
|
-
readonly
|
|
449
|
-
}>;
|
|
450
|
-
readonly key: Schema.optionalKey<Schema.String>;
|
|
451
|
-
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
452
|
-
readonly repo: Schema.String;
|
|
453
|
-
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
454
|
-
readonly id: Schema.String;
|
|
455
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
456
|
-
readonly expiresAt: Schema.Number;
|
|
457
|
-
readonly createdAt: Schema.Number;
|
|
458
|
-
readonly subject: Schema.Struct<{
|
|
459
|
-
readonly id: Schema.String;
|
|
460
|
-
}>;
|
|
461
|
-
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
462
|
-
readonly id: Schema.String;
|
|
463
|
-
}>>;
|
|
464
|
-
readonly revokedAt: Schema.optionalKey<Schema.Number>;
|
|
465
|
-
readonly secret: Schema.String;
|
|
466
|
-
}>, Schema.Struct<{
|
|
467
|
-
readonly prefix: Schema.String;
|
|
468
|
-
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
469
|
-
readonly id: Schema.String;
|
|
470
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
471
|
-
readonly expiresAt: Schema.Number;
|
|
472
|
-
readonly createdAt: Schema.Number;
|
|
473
|
-
readonly subject: Schema.Struct<{
|
|
407
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"listPrefix", "GET", "/tokens", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
408
|
+
after: Schema.optionalKey<Schema.String>;
|
|
409
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
410
|
+
prefix: Schema.String;
|
|
411
|
+
state: Schema.optionalKey<Schema.Literals<readonly ["active", "expired", "revoked", "all"]>>;
|
|
412
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
413
|
+
readonly items: Schema.mutable<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
414
|
+
readonly repo: Schema.String;
|
|
415
|
+
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
474
416
|
readonly id: Schema.String;
|
|
475
|
-
|
|
476
|
-
|
|
417
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
418
|
+
readonly expiresAt: Schema.Number;
|
|
419
|
+
readonly createdAt: Schema.Number;
|
|
420
|
+
readonly subject: Schema.Struct<{
|
|
421
|
+
readonly id: Schema.String;
|
|
422
|
+
}>;
|
|
423
|
+
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
424
|
+
readonly id: Schema.String;
|
|
425
|
+
}>>;
|
|
426
|
+
readonly revokedAt: Schema.optionalKey<Schema.Number>;
|
|
427
|
+
}>, Schema.Struct<{
|
|
428
|
+
readonly prefix: Schema.String;
|
|
429
|
+
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
477
430
|
readonly id: Schema.String;
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
431
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
432
|
+
readonly expiresAt: Schema.Number;
|
|
433
|
+
readonly createdAt: Schema.Number;
|
|
434
|
+
readonly subject: Schema.Struct<{
|
|
435
|
+
readonly id: Schema.String;
|
|
436
|
+
}>;
|
|
437
|
+
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
438
|
+
readonly id: Schema.String;
|
|
439
|
+
}>>;
|
|
440
|
+
readonly revokedAt: Schema.optionalKey<Schema.Number>;
|
|
441
|
+
}>]>>>;
|
|
442
|
+
readonly next: Schema.optionalKey<Schema.String>;
|
|
443
|
+
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
482
444
|
readonly code: "ALREADY_EXISTS";
|
|
483
445
|
readonly message: string;
|
|
484
446
|
readonly hint?: string;
|
|
@@ -877,10 +839,11 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
877
839
|
}>, {
|
|
878
840
|
"ref0-code": Schema.String;
|
|
879
841
|
'www-authenticate': Schema.String;
|
|
880
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
842
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"listRepo", "GET", "/repos/:repo/-/tokens", Schema.toCodecStringTree<Schema.Struct<{
|
|
843
|
+
repo: Schema.String;
|
|
844
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
881
845
|
after: Schema.optionalKey<Schema.String>;
|
|
882
846
|
limit: Schema.optionalKey<Schema.Int>;
|
|
883
|
-
prefix: Schema.String;
|
|
884
847
|
state: Schema.optionalKey<Schema.Literals<readonly ["active", "expired", "revoked", "all"]>>;
|
|
885
848
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
886
849
|
readonly items: Schema.mutable<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -1312,18 +1275,9 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
1312
1275
|
}>, {
|
|
1313
1276
|
"ref0-code": Schema.String;
|
|
1314
1277
|
'www-authenticate': Schema.String;
|
|
1315
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1316
|
-
|
|
1317
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
1318
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
1319
|
-
readonly expiresAt: Schema.Number;
|
|
1320
|
-
readonly subject: Schema.Struct<{
|
|
1321
|
-
readonly id: Schema.String;
|
|
1322
|
-
readonly anonymous: Schema.optionalKey<Schema.Literal<false>>;
|
|
1323
|
-
readonly meta: Schema.optionalKey<Schema.Unknown>;
|
|
1324
|
-
}>;
|
|
1325
|
-
readonly key: Schema.optionalKey<Schema.String>;
|
|
1326
|
-
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
1278
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/tokens/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
1279
|
+
id: Schema.String;
|
|
1280
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
1327
1281
|
readonly repo: Schema.String;
|
|
1328
1282
|
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
1329
1283
|
readonly id: Schema.String;
|
|
@@ -1337,7 +1291,6 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
1337
1291
|
readonly id: Schema.String;
|
|
1338
1292
|
}>>;
|
|
1339
1293
|
readonly revokedAt: Schema.optionalKey<Schema.Number>;
|
|
1340
|
-
readonly secret: Schema.String;
|
|
1341
1294
|
}>, Schema.Struct<{
|
|
1342
1295
|
readonly prefix: Schema.String;
|
|
1343
1296
|
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
@@ -1352,7 +1305,6 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
1352
1305
|
readonly id: Schema.String;
|
|
1353
1306
|
}>>;
|
|
1354
1307
|
readonly revokedAt: Schema.optionalKey<Schema.Number>;
|
|
1355
|
-
readonly secret: Schema.String;
|
|
1356
1308
|
}>]>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
1357
1309
|
readonly code: "ALREADY_EXISTS";
|
|
1358
1310
|
readonly message: string;
|
|
@@ -1752,11 +1704,48 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
1752
1704
|
}>, {
|
|
1753
1705
|
"ref0-code": Schema.String;
|
|
1754
1706
|
'www-authenticate': Schema.String;
|
|
1755
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1756
|
-
|
|
1757
|
-
}>>, Schema.
|
|
1758
|
-
|
|
1759
|
-
|
|
1707
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"createPrefix", "POST", "/tokens", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
1708
|
+
prefix: Schema.String;
|
|
1709
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
1710
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
1711
|
+
readonly expiresAt: Schema.Number;
|
|
1712
|
+
readonly subject: Schema.Struct<{
|
|
1713
|
+
readonly id: Schema.String;
|
|
1714
|
+
readonly anonymous: Schema.optionalKey<Schema.Literal<false>>;
|
|
1715
|
+
readonly meta: Schema.optionalKey<Schema.Unknown>;
|
|
1716
|
+
}>;
|
|
1717
|
+
readonly key: Schema.optionalKey<Schema.String>;
|
|
1718
|
+
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
1719
|
+
readonly repo: Schema.String;
|
|
1720
|
+
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
1721
|
+
readonly id: Schema.String;
|
|
1722
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
1723
|
+
readonly expiresAt: Schema.Number;
|
|
1724
|
+
readonly createdAt: Schema.Number;
|
|
1725
|
+
readonly subject: Schema.Struct<{
|
|
1726
|
+
readonly id: Schema.String;
|
|
1727
|
+
}>;
|
|
1728
|
+
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
1729
|
+
readonly id: Schema.String;
|
|
1730
|
+
}>>;
|
|
1731
|
+
readonly revokedAt: Schema.optionalKey<Schema.Number>;
|
|
1732
|
+
readonly secret: Schema.String;
|
|
1733
|
+
}>, Schema.Struct<{
|
|
1734
|
+
readonly prefix: Schema.String;
|
|
1735
|
+
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
1736
|
+
readonly id: Schema.String;
|
|
1737
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
1738
|
+
readonly expiresAt: Schema.Number;
|
|
1739
|
+
readonly createdAt: Schema.Number;
|
|
1740
|
+
readonly subject: Schema.Struct<{
|
|
1741
|
+
readonly id: Schema.String;
|
|
1742
|
+
}>;
|
|
1743
|
+
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
1744
|
+
readonly id: Schema.String;
|
|
1745
|
+
}>>;
|
|
1746
|
+
readonly revokedAt: Schema.optionalKey<Schema.Number>;
|
|
1747
|
+
readonly secret: Schema.String;
|
|
1748
|
+
}>]>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
1760
1749
|
readonly code: "ALREADY_EXISTS";
|
|
1761
1750
|
readonly message: string;
|
|
1762
1751
|
readonly hint?: string;
|
|
@@ -2155,9 +2144,18 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
2155
2144
|
}>, {
|
|
2156
2145
|
"ref0-code": Schema.String;
|
|
2157
2146
|
'www-authenticate': Schema.String;
|
|
2158
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
2159
|
-
|
|
2160
|
-
}>>, never,
|
|
2147
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"createRepo", "POST", "/repos/:repo/-/tokens", Schema.toCodecStringTree<Schema.Struct<{
|
|
2148
|
+
repo: Schema.String;
|
|
2149
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2150
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
2151
|
+
readonly expiresAt: Schema.Number;
|
|
2152
|
+
readonly subject: Schema.Struct<{
|
|
2153
|
+
readonly id: Schema.String;
|
|
2154
|
+
readonly anonymous: Schema.optionalKey<Schema.Literal<false>>;
|
|
2155
|
+
readonly meta: Schema.optionalKey<Schema.Unknown>;
|
|
2156
|
+
}>;
|
|
2157
|
+
readonly key: Schema.optionalKey<Schema.String>;
|
|
2158
|
+
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2161
2159
|
readonly repo: Schema.String;
|
|
2162
2160
|
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
2163
2161
|
readonly id: Schema.String;
|
|
@@ -2171,6 +2169,7 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
2171
2169
|
readonly id: Schema.String;
|
|
2172
2170
|
}>>;
|
|
2173
2171
|
readonly revokedAt: Schema.optionalKey<Schema.Number>;
|
|
2172
|
+
readonly secret: Schema.String;
|
|
2174
2173
|
}>, Schema.Struct<{
|
|
2175
2174
|
readonly prefix: Schema.String;
|
|
2176
2175
|
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
@@ -2185,6 +2184,7 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
2185
2184
|
readonly id: Schema.String;
|
|
2186
2185
|
}>>;
|
|
2187
2186
|
readonly revokedAt: Schema.optionalKey<Schema.Number>;
|
|
2187
|
+
readonly secret: Schema.String;
|
|
2188
2188
|
}>]>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
2189
2189
|
readonly code: "ALREADY_EXISTS";
|
|
2190
2190
|
readonly message: string;
|