@ref0/git 0.10.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/queue.d.mts +5 -1
- package/dist/contracts/queue.mjs +1 -0
- package/dist/core/index-job.mjs +8 -6
- package/dist/queue/advance.mjs +8 -4
- package/dist/rest/commits.d.mts +185 -185
- package/dist/rest/files.d.mts +88 -88
- package/dist/rest/forks.d.mts +72 -72
- package/dist/rest/queue.d.mts +180 -180
- package/dist/rest/refs.d.mts +149 -149
- package/dist/rest/repos.d.mts +47 -47
- 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 +58 -58
- 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
|
@@ -264,7 +264,10 @@ export declare const QueueView: Schema.Struct<{
|
|
|
264
264
|
}>;
|
|
265
265
|
}>;
|
|
266
266
|
export type QueueView = typeof QueueView.Type;
|
|
267
|
-
/**
|
|
267
|
+
/**
|
|
268
|
+
* One entry's link of a candidate: `commits`, what its head adds to the target, oldest first, and
|
|
269
|
+
* `at`, the link's time in milliseconds from the queue's `Clock`, for the plan's `author.at`.
|
|
270
|
+
*/
|
|
268
271
|
export declare const MergeInput: Schema.Struct<{
|
|
269
272
|
readonly entry: Schema.Struct<{
|
|
270
273
|
readonly target: Schema.String;
|
|
@@ -317,6 +320,7 @@ export declare const MergeInput: Schema.Struct<{
|
|
|
317
320
|
readonly message: Schema.String;
|
|
318
321
|
readonly signature: Schema.optionalKey<Schema.String>;
|
|
319
322
|
}>>;
|
|
323
|
+
readonly at: Schema.Number;
|
|
320
324
|
}>;
|
|
321
325
|
export type MergeInput = typeof MergeInput.Type;
|
|
322
326
|
export declare const JoinInput: Schema.Struct<{
|
package/dist/contracts/queue.mjs
CHANGED
|
@@ -3,6 +3,7 @@ import { CommitMessage } from "./commits.mjs";
|
|
|
3
3
|
import { Commit } from "./engine.mjs";
|
|
4
4
|
import { Oid, RefName, RepoName } from "./ids.mjs";
|
|
5
5
|
import { AbortSignalValue, FunctionValue } from "./opaque.mjs";
|
|
6
|
+
import "./repos.mjs";
|
|
6
7
|
import { Verdict, decisionAnswer } from "./result.mjs";
|
|
7
8
|
import * as Effect from "effect/Effect";
|
|
8
9
|
import * as Schema from "effect/Schema";
|
package/dist/core/index-job.mjs
CHANGED
|
@@ -154,7 +154,7 @@ const indexAttempt = /* @__PURE__ */ Effect.fnUntraced(function* (parts, store,
|
|
|
154
154
|
exempt: true
|
|
155
155
|
});
|
|
156
156
|
const repack = parts.repackJobRow !== void 0 && liftsHolds(indexRowOf(row), indexRowOf(step.row), listed) ? [parts.repackJobRow()] : [];
|
|
157
|
-
const retry = yield*
|
|
157
|
+
const retry = yield* uncoveredRetry(step.row, landed, (when) => index.status(step.row, when, ids));
|
|
158
158
|
const committed = yield* storeCall(() => store.commit(scope, {
|
|
159
159
|
id: newChangeId(),
|
|
160
160
|
expect: snapshot.version,
|
|
@@ -175,13 +175,15 @@ const indexAttempt = /* @__PURE__ */ Effect.fnUntraced(function* (parts, store,
|
|
|
175
175
|
};
|
|
176
176
|
});
|
|
177
177
|
/**
|
|
178
|
-
* The try a refused row
|
|
179
|
-
* tries' wait, the next round's,
|
|
178
|
+
* The try a refused row reads answer from no index gets, `landed` its status: a first build's,
|
|
179
|
+
* with no layers, or one a read marked lost. When it waits for its tries' wait, the next round's,
|
|
180
|
+
* due at its end; else none. A built row whose update was refused keeps answering from its
|
|
181
|
+
* layers, so it waits for a push, as before.
|
|
180
182
|
*/
|
|
181
|
-
const
|
|
183
|
+
const uncoveredRetry = (row, landed, statusAt) => {
|
|
182
184
|
const built = indexRowOf(row);
|
|
183
|
-
if (landed.state !== "refused" || built === void 0
|
|
184
|
-
if (built.lost !== true) return Effect.succeed([]);
|
|
185
|
+
if (landed.state !== "refused" || built === void 0) return Effect.succeed([]);
|
|
186
|
+
if (!("refused" in built) && built.lost !== true) return Effect.succeed([]);
|
|
185
187
|
const due = statusAt(landed.retryAt);
|
|
186
188
|
if (due.state !== "retry") return Effect.succeed([]);
|
|
187
189
|
const job = IndexJob.job({
|
package/dist/queue/advance.mjs
CHANGED
|
@@ -781,11 +781,15 @@ const treeOf = (linking, entry, sides) => mergedTree(linking.opened, linking.mad
|
|
|
781
781
|
}) : error));
|
|
782
782
|
/** A host's `merge` answer read as a `MergePlan`: a host in plain JavaScript may answer any value. */
|
|
783
783
|
const decodePlan = /* @__PURE__ */ Schema.decodeUnknownSync(MergePlan);
|
|
784
|
-
/**
|
|
785
|
-
|
|
784
|
+
/**
|
|
785
|
+
* The host's plan for an entry's link, at the queue's `Clock`'s time, which the host stamps its
|
|
786
|
+
* author with: a throw or bad plan fails it `host-error`, with the failure's ID.
|
|
787
|
+
*/
|
|
788
|
+
const planOf = (linking, entry, row, commits) => Clock$1.currentTimeMillis.pipe(Effect.flatMap((at) => hostCall("queue.merge", { repo: linking.repo }, () => decodePlan(linking.options.merge({
|
|
786
789
|
entry: entryOf(linking.repo, entry, row, linking.notes.get(entry) ?? {}),
|
|
787
|
-
commits
|
|
788
|
-
|
|
790
|
+
commits,
|
|
791
|
+
at
|
|
792
|
+
}))))).pipe(Effect.catch((error) => {
|
|
789
793
|
const id = error.code === "UNAVAILABLE" || error.code === "DEADLINE_EXCEEDED" ? error.context?.id ?? "" : "";
|
|
790
794
|
return Effect.fail(linkFailed(entry, {
|
|
791
795
|
kind: "host-error",
|
package/dist/rest/commits.d.mts
CHANGED
|
@@ -437,15 +437,38 @@ 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<"create", "POST", "/repos/:repo/-/commits", Schema.toCodecStringTree<Schema.Struct<{
|
|
441
441
|
repo: Schema.String;
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
readonly
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
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>;
|
|
470
|
+
}>>>;
|
|
471
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
449
472
|
readonly oid: Schema.String;
|
|
450
473
|
readonly tree: Schema.String;
|
|
451
474
|
readonly parents: Schema.$Array<Schema.String>;
|
|
@@ -863,7 +886,7 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
|
|
|
863
886
|
}>, {
|
|
864
887
|
"ref0-code": Schema.String;
|
|
865
888
|
'www-authenticate': Schema.String;
|
|
866
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
889
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"revert", "POST", "/repos/:repo/-/commits/revert", Schema.toCodecStringTree<Schema.Struct<{
|
|
867
890
|
repo: Schema.String;
|
|
868
891
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
869
892
|
readonly message: Schema.String;
|
|
@@ -873,27 +896,15 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
|
|
|
873
896
|
readonly at: Schema.Number;
|
|
874
897
|
readonly offset: Schema.Int;
|
|
875
898
|
}>;
|
|
876
|
-
readonly
|
|
899
|
+
readonly commit: Schema.String;
|
|
900
|
+
readonly onto: Schema.String;
|
|
877
901
|
readonly committer: Schema.optionalKey<Schema.Struct<{
|
|
878
902
|
readonly name: Schema.String;
|
|
879
903
|
readonly email: Schema.String;
|
|
880
904
|
readonly at: Schema.Number;
|
|
881
905
|
readonly offset: Schema.Int;
|
|
882
906
|
}>>;
|
|
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
|
-
}>>;
|
|
888
907
|
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
|
-
}>>>;
|
|
897
908
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
898
909
|
readonly oid: Schema.String;
|
|
899
910
|
readonly tree: Schema.String;
|
|
@@ -1312,79 +1323,41 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
|
|
|
1312
1323
|
}>, {
|
|
1313
1324
|
"ref0-code": Schema.String;
|
|
1314
1325
|
'www-authenticate': Schema.String;
|
|
1315
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1326
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"pick", "POST", "/repos/:repo/-/commits/pick", Schema.toCodecStringTree<Schema.Struct<{
|
|
1316
1327
|
repo: Schema.String;
|
|
1317
1328
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1318
|
-
readonly
|
|
1319
|
-
readonly
|
|
1320
|
-
readonly
|
|
1321
|
-
|
|
1322
|
-
readonly
|
|
1323
|
-
readonly
|
|
1324
|
-
|
|
1325
|
-
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
1326
|
-
readonly after: Schema.optionalKey<Schema.String>;
|
|
1327
|
-
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;
|
|
1328
1336
|
}>>;
|
|
1329
|
-
readonly
|
|
1330
|
-
readonly
|
|
1331
|
-
readonly
|
|
1332
|
-
readonly entries: Schema.optionalKey<Schema.Int>;
|
|
1333
|
-
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>;
|
|
1334
1340
|
}>>;
|
|
1341
|
+
readonly key: Schema.optionalKey<Schema.String>;
|
|
1335
1342
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1336
|
-
readonly
|
|
1337
|
-
readonly
|
|
1338
|
-
readonly
|
|
1339
|
-
readonly
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
readonly
|
|
1343
|
-
|
|
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>;
|
|
1361
|
-
}>>>;
|
|
1362
|
-
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;
|
|
1363
1351
|
}>;
|
|
1364
|
-
readonly
|
|
1365
|
-
readonly
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
readonly similarity: Schema.optionalKey<Schema.Number>;
|
|
1370
|
-
readonly old: Schema.optionalKey<Schema.Struct<{
|
|
1371
|
-
readonly mode: Schema.String;
|
|
1372
|
-
readonly oid: Schema.String;
|
|
1373
|
-
}>>;
|
|
1374
|
-
readonly new: Schema.optionalKey<Schema.Struct<{
|
|
1375
|
-
readonly mode: Schema.String;
|
|
1376
|
-
readonly oid: Schema.String;
|
|
1377
|
-
}>>;
|
|
1378
|
-
readonly pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
1379
|
-
readonly fromPathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
1380
|
-
readonly lines: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1381
|
-
readonly added: Schema.Int;
|
|
1382
|
-
readonly deleted: Schema.Int;
|
|
1383
|
-
}>, Schema.Literal<"binary">]>>;
|
|
1384
|
-
}>>>;
|
|
1385
|
-
readonly next: Schema.optionalKey<Schema.String>;
|
|
1386
|
-
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;
|
|
1387
1357
|
}>;
|
|
1358
|
+
readonly subject: Schema.String;
|
|
1359
|
+
readonly message: Schema.String;
|
|
1360
|
+
readonly signature: Schema.optionalKey<Schema.String>;
|
|
1388
1361
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
1389
1362
|
readonly code: "ALREADY_EXISTS";
|
|
1390
1363
|
readonly message: string;
|
|
@@ -1784,41 +1757,33 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
|
|
|
1784
1757
|
}>, {
|
|
1785
1758
|
"ref0-code": Schema.String;
|
|
1786
1759
|
'www-authenticate': Schema.String;
|
|
1787
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
1760
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/repos/:repo/-/commits/:oid", Schema.toCodecStringTree<Schema.Struct<{
|
|
1788
1761
|
repo: Schema.String;
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
readonly
|
|
1792
|
-
readonly
|
|
1793
|
-
readonly
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
readonly
|
|
1800
|
-
readonly
|
|
1801
|
-
readonly
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
readonly mode: Schema.String;
|
|
1815
|
-
readonly oid: Schema.String;
|
|
1816
|
-
}>>;
|
|
1817
|
-
pathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
1818
|
-
fromPathBytes: Schema.optionalKey<Schema.Uint8ArrayFromBase64>;
|
|
1819
|
-
}>>>;
|
|
1820
|
-
readonly next: Schema.optionalKey<Schema.String>;
|
|
1821
|
-
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>;
|
|
1822
1787
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
1823
1788
|
readonly code: "ALREADY_EXISTS";
|
|
1824
1789
|
readonly message: string;
|
|
@@ -2629,41 +2594,41 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
|
|
|
2629
2594
|
}>, {
|
|
2630
2595
|
"ref0-code": Schema.String;
|
|
2631
2596
|
'www-authenticate': Schema.String;
|
|
2632
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
2597
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"diff", "POST", "/repos/:repo/-/commits/diff", Schema.toCodecStringTree<Schema.Struct<{
|
|
2633
2598
|
repo: Schema.String;
|
|
2634
2599
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2635
|
-
readonly
|
|
2636
|
-
readonly
|
|
2637
|
-
readonly
|
|
2638
|
-
|
|
2639
|
-
readonly
|
|
2640
|
-
readonly
|
|
2641
|
-
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>;
|
|
2642
2608
|
}>>;
|
|
2643
|
-
readonly
|
|
2644
|
-
readonly
|
|
2645
|
-
readonly
|
|
2609
|
+
readonly page: Schema.optionalKey<Schema.Struct<{
|
|
2610
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
2611
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
2646
2612
|
}>>;
|
|
2647
|
-
readonly key: Schema.optionalKey<Schema.String>;
|
|
2648
2613
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2649
|
-
readonly
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
readonly
|
|
2666
|
-
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"]>>;
|
|
2667
2632
|
}>>, Schema.toCodecJson<HttpApiSchema.encodeToWithHeaders<Schema.Codec<{
|
|
2668
2633
|
readonly code: "ALREADY_EXISTS";
|
|
2669
2634
|
readonly message: string;
|
|
@@ -3063,44 +3028,79 @@ declare const CommitsApiGroup_base: HttpApiGroup.HttpApiGroup<"commits", HttpApi
|
|
|
3063
3028
|
}>, {
|
|
3064
3029
|
"ref0-code": Schema.String;
|
|
3065
3030
|
'www-authenticate': Schema.String;
|
|
3066
|
-
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
3031
|
+
}>>, GitCallerMiddleware, GitRestServices> | HttpApiEndpoint.HttpApiEndpoint<"compare", "POST", "/repos/:repo/-/commits/compare", Schema.toCodecStringTree<Schema.Struct<{
|
|
3067
3032
|
repo: Schema.String;
|
|
3068
3033
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3069
|
-
readonly
|
|
3070
|
-
readonly
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
readonly
|
|
3074
|
-
readonly
|
|
3075
|
-
}
|
|
3076
|
-
readonly
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
readonly
|
|
3082
|
-
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>;
|
|
3083
3050
|
}>>;
|
|
3084
|
-
readonly key: Schema.optionalKey<Schema.String>;
|
|
3085
3051
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3086
|
-
readonly
|
|
3087
|
-
readonly
|
|
3088
|
-
readonly
|
|
3089
|
-
readonly
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
readonly
|
|
3093
|
-
|
|
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>;
|
|
3094
3079
|
}>;
|
|
3095
|
-
readonly
|
|
3096
|
-
readonly
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
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"]>>;
|
|
3100
3103
|
}>;
|
|
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;
|