casedev 0.50.0 → 0.51.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 +8 -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 +31 -0
  20. package/resources/vault/vault.d.mts.map +1 -1
  21. package/resources/vault/vault.d.ts +31 -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 +43 -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
@@ -11,17 +11,6 @@ import {
11
11
  EnvironmentSetDefaultResponse,
12
12
  Environments,
13
13
  } from './environments';
14
- import * as InstanceTypesAPI from './instance-types';
15
- import { InstanceTypeListResponse, InstanceTypes } from './instance-types';
16
- import * as InstancesAPI from './instances';
17
- import {
18
- InstanceCreateParams,
19
- InstanceCreateResponse,
20
- InstanceDeleteResponse,
21
- InstanceListResponse,
22
- InstanceRetrieveResponse,
23
- Instances,
24
- } from './instances';
25
14
  import * as SecretsAPI from './secrets';
26
15
  import {
27
16
  SecretCreateParams,
@@ -37,7 +26,6 @@ import {
37
26
  Secrets,
38
27
  } from './secrets';
39
28
  import { APIPromise } from '../../../core/api-promise';
40
- import { buildHeaders } from '../../../internal/headers';
41
29
  import { RequestOptions } from '../../../internal/request-options';
42
30
 
43
31
  /**
@@ -45,27 +33,8 @@ import { RequestOptions } from '../../../internal/request-options';
45
33
  */
46
34
  export class V1 extends APIResource {
47
35
  environments: EnvironmentsAPI.Environments = new EnvironmentsAPI.Environments(this._client);
48
- instanceTypes: InstanceTypesAPI.InstanceTypes = new InstanceTypesAPI.InstanceTypes(this._client);
49
- instances: InstancesAPI.Instances = new InstancesAPI.Instances(this._client);
50
36
  secrets: SecretsAPI.Secrets = new SecretsAPI.Secrets(this._client);
51
37
 
52
- /**
53
- * Returns current pricing for GPU instances. Prices are fetched in real-time and
54
- * include a 20% platform fee. For detailed instance types and availability, use
55
- * GET /compute/v1/instance-types.
56
- *
57
- * @example
58
- * ```ts
59
- * await client.compute.v1.getPricing();
60
- * ```
61
- */
62
- getPricing(options?: RequestOptions): APIPromise<void> {
63
- return this._client.get('/compute/v1/pricing', {
64
- ...options,
65
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
66
- });
67
- }
68
-
69
38
  /**
70
39
  * Returns detailed compute usage statistics and billing information for your
71
40
  * organization. Includes GPU and CPU hours, total runs, costs, and breakdowns by
@@ -141,8 +110,6 @@ export interface V1GetUsageParams {
141
110
  }
142
111
 
143
112
  V1.Environments = Environments;
144
- V1.InstanceTypes = InstanceTypes;
145
- V1.Instances = Instances;
146
113
  V1.Secrets = Secrets;
147
114
 
148
115
  export declare namespace V1 {
@@ -158,17 +125,6 @@ export declare namespace V1 {
158
125
  type EnvironmentCreateParams as EnvironmentCreateParams,
159
126
  };
160
127
 
161
- export { InstanceTypes as InstanceTypes, type InstanceTypeListResponse as InstanceTypeListResponse };
162
-
163
- export {
164
- Instances as Instances,
165
- type InstanceCreateResponse as InstanceCreateResponse,
166
- type InstanceRetrieveResponse as InstanceRetrieveResponse,
167
- type InstanceListResponse as InstanceListResponse,
168
- type InstanceDeleteResponse as InstanceDeleteResponse,
169
- type InstanceCreateParams as InstanceCreateParams,
170
- };
171
-
172
128
  export {
173
129
  Secrets as Secrets,
174
130
  type SecretCreateResponse as SecretCreateResponse,
@@ -250,6 +250,11 @@ export interface VaultCreateResponse {
250
250
  */
251
251
  description?: string;
252
252
 
253
+ /**
254
+ * The resolved embedding profile for this vault. Null for storage-only vaults.
255
+ */
256
+ embeddingProfile?: VaultCreateResponse.EmbeddingProfile | null;
257
+
253
258
  /**
254
259
  * Whether vector indexing is enabled for this vault
255
260
  */
@@ -281,6 +286,28 @@ export interface VaultCreateResponse {
281
286
  vectorBucket?: string | null;
282
287
  }
283
288
 
289
+ export namespace VaultCreateResponse {
290
+ /**
291
+ * The resolved embedding profile for this vault. Null for storage-only vaults.
292
+ */
293
+ export interface EmbeddingProfile {
294
+ /**
295
+ * Vector dimension used by this vault
296
+ */
297
+ dimensions?: number;
298
+
299
+ /**
300
+ * Embedding model catalog key
301
+ */
302
+ model?: string;
303
+
304
+ /**
305
+ * Embedding provider
306
+ */
307
+ provider?: string;
308
+ }
309
+ }
310
+
284
311
  export interface VaultRetrieveResponse {
285
312
  /**
286
313
  * Vault identifier
@@ -754,6 +781,22 @@ export interface VaultCreateParams {
754
781
  */
755
782
  description?: string;
756
783
 
784
+ /**
785
+ * Optional embedding model for this vault. Defaults to
786
+ * openai/text-embedding-3-small. Determines the S3 Vectors index dimension and
787
+ * which model is used at both ingest and search time. The vault is locked to this
788
+ * model after creation — use a re-embed flow to change later. Ignored when
789
+ * enableIndexing is false.
790
+ */
791
+ embeddingModel?:
792
+ | 'openai/text-embedding-3-small'
793
+ | 'openai/text-embedding-3-large'
794
+ | 'voyage/voyage-3.5'
795
+ | 'voyage/voyage-law-2'
796
+ | 'cohere/embed-v4.0'
797
+ | 'google/gemini-embedding-2'
798
+ | 'casemark/llama-nemotron-embed-vl-1b-v2';
799
+
757
800
  /**
758
801
  * Enable knowledge graph for entity relationship mapping. Only applies when
759
802
  * enableIndexing is true.
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.50.0'; // x-release-please-version
1
+ export const VERSION = '0.51.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.50.0";
1
+ export declare const VERSION = "0.51.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.50.0";
1
+ export declare const VERSION = "0.51.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.50.0'; // x-release-please-version
4
+ exports.VERSION = '0.51.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.50.0'; // x-release-please-version
1
+ export const VERSION = '0.51.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,73 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,73 +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 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
@@ -1 +0,0 @@
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"}
@@ -1,27 +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.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
@@ -1 +0,0 @@
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"}
@@ -1,23 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,160 +0,0 @@
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
@@ -1 +0,0 @@
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;;;;;;;;;;;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