@gpuai/sdk 0.3.12 → 0.3.14

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 (132) hide show
  1. package/.openapi-generator/FILES +36 -0
  2. package/README.md +38 -9
  3. package/dist/apis/AutolaunchApi.d.ts +109 -0
  4. package/dist/apis/AutolaunchApi.js +286 -0
  5. package/dist/apis/InferenceApi.d.ts +19 -0
  6. package/dist/apis/InferenceApi.js +51 -0
  7. package/dist/apis/MarketApi.d.ts +56 -0
  8. package/dist/apis/MarketApi.js +112 -0
  9. package/dist/apis/WatchApi.d.ts +109 -0
  10. package/dist/apis/WatchApi.js +286 -0
  11. package/dist/apis/index.d.ts +3 -0
  12. package/dist/apis/index.js +3 -0
  13. package/dist/esm/apis/AutolaunchApi.d.ts +109 -0
  14. package/dist/esm/apis/AutolaunchApi.js +282 -0
  15. package/dist/esm/apis/InferenceApi.d.ts +19 -0
  16. package/dist/esm/apis/InferenceApi.js +51 -0
  17. package/dist/esm/apis/MarketApi.d.ts +56 -0
  18. package/dist/esm/apis/MarketApi.js +108 -0
  19. package/dist/esm/apis/WatchApi.d.ts +109 -0
  20. package/dist/esm/apis/WatchApi.js +282 -0
  21. package/dist/esm/apis/index.d.ts +3 -0
  22. package/dist/esm/apis/index.js +3 -0
  23. package/dist/esm/models/AutolaunchRule.d.ts +181 -0
  24. package/dist/esm/models/AutolaunchRule.js +142 -0
  25. package/dist/esm/models/AutolaunchRuleCreate.d.ts +105 -0
  26. package/dist/esm/models/AutolaunchRuleCreate.js +84 -0
  27. package/dist/esm/models/AutolaunchRuleDisarm.d.ts +34 -0
  28. package/dist/esm/models/AutolaunchRuleDisarm.js +43 -0
  29. package/dist/esm/models/AutolaunchRulePage.d.ts +39 -0
  30. package/dist/esm/models/AutolaunchRulePage.js +48 -0
  31. package/dist/esm/models/Embedding.d.ts +51 -0
  32. package/dist/esm/models/Embedding.js +59 -0
  33. package/dist/esm/models/EmbeddingsRequest.d.ts +64 -0
  34. package/dist/esm/models/EmbeddingsRequest.js +60 -0
  35. package/dist/esm/models/EmbeddingsRequestInput.d.ts +21 -0
  36. package/dist/esm/models/EmbeddingsRequestInput.js +47 -0
  37. package/dist/esm/models/EmbeddingsResponse.d.ts +59 -0
  38. package/dist/esm/models/EmbeddingsResponse.js +65 -0
  39. package/dist/esm/models/EmbeddingsUsage.d.ts +38 -0
  40. package/dist/esm/models/EmbeddingsUsage.js +47 -0
  41. package/dist/esm/models/MarketHistoryPoint.d.ts +59 -0
  42. package/dist/esm/models/MarketHistoryPoint.js +55 -0
  43. package/dist/esm/models/MarketHistoryResponse.d.ts +60 -0
  44. package/dist/esm/models/MarketHistoryResponse.js +60 -0
  45. package/dist/esm/models/Problem.d.ts +1 -0
  46. package/dist/esm/models/Problem.js +1 -0
  47. package/dist/esm/models/WatchRule.d.ts +141 -0
  48. package/dist/esm/models/WatchRule.js +117 -0
  49. package/dist/esm/models/WatchRuleCreate.d.ts +87 -0
  50. package/dist/esm/models/WatchRuleCreate.js +72 -0
  51. package/dist/esm/models/WatchRulePage.d.ts +39 -0
  52. package/dist/esm/models/WatchRulePage.js +48 -0
  53. package/dist/esm/models/WatchRuleUpdate.d.ts +86 -0
  54. package/dist/esm/models/WatchRuleUpdate.js +68 -0
  55. package/dist/esm/models/index.d.ts +15 -0
  56. package/dist/esm/models/index.js +15 -0
  57. package/dist/models/AutolaunchRule.d.ts +181 -0
  58. package/dist/models/AutolaunchRule.js +150 -0
  59. package/dist/models/AutolaunchRuleCreate.d.ts +105 -0
  60. package/dist/models/AutolaunchRuleCreate.js +92 -0
  61. package/dist/models/AutolaunchRuleDisarm.d.ts +34 -0
  62. package/dist/models/AutolaunchRuleDisarm.js +50 -0
  63. package/dist/models/AutolaunchRulePage.d.ts +39 -0
  64. package/dist/models/AutolaunchRulePage.js +55 -0
  65. package/dist/models/Embedding.d.ts +51 -0
  66. package/dist/models/Embedding.js +67 -0
  67. package/dist/models/EmbeddingsRequest.d.ts +64 -0
  68. package/dist/models/EmbeddingsRequest.js +68 -0
  69. package/dist/models/EmbeddingsRequestInput.d.ts +21 -0
  70. package/dist/models/EmbeddingsRequestInput.js +53 -0
  71. package/dist/models/EmbeddingsResponse.d.ts +59 -0
  72. package/dist/models/EmbeddingsResponse.js +73 -0
  73. package/dist/models/EmbeddingsUsage.d.ts +38 -0
  74. package/dist/models/EmbeddingsUsage.js +54 -0
  75. package/dist/models/MarketHistoryPoint.d.ts +59 -0
  76. package/dist/models/MarketHistoryPoint.js +62 -0
  77. package/dist/models/MarketHistoryResponse.d.ts +60 -0
  78. package/dist/models/MarketHistoryResponse.js +67 -0
  79. package/dist/models/Problem.d.ts +1 -0
  80. package/dist/models/Problem.js +1 -0
  81. package/dist/models/WatchRule.d.ts +141 -0
  82. package/dist/models/WatchRule.js +125 -0
  83. package/dist/models/WatchRuleCreate.d.ts +87 -0
  84. package/dist/models/WatchRuleCreate.js +80 -0
  85. package/dist/models/WatchRulePage.d.ts +39 -0
  86. package/dist/models/WatchRulePage.js +55 -0
  87. package/dist/models/WatchRuleUpdate.d.ts +86 -0
  88. package/dist/models/WatchRuleUpdate.js +76 -0
  89. package/dist/models/index.d.ts +15 -0
  90. package/dist/models/index.js +15 -0
  91. package/docs/AutolaunchApi.md +390 -0
  92. package/docs/AutolaunchRule.md +69 -0
  93. package/docs/AutolaunchRuleCreate.md +50 -0
  94. package/docs/AutolaunchRuleDisarm.md +35 -0
  95. package/docs/AutolaunchRulePage.md +36 -0
  96. package/docs/Embedding.md +38 -0
  97. package/docs/EmbeddingsRequest.md +42 -0
  98. package/docs/EmbeddingsRequestInput.md +33 -0
  99. package/docs/EmbeddingsResponse.md +40 -0
  100. package/docs/EmbeddingsUsage.md +37 -0
  101. package/docs/InferenceApi.md +83 -0
  102. package/docs/MarketApi.md +98 -0
  103. package/docs/MarketHistoryPoint.md +43 -0
  104. package/docs/MarketHistoryResponse.md +43 -0
  105. package/docs/WatchApi.md +389 -0
  106. package/docs/WatchRule.md +61 -0
  107. package/docs/WatchRuleCreate.md +46 -0
  108. package/docs/WatchRulePage.md +36 -0
  109. package/docs/WatchRuleUpdate.md +47 -0
  110. package/package.json +1 -1
  111. package/src/apis/AutolaunchApi.ts +360 -0
  112. package/src/apis/InferenceApi.ts +71 -0
  113. package/src/apis/MarketApi.ts +136 -0
  114. package/src/apis/WatchApi.ts +360 -0
  115. package/src/apis/index.ts +3 -0
  116. package/src/models/AutolaunchRule.ts +270 -0
  117. package/src/models/AutolaunchRuleCreate.ts +162 -0
  118. package/src/models/AutolaunchRuleDisarm.ts +68 -0
  119. package/src/models/AutolaunchRulePage.ts +83 -0
  120. package/src/models/Embedding.ts +96 -0
  121. package/src/models/EmbeddingsRequest.ts +117 -0
  122. package/src/models/EmbeddingsRequestInput.ts +59 -0
  123. package/src/models/EmbeddingsResponse.ts +120 -0
  124. package/src/models/EmbeddingsUsage.ts +75 -0
  125. package/src/models/MarketHistoryPoint.ts +103 -0
  126. package/src/models/MarketHistoryResponse.ts +113 -0
  127. package/src/models/Problem.ts +1 -0
  128. package/src/models/WatchRule.ts +219 -0
  129. package/src/models/WatchRuleCreate.ts +138 -0
  130. package/src/models/WatchRulePage.ts +83 -0
  131. package/src/models/WatchRuleUpdate.ts +135 -0
  132. package/src/models/index.ts +15 -0
@@ -0,0 +1,390 @@
1
+ # AutolaunchApi
2
+
3
+ All URIs are relative to *https://api.gpu.ai/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**createAutolaunchRule**](AutolaunchApi.md#createautolaunchrule) | **POST** /autolaunch-rules | Create an auto-launch rule (pre-approves a bounded, unattended spend) |
8
+ | [**deleteAutolaunchRule**](AutolaunchApi.md#deleteautolaunchrule) | **DELETE** /autolaunch-rules/{id} | Cancel an auto-launch rule |
9
+ | [**disarmAutolaunchRule**](AutolaunchApi.md#disarmautolaunchrule) | **PATCH** /autolaunch-rules/{id} | Disarm an auto-launch rule |
10
+ | [**getAutolaunchRule**](AutolaunchApi.md#getautolaunchrule) | **GET** /autolaunch-rules/{id} | Get an auto-launch rule |
11
+ | [**listAutolaunchRules**](AutolaunchApi.md#listautolaunchrules) | **GET** /autolaunch-rules | List auto-launch rules |
12
+
13
+
14
+
15
+ ## createAutolaunchRule
16
+
17
+ > AutolaunchRule createAutolaunchRule(autolaunchRuleCreate, idempotencyKey)
18
+
19
+ Create an auto-launch rule (pre-approves a bounded, unattended spend)
20
+
21
+ Creates a standing, pre-approved purchase order. When the condition holds and the live price is at or under `max_price_per_hour`, the platform launches the frozen `spec` with no further confirmation from anyone — the customer is approving NOW for a purchase that happens LATER, while nobody is watching. SCOPE. Requires the `autolaunch:write` scope, which is granted only EXPLICITLY. It is deliberately NOT covered by `full_access`, `standard` or `read_only`: `instances:write` is real-time authority, exercised with someone present, whereas this is a standing, frozen authorization that fires days later unattended. Treating them as the same authority class would have handed unattended spend authority to every key ever issued, including keys minted long before this resource existed. Most existing keys therefore receive 403 here; the correct response is to mint a key whose scopes map includes `{\"autolaunch\": \"write\"}`, never to retry, to substitute a key, or to fall back to a watch rule. CONSENT. `acknowledged_max_total_usd` is REQUIRED and must equal `max_price_per_hour × max_runtime_hours` to within one cent. It is the API-level expression of \"a valid confirmation must come AFTER the price\": a caller that never computed the number cannot have shown it to anyone, and a caller that displayed a different number disagrees with what is about to be stored. Show the figure to the person approving the rule, then send it back. TWO PRICES, TWO UNITS. `threshold` is the TRIGGER, in dollars per GPU-hour — the same unit the market chart and watch rules speak in. `max_price_per_hour` is the CEILING, in dollars per hour for the WHOLE instance. A 4-GPU rule triggering under $4.00/GPU-hr typically carries a $16.00/hr ceiling. Conflating them scales the customer\'s spend authorization by their GPU count. FROZEN SPEC. `spec` is the full create-instance body the rule replays, validated at creation with the same validation a live create runs, so a spec that could never launch is refused while a human is present rather than at 3 a.m. `spec.offering_id` is REJECTED — offering identity churns between catalog polls, so a pin produces a rule that can never fire, which is the worst outcome here because the customer believes a purchase is armed. `spec.auto_terminate_hours` is overwritten from `max_runtime_hours` and must not be used to widen the bound. Organizations are limited to 10 active rules; the 422 names the limit. The organization spending limit still applies as a backstop at fire time — a launch must fit both its own ceiling and the org cap.
22
+
23
+ ### Example
24
+
25
+ ```ts
26
+ import {
27
+ Configuration,
28
+ AutolaunchApi,
29
+ } from '@gpuai/sdk';
30
+ import type { CreateAutolaunchRuleRequest } from '@gpuai/sdk';
31
+
32
+ async function example() {
33
+ console.log("🚀 Testing @gpuai/sdk SDK...");
34
+ const config = new Configuration({
35
+ // Configure HTTP bearer authorization: bearerAuth
36
+ accessToken: "YOUR BEARER TOKEN",
37
+ });
38
+ const api = new AutolaunchApi(config);
39
+
40
+ const body = {
41
+ // AutolaunchRuleCreate
42
+ autolaunchRuleCreate: ...,
43
+ // string (optional)
44
+ idempotencyKey: idempotencyKey_example,
45
+ } satisfies CreateAutolaunchRuleRequest;
46
+
47
+ try {
48
+ const data = await api.createAutolaunchRule(body);
49
+ console.log(data);
50
+ } catch (error) {
51
+ console.error(error);
52
+ }
53
+ }
54
+
55
+ // Run the test
56
+ example().catch(console.error);
57
+ ```
58
+
59
+ ### Parameters
60
+
61
+
62
+ | Name | Type | Description | Notes |
63
+ |------------- | ------------- | ------------- | -------------|
64
+ | **autolaunchRuleCreate** | [AutolaunchRuleCreate](AutolaunchRuleCreate.md) | | |
65
+ | **idempotencyKey** | `string` | | [Optional] [Defaults to `undefined`] |
66
+
67
+ ### Return type
68
+
69
+ [**AutolaunchRule**](AutolaunchRule.md)
70
+
71
+ ### Authorization
72
+
73
+ [bearerAuth](../README.md#bearerAuth)
74
+
75
+ ### HTTP request headers
76
+
77
+ - **Content-Type**: `application/json`
78
+ - **Accept**: `application/json`, `application/problem+json`
79
+
80
+
81
+ ### HTTP response details
82
+ | Status code | Description | Response headers |
83
+ |-------------|-------------|------------------|
84
+ | **201** | Created | - |
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. | - |
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
+ | **0** | Error response (RFC 7807) | - |
89
+
90
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
91
+
92
+
93
+ ## deleteAutolaunchRule
94
+
95
+ > deleteAutolaunchRule(id)
96
+
97
+ Cancel an auto-launch rule
98
+
99
+ Deletes the rule and withdraws its pre-approved spend cap immediately. Requires only the &#x60;autolaunch:read&#x60; scope, for the same reason the disarm PATCH does. Deleting an already-deleted rule returns 404.
100
+
101
+ ### Example
102
+
103
+ ```ts
104
+ import {
105
+ Configuration,
106
+ AutolaunchApi,
107
+ } from '@gpuai/sdk';
108
+ import type { DeleteAutolaunchRuleRequest } from '@gpuai/sdk';
109
+
110
+ async function example() {
111
+ console.log("🚀 Testing @gpuai/sdk SDK...");
112
+ const config = new Configuration({
113
+ // Configure HTTP bearer authorization: bearerAuth
114
+ accessToken: "YOUR BEARER TOKEN",
115
+ });
116
+ const api = new AutolaunchApi(config);
117
+
118
+ const body = {
119
+ // string
120
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
121
+ } satisfies DeleteAutolaunchRuleRequest;
122
+
123
+ try {
124
+ const data = await api.deleteAutolaunchRule(body);
125
+ console.log(data);
126
+ } catch (error) {
127
+ console.error(error);
128
+ }
129
+ }
130
+
131
+ // Run the test
132
+ example().catch(console.error);
133
+ ```
134
+
135
+ ### Parameters
136
+
137
+
138
+ | Name | Type | Description | Notes |
139
+ |------------- | ------------- | ------------- | -------------|
140
+ | **id** | `string` | | [Defaults to `undefined`] |
141
+
142
+ ### Return type
143
+
144
+ `void` (Empty response body)
145
+
146
+ ### Authorization
147
+
148
+ [bearerAuth](../README.md#bearerAuth)
149
+
150
+ ### HTTP request headers
151
+
152
+ - **Content-Type**: Not defined
153
+ - **Accept**: `application/problem+json`
154
+
155
+
156
+ ### HTTP response details
157
+ | Status code | Description | Response headers |
158
+ |-------------|-------------|------------------|
159
+ | **204** | Deleted | - |
160
+ | **429** | Rate limit exceeded (RFC 7807). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
161
+ | **0** | Error response (RFC 7807) | - |
162
+
163
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
164
+
165
+
166
+ ## disarmAutolaunchRule
167
+
168
+ > AutolaunchRule disarmAutolaunchRule(id, autolaunchRuleDisarm)
169
+
170
+ Disarm an auto-launch rule
171
+
172
+ Disarms a rule. The body must be exactly &#x60;{\&quot;enabled\&quot;: false}&#x60; and nothing else. Requires only the &#x60;autolaunch:read&#x60; scope — cancelling a standing spend authorization is deliberately never harder than holding one, so a key narrowed since it created a rule can still stop that rule. This is the entire update surface, and the absence is the design. Changing a ceiling, a runtime bound, the targeting or the frozen spec is a DIFFERENT bounded purchase, so it requires deleting the rule and creating a new one through the consent gate. Re-arming is refused too: a fired rule consumed its one shot, so &#x60;{\&quot;enabled\&quot;: true}&#x60; would resurrect a purchase order that was already consented to and spent.
173
+
174
+ ### Example
175
+
176
+ ```ts
177
+ import {
178
+ Configuration,
179
+ AutolaunchApi,
180
+ } from '@gpuai/sdk';
181
+ import type { DisarmAutolaunchRuleRequest } from '@gpuai/sdk';
182
+
183
+ async function example() {
184
+ console.log("🚀 Testing @gpuai/sdk SDK...");
185
+ const config = new Configuration({
186
+ // Configure HTTP bearer authorization: bearerAuth
187
+ accessToken: "YOUR BEARER TOKEN",
188
+ });
189
+ const api = new AutolaunchApi(config);
190
+
191
+ const body = {
192
+ // string
193
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
194
+ // AutolaunchRuleDisarm
195
+ autolaunchRuleDisarm: ...,
196
+ } satisfies DisarmAutolaunchRuleRequest;
197
+
198
+ try {
199
+ const data = await api.disarmAutolaunchRule(body);
200
+ console.log(data);
201
+ } catch (error) {
202
+ console.error(error);
203
+ }
204
+ }
205
+
206
+ // Run the test
207
+ example().catch(console.error);
208
+ ```
209
+
210
+ ### Parameters
211
+
212
+
213
+ | Name | Type | Description | Notes |
214
+ |------------- | ------------- | ------------- | -------------|
215
+ | **id** | `string` | | [Defaults to `undefined`] |
216
+ | **autolaunchRuleDisarm** | [AutolaunchRuleDisarm](AutolaunchRuleDisarm.md) | | |
217
+
218
+ ### Return type
219
+
220
+ [**AutolaunchRule**](AutolaunchRule.md)
221
+
222
+ ### Authorization
223
+
224
+ [bearerAuth](../README.md#bearerAuth)
225
+
226
+ ### HTTP request headers
227
+
228
+ - **Content-Type**: `application/json`
229
+ - **Accept**: `application/json`, `application/problem+json`
230
+
231
+
232
+ ### HTTP response details
233
+ | Status code | Description | Response headers |
234
+ |-------------|-------------|------------------|
235
+ | **200** | OK | - |
236
+ | **422** | The body carried a key other than &#x60;enabled&#x60;, omitted &#x60;enabled&#x60;, or asked to re-arm the rule. | - |
237
+ | **429** | Rate limit exceeded (RFC 7807). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
238
+ | **0** | Error response (RFC 7807) | - |
239
+
240
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
241
+
242
+
243
+ ## getAutolaunchRule
244
+
245
+ > AutolaunchRule getAutolaunchRule(id)
246
+
247
+ Get an auto-launch rule
248
+
249
+ Fetches one auto-launch rule, including the frozen launch spec. Requires the &#x60;autolaunch:read&#x60; scope. A rule belonging to another organization returns 404 — the same answer as an id that does not exist.
250
+
251
+ ### Example
252
+
253
+ ```ts
254
+ import {
255
+ Configuration,
256
+ AutolaunchApi,
257
+ } from '@gpuai/sdk';
258
+ import type { GetAutolaunchRuleRequest } from '@gpuai/sdk';
259
+
260
+ async function example() {
261
+ console.log("🚀 Testing @gpuai/sdk SDK...");
262
+ const config = new Configuration({
263
+ // Configure HTTP bearer authorization: bearerAuth
264
+ accessToken: "YOUR BEARER TOKEN",
265
+ });
266
+ const api = new AutolaunchApi(config);
267
+
268
+ const body = {
269
+ // string
270
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
271
+ } satisfies GetAutolaunchRuleRequest;
272
+
273
+ try {
274
+ const data = await api.getAutolaunchRule(body);
275
+ console.log(data);
276
+ } catch (error) {
277
+ console.error(error);
278
+ }
279
+ }
280
+
281
+ // Run the test
282
+ example().catch(console.error);
283
+ ```
284
+
285
+ ### Parameters
286
+
287
+
288
+ | Name | Type | Description | Notes |
289
+ |------------- | ------------- | ------------- | -------------|
290
+ | **id** | `string` | | [Defaults to `undefined`] |
291
+
292
+ ### Return type
293
+
294
+ [**AutolaunchRule**](AutolaunchRule.md)
295
+
296
+ ### Authorization
297
+
298
+ [bearerAuth](../README.md#bearerAuth)
299
+
300
+ ### HTTP request headers
301
+
302
+ - **Content-Type**: Not defined
303
+ - **Accept**: `application/json`, `application/problem+json`
304
+
305
+
306
+ ### HTTP response details
307
+ | Status code | Description | Response headers |
308
+ |-------------|-------------|------------------|
309
+ | **200** | OK | - |
310
+ | **429** | Rate limit exceeded (RFC 7807). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
311
+ | **0** | Error response (RFC 7807) | - |
312
+
313
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
314
+
315
+
316
+ ## listAutolaunchRules
317
+
318
+ > AutolaunchRulePage listAutolaunchRules(cursor, limit)
319
+
320
+ List auto-launch rules
321
+
322
+ Lists this organization\&#39;s auto-launch rules. Requires the &#x60;autolaunch:read&#x60; scope, which &#x60;standard&#x60; and &#x60;full_access&#x60; keys carry. Rules belonging to other organizations are never returned, and rules created through the dashboard are included — the list is the organization\&#39;s, not the key\&#39;s.
323
+
324
+ ### Example
325
+
326
+ ```ts
327
+ import {
328
+ Configuration,
329
+ AutolaunchApi,
330
+ } from '@gpuai/sdk';
331
+ import type { ListAutolaunchRulesRequest } from '@gpuai/sdk';
332
+
333
+ async function example() {
334
+ console.log("🚀 Testing @gpuai/sdk SDK...");
335
+ const config = new Configuration({
336
+ // Configure HTTP bearer authorization: bearerAuth
337
+ accessToken: "YOUR BEARER TOKEN",
338
+ });
339
+ const api = new AutolaunchApi(config);
340
+
341
+ const body = {
342
+ // string (optional)
343
+ cursor: cursor_example,
344
+ // number (optional)
345
+ limit: 56,
346
+ } satisfies ListAutolaunchRulesRequest;
347
+
348
+ try {
349
+ const data = await api.listAutolaunchRules(body);
350
+ console.log(data);
351
+ } catch (error) {
352
+ console.error(error);
353
+ }
354
+ }
355
+
356
+ // Run the test
357
+ example().catch(console.error);
358
+ ```
359
+
360
+ ### Parameters
361
+
362
+
363
+ | Name | Type | Description | Notes |
364
+ |------------- | ------------- | ------------- | -------------|
365
+ | **cursor** | `string` | | [Optional] [Defaults to `undefined`] |
366
+ | **limit** | `number` | | [Optional] [Defaults to `50`] |
367
+
368
+ ### Return type
369
+
370
+ [**AutolaunchRulePage**](AutolaunchRulePage.md)
371
+
372
+ ### Authorization
373
+
374
+ [bearerAuth](../README.md#bearerAuth)
375
+
376
+ ### HTTP request headers
377
+
378
+ - **Content-Type**: Not defined
379
+ - **Accept**: `application/json`, `application/problem+json`
380
+
381
+
382
+ ### HTTP response details
383
+ | Status code | Description | Response headers |
384
+ |-------------|-------------|------------------|
385
+ | **200** | OK | - |
386
+ | **429** | Rate limit exceeded (RFC 7807). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
387
+ | **0** | Error response (RFC 7807) | - |
388
+
389
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
390
+
@@ -0,0 +1,69 @@
1
+
2
+ # AutolaunchRule
3
+
4
+ A standing, pre-approved purchase order. It carries no upstream supplier identity, no org id, and no identifier of the API key that consented — the consenting principal is recorded in storage for the fire-time re-check, and a credential identifier has no business in a rule listing.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `id` | string
11
+ `gpuModel` | string
12
+ `region` | string
13
+ `capacityClass` | string
14
+ `conditionKind` | string
15
+ `threshold` | number
16
+ `maxPricePerHour` | number
17
+ `maxRuntimeHours` | number
18
+ `maxTotalUsd` | number
19
+ `spec` | { [key: string]: any; }
20
+ `state` | string
21
+ `attemptsThisEdge` | number
22
+ `lastFailureReason` | string
23
+ `launchedInstanceId` | string
24
+ `createdBySurface` | string
25
+ `enabled` | boolean
26
+ `createdAt` | Date
27
+ `updatedAt` | Date
28
+
29
+ ## Example
30
+
31
+ ```typescript
32
+ import type { AutolaunchRule } from '@gpuai/sdk'
33
+
34
+ // TODO: Update the object below with actual values
35
+ const example = {
36
+ "id": null,
37
+ "gpuModel": null,
38
+ "region": null,
39
+ "capacityClass": null,
40
+ "conditionKind": null,
41
+ "threshold": null,
42
+ "maxPricePerHour": null,
43
+ "maxRuntimeHours": null,
44
+ "maxTotalUsd": null,
45
+ "spec": null,
46
+ "state": null,
47
+ "attemptsThisEdge": null,
48
+ "lastFailureReason": null,
49
+ "launchedInstanceId": null,
50
+ "createdBySurface": null,
51
+ "enabled": null,
52
+ "createdAt": null,
53
+ "updatedAt": null,
54
+ } satisfies AutolaunchRule
55
+
56
+ console.log(example)
57
+
58
+ // Convert the instance to a JSON string
59
+ const exampleJSON: string = JSON.stringify(example)
60
+ console.log(exampleJSON)
61
+
62
+ // Parse the JSON string back to an object
63
+ const exampleParsed = JSON.parse(exampleJSON) as AutolaunchRule
64
+ console.log(exampleParsed)
65
+ ```
66
+
67
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
68
+
69
+
@@ -0,0 +1,50 @@
1
+
2
+ # AutolaunchRuleCreate
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `gpuModel` | string
10
+ `region` | string
11
+ `capacityClass` | string
12
+ `conditionKind` | string
13
+ `threshold` | number
14
+ `maxPricePerHour` | number
15
+ `maxRuntimeHours` | number
16
+ `spec` | { [key: string]: any; }
17
+ `acknowledgedMaxTotalUsd` | number
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { AutolaunchRuleCreate } from '@gpuai/sdk'
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "gpuModel": null,
27
+ "region": null,
28
+ "capacityClass": null,
29
+ "conditionKind": null,
30
+ "threshold": null,
31
+ "maxPricePerHour": null,
32
+ "maxRuntimeHours": null,
33
+ "spec": null,
34
+ "acknowledgedMaxTotalUsd": null,
35
+ } satisfies AutolaunchRuleCreate
36
+
37
+ console.log(example)
38
+
39
+ // Convert the instance to a JSON string
40
+ const exampleJSON: string = JSON.stringify(example)
41
+ console.log(exampleJSON)
42
+
43
+ // Parse the JSON string back to an object
44
+ const exampleParsed = JSON.parse(exampleJSON) as AutolaunchRuleCreate
45
+ console.log(exampleParsed)
46
+ ```
47
+
48
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
49
+
50
+
@@ -0,0 +1,35 @@
1
+
2
+ # AutolaunchRuleDisarm
3
+
4
+ The entire PATCH surface. `enabled` must be present and must be false. Any other key is refused rather than accepted-and-ignored, because a PATCH carrying a new ceiling that returned 200 would leave the caller believing the cap had moved.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `enabled` | boolean
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { AutolaunchRuleDisarm } from '@gpuai/sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "enabled": null,
20
+ } satisfies AutolaunchRuleDisarm
21
+
22
+ console.log(example)
23
+
24
+ // Convert the instance to a JSON string
25
+ const exampleJSON: string = JSON.stringify(example)
26
+ console.log(exampleJSON)
27
+
28
+ // Parse the JSON string back to an object
29
+ const exampleParsed = JSON.parse(exampleJSON) as AutolaunchRuleDisarm
30
+ console.log(exampleParsed)
31
+ ```
32
+
33
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
34
+
35
+
@@ -0,0 +1,36 @@
1
+
2
+ # AutolaunchRulePage
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array&lt;AutolaunchRule&gt;](AutolaunchRule.md)
10
+ `nextCursor` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { AutolaunchRulePage } from '@gpuai/sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "data": null,
20
+ "nextCursor": null,
21
+ } satisfies AutolaunchRulePage
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as AutolaunchRulePage
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,38 @@
1
+
2
+ # Embedding
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `object` | string
10
+ `embedding` | Array&lt;number&gt;
11
+ `index` | number
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { Embedding } from '@gpuai/sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "object": null,
21
+ "embedding": null,
22
+ "index": null,
23
+ } satisfies Embedding
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as Embedding
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -0,0 +1,42 @@
1
+
2
+ # EmbeddingsRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `model` | string
10
+ `input` | [EmbeddingsRequestInput](EmbeddingsRequestInput.md)
11
+ `encodingFormat` | string
12
+ `dimensions` | number
13
+ `user` | string
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { EmbeddingsRequest } from '@gpuai/sdk'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "model": null,
23
+ "input": null,
24
+ "encodingFormat": null,
25
+ "dimensions": null,
26
+ "user": null,
27
+ } satisfies EmbeddingsRequest
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as EmbeddingsRequest
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
@@ -0,0 +1,33 @@
1
+
2
+ # EmbeddingsRequestInput
3
+
4
+ Text to embed: either a single string or an array of up to 2048 strings. Token-id arrays are not supported. The per-request ceiling is bounded so the response stays under 64 MiB — about 680 inputs at 4096 dimensions, fewer at a larger `dimensions` value; an over-limit batch is rejected with 400 invalid_request_error whose message states the limit, before any processing.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { EmbeddingsRequestInput } from '@gpuai/sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ } satisfies EmbeddingsRequestInput
19
+
20
+ console.log(example)
21
+
22
+ // Convert the instance to a JSON string
23
+ const exampleJSON: string = JSON.stringify(example)
24
+ console.log(exampleJSON)
25
+
26
+ // Parse the JSON string back to an object
27
+ const exampleParsed = JSON.parse(exampleJSON) as EmbeddingsRequestInput
28
+ console.log(exampleParsed)
29
+ ```
30
+
31
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
32
+
33
+