carrier-python 0.1.27__tar.gz → 0.1.29__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 (31) hide show
  1. {carrier_python-0.1.27 → carrier_python-0.1.29}/PKG-INFO +1 -1
  2. {carrier_python-0.1.27 → carrier_python-0.1.29}/pyproject.toml +1 -1
  3. {carrier_python-0.1.27 → carrier_python-0.1.29}/src/carrier/data/cli.json +11 -0
  4. {carrier_python-0.1.27 → carrier_python-0.1.29}/src/carrier/data/operations.json +15 -7
  5. {carrier_python-0.1.27 → carrier_python-0.1.29}/src/carrier/operation_ids.py +1 -0
  6. {carrier_python-0.1.27 → carrier_python-0.1.29}/src/carrier/version.py +1 -1
  7. {carrier_python-0.1.27 → carrier_python-0.1.29}/src/carrier_python.egg-info/PKG-INFO +1 -1
  8. {carrier_python-0.1.27 → carrier_python-0.1.29}/tests/test_surface.py +1 -1
  9. {carrier_python-0.1.27 → carrier_python-0.1.29}/README.md +0 -0
  10. {carrier_python-0.1.27 → carrier_python-0.1.29}/setup.cfg +0 -0
  11. {carrier_python-0.1.27 → carrier_python-0.1.29}/src/carrier/__init__.py +0 -0
  12. {carrier_python-0.1.27 → carrier_python-0.1.29}/src/carrier/adapters.py +0 -0
  13. {carrier_python-0.1.27 → carrier_python-0.1.29}/src/carrier/catalog.py +0 -0
  14. {carrier_python-0.1.27 → carrier_python-0.1.29}/src/carrier/cli.py +0 -0
  15. {carrier_python-0.1.27 → carrier_python-0.1.29}/src/carrier/client.py +0 -0
  16. {carrier_python-0.1.27 → carrier_python-0.1.29}/src/carrier/errors.py +0 -0
  17. {carrier_python-0.1.27 → carrier_python-0.1.29}/src/carrier/http.py +0 -0
  18. {carrier_python-0.1.27 → carrier_python-0.1.29}/src/carrier/idempotency.py +0 -0
  19. {carrier_python-0.1.27 → carrier_python-0.1.29}/src/carrier/mcp.py +0 -0
  20. {carrier_python-0.1.27 → carrier_python-0.1.29}/src/carrier/models.py +0 -0
  21. {carrier_python-0.1.27 → carrier_python-0.1.29}/src/carrier/operations.py +0 -0
  22. {carrier_python-0.1.27 → carrier_python-0.1.29}/src/carrier/py.typed +0 -0
  23. {carrier_python-0.1.27 → carrier_python-0.1.29}/src/carrier/records.py +0 -0
  24. {carrier_python-0.1.27 → carrier_python-0.1.29}/src/carrier/resources.py +0 -0
  25. {carrier_python-0.1.27 → carrier_python-0.1.29}/src/carrier/signature.py +0 -0
  26. {carrier_python-0.1.27 → carrier_python-0.1.29}/src/carrier_python.egg-info/SOURCES.txt +0 -0
  27. {carrier_python-0.1.27 → carrier_python-0.1.29}/src/carrier_python.egg-info/dependency_links.txt +0 -0
  28. {carrier_python-0.1.27 → carrier_python-0.1.29}/src/carrier_python.egg-info/top_level.txt +0 -0
  29. {carrier_python-0.1.27 → carrier_python-0.1.29}/tests/test_client.py +0 -0
  30. {carrier_python-0.1.27 → carrier_python-0.1.29}/tests/test_issuance.py +0 -0
  31. {carrier_python-0.1.27 → carrier_python-0.1.29}/tests/test_signature.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: carrier-python
3
- Version: 0.1.27
3
+ Version: 0.1.29
4
4
  Summary: Python client for the Carrier API, MCP server, and CLI.
5
5
  Author: Lifecycle Innovations Limited
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "carrier-python"
7
- version = "0.1.27"
7
+ version = "0.1.29"
8
8
  description = "Python client for the Carrier API, MCP server, and CLI."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -2093,6 +2093,17 @@
2093
2093
  }
2094
2094
  ]
2095
2095
  },
2096
+ {
2097
+ "invocation": "carrier billing ai-credits",
2098
+ "domain": "billing",
2099
+ "summary": "Read your organization's AI credit wallet in EUR: balance_eur and available_eur.",
2100
+ "write": false,
2101
+ "transport": "mcp",
2102
+ "tool": "ai_credit_balance",
2103
+ "restMethod": null,
2104
+ "restPath": null,
2105
+ "options": []
2106
+ },
2096
2107
  {
2097
2108
  "invocation": "carrier billing credits",
2098
2109
  "domain": "billing",
@@ -773,7 +773,7 @@
773
773
  "method": "POST",
774
774
  "path": "/v1/subscribers/{iccid}/sms",
775
775
  "tag": "Subscribers",
776
- "summary": "Send an MT SMS to a subscriber (admin only)",
776
+ "summary": "Send an MT SMS to a subscriber",
777
777
  "security": "bearer",
778
778
  "body": true,
779
779
  "bodyRequired": true,
@@ -784,12 +784,7 @@
784
784
  }
785
785
  ],
786
786
  "queryParams": [],
787
- "headerParams": [
788
- {
789
- "name": "X-Confirm-Token",
790
- "required": false
791
- }
792
- ]
787
+ "headerParams": []
793
788
  },
794
789
  {
795
790
  "id": "fleet_health",
@@ -1948,6 +1943,19 @@
1948
1943
  ],
1949
1944
  "headerParams": []
1950
1945
  },
1946
+ {
1947
+ "id": "ai_credit_balance",
1948
+ "method": "GET",
1949
+ "path": "/v1/ai/wallet",
1950
+ "tag": "AI",
1951
+ "summary": "Read your organization's AI credits in EUR",
1952
+ "security": "bearer",
1953
+ "body": false,
1954
+ "bodyRequired": false,
1955
+ "pathParams": [],
1956
+ "queryParams": [],
1957
+ "headerParams": []
1958
+ },
1951
1959
  {
1952
1960
  "id": "ai_chat",
1953
1961
  "method": "POST",
@@ -124,6 +124,7 @@ OperationId = Literal[
124
124
  "set_network_default",
125
125
  "plan_network_default",
126
126
  "carrier_webhook_config",
127
+ "ai_credit_balance",
127
128
  "ai_chat",
128
129
  "ai_insights",
129
130
  "ai_quota",
@@ -1,3 +1,3 @@
1
1
  """Package version. Kept beside the HTTP client so the user agent stays in sync."""
2
2
 
3
- __version__ = "0.1.27"
3
+ __version__ = "0.1.29"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: carrier-python
3
- Version: 0.1.27
3
+ Version: 0.1.29
4
4
  Summary: Python client for the Carrier API, MCP server, and CLI.
5
5
  Author: Lifecycle Innovations Limited
6
6
  License: MIT
@@ -201,7 +201,7 @@ class SurfaceTest(unittest.TestCase):
201
201
  package = Path(__file__).resolve().parents[1]
202
202
  with (package / "pyproject.toml").open("rb") as handle:
203
203
  version = tomllib.load(handle)["project"]["version"]
204
- self.assertEqual(version, "0.1.27")
204
+ self.assertEqual(version, "0.1.29")
205
205
  self.assertEqual(version, __version__)
206
206
  with (package / "uv.lock").open("rb") as handle:
207
207
  lock = tomllib.load(handle)