Skip to content

Commit 54acda7

Browse files
release: 0.1.0-alpha.13 (#24)
Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent bcbd830 commit 54acda7

17 files changed

Lines changed: 308 additions & 85 deletions

File tree

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

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 9
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/the-san-francisco-compute-company%2Fsfc-nodes-64b3af1a7aa80906205b3369d34afb7c2686ab1c184f4683d81f2e3adffa255e.yml
3-
openapi_spec_hash: 4a63ec0585f1f25c42f1a612345f7ab4
4-
config_hash: b63d685bc4feb4db73f82791193686bd
1+
configured_endpoints: 13
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/the-san-francisco-compute-company%2Fsfc-nodes-94c657d18a94013c3a191579d7a41e20d5b40861844489a05a0316c74604e61c.yml
3+
openapi_spec_hash: 0ca0c3bdefefb0f150cf193809bb083a
4+
config_hash: 20852160fd697b0edb4b28a75eff4223

CHANGELOG.md

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

3+
## 0.1.0-alpha.13 (2025-09-08)
4+
5+
Full Changelog: [v0.1.0-alpha.12...v0.1.0-alpha.13](https://github.com/sfcompute/nodes-typescript/compare/v0.1.0-alpha.12...v0.1.0-alpha.13)
6+
7+
### Features
8+
9+
* **api:** add vm images resources and update formatting ([ec522b7](https://github.com/sfcompute/nodes-typescript/commit/ec522b78c974e70ecd2c58f0bbe85ab4537112ab))
10+
* **api:** disable retries ([6188d02](https://github.com/sfcompute/nodes-typescript/commit/6188d028d12cefaa902e099988b7e9276627a0af))
11+
12+
13+
### Chores
14+
15+
* ci build action ([cc7fec2](https://github.com/sfcompute/nodes-typescript/commit/cc7fec2a36cc3bc72373536ae733d1da4a44b18d))
16+
317
## 0.1.0-alpha.12 (2025-09-05)
418

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Error codes are as follows:
8282

8383
### Retries
8484

85-
Certain errors will be automatically retried 2 times by default, with a short exponential backoff.
85+
Certain errors will be automatically retried 0 times by default, with a short exponential backoff.
8686
Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
8787
429 Rate Limit, and >=500 Internal errors will all be retried by default.
8888

api.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# Vms
1+
# VMs
22

33
Types:
44

5-
- <code><a href="./src/resources/vms/vms.ts">VmLogsResponse</a></code>
6-
- <code><a href="./src/resources/vms/vms.ts">VmSSHResponse</a></code>
5+
- <code><a href="./src/resources/vms/vms.ts">VMLogsResponse</a></code>
6+
- <code><a href="./src/resources/vms/vms.ts">VMSSHResponse</a></code>
77

88
Methods:
99

10-
- <code title="get /v0/vms/logs2">client.vms.<a href="./src/resources/vms/vms.ts">logs</a>({ ...params }) -> VmLogsResponse</code>
11-
- <code title="get /v0/vms/ssh">client.vms.<a href="./src/resources/vms/vms.ts">ssh</a>({ ...params }) -> VmSSHResponse</code>
10+
- <code title="get /v0/vms/logs2">client.vms.<a href="./src/resources/vms/vms.ts">logs</a>({ ...params }) -> VMLogsResponse</code>
11+
- <code title="get /v0/vms/ssh">client.vms.<a href="./src/resources/vms/vms.ts">ssh</a>({ ...params }) -> VMSSHResponse</code>
1212

1313
## Script
1414

@@ -23,6 +23,22 @@ Methods:
2323
- <code title="post /v0/vms/script">client.vms.script.<a href="./src/resources/vms/script.ts">create</a>({ ...params }) -> ScriptCreateResponse</code>
2424
- <code title="get /v0/vms/script">client.vms.script.<a href="./src/resources/vms/script.ts">retrieve</a>() -> ScriptRetrieveResponse</code>
2525

26+
## Images
27+
28+
Types:
29+
30+
- <code><a href="./src/resources/vms/images.ts">ImageCompleteUploadResponse</a></code>
31+
- <code><a href="./src/resources/vms/images.ts">ImageGetResponse</a></code>
32+
- <code><a href="./src/resources/vms/images.ts">ImageStartUploadResponse</a></code>
33+
- <code><a href="./src/resources/vms/images.ts">ImageUploadResponse</a></code>
34+
35+
Methods:
36+
37+
- <code title="patch /v1/vms/images/{image_id}/complete_upload">client.vms.images.<a href="./src/resources/vms/images.ts">completeUpload</a>(imageID) -> ImageCompleteUploadResponse</code>
38+
- <code title="get /v1/vms/images/{image_id}">client.vms.images.<a href="./src/resources/vms/images.ts">get</a>(imageID) -> ImageGetResponse</code>
39+
- <code title="post /v1/vms/images/start_upload">client.vms.images.<a href="./src/resources/vms/images.ts">startUpload</a>({ ...params }) -> ImageStartUploadResponse</code>
40+
- <code title="post /v1/vms/images/{image_id}/upload">client.vms.images.<a href="./src/resources/vms/images.ts">upload</a>(imageID, { ...params }) -> ImageUploadResponse</code>
41+
2642
# Nodes
2743

2844
Types:

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.12",
3+
"version": "0.1.0-alpha.13",
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if [[ "$SIGNED_URL" == "null" ]]; then
1212
exit 1
1313
fi
1414

15-
UPLOAD_RESPONSE=$(tar -cz "${BUILD_PATH:-dist}" | curl -v -X PUT \
15+
UPLOAD_RESPONSE=$(tar "${BASE_PATH:+-C$BASE_PATH}" -cz "${ARTIFACT_PATH:-dist}" | curl -v -X PUT \
1616
-H "Content-Type: application/gzip" \
1717
--data-binary @- "$SIGNED_URL" 2>&1)
1818

src/client.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import {
3434
Nodes,
3535
Status,
3636
} from './resources/nodes';
37-
import { VmLogsParams, VmLogsResponse, VmSSHParams, VmSSHResponse, Vms } from './resources/vms/vms';
37+
import { VMLogsParams, VMLogsResponse, VMSSHParams, VMSSHResponse, VMs } from './resources/vms/vms';
3838
import { type Fetch } from './internal/builtin-types';
3939
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
4040
import { FinalRequestOptions, RequestOptions } from './internal/request-options';
@@ -88,7 +88,7 @@ export interface ClientOptions {
8888
* The maximum number of times that the client will retry a request in case of a
8989
* temporary failure, like a network error or a 5XX error from the server.
9090
*
91-
* @default 2
91+
* @default 0
9292
*/
9393
maxRetries?: number | undefined;
9494

@@ -149,7 +149,7 @@ export class SFCNodes {
149149
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
150150
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
151151
* @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
152-
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
152+
* @param {number} [opts.maxRetries=0] - The maximum number of times the client will retry a request.
153153
* @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
154154
* @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
155155
*/
@@ -175,7 +175,7 @@ export class SFCNodes {
175175
parseLogLevel(readEnv('SFC_NODES_LOG'), "process.env['SFC_NODES_LOG']", this) ??
176176
defaultLogLevel;
177177
this.fetchOptions = options.fetchOptions;
178-
this.maxRetries = options.maxRetries ?? 2;
178+
this.maxRetries = options.maxRetries ?? 0;
179179
this.fetch = options.fetch ?? Shims.getDefaultFetch();
180180
this.#encoder = Opts.FallbackEncoder;
181181

@@ -722,22 +722,22 @@ export class SFCNodes {
722722

723723
static toFile = Uploads.toFile;
724724

725-
vms: API.Vms = new API.Vms(this);
725+
vms: API.VMs = new API.VMs(this);
726726
nodes: API.Nodes = new API.Nodes(this);
727727
}
728728

729-
SFCNodes.Vms = Vms;
729+
SFCNodes.VMs = VMs;
730730
SFCNodes.Nodes = Nodes;
731731

732732
export declare namespace SFCNodes {
733733
export type RequestOptions = Opts.RequestOptions;
734734

735735
export {
736-
Vms as Vms,
737-
type VmLogsResponse as VmLogsResponse,
738-
type VmSSHResponse as VmSSHResponse,
739-
type VmLogsParams as VmLogsParams,
740-
type VmSSHParams as VmSSHParams,
736+
VMs as VMs,
737+
type VMLogsResponse as VMLogsResponse,
738+
type VMSSHResponse as VMSSHResponse,
739+
type VMLogsParams as VMLogsParams,
740+
type VMSSHParams as VMSSHParams,
741741
};
742742

743743
export {

src/internal/request-options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export type RequestOptions = {
4040
* The maximum number of times that the client will retry a request in case of a
4141
* temporary failure, like a network error or a 5XX error from the server.
4242
*
43-
* @default 2
43+
* @default 0
4444
*/
4545
maxRetries?: number;
4646

src/resources/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ export {
1717
type NodeListParams,
1818
type NodeExtendParams,
1919
} from './nodes';
20-
export { Vms, type VmLogsResponse, type VmSSHResponse, type VmLogsParams, type VmSSHParams } from './vms/vms';
20+
export { VMs, type VMLogsResponse, type VMSSHResponse, type VMLogsParams, type VMSSHParams } from './vms/vms';

0 commit comments

Comments
 (0)