reconify-python 2.0.0__tar.gz → 2.1.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 (35) hide show
  1. {reconify_python-2.0.0 → reconify_python-2.1.0}/CHANGELOG.md +5 -0
  2. {reconify_python-2.0.0 → reconify_python-2.1.0}/PKG-INFO +1 -1
  3. {reconify_python-2.0.0 → reconify_python-2.1.0}/UPGRADING.md +19 -0
  4. {reconify_python-2.0.0 → reconify_python-2.1.0}/pyproject.toml +1 -1
  5. {reconify_python-2.0.0 → reconify_python-2.1.0}/src/reconify/models.py +1 -0
  6. {reconify_python-2.0.0 → reconify_python-2.1.0}/tests/test_client.py +2 -0
  7. {reconify_python-2.0.0 → reconify_python-2.1.0}/uv.lock +1 -1
  8. {reconify_python-2.0.0 → reconify_python-2.1.0}/.bumpversion.cfg +0 -0
  9. {reconify_python-2.0.0 → reconify_python-2.1.0}/.conductor/settings.toml +0 -0
  10. {reconify_python-2.0.0 → reconify_python-2.1.0}/.github/workflows/ci.yml +0 -0
  11. {reconify_python-2.0.0 → reconify_python-2.1.0}/.github/workflows/release.yml +0 -0
  12. {reconify_python-2.0.0 → reconify_python-2.1.0}/.github/workflows/sync-contract.yml +0 -0
  13. {reconify_python-2.0.0 → reconify_python-2.1.0}/.gitignore +0 -0
  14. {reconify_python-2.0.0 → reconify_python-2.1.0}/.openapi-contract.json +0 -0
  15. {reconify_python-2.0.0 → reconify_python-2.1.0}/AGENTS.md +0 -0
  16. {reconify_python-2.0.0 → reconify_python-2.1.0}/LICENSE +0 -0
  17. {reconify_python-2.0.0 → reconify_python-2.1.0}/README.md +0 -0
  18. {reconify_python-2.0.0 → reconify_python-2.1.0}/context7.json +0 -0
  19. {reconify_python-2.0.0 → reconify_python-2.1.0}/reports/api-error-data-report.md +0 -0
  20. {reconify_python-2.0.0 → reconify_python-2.1.0}/scripts/fetch_contract.py +0 -0
  21. {reconify_python-2.0.0 → reconify_python-2.1.0}/src/reconify/__init__.py +0 -0
  22. {reconify_python-2.0.0 → reconify_python-2.1.0}/src/reconify/client.py +0 -0
  23. {reconify_python-2.0.0 → reconify_python-2.1.0}/src/reconify/errors.py +0 -0
  24. {reconify_python-2.0.0 → reconify_python-2.1.0}/src/reconify/pagination.py +0 -0
  25. {reconify_python-2.0.0 → reconify_python-2.1.0}/src/reconify/py.typed +0 -0
  26. {reconify_python-2.0.0 → reconify_python-2.1.0}/src/reconify/resources/__init__.py +0 -0
  27. {reconify_python-2.0.0 → reconify_python-2.1.0}/src/reconify/resources/base.py +0 -0
  28. {reconify_python-2.0.0 → reconify_python-2.1.0}/src/reconify/resources/events.py +0 -0
  29. {reconify_python-2.0.0 → reconify_python-2.1.0}/src/reconify/resources/ingestion.py +0 -0
  30. {reconify_python-2.0.0 → reconify_python-2.1.0}/src/reconify/resources/issues.py +0 -0
  31. {reconify_python-2.0.0 → reconify_python-2.1.0}/src/reconify/resources/metadata.py +0 -0
  32. {reconify_python-2.0.0 → reconify_python-2.1.0}/src/reconify/resources/organization.py +0 -0
  33. {reconify_python-2.0.0 → reconify_python-2.1.0}/src/reconify/transport.py +0 -0
  34. {reconify_python-2.0.0 → reconify_python-2.1.0}/tests/test_openapi_coverage.py +0 -0
  35. {reconify_python-2.0.0 → reconify_python-2.1.0}/tests/test_pagination.py +0 -0
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.1.0
4
+
5
+ - Added optional `correlation_id` support to the typed monitoring event request
6
+ model and ingestion serialization.
7
+
3
8
  ## 1.0.0
4
9
 
5
10
  - Rebuilt the client for the current 13-operation public monitoring API.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: reconify-python
3
- Version: 2.0.0
3
+ Version: 2.1.0
4
4
  Summary: Typed Python client for the Reconify Public API
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -15,3 +15,22 @@ Use these resources:
15
15
  Python models use snake_case fields and preserve unknown enum values through
16
16
  tolerant string enums. Existing v1 clients can continue using `/v1`; v2
17
17
  clients must use the v2 artifact and endpoint.
18
+
19
+ ## Upgrading to 2.1.0
20
+
21
+ The 2.1.0 client adds the optional `correlation_id` field to
22
+ `MonitoringEvent`. Use it when the same transaction spans services that report
23
+ different references:
24
+
25
+ ```python
26
+ MonitoringEvent(
27
+ flow="payment_to_wallet",
28
+ type="payment.succeeded",
29
+ reference="order-123",
30
+ entity_id="wallet-123",
31
+ correlation_id="checkout-123",
32
+ )
33
+ ```
34
+
35
+ The value is sent as event metadata and does not change operation grouping or
36
+ evaluation behavior.
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "reconify-python"
7
- version = "2.0.0"
7
+ version = "2.1.0"
8
8
  description = "Typed Python client for the Reconify Public API"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -131,6 +131,7 @@ class MonitoringEvent(RequestModel):
131
131
  entity_id: str
132
132
  occurred_at: datetime | None = None
133
133
  amount: str | None = None
134
+ correlation_id: str | None = None
134
135
  currency: str | None = None
135
136
  data: MonitoringEventData | None = None
136
137
  metadata: dict[str, str | int | float | bool] | None = None
@@ -92,6 +92,7 @@ def test_ingestion_serializes_typed_body() -> None:
92
92
  reference="order-1",
93
93
  entity_id="wallet-1",
94
94
  amount="10.00",
95
+ correlation_id="checkout-123",
95
96
  currency="USD",
96
97
  )
97
98
  ]
@@ -104,6 +105,7 @@ def test_ingestion_serializes_typed_body() -> None:
104
105
  client.ingestion.ingest_monitoring_events(body)
105
106
 
106
107
  assert json.loads(requests[0].content)["events"][0]["entity_id"] == "wallet-1"
108
+ assert json.loads(requests[0].content)["events"][0]["correlation_id"] == "checkout-123"
107
109
  assert requests[0].url.path == "/v2/events"
108
110
 
109
111
 
@@ -567,7 +567,7 @@ wheels = [
567
567
 
568
568
  [[package]]
569
569
  name = "reconify-python"
570
- version = "1.0.0"
570
+ version = "2.1.0"
571
571
  source = { editable = "." }
572
572
  dependencies = [
573
573
  { name = "httpx" },
File without changes