casedev 0.50.0 → 0.52.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.
Files changed (50) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/package.json +1 -1
  3. package/resources/compute/v1/index.d.mts +0 -2
  4. package/resources/compute/v1/index.d.mts.map +1 -1
  5. package/resources/compute/v1/index.d.ts +0 -2
  6. package/resources/compute/v1/index.d.ts.map +1 -1
  7. package/resources/compute/v1/index.js +1 -5
  8. package/resources/compute/v1/index.js.map +1 -1
  9. package/resources/compute/v1/index.mjs +0 -2
  10. package/resources/compute/v1/index.mjs.map +1 -1
  11. package/resources/compute/v1/v1.d.mts +0 -19
  12. package/resources/compute/v1/v1.d.mts.map +1 -1
  13. package/resources/compute/v1/v1.d.ts +0 -19
  14. package/resources/compute/v1/v1.d.ts.map +1 -1
  15. package/resources/compute/v1/v1.js +0 -25
  16. package/resources/compute/v1/v1.js.map +1 -1
  17. package/resources/compute/v1/v1.mjs +0 -25
  18. package/resources/compute/v1/v1.mjs.map +1 -1
  19. package/resources/vault/vault.d.mts +33 -0
  20. package/resources/vault/vault.d.mts.map +1 -1
  21. package/resources/vault/vault.d.ts +33 -0
  22. package/resources/vault/vault.d.ts.map +1 -1
  23. package/resources/vault/vault.js.map +1 -1
  24. package/resources/vault/vault.mjs.map +1 -1
  25. package/src/resources/compute/v1/index.ts +0 -9
  26. package/src/resources/compute/v1/v1.ts +0 -44
  27. package/src/resources/vault/vault.ts +46 -0
  28. package/src/version.ts +1 -1
  29. package/version.d.mts +1 -1
  30. package/version.d.ts +1 -1
  31. package/version.js +1 -1
  32. package/version.mjs +1 -1
  33. package/resources/compute/v1/instance-types.d.mts +0 -73
  34. package/resources/compute/v1/instance-types.d.mts.map +0 -1
  35. package/resources/compute/v1/instance-types.d.ts +0 -73
  36. package/resources/compute/v1/instance-types.d.ts.map +0 -1
  37. package/resources/compute/v1/instance-types.js +0 -27
  38. package/resources/compute/v1/instance-types.js.map +0 -1
  39. package/resources/compute/v1/instance-types.mjs +0 -23
  40. package/resources/compute/v1/instance-types.mjs.map +0 -1
  41. package/resources/compute/v1/instances.d.mts +0 -160
  42. package/resources/compute/v1/instances.d.mts.map +0 -1
  43. package/resources/compute/v1/instances.d.ts +0 -160
  44. package/resources/compute/v1/instances.d.ts.map +0 -1
  45. package/resources/compute/v1/instances.js +0 -77
  46. package/resources/compute/v1/instances.js.map +0 -1
  47. package/resources/compute/v1/instances.mjs +0 -73
  48. package/resources/compute/v1/instances.mjs.map +0 -1
  49. package/src/resources/compute/v1/instance-types.ts +0 -89
  50. package/src/resources/compute/v1/instances.ts +0 -240
@@ -1,160 +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
- /**
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
@@ -1 +0,0 @@
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;;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,w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E,MAAM,CAAC;KAC9B;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;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"}
@@ -1,77 +0,0 @@
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.Instances = void 0;
5
- const resource_1 = require("../../../core/resource.js");
6
- const path_1 = require("../../../internal/utils/path.js");
7
- /**
8
- * Serverless GPU and CPU infrastructure
9
- */
10
- class Instances extends resource_1.APIResource {
11
- /**
12
- * Launches a new GPU compute instance with automatic SSH key generation. Supports
13
- * mounting Case.dev Vaults as filesystems and configurable auto-shutdown. Instance
14
- * boots in ~2-5 minutes. Perfect for batch OCR processing, AI model training, and
15
- * intensive document analysis workloads.
16
- *
17
- * @example
18
- * ```ts
19
- * const instance = await client.compute.v1.instances.create({
20
- * instanceType: 'gpu_1x_a10',
21
- * name: 'ocr-batch-job',
22
- * region: 'us-west-1',
23
- * autoShutdownMinutes: 120,
24
- * vaultIds: ['vault_abc123'],
25
- * });
26
- * ```
27
- */
28
- create(body, options) {
29
- return this._client.post('/compute/v1/instances', { body, ...options });
30
- }
31
- /**
32
- * Retrieves detailed information about a GPU instance including SSH connection
33
- * details, vault mount scripts, real-time cost tracking, and current status. SSH
34
- * private key included for secure access.
35
- *
36
- * @example
37
- * ```ts
38
- * const instance = await client.compute.v1.instances.retrieve(
39
- * 'id',
40
- * );
41
- * ```
42
- */
43
- retrieve(id, options) {
44
- return this._client.get((0, path_1.path) `/compute/v1/instances/${id}`, options);
45
- }
46
- /**
47
- * Retrieves all GPU compute instances for your organization with real-time status
48
- * updates from Lambda Labs. Includes pricing, runtime metrics, and auto-shutdown
49
- * configuration. Perfect for monitoring AI workloads, document processing jobs,
50
- * and cost tracking.
51
- *
52
- * @example
53
- * ```ts
54
- * const instances = await client.compute.v1.instances.list();
55
- * ```
56
- */
57
- list(options) {
58
- return this._client.get('/compute/v1/instances', options);
59
- }
60
- /**
61
- * Terminates a running GPU instance, calculates final cost, and cleans up SSH
62
- * keys. This action is permanent and cannot be undone. All data on the instance
63
- * will be lost.
64
- *
65
- * @example
66
- * ```ts
67
- * const instance = await client.compute.v1.instances.delete(
68
- * 'id',
69
- * );
70
- * ```
71
- */
72
- delete(id, options) {
73
- return this._client.delete((0, path_1.path) `/compute/v1/instances/${id}`, options);
74
- }
75
- }
76
- exports.Instances = Instances;
77
- //# sourceMappingURL=instances.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"instances.js","sourceRoot":"","sources":["../../../src/resources/compute/v1/instances.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF;AApED,8BAoEC"}
@@ -1,73 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../../core/resource.mjs";
3
- import { path } from "../../../internal/utils/path.mjs";
4
- /**
5
- * Serverless GPU and CPU infrastructure
6
- */
7
- export 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, options) {
26
- return this._client.post('/compute/v1/instances', { body, ...options });
27
- }
28
- /**
29
- * Retrieves detailed information about a GPU instance including SSH connection
30
- * details, vault mount scripts, real-time cost tracking, and current status. SSH
31
- * private key included for secure access.
32
- *
33
- * @example
34
- * ```ts
35
- * const instance = await client.compute.v1.instances.retrieve(
36
- * 'id',
37
- * );
38
- * ```
39
- */
40
- retrieve(id, options) {
41
- return this._client.get(path `/compute/v1/instances/${id}`, options);
42
- }
43
- /**
44
- * Retrieves all GPU compute instances for your organization with real-time status
45
- * updates from Lambda Labs. Includes pricing, runtime metrics, and auto-shutdown
46
- * configuration. Perfect for monitoring AI workloads, document processing jobs,
47
- * and cost tracking.
48
- *
49
- * @example
50
- * ```ts
51
- * const instances = await client.compute.v1.instances.list();
52
- * ```
53
- */
54
- list(options) {
55
- return this._client.get('/compute/v1/instances', options);
56
- }
57
- /**
58
- * Terminates a running GPU instance, calculates final cost, and cleans up SSH
59
- * keys. This action is permanent and cannot be undone. All data on the instance
60
- * will be lost.
61
- *
62
- * @example
63
- * ```ts
64
- * const instance = await client.compute.v1.instances.delete(
65
- * 'id',
66
- * );
67
- * ```
68
- */
69
- delete(id, options) {
70
- return this._client.delete(path `/compute/v1/instances/${id}`, options);
71
- }
72
- }
73
- //# sourceMappingURL=instances.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"instances.mjs","sourceRoot":"","sources":["../../../src/resources/compute/v1/instances.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,yBAAyB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,yBAAyB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF"}
@@ -1,89 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../../core/resource';
4
- import { APIPromise } from '../../../core/api-promise';
5
- import { RequestOptions } from '../../../internal/request-options';
6
-
7
- /**
8
- * Serverless GPU and CPU infrastructure
9
- */
10
- export class InstanceTypes extends APIResource {
11
- /**
12
- * Retrieves all available GPU instance types with pricing, specifications, and
13
- * regional availability. Includes T4, A10, A100, H100, and H200 GPUs powered by
14
- * Lambda Labs. Perfect for AI model training, inference workloads, and legal
15
- * document OCR processing at scale.
16
- *
17
- * @example
18
- * ```ts
19
- * const instanceTypes =
20
- * await client.compute.v1.instanceTypes.list();
21
- * ```
22
- */
23
- list(options?: RequestOptions): APIPromise<InstanceTypeListResponse> {
24
- return this._client.get('/compute/v1/instance-types', options);
25
- }
26
- }
27
-
28
- export interface InstanceTypeListResponse {
29
- /**
30
- * Total number of instance types
31
- */
32
- count: number;
33
-
34
- instanceTypes: Array<InstanceTypeListResponse.InstanceType>;
35
- }
36
-
37
- export namespace InstanceTypeListResponse {
38
- export interface InstanceType {
39
- /**
40
- * Instance description
41
- */
42
- description?: string;
43
-
44
- /**
45
- * GPU model and count
46
- */
47
- gpu?: string;
48
-
49
- /**
50
- * Instance type identifier
51
- */
52
- name?: string;
53
-
54
- /**
55
- * Price per hour (e.g. '$1.20')
56
- */
57
- pricePerHour?: string;
58
-
59
- /**
60
- * Available regions
61
- */
62
- regionsAvailable?: Array<string>;
63
-
64
- specs?: InstanceType.Specs;
65
- }
66
-
67
- export namespace InstanceType {
68
- export interface Specs {
69
- /**
70
- * RAM in GiB
71
- */
72
- memoryGib?: number;
73
-
74
- /**
75
- * Storage in GiB
76
- */
77
- storageGib?: number;
78
-
79
- /**
80
- * Number of vCPUs
81
- */
82
- vcpus?: number;
83
- }
84
- }
85
- }
86
-
87
- export declare namespace InstanceTypes {
88
- export { type InstanceTypeListResponse as InstanceTypeListResponse };
89
- }
@@ -1,240 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../../core/resource';
4
- import { APIPromise } from '../../../core/api-promise';
5
- import { RequestOptions } from '../../../internal/request-options';
6
- import { path } from '../../../internal/utils/path';
7
-
8
- /**
9
- * Serverless GPU and CPU infrastructure
10
- */
11
- export class Instances extends APIResource {
12
- /**
13
- * Launches a new GPU compute instance with automatic SSH key generation. Supports
14
- * mounting Case.dev Vaults as filesystems and configurable auto-shutdown. Instance
15
- * boots in ~2-5 minutes. Perfect for batch OCR processing, AI model training, and
16
- * intensive document analysis workloads.
17
- *
18
- * @example
19
- * ```ts
20
- * const instance = await client.compute.v1.instances.create({
21
- * instanceType: 'gpu_1x_a10',
22
- * name: 'ocr-batch-job',
23
- * region: 'us-west-1',
24
- * autoShutdownMinutes: 120,
25
- * vaultIds: ['vault_abc123'],
26
- * });
27
- * ```
28
- */
29
- create(body: InstanceCreateParams, options?: RequestOptions): APIPromise<InstanceCreateResponse> {
30
- return this._client.post('/compute/v1/instances', { body, ...options });
31
- }
32
-
33
- /**
34
- * Retrieves detailed information about a GPU instance including SSH connection
35
- * details, vault mount scripts, real-time cost tracking, and current status. SSH
36
- * private key included for secure access.
37
- *
38
- * @example
39
- * ```ts
40
- * const instance = await client.compute.v1.instances.retrieve(
41
- * 'id',
42
- * );
43
- * ```
44
- */
45
- retrieve(id: string, options?: RequestOptions): APIPromise<InstanceRetrieveResponse> {
46
- return this._client.get(path`/compute/v1/instances/${id}`, options);
47
- }
48
-
49
- /**
50
- * Retrieves all GPU compute instances for your organization with real-time status
51
- * updates from Lambda Labs. Includes pricing, runtime metrics, and auto-shutdown
52
- * configuration. Perfect for monitoring AI workloads, document processing jobs,
53
- * and cost tracking.
54
- *
55
- * @example
56
- * ```ts
57
- * const instances = await client.compute.v1.instances.list();
58
- * ```
59
- */
60
- list(options?: RequestOptions): APIPromise<InstanceListResponse> {
61
- return this._client.get('/compute/v1/instances', options);
62
- }
63
-
64
- /**
65
- * Terminates a running GPU instance, calculates final cost, and cleans up SSH
66
- * keys. This action is permanent and cannot be undone. All data on the instance
67
- * will be lost.
68
- *
69
- * @example
70
- * ```ts
71
- * const instance = await client.compute.v1.instances.delete(
72
- * 'id',
73
- * );
74
- * ```
75
- */
76
- delete(id: string, options?: RequestOptions): APIPromise<InstanceDeleteResponse> {
77
- return this._client.delete(path`/compute/v1/instances/${id}`, options);
78
- }
79
- }
80
-
81
- export interface InstanceCreateResponse {
82
- id?: string;
83
-
84
- autoShutdownMinutes?: number | null;
85
-
86
- createdAt?: string;
87
-
88
- gpu?: string;
89
-
90
- instanceType?: string;
91
-
92
- message?: string;
93
-
94
- name?: string;
95
-
96
- pricePerHour?: string;
97
-
98
- region?: string;
99
-
100
- specs?: unknown;
101
-
102
- status?: string;
103
-
104
- vaults?: Array<unknown>;
105
- }
106
-
107
- export interface InstanceRetrieveResponse {
108
- id?: string;
109
-
110
- autoShutdownMinutes?: number | null;
111
-
112
- createdAt?: string;
113
-
114
- currentCost?: string;
115
-
116
- currentRuntimeSeconds?: number;
117
-
118
- gpu?: string;
119
-
120
- instanceType?: string;
121
-
122
- ip?: string | null;
123
-
124
- name?: string;
125
-
126
- pricePerHour?: string;
127
-
128
- region?: string;
129
-
130
- specs?: unknown;
131
-
132
- ssh?: InstanceRetrieveResponse.SSH | null;
133
-
134
- startedAt?: string | null;
135
-
136
- status?: string;
137
-
138
- vaultMounts?: unknown | null;
139
- }
140
-
141
- export namespace InstanceRetrieveResponse {
142
- export interface SSH {
143
- command?: string;
144
-
145
- host?: string;
146
-
147
- instructions?: Array<unknown>;
148
-
149
- privateKey?: string;
150
-
151
- user?: string;
152
- }
153
- }
154
-
155
- export interface InstanceListResponse {
156
- count?: number;
157
-
158
- instances?: Array<InstanceListResponse.Instance>;
159
- }
160
-
161
- export namespace InstanceListResponse {
162
- export interface Instance {
163
- id?: string;
164
-
165
- autoShutdownMinutes?: number | null;
166
-
167
- createdAt?: string;
168
-
169
- gpu?: string;
170
-
171
- instanceType?: string;
172
-
173
- ip?: string | null;
174
-
175
- name?: string;
176
-
177
- pricePerHour?: string;
178
-
179
- region?: string;
180
-
181
- startedAt?: string | null;
182
-
183
- status?: 'booting' | 'running' | 'stopping' | 'stopped' | 'terminated' | 'failed';
184
-
185
- totalCost?: string;
186
-
187
- totalRuntimeSeconds?: number;
188
- }
189
- }
190
-
191
- export interface InstanceDeleteResponse {
192
- id?: string;
193
-
194
- message?: string;
195
-
196
- name?: string;
197
-
198
- status?: string;
199
-
200
- totalCost?: string;
201
-
202
- totalRuntimeSeconds?: number;
203
- }
204
-
205
- export interface InstanceCreateParams {
206
- /**
207
- * GPU type (e.g., 'gpu_1x_h100_sxm5')
208
- */
209
- instanceType: string;
210
-
211
- /**
212
- * Instance name
213
- */
214
- name: string;
215
-
216
- /**
217
- * Region (e.g., 'us-west-1')
218
- */
219
- region: string;
220
-
221
- /**
222
- * Auto-shutdown timer (null = never)
223
- */
224
- autoShutdownMinutes?: number | null;
225
-
226
- /**
227
- * Vault IDs to mount
228
- */
229
- vaultIds?: Array<string>;
230
- }
231
-
232
- export declare namespace Instances {
233
- export {
234
- type InstanceCreateResponse as InstanceCreateResponse,
235
- type InstanceRetrieveResponse as InstanceRetrieveResponse,
236
- type InstanceListResponse as InstanceListResponse,
237
- type InstanceDeleteResponse as InstanceDeleteResponse,
238
- type InstanceCreateParams as InstanceCreateParams,
239
- };
240
- }