Skip to content

Commit f41d9e4

Browse files
Merge pull request #17 from sfcompute/release-please--branches--main--changes--next--components--nodes-sdk-alpha
2 parents 6e2debc + 441a162 commit f41d9e4

File tree

10 files changed

+105
-19
lines changed

10 files changed

+105
-19
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.6"
2+
".": "0.1.0-alpha.7"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 8
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/the-san-francisco-compute-company%2Fsfc-nodes-2e5c99b51651e369e3853f1702e4c2b6445b4e040d7fbf56af76e4bdf2bc2cc0.yml
3-
openapi_spec_hash: 899fdbcb757727fd7d8d3e2883e885d0
4-
config_hash: 36084145cd36a6c9478230dbe4e451b3
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/the-san-francisco-compute-company%2Fsfc-nodes-75d55a2bdbad9dd66f295dbd8559f2bf6264e40b8c4afe69f2b74c206d96aabd.yml
3+
openapi_spec_hash: 4754d7b3a8a098a220650c410b3b79cd
4+
config_hash: 0bc0755073b9c5efee39395b9d08b3a3

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.1.0-alpha.7 (2025-08-05)
4+
5+
Full Changelog: [v0.1.0-alpha.6...v0.1.0-alpha.7](https://github.com/sfcompute/nodes-typescript/compare/v0.1.0-alpha.6...v0.1.0-alpha.7)
6+
7+
### Features
8+
9+
* **api:** api update ([5e0c69a](https://github.com/sfcompute/nodes-typescript/commit/5e0c69aea3ccf47572fb33002bfdc6706fd2b85d))
10+
311
## 0.1.0-alpha.6 (2025-08-05)
412

513
Full Changelog: [v0.1.0-alpha.5...v0.1.0-alpha.6](https://github.com/sfcompute/nodes-typescript/compare/v0.1.0-alpha.5...v0.1.0-alpha.6)

api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ Types:
3737
- <code><a href="./src/resources/nodes.ts">ListResponseNode</a></code>
3838
- <code><a href="./src/resources/nodes.ts">Node</a></code>
3939
- <code><a href="./src/resources/nodes.ts">NodeType</a></code>
40-
- <code><a href="./src/resources/nodes.ts">ProcurementStatus</a></code>
4140
- <code><a href="./src/resources/nodes.ts">Status</a></code>
4241
- <code><a href="./src/resources/nodes.ts">Zone</a></code>
4342

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sfcompute/nodes-sdk-alpha",
3-
"version": "0.1.0-alpha.6",
3+
"version": "0.1.0-alpha.7",
44
"description": "The official TypeScript library for the SFC Nodes API",
55
"author": "SFC Nodes <[email protected]>",
66
"types": "dist/index.d.ts",

src/client.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import {
3030
NodeExtendParams,
3131
NodeType,
3232
Nodes,
33-
ProcurementStatus,
3433
Status,
3534
Zone,
3635
} from './resources/nodes';
@@ -766,7 +765,6 @@ export declare namespace SFCNodes {
766765
type ListResponseNode as ListResponseNode,
767766
type Node as Node,
768767
type NodeType as NodeType,
769-
type ProcurementStatus as ProcurementStatus,
770768
type Status as Status,
771769
type Zone as Zone,
772770
type NodeCreateParams as NodeCreateParams,

src/resources/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export {
1212
type ListResponseNode,
1313
type Node,
1414
type NodeType,
15-
type ProcurementStatus,
1615
type Status,
1716
type Zone,
1817
type NodeCreateParams,

src/resources/nodes.ts

Lines changed: 90 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ export interface CreateNodesRequest {
9191
*/
9292
names?: Array<string>;
9393

94+
/**
95+
* Database enum matching the node_type enum in the database
96+
*/
9497
node_type?: NodeType | null;
9598

9699
/**
@@ -168,6 +171,9 @@ export namespace ListResponseNode {
168171

169172
name: string;
170173

174+
/**
175+
* Database enum matching the node_type enum in the database
176+
*/
171177
node_type: NodesAPI.NodeType;
172178

173179
object: string;
@@ -184,6 +190,11 @@ export namespace ListResponseNode {
184190
*/
185191
created_at?: number | null;
186192

193+
/**
194+
* Deletion time as Unix timestamp in seconds
195+
*/
196+
deleted_at?: number | null;
197+
187198
/**
188199
* End time as Unix timestamp in seconds
189200
*/
@@ -196,8 +207,6 @@ export namespace ListResponseNode {
196207

197208
procurement_id?: string | null;
198209

199-
procurement_status?: NodesAPI.ProcurementStatus | null;
200-
201210
/**
202211
* Start time as Unix timestamp in seconds
203212
*/
@@ -208,11 +217,39 @@ export namespace ListResponseNode {
208217
*/
209218
updated_at?: number | null;
210219

220+
vms?: Data.Vms | null;
221+
211222
/**
212223
* Choose from these zones when creating a node
213224
*/
214225
zone?: NodesAPI.Zone | null;
215226
}
227+
228+
export namespace Data {
229+
export interface Vms {
230+
data: Array<Vms.Data>;
231+
232+
object: string;
233+
}
234+
235+
export namespace Vms {
236+
export interface Data {
237+
id: string;
238+
239+
created_at: number;
240+
241+
end_at: number | null;
242+
243+
object: string;
244+
245+
start_at: number | null;
246+
247+
status: 'Pending' | 'Running' | 'Destroyed' | 'NodeFailure' | 'Unspecified';
248+
249+
updated_at: number;
250+
}
251+
}
252+
}
216253
}
217254

218255
export interface Node {
@@ -222,6 +259,9 @@ export interface Node {
222259

223260
name: string;
224261

262+
/**
263+
* Database enum matching the node_type enum in the database
264+
*/
225265
node_type: NodeType;
226266

227267
object: string;
@@ -238,6 +278,11 @@ export interface Node {
238278
*/
239279
created_at?: number | null;
240280

281+
/**
282+
* Deletion time as Unix timestamp in seconds
283+
*/
284+
deleted_at?: number | null;
285+
241286
/**
242287
* End time as Unix timestamp in seconds
243288
*/
@@ -250,8 +295,6 @@ export interface Node {
250295

251296
procurement_id?: string | null;
252297

253-
procurement_status?: ProcurementStatus | null;
254-
255298
/**
256299
* Start time as Unix timestamp in seconds
257300
*/
@@ -262,20 +305,57 @@ export interface Node {
262305
*/
263306
updated_at?: number | null;
264307

308+
vms?: Node.Vms | null;
309+
265310
/**
266311
* Choose from these zones when creating a node
267312
*/
268313
zone?: Zone | null;
269314
}
270315

271-
export type NodeType = 'on_demand' | 'reserved';
316+
export namespace Node {
317+
export interface Vms {
318+
data: Array<Vms.Data>;
319+
320+
object: string;
321+
}
322+
323+
export namespace Vms {
324+
export interface Data {
325+
id: string;
326+
327+
created_at: number;
328+
329+
end_at: number | null;
272330

273-
export type ProcurementStatus = 'uninitialized' | 'active' | 'ended' | 'awaiting_capacity';
331+
object: string;
332+
333+
start_at: number | null;
334+
335+
status: 'Pending' | 'Running' | 'Destroyed' | 'NodeFailure' | 'Unspecified';
336+
337+
updated_at: number;
338+
}
339+
}
340+
}
341+
342+
/**
343+
* Database enum matching the node_type enum in the database
344+
*/
345+
export type NodeType = 'spot' | 'reserved';
274346

275347
/**
276348
* Node Status
277349
*/
278-
export type Status = 'pending' | 'running' | 'terminated' | 'failed' | 'unknown';
350+
export type Status =
351+
| 'pending'
352+
| 'awaitingcapacity'
353+
| 'running'
354+
| 'released'
355+
| 'terminated'
356+
| 'deleted'
357+
| 'failed'
358+
| 'unknown';
279359

280360
/**
281361
* Choose from these zones when creating a node
@@ -307,6 +387,9 @@ export interface NodeCreateParams {
307387
*/
308388
names?: Array<string>;
309389

390+
/**
391+
* Database enum matching the node_type enum in the database
392+
*/
310393
node_type?: NodeType | null;
311394

312395
/**
@@ -340,7 +423,6 @@ export declare namespace Nodes {
340423
type ListResponseNode as ListResponseNode,
341424
type Node as Node,
342425
type NodeType as NodeType,
343-
type ProcurementStatus as ProcurementStatus,
344426
type Status as Status,
345427
type Zone as Zone,
346428
type NodeCreateParams as NodeCreateParams,

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '0.1.0-alpha.6'; // x-release-please-version
1+
export const VERSION = '0.1.0-alpha.7'; // x-release-please-version

tests/api-resources/nodes.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('resource nodes', () => {
3232
zone: 'hayesvalley',
3333
end_at: 0,
3434
names: ['cuda-crunch'],
35-
node_type: 'on_demand',
35+
node_type: 'spot',
3636
start_at: 1640995200,
3737
});
3838
});

0 commit comments

Comments
 (0)