// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../../core/resource'; import { APIPromise } from '../../core/api-promise'; import { RequestOptions } from '../../internal/request-options'; import { path } from '../../internal/utils/path'; export class Threads extends APIResource { /** * Starts or resumes the sandbox referenced by the thread and returns when it is * ready. The operation is idempotent. The thread must include * sandbox.sandbox_slug. */ activateSandbox(threadID: string, options?: RequestOptions): APIPromise { return this._client.post(path`/v1/fleet/threads/${threadID}/sandbox-activation`, options); } } export interface ThreadActivateSandboxResponse { sandbox_slug: string; scope: 'agent' | 'thread'; status: 'provisioning' | 'ready' | 'failed' | 'stopped' | 'deleting'; } export declare namespace Threads { export { type ThreadActivateSandboxResponse as ThreadActivateSandboxResponse }; }