devhelm 0.4.0__tar.gz → 0.6.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.
Files changed (50) hide show
  1. {devhelm-0.4.0 → devhelm-0.6.0}/.github/workflows/spec-check.yml +27 -1
  2. {devhelm-0.4.0 → devhelm-0.6.0}/PKG-INFO +1 -1
  3. {devhelm-0.4.0 → devhelm-0.6.0}/docs/openapi/monitoring-api.json +1220 -93
  4. {devhelm-0.4.0 → devhelm-0.6.0}/pyproject.toml +1 -1
  5. {devhelm-0.4.0 → devhelm-0.6.0}/scripts/typegen.sh +2 -1
  6. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/__init__.py +12 -0
  7. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/_generated.py +418 -58
  8. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/_http.py +61 -1
  9. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/client.py +15 -1
  10. devhelm-0.6.0/src/devhelm/resources/forensics.py +146 -0
  11. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/types.py +10 -0
  12. {devhelm-0.4.0 → devhelm-0.6.0}/tests/test_client.py +9 -0
  13. {devhelm-0.4.0 → devhelm-0.6.0}/tests/test_http.py +56 -0
  14. {devhelm-0.4.0 → devhelm-0.6.0}/uv.lock +1 -1
  15. {devhelm-0.4.0 → devhelm-0.6.0}/.github/workflows/ci.yml +0 -0
  16. {devhelm-0.4.0 → devhelm-0.6.0}/.github/workflows/release.yml +0 -0
  17. {devhelm-0.4.0 → devhelm-0.6.0}/.gitignore +0 -0
  18. {devhelm-0.4.0 → devhelm-0.6.0}/LICENSE +0 -0
  19. {devhelm-0.4.0 → devhelm-0.6.0}/Makefile +0 -0
  20. {devhelm-0.4.0 → devhelm-0.6.0}/README.md +0 -0
  21. {devhelm-0.4.0 → devhelm-0.6.0}/scripts/inject_strict_config.py +0 -0
  22. {devhelm-0.4.0 → devhelm-0.6.0}/scripts/regen-from.sh +0 -0
  23. {devhelm-0.4.0 → devhelm-0.6.0}/scripts/release.sh +0 -0
  24. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/_errors.py +0 -0
  25. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/_pagination.py +0 -0
  26. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/_validation.py +0 -0
  27. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/py.typed +0 -0
  28. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/__init__.py +0 -0
  29. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/alert_channels.py +0 -0
  30. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/api_keys.py +0 -0
  31. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/dependencies.py +0 -0
  32. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/deploy_lock.py +0 -0
  33. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/environments.py +0 -0
  34. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/incidents.py +0 -0
  35. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/monitors.py +0 -0
  36. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/notification_policies.py +0 -0
  37. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/resource_groups.py +0 -0
  38. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/secrets.py +0 -0
  39. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/status.py +0 -0
  40. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/status_pages.py +0 -0
  41. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/tags.py +0 -0
  42. {devhelm-0.4.0 → devhelm-0.6.0}/src/devhelm/resources/webhooks.py +0 -0
  43. {devhelm-0.4.0 → devhelm-0.6.0}/tests/__init__.py +0 -0
  44. {devhelm-0.4.0 → devhelm-0.6.0}/tests/run_sdk.py +0 -0
  45. {devhelm-0.4.0 → devhelm-0.6.0}/tests/test_errors.py +0 -0
  46. {devhelm-0.4.0 → devhelm-0.6.0}/tests/test_negative_validation.py +0 -0
  47. {devhelm-0.4.0 → devhelm-0.6.0}/tests/test_schemas.py +0 -0
  48. {devhelm-0.4.0 → devhelm-0.6.0}/tests/test_spec_parity.py +0 -0
  49. {devhelm-0.4.0 → devhelm-0.6.0}/tests/test_typing.py +0 -0
  50. {devhelm-0.4.0 → devhelm-0.6.0}/tests/test_validation_helpers.py +0 -0
@@ -20,19 +20,45 @@ jobs:
20
20
  - uses: actions/setup-python@v5
21
21
  with:
22
22
  python-version: '3.13'
23
+ - uses: actions/setup-node@v4
24
+ with:
25
+ node-version: '20'
23
26
 
24
27
  - name: Download latest OpenAPI spec from monorepo
25
28
  run: |
26
29
  gh api repos/devhelmhq/mono/contents/docs/openapi/monitoring-api.json \
27
30
  -H "Accept: application/vnd.github.raw+json" \
28
- -o docs/openapi/monitoring-api.json
31
+ > docs/openapi/monitoring-api.json
29
32
  env:
30
33
  GH_TOKEN: ${{ secrets.MONOREPO_DISPATCH_TOKEN }}
31
34
 
35
+ # Sparse-checkout the shared OpenAPI preprocessor from mono.
36
+ # typegen.sh prefers $OPENAPI_TOOLS → local sibling → npx; without this
37
+ # step, CI falls through to `npx @devhelm/openapi-tools` which is
38
+ # intentionally unpublished (internal-only package).
39
+ - name: Checkout @devhelm/openapi-tools from mono
40
+ uses: actions/checkout@v4
41
+ with:
42
+ repository: devhelmhq/mono
43
+ token: ${{ secrets.MONOREPO_DISPATCH_TOKEN }}
44
+ path: .mono
45
+ sparse-checkout: packages/openapi-tools
46
+ sparse-checkout-cone-mode: false
47
+
48
+ - name: Build @devhelm/openapi-tools
49
+ working-directory: .mono/packages/openapi-tools
50
+ # mono uses pnpm workspaces; we only need this one package's deps here,
51
+ # so install standalone with npm (no lockfile in this subdir).
52
+ run: |
53
+ npm install --no-package-lock --no-audit --no-fund
54
+ npm run build
55
+
32
56
  - run: uv sync
33
57
  - run: uv run pytest -v
34
58
 
35
59
  - name: Regenerate types from spec
60
+ env:
61
+ OPENAPI_TOOLS: node ${{ github.workspace }}/.mono/packages/openapi-tools/dist/cli.js
36
62
  run: ./scripts/typegen.sh
37
63
 
38
64
  - name: Check for type changes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devhelm
3
- Version: 0.4.0
3
+ Version: 0.6.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