Skip to content

Commit 8485f40

Browse files
committed
feat(api): add error field to PathInfo for stat failures
Cherry-picked from stainless-sdks/hypeman-typescript preview/feature/hypeman-cp. Adds error field to PathInfo to communicate stat failures like permission denied.
1 parent f973722 commit 8485f40

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 30
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-962950583e6d0c5e72b547422e3cf0f6b9d00a7be1f1ad0b0430d5e742bf6e20.yml
3-
openapi_spec_hash: f5a6a0f94dded7dc78ddac6218034bb2
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-28e78b73c796f9ee866671ed946402b5d569e683c3207d57c9143eb7d6f83fb6.yml
3+
openapi_spec_hash: fce0ac8713369a5f048bac684ed34fc8
44
config_hash: f65a6a2bcef49a9f623212f9de6d6f6f

src/resources/instances/instances.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,12 @@ export interface PathInfo {
282282
*/
283283
exists: boolean;
284284

285+
/**
286+
* Error message if stat failed (e.g., permission denied). Only set when exists is
287+
* false due to an error rather than the path not existing.
288+
*/
289+
error?: string | null;
290+
285291
/**
286292
* True if this is a directory
287293
*/

0 commit comments

Comments
 (0)