@@ -83,20 +83,6 @@ export class Instances extends APIResource {
8383 } ) ;
8484 }
8585
86- /**
87- * Demote a template back to standby so it can be restored or deleted
88- *
89- * @example
90- * ```ts
91- * const instance = await client.instances.demoteTemplate(
92- * 'id',
93- * );
94- * ```
95- */
96- demoteTemplate ( id : string , options ?: RequestOptions ) : APIPromise < Instance > {
97- return this . _client . post ( path `/instances/${ id } /demote-template` , options ) ;
98- }
99-
10086 /**
10187 * Fork an instance from stopped, standby, or running (with from_running=true)
10288 *
@@ -152,20 +138,6 @@ export class Instances extends APIResource {
152138 } ) as APIPromise < Stream < InstanceLogsResponse > > ;
153139 }
154140
155- /**
156- * Promote a standby instance into a fork-only template
157- *
158- * @example
159- * ```ts
160- * const instance = await client.instances.promoteTemplate(
161- * 'id',
162- * );
163- * ```
164- */
165- promoteTemplate ( id : string , options ?: RequestOptions ) : APIPromise < Instance > {
166- return this . _client . post ( path `/instances/${ id } /promote-template` , options ) ;
167- }
168-
169141 /**
170142 * Restore instance from standby
171143 *
@@ -405,20 +377,9 @@ export interface Instance {
405377 * - Shutdown: VM shut down but VMM exists (Cloud Hypervisor native)
406378 * - Stopped: No VMM running, no snapshot exists
407379 * - Standby: No VMM running, snapshot exists (can be restored)
408- * - Template: Standby snapshot promoted to a fork-only parent; cannot wake while
409- * forks exist
410380 * - Unknown: Failed to determine state (see state_error for details)
411381 */
412- state :
413- | 'Created'
414- | 'Initializing'
415- | 'Running'
416- | 'Paused'
417- | 'Shutdown'
418- | 'Stopped'
419- | 'Standby'
420- | 'Template'
421- | 'Unknown' ;
382+ state : 'Created' | 'Initializing' | 'Running' | 'Paused' | 'Shutdown' | 'Stopped' | 'Standby' | 'Unknown' ;
422383
423384 /**
424385 * Linux-only automatic standby policy based on active inbound TCP connections
@@ -851,16 +812,7 @@ export interface WaitForStateResponse {
851812 /**
852813 * Current instance state when the wait completed
853814 */
854- state :
855- | 'Created'
856- | 'Initializing'
857- | 'Running'
858- | 'Paused'
859- | 'Shutdown'
860- | 'Stopped'
861- | 'Standby'
862- | 'Template'
863- | 'Unknown' ;
815+ state : 'Created' | 'Initializing' | 'Running' | 'Paused' | 'Shutdown' | 'Stopped' | 'Standby' | 'Unknown' ;
864816
865817 /**
866818 * Whether the timeout expired before the target state was reached
@@ -1143,16 +1095,7 @@ export interface InstanceListParams {
11431095 /**
11441096 * Filter instances by state (e.g., Running, Stopped)
11451097 */
1146- state ?:
1147- | 'Created'
1148- | 'Initializing'
1149- | 'Running'
1150- | 'Paused'
1151- | 'Shutdown'
1152- | 'Stopped'
1153- | 'Standby'
1154- | 'Template'
1155- | 'Unknown' ;
1098+ state ?: 'Created' | 'Initializing' | 'Running' | 'Paused' | 'Shutdown' | 'Stopped' | 'Standby' | 'Unknown' ;
11561099
11571100 /**
11581101 * Filter instances by tag key-value pairs. Uses deepObject style:
@@ -1246,16 +1189,7 @@ export interface InstanceWaitParams {
12461189 /**
12471190 * Target state to wait for
12481191 */
1249- state :
1250- | 'Created'
1251- | 'Initializing'
1252- | 'Running'
1253- | 'Paused'
1254- | 'Shutdown'
1255- | 'Stopped'
1256- | 'Standby'
1257- | 'Template'
1258- | 'Unknown' ;
1192+ state : 'Created' | 'Initializing' | 'Running' | 'Paused' | 'Shutdown' | 'Stopped' | 'Standby' | 'Unknown' ;
12591193
12601194 /**
12611195 * Maximum duration to wait (Go duration format, e.g. "30s", "2m"). Capped at 5
0 commit comments