@lizard-build/sdk 0.1.76 → 0.1.77
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/README.md +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -121,7 +121,7 @@ try {
|
|
|
121
121
|
|
|
122
122
|
The SDK reads `LIZARD_API_KEY` and, optionally, `LIZARD_API_URL` (default: `https://lizard.build`). You can also pass `apiKey` and `apiUrl` to the constructor or static sandbox methods.
|
|
123
123
|
|
|
124
|
-
Lizard Git (`lizard.git`: repositories, pull requests, CI and the rest) reads `LIZARD_GIT_URL` (default `https://
|
|
124
|
+
Lizard Git (`lizard.git`: repositories, pull requests, CI and the rest) reads `LIZARD_GIT_URL` (default `https://lizard.build/git`) and needs a key with no scopes. See the [Lizard Git guide](https://github.com/lizard-build/lizard-sdk/blob/main/docs/platform.md#lizard-git).
|
|
125
125
|
|
|
126
126
|
Pass `timeoutMs` to `create()` to set the sandbox lifetime. The default is five minutes. `timeoutMs` on `process.exec()` or `runCode()` controls that call, not the sandbox lifetime.
|
|
127
127
|
|
package/dist/index.d.mts
CHANGED
|
@@ -461,7 +461,7 @@ declare class GitHubAPI {
|
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
/**
|
|
464
|
-
* Lizard Git (
|
|
464
|
+
* Lizard Git (lizard.build/git): repositories, issues, pull requests, reviews, Actions-style
|
|
465
465
|
* CI, releases, webhooks, branch protection and the rest, with the same API key as the rest
|
|
466
466
|
* of the SDK. The key must be a whole account's (no scopes): Lizard Git refuses scoped keys.
|
|
467
467
|
*
|
|
@@ -475,7 +475,7 @@ declare class GitHubAPI {
|
|
|
475
475
|
* const pr = await lizard.git.pulls.create('me/app', { title: 'Feature', head: 'feature', base: 'main' })
|
|
476
476
|
* ```
|
|
477
477
|
*/
|
|
478
|
-
declare const DEFAULT_GIT_URL = "https://
|
|
478
|
+
declare const DEFAULT_GIT_URL = "https://lizard.build/git";
|
|
479
479
|
type RepoRef = string;
|
|
480
480
|
type Role = 'read' | 'write' | 'admin';
|
|
481
481
|
interface Repo {
|
|
@@ -2952,7 +2952,7 @@ interface LizardOpts extends ConnectionOpts {
|
|
|
2952
2952
|
* management (projects, services, addons, etc.).
|
|
2953
2953
|
*/
|
|
2954
2954
|
project?: string;
|
|
2955
|
-
/** Lizard Git's address. Defaults to `LIZARD_GIT_URL`, then https://
|
|
2955
|
+
/** Lizard Git's address. Defaults to `LIZARD_GIT_URL`, then https://lizard.build/git. */
|
|
2956
2956
|
gitUrl?: string;
|
|
2957
2957
|
}
|
|
2958
2958
|
/**
|
|
@@ -3011,7 +3011,7 @@ declare class Lizard {
|
|
|
3011
3011
|
readonly storage: StorageAPI;
|
|
3012
3012
|
readonly github: GitHubAPI;
|
|
3013
3013
|
/**
|
|
3014
|
-
* Lizard Git (
|
|
3014
|
+
* Lizard Git (lizard.build/git): repositories, issues, pull requests, reviews, CI runs,
|
|
3015
3015
|
* releases, webhooks, branch rules. Needs a key with no scopes.
|
|
3016
3016
|
*/
|
|
3017
3017
|
readonly git: GitAPI;
|
package/dist/index.d.ts
CHANGED
|
@@ -461,7 +461,7 @@ declare class GitHubAPI {
|
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
/**
|
|
464
|
-
* Lizard Git (
|
|
464
|
+
* Lizard Git (lizard.build/git): repositories, issues, pull requests, reviews, Actions-style
|
|
465
465
|
* CI, releases, webhooks, branch protection and the rest, with the same API key as the rest
|
|
466
466
|
* of the SDK. The key must be a whole account's (no scopes): Lizard Git refuses scoped keys.
|
|
467
467
|
*
|
|
@@ -475,7 +475,7 @@ declare class GitHubAPI {
|
|
|
475
475
|
* const pr = await lizard.git.pulls.create('me/app', { title: 'Feature', head: 'feature', base: 'main' })
|
|
476
476
|
* ```
|
|
477
477
|
*/
|
|
478
|
-
declare const DEFAULT_GIT_URL = "https://
|
|
478
|
+
declare const DEFAULT_GIT_URL = "https://lizard.build/git";
|
|
479
479
|
type RepoRef = string;
|
|
480
480
|
type Role = 'read' | 'write' | 'admin';
|
|
481
481
|
interface Repo {
|
|
@@ -2952,7 +2952,7 @@ interface LizardOpts extends ConnectionOpts {
|
|
|
2952
2952
|
* management (projects, services, addons, etc.).
|
|
2953
2953
|
*/
|
|
2954
2954
|
project?: string;
|
|
2955
|
-
/** Lizard Git's address. Defaults to `LIZARD_GIT_URL`, then https://
|
|
2955
|
+
/** Lizard Git's address. Defaults to `LIZARD_GIT_URL`, then https://lizard.build/git. */
|
|
2956
2956
|
gitUrl?: string;
|
|
2957
2957
|
}
|
|
2958
2958
|
/**
|
|
@@ -3011,7 +3011,7 @@ declare class Lizard {
|
|
|
3011
3011
|
readonly storage: StorageAPI;
|
|
3012
3012
|
readonly github: GitHubAPI;
|
|
3013
3013
|
/**
|
|
3014
|
-
* Lizard Git (
|
|
3014
|
+
* Lizard Git (lizard.build/git): repositories, issues, pull requests, reviews, CI runs,
|
|
3015
3015
|
* releases, webhooks, branch rules. Needs a key with no scopes.
|
|
3016
3016
|
*/
|
|
3017
3017
|
readonly git: GitAPI;
|
package/dist/index.js
CHANGED
|
@@ -554,7 +554,7 @@ var GitHubAPI = class {
|
|
|
554
554
|
};
|
|
555
555
|
|
|
556
556
|
// src/platform/git.ts
|
|
557
|
-
var DEFAULT_GIT_URL = "https://
|
|
557
|
+
var DEFAULT_GIT_URL = "https://lizard.build/git";
|
|
558
558
|
var seg = encodeURIComponent;
|
|
559
559
|
function qs(path, values) {
|
|
560
560
|
const q = new URLSearchParams();
|
package/dist/index.mjs
CHANGED
|
@@ -482,7 +482,7 @@ var GitHubAPI = class {
|
|
|
482
482
|
};
|
|
483
483
|
|
|
484
484
|
// src/platform/git.ts
|
|
485
|
-
var DEFAULT_GIT_URL = "https://
|
|
485
|
+
var DEFAULT_GIT_URL = "https://lizard.build/git";
|
|
486
486
|
var seg = encodeURIComponent;
|
|
487
487
|
function qs(path, values) {
|
|
488
488
|
const q = new URLSearchParams();
|
package/package.json
CHANGED