langsmith 0.7.9 → 0.7.11
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 +46 -15
- package/dist/_openapi_client/client.cjs +0 -88
- package/dist/_openapi_client/client.d.ts +0 -33
- package/dist/_openapi_client/client.js +0 -88
- package/dist/_openapi_client/internal/headers.d.ts +13 -0
- package/dist/_openapi_client/internal/types.d.ts +1 -28
- package/dist/_openapi_client/resources/datasets/datasets.d.ts +52 -4
- package/dist/_openapi_client/resources/datasets/runs.d.ts +1 -2
- package/dist/_openapi_client/resources/index.cjs +1 -23
- package/dist/_openapi_client/resources/index.d.ts +0 -11
- package/dist/_openapi_client/resources/index.js +0 -11
- package/dist/anonymizer/index.cjs +142 -0
- package/dist/anonymizer/index.d.ts +45 -0
- package/dist/anonymizer/index.js +140 -0
- package/dist/client.cjs +26 -1
- package/dist/client.d.ts +4 -1
- package/dist/client.js +25 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/sandbox/client.cjs +5 -8
- package/dist/sandbox/client.js +5 -8
- package/dist/sandbox/index.cjs +2 -1
- package/dist/sandbox/index.d.ts +2 -2
- package/dist/sandbox/index.js +1 -1
- package/dist/sandbox/mounts.cjs +157 -18
- package/dist/sandbox/mounts.d.ts +10 -2
- package/dist/sandbox/mounts.js +155 -18
- package/dist/sandbox/proxy_config.cjs +19 -44
- package/dist/sandbox/proxy_config.d.ts +2 -4
- package/dist/sandbox/proxy_config.js +19 -43
- package/dist/sandbox/types.d.ts +56 -15
- package/dist/utils/constants.cjs +4 -0
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.js +1 -0
- package/package.json +2 -2
- package/dist/_openapi_client/resources/annotation-queues/annotation-queues.cjs +0 -138
- package/dist/_openapi_client/resources/annotation-queues/annotation-queues.d.ts +0 -367
- package/dist/_openapi_client/resources/annotation-queues/annotation-queues.js +0 -101
- package/dist/_openapi_client/resources/annotation-queues/runs.cjs +0 -46
- package/dist/_openapi_client/resources/annotation-queues/runs.d.ts +0 -128
- package/dist/_openapi_client/resources/annotation-queues/runs.js +0 -42
- package/dist/_openapi_client/resources/commits.cjs +0 -44
- package/dist/_openapi_client/resources/commits.d.ts +0 -204
- package/dist/_openapi_client/resources/commits.js +0 -40
- package/dist/_openapi_client/resources/evaluators.cjs +0 -15
- package/dist/_openapi_client/resources/evaluators.d.ts +0 -125
- package/dist/_openapi_client/resources/evaluators.js +0 -11
- package/dist/_openapi_client/resources/examples/bulk.cjs +0 -24
- package/dist/_openapi_client/resources/examples/bulk.d.ts +0 -78
- package/dist/_openapi_client/resources/examples/bulk.js +0 -20
- package/dist/_openapi_client/resources/examples/examples.cjs +0 -124
- package/dist/_openapi_client/resources/examples/examples.d.ts +0 -182
- package/dist/_openapi_client/resources/examples/examples.js +0 -87
- package/dist/_openapi_client/resources/examples/validate.cjs +0 -21
- package/dist/_openapi_client/resources/examples/validate.d.ts +0 -38
- package/dist/_openapi_client/resources/examples/validate.js +0 -17
- package/dist/_openapi_client/resources/feedback/configs.cjs +0 -24
- package/dist/_openapi_client/resources/feedback/configs.d.ts +0 -18
- package/dist/_openapi_client/resources/feedback/configs.js +0 -20
- package/dist/_openapi_client/resources/feedback/feedback.cjs +0 -98
- package/dist/_openapi_client/resources/feedback/feedback.d.ts +0 -275
- package/dist/_openapi_client/resources/feedback/feedback.js +0 -61
- package/dist/_openapi_client/resources/feedback/tokens.cjs +0 -35
- package/dist/_openapi_client/resources/feedback/tokens.d.ts +0 -130
- package/dist/_openapi_client/resources/feedback/tokens.js +0 -31
- package/dist/_openapi_client/resources/public/datasets.cjs +0 -47
- package/dist/_openapi_client/resources/public/datasets.d.ts +0 -152
- package/dist/_openapi_client/resources/public/datasets.js +0 -43
- package/dist/_openapi_client/resources/public/public.cjs +0 -62
- package/dist/_openapi_client/resources/public/public.d.ts +0 -32
- package/dist/_openapi_client/resources/public/public.js +0 -25
- package/dist/_openapi_client/resources/repos/directories.cjs +0 -40
- package/dist/_openapi_client/resources/repos/directories.d.ts +0 -72
- package/dist/_openapi_client/resources/repos/directories.js +0 -36
- package/dist/_openapi_client/resources/repos/repos.cjs +0 -93
- package/dist/_openapi_client/resources/repos/repos.d.ts +0 -188
- package/dist/_openapi_client/resources/repos/repos.js +0 -56
- package/dist/_openapi_client/resources/runs/rules.cjs +0 -9
- package/dist/_openapi_client/resources/runs/rules.d.ts +0 -3
- package/dist/_openapi_client/resources/runs/rules.js +0 -5
- package/dist/_openapi_client/resources/runs/runs.cjs +0 -102
- package/dist/_openapi_client/resources/runs/runs.d.ts +0 -542
- package/dist/_openapi_client/resources/runs/runs.js +0 -65
- package/dist/_openapi_client/resources/sandboxes/boxes.cjs +0 -86
- package/dist/_openapi_client/resources/sandboxes/boxes.d.ts +0 -1121
- package/dist/_openapi_client/resources/sandboxes/boxes.js +0 -82
- package/dist/_openapi_client/resources/sandboxes/sandboxes.cjs +0 -63
- package/dist/_openapi_client/resources/sandboxes/sandboxes.d.ts +0 -13
- package/dist/_openapi_client/resources/sandboxes/sandboxes.js +0 -26
- package/dist/_openapi_client/resources/sandboxes/snapshots.cjs +0 -39
- package/dist/_openapi_client/resources/sandboxes/snapshots.d.ts +0 -130
- package/dist/_openapi_client/resources/sandboxes/snapshots.js +0 -35
- package/dist/_openapi_client/resources/settings.cjs +0 -15
- package/dist/_openapi_client/resources/settings.d.ts +0 -18
- package/dist/_openapi_client/resources/settings.js +0 -11
- package/dist/_openapi_client/resources/workspaces.cjs +0 -35
- package/dist/_openapi_client/resources/workspaces.d.ts +0 -84
- package/dist/_openapi_client/resources/workspaces.js +0 -31
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
import { APIResource } from '../../core/resource.js';
|
|
4
|
-
import { buildHeaders } from '../../internal/headers.js';
|
|
5
|
-
import { path } from '../../internal/utils/path.js';
|
|
6
|
-
export class Boxes extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Create a new sandbox from a snapshot. Provide at most one of `snapshot_id` or
|
|
9
|
-
* `snapshot_name`; if neither is provided, the server uses the default static
|
|
10
|
-
* blueprint.
|
|
11
|
-
*/
|
|
12
|
-
create(body, options) {
|
|
13
|
-
return this._client.post('/v2/sandboxes/boxes', { body, ...options });
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Retrieve a sandbox by name. Stale provisioning sandboxes are auto-failed.
|
|
17
|
-
*/
|
|
18
|
-
retrieve(name, options) {
|
|
19
|
-
return this._client.get(path `/v2/sandboxes/boxes/${name}`, options);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Update a sandbox's display name. The name must be unique within the tenant.
|
|
23
|
-
*/
|
|
24
|
-
update(name, body, options) {
|
|
25
|
-
return this._client.patch(path `/v2/sandboxes/boxes/${name}`, { body, ...options });
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* List sandboxes for the authenticated tenant, with optional filtering, sorting,
|
|
29
|
-
* and pagination.
|
|
30
|
-
*/
|
|
31
|
-
list(query = {}, options) {
|
|
32
|
-
return this._client.get('/v2/sandboxes/boxes', { query, ...options });
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Delete a sandbox by name or UUID. Tears down the sandbox runtime and removes the
|
|
36
|
-
* DB record.
|
|
37
|
-
*/
|
|
38
|
-
delete(name, options) {
|
|
39
|
-
return this._client.delete(path `/v2/sandboxes/boxes/${name}`, {
|
|
40
|
-
...options,
|
|
41
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Create a snapshot by capturing the current state of a sandbox or promoting an
|
|
46
|
-
* existing checkpoint.
|
|
47
|
-
*/
|
|
48
|
-
createSnapshot(name, body, options) {
|
|
49
|
-
return this._client.post(path `/v2/sandboxes/boxes/${name}/snapshot`, { body, ...options });
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Create a short-lived JWT for accessing an HTTP service running on a specific
|
|
53
|
-
* port inside a sandbox. Returns a browser_url (sets auth cookie via redirect), a
|
|
54
|
-
* service_url (for use with the X-Langsmith-Sandbox-Service-Token header), the raw
|
|
55
|
-
* token, and its expiry.
|
|
56
|
-
*/
|
|
57
|
-
generateServiceURL(name, body, options) {
|
|
58
|
-
return this._client.post(path `/v2/sandboxes/boxes/${name}/service-url`, { body, ...options });
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Retrieve the lightweight status of a sandbox for polling.
|
|
62
|
-
*/
|
|
63
|
-
getStatus(name, options) {
|
|
64
|
-
return this._client.get(path `/v2/sandboxes/boxes/${name}/status`, options);
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Start a stopped or failed sandbox. This endpoint is not idempotent.
|
|
68
|
-
*/
|
|
69
|
-
start(name, options) {
|
|
70
|
-
return this._client.post(path `/v2/sandboxes/boxes/${name}/start`, options);
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Stop a ready sandbox. This endpoint is not idempotent; the filesystem is
|
|
74
|
-
* preserved for later restart.
|
|
75
|
-
*/
|
|
76
|
-
stop(name, options) {
|
|
77
|
-
return this._client.post(path `/v2/sandboxes/boxes/${name}/stop`, {
|
|
78
|
-
...options,
|
|
79
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
4
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
-
if (k2 === undefined) k2 = k;
|
|
6
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
-
}
|
|
10
|
-
Object.defineProperty(o, k2, desc);
|
|
11
|
-
}) : (function(o, m, k, k2) {
|
|
12
|
-
if (k2 === undefined) k2 = k;
|
|
13
|
-
o[k2] = m[k];
|
|
14
|
-
}));
|
|
15
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
-
}) : function(o, v) {
|
|
18
|
-
o["default"] = v;
|
|
19
|
-
});
|
|
20
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
21
|
-
var ownKeys = function(o) {
|
|
22
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
23
|
-
var ar = [];
|
|
24
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
25
|
-
return ar;
|
|
26
|
-
};
|
|
27
|
-
return ownKeys(o);
|
|
28
|
-
};
|
|
29
|
-
return function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
})();
|
|
37
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.Sandboxes = void 0;
|
|
39
|
-
const resource_js_1 = require("../../core/resource.cjs");
|
|
40
|
-
const BoxesAPI = __importStar(require("./boxes.cjs"));
|
|
41
|
-
const boxes_js_1 = require("./boxes.cjs");
|
|
42
|
-
const SnapshotsAPI = __importStar(require("./snapshots.cjs"));
|
|
43
|
-
const snapshots_js_1 = require("./snapshots.cjs");
|
|
44
|
-
class Sandboxes extends resource_js_1.APIResource {
|
|
45
|
-
constructor() {
|
|
46
|
-
super(...arguments);
|
|
47
|
-
Object.defineProperty(this, "boxes", {
|
|
48
|
-
enumerable: true,
|
|
49
|
-
configurable: true,
|
|
50
|
-
writable: true,
|
|
51
|
-
value: new BoxesAPI.Boxes(this._client)
|
|
52
|
-
});
|
|
53
|
-
Object.defineProperty(this, "snapshots", {
|
|
54
|
-
enumerable: true,
|
|
55
|
-
configurable: true,
|
|
56
|
-
writable: true,
|
|
57
|
-
value: new SnapshotsAPI.Snapshots(this._client)
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
exports.Sandboxes = Sandboxes;
|
|
62
|
-
Sandboxes.Boxes = boxes_js_1.Boxes;
|
|
63
|
-
Sandboxes.Snapshots = snapshots_js_1.Snapshots;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { APIResource } from '../../core/resource.js';
|
|
2
|
-
import * as BoxesAPI from './boxes.js';
|
|
3
|
-
import { BoxCreateParams, BoxCreateResponse, BoxCreateSnapshotParams, BoxCreateSnapshotResponse, BoxGenerateServiceURLParams, BoxGenerateServiceURLResponse, BoxGetStatusResponse, BoxListParams, BoxListResponse, BoxRetrieveResponse, BoxStartResponse, BoxUpdateParams, BoxUpdateResponse, Boxes } from './boxes.js';
|
|
4
|
-
import * as SnapshotsAPI from './snapshots.js';
|
|
5
|
-
import { SnapshotCreateParams, SnapshotCreateResponse, SnapshotListParams, SnapshotListResponse, SnapshotRetrieveResponse, Snapshots } from './snapshots.js';
|
|
6
|
-
export declare class Sandboxes extends APIResource {
|
|
7
|
-
boxes: BoxesAPI.Boxes;
|
|
8
|
-
snapshots: SnapshotsAPI.Snapshots;
|
|
9
|
-
}
|
|
10
|
-
export declare namespace Sandboxes {
|
|
11
|
-
export { Boxes as Boxes, type BoxCreateResponse as BoxCreateResponse, type BoxRetrieveResponse as BoxRetrieveResponse, type BoxUpdateResponse as BoxUpdateResponse, type BoxListResponse as BoxListResponse, type BoxCreateSnapshotResponse as BoxCreateSnapshotResponse, type BoxGenerateServiceURLResponse as BoxGenerateServiceURLResponse, type BoxGetStatusResponse as BoxGetStatusResponse, type BoxStartResponse as BoxStartResponse, type BoxCreateParams as BoxCreateParams, type BoxUpdateParams as BoxUpdateParams, type BoxListParams as BoxListParams, type BoxCreateSnapshotParams as BoxCreateSnapshotParams, type BoxGenerateServiceURLParams as BoxGenerateServiceURLParams, };
|
|
12
|
-
export { Snapshots as Snapshots, type SnapshotCreateResponse as SnapshotCreateResponse, type SnapshotRetrieveResponse as SnapshotRetrieveResponse, type SnapshotListResponse as SnapshotListResponse, type SnapshotCreateParams as SnapshotCreateParams, type SnapshotListParams as SnapshotListParams, };
|
|
13
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
import { APIResource } from '../../core/resource.js';
|
|
4
|
-
import * as BoxesAPI from './boxes.js';
|
|
5
|
-
import { Boxes, } from './boxes.js';
|
|
6
|
-
import * as SnapshotsAPI from './snapshots.js';
|
|
7
|
-
import { Snapshots, } from './snapshots.js';
|
|
8
|
-
export class Sandboxes extends APIResource {
|
|
9
|
-
constructor() {
|
|
10
|
-
super(...arguments);
|
|
11
|
-
Object.defineProperty(this, "boxes", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
configurable: true,
|
|
14
|
-
writable: true,
|
|
15
|
-
value: new BoxesAPI.Boxes(this._client)
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(this, "snapshots", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
configurable: true,
|
|
20
|
-
writable: true,
|
|
21
|
-
value: new SnapshotsAPI.Snapshots(this._client)
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
Sandboxes.Boxes = Boxes;
|
|
26
|
-
Sandboxes.Snapshots = Snapshots;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Snapshots = void 0;
|
|
6
|
-
const resource_js_1 = require("../../core/resource.cjs");
|
|
7
|
-
const headers_js_1 = require("../../internal/headers.cjs");
|
|
8
|
-
const path_js_1 = require("../../internal/utils/path.cjs");
|
|
9
|
-
class Snapshots extends resource_js_1.APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Create a snapshot from a Docker image (async build).
|
|
12
|
-
*/
|
|
13
|
-
create(body, options) {
|
|
14
|
-
return this._client.post('/v2/sandboxes/snapshots', { body, ...options });
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Get a sandbox snapshot by ID.
|
|
18
|
-
*/
|
|
19
|
-
retrieve(snapshotID, options) {
|
|
20
|
-
return this._client.get((0, path_js_1.path) `/v2/sandboxes/snapshots/${snapshotID}`, options);
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* List sandbox snapshots for the authenticated tenant, with optional filtering,
|
|
24
|
-
* sorting, and pagination.
|
|
25
|
-
*/
|
|
26
|
-
list(query = {}, options) {
|
|
27
|
-
return this._client.get('/v2/sandboxes/snapshots', { query, ...options });
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Delete a snapshot by ID. The underlying storage is reclaimed asynchronously.
|
|
31
|
-
*/
|
|
32
|
-
delete(snapshotID, options) {
|
|
33
|
-
return this._client.delete((0, path_js_1.path) `/v2/sandboxes/snapshots/${snapshotID}`, {
|
|
34
|
-
...options,
|
|
35
|
-
headers: (0, headers_js_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
exports.Snapshots = Snapshots;
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { APIResource } from '../../core/resource.js';
|
|
2
|
-
import { APIPromise } from '../../core/api-promise.js';
|
|
3
|
-
import { RequestOptions } from '../../internal/request-options.js';
|
|
4
|
-
export declare class Snapshots extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create a snapshot from a Docker image (async build).
|
|
7
|
-
*/
|
|
8
|
-
create(body: SnapshotCreateParams, options?: RequestOptions): APIPromise<SnapshotCreateResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* Get a sandbox snapshot by ID.
|
|
11
|
-
*/
|
|
12
|
-
retrieve(snapshotID: string, options?: RequestOptions): APIPromise<SnapshotRetrieveResponse>;
|
|
13
|
-
/**
|
|
14
|
-
* List sandbox snapshots for the authenticated tenant, with optional filtering,
|
|
15
|
-
* sorting, and pagination.
|
|
16
|
-
*/
|
|
17
|
-
list(query?: SnapshotListParams | null | undefined, options?: RequestOptions): APIPromise<SnapshotListResponse>;
|
|
18
|
-
/**
|
|
19
|
-
* Delete a snapshot by ID. The underlying storage is reclaimed asynchronously.
|
|
20
|
-
*/
|
|
21
|
-
delete(snapshotID: string, options?: RequestOptions): APIPromise<void>;
|
|
22
|
-
}
|
|
23
|
-
export interface SnapshotCreateResponse {
|
|
24
|
-
id?: string;
|
|
25
|
-
created_at?: string;
|
|
26
|
-
created_by?: string;
|
|
27
|
-
docker_image?: string;
|
|
28
|
-
fs_capacity_bytes?: number;
|
|
29
|
-
fs_used_bytes?: number;
|
|
30
|
-
image_digest?: string;
|
|
31
|
-
/**
|
|
32
|
-
* MemorySnapshotSizeBytes is non-nil iff the snapshot was captured with VM memory
|
|
33
|
-
* state. A non-nil value is the canonical signal that this snapshot can
|
|
34
|
-
* warm-restore from memory; nil means rootfs only.
|
|
35
|
-
*/
|
|
36
|
-
memory_snapshot_size_bytes?: number;
|
|
37
|
-
name?: string;
|
|
38
|
-
registry_id?: string;
|
|
39
|
-
source_sandbox_id?: string;
|
|
40
|
-
status?: string;
|
|
41
|
-
status_message?: string;
|
|
42
|
-
updated_at?: string;
|
|
43
|
-
}
|
|
44
|
-
export interface SnapshotRetrieveResponse {
|
|
45
|
-
id?: string;
|
|
46
|
-
created_at?: string;
|
|
47
|
-
created_by?: string;
|
|
48
|
-
docker_image?: string;
|
|
49
|
-
fs_capacity_bytes?: number;
|
|
50
|
-
fs_used_bytes?: number;
|
|
51
|
-
image_digest?: string;
|
|
52
|
-
/**
|
|
53
|
-
* MemorySnapshotSizeBytes is non-nil iff the snapshot was captured with VM memory
|
|
54
|
-
* state. A non-nil value is the canonical signal that this snapshot can
|
|
55
|
-
* warm-restore from memory; nil means rootfs only.
|
|
56
|
-
*/
|
|
57
|
-
memory_snapshot_size_bytes?: number;
|
|
58
|
-
name?: string;
|
|
59
|
-
registry_id?: string;
|
|
60
|
-
source_sandbox_id?: string;
|
|
61
|
-
status?: string;
|
|
62
|
-
status_message?: string;
|
|
63
|
-
updated_at?: string;
|
|
64
|
-
}
|
|
65
|
-
export interface SnapshotListResponse {
|
|
66
|
-
offset?: number;
|
|
67
|
-
snapshots?: Array<SnapshotListResponse.Snapshot>;
|
|
68
|
-
}
|
|
69
|
-
export declare namespace SnapshotListResponse {
|
|
70
|
-
interface Snapshot {
|
|
71
|
-
id?: string;
|
|
72
|
-
created_at?: string;
|
|
73
|
-
created_by?: string;
|
|
74
|
-
docker_image?: string;
|
|
75
|
-
fs_capacity_bytes?: number;
|
|
76
|
-
fs_used_bytes?: number;
|
|
77
|
-
image_digest?: string;
|
|
78
|
-
/**
|
|
79
|
-
* MemorySnapshotSizeBytes is non-nil iff the snapshot was captured with VM memory
|
|
80
|
-
* state. A non-nil value is the canonical signal that this snapshot can
|
|
81
|
-
* warm-restore from memory; nil means rootfs only.
|
|
82
|
-
*/
|
|
83
|
-
memory_snapshot_size_bytes?: number;
|
|
84
|
-
name?: string;
|
|
85
|
-
registry_id?: string;
|
|
86
|
-
source_sandbox_id?: string;
|
|
87
|
-
status?: string;
|
|
88
|
-
status_message?: string;
|
|
89
|
-
updated_at?: string;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
export interface SnapshotCreateParams {
|
|
93
|
-
docker_image: string;
|
|
94
|
-
fs_capacity_bytes: number;
|
|
95
|
-
name: string;
|
|
96
|
-
registry_id?: string;
|
|
97
|
-
}
|
|
98
|
-
export interface SnapshotListParams {
|
|
99
|
-
/**
|
|
100
|
-
* Filter by creator identity. Only 'me' is supported.
|
|
101
|
-
*/
|
|
102
|
-
created_by?: string;
|
|
103
|
-
/**
|
|
104
|
-
* Maximum number of results
|
|
105
|
-
*/
|
|
106
|
-
limit?: number;
|
|
107
|
-
/**
|
|
108
|
-
* Filter by name substring
|
|
109
|
-
*/
|
|
110
|
-
name_contains?: string;
|
|
111
|
-
/**
|
|
112
|
-
* Pagination offset
|
|
113
|
-
*/
|
|
114
|
-
offset?: number;
|
|
115
|
-
/**
|
|
116
|
-
* Sort column (name, status, created_at)
|
|
117
|
-
*/
|
|
118
|
-
sort_by?: string;
|
|
119
|
-
/**
|
|
120
|
-
* Sort direction (asc, desc)
|
|
121
|
-
*/
|
|
122
|
-
sort_direction?: string;
|
|
123
|
-
/**
|
|
124
|
-
* Filter by status (building, ready, failed, deleting)
|
|
125
|
-
*/
|
|
126
|
-
status?: string;
|
|
127
|
-
}
|
|
128
|
-
export declare namespace Snapshots {
|
|
129
|
-
export { type SnapshotCreateResponse as SnapshotCreateResponse, type SnapshotRetrieveResponse as SnapshotRetrieveResponse, type SnapshotListResponse as SnapshotListResponse, type SnapshotCreateParams as SnapshotCreateParams, type SnapshotListParams as SnapshotListParams, };
|
|
130
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
import { APIResource } from '../../core/resource.js';
|
|
4
|
-
import { buildHeaders } from '../../internal/headers.js';
|
|
5
|
-
import { path } from '../../internal/utils/path.js';
|
|
6
|
-
export class Snapshots extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Create a snapshot from a Docker image (async build).
|
|
9
|
-
*/
|
|
10
|
-
create(body, options) {
|
|
11
|
-
return this._client.post('/v2/sandboxes/snapshots', { body, ...options });
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Get a sandbox snapshot by ID.
|
|
15
|
-
*/
|
|
16
|
-
retrieve(snapshotID, options) {
|
|
17
|
-
return this._client.get(path `/v2/sandboxes/snapshots/${snapshotID}`, options);
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* List sandbox snapshots for the authenticated tenant, with optional filtering,
|
|
21
|
-
* sorting, and pagination.
|
|
22
|
-
*/
|
|
23
|
-
list(query = {}, options) {
|
|
24
|
-
return this._client.get('/v2/sandboxes/snapshots', { query, ...options });
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Delete a snapshot by ID. The underlying storage is reclaimed asynchronously.
|
|
28
|
-
*/
|
|
29
|
-
delete(snapshotID, options) {
|
|
30
|
-
return this._client.delete(path `/v2/sandboxes/snapshots/${snapshotID}`, {
|
|
31
|
-
...options,
|
|
32
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Settings = void 0;
|
|
6
|
-
const resource_js_1 = require("../core/resource.cjs");
|
|
7
|
-
class Settings extends resource_js_1.APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Get settings.
|
|
10
|
-
*/
|
|
11
|
-
list(options) {
|
|
12
|
-
return this._client.get('/api/v1/settings', options);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.Settings = Settings;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { APIResource } from '../core/resource.js';
|
|
2
|
-
import { APIPromise } from '../core/api-promise.js';
|
|
3
|
-
import { RequestOptions } from '../internal/request-options.js';
|
|
4
|
-
export declare class Settings extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Get settings.
|
|
7
|
-
*/
|
|
8
|
-
list(options?: RequestOptions): APIPromise<AppHubCrudTenantsTenant>;
|
|
9
|
-
}
|
|
10
|
-
export interface AppHubCrudTenantsTenant {
|
|
11
|
-
id: string;
|
|
12
|
-
created_at: string;
|
|
13
|
-
display_name: string;
|
|
14
|
-
tenant_handle?: string | null;
|
|
15
|
-
}
|
|
16
|
-
export declare namespace Settings {
|
|
17
|
-
export { type AppHubCrudTenantsTenant as AppHubCrudTenantsTenant };
|
|
18
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
import { APIResource } from '../core/resource.js';
|
|
4
|
-
export class Settings extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Get settings.
|
|
7
|
-
*/
|
|
8
|
-
list(options) {
|
|
9
|
-
return this._client.get('/api/v1/settings', options);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Workspaces = void 0;
|
|
6
|
-
const resource_js_1 = require("../core/resource.cjs");
|
|
7
|
-
const path_js_1 = require("../internal/utils/path.cjs");
|
|
8
|
-
class Workspaces extends resource_js_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Create a new workspace.
|
|
11
|
-
*/
|
|
12
|
-
create(body, options) {
|
|
13
|
-
return this._client.post('/api/v1/workspaces', { body, ...options });
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Update a workspace.
|
|
17
|
-
*/
|
|
18
|
-
update(workspaceID, body, options) {
|
|
19
|
-
return this._client.patch((0, path_js_1.path) `/api/v1/workspaces/${workspaceID}`, { body, ...options });
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Get all workspaces visible to this auth in the current org. Does not create a
|
|
23
|
-
* new workspace/org.
|
|
24
|
-
*/
|
|
25
|
-
list(query = {}, options) {
|
|
26
|
-
return this._client.get('/api/v1/workspaces', { query, ...options });
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Delete Workspace
|
|
30
|
-
*/
|
|
31
|
-
delete(workspaceID, options) {
|
|
32
|
-
return this._client.delete((0, path_js_1.path) `/api/v1/workspaces/${workspaceID}`, options);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.Workspaces = Workspaces;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { APIResource } from '../core/resource.js';
|
|
2
|
-
import { APIPromise } from '../core/api-promise.js';
|
|
3
|
-
import { RequestOptions } from '../internal/request-options.js';
|
|
4
|
-
export declare class Workspaces extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create a new workspace.
|
|
7
|
-
*/
|
|
8
|
-
create(body: WorkspaceCreateParams, options?: RequestOptions): APIPromise<WorkspaceCreateResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* Update a workspace.
|
|
11
|
-
*/
|
|
12
|
-
update(workspaceID: string, body: WorkspaceUpdateParams, options?: RequestOptions): APIPromise<WorkspaceUpdateResponse>;
|
|
13
|
-
/**
|
|
14
|
-
* Get all workspaces visible to this auth in the current org. Does not create a
|
|
15
|
-
* new workspace/org.
|
|
16
|
-
*/
|
|
17
|
-
list(query?: WorkspaceListParams | null | undefined, options?: RequestOptions): APIPromise<WorkspaceListResponse>;
|
|
18
|
-
/**
|
|
19
|
-
* Delete Workspace
|
|
20
|
-
*/
|
|
21
|
-
delete(workspaceID: string, options?: RequestOptions): APIPromise<unknown>;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Tenant schema.
|
|
25
|
-
*/
|
|
26
|
-
export interface WorkspaceCreateResponse {
|
|
27
|
-
id: string;
|
|
28
|
-
created_at: string;
|
|
29
|
-
display_name: string;
|
|
30
|
-
is_deleted: boolean;
|
|
31
|
-
is_personal: boolean;
|
|
32
|
-
data_plane_url?: string | null;
|
|
33
|
-
organization_id?: string | null;
|
|
34
|
-
tenant_handle?: string | null;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Tenant schema.
|
|
38
|
-
*/
|
|
39
|
-
export interface WorkspaceUpdateResponse {
|
|
40
|
-
id: string;
|
|
41
|
-
created_at: string;
|
|
42
|
-
display_name: string;
|
|
43
|
-
is_deleted: boolean;
|
|
44
|
-
is_personal: boolean;
|
|
45
|
-
data_plane_url?: string | null;
|
|
46
|
-
organization_id?: string | null;
|
|
47
|
-
tenant_handle?: string | null;
|
|
48
|
-
}
|
|
49
|
-
export type WorkspaceListResponse = Array<WorkspaceListResponse.WorkspaceListResponseItem>;
|
|
50
|
-
export declare namespace WorkspaceListResponse {
|
|
51
|
-
interface WorkspaceListResponseItem {
|
|
52
|
-
id: string;
|
|
53
|
-
created_at: string;
|
|
54
|
-
display_name: string;
|
|
55
|
-
is_deleted: boolean;
|
|
56
|
-
is_personal: boolean;
|
|
57
|
-
data_plane_url?: string | null;
|
|
58
|
-
organization_id?: string | null;
|
|
59
|
-
permissions?: Array<string> | null;
|
|
60
|
-
/**
|
|
61
|
-
* @deprecated
|
|
62
|
-
*/
|
|
63
|
-
read_only?: boolean;
|
|
64
|
-
role_id?: string | null;
|
|
65
|
-
role_name?: string | null;
|
|
66
|
-
tenant_handle?: string | null;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
export type WorkspaceDeleteResponse = unknown;
|
|
70
|
-
export interface WorkspaceCreateParams {
|
|
71
|
-
display_name: string;
|
|
72
|
-
id?: string;
|
|
73
|
-
tenant_handle?: string | null;
|
|
74
|
-
}
|
|
75
|
-
export interface WorkspaceUpdateParams {
|
|
76
|
-
display_name: string;
|
|
77
|
-
}
|
|
78
|
-
export interface WorkspaceListParams {
|
|
79
|
-
data_plane_id?: string | null;
|
|
80
|
-
include_deleted?: boolean;
|
|
81
|
-
}
|
|
82
|
-
export declare namespace Workspaces {
|
|
83
|
-
export { type WorkspaceCreateResponse as WorkspaceCreateResponse, type WorkspaceUpdateResponse as WorkspaceUpdateResponse, type WorkspaceListResponse as WorkspaceListResponse, type WorkspaceDeleteResponse as WorkspaceDeleteResponse, type WorkspaceCreateParams as WorkspaceCreateParams, type WorkspaceUpdateParams as WorkspaceUpdateParams, type WorkspaceListParams as WorkspaceListParams, };
|
|
84
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
import { APIResource } from '../core/resource.js';
|
|
4
|
-
import { path } from '../internal/utils/path.js';
|
|
5
|
-
export class Workspaces extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Create a new workspace.
|
|
8
|
-
*/
|
|
9
|
-
create(body, options) {
|
|
10
|
-
return this._client.post('/api/v1/workspaces', { body, ...options });
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Update a workspace.
|
|
14
|
-
*/
|
|
15
|
-
update(workspaceID, body, options) {
|
|
16
|
-
return this._client.patch(path `/api/v1/workspaces/${workspaceID}`, { body, ...options });
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Get all workspaces visible to this auth in the current org. Does not create a
|
|
20
|
-
* new workspace/org.
|
|
21
|
-
*/
|
|
22
|
-
list(query = {}, options) {
|
|
23
|
-
return this._client.get('/api/v1/workspaces', { query, ...options });
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Delete Workspace
|
|
27
|
-
*/
|
|
28
|
-
delete(workspaceID, options) {
|
|
29
|
-
return this._client.delete(path `/api/v1/workspaces/${workspaceID}`, options);
|
|
30
|
-
}
|
|
31
|
-
}
|