casedev 0.53.0 → 0.54.0
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/CHANGELOG.md +16 -0
- package/package.json +1 -1
- package/resources/compute/v1/index.d.mts +2 -0
- package/resources/compute/v1/index.d.mts.map +1 -1
- package/resources/compute/v1/index.d.ts +2 -0
- package/resources/compute/v1/index.d.ts.map +1 -1
- package/resources/compute/v1/index.js +5 -1
- package/resources/compute/v1/index.js.map +1 -1
- package/resources/compute/v1/index.mjs +2 -0
- package/resources/compute/v1/index.mjs.map +1 -1
- package/resources/compute/v1/instance-types.d.mts +73 -0
- package/resources/compute/v1/instance-types.d.mts.map +1 -0
- package/resources/compute/v1/instance-types.d.ts +73 -0
- package/resources/compute/v1/instance-types.d.ts.map +1 -0
- package/resources/compute/v1/instance-types.js +27 -0
- package/resources/compute/v1/instance-types.js.map +1 -0
- package/resources/compute/v1/instance-types.mjs +23 -0
- package/resources/compute/v1/instance-types.mjs.map +1 -0
- package/resources/compute/v1/instances.d.mts +160 -0
- package/resources/compute/v1/instances.d.mts.map +1 -0
- package/resources/compute/v1/instances.d.ts +160 -0
- package/resources/compute/v1/instances.d.ts.map +1 -0
- package/resources/compute/v1/instances.js +77 -0
- package/resources/compute/v1/instances.js.map +1 -0
- package/resources/compute/v1/instances.mjs +73 -0
- package/resources/compute/v1/instances.mjs.map +1 -0
- package/resources/compute/v1/v1.d.mts +19 -0
- package/resources/compute/v1/v1.d.mts.map +1 -1
- package/resources/compute/v1/v1.d.ts +19 -0
- package/resources/compute/v1/v1.d.ts.map +1 -1
- package/resources/compute/v1/v1.js +25 -0
- package/resources/compute/v1/v1.js.map +1 -1
- package/resources/compute/v1/v1.mjs +25 -0
- package/resources/compute/v1/v1.mjs.map +1 -1
- package/resources/vault/vault.d.mts +6 -5
- package/resources/vault/vault.d.mts.map +1 -1
- package/resources/vault/vault.d.ts +6 -5
- package/resources/vault/vault.d.ts.map +1 -1
- package/resources/vault/vault.js +6 -5
- package/resources/vault/vault.js.map +1 -1
- package/resources/vault/vault.mjs +6 -5
- package/resources/vault/vault.mjs.map +1 -1
- package/src/resources/compute/v1/index.ts +9 -0
- package/src/resources/compute/v1/instance-types.ts +89 -0
- package/src/resources/compute/v1/instances.ts +240 -0
- package/src/resources/compute/v1/v1.ts +44 -0
- package/src/resources/vault/vault.ts +6 -5
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.54.0 (2026-04-23)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.53.1...v0.54.0](https://github.com/CaseMark/casedev-typescript/compare/v0.53.1...v0.54.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([aacfc60](https://github.com/CaseMark/casedev-typescript/commit/aacfc60f91392725343916a9b622feb46a1f88ed))
|
|
10
|
+
|
|
11
|
+
## 0.53.1 (2026-04-23)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.53.0...v0.53.1](https://github.com/CaseMark/casedev-typescript/compare/v0.53.0...v0.53.1)
|
|
14
|
+
|
|
15
|
+
### Chores
|
|
16
|
+
|
|
17
|
+
* **internal:** more robust bootstrap script ([eae4cc7](https://github.com/CaseMark/casedev-typescript/commit/eae4cc7a93ce446735e96b4aeb5237f50468f931))
|
|
18
|
+
|
|
3
19
|
## 0.53.0 (2026-04-22)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.52.0...v0.53.0](https://github.com/CaseMark/casedev-typescript/compare/v0.52.0...v0.53.0)
|
package/package.json
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { Environments, type EnvironmentCreateResponse, type EnvironmentRetrieveResponse, type EnvironmentListResponse, type EnvironmentDeleteResponse, type EnvironmentSetDefaultResponse, type EnvironmentCreateParams, } from "./environments.mjs";
|
|
2
|
+
export { InstanceTypes, type InstanceTypeListResponse } from "./instance-types.mjs";
|
|
3
|
+
export { Instances, type InstanceCreateResponse, type InstanceRetrieveResponse, type InstanceListResponse, type InstanceDeleteResponse, type InstanceCreateParams, } from "./instances.mjs";
|
|
2
4
|
export { Secrets, type SecretCreateResponse, type SecretListResponse, type SecretDeleteGroupResponse, type SecretRetrieveGroupResponse, type SecretUpdateGroupResponse, type SecretCreateParams, type SecretListParams, type SecretDeleteGroupParams, type SecretRetrieveGroupParams, type SecretUpdateGroupParams, } from "./secrets.mjs";
|
|
3
5
|
export { V1, type V1GetUsageResponse, type V1GetUsageParams } from "./v1.mjs";
|
|
4
6
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/compute/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,GAC7B;OACM,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B;OACM,EAAE,EAAE,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/compute/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,GAC7B;OACM,EAAE,aAAa,EAAE,KAAK,wBAAwB,EAAE;OAChD,EACL,SAAS,EACT,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B;OACM,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B;OACM,EAAE,EAAE,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { Environments, type EnvironmentCreateResponse, type EnvironmentRetrieveResponse, type EnvironmentListResponse, type EnvironmentDeleteResponse, type EnvironmentSetDefaultResponse, type EnvironmentCreateParams, } from "./environments.js";
|
|
2
|
+
export { InstanceTypes, type InstanceTypeListResponse } from "./instance-types.js";
|
|
3
|
+
export { Instances, type InstanceCreateResponse, type InstanceRetrieveResponse, type InstanceListResponse, type InstanceDeleteResponse, type InstanceCreateParams, } from "./instances.js";
|
|
2
4
|
export { Secrets, type SecretCreateResponse, type SecretListResponse, type SecretDeleteGroupResponse, type SecretRetrieveGroupResponse, type SecretUpdateGroupResponse, type SecretCreateParams, type SecretListParams, type SecretDeleteGroupParams, type SecretRetrieveGroupParams, type SecretUpdateGroupParams, } from "./secrets.js";
|
|
3
5
|
export { V1, type V1GetUsageResponse, type V1GetUsageParams } from "./v1.js";
|
|
4
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/compute/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,GAC7B;OACM,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B;OACM,EAAE,EAAE,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/compute/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,GAC7B;OACM,EAAE,aAAa,EAAE,KAAK,wBAAwB,EAAE;OAChD,EACL,SAAS,EACT,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B;OACM,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B;OACM,EAAE,EAAE,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.V1 = exports.Secrets = exports.Environments = void 0;
|
|
4
|
+
exports.V1 = exports.Secrets = exports.Instances = exports.InstanceTypes = exports.Environments = void 0;
|
|
5
5
|
var environments_1 = require("./environments.js");
|
|
6
6
|
Object.defineProperty(exports, "Environments", { enumerable: true, get: function () { return environments_1.Environments; } });
|
|
7
|
+
var instance_types_1 = require("./instance-types.js");
|
|
8
|
+
Object.defineProperty(exports, "InstanceTypes", { enumerable: true, get: function () { return instance_types_1.InstanceTypes; } });
|
|
9
|
+
var instances_1 = require("./instances.js");
|
|
10
|
+
Object.defineProperty(exports, "Instances", { enumerable: true, get: function () { return instances_1.Instances; } });
|
|
7
11
|
var secrets_1 = require("./secrets.js");
|
|
8
12
|
Object.defineProperty(exports, "Secrets", { enumerable: true, get: function () { return secrets_1.Secrets; } });
|
|
9
13
|
var v1_1 = require("./v1.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/compute/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAQwB;AAPtB,4GAAA,YAAY,OAAA;AAQd,wCAYmB;AAXjB,kGAAA,OAAO,OAAA;AAYT,8BAA0E;AAAjE,wFAAA,EAAE,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/compute/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAQwB;AAPtB,4GAAA,YAAY,OAAA;AAQd,sDAAgF;AAAvE,+GAAA,aAAa,OAAA;AACtB,4CAOqB;AANnB,sGAAA,SAAS,OAAA;AAOX,wCAYmB;AAXjB,kGAAA,OAAO,OAAA;AAYT,8BAA0E;AAAjE,wFAAA,EAAE,OAAA"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Environments, } from "./environments.mjs";
|
|
3
|
+
export { InstanceTypes } from "./instance-types.mjs";
|
|
4
|
+
export { Instances, } from "./instances.mjs";
|
|
3
5
|
export { Secrets, } from "./secrets.mjs";
|
|
4
6
|
export { V1 } from "./v1.mjs";
|
|
5
7
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/compute/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,YAAY,GAOb;OACM,EACL,OAAO,GAWR;OACM,EAAE,EAAE,EAAkD"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/compute/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,YAAY,GAOb;OACM,EAAE,aAAa,EAAiC;OAChD,EACL,SAAS,GAMV;OACM,EACL,OAAO,GAWR;OACM,EAAE,EAAE,EAAkD"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Serverless GPU and CPU infrastructure
|
|
6
|
+
*/
|
|
7
|
+
export declare class InstanceTypes extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves all available GPU instance types with pricing, specifications, and
|
|
10
|
+
* regional availability. Includes T4, A10, A100, H100, and H200 GPUs powered by
|
|
11
|
+
* Lambda Labs. Perfect for AI model training, inference workloads, and legal
|
|
12
|
+
* document OCR processing at scale.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const instanceTypes =
|
|
17
|
+
* await client.compute.v1.instanceTypes.list();
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
list(options?: RequestOptions): APIPromise<InstanceTypeListResponse>;
|
|
21
|
+
}
|
|
22
|
+
export interface InstanceTypeListResponse {
|
|
23
|
+
/**
|
|
24
|
+
* Total number of instance types
|
|
25
|
+
*/
|
|
26
|
+
count: number;
|
|
27
|
+
instanceTypes: Array<InstanceTypeListResponse.InstanceType>;
|
|
28
|
+
}
|
|
29
|
+
export declare namespace InstanceTypeListResponse {
|
|
30
|
+
interface InstanceType {
|
|
31
|
+
/**
|
|
32
|
+
* Instance description
|
|
33
|
+
*/
|
|
34
|
+
description?: string;
|
|
35
|
+
/**
|
|
36
|
+
* GPU model and count
|
|
37
|
+
*/
|
|
38
|
+
gpu?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Instance type identifier
|
|
41
|
+
*/
|
|
42
|
+
name?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Price per hour (e.g. '$1.20')
|
|
45
|
+
*/
|
|
46
|
+
pricePerHour?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Available regions
|
|
49
|
+
*/
|
|
50
|
+
regionsAvailable?: Array<string>;
|
|
51
|
+
specs?: InstanceType.Specs;
|
|
52
|
+
}
|
|
53
|
+
namespace InstanceType {
|
|
54
|
+
interface Specs {
|
|
55
|
+
/**
|
|
56
|
+
* RAM in GiB
|
|
57
|
+
*/
|
|
58
|
+
memoryGib?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Storage in GiB
|
|
61
|
+
*/
|
|
62
|
+
storageGib?: number;
|
|
63
|
+
/**
|
|
64
|
+
* Number of vCPUs
|
|
65
|
+
*/
|
|
66
|
+
vcpus?: number;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export declare namespace InstanceTypes {
|
|
71
|
+
export { type InstanceTypeListResponse as InstanceTypeListResponse };
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=instance-types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance-types.d.mts","sourceRoot":"","sources":["../../../src/resources/compute/v1/instance-types.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAGrE;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd,aAAa,EAAE,KAAK,CAAC,wBAAwB,CAAC,YAAY,CAAC,CAAC;CAC7D;AAED,yBAAiB,wBAAwB,CAAC;IACxC,UAAiB,YAAY;QAC3B;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAEjC,KAAK,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC;KAC5B;IAED,UAAiB,YAAY,CAAC;QAC5B,UAAiB,KAAK;YACpB;;eAEG;YACH,SAAS,CAAC,EAAE,MAAM,CAAC;YAEnB;;eAEG;YACH,UAAU,CAAC,EAAE,MAAM,CAAC;YAEpB;;eAEG;YACH,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EAAE,KAAK,wBAAwB,IAAI,wBAAwB,EAAE,CAAC;CACtE"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Serverless GPU and CPU infrastructure
|
|
6
|
+
*/
|
|
7
|
+
export declare class InstanceTypes extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves all available GPU instance types with pricing, specifications, and
|
|
10
|
+
* regional availability. Includes T4, A10, A100, H100, and H200 GPUs powered by
|
|
11
|
+
* Lambda Labs. Perfect for AI model training, inference workloads, and legal
|
|
12
|
+
* document OCR processing at scale.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const instanceTypes =
|
|
17
|
+
* await client.compute.v1.instanceTypes.list();
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
list(options?: RequestOptions): APIPromise<InstanceTypeListResponse>;
|
|
21
|
+
}
|
|
22
|
+
export interface InstanceTypeListResponse {
|
|
23
|
+
/**
|
|
24
|
+
* Total number of instance types
|
|
25
|
+
*/
|
|
26
|
+
count: number;
|
|
27
|
+
instanceTypes: Array<InstanceTypeListResponse.InstanceType>;
|
|
28
|
+
}
|
|
29
|
+
export declare namespace InstanceTypeListResponse {
|
|
30
|
+
interface InstanceType {
|
|
31
|
+
/**
|
|
32
|
+
* Instance description
|
|
33
|
+
*/
|
|
34
|
+
description?: string;
|
|
35
|
+
/**
|
|
36
|
+
* GPU model and count
|
|
37
|
+
*/
|
|
38
|
+
gpu?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Instance type identifier
|
|
41
|
+
*/
|
|
42
|
+
name?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Price per hour (e.g. '$1.20')
|
|
45
|
+
*/
|
|
46
|
+
pricePerHour?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Available regions
|
|
49
|
+
*/
|
|
50
|
+
regionsAvailable?: Array<string>;
|
|
51
|
+
specs?: InstanceType.Specs;
|
|
52
|
+
}
|
|
53
|
+
namespace InstanceType {
|
|
54
|
+
interface Specs {
|
|
55
|
+
/**
|
|
56
|
+
* RAM in GiB
|
|
57
|
+
*/
|
|
58
|
+
memoryGib?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Storage in GiB
|
|
61
|
+
*/
|
|
62
|
+
storageGib?: number;
|
|
63
|
+
/**
|
|
64
|
+
* Number of vCPUs
|
|
65
|
+
*/
|
|
66
|
+
vcpus?: number;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export declare namespace InstanceTypes {
|
|
71
|
+
export { type InstanceTypeListResponse as InstanceTypeListResponse };
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=instance-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance-types.d.ts","sourceRoot":"","sources":["../../../src/resources/compute/v1/instance-types.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAGrE;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd,aAAa,EAAE,KAAK,CAAC,wBAAwB,CAAC,YAAY,CAAC,CAAC;CAC7D;AAED,yBAAiB,wBAAwB,CAAC;IACxC,UAAiB,YAAY;QAC3B;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAEjC,KAAK,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC;KAC5B;IAED,UAAiB,YAAY,CAAC;QAC5B,UAAiB,KAAK;YACpB;;eAEG;YACH,SAAS,CAAC,EAAE,MAAM,CAAC;YAEnB;;eAEG;YACH,UAAU,CAAC,EAAE,MAAM,CAAC;YAEpB;;eAEG;YACH,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EAAE,KAAK,wBAAwB,IAAI,wBAAwB,EAAE,CAAC;CACtE"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.InstanceTypes = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
/**
|
|
7
|
+
* Serverless GPU and CPU infrastructure
|
|
8
|
+
*/
|
|
9
|
+
class InstanceTypes extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves all available GPU instance types with pricing, specifications, and
|
|
12
|
+
* regional availability. Includes T4, A10, A100, H100, and H200 GPUs powered by
|
|
13
|
+
* Lambda Labs. Perfect for AI model training, inference workloads, and legal
|
|
14
|
+
* document OCR processing at scale.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const instanceTypes =
|
|
19
|
+
* await client.compute.v1.instanceTypes.list();
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
list(options) {
|
|
23
|
+
return this._client.get('/compute/v1/instance-types', options);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.InstanceTypes = InstanceTypes;
|
|
27
|
+
//# sourceMappingURL=instance-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance-types.js","sourceRoot":"","sources":["../../../src/resources/compute/v1/instance-types.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD;;GAEG;AACH,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CACF;AAhBD,sCAgBC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* Serverless GPU and CPU infrastructure
|
|
5
|
+
*/
|
|
6
|
+
export class InstanceTypes extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves all available GPU instance types with pricing, specifications, and
|
|
9
|
+
* regional availability. Includes T4, A10, A100, H100, and H200 GPUs powered by
|
|
10
|
+
* Lambda Labs. Perfect for AI model training, inference workloads, and legal
|
|
11
|
+
* document OCR processing at scale.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const instanceTypes =
|
|
16
|
+
* await client.compute.v1.instanceTypes.list();
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
list(options) {
|
|
20
|
+
return this._client.get('/compute/v1/instance-types', options);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=instance-types.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance-types.mjs","sourceRoot":"","sources":["../../../src/resources/compute/v1/instance-types.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CACF"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Serverless GPU and CPU infrastructure
|
|
6
|
+
*/
|
|
7
|
+
export declare class Instances extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Launches a new GPU compute instance with automatic SSH key generation. Supports
|
|
10
|
+
* mounting Case.dev Vaults as filesystems and configurable auto-shutdown. Instance
|
|
11
|
+
* boots in ~2-5 minutes. Perfect for batch OCR processing, AI model training, and
|
|
12
|
+
* intensive document analysis workloads.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const instance = await client.compute.v1.instances.create({
|
|
17
|
+
* instanceType: 'gpu_1x_a10',
|
|
18
|
+
* name: 'ocr-batch-job',
|
|
19
|
+
* region: 'us-west-1',
|
|
20
|
+
* autoShutdownMinutes: 120,
|
|
21
|
+
* vaultIds: ['vault_abc123'],
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
create(body: InstanceCreateParams, options?: RequestOptions): APIPromise<InstanceCreateResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves detailed information about a GPU instance including SSH connection
|
|
28
|
+
* details, vault mount scripts, real-time cost tracking, and current status. SSH
|
|
29
|
+
* private key included for secure access.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const instance = await client.compute.v1.instances.retrieve(
|
|
34
|
+
* 'id',
|
|
35
|
+
* );
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<InstanceRetrieveResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Retrieves all GPU compute instances for your organization with real-time status
|
|
41
|
+
* updates from Lambda Labs. Includes pricing, runtime metrics, and auto-shutdown
|
|
42
|
+
* configuration. Perfect for monitoring AI workloads, document processing jobs,
|
|
43
|
+
* and cost tracking.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const instances = await client.compute.v1.instances.list();
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
list(options?: RequestOptions): APIPromise<InstanceListResponse>;
|
|
51
|
+
/**
|
|
52
|
+
* Terminates a running GPU instance, calculates final cost, and cleans up SSH
|
|
53
|
+
* keys. This action is permanent and cannot be undone. All data on the instance
|
|
54
|
+
* will be lost.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const instance = await client.compute.v1.instances.delete(
|
|
59
|
+
* 'id',
|
|
60
|
+
* );
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
delete(id: string, options?: RequestOptions): APIPromise<InstanceDeleteResponse>;
|
|
64
|
+
}
|
|
65
|
+
export interface InstanceCreateResponse {
|
|
66
|
+
id?: string;
|
|
67
|
+
autoShutdownMinutes?: number | null;
|
|
68
|
+
createdAt?: string;
|
|
69
|
+
gpu?: string;
|
|
70
|
+
instanceType?: string;
|
|
71
|
+
message?: string;
|
|
72
|
+
name?: string;
|
|
73
|
+
pricePerHour?: string;
|
|
74
|
+
region?: string;
|
|
75
|
+
specs?: unknown;
|
|
76
|
+
status?: string;
|
|
77
|
+
vaults?: Array<unknown>;
|
|
78
|
+
}
|
|
79
|
+
export interface InstanceRetrieveResponse {
|
|
80
|
+
id?: string;
|
|
81
|
+
autoShutdownMinutes?: number | null;
|
|
82
|
+
createdAt?: string;
|
|
83
|
+
currentCost?: string;
|
|
84
|
+
currentRuntimeSeconds?: number;
|
|
85
|
+
gpu?: string;
|
|
86
|
+
instanceType?: string;
|
|
87
|
+
ip?: string | null;
|
|
88
|
+
name?: string;
|
|
89
|
+
pricePerHour?: string;
|
|
90
|
+
region?: string;
|
|
91
|
+
specs?: unknown;
|
|
92
|
+
ssh?: InstanceRetrieveResponse.SSH | null;
|
|
93
|
+
startedAt?: string | null;
|
|
94
|
+
status?: string;
|
|
95
|
+
vaultMounts?: unknown | null;
|
|
96
|
+
}
|
|
97
|
+
export declare namespace InstanceRetrieveResponse {
|
|
98
|
+
interface SSH {
|
|
99
|
+
command?: string;
|
|
100
|
+
host?: string;
|
|
101
|
+
instructions?: Array<unknown>;
|
|
102
|
+
privateKey?: string;
|
|
103
|
+
user?: string;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
export interface InstanceListResponse {
|
|
107
|
+
count?: number;
|
|
108
|
+
instances?: Array<InstanceListResponse.Instance>;
|
|
109
|
+
}
|
|
110
|
+
export declare namespace InstanceListResponse {
|
|
111
|
+
interface Instance {
|
|
112
|
+
id?: string;
|
|
113
|
+
autoShutdownMinutes?: number | null;
|
|
114
|
+
createdAt?: string;
|
|
115
|
+
gpu?: string;
|
|
116
|
+
instanceType?: string;
|
|
117
|
+
ip?: string | null;
|
|
118
|
+
name?: string;
|
|
119
|
+
pricePerHour?: string;
|
|
120
|
+
region?: string;
|
|
121
|
+
startedAt?: string | null;
|
|
122
|
+
status?: 'booting' | 'running' | 'stopping' | 'stopped' | 'terminated' | 'failed';
|
|
123
|
+
totalCost?: string;
|
|
124
|
+
totalRuntimeSeconds?: number;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
export interface InstanceDeleteResponse {
|
|
128
|
+
id?: string;
|
|
129
|
+
message?: string;
|
|
130
|
+
name?: string;
|
|
131
|
+
status?: string;
|
|
132
|
+
totalCost?: string;
|
|
133
|
+
totalRuntimeSeconds?: number;
|
|
134
|
+
}
|
|
135
|
+
export interface InstanceCreateParams {
|
|
136
|
+
/**
|
|
137
|
+
* GPU type (e.g., 'gpu_1x_h100_sxm5')
|
|
138
|
+
*/
|
|
139
|
+
instanceType: string;
|
|
140
|
+
/**
|
|
141
|
+
* Instance name
|
|
142
|
+
*/
|
|
143
|
+
name: string;
|
|
144
|
+
/**
|
|
145
|
+
* Region (e.g., 'us-west-1')
|
|
146
|
+
*/
|
|
147
|
+
region: string;
|
|
148
|
+
/**
|
|
149
|
+
* Auto-shutdown timer (null = never)
|
|
150
|
+
*/
|
|
151
|
+
autoShutdownMinutes?: number | null;
|
|
152
|
+
/**
|
|
153
|
+
* Vault IDs to mount
|
|
154
|
+
*/
|
|
155
|
+
vaultIds?: Array<string>;
|
|
156
|
+
}
|
|
157
|
+
export declare namespace Instances {
|
|
158
|
+
export { type InstanceCreateResponse as InstanceCreateResponse, type InstanceRetrieveResponse as InstanceRetrieveResponse, type InstanceListResponse as InstanceListResponse, type InstanceDeleteResponse as InstanceDeleteResponse, type InstanceCreateParams as InstanceCreateParams, };
|
|
159
|
+
}
|
|
160
|
+
//# sourceMappingURL=instances.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instances.d.mts","sourceRoot":"","sources":["../../../src/resources/compute/v1/instances.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIhG;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIpF;;;;;;;;;;OAUG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIhE;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAGjF;AAED,MAAM,WAAW,sBAAsB;IACrC,EAAE,CA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B;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Serverless GPU and CPU infrastructure
|
|
6
|
+
*/
|
|
7
|
+
export declare class Instances extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Launches a new GPU compute instance with automatic SSH key generation. Supports
|
|
10
|
+
* mounting Case.dev Vaults as filesystems and configurable auto-shutdown. Instance
|
|
11
|
+
* boots in ~2-5 minutes. Perfect for batch OCR processing, AI model training, and
|
|
12
|
+
* intensive document analysis workloads.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const instance = await client.compute.v1.instances.create({
|
|
17
|
+
* instanceType: 'gpu_1x_a10',
|
|
18
|
+
* name: 'ocr-batch-job',
|
|
19
|
+
* region: 'us-west-1',
|
|
20
|
+
* autoShutdownMinutes: 120,
|
|
21
|
+
* vaultIds: ['vault_abc123'],
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
create(body: InstanceCreateParams, options?: RequestOptions): APIPromise<InstanceCreateResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves detailed information about a GPU instance including SSH connection
|
|
28
|
+
* details, vault mount scripts, real-time cost tracking, and current status. SSH
|
|
29
|
+
* private key included for secure access.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const instance = await client.compute.v1.instances.retrieve(
|
|
34
|
+
* 'id',
|
|
35
|
+
* );
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<InstanceRetrieveResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Retrieves all GPU compute instances for your organization with real-time status
|
|
41
|
+
* updates from Lambda Labs. Includes pricing, runtime metrics, and auto-shutdown
|
|
42
|
+
* configuration. Perfect for monitoring AI workloads, document processing jobs,
|
|
43
|
+
* and cost tracking.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const instances = await client.compute.v1.instances.list();
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
list(options?: RequestOptions): APIPromise<InstanceListResponse>;
|
|
51
|
+
/**
|
|
52
|
+
* Terminates a running GPU instance, calculates final cost, and cleans up SSH
|
|
53
|
+
* keys. This action is permanent and cannot be undone. All data on the instance
|
|
54
|
+
* will be lost.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const instance = await client.compute.v1.instances.delete(
|
|
59
|
+
* 'id',
|
|
60
|
+
* );
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
delete(id: string, options?: RequestOptions): APIPromise<InstanceDeleteResponse>;
|
|
64
|
+
}
|
|
65
|
+
export interface InstanceCreateResponse {
|
|
66
|
+
id?: string;
|
|
67
|
+
autoShutdownMinutes?: number | null;
|
|
68
|
+
createdAt?: string;
|
|
69
|
+
gpu?: string;
|
|
70
|
+
instanceType?: string;
|
|
71
|
+
message?: string;
|
|
72
|
+
name?: string;
|
|
73
|
+
pricePerHour?: string;
|
|
74
|
+
region?: string;
|
|
75
|
+
specs?: unknown;
|
|
76
|
+
status?: string;
|
|
77
|
+
vaults?: Array<unknown>;
|
|
78
|
+
}
|
|
79
|
+
export interface InstanceRetrieveResponse {
|
|
80
|
+
id?: string;
|
|
81
|
+
autoShutdownMinutes?: number | null;
|
|
82
|
+
createdAt?: string;
|
|
83
|
+
currentCost?: string;
|
|
84
|
+
currentRuntimeSeconds?: number;
|
|
85
|
+
gpu?: string;
|
|
86
|
+
instanceType?: string;
|
|
87
|
+
ip?: string | null;
|
|
88
|
+
name?: string;
|
|
89
|
+
pricePerHour?: string;
|
|
90
|
+
region?: string;
|
|
91
|
+
specs?: unknown;
|
|
92
|
+
ssh?: InstanceRetrieveResponse.SSH | null;
|
|
93
|
+
startedAt?: string | null;
|
|
94
|
+
status?: string;
|
|
95
|
+
vaultMounts?: unknown | null;
|
|
96
|
+
}
|
|
97
|
+
export declare namespace InstanceRetrieveResponse {
|
|
98
|
+
interface SSH {
|
|
99
|
+
command?: string;
|
|
100
|
+
host?: string;
|
|
101
|
+
instructions?: Array<unknown>;
|
|
102
|
+
privateKey?: string;
|
|
103
|
+
user?: string;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
export interface InstanceListResponse {
|
|
107
|
+
count?: number;
|
|
108
|
+
instances?: Array<InstanceListResponse.Instance>;
|
|
109
|
+
}
|
|
110
|
+
export declare namespace InstanceListResponse {
|
|
111
|
+
interface Instance {
|
|
112
|
+
id?: string;
|
|
113
|
+
autoShutdownMinutes?: number | null;
|
|
114
|
+
createdAt?: string;
|
|
115
|
+
gpu?: string;
|
|
116
|
+
instanceType?: string;
|
|
117
|
+
ip?: string | null;
|
|
118
|
+
name?: string;
|
|
119
|
+
pricePerHour?: string;
|
|
120
|
+
region?: string;
|
|
121
|
+
startedAt?: string | null;
|
|
122
|
+
status?: 'booting' | 'running' | 'stopping' | 'stopped' | 'terminated' | 'failed';
|
|
123
|
+
totalCost?: string;
|
|
124
|
+
totalRuntimeSeconds?: number;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
export interface InstanceDeleteResponse {
|
|
128
|
+
id?: string;
|
|
129
|
+
message?: string;
|
|
130
|
+
name?: string;
|
|
131
|
+
status?: string;
|
|
132
|
+
totalCost?: string;
|
|
133
|
+
totalRuntimeSeconds?: number;
|
|
134
|
+
}
|
|
135
|
+
export interface InstanceCreateParams {
|
|
136
|
+
/**
|
|
137
|
+
* GPU type (e.g., 'gpu_1x_h100_sxm5')
|
|
138
|
+
*/
|
|
139
|
+
instanceType: string;
|
|
140
|
+
/**
|
|
141
|
+
* Instance name
|
|
142
|
+
*/
|
|
143
|
+
name: string;
|
|
144
|
+
/**
|
|
145
|
+
* Region (e.g., 'us-west-1')
|
|
146
|
+
*/
|
|
147
|
+
region: string;
|
|
148
|
+
/**
|
|
149
|
+
* Auto-shutdown timer (null = never)
|
|
150
|
+
*/
|
|
151
|
+
autoShutdownMinutes?: number | null;
|
|
152
|
+
/**
|
|
153
|
+
* Vault IDs to mount
|
|
154
|
+
*/
|
|
155
|
+
vaultIds?: Array<string>;
|
|
156
|
+
}
|
|
157
|
+
export declare namespace Instances {
|
|
158
|
+
export { type InstanceCreateResponse as InstanceCreateResponse, type InstanceRetrieveResponse as InstanceRetrieveResponse, type InstanceListResponse as InstanceListResponse, type InstanceDeleteResponse as InstanceDeleteResponse, type InstanceCreateParams as InstanceCreateParams, };
|
|
159
|
+
}
|
|
160
|
+
//# sourceMappingURL=instances.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instances.d.ts","sourceRoot":"","sources":["../../../src/resources/compute/v1/instances.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GA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