@ref0/git 0.9.0 → 0.11.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/contracts/commits.d.mts +14 -2
- package/dist/contracts/commits.mjs +22 -3
- package/dist/contracts/queue.d.mts +5 -1
- package/dist/contracts/queue.mjs +1 -0
- package/dist/contracts/refs.mjs +3 -1
- package/dist/core/events/seen.mjs +5 -4
- package/dist/core/index-job.mjs +8 -6
- package/dist/core/job-view.mjs +20 -0
- package/dist/core/ref-view.mjs +1 -25
- package/dist/core/work.mjs +47 -4
- package/dist/engine/walk.mjs +51 -13
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +3 -3
- package/dist/lfs/upload-most.mjs +1 -1
- package/dist/queue/advance.mjs +8 -4
- package/dist/rest/commits.d.mts +253 -249
- package/dist/rest/files.d.mts +88 -88
- package/dist/rest/forks.d.mts +101 -101
- package/dist/rest/queue.d.mts +180 -180
- package/dist/rest/refs.d.mts +147 -147
- package/dist/rest/repos.d.mts +84 -84
- package/dist/rest/tags.d.mts +76 -76
- package/dist/rest/tokens.d.mts +144 -144
- package/dist/rest/topics.d.mts +112 -112
- package/dist/rest/trees.d.mts +77 -77
- package/dist/rest/work.d.mts +39 -39
- package/dist/sync/import.d.mts +12 -0
- package/dist/sync.d.mts +2 -1
- package/dist/sync.mjs +2 -1
- package/package.json +3 -3
package/dist/rest/tags.d.mts
CHANGED
|
@@ -1,32 +1,57 @@
|
|
|
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<"peel", "POST", "/repos/:repo/-/tags/peel", 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
|
|
16
|
-
readonly key: Schema.optionalKey<Schema.String>;
|
|
17
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
7
|
+
readonly oids: Schema.$Array<Schema.String>;
|
|
8
|
+
readonly limits: Schema.optionalKey<Schema.Struct<{
|
|
9
|
+
readonly objects: Schema.optionalKey<Schema.Int>;
|
|
10
|
+
readonly bytes: Schema.optionalKey<Schema.Int>;
|
|
11
|
+
readonly entries: Schema.optionalKey<Schema.Int>;
|
|
12
|
+
readonly milliseconds: Schema.optionalKey<Schema.Int>;
|
|
13
|
+
}>>;
|
|
14
|
+
}>>, never, Schema.toCodecJson<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
15
|
+
readonly found: Schema.Literal<true>;
|
|
18
16
|
readonly oid: Schema.String;
|
|
19
|
-
readonly object: Schema.String;
|
|
20
17
|
readonly type: Schema.Literals<readonly ["commit", "tree", "blob", "tag"]>;
|
|
21
|
-
readonly
|
|
22
|
-
|
|
23
|
-
readonly
|
|
24
|
-
readonly
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
18
|
+
readonly tags: Schema.$Array<Schema.Struct<{
|
|
19
|
+
readonly oid: Schema.String;
|
|
20
|
+
readonly object: Schema.String;
|
|
21
|
+
readonly type: Schema.Literals<readonly ["commit", "tree", "blob", "tag"]>;
|
|
22
|
+
readonly tag: Schema.String;
|
|
23
|
+
readonly tagger: Schema.optionalKey<Schema.Struct<{
|
|
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;
|
|
27
30
|
}>>;
|
|
28
|
-
readonly
|
|
29
|
-
|
|
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>;
|
|
50
|
+
}>>;
|
|
51
|
+
}>, Schema.Struct<{
|
|
52
|
+
readonly found: Schema.Literal<false>;
|
|
53
|
+
readonly oid: Schema.String;
|
|
54
|
+
}>]>>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
30
55
|
readonly code: "ALREADY_EXISTS";
|
|
31
56
|
readonly message: string;
|
|
32
57
|
readonly hint?: string;
|
|
@@ -425,15 +450,20 @@ declare const TagsApiGroup_base: HttpApiGroup.HttpApiGroup<"tags", HttpApiEndpoi
|
|
|
425
450
|
}>, {
|
|
426
451
|
"ref0-code": Schema.String;
|
|
427
452
|
'www-authenticate': Schema.String;
|
|
428
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
453
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/repos/:repo/-/tags", Schema.toCodecStringTree<Schema.Struct<{
|
|
429
454
|
repo: Schema.String;
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
readonly
|
|
433
|
-
readonly
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
455
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
456
|
+
readonly object: Schema.String;
|
|
457
|
+
readonly tag: Schema.String;
|
|
458
|
+
readonly tagger: Schema.Struct<{
|
|
459
|
+
readonly name: Schema.String;
|
|
460
|
+
readonly email: Schema.String;
|
|
461
|
+
readonly at: Schema.Number;
|
|
462
|
+
readonly offset: Schema.Int;
|
|
463
|
+
}>;
|
|
464
|
+
readonly message: Schema.String;
|
|
465
|
+
readonly key: Schema.optionalKey<Schema.String>;
|
|
466
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
437
467
|
readonly oid: Schema.String;
|
|
438
468
|
readonly object: Schema.String;
|
|
439
469
|
readonly type: Schema.Literals<readonly ["commit", "tree", "blob", "tag"]>;
|
|
@@ -844,57 +874,27 @@ declare const TagsApiGroup_base: HttpApiGroup.HttpApiGroup<"tags", HttpApiEndpoi
|
|
|
844
874
|
}>, {
|
|
845
875
|
"ref0-code": Schema.String;
|
|
846
876
|
'www-authenticate': Schema.String;
|
|
847
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
877
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/repos/:repo/-/tags/:oid", Schema.toCodecStringTree<Schema.Struct<{
|
|
848
878
|
repo: Schema.String;
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
readonly
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
}>>;
|
|
857
|
-
}>>, never, Schema.toCodecJson<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
858
|
-
readonly found: Schema.Literal<true>;
|
|
879
|
+
oid: Schema.String;
|
|
880
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
881
|
+
readonly objects: Schema.optionalKey<Schema.Int>;
|
|
882
|
+
readonly bytes: Schema.optionalKey<Schema.Int>;
|
|
883
|
+
readonly entries: Schema.optionalKey<Schema.Int>;
|
|
884
|
+
readonly milliseconds: Schema.optionalKey<Schema.Int>;
|
|
885
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
859
886
|
readonly oid: Schema.String;
|
|
887
|
+
readonly object: Schema.String;
|
|
860
888
|
readonly type: Schema.Literals<readonly ["commit", "tree", "blob", "tag"]>;
|
|
861
|
-
readonly
|
|
862
|
-
|
|
863
|
-
readonly
|
|
864
|
-
readonly
|
|
865
|
-
readonly
|
|
866
|
-
readonly
|
|
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;
|
|
873
|
-
}>>;
|
|
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>;
|
|
889
|
+
readonly tag: Schema.String;
|
|
890
|
+
readonly tagger: Schema.optionalKey<Schema.Struct<{
|
|
891
|
+
readonly name: Schema.String;
|
|
892
|
+
readonly email: Schema.String;
|
|
893
|
+
readonly at: Schema.Number;
|
|
894
|
+
readonly offset: Schema.Int;
|
|
893
895
|
}>>;
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
readonly oid: Schema.String;
|
|
897
|
-
}>]>>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
896
|
+
readonly message: 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,48 +1,44 @@
|
|
|
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
|
-
|
|
6
|
-
}>>, Schema.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
readonly
|
|
13
|
-
|
|
14
|
-
readonly key: Schema.optionalKey<Schema.String>;
|
|
15
|
-
}>>, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
16
|
-
readonly repo: Schema.String;
|
|
17
|
-
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
18
|
-
readonly id: Schema.String;
|
|
19
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
20
|
-
readonly expiresAt: Schema.Number;
|
|
21
|
-
readonly createdAt: Schema.Number;
|
|
22
|
-
readonly subject: Schema.Struct<{
|
|
23
|
-
readonly id: Schema.String;
|
|
24
|
-
}>;
|
|
25
|
-
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
26
|
-
readonly id: Schema.String;
|
|
27
|
-
}>>;
|
|
28
|
-
readonly revokedAt: Schema.optionalKey<Schema.Number>;
|
|
29
|
-
readonly secret: Schema.String;
|
|
30
|
-
}>, Schema.Struct<{
|
|
31
|
-
readonly prefix: Schema.String;
|
|
32
|
-
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
33
|
-
readonly id: Schema.String;
|
|
34
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
35
|
-
readonly expiresAt: Schema.Number;
|
|
36
|
-
readonly createdAt: Schema.Number;
|
|
37
|
-
readonly subject: Schema.Struct<{
|
|
4
|
+
declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEndpoint.HttpApiEndpoint<"listRepo", "GET", "/repos/:repo/-/tokens", Schema.toCodecStringTree<Schema.Struct<{
|
|
5
|
+
repo: Schema.String;
|
|
6
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
7
|
+
after: Schema.optionalKey<Schema.String>;
|
|
8
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
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>;
|
|
38
14
|
readonly id: Schema.String;
|
|
39
|
-
|
|
40
|
-
|
|
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>;
|
|
41
28
|
readonly id: Schema.String;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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<{
|
|
46
42
|
readonly code: "ALREADY_EXISTS";
|
|
47
43
|
readonly message: string;
|
|
48
44
|
readonly hint?: string;
|
|
@@ -881,37 +877,43 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
881
877
|
}>, {
|
|
882
878
|
"ref0-code": Schema.String;
|
|
883
879
|
'www-authenticate': Schema.String;
|
|
884
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
readonly
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
readonly subject: Schema.Struct<{
|
|
894
|
-
readonly id: Schema.String;
|
|
895
|
-
}>;
|
|
896
|
-
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
897
|
-
readonly id: Schema.String;
|
|
898
|
-
}>>;
|
|
899
|
-
readonly revokedAt: Schema.optionalKey<Schema.Number>;
|
|
900
|
-
}>, Schema.Struct<{
|
|
901
|
-
readonly prefix: Schema.String;
|
|
902
|
-
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
903
|
-
readonly id: Schema.String;
|
|
904
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
905
|
-
readonly expiresAt: Schema.Number;
|
|
906
|
-
readonly createdAt: Schema.Number;
|
|
907
|
-
readonly subject: Schema.Struct<{
|
|
880
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"listPrefix", "GET", "/tokens", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
881
|
+
after: Schema.optionalKey<Schema.String>;
|
|
882
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
883
|
+
prefix: Schema.String;
|
|
884
|
+
state: Schema.optionalKey<Schema.Literals<readonly ["active", "expired", "revoked", "all"]>>;
|
|
885
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
886
|
+
readonly items: Schema.mutable<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
887
|
+
readonly repo: Schema.String;
|
|
888
|
+
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
908
889
|
readonly id: Schema.String;
|
|
909
|
-
|
|
910
|
-
|
|
890
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
891
|
+
readonly expiresAt: Schema.Number;
|
|
892
|
+
readonly createdAt: Schema.Number;
|
|
893
|
+
readonly subject: Schema.Struct<{
|
|
894
|
+
readonly id: Schema.String;
|
|
895
|
+
}>;
|
|
896
|
+
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
897
|
+
readonly id: Schema.String;
|
|
898
|
+
}>>;
|
|
899
|
+
readonly revokedAt: Schema.optionalKey<Schema.Number>;
|
|
900
|
+
}>, Schema.Struct<{
|
|
901
|
+
readonly prefix: Schema.String;
|
|
902
|
+
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
911
903
|
readonly id: Schema.String;
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
904
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
905
|
+
readonly expiresAt: Schema.Number;
|
|
906
|
+
readonly createdAt: Schema.Number;
|
|
907
|
+
readonly subject: Schema.Struct<{
|
|
908
|
+
readonly id: Schema.String;
|
|
909
|
+
}>;
|
|
910
|
+
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
911
|
+
readonly id: Schema.String;
|
|
912
|
+
}>>;
|
|
913
|
+
readonly revokedAt: Schema.optionalKey<Schema.Number>;
|
|
914
|
+
}>]>>>;
|
|
915
|
+
readonly next: Schema.optionalKey<Schema.String>;
|
|
916
|
+
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
915
917
|
readonly code: "ALREADY_EXISTS";
|
|
916
918
|
readonly message: string;
|
|
917
919
|
readonly hint?: string;
|
|
@@ -1310,43 +1312,48 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
1310
1312
|
}>, {
|
|
1311
1313
|
"ref0-code": Schema.String;
|
|
1312
1314
|
'www-authenticate': Schema.String;
|
|
1313
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1314
|
-
after: Schema.optionalKey<Schema.String>;
|
|
1315
|
-
limit: Schema.optionalKey<Schema.Int>;
|
|
1315
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"createPrefix", "POST", "/tokens", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
1316
1316
|
prefix: Schema.String;
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
readonly
|
|
1320
|
-
|
|
1321
|
-
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
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<{
|
|
1322
1321
|
readonly id: Schema.String;
|
|
1323
|
-
readonly
|
|
1324
|
-
readonly
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
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<{
|
|
1327
|
+
readonly repo: Schema.String;
|
|
1328
|
+
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
1329
|
+
readonly id: Schema.String;
|
|
1330
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
1331
|
+
readonly expiresAt: Schema.Number;
|
|
1332
|
+
readonly createdAt: Schema.Number;
|
|
1333
|
+
readonly subject: Schema.Struct<{
|
|
1336
1334
|
readonly id: Schema.String;
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
readonly
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
readonly
|
|
1349
|
-
|
|
1335
|
+
}>;
|
|
1336
|
+
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
1337
|
+
readonly id: Schema.String;
|
|
1338
|
+
}>>;
|
|
1339
|
+
readonly revokedAt: Schema.optionalKey<Schema.Number>;
|
|
1340
|
+
readonly secret: Schema.String;
|
|
1341
|
+
}>, Schema.Struct<{
|
|
1342
|
+
readonly prefix: Schema.String;
|
|
1343
|
+
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
1344
|
+
readonly id: Schema.String;
|
|
1345
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
1346
|
+
readonly expiresAt: Schema.Number;
|
|
1347
|
+
readonly createdAt: Schema.Number;
|
|
1348
|
+
readonly subject: Schema.Struct<{
|
|
1349
|
+
readonly id: Schema.String;
|
|
1350
|
+
}>;
|
|
1351
|
+
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
1352
|
+
readonly id: Schema.String;
|
|
1353
|
+
}>>;
|
|
1354
|
+
readonly revokedAt: Schema.optionalKey<Schema.Number>;
|
|
1355
|
+
readonly secret: Schema.String;
|
|
1356
|
+
}>]>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
1350
1357
|
readonly code: "ALREADY_EXISTS";
|
|
1351
1358
|
readonly message: string;
|
|
1352
1359
|
readonly hint?: string;
|
|
@@ -1745,44 +1752,11 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
1745
1752
|
}>, {
|
|
1746
1753
|
"ref0-code": Schema.String;
|
|
1747
1754
|
'www-authenticate': Schema.String;
|
|
1748
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1749
|
-
|
|
1755
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"revoke", "DELETE", "/tokens/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
1756
|
+
id: Schema.String;
|
|
1750
1757
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
state: Schema.optionalKey<Schema.Literals<readonly ["active", "expired", "revoked", "all"]>>;
|
|
1754
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1755
|
-
readonly items: Schema.mutable<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1756
|
-
readonly repo: Schema.String;
|
|
1757
|
-
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
1758
|
-
readonly id: Schema.String;
|
|
1759
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
1760
|
-
readonly expiresAt: Schema.Number;
|
|
1761
|
-
readonly createdAt: Schema.Number;
|
|
1762
|
-
readonly subject: Schema.Struct<{
|
|
1763
|
-
readonly id: Schema.String;
|
|
1764
|
-
}>;
|
|
1765
|
-
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
1766
|
-
readonly id: Schema.String;
|
|
1767
|
-
}>>;
|
|
1768
|
-
readonly revokedAt: Schema.optionalKey<Schema.Number>;
|
|
1769
|
-
}>, Schema.Struct<{
|
|
1770
|
-
readonly prefix: Schema.String;
|
|
1771
|
-
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
1772
|
-
readonly id: Schema.String;
|
|
1773
|
-
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
1774
|
-
readonly expiresAt: Schema.Number;
|
|
1775
|
-
readonly createdAt: Schema.Number;
|
|
1776
|
-
readonly subject: Schema.Struct<{
|
|
1777
|
-
readonly id: Schema.String;
|
|
1778
|
-
}>;
|
|
1779
|
-
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
1780
|
-
readonly id: Schema.String;
|
|
1781
|
-
}>>;
|
|
1782
|
-
readonly revokedAt: Schema.optionalKey<Schema.Number>;
|
|
1783
|
-
}>]>>>;
|
|
1784
|
-
readonly next: Schema.optionalKey<Schema.String>;
|
|
1785
|
-
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
1758
|
+
key: Schema.optionalKey<Schema.String>;
|
|
1759
|
+
}>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
1786
1760
|
readonly code: "ALREADY_EXISTS";
|
|
1787
1761
|
readonly message: string;
|
|
1788
1762
|
readonly hint?: string;
|
|
@@ -2181,11 +2155,37 @@ declare const TokensApiGroup_base: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEn
|
|
|
2181
2155
|
}>, {
|
|
2182
2156
|
"ref0-code": Schema.String;
|
|
2183
2157
|
'www-authenticate': Schema.String;
|
|
2184
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
2158
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/tokens/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
2185
2159
|
id: Schema.String;
|
|
2186
|
-
}>>, Schema.
|
|
2187
|
-
|
|
2188
|
-
|
|
2160
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Union<readonly [Schema.Struct<{
|
|
2161
|
+
readonly repo: Schema.String;
|
|
2162
|
+
readonly prefix: Schema.optionalKey<Schema.Never>;
|
|
2163
|
+
readonly id: Schema.String;
|
|
2164
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
2165
|
+
readonly expiresAt: Schema.Number;
|
|
2166
|
+
readonly createdAt: Schema.Number;
|
|
2167
|
+
readonly subject: Schema.Struct<{
|
|
2168
|
+
readonly id: Schema.String;
|
|
2169
|
+
}>;
|
|
2170
|
+
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
2171
|
+
readonly id: Schema.String;
|
|
2172
|
+
}>>;
|
|
2173
|
+
readonly revokedAt: Schema.optionalKey<Schema.Number>;
|
|
2174
|
+
}>, Schema.Struct<{
|
|
2175
|
+
readonly prefix: Schema.String;
|
|
2176
|
+
readonly repo: Schema.optionalKey<Schema.Never>;
|
|
2177
|
+
readonly id: Schema.String;
|
|
2178
|
+
readonly scope: Schema.Literals<readonly ["read", "report", "write", "admin"]>;
|
|
2179
|
+
readonly expiresAt: Schema.Number;
|
|
2180
|
+
readonly createdAt: Schema.Number;
|
|
2181
|
+
readonly subject: Schema.Struct<{
|
|
2182
|
+
readonly id: Schema.String;
|
|
2183
|
+
}>;
|
|
2184
|
+
readonly actor: Schema.optionalKey<Schema.Struct<{
|
|
2185
|
+
readonly id: Schema.String;
|
|
2186
|
+
}>>;
|
|
2187
|
+
readonly revokedAt: Schema.optionalKey<Schema.Number>;
|
|
2188
|
+
}>]>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
2189
2189
|
readonly code: "ALREADY_EXISTS";
|
|
2190
2190
|
readonly message: string;
|
|
2191
2191
|
readonly hint?: string;
|