payi 0.1.0a36__tar.gz → 0.1.0a38__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.
Potentially problematic release.
This version of payi might be problematic. Click here for more details.
- payi-0.1.0a38/.release-please-manifest.json +3 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/CHANGELOG.md +16 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/PKG-INFO +1 -1
- {payi-0.1.0a36 → payi-0.1.0a38}/api.md +38 -7
- {payi-0.1.0a36 → payi-0.1.0a38}/pyproject.toml +1 -1
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/_version.py +1 -1
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/lib/instrument.py +41 -33
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/resources/experiences/experiences.py +8 -8
- payi-0.1.0a38/src/payi/resources/experiences/types/__init__.py +33 -0
- payi-0.1.0a38/src/payi/resources/experiences/types/limit_config.py +275 -0
- {payi-0.1.0a36/src/payi/resources/experiences → payi-0.1.0a38/src/payi/resources/experiences/types}/types.py +47 -11
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/resources/ingest.py +5 -6
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/resources/limits/limits.py +4 -8
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/resources/requests/__init__.py +14 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/resources/requests/requests.py +32 -0
- payi-0.1.0a38/src/payi/resources/requests/result.py +169 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/__init__.py +4 -1
- payi-0.1.0a38/src/payi/types/cost_data.py +18 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/experience_instance_response.py +2 -4
- payi-0.1.0a38/src/payi/types/experiences/experience_type.py +30 -0
- payi-0.1.0a38/src/payi/types/experiences/type_create_params.py +28 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/experiences/type_update_params.py +2 -2
- payi-0.1.0a38/src/payi/types/experiences/types/__init__.py +5 -0
- payi-0.1.0a38/src/payi/types/experiences/types/limit_config_create_params.py +18 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/ingest_event_param.py +4 -15
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/ingest_response.py +7 -2
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/ingest_units_params.py +4 -15
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/limit_create_params.py +1 -3
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/limit_response.py +0 -2
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/paged_limit_list.py +0 -2
- payi-0.1.0a36/src/payi/types/experiences/type_create_params.py → payi-0.1.0a38/src/payi/types/pay_i_common_models_api_router_header_info_param.py +3 -5
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/requests/__init__.py +1 -0
- payi-0.1.0a38/src/payi/types/requests/request_result.py +48 -0
- payi-0.1.0a38/src/payi/types/shared/__init__.py +5 -0
- payi-0.1.0a38/src/payi/types/shared/pay_i_common_models_budget_management_cost_details_base.py +10 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/api_resources/experiences/test_types.py +12 -8
- payi-0.1.0a38/tests/api_resources/experiences/types/test_limit_config.py +204 -0
- payi-0.1.0a38/tests/api_resources/requests/__init__.py +1 -0
- payi-0.1.0a38/tests/api_resources/requests/test_result.py +118 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/api_resources/test_limits.py +2 -4
- payi-0.1.0a36/.release-please-manifest.json +0 -3
- payi-0.1.0a36/src/payi/types/cost_data.py +0 -15
- payi-0.1.0a36/src/payi/types/experiences/experience_type.py +0 -17
- payi-0.1.0a36/src/payi/types/shared/__init__.py +0 -3
- {payi-0.1.0a36 → payi-0.1.0a38}/.gitignore +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/CONTRIBUTING.md +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/LICENSE +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/README.md +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/SECURITY.md +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/bin/check-release-environment +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/bin/publish-pypi +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/examples/.keep +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/mypy.ini +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/noxfile.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/release-please-config.json +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/requirements-dev.lock +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/requirements.lock +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/__init__.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/_base_client.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/_client.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/_compat.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/_constants.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/_exceptions.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/_files.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/_models.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/_qs.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/_resource.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/_response.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/_streaming.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/_types.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/_utils/__init__.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/_utils/_logs.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/_utils/_proxy.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/_utils/_reflection.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/_utils/_streams.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/_utils/_sync.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/_utils/_transform.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/_utils/_typing.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/_utils/_utils.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/lib/.keep +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/lib/AnthropicInstrumentor.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/lib/Instruments.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/lib/OpenAIInstrumentor.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/lib/Stopwatch.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/lib/helpers.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/py.typed +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/resources/__init__.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/resources/billing_models.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/resources/categories/__init__.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/resources/categories/categories.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/resources/categories/resources.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/resources/experiences/__init__.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/resources/experiences/properties.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/resources/limits/__init__.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/resources/limits/tags.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/resources/price_modifiers.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/resources/requests/properties.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/billing_model.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/billing_model_create_params.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/billing_model_list_response.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/billing_model_update_params.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/bulk_ingest_response.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/categories/__init__.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/categories/resource_create_params.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/categories/resource_list_response.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/category_delete_resource_response.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/category_delete_response.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/category_list_resources_response.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/category_list_response.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/category_resource_response.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/category_response.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/cost_details.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/default_response.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/experiences/__init__.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/experiences/properties_response.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/experiences/property_create_params.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/experiences/type_list_params.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/experiences/type_list_response.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/ingest_bulk_params.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/limit_history_response.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/limit_list_params.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/limit_reset_params.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/limit_update_params.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/limits/__init__.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/limits/limit_tags.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/limits/tag_create_params.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/limits/tag_create_response.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/limits/tag_delete_response.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/limits/tag_list_response.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/limits/tag_remove_params.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/limits/tag_remove_response.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/limits/tag_update_params.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/limits/tag_update_response.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/price_modifier.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/price_modifier_create_params.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/price_modifier_retrieve_response.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/price_modifier_update_params.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/requests/property_create_params.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/requests_data.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/shared/evaluation_response.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/src/payi/types/total_cost_data.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/__init__.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/api_resources/__init__.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/api_resources/categories/__init__.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/api_resources/categories/test_resources.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/api_resources/experiences/__init__.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/api_resources/experiences/test_properties.py +0 -0
- {payi-0.1.0a36/tests/api_resources/limits → payi-0.1.0a38/tests/api_resources/experiences/types}/__init__.py +0 -0
- {payi-0.1.0a36/tests/api_resources/requests → payi-0.1.0a38/tests/api_resources/limits}/__init__.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/api_resources/limits/test_tags.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/api_resources/requests/test_properties.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/api_resources/test_billing_models.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/api_resources/test_categories.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/api_resources/test_experiences.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/api_resources/test_ingest.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/api_resources/test_price_modifiers.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/conftest.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/sample_file.txt +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/test_client.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/test_deepcopy.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/test_extract_files.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/test_files.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/test_models.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/test_qs.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/test_required_args.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/test_response.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/test_streaming.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/test_transform.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/test_utils/test_proxy.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/test_utils/test_typing.py +0 -0
- {payi-0.1.0a36 → payi-0.1.0a38}/tests/utils.py +0 -0
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.38 (2025-01-31)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.37...v0.1.0-alpha.38](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.37...v0.1.0-alpha.38)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([#190](https://github.com/Pay-i/pay-i-python/issues/190)) ([ef6d309](https://github.com/Pay-i/pay-i-python/commit/ef6d309a7bf16ae3632bf6fe2bf26815b7652bab))
|
|
10
|
+
|
|
11
|
+
## 0.1.0-alpha.37 (2025-01-30)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.1.0-alpha.36...v0.1.0-alpha.37](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.36...v0.1.0-alpha.37)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** manual updates ([#187](https://github.com/Pay-i/pay-i-python/issues/187)) ([028e7c8](https://github.com/Pay-i/pay-i-python/commit/028e7c86f30727a2883d9823cdedb450f8397d1c))
|
|
18
|
+
|
|
3
19
|
## 0.1.0-alpha.36 (2025-01-28)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.1.0-alpha.35...v0.1.0-alpha.36](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.35...v0.1.0-alpha.36)
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# Shared Types
|
|
2
|
+
|
|
3
|
+
```python
|
|
4
|
+
from payi.types import PayICommonModelsBudgetManagementCostDetailsBase
|
|
5
|
+
```
|
|
6
|
+
|
|
1
7
|
# Limits
|
|
2
8
|
|
|
3
9
|
Types:
|
|
@@ -52,7 +58,13 @@ Methods:
|
|
|
52
58
|
Types:
|
|
53
59
|
|
|
54
60
|
```python
|
|
55
|
-
from payi.types import
|
|
61
|
+
from payi.types import (
|
|
62
|
+
BulkIngestResponse,
|
|
63
|
+
IngestEvent,
|
|
64
|
+
IngestResponse,
|
|
65
|
+
IngestUnits,
|
|
66
|
+
PayICommonModelsAPIRouterHeaderInfo,
|
|
67
|
+
)
|
|
56
68
|
```
|
|
57
69
|
|
|
58
70
|
Methods:
|
|
@@ -121,11 +133,18 @@ from payi.types.experiences import ExperienceType, TypeListResponse
|
|
|
121
133
|
|
|
122
134
|
Methods:
|
|
123
135
|
|
|
124
|
-
- <code title="post /api/v1/experiences/types">client.experiences.types.<a href="./src/payi/resources/experiences/types.py">create</a>(\*\*<a href="src/payi/types/experiences/type_create_params.py">params</a>) -> <a href="./src/payi/types/experiences/experience_type.py">ExperienceType</a></code>
|
|
125
|
-
- <code title="get /api/v1/experiences/types/{experience_name}">client.experiences.types.<a href="./src/payi/resources/experiences/types.py">retrieve</a>(experience_name) -> <a href="./src/payi/types/experiences/experience_type.py">ExperienceType</a></code>
|
|
126
|
-
- <code title="patch /api/v1/experiences/types/{experience_name}">client.experiences.types.<a href="./src/payi/resources/experiences/types.py">update</a>(experience_name, \*\*<a href="src/payi/types/experiences/type_update_params.py">params</a>) -> <a href="./src/payi/types/experiences/experience_type.py">ExperienceType</a></code>
|
|
127
|
-
- <code title="get /api/v1/experiences/types">client.experiences.types.<a href="./src/payi/resources/experiences/types.py">list</a>(\*\*<a href="src/payi/types/experiences/type_list_params.py">params</a>) -> <a href="./src/payi/types/experiences/type_list_response.py">TypeListResponse</a></code>
|
|
128
|
-
- <code title="delete /api/v1/experiences/types/{experience_name}">client.experiences.types.<a href="./src/payi/resources/experiences/types.py">delete</a>(experience_name) -> <a href="./src/payi/types/experiences/experience_type.py">ExperienceType</a></code>
|
|
136
|
+
- <code title="post /api/v1/experiences/types">client.experiences.types.<a href="./src/payi/resources/experiences/types/types.py">create</a>(\*\*<a href="src/payi/types/experiences/type_create_params.py">params</a>) -> <a href="./src/payi/types/experiences/experience_type.py">ExperienceType</a></code>
|
|
137
|
+
- <code title="get /api/v1/experiences/types/{experience_name}">client.experiences.types.<a href="./src/payi/resources/experiences/types/types.py">retrieve</a>(experience_name) -> <a href="./src/payi/types/experiences/experience_type.py">ExperienceType</a></code>
|
|
138
|
+
- <code title="patch /api/v1/experiences/types/{experience_name}">client.experiences.types.<a href="./src/payi/resources/experiences/types/types.py">update</a>(experience_name, \*\*<a href="src/payi/types/experiences/type_update_params.py">params</a>) -> <a href="./src/payi/types/experiences/experience_type.py">ExperienceType</a></code>
|
|
139
|
+
- <code title="get /api/v1/experiences/types">client.experiences.types.<a href="./src/payi/resources/experiences/types/types.py">list</a>(\*\*<a href="src/payi/types/experiences/type_list_params.py">params</a>) -> <a href="./src/payi/types/experiences/type_list_response.py">TypeListResponse</a></code>
|
|
140
|
+
- <code title="delete /api/v1/experiences/types/{experience_name}">client.experiences.types.<a href="./src/payi/resources/experiences/types/types.py">delete</a>(experience_name) -> <a href="./src/payi/types/experiences/experience_type.py">ExperienceType</a></code>
|
|
141
|
+
|
|
142
|
+
### LimitConfig
|
|
143
|
+
|
|
144
|
+
Methods:
|
|
145
|
+
|
|
146
|
+
- <code title="post /api/v1/experiences/types/{experience_name}/limit_config">client.experiences.types.limit_config.<a href="./src/payi/resources/experiences/types/limit_config.py">create</a>(experience_name, \*\*<a href="src/payi/types/experiences/types/limit_config_create_params.py">params</a>) -> <a href="./src/payi/types/experiences/experience_type.py">ExperienceType</a></code>
|
|
147
|
+
- <code title="delete /api/v1/experiences/types/{experience_name}/limit_config">client.experiences.types.limit_config.<a href="./src/payi/resources/experiences/types/limit_config.py">delete</a>(experience_name) -> <a href="./src/payi/types/experiences/experience_type.py">ExperienceType</a></code>
|
|
129
148
|
|
|
130
149
|
## Properties
|
|
131
150
|
|
|
@@ -175,4 +194,16 @@ Methods:
|
|
|
175
194
|
|
|
176
195
|
Methods:
|
|
177
196
|
|
|
178
|
-
- <code title="post /api/v1/requests/{request_id}/properties">client.requests.properties.<a href="./src/payi/resources/requests/properties.py">create</a>(request_id, \*\*<a href="src/payi/types/requests/property_create_params.py">params</a>) -> <a href="./src/payi/types/experiences/properties_response.py">PropertiesResponse</a></code>
|
|
197
|
+
- <code title="post /api/v1/requests/{request_id}/properties">client.requests.properties.<a href="./src/payi/resources/requests/properties.py">create</a>(request_id, \*\*<a href="src/payi/types/requests/property_create_params.py">params</a>) -> <a href="./src/payi/types/experiences/properties_response.py">PropertiesResponse</a></code>
|
|
198
|
+
|
|
199
|
+
## Result
|
|
200
|
+
|
|
201
|
+
Types:
|
|
202
|
+
|
|
203
|
+
```python
|
|
204
|
+
from payi.types.requests import RequestResult
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
Methods:
|
|
208
|
+
|
|
209
|
+
- <code title="get /api/v1/requests/result/{category}/{request_id}">client.requests.result.<a href="./src/payi/resources/requests/result.py">retrieve</a>(request_id, \*, category) -> <a href="./src/payi/types/requests/request_result.py">RequestResult</a></code>
|
|
@@ -216,13 +216,13 @@ class PayiInstrumentor:
|
|
|
216
216
|
# should not happen
|
|
217
217
|
return wrapped(*args, **kwargs)
|
|
218
218
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
self._update_headers(context, proxy_extra_headers)
|
|
219
|
+
# after _udpate_headers, all metadata to add to ingest is in extra_headers, keyed by the xproxy-xxx header name
|
|
220
|
+
extra_headers = kwargs.get("extra_headers", {})
|
|
221
|
+
self._update_headers(context, extra_headers)
|
|
223
222
|
|
|
223
|
+
if context.get("proxy", True):
|
|
224
224
|
if "extra_headers" not in kwargs:
|
|
225
|
-
kwargs["extra_headers"] =
|
|
225
|
+
kwargs["extra_headers"] = extra_headers
|
|
226
226
|
|
|
227
227
|
return wrapped(*args, **kwargs)
|
|
228
228
|
|
|
@@ -242,16 +242,16 @@ class PayiInstrumentor:
|
|
|
242
242
|
stream = kwargs.get("stream", False)
|
|
243
243
|
|
|
244
244
|
try:
|
|
245
|
-
limit_ids =
|
|
246
|
-
request_tags =
|
|
247
|
-
experience_name =
|
|
248
|
-
experience_id =
|
|
249
|
-
user_id =
|
|
245
|
+
limit_ids = extra_headers.pop("xProxy-Limit-IDs", None)
|
|
246
|
+
request_tags = extra_headers.pop("xProxy-Request-Tags", None)
|
|
247
|
+
experience_name = extra_headers.pop("xProxy-Experience-Name", None)
|
|
248
|
+
experience_id = extra_headers.pop("xProxy-Experience-ID", None)
|
|
249
|
+
user_id = extra_headers.pop("xProxy-User-ID", None)
|
|
250
250
|
|
|
251
251
|
if limit_ids:
|
|
252
|
-
ingest["limit_ids"] = limit_ids
|
|
252
|
+
ingest["limit_ids"] = limit_ids.split(",")
|
|
253
253
|
if request_tags:
|
|
254
|
-
ingest["request_tags"] = request_tags
|
|
254
|
+
ingest["request_tags"] = request_tags.split(",")
|
|
255
255
|
if experience_name:
|
|
256
256
|
ingest["experience_name"] = experience_name
|
|
257
257
|
if experience_id:
|
|
@@ -259,8 +259,6 @@ class PayiInstrumentor:
|
|
|
259
259
|
if user_id:
|
|
260
260
|
ingest["user_id"] = user_id
|
|
261
261
|
|
|
262
|
-
extra_headers: dict[str, str] = kwargs.get("extra_headers") or {}
|
|
263
|
-
|
|
264
262
|
if len(extra_headers) > 0:
|
|
265
263
|
ingest["provider_request_headers"] = {k: [v] for k, v in extra_headers.items()} # type: ignore
|
|
266
264
|
|
|
@@ -321,30 +319,40 @@ class PayiInstrumentor:
|
|
|
321
319
|
experience_id: Optional[str] = context.get("experience_id")
|
|
322
320
|
user_id: Optional[str] = context.get("user_id")
|
|
323
321
|
|
|
322
|
+
# Merge limits from the decorator and extra headers
|
|
324
323
|
if limit_ids is not None:
|
|
325
|
-
existing_limit_ids = extra_headers.get("xProxy-Limit-IDs")
|
|
326
|
-
|
|
327
|
-
if existing_limit_ids
|
|
328
|
-
extra_headers["xProxy-Limit-IDs"] =
|
|
324
|
+
existing_limit_ids = extra_headers.get("xProxy-Limit-IDs", None)
|
|
325
|
+
|
|
326
|
+
if not existing_limit_ids:
|
|
327
|
+
extra_headers["xProxy-Limit-IDs"] = ",".join(limit_ids)
|
|
329
328
|
else:
|
|
330
|
-
|
|
329
|
+
existing_ids = existing_limit_ids.split(',')
|
|
330
|
+
combined_ids = list(set(existing_ids + limit_ids))
|
|
331
|
+
extra_headers["xProxy-Limit-IDs"] = ",".join(combined_ids)
|
|
331
332
|
|
|
333
|
+
# Merge request from the decorator and extra headers
|
|
332
334
|
if request_tags is not None:
|
|
333
|
-
existing_request_tags = extra_headers.get("xProxy-Request-Tags")
|
|
334
|
-
request_tags_str = ",".join(request_tags)
|
|
335
|
-
if existing_request_tags is None:
|
|
336
|
-
extra_headers["xProxy-Request-Tags"] = request_tags_str
|
|
337
|
-
else:
|
|
338
|
-
extra_headers["xProxy-Request-Tags"] = f"{existing_request_tags},{request_tags_str}"
|
|
339
|
-
|
|
340
|
-
if experience_name is not None:
|
|
341
|
-
extra_headers["xProxy-Experience-Name"] = experience_name
|
|
335
|
+
existing_request_tags = extra_headers.get("xProxy-Request-Tags", None)
|
|
342
336
|
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
337
|
+
if not existing_request_tags:
|
|
338
|
+
extra_headers["xProxy-Request-Tags"] = ",".join(request_tags)
|
|
339
|
+
else:
|
|
340
|
+
existing_tags = existing_request_tags.split(',')
|
|
341
|
+
combined_tags = list(set(existing_tags + request_tags))
|
|
342
|
+
extra_headers["xProxy-Request-Tags"] = ",".join(combined_tags)
|
|
343
|
+
|
|
344
|
+
# inner extra_headers user_id takes precedence over outer decorator user_id
|
|
345
|
+
if user_id is not None and extra_headers.get("xProxy-User-ID", None) is None:
|
|
346
|
+
extra_headers["xProxy-User-ID"] = user_id
|
|
347
|
+
|
|
348
|
+
# inner extra_headers experience_name and experience_id take precedence over outer decorator experience_name and experience_id
|
|
349
|
+
# if either inner value is specified, ignore outer decorator values
|
|
350
|
+
if extra_headers.get("xProxy-Experience-Name", None) is None and extra_headers.get("xProxy-Experience-ID", None) is None:
|
|
351
|
+
if experience_name is not None:
|
|
352
|
+
extra_headers["xProxy-Experience-Name"] = experience_name
|
|
353
|
+
|
|
354
|
+
if experience_id is not None:
|
|
355
|
+
extra_headers["xProxy-Experience-ID"] = experience_id
|
|
348
356
|
|
|
349
357
|
@staticmethod
|
|
350
358
|
def payi_wrapper(func: Any) -> Any:
|
|
@@ -4,14 +4,6 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
import httpx
|
|
6
6
|
|
|
7
|
-
from .types import (
|
|
8
|
-
TypesResource,
|
|
9
|
-
AsyncTypesResource,
|
|
10
|
-
TypesResourceWithRawResponse,
|
|
11
|
-
AsyncTypesResourceWithRawResponse,
|
|
12
|
-
TypesResourceWithStreamingResponse,
|
|
13
|
-
AsyncTypesResourceWithStreamingResponse,
|
|
14
|
-
)
|
|
15
7
|
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
16
8
|
from ..._compat import cached_property
|
|
17
9
|
from .properties import (
|
|
@@ -29,6 +21,14 @@ from ..._response import (
|
|
|
29
21
|
async_to_raw_response_wrapper,
|
|
30
22
|
async_to_streamed_response_wrapper,
|
|
31
23
|
)
|
|
24
|
+
from .types.types import (
|
|
25
|
+
TypesResource,
|
|
26
|
+
AsyncTypesResource,
|
|
27
|
+
TypesResourceWithRawResponse,
|
|
28
|
+
AsyncTypesResourceWithRawResponse,
|
|
29
|
+
TypesResourceWithStreamingResponse,
|
|
30
|
+
AsyncTypesResourceWithStreamingResponse,
|
|
31
|
+
)
|
|
32
32
|
from ..._base_client import make_request_options
|
|
33
33
|
from ...types.experience_instance_response import ExperienceInstanceResponse
|
|
34
34
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from .types import (
|
|
4
|
+
TypesResource,
|
|
5
|
+
AsyncTypesResource,
|
|
6
|
+
TypesResourceWithRawResponse,
|
|
7
|
+
AsyncTypesResourceWithRawResponse,
|
|
8
|
+
TypesResourceWithStreamingResponse,
|
|
9
|
+
AsyncTypesResourceWithStreamingResponse,
|
|
10
|
+
)
|
|
11
|
+
from .limit_config import (
|
|
12
|
+
LimitConfigResource,
|
|
13
|
+
AsyncLimitConfigResource,
|
|
14
|
+
LimitConfigResourceWithRawResponse,
|
|
15
|
+
AsyncLimitConfigResourceWithRawResponse,
|
|
16
|
+
LimitConfigResourceWithStreamingResponse,
|
|
17
|
+
AsyncLimitConfigResourceWithStreamingResponse,
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
__all__ = [
|
|
21
|
+
"LimitConfigResource",
|
|
22
|
+
"AsyncLimitConfigResource",
|
|
23
|
+
"LimitConfigResourceWithRawResponse",
|
|
24
|
+
"AsyncLimitConfigResourceWithRawResponse",
|
|
25
|
+
"LimitConfigResourceWithStreamingResponse",
|
|
26
|
+
"AsyncLimitConfigResourceWithStreamingResponse",
|
|
27
|
+
"TypesResource",
|
|
28
|
+
"AsyncTypesResource",
|
|
29
|
+
"TypesResourceWithRawResponse",
|
|
30
|
+
"AsyncTypesResourceWithRawResponse",
|
|
31
|
+
"TypesResourceWithStreamingResponse",
|
|
32
|
+
"AsyncTypesResourceWithStreamingResponse",
|
|
33
|
+
]
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import List, Optional
|
|
6
|
+
from typing_extensions import Literal
|
|
7
|
+
|
|
8
|
+
import httpx
|
|
9
|
+
|
|
10
|
+
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
|
11
|
+
from ...._utils import (
|
|
12
|
+
maybe_transform,
|
|
13
|
+
async_maybe_transform,
|
|
14
|
+
)
|
|
15
|
+
from ...._compat import cached_property
|
|
16
|
+
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
17
|
+
from ...._response import (
|
|
18
|
+
to_raw_response_wrapper,
|
|
19
|
+
to_streamed_response_wrapper,
|
|
20
|
+
async_to_raw_response_wrapper,
|
|
21
|
+
async_to_streamed_response_wrapper,
|
|
22
|
+
)
|
|
23
|
+
from ...._base_client import make_request_options
|
|
24
|
+
from ....types.experiences.types import limit_config_create_params
|
|
25
|
+
from ....types.experiences.experience_type import ExperienceType
|
|
26
|
+
|
|
27
|
+
__all__ = ["LimitConfigResource", "AsyncLimitConfigResource"]
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class LimitConfigResource(SyncAPIResource):
|
|
31
|
+
@cached_property
|
|
32
|
+
def with_raw_response(self) -> LimitConfigResourceWithRawResponse:
|
|
33
|
+
"""
|
|
34
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
35
|
+
the raw response object instead of the parsed content.
|
|
36
|
+
|
|
37
|
+
For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
|
|
38
|
+
"""
|
|
39
|
+
return LimitConfigResourceWithRawResponse(self)
|
|
40
|
+
|
|
41
|
+
@cached_property
|
|
42
|
+
def with_streaming_response(self) -> LimitConfigResourceWithStreamingResponse:
|
|
43
|
+
"""
|
|
44
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
45
|
+
|
|
46
|
+
For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
|
|
47
|
+
"""
|
|
48
|
+
return LimitConfigResourceWithStreamingResponse(self)
|
|
49
|
+
|
|
50
|
+
def create(
|
|
51
|
+
self,
|
|
52
|
+
experience_name: str,
|
|
53
|
+
*,
|
|
54
|
+
max: float,
|
|
55
|
+
limit_tags: Optional[List[str]] | NotGiven = NOT_GIVEN,
|
|
56
|
+
limit_type: Literal["block", "allow"] | NotGiven = NOT_GIVEN,
|
|
57
|
+
threshold: Optional[float] | NotGiven = NOT_GIVEN,
|
|
58
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
59
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
60
|
+
extra_headers: Headers | None = None,
|
|
61
|
+
extra_query: Query | None = None,
|
|
62
|
+
extra_body: Body | None = None,
|
|
63
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
64
|
+
) -> ExperienceType:
|
|
65
|
+
"""
|
|
66
|
+
Create a new Experience Type default limit configuration
|
|
67
|
+
|
|
68
|
+
Args:
|
|
69
|
+
extra_headers: Send extra headers
|
|
70
|
+
|
|
71
|
+
extra_query: Add additional query parameters to the request
|
|
72
|
+
|
|
73
|
+
extra_body: Add additional JSON properties to the request
|
|
74
|
+
|
|
75
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
76
|
+
"""
|
|
77
|
+
if not experience_name:
|
|
78
|
+
raise ValueError(f"Expected a non-empty value for `experience_name` but received {experience_name!r}")
|
|
79
|
+
return self._post(
|
|
80
|
+
f"/api/v1/experiences/types/{experience_name}/limit_config",
|
|
81
|
+
body=maybe_transform(
|
|
82
|
+
{
|
|
83
|
+
"max": max,
|
|
84
|
+
"limit_tags": limit_tags,
|
|
85
|
+
"limit_type": limit_type,
|
|
86
|
+
"threshold": threshold,
|
|
87
|
+
},
|
|
88
|
+
limit_config_create_params.LimitConfigCreateParams,
|
|
89
|
+
),
|
|
90
|
+
options=make_request_options(
|
|
91
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
92
|
+
),
|
|
93
|
+
cast_to=ExperienceType,
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
def delete(
|
|
97
|
+
self,
|
|
98
|
+
experience_name: str,
|
|
99
|
+
*,
|
|
100
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
101
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
102
|
+
extra_headers: Headers | None = None,
|
|
103
|
+
extra_query: Query | None = None,
|
|
104
|
+
extra_body: Body | None = None,
|
|
105
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
106
|
+
) -> ExperienceType:
|
|
107
|
+
"""
|
|
108
|
+
Delete an Experience Type default limit configuration
|
|
109
|
+
|
|
110
|
+
Args:
|
|
111
|
+
extra_headers: Send extra headers
|
|
112
|
+
|
|
113
|
+
extra_query: Add additional query parameters to the request
|
|
114
|
+
|
|
115
|
+
extra_body: Add additional JSON properties to the request
|
|
116
|
+
|
|
117
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
118
|
+
"""
|
|
119
|
+
if not experience_name:
|
|
120
|
+
raise ValueError(f"Expected a non-empty value for `experience_name` but received {experience_name!r}")
|
|
121
|
+
return self._delete(
|
|
122
|
+
f"/api/v1/experiences/types/{experience_name}/limit_config",
|
|
123
|
+
options=make_request_options(
|
|
124
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
125
|
+
),
|
|
126
|
+
cast_to=ExperienceType,
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
class AsyncLimitConfigResource(AsyncAPIResource):
|
|
131
|
+
@cached_property
|
|
132
|
+
def with_raw_response(self) -> AsyncLimitConfigResourceWithRawResponse:
|
|
133
|
+
"""
|
|
134
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
135
|
+
the raw response object instead of the parsed content.
|
|
136
|
+
|
|
137
|
+
For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
|
|
138
|
+
"""
|
|
139
|
+
return AsyncLimitConfigResourceWithRawResponse(self)
|
|
140
|
+
|
|
141
|
+
@cached_property
|
|
142
|
+
def with_streaming_response(self) -> AsyncLimitConfigResourceWithStreamingResponse:
|
|
143
|
+
"""
|
|
144
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
145
|
+
|
|
146
|
+
For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
|
|
147
|
+
"""
|
|
148
|
+
return AsyncLimitConfigResourceWithStreamingResponse(self)
|
|
149
|
+
|
|
150
|
+
async def create(
|
|
151
|
+
self,
|
|
152
|
+
experience_name: str,
|
|
153
|
+
*,
|
|
154
|
+
max: float,
|
|
155
|
+
limit_tags: Optional[List[str]] | NotGiven = NOT_GIVEN,
|
|
156
|
+
limit_type: Literal["block", "allow"] | NotGiven = NOT_GIVEN,
|
|
157
|
+
threshold: Optional[float] | NotGiven = NOT_GIVEN,
|
|
158
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
159
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
160
|
+
extra_headers: Headers | None = None,
|
|
161
|
+
extra_query: Query | None = None,
|
|
162
|
+
extra_body: Body | None = None,
|
|
163
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
164
|
+
) -> ExperienceType:
|
|
165
|
+
"""
|
|
166
|
+
Create a new Experience Type default limit configuration
|
|
167
|
+
|
|
168
|
+
Args:
|
|
169
|
+
extra_headers: Send extra headers
|
|
170
|
+
|
|
171
|
+
extra_query: Add additional query parameters to the request
|
|
172
|
+
|
|
173
|
+
extra_body: Add additional JSON properties to the request
|
|
174
|
+
|
|
175
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
176
|
+
"""
|
|
177
|
+
if not experience_name:
|
|
178
|
+
raise ValueError(f"Expected a non-empty value for `experience_name` but received {experience_name!r}")
|
|
179
|
+
return await self._post(
|
|
180
|
+
f"/api/v1/experiences/types/{experience_name}/limit_config",
|
|
181
|
+
body=await async_maybe_transform(
|
|
182
|
+
{
|
|
183
|
+
"max": max,
|
|
184
|
+
"limit_tags": limit_tags,
|
|
185
|
+
"limit_type": limit_type,
|
|
186
|
+
"threshold": threshold,
|
|
187
|
+
},
|
|
188
|
+
limit_config_create_params.LimitConfigCreateParams,
|
|
189
|
+
),
|
|
190
|
+
options=make_request_options(
|
|
191
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
192
|
+
),
|
|
193
|
+
cast_to=ExperienceType,
|
|
194
|
+
)
|
|
195
|
+
|
|
196
|
+
async def delete(
|
|
197
|
+
self,
|
|
198
|
+
experience_name: str,
|
|
199
|
+
*,
|
|
200
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
201
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
202
|
+
extra_headers: Headers | None = None,
|
|
203
|
+
extra_query: Query | None = None,
|
|
204
|
+
extra_body: Body | None = None,
|
|
205
|
+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
|
206
|
+
) -> ExperienceType:
|
|
207
|
+
"""
|
|
208
|
+
Delete an Experience Type default limit configuration
|
|
209
|
+
|
|
210
|
+
Args:
|
|
211
|
+
extra_headers: Send extra headers
|
|
212
|
+
|
|
213
|
+
extra_query: Add additional query parameters to the request
|
|
214
|
+
|
|
215
|
+
extra_body: Add additional JSON properties to the request
|
|
216
|
+
|
|
217
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
218
|
+
"""
|
|
219
|
+
if not experience_name:
|
|
220
|
+
raise ValueError(f"Expected a non-empty value for `experience_name` but received {experience_name!r}")
|
|
221
|
+
return await self._delete(
|
|
222
|
+
f"/api/v1/experiences/types/{experience_name}/limit_config",
|
|
223
|
+
options=make_request_options(
|
|
224
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
225
|
+
),
|
|
226
|
+
cast_to=ExperienceType,
|
|
227
|
+
)
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
class LimitConfigResourceWithRawResponse:
|
|
231
|
+
def __init__(self, limit_config: LimitConfigResource) -> None:
|
|
232
|
+
self._limit_config = limit_config
|
|
233
|
+
|
|
234
|
+
self.create = to_raw_response_wrapper(
|
|
235
|
+
limit_config.create,
|
|
236
|
+
)
|
|
237
|
+
self.delete = to_raw_response_wrapper(
|
|
238
|
+
limit_config.delete,
|
|
239
|
+
)
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
class AsyncLimitConfigResourceWithRawResponse:
|
|
243
|
+
def __init__(self, limit_config: AsyncLimitConfigResource) -> None:
|
|
244
|
+
self._limit_config = limit_config
|
|
245
|
+
|
|
246
|
+
self.create = async_to_raw_response_wrapper(
|
|
247
|
+
limit_config.create,
|
|
248
|
+
)
|
|
249
|
+
self.delete = async_to_raw_response_wrapper(
|
|
250
|
+
limit_config.delete,
|
|
251
|
+
)
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
class LimitConfigResourceWithStreamingResponse:
|
|
255
|
+
def __init__(self, limit_config: LimitConfigResource) -> None:
|
|
256
|
+
self._limit_config = limit_config
|
|
257
|
+
|
|
258
|
+
self.create = to_streamed_response_wrapper(
|
|
259
|
+
limit_config.create,
|
|
260
|
+
)
|
|
261
|
+
self.delete = to_streamed_response_wrapper(
|
|
262
|
+
limit_config.delete,
|
|
263
|
+
)
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
class AsyncLimitConfigResourceWithStreamingResponse:
|
|
267
|
+
def __init__(self, limit_config: AsyncLimitConfigResource) -> None:
|
|
268
|
+
self._limit_config = limit_config
|
|
269
|
+
|
|
270
|
+
self.create = async_to_streamed_response_wrapper(
|
|
271
|
+
limit_config.create,
|
|
272
|
+
)
|
|
273
|
+
self.delete = async_to_streamed_response_wrapper(
|
|
274
|
+
limit_config.delete,
|
|
275
|
+
)
|