bluehive 0.1.0a16__tar.gz → 0.1.0a18__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 (142) hide show
  1. bluehive-0.1.0a18/.release-please-manifest.json +3 -0
  2. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/CHANGELOG.md +16 -0
  3. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/PKG-INFO +1 -1
  4. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/pyproject.toml +1 -1
  5. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_models.py +29 -12
  6. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_version.py +1 -1
  7. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/order_create_response.py +36 -1
  8. bluehive-0.1.0a18/src/bluehive/types/order_send_for_employee_response.py +82 -0
  9. bluehive-0.1.0a16/.release-please-manifest.json +0 -3
  10. bluehive-0.1.0a16/src/bluehive/types/order_send_for_employee_response.py +0 -41
  11. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/.gitignore +0 -0
  12. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/CONTRIBUTING.md +0 -0
  13. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/LICENSE +0 -0
  14. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/README.md +0 -0
  15. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/SECURITY.md +0 -0
  16. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/api.md +0 -0
  17. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/bin/check-release-environment +0 -0
  18. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/bin/publish-pypi +0 -0
  19. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/examples/.keep +0 -0
  20. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/noxfile.py +0 -0
  21. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/release-please-config.json +0 -0
  22. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/requirements-dev.lock +0 -0
  23. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/requirements.lock +0 -0
  24. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/__init__.py +0 -0
  25. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_base_client.py +0 -0
  26. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_client.py +0 -0
  27. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_compat.py +0 -0
  28. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_constants.py +0 -0
  29. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_exceptions.py +0 -0
  30. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_files.py +0 -0
  31. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_qs.py +0 -0
  32. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_resource.py +0 -0
  33. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_response.py +0 -0
  34. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_streaming.py +0 -0
  35. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_types.py +0 -0
  36. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_utils/__init__.py +0 -0
  37. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_utils/_compat.py +0 -0
  38. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_utils/_datetime_parse.py +0 -0
  39. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_utils/_logs.py +0 -0
  40. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_utils/_proxy.py +0 -0
  41. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_utils/_reflection.py +0 -0
  42. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_utils/_resources_proxy.py +0 -0
  43. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_utils/_streams.py +0 -0
  44. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_utils/_sync.py +0 -0
  45. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_utils/_transform.py +0 -0
  46. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_utils/_typing.py +0 -0
  47. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/_utils/_utils.py +0 -0
  48. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/lib/.keep +0 -0
  49. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/py.typed +0 -0
  50. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/resources/__init__.py +0 -0
  51. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/resources/database.py +0 -0
  52. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/resources/employees.py +0 -0
  53. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/resources/employers/__init__.py +0 -0
  54. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/resources/employers/employers.py +0 -0
  55. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/resources/employers/service_bundles.py +0 -0
  56. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/resources/fax.py +0 -0
  57. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/resources/health.py +0 -0
  58. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/resources/hl7.py +0 -0
  59. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/resources/integrations.py +0 -0
  60. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/resources/orders.py +0 -0
  61. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/resources/providers.py +0 -0
  62. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/resources/version.py +0 -0
  63. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/__init__.py +0 -0
  64. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/database_check_health_response.py +0 -0
  65. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/employee_create_params.py +0 -0
  66. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/employee_create_response.py +0 -0
  67. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/employee_delete_response.py +0 -0
  68. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/employee_link_user_params.py +0 -0
  69. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/employee_link_user_response.py +0 -0
  70. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/employee_list_params.py +0 -0
  71. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/employee_list_response.py +0 -0
  72. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/employee_retrieve_response.py +0 -0
  73. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/employee_unlink_user_params.py +0 -0
  74. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/employee_unlink_user_response.py +0 -0
  75. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/employee_update_params.py +0 -0
  76. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/employee_update_response.py +0 -0
  77. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/employer_create_params.py +0 -0
  78. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/employer_create_response.py +0 -0
  79. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/employer_list_response.py +0 -0
  80. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/employer_retrieve_response.py +0 -0
  81. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/employers/__init__.py +0 -0
  82. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/employers/service_bundle_create_params.py +0 -0
  83. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/employers/service_bundle_create_response.py +0 -0
  84. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/employers/service_bundle_list_response.py +0 -0
  85. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/employers/service_bundle_retrieve_response.py +0 -0
  86. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/employers/service_bundle_update_params.py +0 -0
  87. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/employers/service_bundle_update_response.py +0 -0
  88. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/fax_list_providers_response.py +0 -0
  89. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/fax_retrieve_status_response.py +0 -0
  90. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/fax_send_params.py +0 -0
  91. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/fax_send_response.py +0 -0
  92. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/health_check_response.py +0 -0
  93. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/hl7_send_results_params.py +0 -0
  94. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/hl7_send_results_response.py +0 -0
  95. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/integration_check_active_response.py +0 -0
  96. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/integration_list_response.py +0 -0
  97. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/order_create_params.py +0 -0
  98. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/order_retrieve_response.py +0 -0
  99. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/order_retrieve_results_params.py +0 -0
  100. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/order_retrieve_results_response.py +0 -0
  101. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/order_schedule_appointment_params.py +0 -0
  102. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/order_schedule_appointment_response.py +0 -0
  103. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/order_send_for_employee_params.py +0 -0
  104. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/order_update_params.py +0 -0
  105. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/order_update_response.py +0 -0
  106. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/order_update_status_params.py +0 -0
  107. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/order_update_status_response.py +0 -0
  108. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/order_upload_results_params.py +0 -0
  109. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/order_upload_results_response.py +0 -0
  110. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/provider_lookup_params.py +0 -0
  111. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/provider_lookup_response.py +0 -0
  112. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/src/bluehive/types/version_retrieve_response.py +0 -0
  113. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/__init__.py +0 -0
  114. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/api_resources/__init__.py +0 -0
  115. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/api_resources/employers/__init__.py +0 -0
  116. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/api_resources/employers/test_service_bundles.py +0 -0
  117. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/api_resources/test_database.py +0 -0
  118. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/api_resources/test_employees.py +0 -0
  119. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/api_resources/test_employers.py +0 -0
  120. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/api_resources/test_fax.py +0 -0
  121. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/api_resources/test_health.py +0 -0
  122. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/api_resources/test_hl7.py +0 -0
  123. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/api_resources/test_integrations.py +0 -0
  124. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/api_resources/test_orders.py +0 -0
  125. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/api_resources/test_providers.py +0 -0
  126. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/api_resources/test_version.py +0 -0
  127. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/conftest.py +0 -0
  128. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/sample_file.txt +0 -0
  129. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/test_client.py +0 -0
  130. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/test_deepcopy.py +0 -0
  131. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/test_extract_files.py +0 -0
  132. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/test_files.py +0 -0
  133. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/test_models.py +0 -0
  134. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/test_qs.py +0 -0
  135. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/test_required_args.py +0 -0
  136. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/test_response.py +0 -0
  137. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/test_streaming.py +0 -0
  138. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/test_transform.py +0 -0
  139. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/test_utils/test_datetime_parse.py +0 -0
  140. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/test_utils/test_proxy.py +0 -0
  141. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/test_utils/test_typing.py +0 -0
  142. {bluehive-0.1.0a16 → bluehive-0.1.0a18}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.1.0-alpha.18"
3
+ }
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.18 (2025-11-17)
4
+
5
+ Full Changelog: [v0.1.0-alpha.17...v0.1.0-alpha.18](https://github.com/bluehive-health/bluehive-sdk-python/compare/v0.1.0-alpha.17...v0.1.0-alpha.18)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([edd7e3f](https://github.com/bluehive-health/bluehive-sdk-python/commit/edd7e3ff03f933c53e0388578b8731366a8a7c76))
10
+
11
+ ## 0.1.0-alpha.17 (2025-11-12)
12
+
13
+ Full Changelog: [v0.1.0-alpha.16...v0.1.0-alpha.17](https://github.com/bluehive-health/bluehive-sdk-python/compare/v0.1.0-alpha.16...v0.1.0-alpha.17)
14
+
15
+ ### Bug Fixes
16
+
17
+ * **compat:** update signatures of `model_dump` and `model_dump_json` for Pydantic v1 ([e92a55a](https://github.com/bluehive-health/bluehive-sdk-python/commit/e92a55a2f719883ff9ea7f639b4740c5b824e83d))
18
+
3
19
  ## 0.1.0-alpha.16 (2025-11-11)
4
20
 
5
21
  Full Changelog: [v0.1.0-alpha.15...v0.1.0-alpha.16](https://github.com/bluehive-health/bluehive-sdk-python/compare/v0.1.0-alpha.15...v0.1.0-alpha.16)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bluehive
3
- Version: 0.1.0a16
3
+ Version: 0.1.0a18
4
4
  Summary: The official Python library for the bluehive API
5
5
  Project-URL: Homepage, https://github.com/bluehive-health/bluehive-sdk-python
6
6
  Project-URL: Repository, https://github.com/bluehive-health/bluehive-sdk-python
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "bluehive"
3
- version = "0.1.0-alpha.16"
3
+ version = "0.1.0-alpha.18"
4
4
  description = "The official Python library for the bluehive API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -257,15 +257,16 @@ class BaseModel(pydantic.BaseModel):
257
257
  mode: Literal["json", "python"] | str = "python",
258
258
  include: IncEx | None = None,
259
259
  exclude: IncEx | None = None,
260
+ context: Any | None = None,
260
261
  by_alias: bool | None = None,
261
262
  exclude_unset: bool = False,
262
263
  exclude_defaults: bool = False,
263
264
  exclude_none: bool = False,
265
+ exclude_computed_fields: bool = False,
264
266
  round_trip: bool = False,
265
267
  warnings: bool | Literal["none", "warn", "error"] = True,
266
- context: dict[str, Any] | None = None,
267
- serialize_as_any: bool = False,
268
268
  fallback: Callable[[Any], Any] | None = None,
269
+ serialize_as_any: bool = False,
269
270
  ) -> dict[str, Any]:
270
271
  """Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump
271
272
 
@@ -273,16 +274,24 @@ class BaseModel(pydantic.BaseModel):
273
274
 
274
275
  Args:
275
276
  mode: The mode in which `to_python` should run.
276
- If mode is 'json', the dictionary will only contain JSON serializable types.
277
- If mode is 'python', the dictionary may contain any Python objects.
278
- include: A list of fields to include in the output.
279
- exclude: A list of fields to exclude from the output.
277
+ If mode is 'json', the output will only contain JSON serializable types.
278
+ If mode is 'python', the output may contain non-JSON-serializable Python objects.
279
+ include: A set of fields to include in the output.
280
+ exclude: A set of fields to exclude from the output.
281
+ context: Additional context to pass to the serializer.
280
282
  by_alias: Whether to use the field's alias in the dictionary key if defined.
281
- exclude_unset: Whether to exclude fields that are unset or None from the output.
282
- exclude_defaults: Whether to exclude fields that are set to their default value from the output.
283
- exclude_none: Whether to exclude fields that have a value of `None` from the output.
284
- round_trip: Whether to enable serialization and deserialization round-trip support.
285
- warnings: Whether to log warnings when invalid fields are encountered.
283
+ exclude_unset: Whether to exclude fields that have not been explicitly set.
284
+ exclude_defaults: Whether to exclude fields that are set to their default value.
285
+ exclude_none: Whether to exclude fields that have a value of `None`.
286
+ exclude_computed_fields: Whether to exclude computed fields.
287
+ While this can be useful for round-tripping, it is usually recommended to use the dedicated
288
+ `round_trip` parameter instead.
289
+ round_trip: If True, dumped values should be valid as input for non-idempotent types such as Json[T].
290
+ warnings: How to handle serialization errors. False/"none" ignores them, True/"warn" logs errors,
291
+ "error" raises a [`PydanticSerializationError`][pydantic_core.PydanticSerializationError].
292
+ fallback: A function to call when an unknown value is encountered. If not provided,
293
+ a [`PydanticSerializationError`][pydantic_core.PydanticSerializationError] error is raised.
294
+ serialize_as_any: Whether to serialize fields with duck-typing serialization behavior.
286
295
 
287
296
  Returns:
288
297
  A dictionary representation of the model.
@@ -299,6 +308,8 @@ class BaseModel(pydantic.BaseModel):
299
308
  raise ValueError("serialize_as_any is only supported in Pydantic v2")
300
309
  if fallback is not None:
301
310
  raise ValueError("fallback is only supported in Pydantic v2")
311
+ if exclude_computed_fields != False:
312
+ raise ValueError("exclude_computed_fields is only supported in Pydantic v2")
302
313
  dumped = super().dict( # pyright: ignore[reportDeprecated]
303
314
  include=include,
304
315
  exclude=exclude,
@@ -315,15 +326,17 @@ class BaseModel(pydantic.BaseModel):
315
326
  self,
316
327
  *,
317
328
  indent: int | None = None,
329
+ ensure_ascii: bool = False,
318
330
  include: IncEx | None = None,
319
331
  exclude: IncEx | None = None,
332
+ context: Any | None = None,
320
333
  by_alias: bool | None = None,
321
334
  exclude_unset: bool = False,
322
335
  exclude_defaults: bool = False,
323
336
  exclude_none: bool = False,
337
+ exclude_computed_fields: bool = False,
324
338
  round_trip: bool = False,
325
339
  warnings: bool | Literal["none", "warn", "error"] = True,
326
- context: dict[str, Any] | None = None,
327
340
  fallback: Callable[[Any], Any] | None = None,
328
341
  serialize_as_any: bool = False,
329
342
  ) -> str:
@@ -355,6 +368,10 @@ class BaseModel(pydantic.BaseModel):
355
368
  raise ValueError("serialize_as_any is only supported in Pydantic v2")
356
369
  if fallback is not None:
357
370
  raise ValueError("fallback is only supported in Pydantic v2")
371
+ if ensure_ascii != False:
372
+ raise ValueError("ensure_ascii is only supported in Pydantic v2")
373
+ if exclude_computed_fields != False:
374
+ raise ValueError("exclude_computed_fields is only supported in Pydantic v2")
358
375
  return super().json( # type: ignore[reportDeprecated]
359
376
  indent=indent,
360
377
  include=include,
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "bluehive"
4
- __version__ = "0.1.0-alpha.16" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.18" # x-release-please-version
@@ -7,7 +7,22 @@ from pydantic import Field as FieldInfo
7
7
 
8
8
  from .._models import BaseModel
9
9
 
10
- __all__ = ["OrderCreateResponse", "UnionMember0", "UnionMember1", "UnionMember1OrderResult"]
10
+ __all__ = [
11
+ "OrderCreateResponse",
12
+ "UnionMember0",
13
+ "UnionMember0UnavailableService",
14
+ "UnionMember1",
15
+ "UnionMember1OrderResult",
16
+ "UnionMember1UnavailableService",
17
+ ]
18
+
19
+
20
+ class UnionMember0UnavailableService(BaseModel):
21
+ reason: str
22
+
23
+ service_id: str = FieldInfo(alias="serviceId")
24
+
25
+ service_name: Optional[str] = FieldInfo(alias="serviceName", default=None)
11
26
 
12
27
 
13
28
  class UnionMember0(BaseModel):
@@ -21,8 +36,14 @@ class UnionMember0(BaseModel):
21
36
 
22
37
  message: Optional[str] = None
23
38
 
39
+ partial_success: Optional[bool] = FieldInfo(alias="partialSuccess", default=None)
40
+
24
41
  self_pay: Optional[bool] = FieldInfo(alias="selfPay", default=None)
25
42
 
43
+ unavailable_services: Optional[List[UnionMember0UnavailableService]] = FieldInfo(
44
+ alias="unavailableServices", default=None
45
+ )
46
+
26
47
 
27
48
  class UnionMember1OrderResult(BaseModel):
28
49
  order_id: str = FieldInfo(alias="orderId")
@@ -32,6 +53,14 @@ class UnionMember1OrderResult(BaseModel):
32
53
  provider_id: str = FieldInfo(alias="providerId")
33
54
 
34
55
 
56
+ class UnionMember1UnavailableService(BaseModel):
57
+ reason: str
58
+
59
+ service_id: str = FieldInfo(alias="serviceId")
60
+
61
+ service_name: Optional[str] = FieldInfo(alias="serviceName", default=None)
62
+
63
+
35
64
  class UnionMember1(BaseModel):
36
65
  order_results: List[UnionMember1OrderResult] = FieldInfo(alias="orderResults")
37
66
 
@@ -41,5 +70,11 @@ class UnionMember1(BaseModel):
41
70
 
42
71
  message: Optional[str] = None
43
72
 
73
+ partial_success: Optional[bool] = FieldInfo(alias="partialSuccess", default=None)
74
+
75
+ unavailable_services: Optional[List[UnionMember1UnavailableService]] = FieldInfo(
76
+ alias="unavailableServices", default=None
77
+ )
78
+
44
79
 
45
80
  OrderCreateResponse: TypeAlias = Union[UnionMember0, UnionMember1]
@@ -0,0 +1,82 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List, Union, Optional
4
+ from typing_extensions import Literal, TypeAlias
5
+
6
+ from pydantic import Field as FieldInfo
7
+
8
+ from .._models import BaseModel
9
+
10
+ __all__ = [
11
+ "OrderSendForEmployeeResponse",
12
+ "UnionMember0",
13
+ "UnionMember0UnavailableService",
14
+ "UnionMember1",
15
+ "UnionMember1OrderResult",
16
+ "UnionMember1UnavailableService",
17
+ ]
18
+
19
+
20
+ class UnionMember0UnavailableService(BaseModel):
21
+ reason: str
22
+ """Why the service was unavailable"""
23
+
24
+ service_id: str = FieldInfo(alias="serviceId")
25
+
26
+ service_name: Optional[str] = FieldInfo(alias="serviceName", default=None)
27
+
28
+
29
+ class UnionMember0(BaseModel):
30
+ order_id: str = FieldInfo(alias="orderId")
31
+
32
+ order_number: str = FieldInfo(alias="orderNumber")
33
+
34
+ success: Literal[True]
35
+
36
+ message: Optional[str] = None
37
+
38
+ partial_success: Optional[bool] = FieldInfo(alias="partialSuccess", default=None)
39
+ """True when some services were unavailable but order was still created"""
40
+
41
+ unavailable_services: Optional[List[UnionMember0UnavailableService]] = FieldInfo(
42
+ alias="unavailableServices", default=None
43
+ )
44
+ """Services that could not be included in the order"""
45
+
46
+
47
+ class UnionMember1OrderResult(BaseModel):
48
+ order_id: str = FieldInfo(alias="orderId")
49
+
50
+ order_number: str = FieldInfo(alias="orderNumber")
51
+
52
+ provider_id: str = FieldInfo(alias="providerId")
53
+
54
+
55
+ class UnionMember1UnavailableService(BaseModel):
56
+ reason: str
57
+ """Why the service was unavailable"""
58
+
59
+ service_id: str = FieldInfo(alias="serviceId")
60
+
61
+ service_name: Optional[str] = FieldInfo(alias="serviceName", default=None)
62
+
63
+
64
+ class UnionMember1(BaseModel):
65
+ order_results: List[UnionMember1OrderResult] = FieldInfo(alias="orderResults")
66
+
67
+ status: Literal["split"]
68
+
69
+ success: Literal[True]
70
+
71
+ message: Optional[str] = None
72
+
73
+ partial_success: Optional[bool] = FieldInfo(alias="partialSuccess", default=None)
74
+ """True when some services were unavailable but orders were still created"""
75
+
76
+ unavailable_services: Optional[List[UnionMember1UnavailableService]] = FieldInfo(
77
+ alias="unavailableServices", default=None
78
+ )
79
+ """Services that could not be included in any order"""
80
+
81
+
82
+ OrderSendForEmployeeResponse: TypeAlias = Union[UnionMember0, UnionMember1]
@@ -1,3 +0,0 @@
1
- {
2
- ".": "0.1.0-alpha.16"
3
- }
@@ -1,41 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import List, Union, Optional
4
- from typing_extensions import Literal, TypeAlias
5
-
6
- from pydantic import Field as FieldInfo
7
-
8
- from .._models import BaseModel
9
-
10
- __all__ = ["OrderSendForEmployeeResponse", "UnionMember0", "UnionMember1", "UnionMember1OrderResult"]
11
-
12
-
13
- class UnionMember0(BaseModel):
14
- order_id: str = FieldInfo(alias="orderId")
15
-
16
- order_number: str = FieldInfo(alias="orderNumber")
17
-
18
- success: Literal[True]
19
-
20
- message: Optional[str] = None
21
-
22
-
23
- class UnionMember1OrderResult(BaseModel):
24
- order_id: str = FieldInfo(alias="orderId")
25
-
26
- order_number: str = FieldInfo(alias="orderNumber")
27
-
28
- provider_id: str = FieldInfo(alias="providerId")
29
-
30
-
31
- class UnionMember1(BaseModel):
32
- order_results: List[UnionMember1OrderResult] = FieldInfo(alias="orderResults")
33
-
34
- status: Literal["split"]
35
-
36
- success: Literal[True]
37
-
38
- message: Optional[str] = None
39
-
40
-
41
- OrderSendForEmployeeResponse: TypeAlias = Union[UnionMember0, UnionMember1]
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