File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11configured_endpoints : 10
22openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-c9f598f79a7265337b04e831c4c36bfd8216901c74a5e6d14a38e30d33ec731b.yml
33openapi_spec_hash : 458ba78d4ac13aea449822777e9194a5
4- config_hash : 64cf806a4f269d464404e3cd2babbb55
4+ config_hash : 7532946d051190f2cb8accabad7d586b
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ The full API of this library can be found in [api.md](api.md).
2626import StainlessV0 from ' stainless-v0' ;
2727
2828const client = new StainlessV0 ({
29- apiKey: process .env [' STAINLESS_V0_API_KEY ' ], // This is the default and can be omitted
29+ apiKey: process .env [' STAINLESS_API_KEY ' ], // This is the default and can be omitted
3030});
3131
3232async function main () {
@@ -47,7 +47,7 @@ This library includes TypeScript definitions for all request params and response
4747import StainlessV0 from ' stainless-v0' ;
4848
4949const client = new StainlessV0 ({
50- apiKey: process .env [' STAINLESS_V0_API_KEY ' ], // This is the default and can be omitted
50+ apiKey: process .env [' STAINLESS_API_KEY ' ], // This is the default and can be omitted
5151});
5252
5353async function main() {
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ import {
4646
4747export interface ClientOptions {
4848 /**
49- * Defaults to process.env['STAINLESS_V0_API_KEY '].
49+ * Defaults to process.env['STAINLESS_API_KEY '].
5050 */
5151 apiKey ?: string | null | undefined ;
5252
@@ -138,7 +138,7 @@ export class StainlessV0 {
138138 /**
139139 * API Client for interfacing with the Stainless V0 API.
140140 *
141- * @param {string | null | undefined } [opts.apiKey=process.env['STAINLESS_V0_API_KEY '] ?? null]
141+ * @param {string | null | undefined } [opts.apiKey=process.env['STAINLESS_API_KEY '] ?? null]
142142 * @param {string } [opts.baseURL=process.env['STAINLESS_V0_BASE_URL'] ?? https://api.stainless.com] - Override the default base URL for the API.
143143 * @param {number } [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
144144 * @param {MergedRequestInit } [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
@@ -149,7 +149,7 @@ export class StainlessV0 {
149149 */
150150 constructor ( {
151151 baseURL = readEnv ( 'STAINLESS_V0_BASE_URL' ) ,
152- apiKey = readEnv ( 'STAINLESS_V0_API_KEY ' ) ?? null ,
152+ apiKey = readEnv ( 'STAINLESS_API_KEY ' ) ?? null ,
153153 ...opts
154154 } : ClientOptions = { } ) {
155155 const options : ClientOptions = {
Original file line number Diff line number Diff line change @@ -327,14 +327,14 @@ describe('instantiate client', () => {
327327
328328 test ( 'with environment variable arguments' , ( ) => {
329329 // set options via env var
330- process . env [ 'STAINLESS_V0_API_KEY ' ] = 'My API Key' ;
330+ process . env [ 'STAINLESS_API_KEY ' ] = 'My API Key' ;
331331 const client = new StainlessV0 ( ) ;
332332 expect ( client . apiKey ) . toBe ( 'My API Key' ) ;
333333 } ) ;
334334
335335 test ( 'with overridden environment variable arguments' , ( ) => {
336336 // set options via env var
337- process . env [ 'STAINLESS_V0_API_KEY ' ] = 'another My API Key' ;
337+ process . env [ 'STAINLESS_API_KEY ' ] = 'another My API Key' ;
338338 const client = new StainlessV0 ( { apiKey : 'My API Key' } ) ;
339339 expect ( client . apiKey ) . toBe ( 'My API Key' ) ;
340340 } ) ;
You can’t perform that action at this time.
0 commit comments