@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/commits.d.mts
CHANGED
|
@@ -437,38 +437,15 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
|
|
|
437
437
|
}>, {
|
|
438
438
|
"ref0-code": Schema.String;
|
|
439
439
|
'www-authenticate': Schema.String;
|
|
440
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
440
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/repos/:repo/-/commits/:oid", Schema.toCodecStringTree<Schema.Struct<{
|
|
441
441
|
repo: Schema.String;
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
readonly
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
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>;
|
|
470
|
-
}>>>;
|
|
471
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
442
|
+
oid: Schema.String;
|
|
443
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
444
|
+
readonly objects: Schema.optionalKey<Schema.Int>;
|
|
445
|
+
readonly bytes: Schema.optionalKey<Schema.Int>;
|
|
446
|
+
readonly entries: Schema.optionalKey<Schema.Int>;
|
|
447
|
+
readonly milliseconds: Schema.optionalKey<Schema.Int>;
|
|
448
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
472
449
|
readonly oid: Schema.String;
|
|
473
450
|
readonly tree: Schema.String;
|
|
474
451
|
readonly parents: Schema.$Array<Schema.String>;
|
|
@@ -886,7 +863,7 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
|
|
|
886
863
|
}>, {
|
|
887
864
|
"ref0-code": Schema.String;
|
|
888
865
|
'www-authenticate': Schema.String;
|
|
889
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
866
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/repos/:repo/-/commits", Schema.toCodecStringTree<Schema.Struct<{
|
|
890
867
|
repo: Schema.String;
|
|
891
868
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
892
869
|
readonly message: Schema.String;
|
|
@@ -896,15 +873,27 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
|
|
|
896
873
|
readonly at: Schema.Number;
|
|
897
874
|
readonly offset: Schema.Int;
|
|
898
875
|
}>;
|
|
899
|
-
readonly
|
|
900
|
-
readonly onto: Schema.String;
|
|
876
|
+
readonly parents: Schema.$Array<Schema.String>;
|
|
901
877
|
readonly committer: Schema.optionalKey<Schema.Struct<{
|
|
902
878
|
readonly name: Schema.String;
|
|
903
879
|
readonly email: Schema.String;
|
|
904
880
|
readonly at: Schema.Number;
|
|
905
881
|
readonly offset: Schema.Int;
|
|
906
882
|
}>>;
|
|
883
|
+
readonly signature: Schema.optionalKey<Schema.String>;
|
|
884
|
+
readonly ref: Schema.optionalKey<Schema.Struct<{
|
|
885
|
+
readonly name: Schema.String;
|
|
886
|
+
readonly from: Schema.NullOr<Schema.String>;
|
|
887
|
+
}>>;
|
|
907
888
|
readonly key: Schema.optionalKey<Schema.String>;
|
|
889
|
+
readonly tree: Schema.optionalKey<Schema.String>;
|
|
890
|
+
readonly changes: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
891
|
+
readonly path: Schema.String;
|
|
892
|
+
readonly mode: Schema.optionalKey<Schema.String>;
|
|
893
|
+
readonly oid: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
894
|
+
readonly content: Schema.optionalKey<Schema.String>;
|
|
895
|
+
readonly contentBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
896
|
+
}>>>;
|
|
908
897
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
909
898
|
readonly oid: Schema.String;
|
|
910
899
|
readonly tree: Schema.String;
|
|
@@ -1323,41 +1312,18 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
|
|
|
1323
1312
|
}>, {
|
|
1324
1313
|
"ref0-code": Schema.String;
|
|
1325
1314
|
'www-authenticate': Schema.String;
|
|
1326
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1315
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"mergeBase", "POST", "/repos/:repo/-/commits/merge-base", Schema.toCodecStringTree<Schema.Struct<{
|
|
1327
1316
|
repo: Schema.String;
|
|
1328
1317
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1329
|
-
readonly
|
|
1330
|
-
readonly
|
|
1331
|
-
|
|
1332
|
-
readonly
|
|
1333
|
-
readonly
|
|
1334
|
-
readonly
|
|
1335
|
-
readonly offset: Schema.Int;
|
|
1336
|
-
}>>;
|
|
1337
|
-
readonly ref: Schema.optionalKey<Schema.Struct<{
|
|
1338
|
-
readonly name: Schema.String;
|
|
1339
|
-
readonly from: Schema.NullOr<Schema.String>;
|
|
1318
|
+
readonly commits: Schema.$Array<Schema.String>;
|
|
1319
|
+
readonly limits: Schema.optionalKey<Schema.Struct<{
|
|
1320
|
+
readonly objects: Schema.optionalKey<Schema.Int>;
|
|
1321
|
+
readonly bytes: Schema.optionalKey<Schema.Int>;
|
|
1322
|
+
readonly entries: Schema.optionalKey<Schema.Int>;
|
|
1323
|
+
readonly milliseconds: Schema.optionalKey<Schema.Int>;
|
|
1340
1324
|
}>>;
|
|
1341
|
-
readonly key: Schema.optionalKey<Schema.String>;
|
|
1342
1325
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1343
|
-
readonly
|
|
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;
|
|
1351
|
-
}>;
|
|
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;
|
|
1357
|
-
}>;
|
|
1358
|
-
readonly subject: Schema.String;
|
|
1359
|
-
readonly message: Schema.String;
|
|
1360
|
-
readonly signature: Schema.optionalKey<Schema.String>;
|
|
1326
|
+
readonly bases: Schema.$Array<Schema.String>;
|
|
1361
1327
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
1362
1328
|
readonly code: "ALREADY_EXISTS";
|
|
1363
1329
|
readonly message: string;
|
|
@@ -1757,33 +1723,41 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
|
|
|
1757
1723
|
}>, {
|
|
1758
1724
|
"ref0-code": Schema.String;
|
|
1759
1725
|
'www-authenticate': Schema.String;
|
|
1760
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1726
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"diff", "POST", "/repos/:repo/-/commits/diff", Schema.toCodecStringTree<Schema.Struct<{
|
|
1761
1727
|
repo: Schema.String;
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
readonly
|
|
1765
|
-
readonly
|
|
1766
|
-
readonly
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
readonly
|
|
1773
|
-
readonly
|
|
1774
|
-
readonly
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1728
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1729
|
+
readonly base: Schema.String;
|
|
1730
|
+
readonly head: Schema.String;
|
|
1731
|
+
readonly renames: Schema.optionalKey<Schema.Boolean>;
|
|
1732
|
+
readonly limits: Schema.optionalKey<Schema.Struct<{
|
|
1733
|
+
readonly objects: Schema.optionalKey<Schema.Int>;
|
|
1734
|
+
readonly bytes: Schema.optionalKey<Schema.Int>;
|
|
1735
|
+
readonly entries: Schema.optionalKey<Schema.Int>;
|
|
1736
|
+
readonly milliseconds: Schema.optionalKey<Schema.Int>;
|
|
1737
|
+
}>>;
|
|
1738
|
+
readonly page: Schema.optionalKey<Schema.Struct<{
|
|
1739
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
1740
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
1741
|
+
}>>;
|
|
1742
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1743
|
+
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
1744
|
+
status: Schema.Literals<readonly ["A", "D", "M", "R", "T"]>;
|
|
1745
|
+
path: Schema.String;
|
|
1746
|
+
from: Schema.optionalKey<Schema.String>;
|
|
1747
|
+
similarity: Schema.optionalKey<Schema.Number>;
|
|
1748
|
+
old: Schema.optionalKey<Schema.Struct<{
|
|
1749
|
+
readonly mode: Schema.String;
|
|
1750
|
+
readonly oid: Schema.String;
|
|
1751
|
+
}>>;
|
|
1752
|
+
new: Schema.optionalKey<Schema.Struct<{
|
|
1753
|
+
readonly mode: Schema.String;
|
|
1754
|
+
readonly oid: Schema.String;
|
|
1755
|
+
}>>;
|
|
1756
|
+
pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
1757
|
+
fromPathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
1758
|
+
}>>>;
|
|
1759
|
+
readonly next: Schema.optionalKey<Schema.String>;
|
|
1760
|
+
readonly renamesSkipped: Schema.optionalKey<Schema.Literals<readonly ["rename-limit", "memory-limit"]>>;
|
|
1787
1761
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
1788
1762
|
readonly code: "ALREADY_EXISTS";
|
|
1789
1763
|
readonly message: string;
|
|
@@ -2183,10 +2157,20 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
|
|
|
2183
2157
|
}>, {
|
|
2184
2158
|
"ref0-code": Schema.String;
|
|
2185
2159
|
'www-authenticate': Schema.String;
|
|
2186
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
2160
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"compare", "POST", "/repos/:repo/-/commits/compare", Schema.toCodecStringTree<Schema.Struct<{
|
|
2187
2161
|
repo: Schema.String;
|
|
2188
2162
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2189
|
-
readonly
|
|
2163
|
+
readonly base: Schema.String;
|
|
2164
|
+
readonly head: Schema.String;
|
|
2165
|
+
readonly renames: Schema.optionalKey<Schema.Boolean>;
|
|
2166
|
+
readonly commits: Schema.optionalKey<Schema.Struct<{
|
|
2167
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
2168
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
2169
|
+
}>>;
|
|
2170
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
2171
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
2172
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
2173
|
+
}>>;
|
|
2190
2174
|
readonly limits: Schema.optionalKey<Schema.Struct<{
|
|
2191
2175
|
readonly objects: Schema.optionalKey<Schema.Int>;
|
|
2192
2176
|
readonly bytes: Schema.optionalKey<Schema.Int>;
|
|
@@ -2194,7 +2178,58 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
|
|
|
2194
2178
|
readonly milliseconds: Schema.optionalKey<Schema.Int>;
|
|
2195
2179
|
}>>;
|
|
2196
2180
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2197
|
-
readonly
|
|
2181
|
+
readonly base: Schema.String;
|
|
2182
|
+
readonly head: Schema.String;
|
|
2183
|
+
readonly mergeBase: Schema.optionalKey<Schema.String>;
|
|
2184
|
+
readonly ahead: Schema.Int;
|
|
2185
|
+
readonly behind: Schema.Int;
|
|
2186
|
+
readonly commits: Schema.Struct<{
|
|
2187
|
+
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
2188
|
+
readonly oid: Schema.String;
|
|
2189
|
+
readonly tree: Schema.String;
|
|
2190
|
+
readonly parents: Schema.$Array<Schema.String>;
|
|
2191
|
+
readonly author: Schema.Struct<{
|
|
2192
|
+
readonly name: Schema.String;
|
|
2193
|
+
readonly email: Schema.String;
|
|
2194
|
+
readonly at: Schema.Number;
|
|
2195
|
+
readonly offset: Schema.Int;
|
|
2196
|
+
}>;
|
|
2197
|
+
readonly committer: Schema.Struct<{
|
|
2198
|
+
readonly name: Schema.String;
|
|
2199
|
+
readonly email: Schema.String;
|
|
2200
|
+
readonly at: Schema.Number;
|
|
2201
|
+
readonly offset: Schema.Int;
|
|
2202
|
+
}>;
|
|
2203
|
+
readonly subject: Schema.String;
|
|
2204
|
+
readonly message: Schema.String;
|
|
2205
|
+
readonly signature: Schema.optionalKey<Schema.String>;
|
|
2206
|
+
}>>>;
|
|
2207
|
+
readonly next: Schema.optionalKey<Schema.String>;
|
|
2208
|
+
}>;
|
|
2209
|
+
readonly files: Schema.Struct<{
|
|
2210
|
+
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
2211
|
+
readonly status: Schema.Literals<readonly ["A", "D", "M", "R", "T"]>;
|
|
2212
|
+
readonly path: Schema.String;
|
|
2213
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
2214
|
+
readonly similarity: Schema.optionalKey<Schema.Number>;
|
|
2215
|
+
readonly old: Schema.optionalKey<Schema.Struct<{
|
|
2216
|
+
readonly mode: Schema.String;
|
|
2217
|
+
readonly oid: Schema.String;
|
|
2218
|
+
}>>;
|
|
2219
|
+
readonly new: Schema.optionalKey<Schema.Struct<{
|
|
2220
|
+
readonly mode: Schema.String;
|
|
2221
|
+
readonly oid: Schema.String;
|
|
2222
|
+
}>>;
|
|
2223
|
+
readonly pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
2224
|
+
readonly fromPathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
2225
|
+
readonly lines: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2226
|
+
readonly added: Schema.Int;
|
|
2227
|
+
readonly deleted: Schema.Int;
|
|
2228
|
+
}>, Schema.Literal<"binary">]>>;
|
|
2229
|
+
}>>>;
|
|
2230
|
+
readonly next: Schema.optionalKey<Schema.String>;
|
|
2231
|
+
readonly renamesSkipped: Schema.optionalKey<Schema.Literals<readonly ["rename-limit", "memory-limit"]>>;
|
|
2232
|
+
}>;
|
|
2198
2233
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
2199
2234
|
readonly code: "ALREADY_EXISTS";
|
|
2200
2235
|
readonly message: string;
|
|
@@ -2594,41 +2629,44 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
|
|
|
2594
2629
|
}>, {
|
|
2595
2630
|
"ref0-code": Schema.String;
|
|
2596
2631
|
'www-authenticate': Schema.String;
|
|
2597
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
2632
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"revert", "POST", "/repos/:repo/-/commits/revert", Schema.toCodecStringTree<Schema.Struct<{
|
|
2598
2633
|
repo: Schema.String;
|
|
2599
2634
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2600
|
-
readonly
|
|
2601
|
-
readonly
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
readonly
|
|
2605
|
-
readonly
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
readonly
|
|
2610
|
-
readonly
|
|
2611
|
-
readonly
|
|
2635
|
+
readonly message: Schema.String;
|
|
2636
|
+
readonly author: Schema.Struct<{
|
|
2637
|
+
readonly name: Schema.String;
|
|
2638
|
+
readonly email: Schema.String;
|
|
2639
|
+
readonly at: Schema.Number;
|
|
2640
|
+
readonly offset: Schema.Int;
|
|
2641
|
+
}>;
|
|
2642
|
+
readonly commit: Schema.String;
|
|
2643
|
+
readonly onto: Schema.String;
|
|
2644
|
+
readonly committer: Schema.optionalKey<Schema.Struct<{
|
|
2645
|
+
readonly name: Schema.String;
|
|
2646
|
+
readonly email: Schema.String;
|
|
2647
|
+
readonly at: Schema.Number;
|
|
2648
|
+
readonly offset: Schema.Int;
|
|
2612
2649
|
}>>;
|
|
2650
|
+
readonly key: Schema.optionalKey<Schema.String>;
|
|
2613
2651
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2614
|
-
readonly
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
readonly
|
|
2631
|
-
readonly
|
|
2652
|
+
readonly oid: Schema.String;
|
|
2653
|
+
readonly tree: Schema.String;
|
|
2654
|
+
readonly parents: Schema.$Array<Schema.String>;
|
|
2655
|
+
readonly author: Schema.Struct<{
|
|
2656
|
+
readonly name: Schema.String;
|
|
2657
|
+
readonly email: Schema.String;
|
|
2658
|
+
readonly at: Schema.Number;
|
|
2659
|
+
readonly offset: Schema.Int;
|
|
2660
|
+
}>;
|
|
2661
|
+
readonly committer: Schema.Struct<{
|
|
2662
|
+
readonly name: Schema.String;
|
|
2663
|
+
readonly email: Schema.String;
|
|
2664
|
+
readonly at: Schema.Number;
|
|
2665
|
+
readonly offset: Schema.Int;
|
|
2666
|
+
}>;
|
|
2667
|
+
readonly subject: Schema.String;
|
|
2668
|
+
readonly message: Schema.String;
|
|
2669
|
+
readonly signature: Schema.optionalKey<Schema.String>;
|
|
2632
2670
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
2633
2671
|
readonly code: "ALREADY_EXISTS";
|
|
2634
2672
|
readonly message: string;
|
|
@@ -3028,79 +3066,41 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
|
|
|
3028
3066
|
}>, {
|
|
3029
3067
|
"ref0-code": Schema.String;
|
|
3030
3068
|
'www-authenticate': Schema.String;
|
|
3031
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
3069
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"pick", "POST", "/repos/:repo/-/commits/pick", Schema.toCodecStringTree<Schema.Struct<{
|
|
3032
3070
|
repo: Schema.String;
|
|
3033
3071
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3034
|
-
readonly
|
|
3035
|
-
readonly
|
|
3036
|
-
readonly
|
|
3037
|
-
|
|
3038
|
-
readonly
|
|
3039
|
-
readonly
|
|
3040
|
-
|
|
3041
|
-
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
3042
|
-
readonly after: Schema.optionalKey<Schema.String>;
|
|
3043
|
-
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
3072
|
+
readonly commit: Schema.String;
|
|
3073
|
+
readonly onto: Schema.String;
|
|
3074
|
+
readonly committer: Schema.optionalKey<Schema.Struct<{
|
|
3075
|
+
readonly name: Schema.String;
|
|
3076
|
+
readonly email: Schema.String;
|
|
3077
|
+
readonly at: Schema.Number;
|
|
3078
|
+
readonly offset: Schema.Int;
|
|
3044
3079
|
}>>;
|
|
3045
|
-
readonly
|
|
3046
|
-
readonly
|
|
3047
|
-
readonly
|
|
3048
|
-
readonly entries: Schema.optionalKey<Schema.Int>;
|
|
3049
|
-
readonly milliseconds: Schema.optionalKey<Schema.Int>;
|
|
3080
|
+
readonly ref: Schema.optionalKey<Schema.Struct<{
|
|
3081
|
+
readonly name: Schema.String;
|
|
3082
|
+
readonly from: Schema.NullOr<Schema.String>;
|
|
3050
3083
|
}>>;
|
|
3084
|
+
readonly key: Schema.optionalKey<Schema.String>;
|
|
3051
3085
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3052
|
-
readonly
|
|
3053
|
-
readonly
|
|
3054
|
-
readonly
|
|
3055
|
-
readonly
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
readonly
|
|
3059
|
-
|
|
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>;
|
|
3086
|
+
readonly oid: Schema.String;
|
|
3087
|
+
readonly tree: Schema.String;
|
|
3088
|
+
readonly parents: Schema.$Array<Schema.String>;
|
|
3089
|
+
readonly author: Schema.Struct<{
|
|
3090
|
+
readonly name: Schema.String;
|
|
3091
|
+
readonly email: Schema.String;
|
|
3092
|
+
readonly at: Schema.Number;
|
|
3093
|
+
readonly offset: Schema.Int;
|
|
3079
3094
|
}>;
|
|
3080
|
-
readonly
|
|
3081
|
-
readonly
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
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"]>>;
|
|
3095
|
+
readonly committer: Schema.Struct<{
|
|
3096
|
+
readonly name: Schema.String;
|
|
3097
|
+
readonly email: Schema.String;
|
|
3098
|
+
readonly at: Schema.Number;
|
|
3099
|
+
readonly offset: Schema.Int;
|
|
3103
3100
|
}>;
|
|
3101
|
+
readonly subject: Schema.String;
|
|
3102
|
+
readonly message: Schema.String;
|
|
3103
|
+
readonly signature: Schema.optionalKey<Schema.String>;
|
|
3104
3104
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
3105
3105
|
readonly code: "ALREADY_EXISTS";
|
|
3106
3106
|
readonly message: string;
|
package/dist/rest/files.d.mts
CHANGED
|
@@ -423,14 +423,11 @@ declare const FilesApiGroup_base: HttpApiGroup.HttpApiGroup<"files", HttpApiEndp
|
|
|
423
423
|
}>, {
|
|
424
424
|
"ref0-code": Schema.String;
|
|
425
425
|
'www-authenticate': Schema.String;
|
|
426
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
426
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"read", "POST", "/repos/:repo/-/files/read", Schema.toCodecStringTree<Schema.Struct<{
|
|
427
427
|
repo: Schema.String;
|
|
428
428
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
429
|
-
readonly
|
|
430
|
-
readonly
|
|
431
|
-
readonly renames: Schema.optionalKey<Schema.Boolean>;
|
|
432
|
-
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
433
|
-
readonly format: Schema.optionalKey<Schema.Literals<readonly ["patch", "hunks"]>>;
|
|
429
|
+
readonly ref: Schema.String;
|
|
430
|
+
readonly paths: Schema.$Array<Schema.String>;
|
|
434
431
|
readonly limits: Schema.optionalKey<Schema.Struct<{
|
|
435
432
|
readonly objects: Schema.optionalKey<Schema.Int>;
|
|
436
433
|
readonly bytes: Schema.optionalKey<Schema.Int>;
|
|
@@ -442,60 +439,17 @@ declare const FilesApiGroup_base: HttpApiGroup.HttpApiGroup<"files", HttpApiEndp
|
|
|
442
439
|
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
443
440
|
}>>;
|
|
444
441
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
445
|
-
readonly
|
|
446
|
-
readonly
|
|
447
|
-
|
|
448
|
-
readonly from: Schema.optionalKey<Schema.String>;
|
|
449
|
-
readonly similarity: Schema.optionalKey<Schema.Number>;
|
|
450
|
-
readonly old: Schema.optionalKey<Schema.Struct<{
|
|
451
|
-
readonly mode: Schema.String;
|
|
452
|
-
readonly oid: Schema.String;
|
|
453
|
-
}>>;
|
|
454
|
-
readonly new: Schema.optionalKey<Schema.Struct<{
|
|
455
|
-
readonly mode: Schema.String;
|
|
456
|
-
readonly oid: Schema.String;
|
|
457
|
-
}>>;
|
|
458
|
-
readonly pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
459
|
-
readonly fromPathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
460
|
-
readonly lines: Schema.Union<readonly [Schema.Struct<{
|
|
461
|
-
readonly added: Schema.Int;
|
|
462
|
-
readonly deleted: Schema.Int;
|
|
463
|
-
}>, Schema.Literal<"binary">]>;
|
|
464
|
-
readonly patch: Schema.String;
|
|
465
|
-
}>, Schema.Struct<{
|
|
466
|
-
readonly status: Schema.Literals<readonly ["A", "D", "M", "R", "T"]>;
|
|
467
|
-
readonly path: Schema.String;
|
|
468
|
-
readonly from: Schema.optionalKey<Schema.String>;
|
|
469
|
-
readonly similarity: Schema.optionalKey<Schema.Number>;
|
|
470
|
-
readonly old: Schema.optionalKey<Schema.Struct<{
|
|
471
|
-
readonly mode: Schema.String;
|
|
442
|
+
readonly files: Schema.Struct<{
|
|
443
|
+
readonly items: Schema.mutable<Schema.$Array<Schema.Struct<{
|
|
444
|
+
readonly path: Schema.String;
|
|
472
445
|
readonly oid: Schema.String;
|
|
473
|
-
}>>;
|
|
474
|
-
readonly new: Schema.optionalKey<Schema.Struct<{
|
|
475
446
|
readonly mode: Schema.String;
|
|
476
|
-
readonly
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
readonly
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
readonly deleted: Schema.Int;
|
|
483
|
-
}>, Schema.Literal<"binary">]>;
|
|
484
|
-
readonly hunks: Schema.$Array<Schema.Struct<{
|
|
485
|
-
readonly oldStart: Schema.Int;
|
|
486
|
-
readonly oldLines: Schema.Int;
|
|
487
|
-
readonly newStart: Schema.Int;
|
|
488
|
-
readonly newLines: Schema.Int;
|
|
489
|
-
readonly context: Schema.String;
|
|
490
|
-
readonly lines: Schema.$Array<Schema.Struct<{
|
|
491
|
-
readonly kind: Schema.Literals<readonly ["context", "add", "delete"]>;
|
|
492
|
-
readonly text: Schema.String;
|
|
493
|
-
readonly noNewline: Schema.optionalKey<Schema.Literal<true>>;
|
|
494
|
-
}>>;
|
|
495
|
-
}>>;
|
|
496
|
-
}>]>>>;
|
|
497
|
-
readonly next: Schema.optionalKey<Schema.String>;
|
|
498
|
-
readonly renamesSkipped: Schema.optionalKey<Schema.Literals<readonly ["rename-limit", "memory-limit"]>>;
|
|
447
|
+
readonly size: Schema.Int;
|
|
448
|
+
readonly content: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
449
|
+
}>>>;
|
|
450
|
+
readonly next: Schema.optionalKey<Schema.String>;
|
|
451
|
+
}>;
|
|
452
|
+
readonly missing: Schema.$Array<Schema.String>;
|
|
499
453
|
}>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
|
|
500
454
|
readonly code: "ALREADY_EXISTS";
|
|
501
455
|
readonly message: string;
|
|
@@ -895,11 +849,14 @@ declare const FilesApiGroup_base: HttpApiGroup.HttpApiGroup<"files", HttpApiEndp
|
|
|
895
849
|
}>, {
|
|
896
850
|
"ref0-code": Schema.String;
|
|
897
851
|
'www-authenticate': Schema.String;
|
|
898
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
852
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"diff", "POST", "/repos/:repo/-/files/diff", Schema.toCodecStringTree<Schema.Struct<{
|
|
899
853
|
repo: Schema.String;
|
|
900
854
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
901
|
-
readonly
|
|
902
|
-
readonly
|
|
855
|
+
readonly base: Schema.String;
|
|
856
|
+
readonly head: Schema.String;
|
|
857
|
+
readonly renames: Schema.optionalKey<Schema.Boolean>;
|
|
858
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
859
|
+
readonly format: Schema.optionalKey<Schema.Literals<readonly ["patch", "hunks"]>>;
|
|
903
860
|
readonly limits: Schema.optionalKey<Schema.Struct<{
|
|
904
861
|
readonly objects: Schema.optionalKey<Schema.Int>;
|
|
905
862
|
readonly bytes: Schema.optionalKey<Schema.Int>;
|
|
@@ -911,17 +868,60 @@ declare const FilesApiGroup_base: HttpApiGroup.HttpApiGroup<"files", HttpApiEndp
|
|
|
911
868
|
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
912
869
|
}>>;
|
|
913
870
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
914
|
-
readonly
|
|
915
|
-
readonly
|
|
916
|
-
|
|
871
|
+
readonly items: Schema.mutable<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
872
|
+
readonly status: Schema.Literals<readonly ["A", "D", "M", "R", "T"]>;
|
|
873
|
+
readonly path: Schema.String;
|
|
874
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
875
|
+
readonly similarity: Schema.optionalKey<Schema.Number>;
|
|
876
|
+
readonly old: Schema.optionalKey<Schema.Struct<{
|
|
877
|
+
readonly mode: Schema.String;
|
|
917
878
|
readonly oid: Schema.String;
|
|
879
|
+
}>>;
|
|
880
|
+
readonly new: Schema.optionalKey<Schema.Struct<{
|
|
918
881
|
readonly mode: Schema.String;
|
|
919
|
-
readonly
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
readonly
|
|
923
|
-
|
|
924
|
-
|
|
882
|
+
readonly oid: Schema.String;
|
|
883
|
+
}>>;
|
|
884
|
+
readonly pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
885
|
+
readonly fromPathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
886
|
+
readonly lines: Schema.Union<readonly [Schema.Struct<{
|
|
887
|
+
readonly added: Schema.Int;
|
|
888
|
+
readonly deleted: Schema.Int;
|
|
889
|
+
}>, Schema.Literal<"binary">]>;
|
|
890
|
+
readonly patch: Schema.String;
|
|
891
|
+
}>, Schema.Struct<{
|
|
892
|
+
readonly status: Schema.Literals<readonly ["A", "D", "M", "R", "T"]>;
|
|
893
|
+
readonly path: Schema.String;
|
|
894
|
+
readonly from: Schema.optionalKey<Schema.String>;
|
|
895
|
+
readonly similarity: Schema.optionalKey<Schema.Number>;
|
|
896
|
+
readonly old: Schema.optionalKey<Schema.Struct<{
|
|
897
|
+
readonly mode: Schema.String;
|
|
898
|
+
readonly oid: Schema.String;
|
|
899
|
+
}>>;
|
|
900
|
+
readonly new: Schema.optionalKey<Schema.Struct<{
|
|
901
|
+
readonly mode: Schema.String;
|
|
902
|
+
readonly oid: Schema.String;
|
|
903
|
+
}>>;
|
|
904
|
+
readonly pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
905
|
+
readonly fromPathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
906
|
+
readonly lines: Schema.Union<readonly [Schema.Struct<{
|
|
907
|
+
readonly added: Schema.Int;
|
|
908
|
+
readonly deleted: Schema.Int;
|
|
909
|
+
}>, Schema.Literal<"binary">]>;
|
|
910
|
+
readonly hunks: Schema.$Array<Schema.Struct<{
|
|
911
|
+
readonly oldStart: Schema.Int;
|
|
912
|
+
readonly oldLines: Schema.Int;
|
|
913
|
+
readonly newStart: Schema.Int;
|
|
914
|
+
readonly newLines: Schema.Int;
|
|
915
|
+
readonly context: Schema.String;
|
|
916
|
+
readonly lines: Schema.$Array<Schema.Struct<{
|
|
917
|
+
readonly kind: Schema.Literals<readonly ["context", "add", "delete"]>;
|
|
918
|
+
readonly text: Schema.String;
|
|
919
|
+
readonly noNewline: Schema.optionalKey<Schema.Literal<true>>;
|
|
920
|
+
}>>;
|
|
921
|
+
}>>;
|
|
922
|
+
}>]>>>;
|
|
923
|
+
readonly next: Schema.optionalKey<Schema.String>;
|
|
924
|
+
readonly renamesSkipped: Schema.optionalKey<Schema.Literals<readonly ["rename-limit", "memory-limit"]>>;
|
|
925
925
|
}>>, Schema.toCodecJson<import("effect/http-api/HttpApiSchema").encodeToWithHeaders<Schema.Codec<{
|
|
926
926
|
readonly code: "ALREADY_EXISTS";
|
|
927
927
|
readonly message: string;
|