{"path":"lib/api-client-react/src/generated/api.schemas.ts","size":2889,"locked":false,"binary":false,"truncated":false,"content":"/**\n * Generated by orval v8.9.1 🍺\n * Do not edit manually.\n * Api\n * Mappers Protocol API\n * OpenAPI spec version: 0.1.0\n */\nexport interface HealthStatus {\n  status: string;\n}\n\nexport type JobStatus = typeof JobStatus[keyof typeof JobStatus];\n\n\nexport const JobStatus = {\n  pending: 'pending',\n  completed: 'completed',\n  cancelled: 'cancelled',\n} as const;\n\nexport interface Job {\n  id: number;\n  jobId: string;\n  clientPubkey: string;\n  freelancerPubkey: string;\n  oraclePubkey: string;\n  /** Amount in lamports as string (u64 safe) */\n  amountLamports: string;\n  status: JobStatus;\n  /** @nullable */\n  description: string | null;\n  /**\n     * JSON-encoded array of criteria strings\n     * @nullable\n     */\n  acceptanceCriteria: string | null;\n  /**\n     * Most recent transaction signature\n     * @nullable\n     */\n  txSig: string | null;\n  createdAt: string;\n  updatedAt: string;\n}\n\nexport interface JobInput {\n  /** @maxLength 32 */\n  jobId: string;\n  clientPubkey: string;\n  freelancerPubkey: string;\n  oraclePubkey: string;\n  amountLamports: string;\n  description?: string;\n  acceptanceCriteria?: string[];\n}\n\nexport type JobUpdateStatus = typeof JobUpdateStatus[keyof typeof JobUpdateStatus];\n\n\nexport const JobUpdateStatus = {\n  pending: 'pending',\n  completed: 'completed',\n  cancelled: 'cancelled',\n} as const;\n\nexport interface JobUpdate {\n  status?: JobUpdateStatus;\n  txSig?: string;\n  description?: string;\n}\n\nexport type DeliverableInputDeliverableType = typeof DeliverableInputDeliverableType[keyof typeof DeliverableInputDeliverableType];\n\n\nexport const DeliverableInputDeliverableType = {\n  url: 'url',\n  ipfs: 'ipfs',\n  text: 'text',\n  json: 'json',\n} as const;\n\nexport interface DeliverableInput {\n  description: string;\n  acceptanceCriteria: string[];\n  deliverable: string;\n  deliverableType: DeliverableInputDeliverableType;\n}\n\n/**\n * @nullable\n */\nexport type SubmitResultOutcome = typeof SubmitResultOutcome[keyof typeof SubmitResultOutcome] | null;\n\n\nexport const SubmitResultOutcome = {\n  RELEASE: 'RELEASE',\n  REFUND: 'REFUND',\n  ESCALATE: 'ESCALATE',\n} as const;\n\nexport interface SubmitResult {\n  success: boolean;\n  jobId: string;\n  /** @nullable */\n  outcome: SubmitResultOutcome;\n  /** @nullable */\n  txSig: string | null;\n  /** @nullable */\n  error: string | null;\n}\n\nexport interface DashboardStats {\n  total: number;\n  pending: number;\n  completed: number;\n  cancelled: number;\n  /** Sum of pending escrow amounts as string */\n  totalEscrowedLamports: string;\n}\n\nexport interface OracleHealth {\n  status: string;\n  pendingJobs: number;\n  timestamp: string;\n}\n\nexport type ListJobsParams = {\nstatus?: ListJobsStatus;\nclientPubkey?: string;\n};\n\nexport type ListJobsStatus = typeof ListJobsStatus[keyof typeof ListJobsStatus];\n\n\nexport const ListJobsStatus = {\n  pending: 'pending',\n  completed: 'completed',\n  cancelled: 'cancelled',\n} as const;\n\n"}