import { APIResource } from "../../core/resource.mjs"; import { APIPromise } from "../../core/api-promise.mjs"; import { RequestOptions } from "../../internal/request-options.mjs"; export declare class Logs extends APIResource { /** * Retrieve logs for a specific job, either from the transcoder or manager service * * @example * ```ts * const logs = await client.jobs.logs.list('jobId', { * service: 'transcoder', * }); * ``` */ list(jobID: string, query: LogListParams, options?: RequestOptions): APIPromise; } /** * Response containing a list of logs for a job */ export interface LogListResponse { data: Array; /** * Status indicates the response status "success" */ status: 'success'; } export declare namespace LogListResponse { interface Data { /** * Additional structured data attached to the log */ attributes: { [key: string]: unknown; }; /** * Log level */ level: 'info' | 'error' | 'debug'; /** * The log message content */ msg: string; /** * Name of the service that generated the log */ service: 'transcoder' | 'manager'; /** * Timestamp when the log was created */ time: string; /** * Optional ID of the job this log is associated with */ job_id?: string; } } export interface LogListParams { /** * Service type (transcoder or manager) */ service: 'transcoder' | 'manager'; /** * Transcoder ID (required if service is transcoder) */ transcoder_id?: number; } export declare namespace Logs { export { type LogListResponse as LogListResponse, type LogListParams as LogListParams }; } //# sourceMappingURL=logs.d.mts.map