@@ -16,11 +16,7 @@ export class Images extends APIResource {
1616 * the workspace to list sfc-provided public images instead.
1717 */
1818 list ( query : ImageListParams , options ?: RequestOptions ) : APIPromise < ImageListResponse > {
19- return this . _client . get ( '/preview/v2/images' , {
20- query,
21- defaultBaseURL : 'https://api.sfcompute.com' ,
22- ...options ,
23- } ) ;
19+ return this . _client . get ( '/preview/v2/images' , { query, ...options } ) ;
2420 }
2521
2622 /**
@@ -29,10 +25,7 @@ export class Images extends APIResource {
2925 * Retrieve an image by ID. Returns both user-owned and public images.
3026 */
3127 get ( id : string , options ?: RequestOptions ) : APIPromise < ImageGetResponse > {
32- return this . _client . get ( path `/preview/v2/images/${ id } ` , {
33- defaultBaseURL : 'https://api.sfcompute.com' ,
34- ...options ,
35- } ) ;
28+ return this . _client . get ( path `/preview/v2/images/${ id } ` , options ) ;
3629 }
3730}
3831
@@ -48,13 +41,22 @@ export interface ImageListResponse {
4841
4942export namespace ImageListResponse {
5043 export interface Data {
44+ /**
45+ * Accepts the canonical prefix below; additional legacy prefixes are aliased for
46+ * read compatibility. Writes always emit the canonical form.
47+ */
5148 id : string ;
5249
5350 /**
5451 * Unix timestamp.
5552 */
5653 created_at : number ;
5754
55+ /**
56+ * Whether this is an sfc-provided public image.
57+ */
58+ is_public : boolean ;
59+
5860 name : string ;
5961
6062 object : 'image' ;
@@ -71,20 +73,34 @@ export namespace ImageListResponse {
7173
7274 workspace : string ;
7375
76+ /**
77+ * The workspace that owns this image.
78+ */
79+ workspace_id : string ;
80+
7481 provider ?: string | null ;
7582
7683 sha256 ?: string | null ;
7784 }
7885}
7986
8087export interface ImageGetResponse {
88+ /**
89+ * Accepts the canonical prefix below; additional legacy prefixes are aliased for
90+ * read compatibility. Writes always emit the canonical form.
91+ */
8192 id : string ;
8293
8394 /**
8495 * Unix timestamp.
8596 */
8697 created_at : number ;
8798
99+ /**
100+ * Whether this is an sfc-provided public image.
101+ */
102+ is_public : boolean ;
103+
88104 name : string ;
89105
90106 object : 'image' ;
@@ -101,6 +117,11 @@ export interface ImageGetResponse {
101117
102118 workspace : string ;
103119
120+ /**
121+ * The workspace that owns this image.
122+ */
123+ workspace_id : string ;
124+
104125 provider ?: string | null ;
105126
106127 sha256 ?: string | null ;
0 commit comments