devhelm 0.2.1__tar.gz → 0.3.0__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.
- {devhelm-0.2.1 → devhelm-0.3.0}/PKG-INFO +1 -1
- {devhelm-0.2.1 → devhelm-0.3.0}/docs/openapi/monitoring-api.json +8 -8
- {devhelm-0.2.1 → devhelm-0.3.0}/pyproject.toml +1 -1
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/_generated.py +12 -8
- {devhelm-0.2.1 → devhelm-0.3.0}/tests/test_negative_validation.py +6 -6
- {devhelm-0.2.1 → devhelm-0.3.0}/uv.lock +1 -1
- {devhelm-0.2.1 → devhelm-0.3.0}/.github/workflows/ci.yml +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/.github/workflows/release.yml +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/.github/workflows/spec-check.yml +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/.gitignore +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/LICENSE +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/Makefile +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/README.md +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/scripts/inject_strict_config.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/scripts/regen-from.sh +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/scripts/release.sh +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/scripts/typegen.sh +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/__init__.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/_errors.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/_http.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/_pagination.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/_validation.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/client.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/py.typed +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/resources/__init__.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/resources/alert_channels.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/resources/api_keys.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/resources/dependencies.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/resources/deploy_lock.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/resources/environments.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/resources/incidents.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/resources/monitors.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/resources/notification_policies.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/resources/resource_groups.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/resources/secrets.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/resources/status.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/resources/status_pages.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/resources/tags.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/resources/webhooks.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/src/devhelm/types.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/tests/__init__.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/tests/run_sdk.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/tests/test_client.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/tests/test_errors.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/tests/test_http.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/tests/test_schemas.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/tests/test_spec_parity.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/tests/test_typing.py +0 -0
- {devhelm-0.2.1 → devhelm-0.3.0}/tests/test_validation_helpers.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: devhelm
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: DevHelm SDK for Python — typed client for monitors, incidents, alerting, and more
|
|
5
5
|
Project-URL: Homepage, https://github.com/devhelmhq/sdk-python
|
|
6
6
|
Project-URL: Repository, https://github.com/devhelmhq/sdk-python.git
|
|
@@ -22744,9 +22744,9 @@
|
|
|
22744
22744
|
"format": "int32",
|
|
22745
22745
|
"nullable": true
|
|
22746
22746
|
},
|
|
22747
|
-
"
|
|
22747
|
+
"defaultOpen": {
|
|
22748
22748
|
"type": "boolean",
|
|
22749
|
-
"description": "
|
|
22749
|
+
"description": "Initial expand/collapse state when a visitor first loads the page; renderer may auto-expand on active incidents (default: true)",
|
|
22750
22750
|
"nullable": true
|
|
22751
22751
|
}
|
|
22752
22752
|
}
|
|
@@ -22816,7 +22816,7 @@
|
|
|
22816
22816
|
},
|
|
22817
22817
|
"startDate": {
|
|
22818
22818
|
"type": "string",
|
|
22819
|
-
"description": "Date from which to start showing uptime
|
|
22819
|
+
"description": "Date from which to start showing uptime; defaults to component creation. Set earlier to backdate (e.g. launch day); clamped at the monitor's createdAt for MONITOR-type components",
|
|
22820
22820
|
"format": "date",
|
|
22821
22821
|
"nullable": true
|
|
22822
22822
|
}
|
|
@@ -29659,7 +29659,7 @@
|
|
|
29659
29659
|
"updatedAt",
|
|
29660
29660
|
"displayOrder",
|
|
29661
29661
|
"pageOrder",
|
|
29662
|
-
"
|
|
29662
|
+
"defaultOpen"
|
|
29663
29663
|
],
|
|
29664
29664
|
"type": "object",
|
|
29665
29665
|
"properties": {
|
|
@@ -29686,7 +29686,7 @@
|
|
|
29686
29686
|
"type": "integer",
|
|
29687
29687
|
"format": "int32"
|
|
29688
29688
|
},
|
|
29689
|
-
"
|
|
29689
|
+
"defaultOpen": {
|
|
29690
29690
|
"type": "boolean"
|
|
29691
29691
|
},
|
|
29692
29692
|
"components": {
|
|
@@ -32405,9 +32405,9 @@
|
|
|
32405
32405
|
"format": "int32",
|
|
32406
32406
|
"nullable": true
|
|
32407
32407
|
},
|
|
32408
|
-
"
|
|
32408
|
+
"defaultOpen": {
|
|
32409
32409
|
"type": "boolean",
|
|
32410
|
-
"description": "
|
|
32410
|
+
"description": "Initial expand/collapse state on first page load; null preserves current. Renderer may auto-expand on active incidents",
|
|
32411
32411
|
"nullable": true
|
|
32412
32412
|
}
|
|
32413
32413
|
}
|
|
@@ -32458,7 +32458,7 @@
|
|
|
32458
32458
|
},
|
|
32459
32459
|
"startDate": {
|
|
32460
32460
|
"type": "string",
|
|
32461
|
-
"description": "Date from which to start showing uptime
|
|
32461
|
+
"description": "Date from which to start showing uptime; null preserves current. Bars never extend earlier than the underlying monitor's createdAt regardless of value",
|
|
32462
32462
|
"format": "date",
|
|
32463
32463
|
"nullable": true
|
|
32464
32464
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# generated by datamodel-codegen:
|
|
2
2
|
# filename: .openapi-preprocessed.json
|
|
3
|
-
# timestamp: 2026-04-
|
|
3
|
+
# timestamp: 2026-04-22T14:03:54+00:00
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
from typing import Annotated, Any, Literal
|
|
@@ -1023,9 +1023,12 @@ class CreateStatusPageComponentGroupRequest(BaseModel):
|
|
|
1023
1023
|
int | None,
|
|
1024
1024
|
Field(alias="displayOrder", description="Position in the group list"),
|
|
1025
1025
|
] = None
|
|
1026
|
-
|
|
1026
|
+
default_open: Annotated[
|
|
1027
1027
|
bool | None,
|
|
1028
|
-
Field(
|
|
1028
|
+
Field(
|
|
1029
|
+
alias="defaultOpen",
|
|
1030
|
+
description="Initial expand/collapse state when a visitor first loads the page; renderer may auto-expand on active incidents (default: true)",
|
|
1031
|
+
),
|
|
1029
1032
|
] = None
|
|
1030
1033
|
|
|
1031
1034
|
|
|
@@ -1088,7 +1091,7 @@ class CreateStatusPageComponentRequest(BaseModel):
|
|
|
1088
1091
|
date_aliased | None,
|
|
1089
1092
|
Field(
|
|
1090
1093
|
alias="startDate",
|
|
1091
|
-
description="Date from which to start showing uptime
|
|
1094
|
+
description="Date from which to start showing uptime; defaults to component creation. Set earlier to backdate (e.g. launch day); clamped at the monitor's createdAt for MONITOR-type components",
|
|
1092
1095
|
),
|
|
1093
1096
|
] = None
|
|
1094
1097
|
|
|
@@ -4730,7 +4733,7 @@ class StatusPageComponentGroupDto(BaseModel):
|
|
|
4730
4733
|
description: str | None = None
|
|
4731
4734
|
display_order: Annotated[int, Field(alias="displayOrder")]
|
|
4732
4735
|
page_order: Annotated[int, Field(alias="pageOrder")]
|
|
4733
|
-
|
|
4736
|
+
default_open: Annotated[bool, Field(alias="defaultOpen")]
|
|
4734
4737
|
components: list[StatusPageComponentDto] | None = None
|
|
4735
4738
|
created_at: Annotated[AwareDatetime, Field(alias="createdAt")]
|
|
4736
4739
|
updated_at: Annotated[AwareDatetime, Field(alias="updatedAt")]
|
|
@@ -5760,10 +5763,11 @@ class UpdateStatusPageComponentGroupRequest(BaseModel):
|
|
|
5760
5763
|
description="New position in the group list; null preserves current",
|
|
5761
5764
|
),
|
|
5762
5765
|
] = None
|
|
5763
|
-
|
|
5766
|
+
default_open: Annotated[
|
|
5764
5767
|
bool | None,
|
|
5765
5768
|
Field(
|
|
5766
|
-
|
|
5769
|
+
alias="defaultOpen",
|
|
5770
|
+
description="Initial expand/collapse state on first page load; null preserves current. Renderer may auto-expand on active incidents",
|
|
5767
5771
|
),
|
|
5768
5772
|
] = None
|
|
5769
5773
|
|
|
@@ -5825,7 +5829,7 @@ class UpdateStatusPageComponentRequest(BaseModel):
|
|
|
5825
5829
|
date_aliased | None,
|
|
5826
5830
|
Field(
|
|
5827
5831
|
alias="startDate",
|
|
5828
|
-
description="Date from which to start showing uptime
|
|
5832
|
+
description="Date from which to start showing uptime; null preserves current. Bars never extend earlier than the underlying monitor's createdAt regardless of value",
|
|
5829
5833
|
),
|
|
5830
5834
|
] = None
|
|
5831
5835
|
|
|
@@ -299,7 +299,7 @@ def _sp_group(**kw: object) -> dict[str, Any]:
|
|
|
299
299
|
"name": "Infra",
|
|
300
300
|
"displayOrder": 0,
|
|
301
301
|
"pageOrder": 0,
|
|
302
|
-
"
|
|
302
|
+
"defaultOpen": True,
|
|
303
303
|
"createdAt": NOW,
|
|
304
304
|
"updatedAt": NOW,
|
|
305
305
|
}
|
|
@@ -1874,9 +1874,9 @@ class TestStatusPageComponentGroupDtoNegative:
|
|
|
1874
1874
|
_del(_sp_group(), "displayOrder")
|
|
1875
1875
|
)
|
|
1876
1876
|
|
|
1877
|
-
def
|
|
1878
|
-
with pytest.raises(ValidationError, match="
|
|
1879
|
-
StatusPageComponentGroupDto.model_validate(_del(_sp_group(), "
|
|
1877
|
+
def test_missing_default_open(self) -> None:
|
|
1878
|
+
with pytest.raises(ValidationError, match="defaultOpen"):
|
|
1879
|
+
StatusPageComponentGroupDto.model_validate(_del(_sp_group(), "defaultOpen"))
|
|
1880
1880
|
|
|
1881
1881
|
def test_empty_dict(self) -> None:
|
|
1882
1882
|
with pytest.raises(ValidationError):
|
|
@@ -1924,9 +1924,9 @@ class TestUpdateStatusPageComponentGroupRequestNegative:
|
|
|
1924
1924
|
{"description": "x" * 501}
|
|
1925
1925
|
)
|
|
1926
1926
|
|
|
1927
|
-
def
|
|
1927
|
+
def test_wrong_default_open_type(self) -> None:
|
|
1928
1928
|
with pytest.raises(ValidationError):
|
|
1929
|
-
UpdateStatusPageComponentGroupRequest.model_validate({"
|
|
1929
|
+
UpdateStatusPageComponentGroupRequest.model_validate({"defaultOpen": [1]})
|
|
1930
1930
|
|
|
1931
1931
|
|
|
1932
1932
|
# ===================================================================
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|