@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/commits.d.mts
CHANGED
|
@@ -1,56 +1,43 @@
|
|
|
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 CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApiEndpoint.HttpApiEndpoint<"
|
|
4
|
+
declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/repos/:repo/-/commits", Schema.toCodecStringTree<Schema.Struct<{
|
|
5
5
|
repo: Schema.String;
|
|
6
|
-
}>>,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
readonly
|
|
24
|
-
readonly
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
readonly
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
6
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
7
|
+
objects: Schema.optionalKey<Schema.Int>;
|
|
8
|
+
bytes: Schema.optionalKey<Schema.Int>;
|
|
9
|
+
entries: Schema.optionalKey<Schema.Int>;
|
|
10
|
+
milliseconds: Schema.optionalKey<Schema.Int>;
|
|
11
|
+
after: Schema.optionalKey<Schema.String>;
|
|
12
|
+
limit: Schema.optionalKey<Schema.Int>;
|
|
13
|
+
ref: Schema.String;
|
|
14
|
+
path: Schema.optionalKey<Schema.String>;
|
|
15
|
+
authors: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
16
|
+
committers: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
17
|
+
since: Schema.optionalKey<Schema.Number>;
|
|
18
|
+
until: Schema.optionalKey<Schema.Number>;
|
|
19
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
20
|
+
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
21
|
+
readonly oid: Schema.String;
|
|
22
|
+
readonly tree: Schema.String;
|
|
23
|
+
readonly parents: Schema.$Array<Schema.String>;
|
|
24
|
+
readonly author: Schema.Struct<{
|
|
25
|
+
readonly name: Schema.String;
|
|
26
|
+
readonly email: Schema.String;
|
|
27
|
+
readonly at: Schema.Number;
|
|
28
|
+
readonly offset: Schema.Int;
|
|
29
|
+
}>;
|
|
30
|
+
readonly committer: Schema.Struct<{
|
|
31
|
+
readonly name: Schema.String;
|
|
32
|
+
readonly email: Schema.String;
|
|
33
|
+
readonly at: Schema.Number;
|
|
34
|
+
readonly offset: Schema.Int;
|
|
35
|
+
}>;
|
|
36
|
+
readonly subject: Schema.String;
|
|
37
|
+
readonly message: Schema.String;
|
|
38
|
+
readonly signature: Schema.optionalKey<Schema.String>;
|
|
34
39
|
}>>>;
|
|
35
|
-
|
|
36
|
-
readonly oid: Schema.String;
|
|
37
|
-
readonly tree: Schema.String;
|
|
38
|
-
readonly parents: Schema.$Array<Schema.String>;
|
|
39
|
-
readonly author: Schema.Struct<{
|
|
40
|
-
readonly name: Schema.String;
|
|
41
|
-
readonly email: Schema.String;
|
|
42
|
-
readonly at: Schema.Number;
|
|
43
|
-
readonly offset: Schema.Int;
|
|
44
|
-
}>;
|
|
45
|
-
readonly committer: Schema.Struct<{
|
|
46
|
-
readonly name: Schema.String;
|
|
47
|
-
readonly email: Schema.String;
|
|
48
|
-
readonly at: Schema.Number;
|
|
49
|
-
readonly offset: Schema.Int;
|
|
50
|
-
}>;
|
|
51
|
-
readonly subject: Schema.String;
|
|
52
|
-
readonly message: Schema.String;
|
|
53
|
-
readonly signature: Schema.optionalKey<Schema.String>;
|
|
40
|
+
readonly next: Schema.optionalKey<Schema.String>;
|
|
54
41
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
55
42
|
readonly code: "ALREADY_EXISTS";
|
|
56
43
|
readonly message: string;
|
|
@@ -450,39 +437,56 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
|
|
|
450
437
|
}>, {
|
|
451
438
|
"ref0-code": Schema.String;
|
|
452
439
|
'www-authenticate': Schema.String;
|
|
453
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
440
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/repos/:repo/-/commits", Schema.toCodecStringTree<Schema.Struct<{
|
|
454
441
|
repo: Schema.String;
|
|
455
|
-
}>>, Schema.
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
readonly
|
|
467
|
-
readonly
|
|
468
|
-
readonly
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
readonly
|
|
482
|
-
readonly
|
|
483
|
-
readonly signature: Schema.optionalKey<Schema.String>;
|
|
442
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
443
|
+
readonly message: Schema.String;
|
|
444
|
+
readonly author: Schema.Struct<{
|
|
445
|
+
readonly name: Schema.String;
|
|
446
|
+
readonly email: Schema.String;
|
|
447
|
+
readonly at: Schema.Number;
|
|
448
|
+
readonly offset: Schema.Int;
|
|
449
|
+
}>;
|
|
450
|
+
readonly parents: Schema.$Array<Schema.String>;
|
|
451
|
+
readonly committer: Schema.optionalKey<Schema.Struct<{
|
|
452
|
+
readonly name: Schema.String;
|
|
453
|
+
readonly email: Schema.String;
|
|
454
|
+
readonly at: Schema.Number;
|
|
455
|
+
readonly offset: Schema.Int;
|
|
456
|
+
}>>;
|
|
457
|
+
readonly signature: Schema.optionalKey<Schema.String>;
|
|
458
|
+
readonly ref: Schema.optionalKey<Schema.Struct<{
|
|
459
|
+
readonly name: Schema.String;
|
|
460
|
+
readonly from: Schema.NullOr<Schema.String>;
|
|
461
|
+
}>>;
|
|
462
|
+
readonly key: Schema.optionalKey<Schema.String>;
|
|
463
|
+
readonly tree: Schema.optionalKey<Schema.String>;
|
|
464
|
+
readonly changes: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
465
|
+
readonly path: Schema.String;
|
|
466
|
+
readonly mode: Schema.optionalKey<Schema.String>;
|
|
467
|
+
readonly oid: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
468
|
+
readonly content: Schema.optionalKey<Schema.String>;
|
|
469
|
+
readonly contentBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
484
470
|
}>>>;
|
|
485
|
-
|
|
471
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
472
|
+
readonly oid: Schema.String;
|
|
473
|
+
readonly tree: Schema.String;
|
|
474
|
+
readonly parents: Schema.$Array<Schema.String>;
|
|
475
|
+
readonly author: Schema.Struct<{
|
|
476
|
+
readonly name: Schema.String;
|
|
477
|
+
readonly email: Schema.String;
|
|
478
|
+
readonly at: Schema.Number;
|
|
479
|
+
readonly offset: Schema.Int;
|
|
480
|
+
}>;
|
|
481
|
+
readonly committer: Schema.Struct<{
|
|
482
|
+
readonly name: Schema.String;
|
|
483
|
+
readonly email: Schema.String;
|
|
484
|
+
readonly at: Schema.Number;
|
|
485
|
+
readonly offset: Schema.Int;
|
|
486
|
+
}>;
|
|
487
|
+
readonly subject: Schema.String;
|
|
488
|
+
readonly message: Schema.String;
|
|
489
|
+
readonly signature: Schema.optionalKey<Schema.String>;
|
|
486
490
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
487
491
|
readonly code: "ALREADY_EXISTS";
|
|
488
492
|
readonly message: string;
|
|
@@ -882,15 +886,26 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
|
|
|
882
886
|
}>, {
|
|
883
887
|
"ref0-code": Schema.String;
|
|
884
888
|
'www-authenticate': Schema.String;
|
|
885
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
889
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"revert", "POST", "/repos/:repo/-/commits/revert", Schema.toCodecStringTree<Schema.Struct<{
|
|
886
890
|
repo: Schema.String;
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
readonly
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
891
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
892
|
+
readonly message: Schema.String;
|
|
893
|
+
readonly author: Schema.Struct<{
|
|
894
|
+
readonly name: Schema.String;
|
|
895
|
+
readonly email: Schema.String;
|
|
896
|
+
readonly at: Schema.Number;
|
|
897
|
+
readonly offset: Schema.Int;
|
|
898
|
+
}>;
|
|
899
|
+
readonly commit: Schema.String;
|
|
900
|
+
readonly onto: Schema.String;
|
|
901
|
+
readonly committer: Schema.optionalKey<Schema.Struct<{
|
|
902
|
+
readonly name: Schema.String;
|
|
903
|
+
readonly email: Schema.String;
|
|
904
|
+
readonly at: Schema.Number;
|
|
905
|
+
readonly offset: Schema.Int;
|
|
906
|
+
}>>;
|
|
907
|
+
readonly key: Schema.optionalKey<Schema.String>;
|
|
908
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
894
909
|
readonly oid: Schema.String;
|
|
895
910
|
readonly tree: Schema.String;
|
|
896
911
|
readonly parents: Schema.$Array<Schema.String>;
|
|
@@ -1308,79 +1323,41 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
|
|
|
1308
1323
|
}>, {
|
|
1309
1324
|
"ref0-code": Schema.String;
|
|
1310
1325
|
'www-authenticate': Schema.String;
|
|
1311
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1326
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"pick", "POST", "/repos/:repo/-/commits/pick", Schema.toCodecStringTree<Schema.Struct<{
|
|
1312
1327
|
repo: Schema.String;
|
|
1313
1328
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1314
|
-
readonly
|
|
1315
|
-
readonly
|
|
1316
|
-
readonly
|
|
1317
|
-
|
|
1318
|
-
readonly
|
|
1319
|
-
readonly
|
|
1320
|
-
|
|
1321
|
-
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
1322
|
-
readonly after: Schema.optionalKey<Schema.String>;
|
|
1323
|
-
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
1329
|
+
readonly commit: Schema.String;
|
|
1330
|
+
readonly onto: Schema.String;
|
|
1331
|
+
readonly committer: Schema.optionalKey<Schema.Struct<{
|
|
1332
|
+
readonly name: Schema.String;
|
|
1333
|
+
readonly email: Schema.String;
|
|
1334
|
+
readonly at: Schema.Number;
|
|
1335
|
+
readonly offset: Schema.Int;
|
|
1324
1336
|
}>>;
|
|
1325
|
-
readonly
|
|
1326
|
-
readonly
|
|
1327
|
-
readonly
|
|
1328
|
-
readonly entries: Schema.optionalKey<Schema.Int>;
|
|
1329
|
-
readonly milliseconds: Schema.optionalKey<Schema.Int>;
|
|
1337
|
+
readonly ref: Schema.optionalKey<Schema.Struct<{
|
|
1338
|
+
readonly name: Schema.String;
|
|
1339
|
+
readonly from: Schema.NullOr<Schema.String>;
|
|
1330
1340
|
}>>;
|
|
1341
|
+
readonly key: Schema.optionalKey<Schema.String>;
|
|
1331
1342
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1332
|
-
readonly
|
|
1333
|
-
readonly
|
|
1334
|
-
readonly
|
|
1335
|
-
readonly
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
readonly
|
|
1339
|
-
|
|
1340
|
-
readonly tree: Schema.String;
|
|
1341
|
-
readonly parents: Schema.$Array<Schema.String>;
|
|
1342
|
-
readonly author: Schema.Struct<{
|
|
1343
|
-
readonly name: Schema.String;
|
|
1344
|
-
readonly email: Schema.String;
|
|
1345
|
-
readonly at: Schema.Number;
|
|
1346
|
-
readonly offset: Schema.Int;
|
|
1347
|
-
}>;
|
|
1348
|
-
readonly committer: Schema.Struct<{
|
|
1349
|
-
readonly name: Schema.String;
|
|
1350
|
-
readonly email: Schema.String;
|
|
1351
|
-
readonly at: Schema.Number;
|
|
1352
|
-
readonly offset: Schema.Int;
|
|
1353
|
-
}>;
|
|
1354
|
-
readonly subject: Schema.String;
|
|
1355
|
-
readonly message: Schema.String;
|
|
1356
|
-
readonly signature: Schema.optionalKey<Schema.String>;
|
|
1357
|
-
}>>>;
|
|
1358
|
-
readonly next: Schema.optionalKey<Schema.String>;
|
|
1343
|
+
readonly oid: Schema.String;
|
|
1344
|
+
readonly tree: Schema.String;
|
|
1345
|
+
readonly parents: Schema.$Array<Schema.String>;
|
|
1346
|
+
readonly author: Schema.Struct<{
|
|
1347
|
+
readonly name: Schema.String;
|
|
1348
|
+
readonly email: Schema.String;
|
|
1349
|
+
readonly at: Schema.Number;
|
|
1350
|
+
readonly offset: Schema.Int;
|
|
1359
1351
|
}>;
|
|
1360
|
-
readonly
|
|
1361
|
-
readonly
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
readonly similarity: Schema.optionalKey<Schema.Number>;
|
|
1366
|
-
readonly old: Schema.optionalKey<Schema.Struct<{
|
|
1367
|
-
readonly mode: Schema.String;
|
|
1368
|
-
readonly oid: Schema.String;
|
|
1369
|
-
}>>;
|
|
1370
|
-
readonly new: Schema.optionalKey<Schema.Struct<{
|
|
1371
|
-
readonly mode: Schema.String;
|
|
1372
|
-
readonly oid: Schema.String;
|
|
1373
|
-
}>>;
|
|
1374
|
-
readonly pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
1375
|
-
readonly fromPathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
1376
|
-
readonly lines: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1377
|
-
readonly added: Schema.Int;
|
|
1378
|
-
readonly deleted: Schema.Int;
|
|
1379
|
-
}>, Schema.Literal<"binary">]>>;
|
|
1380
|
-
}>>>;
|
|
1381
|
-
readonly next: Schema.optionalKey<Schema.String>;
|
|
1382
|
-
readonly renamesSkipped: Schema.optionalKey<Schema.Literals<readonly ["rename-limit", "memory-limit"]>>;
|
|
1352
|
+
readonly committer: Schema.Struct<{
|
|
1353
|
+
readonly name: Schema.String;
|
|
1354
|
+
readonly email: Schema.String;
|
|
1355
|
+
readonly at: Schema.Number;
|
|
1356
|
+
readonly offset: Schema.Int;
|
|
1383
1357
|
}>;
|
|
1358
|
+
readonly subject: Schema.String;
|
|
1359
|
+
readonly message: Schema.String;
|
|
1360
|
+
readonly signature: Schema.optionalKey<Schema.String>;
|
|
1384
1361
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
1385
1362
|
readonly code: "ALREADY_EXISTS";
|
|
1386
1363
|
readonly message: string;
|
|
@@ -1780,41 +1757,33 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
|
|
|
1780
1757
|
}>, {
|
|
1781
1758
|
"ref0-code": Schema.String;
|
|
1782
1759
|
'www-authenticate': Schema.String;
|
|
1783
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1760
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/repos/:repo/-/commits/:oid", Schema.toCodecStringTree<Schema.Struct<{
|
|
1784
1761
|
repo: Schema.String;
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
readonly
|
|
1788
|
-
readonly
|
|
1789
|
-
readonly
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
readonly
|
|
1796
|
-
readonly
|
|
1797
|
-
readonly
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
readonly mode: Schema.String;
|
|
1811
|
-
readonly oid: Schema.String;
|
|
1812
|
-
}>>;
|
|
1813
|
-
pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
1814
|
-
fromPathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
1815
|
-
}>>>;
|
|
1816
|
-
readonly next: Schema.optionalKey<Schema.String>;
|
|
1817
|
-
readonly renamesSkipped: Schema.optionalKey<Schema.Literals<readonly ["rename-limit", "memory-limit"]>>;
|
|
1762
|
+
oid: Schema.String;
|
|
1763
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
1764
|
+
readonly objects: Schema.optionalKey<Schema.Int>;
|
|
1765
|
+
readonly bytes: Schema.optionalKey<Schema.Int>;
|
|
1766
|
+
readonly entries: Schema.optionalKey<Schema.Int>;
|
|
1767
|
+
readonly milliseconds: Schema.optionalKey<Schema.Int>;
|
|
1768
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1769
|
+
readonly oid: Schema.String;
|
|
1770
|
+
readonly tree: Schema.String;
|
|
1771
|
+
readonly parents: Schema.$Array<Schema.String>;
|
|
1772
|
+
readonly author: Schema.Struct<{
|
|
1773
|
+
readonly name: Schema.String;
|
|
1774
|
+
readonly email: Schema.String;
|
|
1775
|
+
readonly at: Schema.Number;
|
|
1776
|
+
readonly offset: Schema.Int;
|
|
1777
|
+
}>;
|
|
1778
|
+
readonly committer: Schema.Struct<{
|
|
1779
|
+
readonly name: Schema.String;
|
|
1780
|
+
readonly email: Schema.String;
|
|
1781
|
+
readonly at: Schema.Number;
|
|
1782
|
+
readonly offset: Schema.Int;
|
|
1783
|
+
}>;
|
|
1784
|
+
readonly subject: Schema.String;
|
|
1785
|
+
readonly message: Schema.String;
|
|
1786
|
+
readonly signature: Schema.optionalKey<Schema.String>;
|
|
1818
1787
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
1819
1788
|
readonly code: "ALREADY_EXISTS";
|
|
1820
1789
|
readonly message: string;
|
|
@@ -2625,41 +2594,41 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
|
|
|
2625
2594
|
}>, {
|
|
2626
2595
|
"ref0-code": Schema.String;
|
|
2627
2596
|
'www-authenticate': Schema.String;
|
|
2628
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
2597
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"diff", "POST", "/repos/:repo/-/commits/diff", Schema.toCodecStringTree<Schema.Struct<{
|
|
2629
2598
|
repo: Schema.String;
|
|
2630
2599
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2631
|
-
readonly
|
|
2632
|
-
readonly
|
|
2633
|
-
readonly
|
|
2634
|
-
|
|
2635
|
-
readonly
|
|
2636
|
-
readonly
|
|
2637
|
-
readonly
|
|
2600
|
+
readonly base: Schema.String;
|
|
2601
|
+
readonly head: Schema.String;
|
|
2602
|
+
readonly renames: Schema.optionalKey<Schema.Boolean>;
|
|
2603
|
+
readonly limits: Schema.optionalKey<Schema.Struct<{
|
|
2604
|
+
readonly objects: Schema.optionalKey<Schema.Int>;
|
|
2605
|
+
readonly bytes: Schema.optionalKey<Schema.Int>;
|
|
2606
|
+
readonly entries: Schema.optionalKey<Schema.Int>;
|
|
2607
|
+
readonly milliseconds: Schema.optionalKey<Schema.Int>;
|
|
2638
2608
|
}>>;
|
|
2639
|
-
readonly
|
|
2640
|
-
readonly
|
|
2641
|
-
readonly
|
|
2609
|
+
readonly page: Schema.optionalKey<Schema.Struct<{
|
|
2610
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
2611
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
2642
2612
|
}>>;
|
|
2643
|
-
readonly key: Schema.optionalKey<Schema.String>;
|
|
2644
2613
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2645
|
-
readonly
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
readonly
|
|
2662
|
-
readonly
|
|
2614
|
+
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
2615
|
+
status: Schema.Literals<readonly ["A", "D", "M", "R", "T"]>;
|
|
2616
|
+
path: Schema.String;
|
|
2617
|
+
from: Schema.optionalKey<Schema.String>;
|
|
2618
|
+
similarity: Schema.optionalKey<Schema.Number>;
|
|
2619
|
+
old: Schema.optionalKey<Schema.Struct<{
|
|
2620
|
+
readonly mode: Schema.String;
|
|
2621
|
+
readonly oid: Schema.String;
|
|
2622
|
+
}>>;
|
|
2623
|
+
new: Schema.optionalKey<Schema.Struct<{
|
|
2624
|
+
readonly mode: Schema.String;
|
|
2625
|
+
readonly oid: Schema.String;
|
|
2626
|
+
}>>;
|
|
2627
|
+
pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
2628
|
+
fromPathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
2629
|
+
}>>>;
|
|
2630
|
+
readonly next: Schema.optionalKey<Schema.String>;
|
|
2631
|
+
readonly renamesSkipped: Schema.optionalKey<Schema.Literals<readonly ["rename-limit", "memory-limit"]>>;
|
|
2663
2632
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
2664
2633
|
readonly code: "ALREADY_EXISTS";
|
|
2665
2634
|
readonly message: string;
|
|
@@ -3059,44 +3028,79 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
|
|
|
3059
3028
|
}>, {
|
|
3060
3029
|
"ref0-code": Schema.String;
|
|
3061
3030
|
'www-authenticate': Schema.String;
|
|
3062
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
3031
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"compare", "POST", "/repos/:repo/-/commits/compare", Schema.toCodecStringTree<Schema.Struct<{
|
|
3063
3032
|
repo: Schema.String;
|
|
3064
3033
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3065
|
-
readonly
|
|
3066
|
-
readonly
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
readonly
|
|
3070
|
-
readonly
|
|
3071
|
-
}
|
|
3072
|
-
readonly
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
readonly
|
|
3078
|
-
readonly
|
|
3034
|
+
readonly base: Schema.String;
|
|
3035
|
+
readonly head: Schema.String;
|
|
3036
|
+
readonly renames: Schema.optionalKey<Schema.Boolean>;
|
|
3037
|
+
readonly commits: Schema.optionalKey<Schema.Struct<{
|
|
3038
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
3039
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
3040
|
+
}>>;
|
|
3041
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
3042
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
3043
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
3044
|
+
}>>;
|
|
3045
|
+
readonly limits: Schema.optionalKey<Schema.Struct<{
|
|
3046
|
+
readonly objects: Schema.optionalKey<Schema.Int>;
|
|
3047
|
+
readonly bytes: Schema.optionalKey<Schema.Int>;
|
|
3048
|
+
readonly entries: Schema.optionalKey<Schema.Int>;
|
|
3049
|
+
readonly milliseconds: Schema.optionalKey<Schema.Int>;
|
|
3079
3050
|
}>>;
|
|
3080
|
-
readonly key: Schema.optionalKey<Schema.String>;
|
|
3081
3051
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3082
|
-
readonly
|
|
3083
|
-
readonly
|
|
3084
|
-
readonly
|
|
3085
|
-
readonly
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
readonly
|
|
3089
|
-
|
|
3052
|
+
readonly base: Schema.String;
|
|
3053
|
+
readonly head: Schema.String;
|
|
3054
|
+
readonly mergeBase: Schema.optionalKey<Schema.String>;
|
|
3055
|
+
readonly ahead: Schema.Int;
|
|
3056
|
+
readonly behind: Schema.Int;
|
|
3057
|
+
readonly commits: Schema.Struct<{
|
|
3058
|
+
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
3059
|
+
readonly oid: Schema.String;
|
|
3060
|
+
readonly tree: Schema.String;
|
|
3061
|
+
readonly parents: Schema.$Array<Schema.String>;
|
|
3062
|
+
readonly author: Schema.Struct<{
|
|
3063
|
+
readonly name: Schema.String;
|
|
3064
|
+
readonly email: Schema.String;
|
|
3065
|
+
readonly at: Schema.Number;
|
|
3066
|
+
readonly offset: Schema.Int;
|
|
3067
|
+
}>;
|
|
3068
|
+
readonly committer: Schema.Struct<{
|
|
3069
|
+
readonly name: Schema.String;
|
|
3070
|
+
readonly email: Schema.String;
|
|
3071
|
+
readonly at: Schema.Number;
|
|
3072
|
+
readonly offset: Schema.Int;
|
|
3073
|
+
}>;
|
|
3074
|
+
readonly subject: Schema.String;
|
|
3075
|
+
readonly message: Schema.String;
|
|
3076
|
+
readonly signature: Schema.optionalKey<Schema.String>;
|
|
3077
|
+
}>>>;
|
|
3078
|
+
readonly next: Schema.optionalKey<Schema.String>;
|
|
3090
3079
|
}>;
|
|
3091
|
-
readonly
|
|
3092
|
-
readonly
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3080
|
+
readonly files: Schema.Struct<{
|
|
3081
|
+
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
3082
|
+
readonly status: Schema.Literals<readonly ["A", "D", "M", "R", "T"]>;
|
|
3083
|
+
readonly path: Schema.String;
|
|
3084
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
3085
|
+
readonly similarity: Schema.optionalKey<Schema.Number>;
|
|
3086
|
+
readonly old: Schema.optionalKey<Schema.Struct<{
|
|
3087
|
+
readonly mode: Schema.String;
|
|
3088
|
+
readonly oid: Schema.String;
|
|
3089
|
+
}>>;
|
|
3090
|
+
readonly new: Schema.optionalKey<Schema.Struct<{
|
|
3091
|
+
readonly mode: Schema.String;
|
|
3092
|
+
readonly oid: Schema.String;
|
|
3093
|
+
}>>;
|
|
3094
|
+
readonly pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
3095
|
+
readonly fromPathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
3096
|
+
readonly lines: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3097
|
+
readonly added: Schema.Int;
|
|
3098
|
+
readonly deleted: Schema.Int;
|
|
3099
|
+
}>, Schema.Literal<"binary">]>>;
|
|
3100
|
+
}>>>;
|
|
3101
|
+
readonly next: Schema.optionalKey<Schema.String>;
|
|
3102
|
+
readonly renamesSkipped: Schema.optionalKey<Schema.Literals<readonly ["rename-limit", "memory-limit"]>>;
|
|
3096
3103
|
}>;
|
|
3097
|
-
readonly subject: Schema.String;
|
|
3098
|
-
readonly message: Schema.String;
|
|
3099
|
-
readonly signature: Schema.optionalKey<Schema.String>;
|
|
3100
3104
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
3101
3105
|
readonly code: "ALREADY_EXISTS";
|
|
3102
3106
|
readonly message: string;
|