/* tslint:disable */
/* eslint-disable */
/**
 * Daytona
 * Daytona AI platform API Docs
 *
 * The version of the OpenAPI document: 1.0
 * Contact: support@daytona.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


// May contain unused imports in some cases
// @ts-ignore
import type { JobStatus } from './job-status';
// May contain unused imports in some cases
// @ts-ignore
import type { JobType } from './job-type';

export interface Job {
    /**
     * The ID of the job
     */
    'id': string;
    /**
     * The type of the job
     */
    'type': JobType;
    /**
     * The status of the job
     */
    'status': JobStatus;
    /**
     * The type of resource this job operates on
     */
    'resourceType': JobResourceTypeEnum;
    /**
     * The ID of the resource this job operates on (sandboxId, snapshotRef, etc.)
     */
    'resourceId': string;
    /**
     * Job-specific JSON-encoded payload data (operational metadata)
     */
    'payload'?: string;
    /**
     * OpenTelemetry trace context for distributed tracing (W3C Trace Context format)
     */
    'traceContext'?: { [key: string]: any; };
    /**
     * Error message if the job failed
     */
    'errorMessage'?: string;
    /**
     * The creation timestamp of the job
     */
    'createdAt': string;
    /**
     * The last update timestamp of the job
     */
    'updatedAt'?: string;
}

export const JobResourceTypeEnum = {
    SANDBOX: 'SANDBOX',
    SNAPSHOT: 'SNAPSHOT',
    BACKUP: 'BACKUP',
    UNKNOWN_DEFAULT_OPEN_API: '11184809',
} as const;

export type JobResourceTypeEnum = typeof JobResourceTypeEnum[keyof typeof JobResourceTypeEnum];


