@gpuai/sdk 0.3.17 → 0.3.18

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.3.17
1
+ # @gpuai/sdk@0.3.18
2
2
 
3
3
  A TypeScript SDK client for the api.gpu.ai API.
4
4
 
@@ -235,7 +235,7 @@ and is automatically generated by the
235
235
  [OpenAPI Generator](https://openapi-generator.tech) project:
236
236
 
237
237
  - API version: `1.0.0`
238
- - Package version: `0.3.17`
238
+ - Package version: `0.3.18`
239
239
  - Generator version: `7.24.0`
240
240
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
241
241
 
@@ -23,7 +23,8 @@ export interface AutolaunchRule {
23
23
  */
24
24
  id: string;
25
25
  /**
26
- * The GPU model the rule watches and launches, e.g. "H100".
26
+ * The canonical GPU model id the rule targets and launches, e.g. "h100_sxm" — a MODEL, not a generation. "H100" names three differently priced SKUs, matches nothing in the catalog, and is refused: a rule that can never fire is a standing purchase order the customer believes is armed. Case and punctuation are forgiving ("RTX-A4000" resolves to "rtx_a4000") and the canonical id is what is stored. It must also match spec.gpu_type, or the rule would wait on one market and buy from another.
27
+ *
27
28
  * @type {string}
28
29
  * @memberof AutolaunchRule
29
30
  */
@@ -23,7 +23,8 @@ export interface AutolaunchRule {
23
23
  */
24
24
  id: string;
25
25
  /**
26
- * The GPU model the rule watches and launches, e.g. "H100".
26
+ * The canonical GPU model id the rule targets and launches, e.g. "h100_sxm" — a MODEL, not a generation. "H100" names three differently priced SKUs, matches nothing in the catalog, and is refused: a rule that can never fire is a standing purchase order the customer believes is armed. Case and punctuation are forgiving ("RTX-A4000" resolves to "rtx_a4000") and the canonical id is what is stored. It must also match spec.gpu_type, or the rule would wait on one market and buy from another.
27
+ *
27
28
  * @type {string}
28
29
  * @memberof AutolaunchRule
29
30
  */
@@ -83,7 +83,7 @@ example().catch(console.error);
83
83
  |-------------|-------------|------------------|
84
84
  | **201** | Created | - |
85
85
  | **403** | The API key lacks `autolaunch:write`. This scope is explicit-grant only and is NOT covered by `full_access`, `standard` or `read_only`; the problem detail names the scope and the fix. | - |
86
- | **422** | Validation failed — a missing or mismatched `acknowledged_max_total_usd`, a missing ceiling or runtime bound, an unknown condition kind, a non-canonical region, a missing threshold on a threshold condition, a `spec` that would not launch, a pinned `spec.offering_id`, or the active-rule limit already reached. | - |
86
+ | **422** | Validation failed — a missing or mismatched `acknowledged_max_total_usd`, a missing ceiling or runtime bound, an unknown condition kind, a non-canonical region, a missing threshold on a threshold condition, a `spec` that would not launch, a pinned `spec.offering_id`, or the active-rule limit already reached. Also refused: anything that would arm a rule which can never succeed. A `gpu_model` (or `spec.gpu_type`) that is not a model we list; a `spec.gpu_type` that disagrees with the rule\'s `gpu_model`; and a `spec.gpu_count` that is not a node shape a single launch can ask for (1, 2, 4 or 8 — 3, 5, 6 and 7 all pass an ordinary bounds check and none is a machine anyone rents). NOT refused: a `max_price_per_hour` below `threshold` x `spec.gpu_count`. The two are in different units — `threshold` is per GPU-hour, the ceiling is for the WHOLE instance — but the launch aborts only above ceiling/gpu_count, a LOWER bar than the trigger, so such a rule waits and then buys once the market falls far enough. That shape is supported deliberately. | - |
87
87
  | **429** | Rate limit exceeded (RFC 7807). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
88
88
  | **0** | Error response (RFC 7807) | - |
89
89
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpuai/sdk",
3
- "version": "0.3.17",
3
+ "version": "0.3.18",
4
4
  "description": "TypeScript SDK for the GPU.ai Public Developer API",
5
5
  "author": "GPU.ai Support <support@gpu.ai>",
6
6
  "repository": {
@@ -27,7 +27,8 @@ export interface AutolaunchRule {
27
27
  */
28
28
  id: string;
29
29
  /**
30
- * The GPU model the rule watches and launches, e.g. "H100".
30
+ * The canonical GPU model id the rule targets and launches, e.g. "h100_sxm" — a MODEL, not a generation. "H100" names three differently priced SKUs, matches nothing in the catalog, and is refused: a rule that can never fire is a standing purchase order the customer believes is armed. Case and punctuation are forgiving ("RTX-A4000" resolves to "rtx_a4000") and the canonical id is what is stored. It must also match spec.gpu_type, or the rule would wait on one market and buy from another.
31
+ *
31
32
  * @type {string}
32
33
  * @memberof AutolaunchRule
33
34
  */