@lizard-build/sdk 0.1.77 → 0.1.78
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/index.d.mts +7 -8
- package/dist/index.d.ts +7 -8
- package/dist/index.js +7 -7
- package/dist/index.mjs +7 -7
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -895,13 +895,11 @@ declare class GitReposAPI {
|
|
|
895
895
|
name: string;
|
|
896
896
|
}>;
|
|
897
897
|
get(repo: RepoRef): Promise<RepoMeta>;
|
|
898
|
-
/** `apiCommits`: also accept commits written through the API (`commitFiles`, `land`); new repositories take pushes only. */
|
|
899
898
|
update(repo: RepoRef, opts: {
|
|
900
899
|
name?: string;
|
|
901
900
|
description?: string;
|
|
902
901
|
private?: boolean;
|
|
903
902
|
defaultBranch?: string;
|
|
904
|
-
apiCommits?: boolean;
|
|
905
903
|
}): Promise<{
|
|
906
904
|
ok: boolean;
|
|
907
905
|
}>;
|
|
@@ -952,9 +950,10 @@ declare class GitReposAPI {
|
|
|
952
950
|
}>;
|
|
953
951
|
compare(repo: RepoRef, base: string, head: string): Promise<unknown>;
|
|
954
952
|
/**
|
|
955
|
-
* Commit files on the server: no clone, no push
|
|
956
|
-
*
|
|
957
|
-
*
|
|
953
|
+
* Commit files on the server: no clone, no push (every commit to Lizard Git is made this
|
|
954
|
+
* way). With `expect` (the commit your change was made against), a branch that moved since
|
|
955
|
+
* is the server's to resolve: other files go on the new tip, the same files are merged line
|
|
956
|
+
* by line, and only a real conflict answers 409 with the paths.
|
|
958
957
|
*/
|
|
959
958
|
commitFiles(repo: RepoRef, opts: CommitFilesOpts): Promise<{
|
|
960
959
|
sha: string;
|
|
@@ -974,9 +973,9 @@ declare class GitReposAPI {
|
|
|
974
973
|
reflog(repo: RepoRef, ref?: string): Promise<unknown[]>;
|
|
975
974
|
archive(repo: RepoRef, ref: string, format?: 'zip' | 'tar.gz'): Promise<Uint8Array>;
|
|
976
975
|
/**
|
|
977
|
-
*
|
|
978
|
-
*
|
|
979
|
-
*
|
|
976
|
+
* @deprecated Lizard Git no longer serves the git protocol (contents are kept as changesets,
|
|
977
|
+
* files by hash): this address answers 410. Read with `tree`/`file`/`raw`/`archive`, write
|
|
978
|
+
* with `commitFiles`, and check out with the Lizard CLI (`lizard git clone`).
|
|
980
979
|
*/
|
|
981
980
|
cloneUrl(repo: RepoRef, opts?: {
|
|
982
981
|
withKey?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -895,13 +895,11 @@ declare class GitReposAPI {
|
|
|
895
895
|
name: string;
|
|
896
896
|
}>;
|
|
897
897
|
get(repo: RepoRef): Promise<RepoMeta>;
|
|
898
|
-
/** `apiCommits`: also accept commits written through the API (`commitFiles`, `land`); new repositories take pushes only. */
|
|
899
898
|
update(repo: RepoRef, opts: {
|
|
900
899
|
name?: string;
|
|
901
900
|
description?: string;
|
|
902
901
|
private?: boolean;
|
|
903
902
|
defaultBranch?: string;
|
|
904
|
-
apiCommits?: boolean;
|
|
905
903
|
}): Promise<{
|
|
906
904
|
ok: boolean;
|
|
907
905
|
}>;
|
|
@@ -952,9 +950,10 @@ declare class GitReposAPI {
|
|
|
952
950
|
}>;
|
|
953
951
|
compare(repo: RepoRef, base: string, head: string): Promise<unknown>;
|
|
954
952
|
/**
|
|
955
|
-
* Commit files on the server: no clone, no push
|
|
956
|
-
*
|
|
957
|
-
*
|
|
953
|
+
* Commit files on the server: no clone, no push (every commit to Lizard Git is made this
|
|
954
|
+
* way). With `expect` (the commit your change was made against), a branch that moved since
|
|
955
|
+
* is the server's to resolve: other files go on the new tip, the same files are merged line
|
|
956
|
+
* by line, and only a real conflict answers 409 with the paths.
|
|
958
957
|
*/
|
|
959
958
|
commitFiles(repo: RepoRef, opts: CommitFilesOpts): Promise<{
|
|
960
959
|
sha: string;
|
|
@@ -974,9 +973,9 @@ declare class GitReposAPI {
|
|
|
974
973
|
reflog(repo: RepoRef, ref?: string): Promise<unknown[]>;
|
|
975
974
|
archive(repo: RepoRef, ref: string, format?: 'zip' | 'tar.gz'): Promise<Uint8Array>;
|
|
976
975
|
/**
|
|
977
|
-
*
|
|
978
|
-
*
|
|
979
|
-
*
|
|
976
|
+
* @deprecated Lizard Git no longer serves the git protocol (contents are kept as changesets,
|
|
977
|
+
* files by hash): this address answers 410. Read with `tree`/`file`/`raw`/`archive`, write
|
|
978
|
+
* with `commitFiles`, and check out with the Lizard CLI (`lizard git clone`).
|
|
980
979
|
*/
|
|
981
980
|
cloneUrl(repo: RepoRef, opts?: {
|
|
982
981
|
withKey?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -632,7 +632,6 @@ var GitReposAPI = class {
|
|
|
632
632
|
get(repo) {
|
|
633
633
|
return this.c.get(repoPath(repo));
|
|
634
634
|
}
|
|
635
|
-
/** `apiCommits`: also accept commits written through the API (`commitFiles`, `land`); new repositories take pushes only. */
|
|
636
635
|
update(repo, opts) {
|
|
637
636
|
return this.c.patch(repoPath(repo), opts);
|
|
638
637
|
}
|
|
@@ -692,9 +691,10 @@ var GitReposAPI = class {
|
|
|
692
691
|
return this.c.get(qs(`${repoPath(repo)}/compare`, { base, head }));
|
|
693
692
|
}
|
|
694
693
|
/**
|
|
695
|
-
* Commit files on the server: no clone, no push
|
|
696
|
-
*
|
|
697
|
-
*
|
|
694
|
+
* Commit files on the server: no clone, no push (every commit to Lizard Git is made this
|
|
695
|
+
* way). With `expect` (the commit your change was made against), a branch that moved since
|
|
696
|
+
* is the server's to resolve: other files go on the new tip, the same files are merged line
|
|
697
|
+
* by line, and only a real conflict answers 409 with the paths.
|
|
698
698
|
*/
|
|
699
699
|
commitFiles(repo, opts) {
|
|
700
700
|
const { idempotencyKey, ...body } = opts;
|
|
@@ -712,9 +712,9 @@ var GitReposAPI = class {
|
|
|
712
712
|
return this.c.bytes(`${repoPath(repo)}/archive/${seg(ref)}.${format}`);
|
|
713
713
|
}
|
|
714
714
|
/**
|
|
715
|
-
*
|
|
716
|
-
*
|
|
717
|
-
*
|
|
715
|
+
* @deprecated Lizard Git no longer serves the git protocol (contents are kept as changesets,
|
|
716
|
+
* files by hash): this address answers 410. Read with `tree`/`file`/`raw`/`archive`, write
|
|
717
|
+
* with `commitFiles`, and check out with the Lizard CLI (`lizard git clone`).
|
|
718
718
|
*/
|
|
719
719
|
cloneUrl(repo, opts = {}) {
|
|
720
720
|
repoPath(repo);
|
package/dist/index.mjs
CHANGED
|
@@ -560,7 +560,6 @@ var GitReposAPI = class {
|
|
|
560
560
|
get(repo) {
|
|
561
561
|
return this.c.get(repoPath(repo));
|
|
562
562
|
}
|
|
563
|
-
/** `apiCommits`: also accept commits written through the API (`commitFiles`, `land`); new repositories take pushes only. */
|
|
564
563
|
update(repo, opts) {
|
|
565
564
|
return this.c.patch(repoPath(repo), opts);
|
|
566
565
|
}
|
|
@@ -620,9 +619,10 @@ var GitReposAPI = class {
|
|
|
620
619
|
return this.c.get(qs(`${repoPath(repo)}/compare`, { base, head }));
|
|
621
620
|
}
|
|
622
621
|
/**
|
|
623
|
-
* Commit files on the server: no clone, no push
|
|
624
|
-
*
|
|
625
|
-
*
|
|
622
|
+
* Commit files on the server: no clone, no push (every commit to Lizard Git is made this
|
|
623
|
+
* way). With `expect` (the commit your change was made against), a branch that moved since
|
|
624
|
+
* is the server's to resolve: other files go on the new tip, the same files are merged line
|
|
625
|
+
* by line, and only a real conflict answers 409 with the paths.
|
|
626
626
|
*/
|
|
627
627
|
commitFiles(repo, opts) {
|
|
628
628
|
const { idempotencyKey, ...body } = opts;
|
|
@@ -640,9 +640,9 @@ var GitReposAPI = class {
|
|
|
640
640
|
return this.c.bytes(`${repoPath(repo)}/archive/${seg(ref)}.${format}`);
|
|
641
641
|
}
|
|
642
642
|
/**
|
|
643
|
-
*
|
|
644
|
-
*
|
|
645
|
-
*
|
|
643
|
+
* @deprecated Lizard Git no longer serves the git protocol (contents are kept as changesets,
|
|
644
|
+
* files by hash): this address answers 410. Read with `tree`/`file`/`raw`/`archive`, write
|
|
645
|
+
* with `commitFiles`, and check out with the Lizard CLI (`lizard git clone`).
|
|
646
646
|
*/
|
|
647
647
|
cloneUrl(repo, opts = {}) {
|
|
648
648
|
repoPath(repo);
|
package/package.json
CHANGED