@lightningai/sdk 2026.5.15-post0 → 2026.5.21
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/lightning_cloud/openapi/SandboxesService.d.ts +119 -1
- package/dist/lightning_cloud/openapi/SandboxesService.d.ts.map +1 -1
- package/dist/lightning_cloud/openapi/SandboxesService.js +158 -0
- package/dist/lightning_cloud/openapi/SandboxesService.js.map +1 -1
- package/dist/lightning_cloud/openapi/data-contracts.d.ts +214 -0
- package/dist/lightning_cloud/openapi/data-contracts.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SandboxesServiceCreateSandboxDirectoryBody, SandboxesServiceExtendSandboxTimeoutBody, SandboxesServiceRunSandboxCommandBody, SandboxesServiceWriteSandboxFileBody, V1CreateSandboxRequest } from "./data-contracts";
|
|
1
|
+
import { SandboxesServiceCreateSandboxDirectoryBody, SandboxesServiceCreateSandboxSnapshotBody, SandboxesServiceExtendSandboxTimeoutBody, SandboxesServiceFinalizeSandboxSnapshotBody, SandboxesServiceGetSandboxSnapshotBlobDownloadUrlsBody, SandboxesServiceGetSandboxSnapshotBlobUploadUrlsBody, SandboxesServiceRunSandboxCommandBody, SandboxesServiceStopSandboxBody, SandboxesServiceUpdateSandboxBody, SandboxesServiceWriteSandboxFileBody, V1CreateSandboxRequest } from "./data-contracts";
|
|
2
2
|
import { HttpClient, RequestParams } from "./http-client";
|
|
3
3
|
export declare class SandboxesService<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
4
4
|
/**
|
|
@@ -6,6 +6,7 @@ export declare class SandboxesService<SecurityDataType = unknown> extends HttpCl
|
|
|
6
6
|
*
|
|
7
7
|
* @tags SandboxesService
|
|
8
8
|
* @name SandboxesServiceListSandboxes
|
|
9
|
+
* @summary Sandboxes
|
|
9
10
|
* @request GET:/v1/core/sandboxes
|
|
10
11
|
*/
|
|
11
12
|
sandboxesServiceListSandboxes: (query?: {
|
|
@@ -13,6 +14,14 @@ export declare class SandboxesService<SecurityDataType = unknown> extends HttpCl
|
|
|
13
14
|
pageToken?: string;
|
|
14
15
|
/** @format int64 */
|
|
15
16
|
limit?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Optional teamspace/project scoping. When set, only sandboxes belonging
|
|
19
|
+
* to this project are returned. Mirrors `ListSandboxSnapshotsRequest`.
|
|
20
|
+
* Sandboxes created before this field landed have no `project_id`
|
|
21
|
+
* persisted server-side, so filtering will return an empty set until
|
|
22
|
+
* sandboxes are recreated with a project context.
|
|
23
|
+
*/
|
|
24
|
+
projectId?: string;
|
|
16
25
|
}, params?: RequestParams) => any;
|
|
17
26
|
/**
|
|
18
27
|
* No description
|
|
@@ -22,6 +31,79 @@ export declare class SandboxesService<SecurityDataType = unknown> extends HttpCl
|
|
|
22
31
|
* @request POST:/v1/core/sandboxes
|
|
23
32
|
*/
|
|
24
33
|
sandboxesServiceCreateSandbox: (body: V1CreateSandboxRequest, params?: RequestParams) => any;
|
|
34
|
+
/**
|
|
35
|
+
* No description
|
|
36
|
+
*
|
|
37
|
+
* @tags SandboxesService
|
|
38
|
+
* @name SandboxesServiceListSandboxSnapshots
|
|
39
|
+
* @summary Snapshots
|
|
40
|
+
* @request GET:/v1/core/sandboxes/snapshots
|
|
41
|
+
*/
|
|
42
|
+
sandboxesServiceListSandboxSnapshots: (query?: {
|
|
43
|
+
organizationId?: string;
|
|
44
|
+
pageToken?: string;
|
|
45
|
+
/** @format int64 */
|
|
46
|
+
limit?: string;
|
|
47
|
+
projectId?: string;
|
|
48
|
+
name?: string;
|
|
49
|
+
sortOrder?: string;
|
|
50
|
+
}, params?: RequestParams) => any;
|
|
51
|
+
/**
|
|
52
|
+
* No description
|
|
53
|
+
*
|
|
54
|
+
* @tags SandboxesService
|
|
55
|
+
* @name SandboxesServiceGetSandboxSnapshot
|
|
56
|
+
* @request GET:/v1/core/sandboxes/snapshots/{snapshotId}
|
|
57
|
+
*/
|
|
58
|
+
sandboxesServiceGetSandboxSnapshot: (snapshotId: string, query?: {
|
|
59
|
+
organizationId?: string;
|
|
60
|
+
}, params?: RequestParams) => any;
|
|
61
|
+
/**
|
|
62
|
+
* No description
|
|
63
|
+
*
|
|
64
|
+
* @tags SandboxesService
|
|
65
|
+
* @name SandboxesServiceDeleteSandboxSnapshot
|
|
66
|
+
* @request DELETE:/v1/core/sandboxes/snapshots/{snapshotId}
|
|
67
|
+
*/
|
|
68
|
+
sandboxesServiceDeleteSandboxSnapshot: (snapshotId: string, query?: {
|
|
69
|
+
organizationId?: string;
|
|
70
|
+
}, params?: RequestParams) => any;
|
|
71
|
+
/**
|
|
72
|
+
* No description
|
|
73
|
+
*
|
|
74
|
+
* @tags SandboxesService
|
|
75
|
+
* @name SandboxesServiceGetSandboxSnapshotBlobDownloadUrls
|
|
76
|
+
* @summary GetSandboxSnapshotBlobDownloadUrls mints presigned GET URLs for a
|
|
77
|
+
batch of sha256 digests so the restoring agent can pull missing
|
|
78
|
+
blobs from S3 directly. One URL per digest, in request order.
|
|
79
|
+
* @request POST:/v1/core/sandboxes/snapshots/{snapshotId}/blobs/download-urls
|
|
80
|
+
*/
|
|
81
|
+
sandboxesServiceGetSandboxSnapshotBlobDownloadUrls: (snapshotId: string, body: SandboxesServiceGetSandboxSnapshotBlobDownloadUrlsBody, params?: RequestParams) => any;
|
|
82
|
+
/**
|
|
83
|
+
* No description
|
|
84
|
+
*
|
|
85
|
+
* @tags SandboxesService
|
|
86
|
+
* @name SandboxesServiceGetSandboxSnapshotBlobUploadUrls
|
|
87
|
+
* @summary GetSandboxSnapshotBlobUploadUrls performs an existence check on
|
|
88
|
+
the supplied sha256 digests in the cluster blob store and returns
|
|
89
|
+
presigned PUT URLs only for those not already present. Existing
|
|
90
|
+
digests are echoed back in `existing_digests` so the caller can
|
|
91
|
+
skip uploading them.
|
|
92
|
+
* @request POST:/v1/core/sandboxes/snapshots/{snapshotId}/blobs/upload-urls
|
|
93
|
+
*/
|
|
94
|
+
sandboxesServiceGetSandboxSnapshotBlobUploadUrls: (snapshotId: string, body: SandboxesServiceGetSandboxSnapshotBlobUploadUrlsBody, params?: RequestParams) => any;
|
|
95
|
+
/**
|
|
96
|
+
* No description
|
|
97
|
+
*
|
|
98
|
+
* @tags SandboxesService
|
|
99
|
+
* @name SandboxesServiceFinalizeSandboxSnapshot
|
|
100
|
+
* @summary FinalizeSandboxSnapshot flips the row from "saving" to "ready"
|
|
101
|
+
after the agent has uploaded every blob and the manifest body to
|
|
102
|
+
`object_key`. The controlplane records final size_bytes +
|
|
103
|
+
rootfs_digest from the manifest.
|
|
104
|
+
* @request POST:/v1/core/sandboxes/snapshots/{snapshotId}/finalize
|
|
105
|
+
*/
|
|
106
|
+
sandboxesServiceFinalizeSandboxSnapshot: (snapshotId: string, body: SandboxesServiceFinalizeSandboxSnapshotBody, params?: RequestParams) => any;
|
|
25
107
|
/**
|
|
26
108
|
* No description
|
|
27
109
|
*
|
|
@@ -42,6 +124,20 @@ export declare class SandboxesService<SecurityDataType = unknown> extends HttpCl
|
|
|
42
124
|
sandboxesServiceDeleteSandbox: (id: string, query?: {
|
|
43
125
|
organizationId?: string;
|
|
44
126
|
}, params?: RequestParams) => any;
|
|
127
|
+
/**
|
|
128
|
+
* No description
|
|
129
|
+
*
|
|
130
|
+
* @tags SandboxesService
|
|
131
|
+
* @name SandboxesServiceUpdateSandbox
|
|
132
|
+
* @summary UpdateSandbox updates a sandbox in place. Currently the only
|
|
133
|
+
supported mutation is `resume = true`, which resumes a previously
|
|
134
|
+
stopped persistent sandbox from its most recent auto-snapshot while
|
|
135
|
+
preserving the sandbox id. Modelled on Vercel's update-sandbox
|
|
136
|
+
endpoint:
|
|
137
|
+
https://vercel.com/docs/rest-api/sandboxes-v2-beta/update-a-sandbox.
|
|
138
|
+
* @request PATCH:/v1/core/sandboxes/{id}
|
|
139
|
+
*/
|
|
140
|
+
sandboxesServiceUpdateSandbox: (id: string, body: SandboxesServiceUpdateSandboxBody, params?: RequestParams) => any;
|
|
45
141
|
/**
|
|
46
142
|
* No description
|
|
47
143
|
*
|
|
@@ -115,5 +211,27 @@ export declare class SandboxesService<SecurityDataType = unknown> extends HttpCl
|
|
|
115
211
|
* @request POST:/v1/core/sandboxes/{id}/files
|
|
116
212
|
*/
|
|
117
213
|
sandboxesServiceWriteSandboxFile: (id: string, body: SandboxesServiceWriteSandboxFileBody, params?: RequestParams) => any;
|
|
214
|
+
/**
|
|
215
|
+
* No description
|
|
216
|
+
*
|
|
217
|
+
* @tags SandboxesService
|
|
218
|
+
* @name SandboxesServiceCreateSandboxSnapshot
|
|
219
|
+
* @request POST:/v1/core/sandboxes/{id}/snapshot
|
|
220
|
+
*/
|
|
221
|
+
sandboxesServiceCreateSandboxSnapshot: (id: string, body: SandboxesServiceCreateSandboxSnapshotBody, params?: RequestParams) => any;
|
|
222
|
+
/**
|
|
223
|
+
* No description
|
|
224
|
+
*
|
|
225
|
+
* @tags SandboxesService
|
|
226
|
+
* @name SandboxesServiceStopSandbox
|
|
227
|
+
* @summary StopSandbox stops a running sandbox. For sandboxes created with
|
|
228
|
+
`persistent = true`, the controlplane first captures an auto-snapshot
|
|
229
|
+
keyed to the sandbox id (returned in `auto_snapshot_id`) so the
|
|
230
|
+
sandbox can later be brought back via UpdateSandbox(resume=true)
|
|
231
|
+
without losing filesystem state. For non-persistent sandboxes the
|
|
232
|
+
server is simply stopped and no snapshot is taken.
|
|
233
|
+
* @request POST:/v1/core/sandboxes/{id}/stop
|
|
234
|
+
*/
|
|
235
|
+
sandboxesServiceStopSandbox: (id: string, body: SandboxesServiceStopSandboxBody, params?: RequestParams) => any;
|
|
118
236
|
}
|
|
119
237
|
//# sourceMappingURL=SandboxesService.d.ts.map
|
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"SandboxesService.d.ts","sourceRoot":"","sources":["../../../src/lightning_cloud/openapi/SandboxesService.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,0CAA0C,EAC1C,yCAAyC,EACzC,wCAAwC,EACxC,2CAA2C,EAC3C,sDAAsD,EACtD,oDAAoD,EACpD,qCAAqC,EACrC,+BAA+B,EAC/B,iCAAiC,EACjC,oCAAoC,EAEpC,sBAAsB,EAiBvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAe,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEvE,qBAAa,gBAAgB,CAC3B,gBAAgB,GAAG,OAAO,CAC1B,SAAQ,UAAU,CAAC,gBAAgB,CAAC;IACpC;;;;;;;OAOG;IACH,6BAA6B,GAC3B,QAAQ;QACN,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,oBAAoB;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;;;;;WAMG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,EACD,SAAQ,aAAkB,SAQvB;IACL;;;;;;OAMG;IACH,6BAA6B,GAC3B,MAAM,sBAAsB,EAC5B,SAAQ,aAAkB,SASvB;IACL;;;;;;;OAOG;IACH,oCAAoC,GAClC,QAAQ;QACN,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,oBAAoB;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,EACD,SAAQ,aAAkB,SAQvB;IACL;;;;;;OAMG;IACH,kCAAkC,GAChC,YAAY,MAAM,EAClB,QAAQ;QACN,cAAc,CAAC,EAAE,MAAM,C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H,qCAAqC,GACnC,IAAI,MAAM,EACV,OAAO,MAAM,EACb,QAAQ;QACN,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,EACD,SAAQ,aAAkB,SAQvB;IACL;;;;;;OAMG;IACH,sCAAsC,GACpC,IAAI,MAAM,EACV,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;IACL;;;;;;OAMG;IACH,qCAAqC,GACnC,IAAI,MAAM,EACV,MAAM,yCAAyC,EAC/C,SAAQ,aAAkB,SASvB;IACL;;;;;;;;;;;;KAYC;IACD,2BAA2B,GACzB,IAAI,MAAM,EACV,MAAM,+BAA+B,EACrC,SAAQ,aAAkB,SASvB;CACN"}
|
|
@@ -16,6 +16,7 @@ export class SandboxesService extends HttpClient {
|
|
|
16
16
|
*
|
|
17
17
|
* @tags SandboxesService
|
|
18
18
|
* @name SandboxesServiceListSandboxes
|
|
19
|
+
* @summary Sandboxes
|
|
19
20
|
* @request GET:/v1/core/sandboxes
|
|
20
21
|
*/
|
|
21
22
|
sandboxesServiceListSandboxes = (query, params = {}) => this.request({
|
|
@@ -40,6 +41,106 @@ export class SandboxesService extends HttpClient {
|
|
|
40
41
|
format: "json",
|
|
41
42
|
...params,
|
|
42
43
|
});
|
|
44
|
+
/**
|
|
45
|
+
* No description
|
|
46
|
+
*
|
|
47
|
+
* @tags SandboxesService
|
|
48
|
+
* @name SandboxesServiceListSandboxSnapshots
|
|
49
|
+
* @summary Snapshots
|
|
50
|
+
* @request GET:/v1/core/sandboxes/snapshots
|
|
51
|
+
*/
|
|
52
|
+
sandboxesServiceListSandboxSnapshots = (query, params = {}) => this.request({
|
|
53
|
+
path: `/v1/core/sandboxes/snapshots`,
|
|
54
|
+
method: "GET",
|
|
55
|
+
query: query,
|
|
56
|
+
format: "json",
|
|
57
|
+
...params,
|
|
58
|
+
});
|
|
59
|
+
/**
|
|
60
|
+
* No description
|
|
61
|
+
*
|
|
62
|
+
* @tags SandboxesService
|
|
63
|
+
* @name SandboxesServiceGetSandboxSnapshot
|
|
64
|
+
* @request GET:/v1/core/sandboxes/snapshots/{snapshotId}
|
|
65
|
+
*/
|
|
66
|
+
sandboxesServiceGetSandboxSnapshot = (snapshotId, query, params = {}) => this.request({
|
|
67
|
+
path: `/v1/core/sandboxes/snapshots/${snapshotId}`,
|
|
68
|
+
method: "GET",
|
|
69
|
+
query: query,
|
|
70
|
+
format: "json",
|
|
71
|
+
...params,
|
|
72
|
+
});
|
|
73
|
+
/**
|
|
74
|
+
* No description
|
|
75
|
+
*
|
|
76
|
+
* @tags SandboxesService
|
|
77
|
+
* @name SandboxesServiceDeleteSandboxSnapshot
|
|
78
|
+
* @request DELETE:/v1/core/sandboxes/snapshots/{snapshotId}
|
|
79
|
+
*/
|
|
80
|
+
sandboxesServiceDeleteSandboxSnapshot = (snapshotId, query, params = {}) => this.request({
|
|
81
|
+
path: `/v1/core/sandboxes/snapshots/${snapshotId}`,
|
|
82
|
+
method: "DELETE",
|
|
83
|
+
query: query,
|
|
84
|
+
format: "json",
|
|
85
|
+
...params,
|
|
86
|
+
});
|
|
87
|
+
/**
|
|
88
|
+
* No description
|
|
89
|
+
*
|
|
90
|
+
* @tags SandboxesService
|
|
91
|
+
* @name SandboxesServiceGetSandboxSnapshotBlobDownloadUrls
|
|
92
|
+
* @summary GetSandboxSnapshotBlobDownloadUrls mints presigned GET URLs for a
|
|
93
|
+
batch of sha256 digests so the restoring agent can pull missing
|
|
94
|
+
blobs from S3 directly. One URL per digest, in request order.
|
|
95
|
+
* @request POST:/v1/core/sandboxes/snapshots/{snapshotId}/blobs/download-urls
|
|
96
|
+
*/
|
|
97
|
+
sandboxesServiceGetSandboxSnapshotBlobDownloadUrls = (snapshotId, body, params = {}) => this.request({
|
|
98
|
+
path: `/v1/core/sandboxes/snapshots/${snapshotId}/blobs/download-urls`,
|
|
99
|
+
method: "POST",
|
|
100
|
+
body: body,
|
|
101
|
+
type: ContentType.Json,
|
|
102
|
+
format: "json",
|
|
103
|
+
...params,
|
|
104
|
+
});
|
|
105
|
+
/**
|
|
106
|
+
* No description
|
|
107
|
+
*
|
|
108
|
+
* @tags SandboxesService
|
|
109
|
+
* @name SandboxesServiceGetSandboxSnapshotBlobUploadUrls
|
|
110
|
+
* @summary GetSandboxSnapshotBlobUploadUrls performs an existence check on
|
|
111
|
+
the supplied sha256 digests in the cluster blob store and returns
|
|
112
|
+
presigned PUT URLs only for those not already present. Existing
|
|
113
|
+
digests are echoed back in `existing_digests` so the caller can
|
|
114
|
+
skip uploading them.
|
|
115
|
+
* @request POST:/v1/core/sandboxes/snapshots/{snapshotId}/blobs/upload-urls
|
|
116
|
+
*/
|
|
117
|
+
sandboxesServiceGetSandboxSnapshotBlobUploadUrls = (snapshotId, body, params = {}) => this.request({
|
|
118
|
+
path: `/v1/core/sandboxes/snapshots/${snapshotId}/blobs/upload-urls`,
|
|
119
|
+
method: "POST",
|
|
120
|
+
body: body,
|
|
121
|
+
type: ContentType.Json,
|
|
122
|
+
format: "json",
|
|
123
|
+
...params,
|
|
124
|
+
});
|
|
125
|
+
/**
|
|
126
|
+
* No description
|
|
127
|
+
*
|
|
128
|
+
* @tags SandboxesService
|
|
129
|
+
* @name SandboxesServiceFinalizeSandboxSnapshot
|
|
130
|
+
* @summary FinalizeSandboxSnapshot flips the row from "saving" to "ready"
|
|
131
|
+
after the agent has uploaded every blob and the manifest body to
|
|
132
|
+
`object_key`. The controlplane records final size_bytes +
|
|
133
|
+
rootfs_digest from the manifest.
|
|
134
|
+
* @request POST:/v1/core/sandboxes/snapshots/{snapshotId}/finalize
|
|
135
|
+
*/
|
|
136
|
+
sandboxesServiceFinalizeSandboxSnapshot = (snapshotId, body, params = {}) => this.request({
|
|
137
|
+
path: `/v1/core/sandboxes/snapshots/${snapshotId}/finalize`,
|
|
138
|
+
method: "POST",
|
|
139
|
+
body: body,
|
|
140
|
+
type: ContentType.Json,
|
|
141
|
+
format: "json",
|
|
142
|
+
...params,
|
|
143
|
+
});
|
|
43
144
|
/**
|
|
44
145
|
* No description
|
|
45
146
|
*
|
|
@@ -68,6 +169,27 @@ export class SandboxesService extends HttpClient {
|
|
|
68
169
|
format: "json",
|
|
69
170
|
...params,
|
|
70
171
|
});
|
|
172
|
+
/**
|
|
173
|
+
* No description
|
|
174
|
+
*
|
|
175
|
+
* @tags SandboxesService
|
|
176
|
+
* @name SandboxesServiceUpdateSandbox
|
|
177
|
+
* @summary UpdateSandbox updates a sandbox in place. Currently the only
|
|
178
|
+
supported mutation is `resume = true`, which resumes a previously
|
|
179
|
+
stopped persistent sandbox from its most recent auto-snapshot while
|
|
180
|
+
preserving the sandbox id. Modelled on Vercel's update-sandbox
|
|
181
|
+
endpoint:
|
|
182
|
+
https://vercel.com/docs/rest-api/sandboxes-v2-beta/update-a-sandbox.
|
|
183
|
+
* @request PATCH:/v1/core/sandboxes/{id}
|
|
184
|
+
*/
|
|
185
|
+
sandboxesServiceUpdateSandbox = (id, body, params = {}) => this.request({
|
|
186
|
+
path: `/v1/core/sandboxes/${id}`,
|
|
187
|
+
method: "PATCH",
|
|
188
|
+
body: body,
|
|
189
|
+
type: ContentType.Json,
|
|
190
|
+
format: "json",
|
|
191
|
+
...params,
|
|
192
|
+
});
|
|
71
193
|
/**
|
|
72
194
|
* No description
|
|
73
195
|
*
|
|
@@ -184,5 +306,41 @@ export class SandboxesService extends HttpClient {
|
|
|
184
306
|
format: "json",
|
|
185
307
|
...params,
|
|
186
308
|
});
|
|
309
|
+
/**
|
|
310
|
+
* No description
|
|
311
|
+
*
|
|
312
|
+
* @tags SandboxesService
|
|
313
|
+
* @name SandboxesServiceCreateSandboxSnapshot
|
|
314
|
+
* @request POST:/v1/core/sandboxes/{id}/snapshot
|
|
315
|
+
*/
|
|
316
|
+
sandboxesServiceCreateSandboxSnapshot = (id, body, params = {}) => this.request({
|
|
317
|
+
path: `/v1/core/sandboxes/${id}/snapshot`,
|
|
318
|
+
method: "POST",
|
|
319
|
+
body: body,
|
|
320
|
+
type: ContentType.Json,
|
|
321
|
+
format: "json",
|
|
322
|
+
...params,
|
|
323
|
+
});
|
|
324
|
+
/**
|
|
325
|
+
* No description
|
|
326
|
+
*
|
|
327
|
+
* @tags SandboxesService
|
|
328
|
+
* @name SandboxesServiceStopSandbox
|
|
329
|
+
* @summary StopSandbox stops a running sandbox. For sandboxes created with
|
|
330
|
+
`persistent = true`, the controlplane first captures an auto-snapshot
|
|
331
|
+
keyed to the sandbox id (returned in `auto_snapshot_id`) so the
|
|
332
|
+
sandbox can later be brought back via UpdateSandbox(resume=true)
|
|
333
|
+
without losing filesystem state. For non-persistent sandboxes the
|
|
334
|
+
server is simply stopped and no snapshot is taken.
|
|
335
|
+
* @request POST:/v1/core/sandboxes/{id}/stop
|
|
336
|
+
*/
|
|
337
|
+
sandboxesServiceStopSandbox = (id, body, params = {}) => this.request({
|
|
338
|
+
path: `/v1/core/sandboxes/${id}/stop`,
|
|
339
|
+
method: "POST",
|
|
340
|
+
body: body,
|
|
341
|
+
type: ContentType.Json,
|
|
342
|
+
format: "json",
|
|
343
|
+
...params,
|
|
344
|
+
});
|
|
187
345
|
}
|
|
188
346
|
//# sourceMappingURL=SandboxesService.js.map
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"SandboxesService.js","sourceRoot":"","sources":["../../../src/lightning_cloud/openapi/SandboxesService.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;AAiCH,OAAO,EAAE,WAAW,EAAE,UAAU,EAAiB,MAAM,eAAe,CAAC;AAEvE,MAAM,OAAO,gBAEX,SAAQ,UAA4B;IACpC;;;;;;;OAOG;IACH,6BAA6B,GAAG,CAC9B,KAaC,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;;;;;;;OAOG;IACH,oCAAoC,GAAG,CACrC,KAQC,EACD,SAAwB,EAAE,EAC1B,EAAE,CACF,IAAI,CAAC,OAAO,CAA4C;QACtD,IAAI,EAAE,8BAA8B;QACpC,MAAM,EAAE,KAAK;QACb,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,MAAM;QACd,GAAG,MAAM;KACV,CAAC,CAAC;IACL;;;;;;OAMG;IACH,kCAAkC,GAAG,CACnC,UAAkB,EAClB,KAEC,EACD,SAAwB,EAAE,EAC1B,EAAE,CACF,IAAI,CAAC,OAAO,CAA+B;QACzC,IAAI,EAAE,gCAAgC,UAAU,EAAE;QAClD,MAAM,EAAE,KAAK;QACb,KAAK,E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AAM,EAAE,MAAM;QACd,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,WAAW,CAAC,IAAI;QACtB,MAAM,EAAE,MAAM;QACd,GAAG,MAAM;KACV,CAAC,CAAC;CACN"}
|
|
@@ -2,6 +2,22 @@ export interface SandboxesServiceCreateSandboxDirectoryBody {
|
|
|
2
2
|
organizationId?: string;
|
|
3
3
|
path?: string;
|
|
4
4
|
}
|
|
5
|
+
export interface SandboxesServiceCreateSandboxSnapshotBody {
|
|
6
|
+
organizationId?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Optional expiration in milliseconds. When unset, the platform default applies.
|
|
9
|
+
* Use 0 to request no expiration.
|
|
10
|
+
* @format uint64
|
|
11
|
+
*/
|
|
12
|
+
expiration?: string;
|
|
13
|
+
/** Optional tar exclude override for this snapshot. When unset, the platform default applies. */
|
|
14
|
+
excludes?: string[];
|
|
15
|
+
/**
|
|
16
|
+
* project_id is required: snapshots are stored in the cluster bucket
|
|
17
|
+
* under the project's prefix and authorization is project-scoped.
|
|
18
|
+
*/
|
|
19
|
+
projectId?: string;
|
|
20
|
+
}
|
|
5
21
|
export interface SandboxesServiceExtendSandboxTimeoutBody {
|
|
6
22
|
organizationId?: string;
|
|
7
23
|
/**
|
|
@@ -10,6 +26,43 @@ export interface SandboxesServiceExtendSandboxTimeoutBody {
|
|
|
10
26
|
*/
|
|
11
27
|
timeout?: string;
|
|
12
28
|
}
|
|
29
|
+
export interface SandboxesServiceFinalizeSandboxSnapshotBody {
|
|
30
|
+
organizationId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* sha256 digest of the manifest body the agent just PUT to
|
|
33
|
+
* object_key. Lets the controlplane verify it's actually there
|
|
34
|
+
* before flipping the row to "ready".
|
|
35
|
+
*/
|
|
36
|
+
manifestSha256?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Total logical size of the snapshot — sum of all unique blob
|
|
39
|
+
* sizes plus the manifest body. Surfaced in the row's size_bytes
|
|
40
|
+
* for billing/display.
|
|
41
|
+
* @format uint64
|
|
42
|
+
*/
|
|
43
|
+
sizeBytes?: string;
|
|
44
|
+
/**
|
|
45
|
+
* rootfs digest the snapshot was captured against; persisted on
|
|
46
|
+
* the row so restore-compatibility check doesn't have to fetch
|
|
47
|
+
* and parse the manifest.
|
|
48
|
+
*/
|
|
49
|
+
rootfsDigest?: string;
|
|
50
|
+
}
|
|
51
|
+
export interface SandboxesServiceGetSandboxSnapshotBlobDownloadUrlsBody {
|
|
52
|
+
organizationId?: string;
|
|
53
|
+
sha256Digests?: string[];
|
|
54
|
+
}
|
|
55
|
+
export interface SandboxesServiceGetSandboxSnapshotBlobUploadUrlsBody {
|
|
56
|
+
organizationId?: string;
|
|
57
|
+
/**
|
|
58
|
+
* sha256 hex digests of the unique blobs the caller wants to upload.
|
|
59
|
+
* The server checks each against the cluster blob store; missing
|
|
60
|
+
* ones get presigned URLs returned in `upload_urls`, present ones
|
|
61
|
+
* are echoed in `existing_digests` so the caller skips them.
|
|
62
|
+
* Empty list rejected.
|
|
63
|
+
*/
|
|
64
|
+
sha256Digests?: string[];
|
|
65
|
+
}
|
|
13
66
|
export interface SandboxesServiceRunSandboxCommandBody {
|
|
14
67
|
organizationId?: string;
|
|
15
68
|
command?: string;
|
|
@@ -19,6 +72,28 @@ export interface SandboxesServiceRunSandboxCommandBody {
|
|
|
19
72
|
env?: Record<string, string>;
|
|
20
73
|
sudo?: boolean;
|
|
21
74
|
}
|
|
75
|
+
export interface SandboxesServiceStopSandboxBody {
|
|
76
|
+
organizationId?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Optional project the auto-snapshot is written under for persistent
|
|
79
|
+
* sandboxes. When unset, the controlplane falls back to the project the
|
|
80
|
+
* sandbox was originally created in (recorded on the underlying server
|
|
81
|
+
* row). Ignored for non-persistent sandboxes (no snapshot is taken in
|
|
82
|
+
* that case).
|
|
83
|
+
*/
|
|
84
|
+
projectId?: string;
|
|
85
|
+
}
|
|
86
|
+
export interface SandboxesServiceUpdateSandboxBody {
|
|
87
|
+
organizationId?: string;
|
|
88
|
+
/**
|
|
89
|
+
* When true, resume a previously stopped persistent sandbox from
|
|
90
|
+
* its most recent auto-snapshot. The sandbox id is preserved. The
|
|
91
|
+
* call is a no-op (returns the current Sandbox) when the sandbox
|
|
92
|
+
* is already running. Returns an error when the sandbox is not
|
|
93
|
+
* persistent or has no resumable auto-snapshot.
|
|
94
|
+
*/
|
|
95
|
+
resume?: boolean;
|
|
96
|
+
}
|
|
22
97
|
export interface SandboxesServiceWriteSandboxFileBody {
|
|
23
98
|
organizationId?: string;
|
|
24
99
|
path?: string;
|
|
@@ -197,8 +272,33 @@ export interface V1CreateSandboxRequest {
|
|
|
197
272
|
* network policy.
|
|
198
273
|
*/
|
|
199
274
|
networkPolicy?: V1NetworkPolicy;
|
|
275
|
+
snapshotId?: string;
|
|
276
|
+
/**
|
|
277
|
+
* Whether the sandbox persists its state across restarts via automatic
|
|
278
|
+
* snapshots. Defaults to true.
|
|
279
|
+
*
|
|
280
|
+
* When true, the controlplane automatically snapshots the sandbox on idle,
|
|
281
|
+
* sleep, or eviction, and transparently restores it (via the FUSE
|
|
282
|
+
* snapshot/restore path; see sandbox_fuse_snapshot_restore.md) the next
|
|
283
|
+
* time the sandbox id is accessed. This makes the sandbox id a durable
|
|
284
|
+
* handle suitable for long-lived workflow orchestration that may pause
|
|
285
|
+
* across step boundaries.
|
|
286
|
+
*
|
|
287
|
+
* When false, the sandbox is best-effort ephemeral: state is lost on
|
|
288
|
+
* stop, idle reclaim, or host reschedule.
|
|
289
|
+
*/
|
|
290
|
+
persistent?: boolean;
|
|
291
|
+
/**
|
|
292
|
+
* Project the sandbox is owned by. Recommended for persistent
|
|
293
|
+
* sandboxes — the controlplane needs a project to scope the
|
|
294
|
+
* auto-snapshot bucket prefix on idle eviction and on later
|
|
295
|
+
* StopSandbox calls without an explicit project_id. Optional for
|
|
296
|
+
* non-persistent sandboxes (no auto-snapshot is taken).
|
|
297
|
+
*/
|
|
298
|
+
projectId?: string;
|
|
200
299
|
}
|
|
201
300
|
export type V1DeleteSandboxResponse = object;
|
|
301
|
+
export type V1DeleteSandboxSnapshotResponse = object;
|
|
202
302
|
export type V1ExtendSandboxTimeoutResponse = object;
|
|
203
303
|
export interface V1GetSandboxCommandLogsResponse {
|
|
204
304
|
logs?: V1LogMessage[];
|
|
@@ -213,7 +313,26 @@ export interface V1GetSandboxCommandResponse {
|
|
|
213
313
|
export interface V1GetSandboxFileResponse {
|
|
214
314
|
content?: string;
|
|
215
315
|
}
|
|
316
|
+
export interface V1GetSandboxSnapshotBlobDownloadUrlsResponse {
|
|
317
|
+
downloadUrls?: V1SandboxSnapshotBlobDownloadUrl[];
|
|
318
|
+
}
|
|
319
|
+
export interface V1GetSandboxSnapshotBlobUploadUrlsResponse {
|
|
320
|
+
/** Presigned PUT URL per blob the caller still needs to upload. */
|
|
321
|
+
uploadUrls?: V1SandboxSnapshotBlobUploadUrl[];
|
|
322
|
+
/**
|
|
323
|
+
* sha256 digests already present in the cluster bucket. Caller
|
|
324
|
+
* skips upload for these.
|
|
325
|
+
*/
|
|
326
|
+
existingDigests?: string[];
|
|
327
|
+
}
|
|
216
328
|
export type V1KillSandboxCommandResponse = object;
|
|
329
|
+
export interface V1ListSandboxSnapshotsResponse {
|
|
330
|
+
snapshots?: V1SandboxSnapshot[];
|
|
331
|
+
nextPageToken?: string;
|
|
332
|
+
previousPageToken?: string;
|
|
333
|
+
/** @format int64 */
|
|
334
|
+
totalSize?: string;
|
|
335
|
+
}
|
|
217
336
|
export interface V1ListSandboxesResponse {
|
|
218
337
|
sandboxes?: V1Sandbox[];
|
|
219
338
|
nextPageToken?: string;
|
|
@@ -266,6 +385,17 @@ export interface V1Sandbox {
|
|
|
266
385
|
clusterId?: string;
|
|
267
386
|
instanceType?: string;
|
|
268
387
|
spot?: boolean;
|
|
388
|
+
/**
|
|
389
|
+
* Lifecycle status of the sandbox. In addition to the underlying
|
|
390
|
+
* server states (running, stopping, stopped, error, ...) the
|
|
391
|
+
* controlplane surfaces:
|
|
392
|
+
* - "paused": the sandbox is a persistent sandbox whose server
|
|
393
|
+
* row no longer exists, but whose auto-snapshot does.
|
|
394
|
+
* ListSandboxes and GetSandbox synthesise a Sandbox
|
|
395
|
+
* from the most recent auto-snapshot so the sandbox
|
|
396
|
+
* id keeps appearing in user-facing surfaces while it
|
|
397
|
+
* is hibernated. Resume via UpdateSandbox(resume=true).
|
|
398
|
+
*/
|
|
269
399
|
status?: string;
|
|
270
400
|
cloudspaceId?: string;
|
|
271
401
|
ports?: string[];
|
|
@@ -274,6 +404,90 @@ export interface V1Sandbox {
|
|
|
274
404
|
createdAt?: string;
|
|
275
405
|
/** @format date-time */
|
|
276
406
|
updatedAt?: string;
|
|
407
|
+
/**
|
|
408
|
+
* Mirrors CreateSandboxRequest.persistent. Reflects the durability
|
|
409
|
+
* setting the sandbox was created with. See
|
|
410
|
+
* sandbox_fuse_snapshot_restore.md for the lifecycle.
|
|
411
|
+
*/
|
|
412
|
+
persistent?: boolean;
|
|
413
|
+
}
|
|
414
|
+
export interface V1SandboxSnapshot {
|
|
415
|
+
id?: string;
|
|
416
|
+
organizationId?: string;
|
|
417
|
+
projectId?: string;
|
|
418
|
+
sourceSandboxId?: string;
|
|
419
|
+
/**
|
|
420
|
+
* status transitions on the controlplane:
|
|
421
|
+
* - "saving": row created, agent capture + S3 upload in progress.
|
|
422
|
+
* - "ready": tarball lives in object storage; restorable.
|
|
423
|
+
* - "failed": capture or upload failed; not restorable.
|
|
424
|
+
* Only "ready" snapshots may be used to create a new sandbox.
|
|
425
|
+
*/
|
|
426
|
+
status?: string;
|
|
427
|
+
/** @format uint64 */
|
|
428
|
+
sizeBytes?: string;
|
|
429
|
+
/** @format date-time */
|
|
430
|
+
createdAt?: string;
|
|
431
|
+
/** @format date-time */
|
|
432
|
+
updatedAt?: string;
|
|
433
|
+
/** @format date-time */
|
|
434
|
+
expiresAt?: string;
|
|
435
|
+
runtime?: string;
|
|
436
|
+
runtimeImage?: string;
|
|
437
|
+
rootfsDigest?: string;
|
|
438
|
+
tarExcludes?: string[];
|
|
439
|
+
/**
|
|
440
|
+
* True when this snapshot was auto-captured by the controlplane
|
|
441
|
+
* because its source sandbox was created with `persistent = true`
|
|
442
|
+
* and was stopped (via StopSandbox or idle/eviction). Auto-snapshots
|
|
443
|
+
* represent the durable state of a paused persistent sandbox: one
|
|
444
|
+
* current auto-snapshot per sandbox id, rotated in place on each
|
|
445
|
+
* capture. A persistent sandbox is resumed from its auto-snapshot
|
|
446
|
+
* via UpdateSandbox(resume=true), which preserves the sandbox id.
|
|
447
|
+
*
|
|
448
|
+
* User-initiated snapshots created via CreateSandboxSnapshot have
|
|
449
|
+
* this field set to false, and `source_sandbox_id` may point at a
|
|
450
|
+
* sandbox that has since been deleted.
|
|
451
|
+
*/
|
|
452
|
+
sourceSandboxPersistent?: boolean;
|
|
453
|
+
/**
|
|
454
|
+
* The source sandbox's instance type at capture time, in the form
|
|
455
|
+
* the controlplane persisted on `Server.Spec.InstanceType` (i.e. the
|
|
456
|
+
* post-translation sandbox-pool slug such as "cpu-sandbox-4").
|
|
457
|
+
* Replayed verbatim by UpdateSandbox(resume=true) so the resumed
|
|
458
|
+
* sandbox comes back with the same CPU / memory / disk shape as the
|
|
459
|
+
* original. Best-effort: empty for snapshots captured before this
|
|
460
|
+
* field landed; the resume path then falls back to a default.
|
|
461
|
+
*/
|
|
462
|
+
sourceSandboxInstanceType?: string;
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* SandboxSnapshotBlobDownloadUrl pairs a sha256 with its presigned GET
|
|
466
|
+
* URL. One per requested digest, in request order.
|
|
467
|
+
*/
|
|
468
|
+
export interface V1SandboxSnapshotBlobDownloadUrl {
|
|
469
|
+
sha256?: string;
|
|
470
|
+
url?: string;
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* SandboxSnapshotBlobUploadUrl pairs a sha256 digest with the presigned
|
|
474
|
+
* PUT URL the agent uses to push that blob. Digests are echoed back so
|
|
475
|
+
* the agent doesn't need to maintain its own index-to-URL mapping when
|
|
476
|
+
* it issues a batched request.
|
|
477
|
+
*/
|
|
478
|
+
export interface V1SandboxSnapshotBlobUploadUrl {
|
|
479
|
+
sha256?: string;
|
|
480
|
+
url?: string;
|
|
481
|
+
}
|
|
482
|
+
export interface V1StopSandboxResponse {
|
|
483
|
+
/**
|
|
484
|
+
* For sandboxes created with `persistent = true`, the id of the
|
|
485
|
+
* auto-snapshot the controlplane captured before stopping the
|
|
486
|
+
* server. Subsequent UpdateSandbox(resume=true) calls against the
|
|
487
|
+
* sandbox id will resume from this snapshot. Empty when the
|
|
488
|
+
* sandbox is non-persistent (no snapshot is taken in that case).
|
|
489
|
+
*/
|
|
490
|
+
autoSnapshotId?: string;
|
|
277
491
|
}
|
|
278
492
|
export type V1WriteSandboxFileResponse = object;
|
|
279
493
|
//# sourceMappingURL=data-contracts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-contracts.d.ts","sourceRoot":"","sources":["../../../src/lightning_cloud/openapi/data-contracts.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,0CAA0C;IACzD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,wCAAwC;IACvD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,qCAAqC;IACpD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,oCAAoC;IACnD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmFG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;CACzB;AAED,MAAM,MAAM,gCAAgC,GAAG,MAAM,CAAC;AAEtD,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,aAAa,CAAC,EAAE,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"data-contracts.d.ts","sourceRoot":"","sources":["../../../src/lightning_cloud/openapi/data-contracts.ts"],"names":[],"mappings":"AAYA,MAAM,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