Skip to content

Commit a42948e

Browse files
release: 0.1.0-alpha.17 (#28)
Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent a7e35e8 commit a42948e

File tree

13 files changed

+140
-25
lines changed

13 files changed

+140
-25
lines changed

.eslintcache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"/home/tempuser-clrsmj/run/codegen-output/the-san-francisco-compute-company/sfc-nodes-typescript/src/resources/nodes.ts":"1"},{"size":10148,"mtime":1759206200902}]

.github/workflows/release-doctor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ jobs:
1919
bash ./bin/check-release-environment
2020
env:
2121
NPM_TOKEN: ${{ secrets.SFC_NODES_NPM_TOKEN || secrets.NPM_TOKEN }}
22+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ dist
77
dist-deno
88
/*.tgz
99
.idea/
10+
.eslintcache
1011

.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.16"
2+
".": "0.1.0-alpha.17"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 11
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/the-san-francisco-compute-company%2Fsfc-nodes-b380dba200ffcd01fb245020213f92568032554504940ecb93a361aab9bdcab9.yml
3-
openapi_spec_hash: fd3ac511c392b3a52d718d45e561373c
4-
config_hash: f29ebc32a45fc14e903cc9881565fcd2
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/the-san-francisco-compute-company%2Fsfc-nodes-3ed2b55187b3b17772db0e76c4007d8828b37fdf49a87fb664cdf994db49cb42.yml
3+
openapi_spec_hash: 749a02e6ffc075b8d4e70a7a7800286a
4+
config_hash: fae4224e6c6207c8735f6a024e50ddf5

CHANGELOG.md

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

3+
## 0.1.0-alpha.17 (2025-09-30)
4+
5+
Full Changelog: [v0.1.0-alpha.16...v0.1.0-alpha.17](https://github.com/sfcompute/nodes-typescript/compare/v0.1.0-alpha.16...v0.1.0-alpha.17)
6+
7+
### Features
8+
9+
* **api:** api update ([fd3f8ec](https://github.com/sfcompute/nodes-typescript/commit/fd3f8ec01fc54e25b2a03cc8cce359101d46ca18))
10+
* **api:** api update ([44078aa](https://github.com/sfcompute/nodes-typescript/commit/44078aa5e999ea92e0b8325e9409d8c1c703fdae))
11+
* **api:** api update ([0a42c37](https://github.com/sfcompute/nodes-typescript/commit/0a42c37687b1be94725ead903b5980efebd421b2))
12+
13+
14+
### Performance Improvements
15+
16+
* faster formatting ([51a98eb](https://github.com/sfcompute/nodes-typescript/commit/51a98eba84e5435dfba06a60eccd1fcb8456a515))
17+
18+
19+
### Chores
20+
21+
* do not install brew dependencies in ./scripts/bootstrap by default ([d6c29b1](https://github.com/sfcompute/nodes-typescript/commit/d6c29b133f030bef7bc50063270b788d12af5c66))
22+
* **internal:** codegen related update ([284b201](https://github.com/sfcompute/nodes-typescript/commit/284b2011f0c3a5cccc5d32332d100ad0b7306c8d))
23+
* **internal:** codegen related update ([8660c06](https://github.com/sfcompute/nodes-typescript/commit/8660c069659bad0a924f10d2add0f2c8d3adc880))
24+
* **internal:** fix incremental formatting in some cases ([09d1193](https://github.com/sfcompute/nodes-typescript/commit/09d1193230da0d52f06062f47dbabdec6fee8438))
25+
* **internal:** remove deprecated `compilerOptions.baseUrl` from tsconfig.json ([1f456b3](https://github.com/sfcompute/nodes-typescript/commit/1f456b35d7ad93d26f3bea55d6881983ccf120e5))
26+
327
## 0.1.0-alpha.16 (2025-09-16)
428

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

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.16",
3+
"version": "0.1.0-alpha.17",
44
"description": "The official TypeScript library for the SFC Nodes API",
55
"author": "SFC Nodes <[email protected]>",
66
"types": "dist/index.d.ts",

scripts/bootstrap

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,18 @@ set -e
44

55
cd "$(dirname "$0")/.."
66

7-
if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ]; then
7+
if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ] && [ -t 0 ]; then
88
brew bundle check >/dev/null 2>&1 || {
9-
echo "==> Installing Homebrew dependencies…"
10-
brew bundle
9+
echo -n "==> Install Homebrew dependencies? (y/N): "
10+
read -r response
11+
case "$response" in
12+
[yY][eE][sS]|[yY])
13+
brew bundle
14+
;;
15+
*)
16+
;;
17+
esac
18+
echo
1119
}
1220
fi
1321

scripts/fast-format

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
echo "Script started with $# arguments"
6+
echo "Arguments: $*"
7+
echo "Script location: $(dirname "$0")"
8+
9+
cd "$(dirname "$0")/.."
10+
echo "Changed to directory: $(pwd)"
11+
12+
if [ $# -eq 0 ]; then
13+
echo "Usage: $0 <file-with-paths> [additional-formatter-args...]"
14+
echo "The file should contain one file path per line"
15+
exit 1
16+
fi
17+
18+
FILE_LIST="$1"
19+
20+
echo "Looking for file: $FILE_LIST"
21+
22+
if [ ! -f "$FILE_LIST" ]; then
23+
echo "Error: File '$FILE_LIST' not found"
24+
exit 1
25+
fi
26+
27+
echo "==> Running eslint --fix"
28+
ESLINT_FILES="$(grep '\.ts$' "$FILE_LIST" || true)"
29+
if ! [ -z "$ESLINT_FILES" ]; then
30+
echo "$ESLINT_FILES" | xargs ./node_modules/.bin/eslint --cache --fix
31+
fi
32+
33+
echo "==> Running prettier --write"
34+
# format things eslint didn't
35+
PRETTIER_FILES="$(grep '\.\(js\|json\)$' "$FILE_LIST" || true)"
36+
if ! [ -z "$PRETTIER_FILES" ]; then
37+
echo "$PRETTIER_FILES" | xargs ./node_modules/.bin/prettier \
38+
--write --cache --cache-strategy metadata --no-error-on-unmatched-pattern \
39+
'!**/dist' '!**/*.ts' '!**/*.mts' '!**/*.cts' '!**/*.js' '!**/*.mjs' '!**/*.cjs'
40+
fi

src/resources/nodes.ts

Lines changed: 52 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ export interface CreateNodesRequest {
100100
cloud_init_user_data?: Array<number>;
101101

102102
/**
103-
* End time as Unix timestamp in seconds. If provided, end time must be aligned to
104-
* the hour. If not provided, the node will be created as an autoreserved node.
103+
* End time as Unix timestamp in seconds If provided, end time must be aligned to
104+
* the hour If not provided, the node will be created as an autoreserved node
105105
*/
106106
end_at?: number | null;
107107

@@ -111,15 +111,15 @@ export interface CreateNodesRequest {
111111
image_id?: string;
112112

113113
/**
114-
* Custom node names. Names cannot follow the vm\_{alpha_numeric_chars} as this is
115-
* reserved for system-generated IDs. Names cannot be numeric strings.
114+
* Custom node names Names cannot follow the vm\_{alpha_numeric_chars} as this is
115+
* reserved for system-generated IDs Names cannot be numeric strings
116116
*/
117117
names?: Array<string>;
118118

119119
node_type?: NodeType | null;
120120

121121
/**
122-
* Start time as Unix timestamp in seconds
122+
* Start time as Unix timestamp in seconds Required for reserved nodes
123123
*/
124124
start_at?: number;
125125
}
@@ -165,7 +165,8 @@ export type ErrorType =
165165
| 'not_implemented'
166166
| 'upgrade_required'
167167
| 'payment_required'
168-
| 'service_unavailable';
168+
| 'service_unavailable'
169+
| 'unprocessable_entity';
169170

170171
export interface ExtendNodeRequest {
171172
/**
@@ -210,6 +211,8 @@ export namespace ListResponseNode {
210211
*/
211212
created_at?: number | null;
212213

214+
current_vm?: Data.CurrentVM | null;
215+
213216
/**
214217
* Deletion time as Unix timestamp in seconds
215218
*/
@@ -243,6 +246,24 @@ export namespace ListResponseNode {
243246
}
244247

245248
export namespace Data {
249+
export interface CurrentVM {
250+
id: string;
251+
252+
created_at: number;
253+
254+
end_at: number | null;
255+
256+
object: string;
257+
258+
start_at: number | null;
259+
260+
status: 'Pending' | 'Running' | 'Destroyed' | 'NodeFailure' | 'Unspecified';
261+
262+
updated_at: number;
263+
264+
image_id?: string | null;
265+
}
266+
246267
export interface VMs {
247268
data: Array<VMs.Data>;
248269

@@ -294,6 +315,8 @@ export interface Node {
294315
*/
295316
created_at?: number | null;
296317

318+
current_vm?: Node.CurrentVM | null;
319+
297320
/**
298321
* Deletion time as Unix timestamp in seconds
299322
*/
@@ -327,6 +350,24 @@ export interface Node {
327350
}
328351

329352
export namespace Node {
353+
export interface CurrentVM {
354+
id: string;
355+
356+
created_at: number;
357+
358+
end_at: number | null;
359+
360+
object: string;
361+
362+
start_at: number | null;
363+
364+
status: 'Pending' | 'Running' | 'Destroyed' | 'NodeFailure' | 'Unspecified';
365+
366+
updated_at: number;
367+
368+
image_id?: string | null;
369+
}
370+
330371
export interface VMs {
331372
data: Array<VMs.Data>;
332373

@@ -388,8 +429,8 @@ export interface NodeCreateParams {
388429
cloud_init_user_data?: Array<number>;
389430

390431
/**
391-
* End time as Unix timestamp in seconds. If provided, end time must be aligned to
392-
* the hour. If not provided, the node will be created as an autoreserved node.
432+
* End time as Unix timestamp in seconds If provided, end time must be aligned to
433+
* the hour If not provided, the node will be created as an autoreserved node
393434
*/
394435
end_at?: number | null;
395436

@@ -399,15 +440,15 @@ export interface NodeCreateParams {
399440
image_id?: string;
400441

401442
/**
402-
* Custom node names. Names cannot follow the vm\_{alpha_numeric_chars} as this is
403-
* reserved for system-generated IDs. Names cannot be numeric strings.
443+
* Custom node names Names cannot follow the vm\_{alpha_numeric_chars} as this is
444+
* reserved for system-generated IDs Names cannot be numeric strings
404445
*/
405446
names?: Array<string>;
406447

407448
node_type?: NodeType | null;
408449

409450
/**
410-
* Start time as Unix timestamp in seconds
451+
* Start time as Unix timestamp in seconds Required for reserved nodes
411452
*/
412453
start_at?: number;
413454
}

0 commit comments

Comments
 (0)