carrier-python 0.1.31__tar.gz → 0.1.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 (31) hide show
  1. {carrier_python-0.1.31 → carrier_python-0.1.33}/PKG-INFO +2 -2
  2. {carrier_python-0.1.31 → carrier_python-0.1.33}/README.md +1 -1
  3. {carrier_python-0.1.31 → carrier_python-0.1.33}/pyproject.toml +1 -1
  4. {carrier_python-0.1.31 → carrier_python-0.1.33}/src/carrier/data/cli.json +22 -0
  5. {carrier_python-0.1.31 → carrier_python-0.1.33}/src/carrier/mcp.py +1 -1
  6. {carrier_python-0.1.31 → carrier_python-0.1.33}/src/carrier/version.py +1 -1
  7. {carrier_python-0.1.31 → carrier_python-0.1.33}/src/carrier_python.egg-info/PKG-INFO +2 -2
  8. {carrier_python-0.1.31 → carrier_python-0.1.33}/tests/test_surface.py +1 -1
  9. {carrier_python-0.1.31 → carrier_python-0.1.33}/setup.cfg +0 -0
  10. {carrier_python-0.1.31 → carrier_python-0.1.33}/src/carrier/__init__.py +0 -0
  11. {carrier_python-0.1.31 → carrier_python-0.1.33}/src/carrier/adapters.py +0 -0
  12. {carrier_python-0.1.31 → carrier_python-0.1.33}/src/carrier/catalog.py +0 -0
  13. {carrier_python-0.1.31 → carrier_python-0.1.33}/src/carrier/cli.py +0 -0
  14. {carrier_python-0.1.31 → carrier_python-0.1.33}/src/carrier/client.py +0 -0
  15. {carrier_python-0.1.31 → carrier_python-0.1.33}/src/carrier/data/operations.json +0 -0
  16. {carrier_python-0.1.31 → carrier_python-0.1.33}/src/carrier/errors.py +0 -0
  17. {carrier_python-0.1.31 → carrier_python-0.1.33}/src/carrier/http.py +0 -0
  18. {carrier_python-0.1.31 → carrier_python-0.1.33}/src/carrier/idempotency.py +0 -0
  19. {carrier_python-0.1.31 → carrier_python-0.1.33}/src/carrier/models.py +0 -0
  20. {carrier_python-0.1.31 → carrier_python-0.1.33}/src/carrier/operation_ids.py +0 -0
  21. {carrier_python-0.1.31 → carrier_python-0.1.33}/src/carrier/operations.py +0 -0
  22. {carrier_python-0.1.31 → carrier_python-0.1.33}/src/carrier/py.typed +0 -0
  23. {carrier_python-0.1.31 → carrier_python-0.1.33}/src/carrier/records.py +0 -0
  24. {carrier_python-0.1.31 → carrier_python-0.1.33}/src/carrier/resources.py +0 -0
  25. {carrier_python-0.1.31 → carrier_python-0.1.33}/src/carrier/signature.py +0 -0
  26. {carrier_python-0.1.31 → carrier_python-0.1.33}/src/carrier_python.egg-info/SOURCES.txt +0 -0
  27. {carrier_python-0.1.31 → carrier_python-0.1.33}/src/carrier_python.egg-info/dependency_links.txt +0 -0
  28. {carrier_python-0.1.31 → carrier_python-0.1.33}/src/carrier_python.egg-info/top_level.txt +0 -0
  29. {carrier_python-0.1.31 → carrier_python-0.1.33}/tests/test_client.py +0 -0
  30. {carrier_python-0.1.31 → carrier_python-0.1.33}/tests/test_issuance.py +0 -0
  31. {carrier_python-0.1.31 → carrier_python-0.1.33}/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.31
3
+ Version: 0.1.33
4
4
  Summary: Python client for the Carrier API, MCP server, and CLI.
5
5
  Author: Lifecycle Innovations Limited
6
6
  License: MIT
@@ -73,7 +73,7 @@ issued = carrier.call(
73
73
  ```python
74
74
  from carrier import Mcp, Cli, rest_tools
75
75
 
76
- session = Mcp(os.environ["ESIMVAULT_API_TOKEN"]) # ?TOKEN= on https://mcp.carrier.llc/mcp
76
+ session = Mcp(os.environ["CARRIER_OCS_API_TOKEN"]) # ?TOKEN= on https://mcp.carrier.llc/mcp
77
77
  tools = session.list_tools()
78
78
  session.call_tool("list_subscribers", {"limit": 5})
79
79
 
@@ -58,7 +58,7 @@ issued = carrier.call(
58
58
  ```python
59
59
  from carrier import Mcp, Cli, rest_tools
60
60
 
61
- session = Mcp(os.environ["ESIMVAULT_API_TOKEN"]) # ?TOKEN= on https://mcp.carrier.llc/mcp
61
+ session = Mcp(os.environ["CARRIER_OCS_API_TOKEN"]) # ?TOKEN= on https://mcp.carrier.llc/mcp
62
62
  tools = session.list_tools()
63
63
  session.call_tool("list_subscribers", {"limit": 5})
64
64
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "carrier-python"
7
- version = "0.1.31"
7
+ version = "0.1.33"
8
8
  description = "Python client for the Carrier API, MCP server, and CLI."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -2205,6 +2205,28 @@
2205
2205
  }
2206
2206
  ]
2207
2207
  },
2208
+ {
2209
+ "invocation": "carrier ai-wallet auto-topup",
2210
+ "domain": "ai-wallet",
2211
+ "summary": "Read or change automatic EUR replenishment for the separate AI-credit wallet.",
2212
+ "write": true,
2213
+ "transport": "mcp",
2214
+ "tool": "ai_wallet_auto_topup",
2215
+ "restMethod": null,
2216
+ "restPath": null,
2217
+ "options": [
2218
+ {
2219
+ "flags": "--enabled <bool>",
2220
+ "description": "enabled (boolean).",
2221
+ "required": false
2222
+ },
2223
+ {
2224
+ "flags": "--amount-cents <n>",
2225
+ "description": "amount cents (number).",
2226
+ "required": false
2227
+ }
2228
+ ]
2229
+ },
2208
2230
  {
2209
2231
  "invocation": "carrier stripe balance",
2210
2232
  "domain": "stripe",
@@ -34,7 +34,7 @@ McpTransport = Callable[[McpRequest], tuple[int, Mapping[str, str], bytes]]
34
34
  class Mcp:
35
35
  """Client for `https://mcp.carrier.llc/mcp`.
36
36
 
37
- `auth="token"` sends the eSIMVault reseller token as `?TOKEN=`.
37
+ `auth="token"` sends the OCS reseller token as `?TOKEN=`.
38
38
  `auth="bearer"` sends an OAuth access token or a Clerk organization API key.
39
39
  """
40
40
 
@@ -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.31"
3
+ __version__ = "0.1.33"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: carrier-python
3
- Version: 0.1.31
3
+ Version: 0.1.33
4
4
  Summary: Python client for the Carrier API, MCP server, and CLI.
5
5
  Author: Lifecycle Innovations Limited
6
6
  License: MIT
@@ -73,7 +73,7 @@ issued = carrier.call(
73
73
  ```python
74
74
  from carrier import Mcp, Cli, rest_tools
75
75
 
76
- session = Mcp(os.environ["ESIMVAULT_API_TOKEN"]) # ?TOKEN= on https://mcp.carrier.llc/mcp
76
+ session = Mcp(os.environ["CARRIER_OCS_API_TOKEN"]) # ?TOKEN= on https://mcp.carrier.llc/mcp
77
77
  tools = session.list_tools()
78
78
  session.call_tool("list_subscribers", {"limit": 5})
79
79
 
@@ -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.31")
204
+ self.assertEqual(version, "0.1.33")
205
205
  self.assertEqual(version, __version__)
206
206
  with (package / "uv.lock").open("rb") as handle:
207
207
  lock = tomllib.load(handle)