@lightningai/sdk 2026.4.23
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 +39 -0
- package/dist/config.d.ts +15 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +33 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/lightning_cloud/openapi/SandboxesService.d.ts +119 -0
- package/dist/lightning_cloud/openapi/SandboxesService.d.ts.map +1 -0
- package/dist/lightning_cloud/openapi/SandboxesService.js +188 -0
- package/dist/lightning_cloud/openapi/SandboxesService.js.map +1 -0
- package/dist/lightning_cloud/openapi/data-contracts.d.ts +244 -0
- package/dist/lightning_cloud/openapi/data-contracts.d.ts.map +1 -0
- package/dist/lightning_cloud/openapi/data-contracts.js +13 -0
- package/dist/lightning_cloud/openapi/data-contracts.js.map +1 -0
- package/dist/lightning_cloud/openapi/http-client.d.ts +43 -0
- package/dist/lightning_cloud/openapi/http-client.d.ts.map +1 -0
- package/dist/lightning_cloud/openapi/http-client.js +108 -0
- package/dist/lightning_cloud/openapi/http-client.js.map +1 -0
- package/dist/sandbox.d.ts +59 -0
- package/dist/sandbox.d.ts.map +1 -0
- package/dist/sandbox.js +277 -0
- package/dist/sandbox.js.map +1 -0
- package/dist/types.d.ts +84 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +5 -0
- package/dist/types.js.map +1 -0
- package/package.json +38 -0
package/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# @lightningai/sdk
|
|
2
|
+
|
|
3
|
+
A type-safe TypeScript SDK for [Lightning AI](https://lightning.ai) that gives you programmatic control over sandboxes—create and manage instances, run commands, and read or write files from Node.js.
|
|
4
|
+
|
|
5
|
+
## Requirements
|
|
6
|
+
|
|
7
|
+
- **Node.js 22+**
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install @lightningai/sdk
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Quick start
|
|
16
|
+
|
|
17
|
+
Set an API key (or pass `apiKey` to `Sandbox.configure()`):
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
export LIGHTNING_API_KEY=your_key
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
```js
|
|
24
|
+
import { Sandbox } from "@lightningai/sdk";
|
|
25
|
+
|
|
26
|
+
const sandbox = await Sandbox.create({ instanceType: "cpu-1" });
|
|
27
|
+
const result = await sandbox.runCommand("echo", ["hello"]);
|
|
28
|
+
console.log(result.output);
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Environment variables read by the SDK:
|
|
32
|
+
|
|
33
|
+
| Variable | Purpose |
|
|
34
|
+
| ------------------- | --------------------------------------------------------- |
|
|
35
|
+
| `LIGHTNING_API_KEY` | API key if not passed via `configure()` / request options |
|
|
36
|
+
|
|
37
|
+
## License
|
|
38
|
+
|
|
39
|
+
Apache-2.0
|
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { SandboxConfig } from "./types.js";
|
|
2
|
+
/** Default Lightning Cloud origin when no base URL is configured. */
|
|
3
|
+
export declare const DEFAULT_LIGHTNING_BASE_URL = "https://lightning.ai";
|
|
4
|
+
/**
|
|
5
|
+
* Merges options into the SDK-wide defaults used by HTTP requests.
|
|
6
|
+
* Called by {@link Sandbox.configure}; prefer that on the public API.
|
|
7
|
+
*/
|
|
8
|
+
export declare function mergeSandboxConfig(patch: SandboxConfig): void;
|
|
9
|
+
/** Clears module-level config (for tests and process isolation). Not exported from the package root. */
|
|
10
|
+
export declare function resetSandboxConfig(): void;
|
|
11
|
+
export declare function getApiKey(override?: string): string;
|
|
12
|
+
export declare function getBaseUrl(): string;
|
|
13
|
+
/** Org ID from call-site override or global config; undefined is valid for org-scoped API keys. */
|
|
14
|
+
export declare function resolveOrgId(override?: string): string | undefined;
|
|
15
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,qEAAqE;AACrE,eAAO,MAAM,0BAA0B,yBAAyB,CAAC;AAIjE;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,CAE7D;AAED,wGAAwG;AACxG,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC;AAED,wBAAgB,SAAS,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAWnD;AAED,wBAAgB,UAAU,IAAI,MAAM,CAMnC;AAED,mGAAmG;AACnG,wBAAgB,YAAY,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAElE"}
|
package/dist/config.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** Default Lightning Cloud origin when no base URL is configured. */
|
|
2
|
+
export const DEFAULT_LIGHTNING_BASE_URL = "https://lightning.ai";
|
|
3
|
+
let globalConfig = {};
|
|
4
|
+
/**
|
|
5
|
+
* Merges options into the SDK-wide defaults used by HTTP requests.
|
|
6
|
+
* Called by {@link Sandbox.configure}; prefer that on the public API.
|
|
7
|
+
*/
|
|
8
|
+
export function mergeSandboxConfig(patch) {
|
|
9
|
+
globalConfig = { ...globalConfig, ...patch };
|
|
10
|
+
}
|
|
11
|
+
/** Clears module-level config (for tests and process isolation). Not exported from the package root. */
|
|
12
|
+
export function resetSandboxConfig() {
|
|
13
|
+
globalConfig = {};
|
|
14
|
+
}
|
|
15
|
+
export function getApiKey(override) {
|
|
16
|
+
const key = override ??
|
|
17
|
+
globalConfig.apiKey ??
|
|
18
|
+
(typeof process !== "undefined" ? process.env.LIGHTNING_API_KEY : undefined);
|
|
19
|
+
if (!key) {
|
|
20
|
+
throw new Error("Missing API key. Pass apiKey to Sandbox.configure(), provide it in create/get options, or set the LIGHTNING_API_KEY environment variable.");
|
|
21
|
+
}
|
|
22
|
+
return key;
|
|
23
|
+
}
|
|
24
|
+
export function getBaseUrl() {
|
|
25
|
+
return (globalConfig.baseUrl ??
|
|
26
|
+
(typeof process !== "undefined" ? process.env.LIGHTNING_CLOUD_URL : undefined) ??
|
|
27
|
+
DEFAULT_LIGHTNING_BASE_URL);
|
|
28
|
+
}
|
|
29
|
+
/** Org ID from call-site override or global config; undefined is valid for org-scoped API keys. */
|
|
30
|
+
export function resolveOrgId(override) {
|
|
31
|
+
return override ?? globalConfig.organizationId;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,qEAAqE;AACrE,MAAM,CAAC,MAAM,0BAA0B,GAAG,sBAAsB,CAAC;AAEjE,IAAI,YAAY,GAAkB,EAAE,CAAC;AAErC;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAoB;IACrD,YAAY,GAAG,EAAE,GAAG,YAAY,EAAE,GAAG,KAAK,EAAE,CAAC;AAC/C,CAAC;AAED,wGAAwG;AACxG,MAAM,UAAU,kBAAkB;IAChC,YAAY,GAAG,EAAE,CAAC;AACpB,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,QAAiB;IACzC,MAAM,GAAG,GACP,QAAQ;QACR,YAAY,CAAC,MAAM;QACnB,CAAC,OAAO,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAC/E,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CACb,2IAA2I,CAC5I,CAAC;IACJ,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,UAAU,UAAU;IACxB,OAAO,CACL,YAAY,CAAC,OAAO;QACpB,CAAC,OAAO,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;QAC9E,0BAA0B,CAC3B,CAAC;AACJ,CAAC;AAED,mGAAmG;AACnG,MAAM,UAAU,YAAY,CAAC,QAAiB;IAC5C,OAAO,QAAQ,IAAI,YAAY,CAAC,cAAc,CAAC;AACjD,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Sandbox } from "./sandbox.js";
|
|
2
|
+
export type { SandboxConfig, SandboxData, CreateSandboxParams, GetSandboxParams, ListSandboxesParams, ListSandboxesResponse, RunCommandOpts, CommandResult, CommandStatus, CommandLog, WriteFileParams, ReadFileParams, CreateDirectoryParams, } from "./types.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EACV,aAAa,EACb,WAAW,EACX,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACd,aAAa,EACb,aAAa,EACb,UAAU,EACV,eAAe,EACf,cAAc,EACd,qBAAqB,GACtB,MAAM,YAAY,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { SandboxesServiceCreateSandboxDirectoryBody, SandboxesServiceExtendSandboxTimeoutBody, SandboxesServiceRunSandboxCommandBody, SandboxesServiceWriteSandboxFileBody, V1CreateSandboxRequest } from "./data-contracts";
|
|
2
|
+
import { HttpClient, RequestParams } from "./http-client";
|
|
3
|
+
export declare class SandboxesService<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
4
|
+
/**
|
|
5
|
+
* No description
|
|
6
|
+
*
|
|
7
|
+
* @tags SandboxesService
|
|
8
|
+
* @name SandboxesServiceListSandboxes
|
|
9
|
+
* @request GET:/v1/core/sandboxes
|
|
10
|
+
*/
|
|
11
|
+
sandboxesServiceListSandboxes: (query?: {
|
|
12
|
+
organizationId?: string;
|
|
13
|
+
pageToken?: string;
|
|
14
|
+
/** @format int64 */
|
|
15
|
+
limit?: string;
|
|
16
|
+
}, params?: RequestParams) => any;
|
|
17
|
+
/**
|
|
18
|
+
* No description
|
|
19
|
+
*
|
|
20
|
+
* @tags SandboxesService
|
|
21
|
+
* @name SandboxesServiceCreateSandbox
|
|
22
|
+
* @request POST:/v1/core/sandboxes
|
|
23
|
+
*/
|
|
24
|
+
sandboxesServiceCreateSandbox: (body: V1CreateSandboxRequest, params?: RequestParams) => any;
|
|
25
|
+
/**
|
|
26
|
+
* No description
|
|
27
|
+
*
|
|
28
|
+
* @tags SandboxesService
|
|
29
|
+
* @name SandboxesServiceGetSandbox
|
|
30
|
+
* @request GET:/v1/core/sandboxes/{id}
|
|
31
|
+
*/
|
|
32
|
+
sandboxesServiceGetSandbox: (id: string, query?: {
|
|
33
|
+
organizationId?: string;
|
|
34
|
+
}, params?: RequestParams) => any;
|
|
35
|
+
/**
|
|
36
|
+
* No description
|
|
37
|
+
*
|
|
38
|
+
* @tags SandboxesService
|
|
39
|
+
* @name SandboxesServiceDeleteSandbox
|
|
40
|
+
* @request DELETE:/v1/core/sandboxes/{id}
|
|
41
|
+
*/
|
|
42
|
+
sandboxesServiceDeleteSandbox: (id: string, query?: {
|
|
43
|
+
organizationId?: string;
|
|
44
|
+
}, params?: RequestParams) => any;
|
|
45
|
+
/**
|
|
46
|
+
* No description
|
|
47
|
+
*
|
|
48
|
+
* @tags SandboxesService
|
|
49
|
+
* @name SandboxesServiceRunSandboxCommand
|
|
50
|
+
* @request POST:/v1/core/sandboxes/{id}/commands
|
|
51
|
+
*/
|
|
52
|
+
sandboxesServiceRunSandboxCommand: (id: string, body: SandboxesServiceRunSandboxCommandBody, params?: RequestParams) => any;
|
|
53
|
+
/**
|
|
54
|
+
* No description
|
|
55
|
+
*
|
|
56
|
+
* @tags SandboxesService
|
|
57
|
+
* @name SandboxesServiceGetSandboxCommand
|
|
58
|
+
* @request GET:/v1/core/sandboxes/{id}/commands/{cmdId}
|
|
59
|
+
*/
|
|
60
|
+
sandboxesServiceGetSandboxCommand: (id: string, cmdId: string, query?: {
|
|
61
|
+
organizationId?: string;
|
|
62
|
+
}, params?: RequestParams) => any;
|
|
63
|
+
/**
|
|
64
|
+
* No description
|
|
65
|
+
*
|
|
66
|
+
* @tags SandboxesService
|
|
67
|
+
* @name SandboxesServiceKillSandboxCommand
|
|
68
|
+
* @request POST:/v1/core/sandboxes/{id}/commands/{cmdId}/kill
|
|
69
|
+
*/
|
|
70
|
+
sandboxesServiceKillSandboxCommand: (id: string, cmdId: string, query?: {
|
|
71
|
+
organizationId?: string;
|
|
72
|
+
}, params?: RequestParams) => any;
|
|
73
|
+
/**
|
|
74
|
+
* No description
|
|
75
|
+
*
|
|
76
|
+
* @tags SandboxesService
|
|
77
|
+
* @name SandboxesServiceGetSandboxCommandLogs
|
|
78
|
+
* @request GET:/v1/core/sandboxes/{id}/commands/{cmdId}/logs
|
|
79
|
+
*/
|
|
80
|
+
sandboxesServiceGetSandboxCommandLogs: (id: string, cmdId: string, query?: {
|
|
81
|
+
organizationId?: string;
|
|
82
|
+
}, params?: RequestParams) => any;
|
|
83
|
+
/**
|
|
84
|
+
* No description
|
|
85
|
+
*
|
|
86
|
+
* @tags SandboxesService
|
|
87
|
+
* @name SandboxesServiceCreateSandboxDirectory
|
|
88
|
+
* @request POST:/v1/core/sandboxes/{id}/directories
|
|
89
|
+
*/
|
|
90
|
+
sandboxesServiceCreateSandboxDirectory: (id: string, body: SandboxesServiceCreateSandboxDirectoryBody, params?: RequestParams) => any;
|
|
91
|
+
/**
|
|
92
|
+
* No description
|
|
93
|
+
*
|
|
94
|
+
* @tags SandboxesService
|
|
95
|
+
* @name SandboxesServiceExtendSandboxTimeout
|
|
96
|
+
* @request POST:/v1/core/sandboxes/{id}/extend-timeout
|
|
97
|
+
*/
|
|
98
|
+
sandboxesServiceExtendSandboxTimeout: (id: string, body: SandboxesServiceExtendSandboxTimeoutBody, params?: RequestParams) => any;
|
|
99
|
+
/**
|
|
100
|
+
* No description
|
|
101
|
+
*
|
|
102
|
+
* @tags SandboxesService
|
|
103
|
+
* @name SandboxesServiceGetSandboxFile
|
|
104
|
+
* @request GET:/v1/core/sandboxes/{id}/files
|
|
105
|
+
*/
|
|
106
|
+
sandboxesServiceGetSandboxFile: (id: string, query?: {
|
|
107
|
+
organizationId?: string;
|
|
108
|
+
path?: string;
|
|
109
|
+
}, params?: RequestParams) => any;
|
|
110
|
+
/**
|
|
111
|
+
* No description
|
|
112
|
+
*
|
|
113
|
+
* @tags SandboxesService
|
|
114
|
+
* @name SandboxesServiceWriteSandboxFile
|
|
115
|
+
* @request POST:/v1/core/sandboxes/{id}/files
|
|
116
|
+
*/
|
|
117
|
+
sandboxesServiceWriteSandboxFile: (id: string, body: SandboxesServiceWriteSandboxFileBody, params?: RequestParams) => any;
|
|
118
|
+
}
|
|
119
|
+
//# sourceMappingURL=SandboxesService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxesService.d.ts","sourceRoot":"","sources":["../../../src/lightning_cloud/openapi/SandboxesService.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,0CAA0C,EAC1C,wCAAwC,EACxC,qCAAqC,EACrC,oCAAoC,EAEpC,sBAAsB,EAWvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAe,UAAU,EAAE,aAAa,E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,MAAM,0CAA0C,EAChD,SAAQ,aAAkB,SASvB;IACL;;;;;;OAMG;IACH,oCAAoC,GAClC,IAAI,MAAM,EACV,MAAM,wCAAwC,EAC9C,SAAQ,aAAkB,SASvB;IACL;;;;;;OAMG;IACH,8BAA8B,GAC5B,IAAI,MAAM,EACV,QAAQ;QACN,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,EACD,SAAQ,aAAkB,SAQvB;IACL;;;;;;OAMG;IACH,gCAAgC,GAC9B,IAAI,MAAM,EACV,MAAM,oCAAoC,EAC1C,SAAQ,aAAkB,SASvB;CACN"}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
/*
|
|
5
|
+
* ---------------------------------------------------------------
|
|
6
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
+
* ## ##
|
|
8
|
+
* ## AUTHOR: acacode ##
|
|
9
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
+
* ---------------------------------------------------------------
|
|
11
|
+
*/
|
|
12
|
+
import { ContentType, HttpClient } from "./http-client";
|
|
13
|
+
export class SandboxesService extends HttpClient {
|
|
14
|
+
/**
|
|
15
|
+
* No description
|
|
16
|
+
*
|
|
17
|
+
* @tags SandboxesService
|
|
18
|
+
* @name SandboxesServiceListSandboxes
|
|
19
|
+
* @request GET:/v1/core/sandboxes
|
|
20
|
+
*/
|
|
21
|
+
sandboxesServiceListSandboxes = (query, params = {}) => this.request({
|
|
22
|
+
path: `/v1/core/sandboxes`,
|
|
23
|
+
method: "GET",
|
|
24
|
+
query: query,
|
|
25
|
+
format: "json",
|
|
26
|
+
...params,
|
|
27
|
+
});
|
|
28
|
+
/**
|
|
29
|
+
* No description
|
|
30
|
+
*
|
|
31
|
+
* @tags SandboxesService
|
|
32
|
+
* @name SandboxesServiceCreateSandbox
|
|
33
|
+
* @request POST:/v1/core/sandboxes
|
|
34
|
+
*/
|
|
35
|
+
sandboxesServiceCreateSandbox = (body, params = {}) => this.request({
|
|
36
|
+
path: `/v1/core/sandboxes`,
|
|
37
|
+
method: "POST",
|
|
38
|
+
body: body,
|
|
39
|
+
type: ContentType.Json,
|
|
40
|
+
format: "json",
|
|
41
|
+
...params,
|
|
42
|
+
});
|
|
43
|
+
/**
|
|
44
|
+
* No description
|
|
45
|
+
*
|
|
46
|
+
* @tags SandboxesService
|
|
47
|
+
* @name SandboxesServiceGetSandbox
|
|
48
|
+
* @request GET:/v1/core/sandboxes/{id}
|
|
49
|
+
*/
|
|
50
|
+
sandboxesServiceGetSandbox = (id, query, params = {}) => this.request({
|
|
51
|
+
path: `/v1/core/sandboxes/${id}`,
|
|
52
|
+
method: "GET",
|
|
53
|
+
query: query,
|
|
54
|
+
format: "json",
|
|
55
|
+
...params,
|
|
56
|
+
});
|
|
57
|
+
/**
|
|
58
|
+
* No description
|
|
59
|
+
*
|
|
60
|
+
* @tags SandboxesService
|
|
61
|
+
* @name SandboxesServiceDeleteSandbox
|
|
62
|
+
* @request DELETE:/v1/core/sandboxes/{id}
|
|
63
|
+
*/
|
|
64
|
+
sandboxesServiceDeleteSandbox = (id, query, params = {}) => this.request({
|
|
65
|
+
path: `/v1/core/sandboxes/${id}`,
|
|
66
|
+
method: "DELETE",
|
|
67
|
+
query: query,
|
|
68
|
+
format: "json",
|
|
69
|
+
...params,
|
|
70
|
+
});
|
|
71
|
+
/**
|
|
72
|
+
* No description
|
|
73
|
+
*
|
|
74
|
+
* @tags SandboxesService
|
|
75
|
+
* @name SandboxesServiceRunSandboxCommand
|
|
76
|
+
* @request POST:/v1/core/sandboxes/{id}/commands
|
|
77
|
+
*/
|
|
78
|
+
sandboxesServiceRunSandboxCommand = (id, body, params = {}) => this.request({
|
|
79
|
+
path: `/v1/core/sandboxes/${id}/commands`,
|
|
80
|
+
method: "POST",
|
|
81
|
+
body: body,
|
|
82
|
+
type: ContentType.Json,
|
|
83
|
+
format: "json",
|
|
84
|
+
...params,
|
|
85
|
+
});
|
|
86
|
+
/**
|
|
87
|
+
* No description
|
|
88
|
+
*
|
|
89
|
+
* @tags SandboxesService
|
|
90
|
+
* @name SandboxesServiceGetSandboxCommand
|
|
91
|
+
* @request GET:/v1/core/sandboxes/{id}/commands/{cmdId}
|
|
92
|
+
*/
|
|
93
|
+
sandboxesServiceGetSandboxCommand = (id, cmdId, query, params = {}) => this.request({
|
|
94
|
+
path: `/v1/core/sandboxes/${id}/commands/${cmdId}`,
|
|
95
|
+
method: "GET",
|
|
96
|
+
query: query,
|
|
97
|
+
format: "json",
|
|
98
|
+
...params,
|
|
99
|
+
});
|
|
100
|
+
/**
|
|
101
|
+
* No description
|
|
102
|
+
*
|
|
103
|
+
* @tags SandboxesService
|
|
104
|
+
* @name SandboxesServiceKillSandboxCommand
|
|
105
|
+
* @request POST:/v1/core/sandboxes/{id}/commands/{cmdId}/kill
|
|
106
|
+
*/
|
|
107
|
+
sandboxesServiceKillSandboxCommand = (id, cmdId, query, params = {}) => this.request({
|
|
108
|
+
path: `/v1/core/sandboxes/${id}/commands/${cmdId}/kill`,
|
|
109
|
+
method: "POST",
|
|
110
|
+
query: query,
|
|
111
|
+
format: "json",
|
|
112
|
+
...params,
|
|
113
|
+
});
|
|
114
|
+
/**
|
|
115
|
+
* No description
|
|
116
|
+
*
|
|
117
|
+
* @tags SandboxesService
|
|
118
|
+
* @name SandboxesServiceGetSandboxCommandLogs
|
|
119
|
+
* @request GET:/v1/core/sandboxes/{id}/commands/{cmdId}/logs
|
|
120
|
+
*/
|
|
121
|
+
sandboxesServiceGetSandboxCommandLogs = (id, cmdId, query, params = {}) => this.request({
|
|
122
|
+
path: `/v1/core/sandboxes/${id}/commands/${cmdId}/logs`,
|
|
123
|
+
method: "GET",
|
|
124
|
+
query: query,
|
|
125
|
+
format: "json",
|
|
126
|
+
...params,
|
|
127
|
+
});
|
|
128
|
+
/**
|
|
129
|
+
* No description
|
|
130
|
+
*
|
|
131
|
+
* @tags SandboxesService
|
|
132
|
+
* @name SandboxesServiceCreateSandboxDirectory
|
|
133
|
+
* @request POST:/v1/core/sandboxes/{id}/directories
|
|
134
|
+
*/
|
|
135
|
+
sandboxesServiceCreateSandboxDirectory = (id, body, params = {}) => this.request({
|
|
136
|
+
path: `/v1/core/sandboxes/${id}/directories`,
|
|
137
|
+
method: "POST",
|
|
138
|
+
body: body,
|
|
139
|
+
type: ContentType.Json,
|
|
140
|
+
format: "json",
|
|
141
|
+
...params,
|
|
142
|
+
});
|
|
143
|
+
/**
|
|
144
|
+
* No description
|
|
145
|
+
*
|
|
146
|
+
* @tags SandboxesService
|
|
147
|
+
* @name SandboxesServiceExtendSandboxTimeout
|
|
148
|
+
* @request POST:/v1/core/sandboxes/{id}/extend-timeout
|
|
149
|
+
*/
|
|
150
|
+
sandboxesServiceExtendSandboxTimeout = (id, body, params = {}) => this.request({
|
|
151
|
+
path: `/v1/core/sandboxes/${id}/extend-timeout`,
|
|
152
|
+
method: "POST",
|
|
153
|
+
body: body,
|
|
154
|
+
type: ContentType.Json,
|
|
155
|
+
format: "json",
|
|
156
|
+
...params,
|
|
157
|
+
});
|
|
158
|
+
/**
|
|
159
|
+
* No description
|
|
160
|
+
*
|
|
161
|
+
* @tags SandboxesService
|
|
162
|
+
* @name SandboxesServiceGetSandboxFile
|
|
163
|
+
* @request GET:/v1/core/sandboxes/{id}/files
|
|
164
|
+
*/
|
|
165
|
+
sandboxesServiceGetSandboxFile = (id, query, params = {}) => this.request({
|
|
166
|
+
path: `/v1/core/sandboxes/${id}/files`,
|
|
167
|
+
method: "GET",
|
|
168
|
+
query: query,
|
|
169
|
+
format: "json",
|
|
170
|
+
...params,
|
|
171
|
+
});
|
|
172
|
+
/**
|
|
173
|
+
* No description
|
|
174
|
+
*
|
|
175
|
+
* @tags SandboxesService
|
|
176
|
+
* @name SandboxesServiceWriteSandboxFile
|
|
177
|
+
* @request POST:/v1/core/sandboxes/{id}/files
|
|
178
|
+
*/
|
|
179
|
+
sandboxesServiceWriteSandboxFile = (id, body, params = {}) => this.request({
|
|
180
|
+
path: `/v1/core/sandboxes/${id}/files`,
|
|
181
|
+
method: "POST",
|
|
182
|
+
body: body,
|
|
183
|
+
type: ContentType.Json,
|
|
184
|
+
format: "json",
|
|
185
|
+
...params,
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
//# sourceMappingURL=SandboxesService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxesService.js","sourceRoot":"","sources":["../../../src/lightning_cloud/openapi/SandboxesService.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;AAqBH,OAAO,EAAE,WAAW,EAAE,UAAU,EAAiB,MAAM,eAAe,CAAC;AAEvE,MAAM,OAAO,gBAEX,SAAQ,UAA4B;IACpC;;;;;;OAMG;IACH,6BAA6B,GAAG,CAC9B,KAKC,EACD,SAAwB,EAAE,EAC1B,EAAE,CACF,IAAI,CAAC,OAAO,CAAqC;QAC/C,IAAI,EAAE,oBAAoB;QAC1B,MAAM,EAAE,KAAK;QACb,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,MAAM;QACd,GAAG,MAAM;KACV,CAAC,CAAC;IACL;;;;;;OAMG;IACH,6BAA6B,GAAG,CAC9B,IAA4B,EAC5B,SAAwB,EAAE,EAC1B,EAAE,CACF,IAAI,CAAC,OAAO,CAAuB;QACjC,IAAI,EAAE,oBAAoB;QAC1B,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,WAAW,CAAC,IAAI;QACtB,MAAM,EAAE,MAAM;QACd,GAAG,MAAM;KACV,CAAC,CAAC;IACL;;;;;;OAMG;IACH,0BAA0B,GAAG,CAC3B,EAAU,EACV,KAEC,EACD,SAAwB,EAAE,EAC1B,EAAE,CACF,IAAI,CAAC,OAAO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;OAMG;IACH,gCAAgC,GAAG,CACjC,EAAU,EACV,IAA0C,EAC1C,SAAwB,EAAE,EAC1B,EAAE,CACF,IAAI,CAAC,OAAO,CAAwC;QAClD,IAAI,EAAE,sBAAsB,EAAE,QAAQ;QACtC,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,WAAW,CAAC,IAAI;QACtB,MAAM,EAAE,MAAM;QACd,GAAG,MAAM;KACV,CAAC,CAAC;CACN"}
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
export interface SandboxesServiceCreateSandboxDirectoryBody {
|
|
2
|
+
organizationId?: string;
|
|
3
|
+
path?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface SandboxesServiceExtendSandboxTimeoutBody {
|
|
6
|
+
organizationId?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The amount of time in milliseconds to add to the current timeout. Must be at least 1000ms (1 second).
|
|
9
|
+
* @format uint64
|
|
10
|
+
*/
|
|
11
|
+
timeout?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface SandboxesServiceRunSandboxCommandBody {
|
|
14
|
+
organizationId?: string;
|
|
15
|
+
command?: string;
|
|
16
|
+
detached?: boolean;
|
|
17
|
+
args?: string[];
|
|
18
|
+
cwd?: string;
|
|
19
|
+
env?: Record<string, string>;
|
|
20
|
+
sudo?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface SandboxesServiceWriteSandboxFileBody {
|
|
23
|
+
organizationId?: string;
|
|
24
|
+
path?: string;
|
|
25
|
+
content?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
29
|
+
* URL that describes the type of the serialized message.
|
|
30
|
+
*
|
|
31
|
+
* Protobuf library provides support to pack/unpack Any values in the form
|
|
32
|
+
* of utility functions or additional generated methods of the Any type.
|
|
33
|
+
*
|
|
34
|
+
* Example 1: Pack and unpack a message in C++.
|
|
35
|
+
*
|
|
36
|
+
* Foo foo = ...;
|
|
37
|
+
* Any any;
|
|
38
|
+
* any.PackFrom(foo);
|
|
39
|
+
* ...
|
|
40
|
+
* if (any.UnpackTo(&foo)) {
|
|
41
|
+
* ...
|
|
42
|
+
* }
|
|
43
|
+
*
|
|
44
|
+
* Example 2: Pack and unpack a message in Java.
|
|
45
|
+
*
|
|
46
|
+
* Foo foo = ...;
|
|
47
|
+
* Any any = Any.pack(foo);
|
|
48
|
+
* ...
|
|
49
|
+
* if (any.is(Foo.class)) {
|
|
50
|
+
* foo = any.unpack(Foo.class);
|
|
51
|
+
* }
|
|
52
|
+
*
|
|
53
|
+
* Example 3: Pack and unpack a message in Python.
|
|
54
|
+
*
|
|
55
|
+
* foo = Foo(...)
|
|
56
|
+
* any = Any()
|
|
57
|
+
* any.Pack(foo)
|
|
58
|
+
* ...
|
|
59
|
+
* if any.Is(Foo.DESCRIPTOR):
|
|
60
|
+
* any.Unpack(foo)
|
|
61
|
+
* ...
|
|
62
|
+
*
|
|
63
|
+
* Example 4: Pack and unpack a message in Go
|
|
64
|
+
*
|
|
65
|
+
* foo := &pb.Foo{...}
|
|
66
|
+
* any, err := anypb.New(foo)
|
|
67
|
+
* if err != nil {
|
|
68
|
+
* ...
|
|
69
|
+
* }
|
|
70
|
+
* ...
|
|
71
|
+
* foo := &pb.Foo{}
|
|
72
|
+
* if err := any.UnmarshalTo(foo); err != nil {
|
|
73
|
+
* ...
|
|
74
|
+
* }
|
|
75
|
+
*
|
|
76
|
+
* The pack methods provided by protobuf library will by default use
|
|
77
|
+
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
78
|
+
* methods only use the fully qualified type name after the last '/'
|
|
79
|
+
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
80
|
+
* name "y.z".
|
|
81
|
+
*
|
|
82
|
+
*
|
|
83
|
+
* JSON
|
|
84
|
+
*
|
|
85
|
+
* The JSON representation of an `Any` value uses the regular
|
|
86
|
+
* representation of the deserialized, embedded message, with an
|
|
87
|
+
* additional field `@type` which contains the type URL. Example:
|
|
88
|
+
*
|
|
89
|
+
* package google.profile;
|
|
90
|
+
* message Person {
|
|
91
|
+
* string first_name = 1;
|
|
92
|
+
* string last_name = 2;
|
|
93
|
+
* }
|
|
94
|
+
*
|
|
95
|
+
* {
|
|
96
|
+
* "@type": "type.googleapis.com/google.profile.Person",
|
|
97
|
+
* "firstName": <string>,
|
|
98
|
+
* "lastName": <string>
|
|
99
|
+
* }
|
|
100
|
+
*
|
|
101
|
+
* If the embedded message type is well-known and has a custom JSON
|
|
102
|
+
* representation, that representation will be embedded adding a field
|
|
103
|
+
* `value` which holds the custom JSON in addition to the `@type`
|
|
104
|
+
* field. Example (for message [google.protobuf.Duration][]):
|
|
105
|
+
*
|
|
106
|
+
* {
|
|
107
|
+
* "@type": "type.googleapis.com/google.protobuf.Duration",
|
|
108
|
+
* "value": "1.212s"
|
|
109
|
+
* }
|
|
110
|
+
*/
|
|
111
|
+
export interface ProtobufAny {
|
|
112
|
+
/**
|
|
113
|
+
* A URL/resource name that uniquely identifies the type of the serialized
|
|
114
|
+
* protocol buffer message. This string must contain at least
|
|
115
|
+
* one "/" character. The last segment of the URL's path must represent
|
|
116
|
+
* the fully qualified name of the type (as in
|
|
117
|
+
* `path/google.protobuf.Duration`). The name should be in a canonical form
|
|
118
|
+
* (e.g., leading "." is not accepted).
|
|
119
|
+
*
|
|
120
|
+
* In practice, teams usually precompile into the binary all types that they
|
|
121
|
+
* expect it to use in the context of Any. However, for URLs which use the
|
|
122
|
+
* scheme `http`, `https`, or no scheme, one can optionally set up a type
|
|
123
|
+
* server that maps type URLs to message definitions as follows:
|
|
124
|
+
*
|
|
125
|
+
* * If no scheme is provided, `https` is assumed.
|
|
126
|
+
* * An HTTP GET on the URL must yield a [google.protobuf.Type][]
|
|
127
|
+
* value in binary format, or produce an error.
|
|
128
|
+
* * Applications are allowed to cache lookup results based on the
|
|
129
|
+
* URL, or have them precompiled into a binary to avoid any
|
|
130
|
+
* lookup. Therefore, binary compatibility needs to be preserved
|
|
131
|
+
* on changes to types. (Use versioned type names to manage
|
|
132
|
+
* breaking changes.)
|
|
133
|
+
*
|
|
134
|
+
* Note: this functionality is not currently available in the official
|
|
135
|
+
* protobuf release, and it is not used for type URLs beginning with
|
|
136
|
+
* type.googleapis.com.
|
|
137
|
+
*
|
|
138
|
+
* Schemes other than `http`, `https` (or the empty scheme) might be
|
|
139
|
+
* used with implementation specific semantics.
|
|
140
|
+
*/
|
|
141
|
+
"@type"?: string;
|
|
142
|
+
[key: string]: any;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* The `Status` type defines a logical error model that is suitable for
|
|
146
|
+
* different programming environments, including REST APIs and RPC APIs. It is
|
|
147
|
+
* used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
|
148
|
+
* three pieces of data: error code, error message, and error details.
|
|
149
|
+
*
|
|
150
|
+
* You can find out more about this error model and how to work with it in the
|
|
151
|
+
* [API Design Guide](https://cloud.google.com/apis/design/errors).
|
|
152
|
+
*/
|
|
153
|
+
export interface RpcStatus {
|
|
154
|
+
/**
|
|
155
|
+
* The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
|
|
156
|
+
* @format int32
|
|
157
|
+
*/
|
|
158
|
+
code?: number;
|
|
159
|
+
/**
|
|
160
|
+
* A developer-facing error message, which should be in English. Any
|
|
161
|
+
* user-facing error message should be localized and sent in the
|
|
162
|
+
* [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
|
|
163
|
+
*/
|
|
164
|
+
message?: string;
|
|
165
|
+
/**
|
|
166
|
+
* A list of messages that carry the error details. There is a common set of
|
|
167
|
+
* message types for APIs to use.
|
|
168
|
+
*/
|
|
169
|
+
details?: ProtobufAny[];
|
|
170
|
+
}
|
|
171
|
+
export type V1CreateSandboxDirectoryResponse = object;
|
|
172
|
+
export interface V1CreateSandboxRequest {
|
|
173
|
+
name?: string;
|
|
174
|
+
organizationId?: string;
|
|
175
|
+
clusterId?: string;
|
|
176
|
+
instanceType?: string;
|
|
177
|
+
spot?: boolean;
|
|
178
|
+
cloudspaceId?: string;
|
|
179
|
+
runtime?: string;
|
|
180
|
+
ports?: string[];
|
|
181
|
+
/**
|
|
182
|
+
* Optional override for the sandbox's writable disk size, in GB. When
|
|
183
|
+
* unset (0) the sandbox inherits the instance-type default from the
|
|
184
|
+
* `cpu-sandbox-*` accelerator (10 / 40 / 60 / 80 GB for cpu-2/4/8/16).
|
|
185
|
+
* Only applies to CPU sandboxes — GPU / VM paths ignore this field.
|
|
186
|
+
* @format uint64
|
|
187
|
+
*/
|
|
188
|
+
storageGb?: string;
|
|
189
|
+
/**
|
|
190
|
+
* Maximum duration in milliseconds that the sandbox can run before being automatically stopped.
|
|
191
|
+
* @format uint64
|
|
192
|
+
*/
|
|
193
|
+
timeout?: string;
|
|
194
|
+
}
|
|
195
|
+
export type V1DeleteSandboxResponse = object;
|
|
196
|
+
export type V1ExtendSandboxTimeoutResponse = object;
|
|
197
|
+
export interface V1GetSandboxCommandLogsResponse {
|
|
198
|
+
logs?: V1LogMessage[];
|
|
199
|
+
followUrl?: string;
|
|
200
|
+
}
|
|
201
|
+
export interface V1GetSandboxCommandResponse {
|
|
202
|
+
output?: string;
|
|
203
|
+
/** @format int32 */
|
|
204
|
+
exitCode?: number;
|
|
205
|
+
}
|
|
206
|
+
export interface V1GetSandboxFileResponse {
|
|
207
|
+
content?: string;
|
|
208
|
+
}
|
|
209
|
+
export type V1KillSandboxCommandResponse = object;
|
|
210
|
+
export interface V1ListSandboxesResponse {
|
|
211
|
+
sandboxes?: V1Sandbox[];
|
|
212
|
+
nextPageToken?: string;
|
|
213
|
+
previousPageToken?: string;
|
|
214
|
+
/** @format int64 */
|
|
215
|
+
totalSize?: string;
|
|
216
|
+
}
|
|
217
|
+
export interface V1LogMessage {
|
|
218
|
+
timestamp?: string;
|
|
219
|
+
message?: string;
|
|
220
|
+
}
|
|
221
|
+
export interface V1RunSandboxCommandResponse {
|
|
222
|
+
cmdId?: string;
|
|
223
|
+
output?: string;
|
|
224
|
+
/** @format int32 */
|
|
225
|
+
exitCode?: number;
|
|
226
|
+
}
|
|
227
|
+
export interface V1Sandbox {
|
|
228
|
+
id?: string;
|
|
229
|
+
name?: string;
|
|
230
|
+
organizationId?: string;
|
|
231
|
+
clusterId?: string;
|
|
232
|
+
instanceType?: string;
|
|
233
|
+
spot?: boolean;
|
|
234
|
+
status?: string;
|
|
235
|
+
cloudspaceId?: string;
|
|
236
|
+
ports?: string[];
|
|
237
|
+
runtime?: string;
|
|
238
|
+
/** @format date-time */
|
|
239
|
+
createdAt?: string;
|
|
240
|
+
/** @format date-time */
|
|
241
|
+
updatedAt?: string;
|
|
242
|
+
}
|
|
243
|
+
export type V1WriteSandboxFileResponse = object;
|
|
244
|
+
//# sourceMappingURL=data-contracts.d.ts.map
|