gmt-python-sdk 0.31.1__tar.gz → 0.33.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.
- gmt_python_sdk-0.33.0/.release-please-manifest.json +3 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/CHANGELOG.md +16 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/PKG-INFO +1 -1
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/api.md +33 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/pyproject.toml +1 -1
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_client.py +38 -1
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_version.py +1 -1
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/resources/__init__.py +14 -0
- gmt_python_sdk-0.33.0/src/gmt/resources/telegram/__init__.py +33 -0
- gmt_python_sdk-0.33.0/src/gmt/resources/telegram/purchases.py +514 -0
- gmt_python_sdk-0.33.0/src/gmt/resources/telegram/telegram.py +298 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/__init__.py +4 -0
- gmt_python_sdk-0.33.0/src/gmt/types/telegram/__init__.py +12 -0
- gmt_python_sdk-0.33.0/src/gmt/types/telegram/purchase_create_premium_params.py +15 -0
- gmt_python_sdk-0.33.0/src/gmt/types/telegram/purchase_create_premium_response.py +21 -0
- gmt_python_sdk-0.33.0/src/gmt/types/telegram/purchase_create_stars_params.py +15 -0
- gmt_python_sdk-0.33.0/src/gmt/types/telegram/purchase_create_stars_response.py +21 -0
- gmt_python_sdk-0.33.0/src/gmt/types/telegram/purchase_list_premium_params.py +15 -0
- gmt_python_sdk-0.33.0/src/gmt/types/telegram/purchase_list_premium_response.py +22 -0
- gmt_python_sdk-0.33.0/src/gmt/types/telegram/purchase_list_stars_params.py +15 -0
- gmt_python_sdk-0.33.0/src/gmt/types/telegram/purchase_list_stars_response.py +22 -0
- gmt_python_sdk-0.33.0/src/gmt/types/telegram_get_premium_price_params.py +12 -0
- gmt_python_sdk-0.33.0/src/gmt/types/telegram_get_premium_price_response.py +13 -0
- gmt_python_sdk-0.33.0/src/gmt/types/telegram_get_stars_price_params.py +12 -0
- gmt_python_sdk-0.33.0/src/gmt/types/telegram_get_stars_price_response.py +13 -0
- gmt_python_sdk-0.33.0/tests/api_resources/telegram/__init__.py +1 -0
- gmt_python_sdk-0.33.0/tests/api_resources/telegram/test_purchases.py +326 -0
- gmt_python_sdk-0.33.0/tests/api_resources/test_telegram.py +163 -0
- gmt_python_sdk-0.31.1/.release-please-manifest.json +0 -3
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/.gitignore +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/CONTRIBUTING.md +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/LICENSE +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/README.md +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/SECURITY.md +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/bin/check-release-environment +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/bin/publish-pypi +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/examples/.keep +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/release-please-config.json +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/requirements-dev.lock +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/__init__.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_base_client.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_compat.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_constants.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_exceptions.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_files.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_models.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_qs.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_resource.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_response.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_streaming.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_types.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_utils/__init__.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_utils/_compat.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_utils/_datetime_parse.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_utils/_json.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_utils/_logs.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_utils/_path.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_utils/_proxy.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_utils/_reflection.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_utils/_resources_proxy.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_utils/_streams.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_utils/_sync.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_utils/_transform.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_utils/_typing.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/_utils/_utils.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/lib/.keep +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/pagination.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/py.typed +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/resources/accounts.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/resources/profile/__init__.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/resources/profile/discount.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/resources/profile/profile.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/resources/profile/referral/__init__.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/resources/profile/referral/referral.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/resources/profile/referral/transaction.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/resources/purchases/__init__.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/resources/purchases/bulk.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/resources/purchases/purchases.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/resources/service.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/resources/webhooks.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/account_list_countries_params.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/account_list_countries_response.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/account_list_params.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/account_list_response.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/account_retrieve_response.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/profile/__init__.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/profile/discount_retrieve_response.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/profile/referral/__init__.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/profile/referral/transaction_list_params.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/profile/referral/transaction_list_response.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/profile/referral_retrieve_response.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/profile/referral_transfer_balance_params.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/profile/referral_transfer_balance_response.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/profile_change_login_params.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/profile_change_login_response.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/profile_change_password_params.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/profile_change_password_response.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/profile_retrieve_response.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/profile_unbind_telegram_response.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/purchase_create_params.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/purchase_create_response.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/purchase_list_params.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/purchase_list_response.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/purchase_refund_response.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/purchase_request_verification_code_params.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/purchase_request_verification_code_response.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/purchase_retrieve_response.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/purchases/__init__.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/purchases/bulk_create_params.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/purchases/bulk_create_response.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/purchases/bulk_retrieve_response.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/service_get_server_time_response.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/service_health_check_response.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/webhook_test_params.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/src/gmt/types/webhook_test_response.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/__init__.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/api_resources/__init__.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/api_resources/profile/__init__.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/api_resources/profile/referral/__init__.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/api_resources/profile/referral/test_transaction.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/api_resources/profile/test_discount.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/api_resources/profile/test_referral.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/api_resources/purchases/__init__.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/api_resources/purchases/test_bulk.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/api_resources/test_accounts.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/api_resources/test_profile.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/api_resources/test_purchases.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/api_resources/test_service.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/api_resources/test_webhooks.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/conftest.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/sample_file.txt +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/test_client.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/test_deepcopy.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/test_extract_files.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/test_files.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/test_models.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/test_qs.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/test_required_args.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/test_response.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/test_streaming.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/test_transform.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/test_utils/test_datetime_parse.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/test_utils/test_json.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/test_utils/test_path.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/test_utils/test_proxy.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/test_utils/test_typing.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/tests/utils.py +0 -0
- {gmt_python_sdk-0.31.1 → gmt_python_sdk-0.33.0}/uv.lock +0 -0
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.33.0 (2026-04-08)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.32.0...v0.33.0](https://github.com/cameo6/gmt-python-sdk/compare/v0.32.0...v0.33.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([b59909e](https://github.com/cameo6/gmt-python-sdk/commit/b59909e74f4b65efbafc4d342cbb992172be7523))
|
|
10
|
+
|
|
11
|
+
## 0.32.0 (2026-04-08)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.31.1...v0.32.0](https://github.com/cameo6/gmt-python-sdk/compare/v0.31.1...v0.32.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** add telegram ([417ab06](https://github.com/cameo6/gmt-python-sdk/commit/417ab06e9d213911e57247da3ed24820eceed7fa))
|
|
18
|
+
|
|
3
19
|
## 0.31.1 (2026-04-08)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.31.0...v0.31.1](https://github.com/cameo6/gmt-python-sdk/compare/v0.31.0...v0.31.1)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: gmt-python-sdk
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.33.0
|
|
4
4
|
Summary: The official Python library for the gmt API
|
|
5
5
|
Project-URL: Homepage, https://github.com/cameo6/gmt-python-sdk
|
|
6
6
|
Project-URL: Repository, https://github.com/cameo6/gmt-python-sdk
|
|
@@ -118,6 +118,39 @@ Methods:
|
|
|
118
118
|
- <code title="get /v1/purchases/bulk/{purchase_id}">client.purchases.bulk.<a href="./src/gmt/resources/purchases/bulk.py">retrieve</a>(purchase_id) -> <a href="./src/gmt/types/purchases/bulk_retrieve_response.py">BulkRetrieveResponse</a></code>
|
|
119
119
|
- <code title="get /v1/purchases/bulk/{purchase_id}/download">client.purchases.bulk.<a href="./src/gmt/resources/purchases/bulk.py">download</a>(purchase_id) -> BinaryAPIResponse</code>
|
|
120
120
|
|
|
121
|
+
# Telegram
|
|
122
|
+
|
|
123
|
+
Types:
|
|
124
|
+
|
|
125
|
+
```python
|
|
126
|
+
from gmt.types import TelegramGetPremiumPriceResponse, TelegramGetStarsPriceResponse
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Methods:
|
|
130
|
+
|
|
131
|
+
- <code title="get /v1/telegram/premium">client.telegram.<a href="./src/gmt/resources/telegram/telegram.py">get_premium_price</a>(\*\*<a href="src/gmt/types/telegram_get_premium_price_params.py">params</a>) -> <a href="./src/gmt/types/telegram_get_premium_price_response.py">TelegramGetPremiumPriceResponse</a></code>
|
|
132
|
+
- <code title="get /v1/telegram/stars">client.telegram.<a href="./src/gmt/resources/telegram/telegram.py">get_stars_price</a>(\*\*<a href="src/gmt/types/telegram_get_stars_price_params.py">params</a>) -> <a href="./src/gmt/types/telegram_get_stars_price_response.py">TelegramGetStarsPriceResponse</a></code>
|
|
133
|
+
|
|
134
|
+
## Purchases
|
|
135
|
+
|
|
136
|
+
Types:
|
|
137
|
+
|
|
138
|
+
```python
|
|
139
|
+
from gmt.types.telegram import (
|
|
140
|
+
PurchaseCreatePremiumResponse,
|
|
141
|
+
PurchaseCreateStarsResponse,
|
|
142
|
+
PurchaseListPremiumResponse,
|
|
143
|
+
PurchaseListStarsResponse,
|
|
144
|
+
)
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
Methods:
|
|
148
|
+
|
|
149
|
+
- <code title="post /v1/telegram/purchases/premium">client.telegram.purchases.<a href="./src/gmt/resources/telegram/purchases.py">create_premium</a>(\*\*<a href="src/gmt/types/telegram/purchase_create_premium_params.py">params</a>) -> <a href="./src/gmt/types/telegram/purchase_create_premium_response.py">PurchaseCreatePremiumResponse</a></code>
|
|
150
|
+
- <code title="post /v1/telegram/purchases/stars">client.telegram.purchases.<a href="./src/gmt/resources/telegram/purchases.py">create_stars</a>(\*\*<a href="src/gmt/types/telegram/purchase_create_stars_params.py">params</a>) -> <a href="./src/gmt/types/telegram/purchase_create_stars_response.py">PurchaseCreateStarsResponse</a></code>
|
|
151
|
+
- <code title="get /v1/telegram/purchases/premium">client.telegram.purchases.<a href="./src/gmt/resources/telegram/purchases.py">list_premium</a>(\*\*<a href="src/gmt/types/telegram/purchase_list_premium_params.py">params</a>) -> <a href="./src/gmt/types/telegram/purchase_list_premium_response.py">SyncPageNumber[PurchaseListPremiumResponse]</a></code>
|
|
152
|
+
- <code title="get /v1/telegram/purchases/stars">client.telegram.purchases.<a href="./src/gmt/resources/telegram/purchases.py">list_stars</a>(\*\*<a href="src/gmt/types/telegram/purchase_list_stars_params.py">params</a>) -> <a href="./src/gmt/types/telegram/purchase_list_stars_response.py">SyncPageNumber[PurchaseListStarsResponse]</a></code>
|
|
153
|
+
|
|
121
154
|
# Webhooks
|
|
122
155
|
|
|
123
156
|
Types:
|
|
@@ -31,11 +31,12 @@ from ._base_client import (
|
|
|
31
31
|
)
|
|
32
32
|
|
|
33
33
|
if TYPE_CHECKING:
|
|
34
|
-
from .resources import profile, service, accounts, webhooks, purchases
|
|
34
|
+
from .resources import profile, service, accounts, telegram, webhooks, purchases
|
|
35
35
|
from .resources.service import ServiceResource, AsyncServiceResource
|
|
36
36
|
from .resources.accounts import AccountsResource, AsyncAccountsResource
|
|
37
37
|
from .resources.webhooks import WebhooksResource, AsyncWebhooksResource
|
|
38
38
|
from .resources.profile.profile import ProfileResource, AsyncProfileResource
|
|
39
|
+
from .resources.telegram.telegram import TelegramResource, AsyncTelegramResource
|
|
39
40
|
from .resources.purchases.purchases import PurchasesResource, AsyncPurchasesResource
|
|
40
41
|
|
|
41
42
|
__all__ = ["Timeout", "Transport", "ProxiesTypes", "RequestOptions", "Gmt", "AsyncGmt", "Client", "AsyncClient"]
|
|
@@ -128,6 +129,12 @@ class Gmt(SyncAPIClient):
|
|
|
128
129
|
|
|
129
130
|
return PurchasesResource(self)
|
|
130
131
|
|
|
132
|
+
@cached_property
|
|
133
|
+
def telegram(self) -> TelegramResource:
|
|
134
|
+
from .resources.telegram import TelegramResource
|
|
135
|
+
|
|
136
|
+
return TelegramResource(self)
|
|
137
|
+
|
|
131
138
|
@cached_property
|
|
132
139
|
def webhooks(self) -> WebhooksResource:
|
|
133
140
|
"""Webhook testing and documentation.
|
|
@@ -361,6 +368,12 @@ class AsyncGmt(AsyncAPIClient):
|
|
|
361
368
|
|
|
362
369
|
return AsyncPurchasesResource(self)
|
|
363
370
|
|
|
371
|
+
@cached_property
|
|
372
|
+
def telegram(self) -> AsyncTelegramResource:
|
|
373
|
+
from .resources.telegram import AsyncTelegramResource
|
|
374
|
+
|
|
375
|
+
return AsyncTelegramResource(self)
|
|
376
|
+
|
|
364
377
|
@cached_property
|
|
365
378
|
def webhooks(self) -> AsyncWebhooksResource:
|
|
366
379
|
"""Webhook testing and documentation.
|
|
@@ -549,6 +562,12 @@ class GmtWithRawResponse:
|
|
|
549
562
|
|
|
550
563
|
return PurchasesResourceWithRawResponse(self._client.purchases)
|
|
551
564
|
|
|
565
|
+
@cached_property
|
|
566
|
+
def telegram(self) -> telegram.TelegramResourceWithRawResponse:
|
|
567
|
+
from .resources.telegram import TelegramResourceWithRawResponse
|
|
568
|
+
|
|
569
|
+
return TelegramResourceWithRawResponse(self._client.telegram)
|
|
570
|
+
|
|
552
571
|
@cached_property
|
|
553
572
|
def webhooks(self) -> webhooks.WebhooksResourceWithRawResponse:
|
|
554
573
|
"""Webhook testing and documentation.
|
|
@@ -623,6 +642,12 @@ class AsyncGmtWithRawResponse:
|
|
|
623
642
|
|
|
624
643
|
return AsyncPurchasesResourceWithRawResponse(self._client.purchases)
|
|
625
644
|
|
|
645
|
+
@cached_property
|
|
646
|
+
def telegram(self) -> telegram.AsyncTelegramResourceWithRawResponse:
|
|
647
|
+
from .resources.telegram import AsyncTelegramResourceWithRawResponse
|
|
648
|
+
|
|
649
|
+
return AsyncTelegramResourceWithRawResponse(self._client.telegram)
|
|
650
|
+
|
|
626
651
|
@cached_property
|
|
627
652
|
def webhooks(self) -> webhooks.AsyncWebhooksResourceWithRawResponse:
|
|
628
653
|
"""Webhook testing and documentation.
|
|
@@ -697,6 +722,12 @@ class GmtWithStreamedResponse:
|
|
|
697
722
|
|
|
698
723
|
return PurchasesResourceWithStreamingResponse(self._client.purchases)
|
|
699
724
|
|
|
725
|
+
@cached_property
|
|
726
|
+
def telegram(self) -> telegram.TelegramResourceWithStreamingResponse:
|
|
727
|
+
from .resources.telegram import TelegramResourceWithStreamingResponse
|
|
728
|
+
|
|
729
|
+
return TelegramResourceWithStreamingResponse(self._client.telegram)
|
|
730
|
+
|
|
700
731
|
@cached_property
|
|
701
732
|
def webhooks(self) -> webhooks.WebhooksResourceWithStreamingResponse:
|
|
702
733
|
"""Webhook testing and documentation.
|
|
@@ -771,6 +802,12 @@ class AsyncGmtWithStreamedResponse:
|
|
|
771
802
|
|
|
772
803
|
return AsyncPurchasesResourceWithStreamingResponse(self._client.purchases)
|
|
773
804
|
|
|
805
|
+
@cached_property
|
|
806
|
+
def telegram(self) -> telegram.AsyncTelegramResourceWithStreamingResponse:
|
|
807
|
+
from .resources.telegram import AsyncTelegramResourceWithStreamingResponse
|
|
808
|
+
|
|
809
|
+
return AsyncTelegramResourceWithStreamingResponse(self._client.telegram)
|
|
810
|
+
|
|
774
811
|
@cached_property
|
|
775
812
|
def webhooks(self) -> webhooks.AsyncWebhooksResourceWithStreamingResponse:
|
|
776
813
|
"""Webhook testing and documentation.
|
|
@@ -24,6 +24,14 @@ from .accounts import (
|
|
|
24
24
|
AccountsResourceWithStreamingResponse,
|
|
25
25
|
AsyncAccountsResourceWithStreamingResponse,
|
|
26
26
|
)
|
|
27
|
+
from .telegram import (
|
|
28
|
+
TelegramResource,
|
|
29
|
+
AsyncTelegramResource,
|
|
30
|
+
TelegramResourceWithRawResponse,
|
|
31
|
+
AsyncTelegramResourceWithRawResponse,
|
|
32
|
+
TelegramResourceWithStreamingResponse,
|
|
33
|
+
AsyncTelegramResourceWithStreamingResponse,
|
|
34
|
+
)
|
|
27
35
|
from .webhooks import (
|
|
28
36
|
WebhooksResource,
|
|
29
37
|
AsyncWebhooksResource,
|
|
@@ -66,6 +74,12 @@ __all__ = [
|
|
|
66
74
|
"AsyncPurchasesResourceWithRawResponse",
|
|
67
75
|
"PurchasesResourceWithStreamingResponse",
|
|
68
76
|
"AsyncPurchasesResourceWithStreamingResponse",
|
|
77
|
+
"TelegramResource",
|
|
78
|
+
"AsyncTelegramResource",
|
|
79
|
+
"TelegramResourceWithRawResponse",
|
|
80
|
+
"AsyncTelegramResourceWithRawResponse",
|
|
81
|
+
"TelegramResourceWithStreamingResponse",
|
|
82
|
+
"AsyncTelegramResourceWithStreamingResponse",
|
|
69
83
|
"WebhooksResource",
|
|
70
84
|
"AsyncWebhooksResource",
|
|
71
85
|
"WebhooksResourceWithRawResponse",
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from .telegram import (
|
|
4
|
+
TelegramResource,
|
|
5
|
+
AsyncTelegramResource,
|
|
6
|
+
TelegramResourceWithRawResponse,
|
|
7
|
+
AsyncTelegramResourceWithRawResponse,
|
|
8
|
+
TelegramResourceWithStreamingResponse,
|
|
9
|
+
AsyncTelegramResourceWithStreamingResponse,
|
|
10
|
+
)
|
|
11
|
+
from .purchases import (
|
|
12
|
+
PurchasesResource,
|
|
13
|
+
AsyncPurchasesResource,
|
|
14
|
+
PurchasesResourceWithRawResponse,
|
|
15
|
+
AsyncPurchasesResourceWithRawResponse,
|
|
16
|
+
PurchasesResourceWithStreamingResponse,
|
|
17
|
+
AsyncPurchasesResourceWithStreamingResponse,
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
__all__ = [
|
|
21
|
+
"PurchasesResource",
|
|
22
|
+
"AsyncPurchasesResource",
|
|
23
|
+
"PurchasesResourceWithRawResponse",
|
|
24
|
+
"AsyncPurchasesResourceWithRawResponse",
|
|
25
|
+
"PurchasesResourceWithStreamingResponse",
|
|
26
|
+
"AsyncPurchasesResourceWithStreamingResponse",
|
|
27
|
+
"TelegramResource",
|
|
28
|
+
"AsyncTelegramResource",
|
|
29
|
+
"TelegramResourceWithRawResponse",
|
|
30
|
+
"AsyncTelegramResourceWithRawResponse",
|
|
31
|
+
"TelegramResourceWithStreamingResponse",
|
|
32
|
+
"AsyncTelegramResourceWithStreamingResponse",
|
|
33
|
+
]
|