unitysvc-core 0.2.32__tar.gz → 0.2.33__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 (45) hide show
  1. {unitysvc_core-0.2.32/src/unitysvc_core.egg-info → unitysvc_core-0.2.33}/PKG-INFO +1 -1
  2. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/pyproject.toml +1 -1
  3. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/base.py +5 -0
  4. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33/src/unitysvc_core.egg-info}/PKG-INFO +1 -1
  5. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/tests/test_validators.py +8 -0
  6. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/LICENSE +0 -0
  7. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/README.md +0 -0
  8. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/setup.cfg +0 -0
  9. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/__init__.py +0 -0
  10. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/__init__.py +0 -0
  11. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/documents.py +0 -0
  12. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/listing_data.py +0 -0
  13. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/listing_v1.py +0 -0
  14. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/offering_data.py +0 -0
  15. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/offering_v1.py +0 -0
  16. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/pricing.py +0 -0
  17. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/promotion_data.py +0 -0
  18. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/provider_data.py +0 -0
  19. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/provider_v1.py +0 -0
  20. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/service.py +0 -0
  21. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/service_group_data.py +0 -0
  22. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/validators.py +0 -0
  23. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/py.typed +0 -0
  24. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/schema/base.json +0 -0
  25. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/schema/listing_v1.json +0 -0
  26. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/schema/offering_v1.json +0 -0
  27. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/schema/promotion_v1.json +0 -0
  28. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/schema/provider_v1.json +0 -0
  29. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/schema/service_group_v1.json +0 -0
  30. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/utils.py +0 -0
  31. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/validator.py +0 -0
  32. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core.egg-info/SOURCES.txt +0 -0
  33. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core.egg-info/dependency_links.txt +0 -0
  34. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core.egg-info/requires.txt +0 -0
  35. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core.egg-info/top_level.txt +0 -0
  36. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/tests/test_access_interface_routing.py +0 -0
  37. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/tests/test_effective_price.py +0 -0
  38. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/tests/test_hidden_path_skip.py +0 -0
  39. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/tests/test_offering_data.py +0 -0
  40. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/tests/test_pricing.py +0 -0
  41. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/tests/test_provider_account_rate_limits.py +0 -0
  42. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/tests/test_service_group.py +0 -0
  43. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/tests/test_service_status.py +0 -0
  44. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/tests/test_utils.py +0 -0
  45. {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/tests/test_validator.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: unitysvc-core
3
- Version: 0.2.32
3
+ Version: 0.2.33
4
4
  Summary: Shared data models and validation helpers for UnitySVC packages
5
5
  Author-email: Bo Peng <bo.peng@unitysvc.com>
6
6
  Maintainer-email: Bo Peng <bo.peng@unitysvc.com>
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "unitysvc-core"
7
- version = "0.2.32"
7
+ version = "0.2.33"
8
8
  description = "Shared data models and validation helpers for UnitySVC packages"
9
9
  readme = "README.md"
10
10
  authors = [{ name = "Bo Peng", email = "bo.peng@unitysvc.com" }]
@@ -281,6 +281,11 @@ class RequestTransformEnum(StrEnum):
281
281
  # the gateway auto-detects the incoming format and translates in-process only
282
282
  # when needed (#923/#929/#1400). Replaces the earlier ``llm_translate`` key.
283
283
  llm_translator = "llm_translator"
284
+ # Normalize a `msg` envelope (title, body, links, attachment, format) for
285
+ # the destination channel's declared capabilities, optionally mapping the
286
+ # result into the upstream body. Runs before body_transformer, which can
287
+ # template the normalized msg (unitysvc/unitysvc#2650).
288
+ msg_transformer = "msg_transformer"
284
289
 
285
290
 
286
291
  class ServiceTypeEnum(StrEnum):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: unitysvc-core
3
- Version: 0.2.32
3
+ Version: 0.2.33
4
4
  Summary: Shared data models and validation helpers for UnitySVC packages
5
5
  Author-email: Bo Peng <bo.peng@unitysvc.com>
6
6
  Maintainer-email: Bo Peng <bo.peng@unitysvc.com>
@@ -675,3 +675,11 @@ class TestPlatformListingBaseUrls:
675
675
  def test_requires_the_address(self, value) -> None:
676
676
  errors = validate_platform_listing_base_urls(value)
677
677
  assert len(errors) == 1 and "/p/<route>" in errors[0]
678
+
679
+
680
+ def test_request_transformer_enum_has_msg_transformer():
681
+ """The gateway's msg_transformer key must be a valid request_transformer
682
+ key, or the backend rejects routes that use it (unitysvc/unitysvc#2650)."""
683
+ from unitysvc_core.models import RequestTransformEnum
684
+
685
+ assert RequestTransformEnum("msg_transformer") is RequestTransformEnum.msg_transformer
File without changes
File without changes
File without changes