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.
- {unitysvc_core-0.2.32/src/unitysvc_core.egg-info → unitysvc_core-0.2.33}/PKG-INFO +1 -1
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/pyproject.toml +1 -1
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/base.py +5 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33/src/unitysvc_core.egg-info}/PKG-INFO +1 -1
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/tests/test_validators.py +8 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/LICENSE +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/README.md +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/setup.cfg +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/__init__.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/__init__.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/documents.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/listing_data.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/listing_v1.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/offering_data.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/offering_v1.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/pricing.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/promotion_data.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/provider_data.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/provider_v1.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/service.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/service_group_data.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/validators.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/py.typed +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/schema/base.json +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/schema/listing_v1.json +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/schema/offering_v1.json +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/schema/promotion_v1.json +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/schema/provider_v1.json +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/schema/service_group_v1.json +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/utils.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/validator.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core.egg-info/SOURCES.txt +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core.egg-info/dependency_links.txt +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core.egg-info/requires.txt +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core.egg-info/top_level.txt +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/tests/test_access_interface_routing.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/tests/test_effective_price.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/tests/test_hidden_path_skip.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/tests/test_offering_data.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/tests/test_pricing.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/tests/test_provider_account_rate_limits.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/tests/test_service_group.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/tests/test_service_status.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/tests/test_utils.py +0 -0
- {unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/tests/test_validator.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "unitysvc-core"
|
|
7
|
-
version = "0.2.
|
|
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):
|
|
@@ -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
|
|
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
|
{unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/models/service_group_data.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core/schema/service_group_v1.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{unitysvc_core-0.2.32 → unitysvc_core-0.2.33}/src/unitysvc_core.egg-info/dependency_links.txt
RENAMED
|
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
|