Skip to content

Commit ffe3238

Browse files
feat: Stabilize project lifecycle error codes
1 parent ea6d146 commit ffe3238

4 files changed

Lines changed: 9 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 127
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-32a5ef4f5def9dde3ed7acc2b6159b143194e224ceaad2dbbbcb766cac90602e.yml
3-
openapi_spec_hash: 3f514f770bb352d98bd3dbcf865a077f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-7b03462454d6fa8390eaebc1b411d3e160501bf96abb93b75d38dfc382d4ce51.yml
3+
openapi_spec_hash: ba55400aafb4759cc06ec139fe528dfc
44
config_hash: 77ee715aa17061166f9a02b264a21b8d

src/client.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,9 @@ export class Kernel {
10231023
credentials: API.Credentials = new API.Credentials(this);
10241024
/**
10251025
* Create and manage projects for resource isolation within an organization.
1026+
* When projects are disabled for the organization, project operations return
1027+
* `404` with code `projects_disabled`.
1028+
*
10261029
*/
10271030
projects: API.Projects = new API.Projects(this);
10281031
organization: API.Organization = new API.Organization(this);

src/resources/projects/limits.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { path } from '../../internal/utils/path';
77

88
/**
99
* Create and manage projects for resource isolation within an organization.
10+
* When projects are disabled for the organization, project operations return
11+
* `404` with code `projects_disabled`.
1012
*/
1113
export class Limits extends APIResource {
1214
/**

src/resources/projects/projects.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import { path } from '../../internal/utils/path';
1111

1212
/**
1313
* Create and manage projects for resource isolation within an organization.
14+
* When projects are disabled for the organization, project operations return
15+
* `404` with code `projects_disabled`.
1416
*/
1517
export class Projects extends APIResource {
1618
limits: LimitsAPI.Limits = new LimitsAPI.Limits(this._client);

0 commit comments

Comments
 (0)