carrier-python 0.1.38__tar.gz → 0.1.40__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.38 → carrier_python-0.1.40}/PKG-INFO +1 -1
  2. {carrier_python-0.1.38 → carrier_python-0.1.40}/pyproject.toml +1 -1
  3. {carrier_python-0.1.38 → carrier_python-0.1.40}/src/carrier/data/cli.json +464 -3
  4. {carrier_python-0.1.38 → carrier_python-0.1.40}/src/carrier/version.py +1 -1
  5. {carrier_python-0.1.38 → carrier_python-0.1.40}/src/carrier_python.egg-info/PKG-INFO +1 -1
  6. {carrier_python-0.1.38 → carrier_python-0.1.40}/tests/test_surface.py +1 -1
  7. {carrier_python-0.1.38 → carrier_python-0.1.40}/README.md +0 -0
  8. {carrier_python-0.1.38 → carrier_python-0.1.40}/setup.cfg +0 -0
  9. {carrier_python-0.1.38 → carrier_python-0.1.40}/src/carrier/__init__.py +0 -0
  10. {carrier_python-0.1.38 → carrier_python-0.1.40}/src/carrier/adapters.py +0 -0
  11. {carrier_python-0.1.38 → carrier_python-0.1.40}/src/carrier/catalog.py +0 -0
  12. {carrier_python-0.1.38 → carrier_python-0.1.40}/src/carrier/cli.py +0 -0
  13. {carrier_python-0.1.38 → carrier_python-0.1.40}/src/carrier/client.py +0 -0
  14. {carrier_python-0.1.38 → carrier_python-0.1.40}/src/carrier/data/operations.json +0 -0
  15. {carrier_python-0.1.38 → carrier_python-0.1.40}/src/carrier/errors.py +0 -0
  16. {carrier_python-0.1.38 → carrier_python-0.1.40}/src/carrier/http.py +0 -0
  17. {carrier_python-0.1.38 → carrier_python-0.1.40}/src/carrier/idempotency.py +0 -0
  18. {carrier_python-0.1.38 → carrier_python-0.1.40}/src/carrier/mcp.py +0 -0
  19. {carrier_python-0.1.38 → carrier_python-0.1.40}/src/carrier/models.py +0 -0
  20. {carrier_python-0.1.38 → carrier_python-0.1.40}/src/carrier/operation_ids.py +0 -0
  21. {carrier_python-0.1.38 → carrier_python-0.1.40}/src/carrier/operations.py +0 -0
  22. {carrier_python-0.1.38 → carrier_python-0.1.40}/src/carrier/py.typed +0 -0
  23. {carrier_python-0.1.38 → carrier_python-0.1.40}/src/carrier/records.py +0 -0
  24. {carrier_python-0.1.38 → carrier_python-0.1.40}/src/carrier/resources.py +0 -0
  25. {carrier_python-0.1.38 → carrier_python-0.1.40}/src/carrier/signature.py +0 -0
  26. {carrier_python-0.1.38 → carrier_python-0.1.40}/src/carrier_python.egg-info/SOURCES.txt +0 -0
  27. {carrier_python-0.1.38 → carrier_python-0.1.40}/src/carrier_python.egg-info/dependency_links.txt +0 -0
  28. {carrier_python-0.1.38 → carrier_python-0.1.40}/src/carrier_python.egg-info/top_level.txt +0 -0
  29. {carrier_python-0.1.38 → carrier_python-0.1.40}/tests/test_client.py +0 -0
  30. {carrier_python-0.1.38 → carrier_python-0.1.40}/tests/test_issuance.py +0 -0
  31. {carrier_python-0.1.38 → carrier_python-0.1.40}/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.38
3
+ Version: 0.1.40
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.38"
7
+ version = "0.1.40"
8
8
  description = "Python client for the Carrier API, MCP server, and CLI."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -1911,7 +1911,7 @@
1911
1911
  },
1912
1912
  {
1913
1913
  "flags": "--entitlement-token <token>",
1914
- "description": "The right issued for this external_ref by create_benefit_entitlement, 1 to 200 characters. Required when the campaign requires a right.",
1914
+ "description": "The right issued for this external_ref by create_benefit_entitlement, 1 to 200 characters.",
1915
1915
  "required": false
1916
1916
  }
1917
1917
  ]
@@ -2183,7 +2183,7 @@
2183
2183
  "options": [
2184
2184
  {
2185
2185
  "flags": "--pack <pack>",
2186
- "description": "Pack id (pack_25/pack_50/pack_100/pack_500/pack_1000/pack_2500/pack_5000) or exact EUR-cents amount.",
2186
+ "description": "Pack id (pack_25/pack_50/pack_100/pack_500/pack_1000/pack_2500/pack_5000) or exact USD-cents amount.",
2187
2187
  "required": false
2188
2188
  }
2189
2189
  ]
@@ -2200,7 +2200,7 @@
2200
2200
  "options": [
2201
2201
  {
2202
2202
  "flags": "--pack-cents <n>",
2203
- "description": "Override pack amount in EUR cents (must match a catalog pack).",
2203
+ "description": "Override pack amount in USD cents (must match a catalog pack).",
2204
2204
  "required": false
2205
2205
  }
2206
2206
  ]
@@ -3308,5 +3308,466 @@
3308
3308
  "required": true
3309
3309
  }
3310
3310
  ]
3311
+ },
3312
+ {
3313
+ "invocation": "carrier storefronts list",
3314
+ "domain": "storefronts",
3315
+ "summary": "Call the caller's storefront operation: GET /v1/storefronts.",
3316
+ "write": false,
3317
+ "transport": "mcp",
3318
+ "tool": "list_storefronts",
3319
+ "restMethod": null,
3320
+ "restPath": null,
3321
+ "options": []
3322
+ },
3323
+ {
3324
+ "invocation": "carrier storefronts get",
3325
+ "domain": "storefronts",
3326
+ "summary": "Call the caller's storefront operation: GET /v1/storefronts/{storefront_id}.",
3327
+ "write": false,
3328
+ "transport": "mcp",
3329
+ "tool": "get_storefront",
3330
+ "restMethod": null,
3331
+ "restPath": null,
3332
+ "options": [
3333
+ {
3334
+ "flags": "--storefront-id <id>",
3335
+ "description": "storefront id (string).",
3336
+ "required": true
3337
+ }
3338
+ ]
3339
+ },
3340
+ {
3341
+ "invocation": "carrier storefronts create",
3342
+ "domain": "storefronts",
3343
+ "summary": "Call the caller's storefront operation: POST /v1/storefronts.",
3344
+ "write": true,
3345
+ "transport": "mcp",
3346
+ "tool": "create_storefront",
3347
+ "restMethod": null,
3348
+ "restPath": null,
3349
+ "options": [
3350
+ {
3351
+ "flags": "--input <input>",
3352
+ "description": "input (json).",
3353
+ "required": false
3354
+ },
3355
+ {
3356
+ "flags": "--confirm-token <token>",
3357
+ "description": "confirm token (string).",
3358
+ "required": false
3359
+ },
3360
+ {
3361
+ "flags": "--idempotency-key <key>",
3362
+ "description": "idempotency key (string).",
3363
+ "required": true
3364
+ }
3365
+ ]
3366
+ },
3367
+ {
3368
+ "invocation": "carrier storefronts update",
3369
+ "domain": "storefronts",
3370
+ "summary": "Call the caller's storefront operation: PATCH /v1/storefronts/{storefront_id}.",
3371
+ "write": true,
3372
+ "transport": "mcp",
3373
+ "tool": "update_storefront",
3374
+ "restMethod": null,
3375
+ "restPath": null,
3376
+ "options": [
3377
+ {
3378
+ "flags": "--storefront-id <id>",
3379
+ "description": "storefront id (string).",
3380
+ "required": true
3381
+ },
3382
+ {
3383
+ "flags": "--input <input>",
3384
+ "description": "input (json).",
3385
+ "required": false
3386
+ },
3387
+ {
3388
+ "flags": "--confirm-token <token>",
3389
+ "description": "confirm token (string).",
3390
+ "required": false
3391
+ },
3392
+ {
3393
+ "flags": "--idempotency-key <key>",
3394
+ "description": "idempotency key (string).",
3395
+ "required": false
3396
+ }
3397
+ ]
3398
+ },
3399
+ {
3400
+ "invocation": "carrier storefronts unpublish",
3401
+ "domain": "storefronts",
3402
+ "summary": "Call the caller's storefront operation: POST /v1/storefronts/{storefront_id}/unpublish.",
3403
+ "write": true,
3404
+ "transport": "mcp",
3405
+ "tool": "unpublish_storefront",
3406
+ "restMethod": null,
3407
+ "restPath": null,
3408
+ "options": [
3409
+ {
3410
+ "flags": "--storefront-id <id>",
3411
+ "description": "storefront id (string).",
3412
+ "required": true
3413
+ },
3414
+ {
3415
+ "flags": "--input <input>",
3416
+ "description": "input (json).",
3417
+ "required": false
3418
+ },
3419
+ {
3420
+ "flags": "--confirm-token <token>",
3421
+ "description": "confirm token (string).",
3422
+ "required": false
3423
+ },
3424
+ {
3425
+ "flags": "--idempotency-key <key>",
3426
+ "description": "idempotency key (string).",
3427
+ "required": false
3428
+ }
3429
+ ]
3430
+ },
3431
+ {
3432
+ "invocation": "carrier storefronts plan upsert",
3433
+ "domain": "storefronts",
3434
+ "summary": "Call the caller's storefront operation: POST /v1/storefronts/{storefront_id}/plans.",
3435
+ "write": true,
3436
+ "transport": "mcp",
3437
+ "tool": "upsert_storefront_plan",
3438
+ "restMethod": null,
3439
+ "restPath": null,
3440
+ "options": [
3441
+ {
3442
+ "flags": "--storefront-id <id>",
3443
+ "description": "storefront id (string).",
3444
+ "required": true
3445
+ },
3446
+ {
3447
+ "flags": "--input <input>",
3448
+ "description": "input (json).",
3449
+ "required": false
3450
+ },
3451
+ {
3452
+ "flags": "--confirm-token <token>",
3453
+ "description": "confirm token (string).",
3454
+ "required": false
3455
+ },
3456
+ {
3457
+ "flags": "--idempotency-key <key>",
3458
+ "description": "idempotency key (string).",
3459
+ "required": false
3460
+ }
3461
+ ]
3462
+ },
3463
+ {
3464
+ "invocation": "carrier storefronts plan update",
3465
+ "domain": "storefronts",
3466
+ "summary": "Call the caller's storefront operation: PATCH /v1/storefronts/{storefront_id}/plans/{slug}.",
3467
+ "write": true,
3468
+ "transport": "mcp",
3469
+ "tool": "update_storefront_plan",
3470
+ "restMethod": null,
3471
+ "restPath": null,
3472
+ "options": [
3473
+ {
3474
+ "flags": "--storefront-id <id>",
3475
+ "description": "storefront id (string).",
3476
+ "required": true
3477
+ },
3478
+ {
3479
+ "flags": "--slug <slug>",
3480
+ "description": "slug (string).",
3481
+ "required": true
3482
+ },
3483
+ {
3484
+ "flags": "--input <input>",
3485
+ "description": "input (json).",
3486
+ "required": false
3487
+ },
3488
+ {
3489
+ "flags": "--confirm-token <token>",
3490
+ "description": "confirm token (string).",
3491
+ "required": false
3492
+ },
3493
+ {
3494
+ "flags": "--idempotency-key <key>",
3495
+ "description": "idempotency key (string).",
3496
+ "required": false
3497
+ }
3498
+ ]
3499
+ },
3500
+ {
3501
+ "invocation": "carrier storefronts orders",
3502
+ "domain": "storefronts",
3503
+ "summary": "Call the caller's storefront operation: GET /v1/storefronts/orders.",
3504
+ "write": false,
3505
+ "transport": "mcp",
3506
+ "tool": "list_storefront_orders",
3507
+ "restMethod": null,
3508
+ "restPath": null,
3509
+ "options": [
3510
+ {
3511
+ "flags": "--storefront-id <id>",
3512
+ "description": "storefront id (string).",
3513
+ "required": false
3514
+ },
3515
+ {
3516
+ "flags": "--status <status>",
3517
+ "description": "status (string). One of: pending, provisioning, ready, failed.",
3518
+ "required": false
3519
+ },
3520
+ {
3521
+ "flags": "--limit <n>",
3522
+ "description": "limit (number).",
3523
+ "required": false
3524
+ }
3525
+ ]
3526
+ },
3527
+ {
3528
+ "invocation": "carrier storefronts publish-plan",
3529
+ "domain": "storefronts",
3530
+ "summary": "Call the caller's storefront operation: POST /v1/storefronts/{storefront_id}/publish-plan.",
3531
+ "write": false,
3532
+ "transport": "mcp",
3533
+ "tool": "plan_storefront_publish",
3534
+ "restMethod": null,
3535
+ "restPath": null,
3536
+ "options": [
3537
+ {
3538
+ "flags": "--storefront-id <id>",
3539
+ "description": "storefront id (string).",
3540
+ "required": true
3541
+ },
3542
+ {
3543
+ "flags": "--input <input>",
3544
+ "description": "input (json).",
3545
+ "required": false
3546
+ },
3547
+ {
3548
+ "flags": "--confirm-token <token>",
3549
+ "description": "confirm token (string).",
3550
+ "required": false
3551
+ },
3552
+ {
3553
+ "flags": "--idempotency-key <key>",
3554
+ "description": "idempotency key (string).",
3555
+ "required": false
3556
+ }
3557
+ ]
3558
+ },
3559
+ {
3560
+ "invocation": "carrier storefronts readiness",
3561
+ "domain": "storefronts",
3562
+ "summary": "Call the caller's storefront operation: GET /v1/storefronts/{storefront_id}/readiness.",
3563
+ "write": false,
3564
+ "transport": "mcp",
3565
+ "tool": "verify_storefront",
3566
+ "restMethod": null,
3567
+ "restPath": null,
3568
+ "options": [
3569
+ {
3570
+ "flags": "--storefront-id <id>",
3571
+ "description": "storefront id (string).",
3572
+ "required": true
3573
+ }
3574
+ ]
3575
+ },
3576
+ {
3577
+ "invocation": "carrier storefronts domain list",
3578
+ "domain": "storefronts",
3579
+ "summary": "Call the caller's storefront operation: GET /v1/storefronts/{storefront_id}/domains.",
3580
+ "write": false,
3581
+ "transport": "mcp",
3582
+ "tool": "list_storefront_domains",
3583
+ "restMethod": null,
3584
+ "restPath": null,
3585
+ "options": [
3586
+ {
3587
+ "flags": "--storefront-id <id>",
3588
+ "description": "storefront id (string).",
3589
+ "required": true
3590
+ }
3591
+ ]
3592
+ },
3593
+ {
3594
+ "invocation": "carrier storefronts domain plan",
3595
+ "domain": "storefronts",
3596
+ "summary": "Call the caller's storefront operation: POST /v1/storefronts/{storefront_id}/domains/plan.",
3597
+ "write": false,
3598
+ "transport": "mcp",
3599
+ "tool": "plan_storefront_domain",
3600
+ "restMethod": null,
3601
+ "restPath": null,
3602
+ "options": [
3603
+ {
3604
+ "flags": "--storefront-id <id>",
3605
+ "description": "storefront id (string).",
3606
+ "required": true
3607
+ },
3608
+ {
3609
+ "flags": "--hostname <hostname>",
3610
+ "description": "hostname (string).",
3611
+ "required": true
3612
+ },
3613
+ {
3614
+ "flags": "--input <input>",
3615
+ "description": "input (json).",
3616
+ "required": false
3617
+ },
3618
+ {
3619
+ "flags": "--confirm-token <token>",
3620
+ "description": "confirm token (string).",
3621
+ "required": false
3622
+ },
3623
+ {
3624
+ "flags": "--idempotency-key <key>",
3625
+ "description": "idempotency key (string).",
3626
+ "required": false
3627
+ }
3628
+ ]
3629
+ },
3630
+ {
3631
+ "invocation": "carrier storefronts domain attach",
3632
+ "domain": "storefronts",
3633
+ "summary": "Call the caller's storefront operation: POST /v1/storefronts/{storefront_id}/domains.",
3634
+ "write": true,
3635
+ "transport": "mcp",
3636
+ "tool": "attach_storefront_domain",
3637
+ "restMethod": null,
3638
+ "restPath": null,
3639
+ "options": [
3640
+ {
3641
+ "flags": "--storefront-id <id>",
3642
+ "description": "storefront id (string).",
3643
+ "required": true
3644
+ },
3645
+ {
3646
+ "flags": "--hostname <hostname>",
3647
+ "description": "hostname (string).",
3648
+ "required": true
3649
+ },
3650
+ {
3651
+ "flags": "--input <input>",
3652
+ "description": "input (json).",
3653
+ "required": false
3654
+ },
3655
+ {
3656
+ "flags": "--confirm-token <token>",
3657
+ "description": "confirm token (string).",
3658
+ "required": false
3659
+ },
3660
+ {
3661
+ "flags": "--idempotency-key <key>",
3662
+ "description": "idempotency key (string).",
3663
+ "required": true
3664
+ }
3665
+ ]
3666
+ },
3667
+ {
3668
+ "invocation": "carrier storefronts domain verify",
3669
+ "domain": "storefronts",
3670
+ "summary": "Call the caller's storefront operation: POST /v1/storefronts/{storefront_id}/domains/{hostname}/verify.",
3671
+ "write": true,
3672
+ "transport": "mcp",
3673
+ "tool": "verify_storefront_domain",
3674
+ "restMethod": null,
3675
+ "restPath": null,
3676
+ "options": [
3677
+ {
3678
+ "flags": "--storefront-id <id>",
3679
+ "description": "storefront id (string).",
3680
+ "required": true
3681
+ },
3682
+ {
3683
+ "flags": "--hostname <hostname>",
3684
+ "description": "hostname (string).",
3685
+ "required": true
3686
+ },
3687
+ {
3688
+ "flags": "--input <input>",
3689
+ "description": "input (json).",
3690
+ "required": false
3691
+ },
3692
+ {
3693
+ "flags": "--confirm-token <token>",
3694
+ "description": "confirm token (string).",
3695
+ "required": false
3696
+ },
3697
+ {
3698
+ "flags": "--idempotency-key <key>",
3699
+ "description": "idempotency key (string).",
3700
+ "required": false
3701
+ }
3702
+ ]
3703
+ },
3704
+ {
3705
+ "invocation": "carrier storefronts domain detach",
3706
+ "domain": "storefronts",
3707
+ "summary": "Call the caller's storefront operation: DELETE /v1/storefronts/{storefront_id}/domains/{hostname}.",
3708
+ "write": true,
3709
+ "transport": "mcp",
3710
+ "tool": "detach_storefront_domain",
3711
+ "restMethod": null,
3712
+ "restPath": null,
3713
+ "options": [
3714
+ {
3715
+ "flags": "--storefront-id <id>",
3716
+ "description": "storefront id (string).",
3717
+ "required": true
3718
+ },
3719
+ {
3720
+ "flags": "--hostname <hostname>",
3721
+ "description": "hostname (string).",
3722
+ "required": true
3723
+ },
3724
+ {
3725
+ "flags": "--input <input>",
3726
+ "description": "input (json).",
3727
+ "required": false
3728
+ },
3729
+ {
3730
+ "flags": "--confirm-token <token>",
3731
+ "description": "confirm token (string).",
3732
+ "required": false
3733
+ }
3734
+ ]
3735
+ },
3736
+ {
3737
+ "invocation": "carrier storefronts domain dns-plan",
3738
+ "domain": "storefronts",
3739
+ "summary": "Call the caller's storefront operation: POST /v1/storefronts/{storefront_id}/domains/{hostname}/dns-plan.",
3740
+ "write": false,
3741
+ "transport": "mcp",
3742
+ "tool": "plan_storefront_dns",
3743
+ "restMethod": null,
3744
+ "restPath": null,
3745
+ "options": [
3746
+ {
3747
+ "flags": "--storefront-id <id>",
3748
+ "description": "storefront id (string).",
3749
+ "required": true
3750
+ },
3751
+ {
3752
+ "flags": "--hostname <hostname>",
3753
+ "description": "hostname (string).",
3754
+ "required": true
3755
+ },
3756
+ {
3757
+ "flags": "--input <input>",
3758
+ "description": "input (json).",
3759
+ "required": false
3760
+ },
3761
+ {
3762
+ "flags": "--confirm-token <token>",
3763
+ "description": "confirm token (string).",
3764
+ "required": false
3765
+ },
3766
+ {
3767
+ "flags": "--idempotency-key <key>",
3768
+ "description": "idempotency key (string).",
3769
+ "required": false
3770
+ }
3771
+ ]
3311
3772
  }
3312
3773
  ]
@@ -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.38"
3
+ __version__ = "0.1.40"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: carrier-python
3
- Version: 0.1.38
3
+ Version: 0.1.40
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.38")
204
+ self.assertEqual(version, "0.1.40")
205
205
  self.assertEqual(version, __version__)
206
206
  with (package / "uv.lock").open("rb") as handle:
207
207
  lock = tomllib.load(handle)