Skip to content

Commit f560864

Browse files
Merge pull request #15 from sfcompute/release-please--branches--main--changes--next--components--nodes-sdk-alpha
2 parents 9754ce4 + acfbb78 commit f560864

File tree

11 files changed

+320
-87
lines changed

11 files changed

+320
-87
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.4"
2+
".": "0.1.0-alpha.5"
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-73c29dd8765024819248125163d7c3e2d7dcdae819088fd7b1c3f0db5b3b89c0.yml
3-
openapi_spec_hash: 9a1923a47f368e9262d54060fe7f2a80
4-
config_hash: eef7f1ef61a018bf17b996862a8c0e01
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/the-san-francisco-compute-company%2Fsfc-nodes-d41b5a590956acc71242ed938a212ee64655756fbd4c2af91db937f97f4fd4f5.yml
3+
openapi_spec_hash: 19777fc4ebc8a243cf8ce3a9ad0e1da4
4+
config_hash: 36084145cd36a6c9478230dbe4e451b3

CHANGELOG.md

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

3+
## 0.1.0-alpha.5 (2025-07-25)
4+
5+
Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/sfcompute/nodes-typescript/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)
6+
7+
### Features
8+
9+
* **api:** api update ([7837d7d](https://github.com/sfcompute/nodes-typescript/commit/7837d7dab3ab7a050f1926e699d5577ee109b99a))
10+
* **api:** api update ([40a0db9](https://github.com/sfcompute/nodes-typescript/commit/40a0db955b75d8eea3b5b6cf2b2d2132c64bd0fe))
11+
* **api:** manual updates ([a2c6478](https://github.com/sfcompute/nodes-typescript/commit/a2c6478375b0dc0842cb1f74b20cbdb07f662f53))
12+
* **api:** manually add new Nodes API models ([156cd84](https://github.com/sfcompute/nodes-typescript/commit/156cd84e6aecb0e30e2fcd6a5c7ac2919499d0ca))
13+
* **api:** re-add removed operations ([4434801](https://github.com/sfcompute/nodes-typescript/commit/4434801c0b8c72d53c14cd8942c589ddc2c103b6))
14+
315
## 0.1.0-alpha.4 (2025-07-22)
416

517
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)

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ const client = new SFCNodes({
2626
apiKey: process.env['SFC_API_KEY'], // This is the default and can be omitted
2727
});
2828

29-
const nodes = await client.nodes.list();
29+
const listResponseNode = await client.nodes.list();
30+
31+
console.log(listResponseNode.data);
3032
```
3133

3234
### Request & Response types
@@ -41,7 +43,7 @@ const client = new SFCNodes({
4143
apiKey: process.env['SFC_API_KEY'], // This is the default and can be omitted
4244
});
4345

44-
const nodes: SFCNodes.NodeListResponse = await client.nodes.list();
46+
const listResponseNode: SFCNodes.ListResponseNode = await client.nodes.list();
4547
```
4648

4749
Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.
@@ -54,7 +56,7 @@ a subclass of `APIError` will be thrown:
5456

5557
<!-- prettier-ignore -->
5658
```ts
57-
const nodes = await client.nodes.list().catch(async (err) => {
59+
const listResponseNode = await client.nodes.list().catch(async (err) => {
5860
if (err instanceof SFCNodes.APIError) {
5961
console.log(err.status); // 400
6062
console.log(err.name); // BadRequestError
@@ -138,9 +140,9 @@ const response = await client.nodes.list().asResponse();
138140
console.log(response.headers.get('X-My-Header'));
139141
console.log(response.statusText); // access the underlying Response object
140142

141-
const { data: nodes, response: raw } = await client.nodes.list().withResponse();
143+
const { data: listResponseNode, response: raw } = await client.nodes.list().withResponse();
142144
console.log(raw.headers.get('X-My-Header'));
143-
console.log(nodes);
145+
console.log(listResponseNode.data);
144146
```
145147

146148
### Logging

api.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,23 @@ Methods:
2727

2828
Types:
2929

30+
- <code><a href="./src/resources/nodes.ts">AcceleratorType</a></code>
31+
- <code><a href="./src/resources/nodes.ts">CreateNodesRequest</a></code>
32+
- <code><a href="./src/resources/nodes.ts">ErrorContent</a></code>
33+
- <code><a href="./src/resources/nodes.ts">ErrorDetail</a></code>
34+
- <code><a href="./src/resources/nodes.ts">ErrorObject</a></code>
35+
- <code><a href="./src/resources/nodes.ts">ErrorType</a></code>
36+
- <code><a href="./src/resources/nodes.ts">ExtendNodeRequest</a></code>
37+
- <code><a href="./src/resources/nodes.ts">ListResponseNode</a></code>
3038
- <code><a href="./src/resources/nodes.ts">Node</a></code>
3139
- <code><a href="./src/resources/nodes.ts">NodeType</a></code>
32-
- <code><a href="./src/resources/nodes.ts">UpdateNode</a></code>
33-
- <code><a href="./src/resources/nodes.ts">NodeCreateResponse</a></code>
34-
- <code><a href="./src/resources/nodes.ts">NodeListResponse</a></code>
40+
- <code><a href="./src/resources/nodes.ts">ProcurementStatus</a></code>
41+
- <code><a href="./src/resources/nodes.ts">Status</a></code>
42+
- <code><a href="./src/resources/nodes.ts">Zone</a></code>
3543

3644
Methods:
3745

38-
- <code title="post /v1/nodes">client.nodes.<a href="./src/resources/nodes.ts">create</a>({ ...params }) -> NodeCreateResponse</code>
39-
- <code title="get /v1/nodes">client.nodes.<a href="./src/resources/nodes.ts">list</a>() -> NodeListResponse</code>
40-
- <code title="patch /v1/nodes/{id}/extend">client.nodes.<a href="./src/resources/nodes.ts">extend</a>(id, { ...params }) -> UpdateNode</code>
41-
- <code title="patch /v1/nodes/{id}/release">client.nodes.<a href="./src/resources/nodes.ts">release</a>(id, { ...params }) -> UpdateNode</code>
46+
- <code title="post /v1/nodes">client.nodes.<a href="./src/resources/nodes.ts">create</a>({ ...params }) -> ListResponseNode</code>
47+
- <code title="get /v1/nodes">client.nodes.<a href="./src/resources/nodes.ts">list</a>() -> ListResponseNode</code>
48+
- <code title="patch /v1/nodes/{id}/extend">client.nodes.<a href="./src/resources/nodes.ts">extend</a>(id, { ...params }) -> Node</code>
49+
- <code title="patch /v1/nodes/{id}/release">client.nodes.<a href="./src/resources/nodes.ts">release</a>(id) -> Node</code>

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.4",
3+
"version": "0.1.0-alpha.5",
44
"description": "The official TypeScript library for the SFC Nodes API",
55
"author": "SFC Nodes <hello@sfcompute.com>",
66
"types": "dist/index.d.ts",

src/client.ts

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,22 @@ import * as Uploads from './core/uploads';
1717
import * as API from './resources/index';
1818
import { APIPromise } from './core/api-promise';
1919
import {
20+
AcceleratorType,
21+
CreateNodesRequest,
22+
ErrorContent,
23+
ErrorDetail,
24+
ErrorObject,
25+
ErrorType,
26+
ExtendNodeRequest,
27+
ListResponseNode,
2028
Node,
2129
NodeCreateParams,
22-
NodeCreateResponse,
2330
NodeExtendParams,
24-
NodeListResponse,
25-
NodeReleaseParams,
2631
NodeType,
2732
Nodes,
28-
UpdateNode,
33+
ProcurementStatus,
34+
Status,
35+
Zone,
2936
} from './resources/nodes';
3037
import { VmLogsParams, VmLogsResponse, VmSSHParams, VmSSHResponse, Vms } from './resources/vms/vms';
3138
import { type Fetch } from './internal/builtin-types';
@@ -749,13 +756,20 @@ export declare namespace SFCNodes {
749756

750757
export {
751758
Nodes as Nodes,
759+
type AcceleratorType as AcceleratorType,
760+
type CreateNodesRequest as CreateNodesRequest,
761+
type ErrorContent as ErrorContent,
762+
type ErrorDetail as ErrorDetail,
763+
type ErrorObject as ErrorObject,
764+
type ErrorType as ErrorType,
765+
type ExtendNodeRequest as ExtendNodeRequest,
766+
type ListResponseNode as ListResponseNode,
752767
type Node as Node,
753768
type NodeType as NodeType,
754-
type UpdateNode as UpdateNode,
755-
type NodeCreateResponse as NodeCreateResponse,
756-
type NodeListResponse as NodeListResponse,
769+
type ProcurementStatus as ProcurementStatus,
770+
type Status as Status,
771+
type Zone as Zone,
757772
type NodeCreateParams as NodeCreateParams,
758773
type NodeExtendParams as NodeExtendParams,
759-
type NodeReleaseParams as NodeReleaseParams,
760774
};
761775
}

src/resources/index.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,20 @@
22

33
export {
44
Nodes,
5+
type AcceleratorType,
6+
type CreateNodesRequest,
7+
type ErrorContent,
8+
type ErrorDetail,
9+
type ErrorObject,
10+
type ErrorType,
11+
type ExtendNodeRequest,
12+
type ListResponseNode,
513
type Node,
614
type NodeType,
7-
type UpdateNode,
8-
type NodeCreateResponse,
9-
type NodeListResponse,
15+
type ProcurementStatus,
16+
type Status,
17+
type Zone,
1018
type NodeCreateParams,
1119
type NodeExtendParams,
12-
type NodeReleaseParams,
1320
} from './nodes';
1421
export { Vms, type VmLogsResponse, type VmSSHResponse, type VmLogsParams, type VmSSHParams } from './vms/vms';

0 commit comments

Comments
 (0)