@gpuai/sdk 0.2.0 → 0.2.2

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 CHANGED
@@ -1,4 +1,4 @@
1
- # @gpuai/sdk@0.2.0
1
+ # @gpuai/sdk@0.2.2
2
2
 
3
3
  A TypeScript SDK client for the api.gpu.ai API.
4
4
 
@@ -191,7 +191,7 @@ and is automatically generated by the
191
191
  [OpenAPI Generator](https://openapi-generator.tech) project:
192
192
 
193
193
  - API version: `1.0.0`
194
- - Package version: `0.2.0`
194
+ - Package version: `0.2.2`
195
195
  - Generator version: `7.24.0`
196
196
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
197
197
 
@@ -76,7 +76,7 @@ export interface CreateInstanceRequest {
76
76
  */
77
77
  offeringId?: string;
78
78
  /**
79
- * Requested instance filesystem size in GB. Omit for the platform default (100 GB), which never narrows placement. Setting it is a hard requirement: placement narrows to capacity that can honor it (see `disk_configurable` on GET /v1/pricing), and a request no offering of the gpu_type can honor returns 422 `disk_unavailable` rather than launching with a different size. Disk beyond the included allowance (100 GB) is billed at the offering's `disk_price_per_gb_hour` (GET /v1/pricing), folded into the instance's single hourly rate. Bounds: at least 10, at most the platform ceiling (currently 1000) — outside them returns 422 `validation_failed`.
79
+ * Requested instance filesystem size in GB. Omit for the platform default (100 GB), which never narrows placement. Setting it is a hard requirement: placement narrows to capacity that can honor it (see `disk_configurable` on GET /v1/pricing), and a request no offering of the gpu_type can honor returns 422 `disk_unavailable` rather than launching with a different size. When the launch also pins an exact `offering_id`, a disk_gb larger than that offering's displayed `storage_gb` returns 422 `disk_exceeds_offering` rather than launching with a clamped filesystem. Disk beyond the included allowance (100 GB) is billed at the offering's `disk_price_per_gb_hour` (GET /v1/pricing), folded into the instance's single hourly rate. Bounds: at least 10, at most the platform ceiling (currently 1000) — outside them returns 422 `validation_failed`.
80
80
  * @type {number}
81
81
  * @memberof CreateInstanceRequest
82
82
  */
@@ -28,7 +28,7 @@ export interface GPUType {
28
28
  */
29
29
  vramGb: number;
30
30
  /**
31
- * Representative host vCPU count for this GPU model. Unlike vram_gb (invariant per model) this varies per offering, so it is the first-sighting/typical value; GET /v1/pricing carries the exact per-offering spec. 0 marks a spec the upstream did not report.
31
+ * Representative host vCPU count for this GPU model. Unlike vram_gb (the minimum across the model's current offerings — the value every launch of the model can honor) this varies per offering, so it is the first-sighting/typical value; GET /v1/pricing carries the exact per-offering spec. 0 marks a spec the upstream did not report.
32
32
  * @type {number}
33
33
  * @memberof GPUType
34
34
  */
@@ -65,6 +65,7 @@ export declare const ProblemCodeEnum: {
65
65
  readonly ValidationFailed: "validation_failed";
66
66
  readonly InvalidGpuType: "invalid_gpu_type";
67
67
  readonly DiskUnavailable: "disk_unavailable";
68
+ readonly DiskExceedsOffering: "disk_exceeds_offering";
68
69
  readonly ModelTooLarge: "model_too_large";
69
70
  readonly InsufficientBalance: "insufficient_balance";
70
71
  readonly QuotaExceeded: "quota_exceeded";
@@ -24,6 +24,7 @@ export const ProblemCodeEnum = {
24
24
  ValidationFailed: 'validation_failed',
25
25
  InvalidGpuType: 'invalid_gpu_type',
26
26
  DiskUnavailable: 'disk_unavailable',
27
+ DiskExceedsOffering: 'disk_exceeds_offering',
27
28
  ModelTooLarge: 'model_too_large',
28
29
  InsufficientBalance: 'insufficient_balance',
29
30
  QuotaExceeded: 'quota_exceeded',
@@ -76,7 +76,7 @@ export interface CreateInstanceRequest {
76
76
  */
77
77
  offeringId?: string;
78
78
  /**
79
- * Requested instance filesystem size in GB. Omit for the platform default (100 GB), which never narrows placement. Setting it is a hard requirement: placement narrows to capacity that can honor it (see `disk_configurable` on GET /v1/pricing), and a request no offering of the gpu_type can honor returns 422 `disk_unavailable` rather than launching with a different size. Disk beyond the included allowance (100 GB) is billed at the offering's `disk_price_per_gb_hour` (GET /v1/pricing), folded into the instance's single hourly rate. Bounds: at least 10, at most the platform ceiling (currently 1000) — outside them returns 422 `validation_failed`.
79
+ * Requested instance filesystem size in GB. Omit for the platform default (100 GB), which never narrows placement. Setting it is a hard requirement: placement narrows to capacity that can honor it (see `disk_configurable` on GET /v1/pricing), and a request no offering of the gpu_type can honor returns 422 `disk_unavailable` rather than launching with a different size. When the launch also pins an exact `offering_id`, a disk_gb larger than that offering's displayed `storage_gb` returns 422 `disk_exceeds_offering` rather than launching with a clamped filesystem. Disk beyond the included allowance (100 GB) is billed at the offering's `disk_price_per_gb_hour` (GET /v1/pricing), folded into the instance's single hourly rate. Bounds: at least 10, at most the platform ceiling (currently 1000) — outside them returns 422 `validation_failed`.
80
80
  * @type {number}
81
81
  * @memberof CreateInstanceRequest
82
82
  */
@@ -28,7 +28,7 @@ export interface GPUType {
28
28
  */
29
29
  vramGb: number;
30
30
  /**
31
- * Representative host vCPU count for this GPU model. Unlike vram_gb (invariant per model) this varies per offering, so it is the first-sighting/typical value; GET /v1/pricing carries the exact per-offering spec. 0 marks a spec the upstream did not report.
31
+ * Representative host vCPU count for this GPU model. Unlike vram_gb (the minimum across the model's current offerings — the value every launch of the model can honor) this varies per offering, so it is the first-sighting/typical value; GET /v1/pricing carries the exact per-offering spec. 0 marks a spec the upstream did not report.
32
32
  * @type {number}
33
33
  * @memberof GPUType
34
34
  */
@@ -65,6 +65,7 @@ export declare const ProblemCodeEnum: {
65
65
  readonly ValidationFailed: "validation_failed";
66
66
  readonly InvalidGpuType: "invalid_gpu_type";
67
67
  readonly DiskUnavailable: "disk_unavailable";
68
+ readonly DiskExceedsOffering: "disk_exceeds_offering";
68
69
  readonly ModelTooLarge: "model_too_large";
69
70
  readonly InsufficientBalance: "insufficient_balance";
70
71
  readonly QuotaExceeded: "quota_exceeded";
@@ -32,6 +32,7 @@ exports.ProblemCodeEnum = {
32
32
  ValidationFailed: 'validation_failed',
33
33
  InvalidGpuType: 'invalid_gpu_type',
34
34
  DiskUnavailable: 'disk_unavailable',
35
+ DiskExceedsOffering: 'disk_exceeds_offering',
35
36
  ModelTooLarge: 'model_too_large',
36
37
  InsufficientBalance: 'insufficient_balance',
37
38
  QuotaExceeded: 'quota_exceeded',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpuai/sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "TypeScript SDK for the GPU.ai Public Developer API",
5
5
  "author": "GPU.ai Support <support@gpu.ai>",
6
6
  "repository": {
@@ -80,7 +80,7 @@ export interface CreateInstanceRequest {
80
80
  */
81
81
  offeringId?: string;
82
82
  /**
83
- * Requested instance filesystem size in GB. Omit for the platform default (100 GB), which never narrows placement. Setting it is a hard requirement: placement narrows to capacity that can honor it (see `disk_configurable` on GET /v1/pricing), and a request no offering of the gpu_type can honor returns 422 `disk_unavailable` rather than launching with a different size. Disk beyond the included allowance (100 GB) is billed at the offering's `disk_price_per_gb_hour` (GET /v1/pricing), folded into the instance's single hourly rate. Bounds: at least 10, at most the platform ceiling (currently 1000) — outside them returns 422 `validation_failed`.
83
+ * Requested instance filesystem size in GB. Omit for the platform default (100 GB), which never narrows placement. Setting it is a hard requirement: placement narrows to capacity that can honor it (see `disk_configurable` on GET /v1/pricing), and a request no offering of the gpu_type can honor returns 422 `disk_unavailable` rather than launching with a different size. When the launch also pins an exact `offering_id`, a disk_gb larger than that offering's displayed `storage_gb` returns 422 `disk_exceeds_offering` rather than launching with a clamped filesystem. Disk beyond the included allowance (100 GB) is billed at the offering's `disk_price_per_gb_hour` (GET /v1/pricing), folded into the instance's single hourly rate. Bounds: at least 10, at most the platform ceiling (currently 1000) — outside them returns 422 `validation_failed`.
84
84
  * @type {number}
85
85
  * @memberof CreateInstanceRequest
86
86
  */
@@ -32,7 +32,7 @@ export interface GPUType {
32
32
  */
33
33
  vramGb: number;
34
34
  /**
35
- * Representative host vCPU count for this GPU model. Unlike vram_gb (invariant per model) this varies per offering, so it is the first-sighting/typical value; GET /v1/pricing carries the exact per-offering spec. 0 marks a spec the upstream did not report.
35
+ * Representative host vCPU count for this GPU model. Unlike vram_gb (the minimum across the model's current offerings — the value every launch of the model can honor) this varies per offering, so it is the first-sighting/typical value; GET /v1/pricing carries the exact per-offering spec. 0 marks a spec the upstream did not report.
36
36
  * @type {number}
37
37
  * @memberof GPUType
38
38
  */
@@ -71,6 +71,7 @@ export const ProblemCodeEnum = {
71
71
  ValidationFailed: 'validation_failed',
72
72
  InvalidGpuType: 'invalid_gpu_type',
73
73
  DiskUnavailable: 'disk_unavailable',
74
+ DiskExceedsOffering: 'disk_exceeds_offering',
74
75
  ModelTooLarge: 'model_too_large',
75
76
  InsufficientBalance: 'insufficient_balance',
76
77
  QuotaExceeded: 'quota_exceeded',