Skip to content

Commit 8f6458e

Browse files
release: 0.1.0-alpha.22 (#33)
Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 9af205c commit 8f6458e

File tree

9 files changed

+53
-21
lines changed

9 files changed

+53
-21
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.21"
2+
".": "0.1.0-alpha.22"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 13
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/the-san-francisco-compute-company%2Fsfc-nodes-80cab7746a6cdf7657e218c427ff7e13db1ac2454eacaccf0f36120234d49a3d.yml
3-
openapi_spec_hash: c36b216292e88e7bd8d57ef05cf67cf2
4-
config_hash: 5ab998e0c5691df351205dfc14a2cfaf
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/the-san-francisco-compute-company%2Fsfc-nodes-94404552501d1e6ece9700dbddd3cd49ddc555fdb3a303747b79aea2329cf10c.yml
3+
openapi_spec_hash: edc38468ad76935dc4b0d6af44e84d44
4+
config_hash: cf202573c712b5d91a4d496f35f0ff57

CHANGELOG.md

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

3+
## 0.1.0-alpha.22 (2025-10-17)
4+
5+
Full Changelog: [v0.1.0-alpha.21...v0.1.0-alpha.22](https://github.com/sfcompute/nodes-typescript/compare/v0.1.0-alpha.21...v0.1.0-alpha.22)
6+
7+
### Features
8+
9+
* **api:** api update ([f930370](https://github.com/sfcompute/nodes-typescript/commit/f930370ca4c3d504de72631104b7cb953fa1c5a0))
10+
* **api:** api update ([d003594](https://github.com/sfcompute/nodes-typescript/commit/d003594ed31b0b93000db809a3a83eaa37ef08d0))
11+
* **api:** api update ([3cecf63](https://github.com/sfcompute/nodes-typescript/commit/3cecf63f4323bcaa132273ac9bce32b265e45875))
12+
13+
14+
### Chores
15+
16+
* **internal:** use npm pack for build uploads ([f516a26](https://github.com/sfcompute/nodes-typescript/commit/f516a262b68fc4c62ba94ddff3efbb67589a59a3))
17+
* **jsdoc:** fix [@link](https://github.com/link) annotations to refer only to parts of the package‘s public interface ([9566d5a](https://github.com/sfcompute/nodes-typescript/commit/9566d5a2b605e95e2169e70aeae2c53748b5c9fd))
18+
319
## 0.1.0-alpha.21 (2025-10-02)
420

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

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

scripts/utils/upload-artifact.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ if [[ "$SIGNED_URL" == "null" ]]; then
1212
exit 1
1313
fi
1414

15-
UPLOAD_RESPONSE=$(tar "${BASE_PATH:+-C$BASE_PATH}" -cz "${ARTIFACT_PATH:-dist}" | curl -v -X PUT \
15+
TARBALL=$(cd dist && npm pack --silent)
16+
17+
UPLOAD_RESPONSE=$(curl -v -X PUT \
1618
-H "Content-Type: application/gzip" \
17-
--data-binary @- "$SIGNED_URL" 2>&1)
19+
--data-binary "@dist/$TARBALL" "$SIGNED_URL" 2>&1)
1820

1921
if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then
2022
echo -e "\033[32mUploaded build to Stainless storage.\033[0m"

src/internal/to-file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export type ToFileInput =
7373

7474
/**
7575
* Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
76-
* @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s
76+
* @param value the raw content of the file. Can be an {@link Uploadable}, BlobLikePart, or AsyncIterable of BlobLikeParts
7777
* @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
7878
* @param {Object=} options additional properties
7979
* @param {string=} options.type the MIME type of the content

src/resources/nodes.ts

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class Nodes extends APIResource {
2525
}
2626

2727
/**
28-
* List all VM nodes for the authenticated account
28+
* List all nodes for the authenticated account
2929
*
3030
* @example
3131
* ```ts
@@ -124,7 +124,8 @@ export interface CreateNodesRequest {
124124
zone: string;
125125

126126
/**
127-
* User script to be executed during the VM's boot process
127+
* User script to be executed during the VM's boot process Data should be base64
128+
* encoded
128129
*/
129130
cloud_init_user_data?: string;
130131

@@ -140,15 +141,17 @@ export interface CreateNodesRequest {
140141
image_id?: string;
141142

142143
/**
143-
* Custom node names Names cannot follow the vm\_{alpha_numeric_chars} as this is
144-
* reserved for system-generated IDs Names cannot be numeric strings
144+
* Custom node names Names cannot begin with 'vm*' or 'n*' as this is reserved for
145+
* system-generated IDs Names cannot be numeric strings Names cannot exceed 128
146+
* characters
145147
*/
146148
names?: Array<string>;
147149

148150
node_type?: NodeType | null;
149151

150152
/**
151-
* Start time as Unix timestamp in seconds Required for reserved nodes
153+
* Start time as Unix timestamp in seconds Optional for reserved nodes. If not
154+
* provided, defaults to current time
152155
*/
153156
start_at?: number;
154157
}
@@ -453,7 +456,8 @@ export interface NodeCreateParams {
453456
zone: string;
454457

455458
/**
456-
* User script to be executed during the VM's boot process
459+
* User script to be executed during the VM's boot process Data should be base64
460+
* encoded
457461
*/
458462
cloud_init_user_data?: string;
459463

@@ -469,31 +473,38 @@ export interface NodeCreateParams {
469473
image_id?: string;
470474

471475
/**
472-
* Custom node names Names cannot follow the vm\_{alpha_numeric_chars} as this is
473-
* reserved for system-generated IDs Names cannot be numeric strings
476+
* Custom node names Names cannot begin with 'vm*' or 'n*' as this is reserved for
477+
* system-generated IDs Names cannot be numeric strings Names cannot exceed 128
478+
* characters
474479
*/
475480
names?: Array<string>;
476481

477482
node_type?: NodeType | null;
478483

479484
/**
480-
* Start time as Unix timestamp in seconds Required for reserved nodes
485+
* Start time as Unix timestamp in seconds Optional for reserved nodes. If not
486+
* provided, defaults to current time
481487
*/
482488
start_at?: number;
483489
}
484490

485491
export interface NodeListParams {
486492
/**
487493
* Filter nodes by node_id Use ?id=n_b1dc52505c6db142&id=n_b1dc52505c6db133 to
488-
* specify multiple IDs. Cannot be used with name
494+
* specify multiple IDs. Cannot combine with name or node_type
489495
*/
490496
id?: Array<string>;
491497

492498
/**
493499
* Filter nodes by their names Use ?name=val1&name=val2 to specify multiple names.
494-
* Cannot be used with id
500+
* Cannot combine with id or node_type
495501
*/
496502
name?: Array<string>;
503+
504+
/**
505+
* Filter nodes by their type Cannot combine with id or name
506+
*/
507+
type?: NodeType;
497508
}
498509

499510
export interface NodeExtendParams {

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.21'; // x-release-please-version
1+
export const VERSION = '0.1.0-alpha.22'; // x-release-please-version

tests/api-resources/nodes.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ describe('resource nodes', () => {
5555
test.skip('list: request options and params are passed correctly', async () => {
5656
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
5757
await expect(
58-
client.nodes.list({ id: ['string'], name: ['string'] }, { path: '/_stainless_unknown_path' }),
58+
client.nodes.list(
59+
{ id: ['string'], name: ['string'], type: 'autoreserved' },
60+
{ path: '/_stainless_unknown_path' },
61+
),
5962
).rejects.toThrow(SFCNodes.NotFoundError);
6063
});
6164

0 commit comments

Comments
 (0)