Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.3"
".": "0.1.0-alpha.4"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 8
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/the-san-francisco-compute-company%2Fsfc-nodes-b800806859333bacc88fa4236eae35c8cdbec62970b7fb9ad440a330f24a1622.yml
openapi_spec_hash: fa672b6ca8953a8059961a7559a607a9
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/the-san-francisco-compute-company%2Fsfc-nodes-73c29dd8765024819248125163d7c3e2d7dcdae819088fd7b1c3f0db5b3b89c0.yml
openapi_spec_hash: 9a1923a47f368e9262d54060fe7f2a80
config_hash: eef7f1ef61a018bf17b996862a8c0e01
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.1.0-alpha.4 (2025-07-22)

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

### Features

* **api:** api update ([de2fa56](https://github.com/sfcompute/nodes-typescript/commit/de2fa56c558d50bf6daee91440ac16ae1c52de2f))

## 0.1.0-alpha.3 (2025-07-22)

Full Changelog: [v0.1.0-alpha.2...v0.1.0-alpha.3](https://github.com/sfcompute/nodes-typescript/compare/v0.1.0-alpha.2...v0.1.0-alpha.3)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sfcompute/nodes-sdk-alpha",
"version": "0.1.0-alpha.3",
"version": "0.1.0-alpha.4",
"description": "The official TypeScript library for the SFC Nodes API",
"author": "SFC Nodes <hello@sfcompute.com>",
"types": "dist/index.d.ts",
Expand Down
12 changes: 4 additions & 8 deletions src/resources/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,10 @@ export interface Node {

name: string;

node: string;

node_type: NodeType;

owner: string;

start_at: number;

status: 'Pending' | 'Running' | 'Terminated' | 'Failed' | 'Unknown';

created_at?: number | null;
Expand All @@ -92,17 +88,17 @@ export interface Node {

procurement_status?: 'Uninitialized' | 'Active' | 'Ended' | 'AwaitingCapacity' | null;

start_at?: number | null;

updated_at?: number | null;

/**
* Possible zones to choose from when creating a node.
*
* TODO (ENG-1976): Support dynamic zones through an endpoint.
*/
zone?: 'HayesValley' | null;
zone?: 'hayesvalley' | null;
}

export type NodeType = 'OnDemand' | 'Reserved';
export type NodeType = 'on_demand' | 'reserved';

export interface UpdateNode {
node: Node;
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.1.0-alpha.3'; // x-release-please-version
export const VERSION = '0.1.0-alpha.4'; // x-release-please-version
2 changes: 1 addition & 1 deletion tests/api-resources/nodes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('resource nodes', () => {
max_price_per_hour: 1000,
end_at: 1640995200,
names: ['string'],
node_type: 'OnDemand',
node_type: 'on_demand',
start_at: 1640995200,
zone: 'zone',
});
Expand Down