datapi-selfheal 0.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- datapi_selfheal-0.3.0.dist-info/METADATA +313 -0
- datapi_selfheal-0.3.0.dist-info/RECORD +35 -0
- datapi_selfheal-0.3.0.dist-info/WHEEL +5 -0
- datapi_selfheal-0.3.0.dist-info/entry_points.txt +3 -0
- datapi_selfheal-0.3.0.dist-info/licenses/LICENSE +21 -0
- datapi_selfheal-0.3.0.dist-info/top_level.txt +3 -0
- selfheal_api/__init__.py +106 -0
- selfheal_api/_sandbox_exec.py +124 -0
- selfheal_api/autoheal.py +658 -0
- selfheal_api/billing.py +738 -0
- selfheal_api/cli.py +958 -0
- selfheal_api/dashboard.py +1094 -0
- selfheal_api/eval_fixtures.py +39 -0
- selfheal_api/github_app.py +1050 -0
- selfheal_api/github_jwt.py +145 -0
- selfheal_api/ledger.py +305 -0
- selfheal_api/metrics.py +259 -0
- selfheal_api/middleware.py +297 -0
- selfheal_api/modelgen.py +333 -0
- selfheal_api/notifier.py +426 -0
- selfheal_api/remediation.py +277 -0
- selfheal_api/replay.py +126 -0
- selfheal_api/sandbox.py +157 -0
- selfheal_api/server.py +1480 -0
- selfheal_api/server_hosted.py +1656 -0
- selfheal_api/specwatch.py +203 -0
- selfheal_api/worker.py +212 -0
- sentinel/__init__.py +33 -0
- sentinel/detector.py +626 -0
- sentinel/guard.py +345 -0
- sentinel/llm_fallback.py +256 -0
- synthesizer/__init__.py +31 -0
- synthesizer/openapi_emitter.py +181 -0
- synthesizer/patcher.py +944 -0
- synthesizer/zod_emitter.py +336 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"""Eval fixture models for the labeled detection corpus (EXP-17/T18).
|
|
2
|
+
|
|
3
|
+
These mirror realistic third-party webhook payloads. The corpus in
|
|
4
|
+
``evaluations/detection_corpus.jsonl`` references them by name via
|
|
5
|
+
``EVAL_MODEL_REGISTRY``.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
from typing import Literal
|
|
11
|
+
|
|
12
|
+
from pydantic import BaseModel, ConfigDict
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class OrderEvent(BaseModel):
|
|
16
|
+
model_config = ConfigDict(extra="forbid")
|
|
17
|
+
|
|
18
|
+
id: str
|
|
19
|
+
amount: int
|
|
20
|
+
currency: str
|
|
21
|
+
customer_email: str
|
|
22
|
+
paid: bool
|
|
23
|
+
status: Literal["pending", "paid", "refunded"]
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class ShipmentUpdate(BaseModel):
|
|
27
|
+
model_config = ConfigDict(extra="forbid")
|
|
28
|
+
|
|
29
|
+
tracking_id: str
|
|
30
|
+
carrier: str
|
|
31
|
+
status: Literal["label_created", "in_transit", "out_for_delivery", "delivered"]
|
|
32
|
+
eta: str | None = None
|
|
33
|
+
weight_kg: float
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
EVAL_MODEL_REGISTRY: dict[str, type[BaseModel]] = {
|
|
37
|
+
"OrderEvent": OrderEvent,
|
|
38
|
+
"ShipmentUpdate": ShipmentUpdate,
|
|
39
|
+
}
|