import { APIResource } from "../../../core/resource.js"; import * as ConfigurationAPI from "./configuration.js"; import { Configuration, ConfigurationRetrieveResponse, ConfigurationUpdateParams, SandboxJobConfiguration } from "./configuration.js"; import { APIPromise } from "../../../core/api-promise.js"; import { RequestOptions } from "../../../internal/request-options.js"; export declare class Jobs extends APIResource { configuration: ConfigurationAPI.Configuration; /** * Enqueue a new sandbox job * * @example * ```ts * const job = await client.sandbox.jobs.create({ * type: 'data_sync_all', * }); * ``` */ create(body: JobCreateParams, options?: RequestOptions): APIPromise; } export interface JobCreateResponse { /** * The number of allowed refreshes per hour (per hour, fixed window) */ allowed_refreshes: number; /** * The id of the job that has been created. */ job_id: string; /** * The url that can be used to retrieve the job status */ job_url: string; /** * The number of remaining refreshes available (per hour, fixed window) */ remaining_refreshes: number; } export interface JobCreateParams { /** * The type of job to start. Currently the only supported type is `data_sync_all` */ type: 'data_sync_all'; } export declare namespace Jobs { export { type JobCreateResponse as JobCreateResponse, type JobCreateParams as JobCreateParams }; export { Configuration as Configuration, type SandboxJobConfiguration as SandboxJobConfiguration, type ConfigurationRetrieveResponse as ConfigurationRetrieveResponse, type ConfigurationUpdateParams as ConfigurationUpdateParams, }; } //# sourceMappingURL=jobs.d.ts.map