canyonos-api-interface 1.0.2__tar.gz → 1.0.3__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: canyonos-api-interface
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: Typed client for the CanyonOS REST API
5
5
  License-Expression: AGPL-3.0-only
6
6
  Project-URL: Homepage, https://canyonos.ai
@@ -15,7 +15,22 @@ class Error(BaseModel):
15
15
  """
16
16
 
17
17
  error: str = Field(..., title="Error")
18
- code: str = Field(..., title="Code")
18
+ code: Literal[
19
+ "bad_request",
20
+ "bad_archive",
21
+ "workflow_invalid",
22
+ "unauthenticated",
23
+ "forbidden",
24
+ "unknown_workflow_group",
25
+ "unknown_workflow",
26
+ "unknown_agent",
27
+ "not_running",
28
+ "replicas_unreadable",
29
+ "stop_timeout",
30
+ "stop_failed",
31
+ "dashboard_unreachable",
32
+ "dashboard_refused",
33
+ ] = Field(..., title="Code")
19
34
  findings: list[str] | None = Field(None, title="Findings")
20
35
  warnings: list[str] | None = Field(None, title="Warnings")
21
36
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: canyonos-api-interface
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: Typed client for the CanyonOS REST API
5
5
  License-Expression: AGPL-3.0-only
6
6
  Project-URL: Homepage, https://canyonos.ai
@@ -4,7 +4,7 @@
4
4
  [project]
5
5
  name = "canyonos-api-interface"
6
6
  # The release workflow sets the patch from the commits that changed this folder.
7
- version = "1.0.2"
7
+ version = "1.0.3"
8
8
  description = "Typed client for the CanyonOS REST API"
9
9
  readme = "README.md"
10
10
  license = "AGPL-3.0-only"