@@ -34,10 +34,13 @@ import {
3434 BuildTarget ,
3535 Builds ,
3636} from './resources/builds' ;
37+ import { OrgListResponse , OrgRetrieveResponse , Orgs } from './resources/orgs' ;
3738import { readEnv } from './internal/utils/env' ;
3839import { formatRequestDetails , loggerFor } from './internal/utils/log' ;
3940import { isEmptyObj } from './internal/utils/values' ;
4041import {
42+ ProjectListParams ,
43+ ProjectListResponse ,
4144 ProjectRetrieveResponse ,
4245 ProjectUpdateParams ,
4346 ProjectUpdateResponse ,
@@ -46,7 +49,7 @@ import {
4649
4750export interface ClientOptions {
4851 /**
49- * Defaults to process.env['STAINLESS_API_KEY '].
52+ * Defaults to process.env['STAINLESS_V0_API_KEY '].
5053 */
5154 apiKey ?: string | null | undefined ;
5255
@@ -138,7 +141,7 @@ export class StainlessV0 {
138141 /**
139142 * API Client for interfacing with the Stainless V0 API.
140143 *
141- * @param {string | null | undefined } [opts.apiKey=process.env['STAINLESS_API_KEY '] ?? null]
144+ * @param {string | null | undefined } [opts.apiKey=process.env['STAINLESS_V0_API_KEY '] ?? null]
142145 * @param {string } [opts.baseURL=process.env['STAINLESS_V0_BASE_URL'] ?? https://api.stainless.com] - Override the default base URL for the API.
143146 * @param {number } [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
144147 * @param {MergedRequestInit } [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
@@ -149,7 +152,7 @@ export class StainlessV0 {
149152 */
150153 constructor ( {
151154 baseURL = readEnv ( 'STAINLESS_V0_BASE_URL' ) ,
152- apiKey = readEnv ( 'STAINLESS_API_KEY ' ) ?? null ,
155+ apiKey = readEnv ( 'STAINLESS_V0_API_KEY ' ) ?? null ,
153156 ...opts
154157 } : ClientOptions = { } ) {
155158 const options : ClientOptions = {
@@ -686,18 +689,22 @@ export class StainlessV0 {
686689 projects : API . Projects = new API . Projects ( this ) ;
687690 builds : API . Builds = new API . Builds ( this ) ;
688691 buildTargetOutputs : API . BuildTargetOutputs = new API . BuildTargetOutputs ( this ) ;
692+ orgs : API . Orgs = new API . Orgs ( this ) ;
689693}
690694StainlessV0 . Projects = Projects ;
691695StainlessV0 . Builds = Builds ;
692696StainlessV0 . BuildTargetOutputs = BuildTargetOutputs ;
697+ StainlessV0 . Orgs = Orgs ;
693698export declare namespace StainlessV0 {
694699 export type RequestOptions = Opts . RequestOptions ;
695700
696701 export {
697702 Projects as Projects ,
698703 type ProjectRetrieveResponse as ProjectRetrieveResponse ,
699704 type ProjectUpdateResponse as ProjectUpdateResponse ,
705+ type ProjectListResponse as ProjectListResponse ,
700706 type ProjectUpdateParams as ProjectUpdateParams ,
707+ type ProjectListParams as ProjectListParams ,
701708 } ;
702709
703710 export {
@@ -714,4 +721,10 @@ export declare namespace StainlessV0 {
714721 type BuildTargetOutputRetrieveResponse as BuildTargetOutputRetrieveResponse ,
715722 type BuildTargetOutputRetrieveParams as BuildTargetOutputRetrieveParams ,
716723 } ;
724+
725+ export {
726+ Orgs as Orgs ,
727+ type OrgRetrieveResponse as OrgRetrieveResponse ,
728+ type OrgListResponse as OrgListResponse ,
729+ } ;
717730}
0 commit comments