File size: 648 Bytes
358dd8b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from __future__ import annotations

from datetime import datetime
from enum import Enum
from typing import Any
from uuid import UUID

from pydantic import BaseModel


class ReplStatus(str, Enum):
    RUNNING = "RUNNING"
    STOPPED = "STOPPED"


class Repl(BaseModel):
    uuid: UUID
    created_at: datetime
    last_check_at: datetime
    max_repl_uses: int
    max_repl_mem: int
    header: str
    status: ReplStatus


class Proof(BaseModel):
    uuid: UUID
    id: str
    code: str
    diagnostics: dict[str, Any] | None = None
    response: dict[str, Any] | None = None
    time: float = 0.0
    error: str | None = None
    repl_uuid: UUID