hotcodepush 0.2.1__tar.gz → 0.4.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 (124) hide show
  1. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/PKG-INFO +2 -2
  2. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/README.md +1 -1
  3. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/openapi.json +3683 -4201
  4. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/__init__.py +4 -1
  5. hotcodepush-0.4.0/src/hotcodepush/_version.py +1 -0
  6. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/client.py +2 -0
  7. hotcodepush-0.4.0/src/hotcodepush/exceptions.py +100 -0
  8. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/models.py +29 -23
  9. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/channel_audience.py +2 -2
  10. hotcodepush-0.2.1/src/hotcodepush/resources/channel_qr.py → hotcodepush-0.4.0/src/hotcodepush/resources/channel_qr_code.py +5 -3
  11. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/channel_releases.py +6 -50
  12. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/channels.py +2 -2
  13. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/device_events.py +10 -3
  14. hotcodepush-0.4.0/src/hotcodepush/resources/qr_codes.py +27 -0
  15. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/releases.py +13 -5
  16. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/sso_provider.py +1 -1
  17. hotcodepush-0.4.0/src/hotcodepush/resources/usage.py +27 -0
  18. hotcodepush-0.2.1/src/hotcodepush/resources/usage.py → hotcodepush-0.4.0/src/hotcodepush/resources/usage_apps.py +8 -23
  19. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_channel_audience.py +2 -2
  20. hotcodepush-0.2.1/tests/test_channel_qr.py → hotcodepush-0.4.0/tests/test_channel_qr_code.py +6 -4
  21. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_channel_releases.py +5 -41
  22. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_device_events.py +12 -0
  23. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_exceptions.py +8 -0
  24. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_integration.py +1 -3
  25. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_openapi.py +37 -30
  26. hotcodepush-0.4.0/tests/test_qr_codes.py +38 -0
  27. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_releases.py +31 -2
  28. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_sso_provider.py +1 -1
  29. hotcodepush-0.4.0/tests/test_usage.py +19 -0
  30. hotcodepush-0.2.1/tests/test_usage.py → hotcodepush-0.4.0/tests/test_usage_apps.py +8 -20
  31. hotcodepush-0.2.1/src/hotcodepush/_version.py +0 -1
  32. hotcodepush-0.2.1/src/hotcodepush/exceptions.py +0 -42
  33. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/.gitignore +0 -0
  34. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/LICENSE +0 -0
  35. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/pyproject.toml +0 -0
  36. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/_http.py +0 -0
  37. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/_types.py +0 -0
  38. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/_upload.py +0 -0
  39. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/py.typed +0 -0
  40. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/__init__.py +0 -0
  41. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/_base.py +0 -0
  42. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/apps.py +0 -0
  43. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/audit_logs.py +0 -0
  44. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/binaries.py +0 -0
  45. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/bundle_deltas.py +0 -0
  46. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/bundle_files.py +0 -0
  47. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/bundle_pack.py +0 -0
  48. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/bundle_pack_upload_parts.py +0 -0
  49. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/bundle_pack_uploads.py +0 -0
  50. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/bundles.py +0 -0
  51. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/checkouts.py +0 -0
  52. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/customer_portal_sessions.py +0 -0
  53. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/devices.py +0 -0
  54. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/file_upload_parts.py +0 -0
  55. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/file_uploads.py +0 -0
  56. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/files.py +0 -0
  57. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/health.py +0 -0
  58. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/invitations.py +0 -0
  59. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/limits.py +0 -0
  60. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/members.py +0 -0
  61. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/notification_preferences.py +0 -0
  62. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/notifications.py +0 -0
  63. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/organization_apps.py +0 -0
  64. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/organization_invitations.py +0 -0
  65. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/organizations.py +0 -0
  66. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/release_audience.py +0 -0
  67. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/rollbacks.py +0 -0
  68. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/signing_keys.py +0 -0
  69. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/sso_provider_verifications.py +0 -0
  70. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/statistics.py +0 -0
  71. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/statistics_fleet.py +0 -0
  72. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/statistics_updates.py +0 -0
  73. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/statistics_usage.py +0 -0
  74. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/subscription.py +0 -0
  75. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/user_password.py +0 -0
  76. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/user_sessions.py +0 -0
  77. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/user_tokens.py +0 -0
  78. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/users.py +0 -0
  79. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/webhook_deliveries.py +0 -0
  80. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/src/hotcodepush/resources/webhooks.py +0 -0
  81. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/__init__.py +0 -0
  82. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/conftest.py +0 -0
  83. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/openapi_document.py +0 -0
  84. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/stub_api.py +0 -0
  85. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_apps.py +0 -0
  86. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_audit_logs.py +0 -0
  87. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_binaries.py +0 -0
  88. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_bundle_deltas.py +0 -0
  89. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_bundle_files.py +0 -0
  90. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_bundle_pack.py +0 -0
  91. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_bundle_pack_upload_parts.py +0 -0
  92. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_bundle_pack_uploads.py +0 -0
  93. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_bundles.py +0 -0
  94. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_channels.py +0 -0
  95. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_checkouts.py +0 -0
  96. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_customer_portal_sessions.py +0 -0
  97. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_devices.py +0 -0
  98. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_file_upload_parts.py +0 -0
  99. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_file_uploads.py +0 -0
  100. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_files.py +0 -0
  101. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_health.py +0 -0
  102. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_http.py +0 -0
  103. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_invitations.py +0 -0
  104. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_limits.py +0 -0
  105. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_members.py +0 -0
  106. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_notification_preferences.py +0 -0
  107. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_notifications.py +0 -0
  108. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_organization_apps.py +0 -0
  109. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_organization_invitations.py +0 -0
  110. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_organizations.py +0 -0
  111. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_release_audience.py +0 -0
  112. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_rollbacks.py +0 -0
  113. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_signing_keys.py +0 -0
  114. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_sso_provider_verifications.py +0 -0
  115. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_statistics_fleet.py +0 -0
  116. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_statistics_updates.py +0 -0
  117. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_statistics_usage.py +0 -0
  118. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_subscription.py +0 -0
  119. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_user_password.py +0 -0
  120. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_user_sessions.py +0 -0
  121. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_user_tokens.py +0 -0
  122. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_users.py +0 -0
  123. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_webhook_deliveries.py +0 -0
  124. {hotcodepush-0.2.1 → hotcodepush-0.4.0}/tests/test_webhooks.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: hotcodepush
3
- Version: 0.2.1
3
+ Version: 0.4.0
4
4
  Summary: The typed Python client for the HotCodePush REST API
5
5
  Project-URL: Homepage, https://hotcodepush.com
6
6
  Project-URL: Documentation, https://hotcodepush.com/docs/api/python
@@ -58,7 +58,7 @@ The resources mirror the API's paths, `/v1/apps/{appId}/channels` being `apps.ch
58
58
  Every method takes keyword arguments and returns pydantic models with snake_case fields; an argument left out stays out of the request, and `None` sends `null`.
59
59
  Uploads take `bytes` or a file object with its `content_length` and stream it.
60
60
  Creating calls send an `Idempotency-Key` and are retried; pass `idempotency_key` to reuse one across your own retries.
61
- A failed request raises a `HotCodePushError` with the API's `code`, `message`, `details` and the HTTP `status`.
61
+ A failed request raises a `HotCodePushError` with the API's `code`, `message`, `details` and the HTTP `status`; `code` is typed as `ErrorCode`, the error catalog, so a misspelled code fails the type check.
62
62
 
63
63
  ## Documentation
64
64
 
@@ -31,7 +31,7 @@ The resources mirror the API's paths, `/v1/apps/{appId}/channels` being `apps.ch
31
31
  Every method takes keyword arguments and returns pydantic models with snake_case fields; an argument left out stays out of the request, and `None` sends `null`.
32
32
  Uploads take `bytes` or a file object with its `content_length` and stream it.
33
33
  Creating calls send an `Idempotency-Key` and are retried; pass `idempotency_key` to reuse one across your own retries.
34
- A failed request raises a `HotCodePushError` with the API's `code`, `message`, `details` and the HTTP `status`.
34
+ A failed request raises a `HotCodePushError` with the API's `code`, `message`, `details` and the HTTP `status`; `code` is typed as `ErrorCode`, the error catalog, so a misspelled code fails the type check.
35
35
 
36
36
  ## Documentation
37
37