11# SFC Nodes TypeScript API Library
22
3- [ ![ NPM version] ( < https://img.shields.io/npm/v/@sfc /nodes-sdk-alpha.svg?label=npm%20(stable) > )] ( https://npmjs.org/package/@sfc /nodes-sdk-alpha ) ![ npm bundle size] ( https://img.shields.io/bundlephobia/minzip/@sfc /nodes-sdk-alpha )
3+ [ ![ NPM version] ( < https://img.shields.io/npm/v/@sfcompute /nodes-sdk-alpha.svg?label=npm%20(stable) > )] ( https://npmjs.org/package/@sfcompute /nodes-sdk-alpha ) ![ npm bundle size] ( https://img.shields.io/bundlephobia/minzip/@sfcompute /nodes-sdk-alpha )
44
55This library provides convenient access to the SFC Nodes REST API from server-side TypeScript or JavaScript.
66
@@ -11,7 +11,7 @@ It is generated with [Stainless](https://www.stainless.com/).
1111## Installation
1212
1313``` sh
14- npm install @sfc /nodes-sdk-alpha
14+ npm install @sfcompute /nodes-sdk-alpha
1515```
1616
1717## Usage
@@ -20,7 +20,7 @@ The full API of this library can be found in [api.md](api.md).
2020
2121<!-- prettier-ignore -->
2222``` js
23- import SFCNodes from ' @sfc /nodes-sdk-alpha' ;
23+ import SFCNodes from ' @sfcompute /nodes-sdk-alpha' ;
2424
2525const client = new SFCNodes ({
2626 apiKey: process .env [' SFC_API_KEY' ], // This is the default and can be omitted
@@ -35,7 +35,7 @@ This library includes TypeScript definitions for all request params and response
3535
3636<!-- prettier-ignore -->
3737``` ts
38- import SFCNodes from ' @sfc /nodes-sdk-alpha' ;
38+ import SFCNodes from ' @sfcompute /nodes-sdk-alpha' ;
3939
4040const client = new SFCNodes ({
4141 apiKey: process .env [' SFC_API_KEY' ], // This is the default and can be omitted
@@ -157,7 +157,7 @@ The log level can be configured in two ways:
1571572 . Using the ` logLevel ` client option (overrides the environment variable if set)
158158
159159``` ts
160- import SFCNodes from ' @sfc /nodes-sdk-alpha' ;
160+ import SFCNodes from ' @sfcompute /nodes-sdk-alpha' ;
161161
162162const client = new SFCNodes ({
163163 logLevel: ' debug' , // Show all log messages
@@ -185,7 +185,7 @@ When providing a custom logger, the `logLevel` option still controls which messa
185185below the configured level will not be sent to your logger.
186186
187187``` ts
188- import SFCNodes from ' @sfc /nodes-sdk-alpha' ;
188+ import SFCNodes from ' @sfcompute /nodes-sdk-alpha' ;
189189import pino from ' pino' ;
190190
191191const logger = pino ();
@@ -254,7 +254,7 @@ globalThis.fetch = fetch;
254254Or pass it to the client:
255255
256256``` ts
257- import SFCNodes from ' @sfc /nodes-sdk-alpha' ;
257+ import SFCNodes from ' @sfcompute /nodes-sdk-alpha' ;
258258import fetch from ' my-fetch' ;
259259
260260const client = new SFCNodes ({ fetch });
@@ -265,7 +265,7 @@ const client = new SFCNodes({ fetch });
265265If you want to set custom ` fetch ` options without overriding the ` fetch ` function, you can provide a ` fetchOptions ` object when instantiating the client or making a request. (Request-specific options override client options.)
266266
267267``` ts
268- import SFCNodes from ' @sfc /nodes-sdk-alpha' ;
268+ import SFCNodes from ' @sfcompute /nodes-sdk-alpha' ;
269269
270270const client = new SFCNodes ({
271271 fetchOptions: {
@@ -282,7 +282,7 @@ options to requests:
282282<img src =" https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/node.svg " align =" top " width =" 18 " height =" 21 " > ** Node** <sup >[[ docs] ( https://github.com/nodejs/undici/blob/main/docs/docs/api/ProxyAgent.md#example---proxyagent-with-fetch )] </sup >
283283
284284``` ts
285- import SFCNodes from ' @sfc /nodes-sdk-alpha' ;
285+ import SFCNodes from ' @sfcompute /nodes-sdk-alpha' ;
286286import * as undici from ' undici' ;
287287
288288const proxyAgent = new undici .ProxyAgent (' http://localhost:8888' );
@@ -296,7 +296,7 @@ const client = new SFCNodes({
296296<img src =" https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/bun.svg " align =" top " width =" 18 " height =" 21 " > ** Bun** <sup >[[ docs] ( https://bun.sh/guides/http/proxy )] </sup >
297297
298298``` ts
299- import SFCNodes from ' @sfc /nodes-sdk-alpha' ;
299+ import SFCNodes from ' @sfcompute /nodes-sdk-alpha' ;
300300
301301const client = new SFCNodes ({
302302 fetchOptions: {
@@ -308,7 +308,7 @@ const client = new SFCNodes({
308308<img src =" https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/deno.svg " align =" top " width =" 18 " height =" 21 " > ** Deno** <sup >[[ docs] ( https://docs.deno.com/api/deno/~/Deno.createHttpClient )] </sup >
309309
310310``` ts
311- import SFCNodes from ' npm:@sfc /nodes-sdk-alpha' ;
311+ import SFCNodes from ' npm:@sfcompute /nodes-sdk-alpha' ;
312312
313313const httpClient = Deno .createHttpClient ({ proxy: { url: ' http://localhost:8888' } });
314314const client = new SFCNodes ({
0 commit comments