payi 0.1.0a55__tar.gz → 0.1.0a56__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.0a56/.release-please-manifest.json +3 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/CHANGELOG.md +8 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/PKG-INFO +1 -1
- {payi-0.1.0a55 → payi-0.1.0a56}/api.md +30 -19
- {payi-0.1.0a55 → payi-0.1.0a56}/pyproject.toml +1 -1
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/_client.py +10 -17
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/_version.py +1 -1
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/lib/helpers.py +2 -2
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/resources/__init__.py +14 -28
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/resources/categories/resources.py +7 -7
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/resources/experiences/types/types.py +5 -2
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/resources/ingest.py +22 -12
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/resources/limits/limits.py +4 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/resources/limits/tags.py +12 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/resources/requests/properties.py +1 -1
- payi-0.1.0a56/src/payi/resources/use_cases/__init__.py +47 -0
- payi-0.1.0a56/src/payi/resources/use_cases/properties.py +174 -0
- payi-0.1.0a56/src/payi/resources/use_cases/types/__init__.py +33 -0
- payi-0.1.0a56/src/payi/resources/use_cases/types/limit_config.py +275 -0
- payi-0.1.0a55/src/payi/resources/billing_models.py → payi-0.1.0a56/src/payi/resources/use_cases/types/types.py +225 -161
- payi-0.1.0a55/src/payi/resources/price_modifiers.py → payi-0.1.0a56/src/payi/resources/use_cases/use_cases.py +160 -130
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/__init__.py +6 -9
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/categories/resource_create_params.py +6 -6
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/category_resource_response.py +2 -2
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/experience_instance_response.py +2 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/experiences/__init__.py +0 -1
- payi-0.1.0a56/src/payi/types/experiences/experience_type.py +24 -0
- payi-0.1.0a56/src/payi/types/experiences/type_create_params.py +22 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/ingest_event_param.py +10 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/ingest_response.py +2 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/ingest_units_params.py +9 -1
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/limit_list_params.py +6 -1
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/limits/tag_create_params.py +1 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/limits/tag_remove_params.py +1 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/limits/tag_update_params.py +1 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/requests/request_result.py +2 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/shared/__init__.py +4 -0
- payi-0.1.0a55/src/payi/types/experiences/experience_type.py → payi-0.1.0a56/src/payi/types/shared/pay_i_common_models_budget_management_create_limit_base.py +2 -14
- payi-0.1.0a56/src/payi/types/shared_params/__init__.py +5 -0
- payi-0.1.0a55/src/payi/types/experiences/type_create_params.py → payi-0.1.0a56/src/payi/types/shared_params/pay_i_common_models_budget_management_create_limit_base.py +2 -12
- payi-0.1.0a56/src/payi/types/use_case_instance_response.py +15 -0
- payi-0.1.0a56/src/payi/types/use_cases/__init__.py +10 -0
- payi-0.1.0a56/src/payi/types/use_cases/property_create_params.py +12 -0
- payi-0.1.0a56/src/payi/types/use_cases/type_create_params.py +22 -0
- payi-0.1.0a56/src/payi/types/use_cases/type_list_params.py +12 -0
- payi-0.1.0a56/src/payi/types/use_cases/type_list_response.py +10 -0
- payi-0.1.0a56/src/payi/types/use_cases/type_update_params.py +14 -0
- payi-0.1.0a56/src/payi/types/use_cases/types/__init__.py +5 -0
- payi-0.1.0a56/src/payi/types/use_cases/types/limit_config_create_params.py +18 -0
- payi-0.1.0a56/src/payi/types/use_cases/use_case_type.py +24 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/api_resources/categories/test_resources.py +10 -60
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/api_resources/requests/test_properties.py +1 -1
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/api_resources/test_ingest.py +18 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/api_resources/test_limits.py +2 -0
- payi-0.1.0a56/tests/api_resources/test_use_cases.py +250 -0
- payi-0.1.0a56/tests/api_resources/use_cases/__init__.py +1 -0
- payi-0.1.0a56/tests/api_resources/use_cases/test_properties.py +106 -0
- payi-0.1.0a56/tests/api_resources/use_cases/test_types.py +430 -0
- payi-0.1.0a56/tests/api_resources/use_cases/types/__init__.py +1 -0
- payi-0.1.0a56/tests/api_resources/use_cases/types/test_limit_config.py +204 -0
- payi-0.1.0a55/.release-please-manifest.json +0 -3
- payi-0.1.0a55/src/payi/types/billing_model.py +0 -31
- payi-0.1.0a55/src/payi/types/billing_model_create_params.py +0 -22
- payi-0.1.0a55/src/payi/types/billing_model_list_response.py +0 -10
- payi-0.1.0a55/src/payi/types/billing_model_update_params.py +0 -22
- payi-0.1.0a55/src/payi/types/price_modifier.py +0 -26
- payi-0.1.0a55/src/payi/types/price_modifier_create_params.py +0 -17
- payi-0.1.0a55/src/payi/types/price_modifier_retrieve_response.py +0 -10
- payi-0.1.0a55/src/payi/types/price_modifier_update_params.py +0 -17
- payi-0.1.0a55/tests/api_resources/test_billing_models.py +0 -426
- payi-0.1.0a55/tests/api_resources/test_price_modifiers.py +0 -261
- {payi-0.1.0a55 → payi-0.1.0a56}/.gitignore +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/CONTRIBUTING.md +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/LICENSE +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/README.md +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/SECURITY.md +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/bin/check-release-environment +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/bin/publish-pypi +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/examples/.keep +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/mypy.ini +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/noxfile.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/release-please-config.json +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/requirements-dev.lock +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/requirements.lock +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/__init__.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/_base_client.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/_compat.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/_constants.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/_exceptions.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/_files.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/_models.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/_qs.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/_resource.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/_response.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/_streaming.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/_types.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/_utils/__init__.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/_utils/_logs.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/_utils/_proxy.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/_utils/_reflection.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/_utils/_streams.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/_utils/_sync.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/_utils/_transform.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/_utils/_typing.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/_utils/_utils.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/lib/.keep +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/lib/AnthropicInstrumentor.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/lib/BedrockInstrumentor.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/lib/OpenAIInstrumentor.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/lib/Stopwatch.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/lib/instrument.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/py.typed +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/resources/categories/__init__.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/resources/categories/categories.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/resources/experiences/__init__.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/resources/experiences/experiences.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/resources/experiences/properties.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/resources/experiences/types/__init__.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/resources/experiences/types/limit_config.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/resources/limits/__init__.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/resources/requests/__init__.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/resources/requests/requests.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/resources/requests/result.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/bulk_ingest_response.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/categories/__init__.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/categories/resource_list_response.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/category_delete_resource_response.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/category_delete_response.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/category_list_resources_response.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/category_list_response.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/category_response.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/cost_data.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/cost_details.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/default_response.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/experiences/property_create_params.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/experiences/type_list_params.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/experiences/type_list_response.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/experiences/type_update_params.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/experiences/types/__init__.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/experiences/types/limit_config_create_params.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/ingest_bulk_params.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/limit_create_params.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/limit_history_response.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/limit_reset_params.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/limit_response.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/limit_update_params.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/limits/__init__.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/limits/limit_tags.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/limits/tag_create_response.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/limits/tag_delete_response.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/limits/tag_list_response.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/limits/tag_remove_response.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/limits/tag_update_response.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/paged_limit_list.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/pay_i_common_models_api_router_header_info_param.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/requests/__init__.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/requests/property_create_params.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/requests_data.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/shared/evaluation_response.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/shared/pay_i_common_models_budget_management_cost_details_base.py +0 -0
- {payi-0.1.0a55/src/payi/types/experiences → payi-0.1.0a56/src/payi/types/shared}/properties_response.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/src/payi/types/total_cost_data.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/__init__.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/api_resources/__init__.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/api_resources/categories/__init__.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/api_resources/experiences/__init__.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/api_resources/experiences/test_properties.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/api_resources/experiences/test_types.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/api_resources/experiences/types/__init__.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/api_resources/experiences/types/test_limit_config.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/api_resources/limits/__init__.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/api_resources/limits/test_tags.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/api_resources/requests/__init__.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/api_resources/requests/test_result.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/api_resources/test_categories.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/api_resources/test_experiences.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/conftest.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/sample_file.txt +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/test_client.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/test_deepcopy.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/test_extract_files.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/test_files.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/test_models.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/test_qs.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/test_required_args.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/test_response.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/test_streaming.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/test_transform.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/test_utils/test_proxy.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/test_utils/test_typing.py +0 -0
- {payi-0.1.0a55 → payi-0.1.0a56}/tests/utils.py +0 -0
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.56 (2025-03-26)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.55...v0.1.0-alpha.56](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.55...v0.1.0-alpha.56)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([#261](https://github.com/Pay-i/pay-i-python/issues/261)) ([39d2166](https://github.com/Pay-i/pay-i-python/commit/39d21668bb6545d29897755a8a17ec7517a0989c))
|
|
10
|
+
|
|
3
11
|
## 0.1.0-alpha.55 (2025-03-19)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.1.0-alpha.54...v0.1.0-alpha.55](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.54...v0.1.0-alpha.55)
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
# Shared Types
|
|
2
2
|
|
|
3
3
|
```python
|
|
4
|
-
from payi.types import
|
|
4
|
+
from payi.types import (
|
|
5
|
+
PayICommonModelsBudgetManagementCostDetailsBase,
|
|
6
|
+
PayICommonModelsBudgetManagementCreateLimitBase,
|
|
7
|
+
PropertiesResponse,
|
|
8
|
+
)
|
|
5
9
|
```
|
|
6
10
|
|
|
7
11
|
# Limits
|
|
@@ -148,45 +152,52 @@ Methods:
|
|
|
148
152
|
|
|
149
153
|
## Properties
|
|
150
154
|
|
|
155
|
+
Methods:
|
|
156
|
+
|
|
157
|
+
- <code title="post /api/v1/experiences/instances/{experience_id}/properties">client.experiences.properties.<a href="./src/payi/resources/experiences/properties.py">create</a>(experience_id, \*\*<a href="src/payi/types/experiences/property_create_params.py">params</a>) -> <a href="./src/payi/types/experience_instance_response.py">ExperienceInstanceResponse</a></code>
|
|
158
|
+
|
|
159
|
+
# UseCases
|
|
160
|
+
|
|
151
161
|
Types:
|
|
152
162
|
|
|
153
163
|
```python
|
|
154
|
-
from payi.types
|
|
164
|
+
from payi.types import UseCaseInstanceResponse
|
|
155
165
|
```
|
|
156
166
|
|
|
157
167
|
Methods:
|
|
158
168
|
|
|
159
|
-
- <code title="post /api/v1/
|
|
169
|
+
- <code title="post /api/v1/use_cases/instances/{use_case_name}">client.use_cases.<a href="./src/payi/resources/use_cases/use_cases.py">create</a>(use_case_name) -> <a href="./src/payi/types/use_case_instance_response.py">UseCaseInstanceResponse</a></code>
|
|
170
|
+
- <code title="get /api/v1/use_cases/instances/{use_case_id}">client.use_cases.<a href="./src/payi/resources/use_cases/use_cases.py">retrieve</a>(use_case_id) -> <a href="./src/payi/types/use_case_instance_response.py">UseCaseInstanceResponse</a></code>
|
|
171
|
+
- <code title="delete /api/v1/use_cases/instances/{use_case_id}">client.use_cases.<a href="./src/payi/resources/use_cases/use_cases.py">delete</a>(use_case_id) -> <a href="./src/payi/types/use_case_instance_response.py">UseCaseInstanceResponse</a></code>
|
|
160
172
|
|
|
161
|
-
|
|
173
|
+
## Types
|
|
162
174
|
|
|
163
175
|
Types:
|
|
164
176
|
|
|
165
177
|
```python
|
|
166
|
-
from payi.types import
|
|
178
|
+
from payi.types.use_cases import UseCaseType, TypeListResponse
|
|
167
179
|
```
|
|
168
180
|
|
|
169
181
|
Methods:
|
|
170
182
|
|
|
171
|
-
- <code title="post /api/v1/
|
|
172
|
-
- <code title="get /api/v1/
|
|
173
|
-
- <code title="
|
|
174
|
-
- <code title="get /api/v1/
|
|
175
|
-
- <code title="
|
|
183
|
+
- <code title="post /api/v1/use_cases/types">client.use_cases.types.<a href="./src/payi/resources/use_cases/types/types.py">create</a>(\*\*<a href="src/payi/types/use_cases/type_create_params.py">params</a>) -> <a href="./src/payi/types/use_cases/use_case_type.py">UseCaseType</a></code>
|
|
184
|
+
- <code title="get /api/v1/use_cases/types/{use_case_name}">client.use_cases.types.<a href="./src/payi/resources/use_cases/types/types.py">retrieve</a>(use_case_name) -> <a href="./src/payi/types/use_cases/use_case_type.py">UseCaseType</a></code>
|
|
185
|
+
- <code title="patch /api/v1/use_cases/types/{use_case_name}">client.use_cases.types.<a href="./src/payi/resources/use_cases/types/types.py">update</a>(use_case_name, \*\*<a href="src/payi/types/use_cases/type_update_params.py">params</a>) -> <a href="./src/payi/types/use_cases/use_case_type.py">UseCaseType</a></code>
|
|
186
|
+
- <code title="get /api/v1/use_cases/types">client.use_cases.types.<a href="./src/payi/resources/use_cases/types/types.py">list</a>(\*\*<a href="src/payi/types/use_cases/type_list_params.py">params</a>) -> <a href="./src/payi/types/use_cases/type_list_response.py">TypeListResponse</a></code>
|
|
187
|
+
- <code title="delete /api/v1/use_cases/types/{use_case_name}">client.use_cases.types.<a href="./src/payi/resources/use_cases/types/types.py">delete</a>(use_case_name) -> <a href="./src/payi/types/use_cases/use_case_type.py">UseCaseType</a></code>
|
|
176
188
|
|
|
177
|
-
|
|
189
|
+
### LimitConfig
|
|
178
190
|
|
|
179
|
-
|
|
191
|
+
Methods:
|
|
180
192
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
193
|
+
- <code title="post /api/v1/use_cases/types/{use_case_name}/limit_config">client.use_cases.types.limit_config.<a href="./src/payi/resources/use_cases/types/limit_config.py">create</a>(use_case_name, \*\*<a href="src/payi/types/use_cases/types/limit_config_create_params.py">params</a>) -> <a href="./src/payi/types/use_cases/use_case_type.py">UseCaseType</a></code>
|
|
194
|
+
- <code title="delete /api/v1/use_cases/types/{use_case_name}/limit_config">client.use_cases.types.limit_config.<a href="./src/payi/resources/use_cases/types/limit_config.py">delete</a>(use_case_name) -> <a href="./src/payi/types/use_cases/use_case_type.py">UseCaseType</a></code>
|
|
195
|
+
|
|
196
|
+
## Properties
|
|
184
197
|
|
|
185
198
|
Methods:
|
|
186
199
|
|
|
187
|
-
- <code title="post /api/v1/
|
|
188
|
-
- <code title="get /api/v1/price-modifier/{billing_model_id}">client.price_modifiers.<a href="./src/payi/resources/price_modifiers.py">retrieve</a>(billing_model_id) -> <a href="./src/payi/types/price_modifier_retrieve_response.py">PriceModifierRetrieveResponse</a></code>
|
|
189
|
-
- <code title="put /api/v1/price-modifier">client.price_modifiers.<a href="./src/payi/resources/price_modifiers.py">update</a>(\*\*<a href="src/payi/types/price_modifier_update_params.py">params</a>) -> <a href="./src/payi/types/price_modifier.py">PriceModifier</a></code>
|
|
200
|
+
- <code title="post /api/v1/use_cases/instances/{use_case_id}/properties">client.use_cases.properties.<a href="./src/payi/resources/use_cases/properties.py">create</a>(use_case_id, \*\*<a href="src/payi/types/use_cases/property_create_params.py">params</a>) -> <a href="./src/payi/types/use_case_instance_response.py">UseCaseInstanceResponse</a></code>
|
|
190
201
|
|
|
191
202
|
# Requests
|
|
192
203
|
|
|
@@ -194,7 +205,7 @@ Methods:
|
|
|
194
205
|
|
|
195
206
|
Methods:
|
|
196
207
|
|
|
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/
|
|
208
|
+
- <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/shared/properties_response.py">PropertiesResponse</a></code>
|
|
198
209
|
|
|
199
210
|
## Result
|
|
200
211
|
|
|
@@ -24,7 +24,7 @@ from ._utils import (
|
|
|
24
24
|
get_async_library,
|
|
25
25
|
)
|
|
26
26
|
from ._version import __version__
|
|
27
|
-
from .resources import ingest
|
|
27
|
+
from .resources import ingest
|
|
28
28
|
from ._streaming import Stream as Stream, AsyncStream as AsyncStream
|
|
29
29
|
from ._exceptions import PayiError, APIStatusError
|
|
30
30
|
from ._base_client import (
|
|
@@ -34,6 +34,7 @@ from ._base_client import (
|
|
|
34
34
|
)
|
|
35
35
|
from .resources.limits import limits
|
|
36
36
|
from .resources.requests import requests
|
|
37
|
+
from .resources.use_cases import use_cases
|
|
37
38
|
from .resources.categories import categories
|
|
38
39
|
from .resources.experiences import experiences
|
|
39
40
|
|
|
@@ -45,8 +46,7 @@ class Payi(SyncAPIClient):
|
|
|
45
46
|
ingest: ingest.IngestResource
|
|
46
47
|
categories: categories.CategoriesResource
|
|
47
48
|
experiences: experiences.ExperiencesResource
|
|
48
|
-
|
|
49
|
-
price_modifiers: price_modifiers.PriceModifiersResource
|
|
49
|
+
use_cases: use_cases.UseCasesResource
|
|
50
50
|
requests: requests.RequestsResource
|
|
51
51
|
with_raw_response: PayiWithRawResponse
|
|
52
52
|
with_streaming_response: PayiWithStreamedResponse
|
|
@@ -109,8 +109,7 @@ class Payi(SyncAPIClient):
|
|
|
109
109
|
self.ingest = ingest.IngestResource(self)
|
|
110
110
|
self.categories = categories.CategoriesResource(self)
|
|
111
111
|
self.experiences = experiences.ExperiencesResource(self)
|
|
112
|
-
self.
|
|
113
|
-
self.price_modifiers = price_modifiers.PriceModifiersResource(self)
|
|
112
|
+
self.use_cases = use_cases.UseCasesResource(self)
|
|
114
113
|
self.requests = requests.RequestsResource(self)
|
|
115
114
|
self.with_raw_response = PayiWithRawResponse(self)
|
|
116
115
|
self.with_streaming_response = PayiWithStreamedResponse(self)
|
|
@@ -225,8 +224,7 @@ class AsyncPayi(AsyncAPIClient):
|
|
|
225
224
|
ingest: ingest.AsyncIngestResource
|
|
226
225
|
categories: categories.AsyncCategoriesResource
|
|
227
226
|
experiences: experiences.AsyncExperiencesResource
|
|
228
|
-
|
|
229
|
-
price_modifiers: price_modifiers.AsyncPriceModifiersResource
|
|
227
|
+
use_cases: use_cases.AsyncUseCasesResource
|
|
230
228
|
requests: requests.AsyncRequestsResource
|
|
231
229
|
with_raw_response: AsyncPayiWithRawResponse
|
|
232
230
|
with_streaming_response: AsyncPayiWithStreamedResponse
|
|
@@ -289,8 +287,7 @@ class AsyncPayi(AsyncAPIClient):
|
|
|
289
287
|
self.ingest = ingest.AsyncIngestResource(self)
|
|
290
288
|
self.categories = categories.AsyncCategoriesResource(self)
|
|
291
289
|
self.experiences = experiences.AsyncExperiencesResource(self)
|
|
292
|
-
self.
|
|
293
|
-
self.price_modifiers = price_modifiers.AsyncPriceModifiersResource(self)
|
|
290
|
+
self.use_cases = use_cases.AsyncUseCasesResource(self)
|
|
294
291
|
self.requests = requests.AsyncRequestsResource(self)
|
|
295
292
|
self.with_raw_response = AsyncPayiWithRawResponse(self)
|
|
296
293
|
self.with_streaming_response = AsyncPayiWithStreamedResponse(self)
|
|
@@ -406,8 +403,7 @@ class PayiWithRawResponse:
|
|
|
406
403
|
self.ingest = ingest.IngestResourceWithRawResponse(client.ingest)
|
|
407
404
|
self.categories = categories.CategoriesResourceWithRawResponse(client.categories)
|
|
408
405
|
self.experiences = experiences.ExperiencesResourceWithRawResponse(client.experiences)
|
|
409
|
-
self.
|
|
410
|
-
self.price_modifiers = price_modifiers.PriceModifiersResourceWithRawResponse(client.price_modifiers)
|
|
406
|
+
self.use_cases = use_cases.UseCasesResourceWithRawResponse(client.use_cases)
|
|
411
407
|
self.requests = requests.RequestsResourceWithRawResponse(client.requests)
|
|
412
408
|
|
|
413
409
|
|
|
@@ -417,8 +413,7 @@ class AsyncPayiWithRawResponse:
|
|
|
417
413
|
self.ingest = ingest.AsyncIngestResourceWithRawResponse(client.ingest)
|
|
418
414
|
self.categories = categories.AsyncCategoriesResourceWithRawResponse(client.categories)
|
|
419
415
|
self.experiences = experiences.AsyncExperiencesResourceWithRawResponse(client.experiences)
|
|
420
|
-
self.
|
|
421
|
-
self.price_modifiers = price_modifiers.AsyncPriceModifiersResourceWithRawResponse(client.price_modifiers)
|
|
416
|
+
self.use_cases = use_cases.AsyncUseCasesResourceWithRawResponse(client.use_cases)
|
|
422
417
|
self.requests = requests.AsyncRequestsResourceWithRawResponse(client.requests)
|
|
423
418
|
|
|
424
419
|
|
|
@@ -428,8 +423,7 @@ class PayiWithStreamedResponse:
|
|
|
428
423
|
self.ingest = ingest.IngestResourceWithStreamingResponse(client.ingest)
|
|
429
424
|
self.categories = categories.CategoriesResourceWithStreamingResponse(client.categories)
|
|
430
425
|
self.experiences = experiences.ExperiencesResourceWithStreamingResponse(client.experiences)
|
|
431
|
-
self.
|
|
432
|
-
self.price_modifiers = price_modifiers.PriceModifiersResourceWithStreamingResponse(client.price_modifiers)
|
|
426
|
+
self.use_cases = use_cases.UseCasesResourceWithStreamingResponse(client.use_cases)
|
|
433
427
|
self.requests = requests.RequestsResourceWithStreamingResponse(client.requests)
|
|
434
428
|
|
|
435
429
|
|
|
@@ -439,8 +433,7 @@ class AsyncPayiWithStreamedResponse:
|
|
|
439
433
|
self.ingest = ingest.AsyncIngestResourceWithStreamingResponse(client.ingest)
|
|
440
434
|
self.categories = categories.AsyncCategoriesResourceWithStreamingResponse(client.categories)
|
|
441
435
|
self.experiences = experiences.AsyncExperiencesResourceWithStreamingResponse(client.experiences)
|
|
442
|
-
self.
|
|
443
|
-
self.price_modifiers = price_modifiers.AsyncPriceModifiersResourceWithStreamingResponse(client.price_modifiers)
|
|
436
|
+
self.use_cases = use_cases.AsyncUseCasesResourceWithStreamingResponse(client.use_cases)
|
|
444
437
|
self.requests = requests.AsyncRequestsResourceWithStreamingResponse(client.requests)
|
|
445
438
|
|
|
446
439
|
|
|
@@ -47,7 +47,7 @@ def create_headers(
|
|
|
47
47
|
experience_name: Union[str, None] = None,
|
|
48
48
|
use_case_id: Union[str, None] = None,
|
|
49
49
|
use_case_name: Union[str, None] = None,
|
|
50
|
-
use_case_version: Union[
|
|
50
|
+
use_case_version: Union[int, None] = None,
|
|
51
51
|
) -> Dict[str, str]:
|
|
52
52
|
headers: Dict[str, str] = {}
|
|
53
53
|
|
|
@@ -66,7 +66,7 @@ def create_headers(
|
|
|
66
66
|
if use_case_name:
|
|
67
67
|
headers.update({ PayiHeaderNames.use_case_name: use_case_name})
|
|
68
68
|
if use_case_version:
|
|
69
|
-
headers.update({ PayiHeaderNames.use_case_version: use_case_version})
|
|
69
|
+
headers.update({ PayiHeaderNames.use_case_version: str(use_case_version)})
|
|
70
70
|
return headers
|
|
71
71
|
|
|
72
72
|
def payi_anthropic_url(payi_base_url: Union[str, None] = None) -> str:
|
|
@@ -24,6 +24,14 @@ from .requests import (
|
|
|
24
24
|
RequestsResourceWithStreamingResponse,
|
|
25
25
|
AsyncRequestsResourceWithStreamingResponse,
|
|
26
26
|
)
|
|
27
|
+
from .use_cases import (
|
|
28
|
+
UseCasesResource,
|
|
29
|
+
AsyncUseCasesResource,
|
|
30
|
+
UseCasesResourceWithRawResponse,
|
|
31
|
+
AsyncUseCasesResourceWithRawResponse,
|
|
32
|
+
UseCasesResourceWithStreamingResponse,
|
|
33
|
+
AsyncUseCasesResourceWithStreamingResponse,
|
|
34
|
+
)
|
|
27
35
|
from .categories import (
|
|
28
36
|
CategoriesResource,
|
|
29
37
|
AsyncCategoriesResource,
|
|
@@ -40,22 +48,6 @@ from .experiences import (
|
|
|
40
48
|
ExperiencesResourceWithStreamingResponse,
|
|
41
49
|
AsyncExperiencesResourceWithStreamingResponse,
|
|
42
50
|
)
|
|
43
|
-
from .billing_models import (
|
|
44
|
-
BillingModelsResource,
|
|
45
|
-
AsyncBillingModelsResource,
|
|
46
|
-
BillingModelsResourceWithRawResponse,
|
|
47
|
-
AsyncBillingModelsResourceWithRawResponse,
|
|
48
|
-
BillingModelsResourceWithStreamingResponse,
|
|
49
|
-
AsyncBillingModelsResourceWithStreamingResponse,
|
|
50
|
-
)
|
|
51
|
-
from .price_modifiers import (
|
|
52
|
-
PriceModifiersResource,
|
|
53
|
-
AsyncPriceModifiersResource,
|
|
54
|
-
PriceModifiersResourceWithRawResponse,
|
|
55
|
-
AsyncPriceModifiersResourceWithRawResponse,
|
|
56
|
-
PriceModifiersResourceWithStreamingResponse,
|
|
57
|
-
AsyncPriceModifiersResourceWithStreamingResponse,
|
|
58
|
-
)
|
|
59
51
|
|
|
60
52
|
__all__ = [
|
|
61
53
|
"LimitsResource",
|
|
@@ -82,18 +74,12 @@ __all__ = [
|
|
|
82
74
|
"AsyncExperiencesResourceWithRawResponse",
|
|
83
75
|
"ExperiencesResourceWithStreamingResponse",
|
|
84
76
|
"AsyncExperiencesResourceWithStreamingResponse",
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"PriceModifiersResource",
|
|
92
|
-
"AsyncPriceModifiersResource",
|
|
93
|
-
"PriceModifiersResourceWithRawResponse",
|
|
94
|
-
"AsyncPriceModifiersResourceWithRawResponse",
|
|
95
|
-
"PriceModifiersResourceWithStreamingResponse",
|
|
96
|
-
"AsyncPriceModifiersResourceWithStreamingResponse",
|
|
77
|
+
"UseCasesResource",
|
|
78
|
+
"AsyncUseCasesResource",
|
|
79
|
+
"UseCasesResourceWithRawResponse",
|
|
80
|
+
"AsyncUseCasesResourceWithRawResponse",
|
|
81
|
+
"UseCasesResourceWithStreamingResponse",
|
|
82
|
+
"AsyncUseCasesResourceWithStreamingResponse",
|
|
97
83
|
"RequestsResource",
|
|
98
84
|
"AsyncRequestsResource",
|
|
99
85
|
"RequestsResourceWithRawResponse",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Dict, Union
|
|
5
|
+
from typing import Dict, Union, Optional
|
|
6
6
|
from datetime import datetime
|
|
7
7
|
|
|
8
8
|
import httpx
|
|
@@ -54,9 +54,9 @@ class ResourcesResource(SyncAPIResource):
|
|
|
54
54
|
*,
|
|
55
55
|
category: str,
|
|
56
56
|
units: Dict[str, resource_create_params.Units],
|
|
57
|
-
max_input_units: int | NotGiven = NOT_GIVEN,
|
|
58
|
-
max_output_units: int | NotGiven = NOT_GIVEN,
|
|
59
|
-
max_total_units: int | NotGiven = NOT_GIVEN,
|
|
57
|
+
max_input_units: Optional[int] | NotGiven = NOT_GIVEN,
|
|
58
|
+
max_output_units: Optional[int] | NotGiven = NOT_GIVEN,
|
|
59
|
+
max_total_units: Optional[int] | NotGiven = NOT_GIVEN,
|
|
60
60
|
start_timestamp: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
|
|
61
61
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
62
62
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -240,9 +240,9 @@ class AsyncResourcesResource(AsyncAPIResource):
|
|
|
240
240
|
*,
|
|
241
241
|
category: str,
|
|
242
242
|
units: Dict[str, resource_create_params.Units],
|
|
243
|
-
max_input_units: int | NotGiven = NOT_GIVEN,
|
|
244
|
-
max_output_units: int | NotGiven = NOT_GIVEN,
|
|
245
|
-
max_total_units: int | NotGiven = NOT_GIVEN,
|
|
243
|
+
max_input_units: Optional[int] | NotGiven = NOT_GIVEN,
|
|
244
|
+
max_output_units: Optional[int] | NotGiven = NOT_GIVEN,
|
|
245
|
+
max_total_units: Optional[int] | NotGiven = NOT_GIVEN,
|
|
246
246
|
start_timestamp: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
|
|
247
247
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
248
248
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -31,6 +31,9 @@ from ...._base_client import make_request_options
|
|
|
31
31
|
from ....types.experiences import type_list_params, type_create_params, type_update_params
|
|
32
32
|
from ....types.experiences.experience_type import ExperienceType
|
|
33
33
|
from ....types.experiences.type_list_response import TypeListResponse
|
|
34
|
+
from ....types.shared_params.pay_i_common_models_budget_management_create_limit_base import (
|
|
35
|
+
PayICommonModelsBudgetManagementCreateLimitBase,
|
|
36
|
+
)
|
|
34
37
|
|
|
35
38
|
__all__ = ["TypesResource", "AsyncTypesResource"]
|
|
36
39
|
|
|
@@ -64,7 +67,7 @@ class TypesResource(SyncAPIResource):
|
|
|
64
67
|
*,
|
|
65
68
|
description: str,
|
|
66
69
|
name: str,
|
|
67
|
-
limit_config:
|
|
70
|
+
limit_config: PayICommonModelsBudgetManagementCreateLimitBase | NotGiven = NOT_GIVEN,
|
|
68
71
|
logging_enabled: Optional[bool] | NotGiven = NOT_GIVEN,
|
|
69
72
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
70
73
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -277,7 +280,7 @@ class AsyncTypesResource(AsyncAPIResource):
|
|
|
277
280
|
*,
|
|
278
281
|
description: str,
|
|
279
282
|
name: str,
|
|
280
|
-
limit_config:
|
|
283
|
+
limit_config: PayICommonModelsBudgetManagementCreateLimitBase | NotGiven = NOT_GIVEN,
|
|
281
284
|
logging_enabled: Optional[bool] | NotGiven = NOT_GIVEN,
|
|
282
285
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
283
286
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -101,13 +101,14 @@ class IngestResource(SyncAPIResource):
|
|
|
101
101
|
provider_response_json: Union[str, List[str], None] | NotGiven = NOT_GIVEN,
|
|
102
102
|
provider_uri: Optional[str] | NotGiven = NOT_GIVEN,
|
|
103
103
|
time_to_first_token_ms: Optional[int] | NotGiven = NOT_GIVEN,
|
|
104
|
+
use_case_properties: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
|
|
104
105
|
limit_ids: Optional[list[str]] | NotGiven = NOT_GIVEN,
|
|
105
106
|
request_tags: Optional[list[str]] | NotGiven = NOT_GIVEN,
|
|
106
107
|
experience_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
107
108
|
experience_name: Optional[str] | NotGiven = NOT_GIVEN,
|
|
108
|
-
|
|
109
|
+
use_case_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
109
110
|
use_case_name: Optional[str] | NotGiven = NOT_GIVEN,
|
|
110
|
-
use_case_version: Optional[
|
|
111
|
+
use_case_version: Optional[int] | NotGiven = NOT_GIVEN,
|
|
111
112
|
user_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
112
113
|
resource_scope: Optional[str] | NotGiven = NOT_GIVEN,
|
|
113
114
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -143,7 +144,7 @@ class IngestResource(SyncAPIResource):
|
|
|
143
144
|
|
|
144
145
|
use_case_id (str, optional): The use case instance id
|
|
145
146
|
|
|
146
|
-
use_case_version (
|
|
147
|
+
use_case_version (int, optional): The use case instance version
|
|
147
148
|
|
|
148
149
|
user_id (str, optional): The user id
|
|
149
150
|
|
|
@@ -159,6 +160,7 @@ class IngestResource(SyncAPIResource):
|
|
|
159
160
|
"""
|
|
160
161
|
valid_ids_str: str | NotGiven = NOT_GIVEN
|
|
161
162
|
valid_tags_str: str | NotGiven = NOT_GIVEN
|
|
163
|
+
use_case_version_str: str | NotGiven = NOT_GIVEN
|
|
162
164
|
|
|
163
165
|
if limit_ids is None or isinstance(limit_ids, NotGiven):
|
|
164
166
|
valid_ids_str = NOT_GIVEN
|
|
@@ -187,11 +189,13 @@ class IngestResource(SyncAPIResource):
|
|
|
187
189
|
if use_case_name is None or isinstance(use_case_name, NotGiven):
|
|
188
190
|
use_case_name = NOT_GIVEN
|
|
189
191
|
|
|
190
|
-
if
|
|
191
|
-
|
|
192
|
+
if use_case_id is None or isinstance(use_case_id, NotGiven):
|
|
193
|
+
use_case_id = NOT_GIVEN
|
|
192
194
|
|
|
193
195
|
if use_case_version is None or isinstance(use_case_version, NotGiven):
|
|
194
|
-
|
|
196
|
+
use_case_version_str = NOT_GIVEN
|
|
197
|
+
else:
|
|
198
|
+
use_case_version_str = str(use_case_version)
|
|
195
199
|
|
|
196
200
|
if user_id is None or isinstance(user_id, NotGiven):
|
|
197
201
|
user_id = NOT_GIVEN
|
|
@@ -202,9 +206,9 @@ class IngestResource(SyncAPIResource):
|
|
|
202
206
|
"xProxy-Request-Tags": valid_tags_str,
|
|
203
207
|
"xProxy-Experience-Name": experience_name,
|
|
204
208
|
"xProxy-Experience-ID": experience_id,
|
|
205
|
-
"xProxy-UseCase-ID":
|
|
209
|
+
"xProxy-UseCase-ID": use_case_id,
|
|
206
210
|
"xProxy-UseCase-Name": use_case_name,
|
|
207
|
-
"xProxy-UseCase-Version":
|
|
211
|
+
"xProxy-UseCase-Version": use_case_version_str,
|
|
208
212
|
"xProxy-User-ID": user_id,
|
|
209
213
|
"xProxy-Resource-Scope": resource_scope,
|
|
210
214
|
}).items() if value is not None}, # Ensure no 'None' values are included
|
|
@@ -230,6 +234,7 @@ class IngestResource(SyncAPIResource):
|
|
|
230
234
|
"provider_response_json": provider_response_json,
|
|
231
235
|
"provider_uri": provider_uri,
|
|
232
236
|
"time_to_first_token_ms": time_to_first_token_ms,
|
|
237
|
+
"use_case_properties": use_case_properties,
|
|
233
238
|
},
|
|
234
239
|
ingest_units_params.IngestUnitsParams,
|
|
235
240
|
),
|
|
@@ -310,13 +315,14 @@ class AsyncIngestResource(AsyncAPIResource):
|
|
|
310
315
|
provider_response_json: Union[str, List[str], None] | NotGiven = NOT_GIVEN,
|
|
311
316
|
provider_uri: Optional[str] | NotGiven = NOT_GIVEN,
|
|
312
317
|
time_to_first_token_ms: Optional[int] | NotGiven = NOT_GIVEN,
|
|
318
|
+
use_case_properties: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
|
|
313
319
|
limit_ids: Optional[list[str]] | NotGiven = NOT_GIVEN,
|
|
314
320
|
request_tags: Optional[list[str]] | NotGiven = NOT_GIVEN,
|
|
315
321
|
experience_name: Optional[str] | NotGiven = NOT_GIVEN,
|
|
316
322
|
experience_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
317
323
|
use_case_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
318
324
|
use_case_name: Optional[str] | NotGiven = NOT_GIVEN,
|
|
319
|
-
use_case_version: Optional[
|
|
325
|
+
use_case_version: Optional[int] | NotGiven = NOT_GIVEN,
|
|
320
326
|
user_id: Optional[str] | NotGiven = NOT_GIVEN,
|
|
321
327
|
resource_scope: Union[str, None] | NotGiven = NOT_GIVEN,
|
|
322
328
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -351,7 +357,7 @@ class AsyncIngestResource(AsyncAPIResource):
|
|
|
351
357
|
|
|
352
358
|
use_case_id (str, optional): The use case instance id
|
|
353
359
|
|
|
354
|
-
use_case_version (
|
|
360
|
+
use_case_version (int, optional): The use case instance version
|
|
355
361
|
|
|
356
362
|
user_id (str, optional): The user id
|
|
357
363
|
|
|
@@ -367,6 +373,7 @@ class AsyncIngestResource(AsyncAPIResource):
|
|
|
367
373
|
"""
|
|
368
374
|
valid_ids_str: str | NotGiven = NOT_GIVEN
|
|
369
375
|
valid_tags_str: str | NotGiven = NOT_GIVEN
|
|
376
|
+
use_case_version_str: str | NotGiven = NOT_GIVEN
|
|
370
377
|
|
|
371
378
|
if limit_ids is None or isinstance(limit_ids, NotGiven):
|
|
372
379
|
valid_ids_str = NOT_GIVEN
|
|
@@ -399,7 +406,9 @@ class AsyncIngestResource(AsyncAPIResource):
|
|
|
399
406
|
use_case_id = NOT_GIVEN
|
|
400
407
|
|
|
401
408
|
if use_case_version is None or isinstance(use_case_version, NotGiven):
|
|
402
|
-
|
|
409
|
+
use_case_version_str = NOT_GIVEN
|
|
410
|
+
else:
|
|
411
|
+
use_case_version_str = str(use_case_version)
|
|
403
412
|
|
|
404
413
|
if user_id is None or isinstance(user_id, NotGiven):
|
|
405
414
|
user_id = NOT_GIVEN
|
|
@@ -412,7 +421,7 @@ class AsyncIngestResource(AsyncAPIResource):
|
|
|
412
421
|
"xProxy-Experience-ID": experience_id,
|
|
413
422
|
"xProxy-UseCase-ID": use_case_id,
|
|
414
423
|
"xProxy-UseCase-Name": use_case_name,
|
|
415
|
-
"xProxy-UseCase-Version":
|
|
424
|
+
"xProxy-UseCase-Version": use_case_version_str,
|
|
416
425
|
"xProxy-User-ID": user_id,
|
|
417
426
|
"xProxy-Resource-Scope": resource_scope,
|
|
418
427
|
}).items() if value is not None}, # Ensure no 'None' values are included
|
|
@@ -437,6 +446,7 @@ class AsyncIngestResource(AsyncAPIResource):
|
|
|
437
446
|
"provider_response_json": provider_response_json,
|
|
438
447
|
"provider_uri": provider_uri,
|
|
439
448
|
"time_to_first_token_ms": time_to_first_token_ms,
|
|
449
|
+
"use_case_properties": use_case_properties,
|
|
440
450
|
},
|
|
441
451
|
ingest_units_params.IngestUnitsParams,
|
|
442
452
|
),
|
|
@@ -195,6 +195,7 @@ class LimitsResource(SyncAPIResource):
|
|
|
195
195
|
page_size: int | NotGiven = NOT_GIVEN,
|
|
196
196
|
sort_ascending: bool | NotGiven = NOT_GIVEN,
|
|
197
197
|
sort_by: str | NotGiven = NOT_GIVEN,
|
|
198
|
+
tag_list: List[str] | NotGiven = NOT_GIVEN,
|
|
198
199
|
tags: str | NotGiven = NOT_GIVEN,
|
|
199
200
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
200
201
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -229,6 +230,7 @@ class LimitsResource(SyncAPIResource):
|
|
|
229
230
|
"page_size": page_size,
|
|
230
231
|
"sort_ascending": sort_ascending,
|
|
231
232
|
"sort_by": sort_by,
|
|
233
|
+
"tag_list": tag_list,
|
|
232
234
|
"tags": tags,
|
|
233
235
|
},
|
|
234
236
|
limit_list_params.LimitListParams,
|
|
@@ -467,6 +469,7 @@ class AsyncLimitsResource(AsyncAPIResource):
|
|
|
467
469
|
page_size: int | NotGiven = NOT_GIVEN,
|
|
468
470
|
sort_ascending: bool | NotGiven = NOT_GIVEN,
|
|
469
471
|
sort_by: str | NotGiven = NOT_GIVEN,
|
|
472
|
+
tag_list: List[str] | NotGiven = NOT_GIVEN,
|
|
470
473
|
tags: str | NotGiven = NOT_GIVEN,
|
|
471
474
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
472
475
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -501,6 +504,7 @@ class AsyncLimitsResource(AsyncAPIResource):
|
|
|
501
504
|
"page_size": page_size,
|
|
502
505
|
"sort_ascending": sort_ascending,
|
|
503
506
|
"sort_by": sort_by,
|
|
507
|
+
"tag_list": tag_list,
|
|
504
508
|
"tags": tags,
|
|
505
509
|
},
|
|
506
510
|
limit_list_params.LimitListParams,
|
|
@@ -66,6 +66,8 @@ class TagsResource(SyncAPIResource):
|
|
|
66
66
|
Add Limit Tags
|
|
67
67
|
|
|
68
68
|
Args:
|
|
69
|
+
limit_tags: List of limit tags
|
|
70
|
+
|
|
69
71
|
extra_headers: Send extra headers
|
|
70
72
|
|
|
71
73
|
extra_query: Add additional query parameters to the request
|
|
@@ -101,6 +103,8 @@ class TagsResource(SyncAPIResource):
|
|
|
101
103
|
Update the Limit Tags
|
|
102
104
|
|
|
103
105
|
Args:
|
|
106
|
+
limit_tags: List of limit tags
|
|
107
|
+
|
|
104
108
|
extra_headers: Send extra headers
|
|
105
109
|
|
|
106
110
|
extra_query: Add additional query parameters to the request
|
|
@@ -202,6 +206,8 @@ class TagsResource(SyncAPIResource):
|
|
|
202
206
|
Remove Tags from Limit
|
|
203
207
|
|
|
204
208
|
Args:
|
|
209
|
+
limit_tags: List of limit tags
|
|
210
|
+
|
|
205
211
|
extra_headers: Send extra headers
|
|
206
212
|
|
|
207
213
|
extra_query: Add additional query parameters to the request
|
|
@@ -258,6 +264,8 @@ class AsyncTagsResource(AsyncAPIResource):
|
|
|
258
264
|
Add Limit Tags
|
|
259
265
|
|
|
260
266
|
Args:
|
|
267
|
+
limit_tags: List of limit tags
|
|
268
|
+
|
|
261
269
|
extra_headers: Send extra headers
|
|
262
270
|
|
|
263
271
|
extra_query: Add additional query parameters to the request
|
|
@@ -293,6 +301,8 @@ class AsyncTagsResource(AsyncAPIResource):
|
|
|
293
301
|
Update the Limit Tags
|
|
294
302
|
|
|
295
303
|
Args:
|
|
304
|
+
limit_tags: List of limit tags
|
|
305
|
+
|
|
296
306
|
extra_headers: Send extra headers
|
|
297
307
|
|
|
298
308
|
extra_query: Add additional query parameters to the request
|
|
@@ -394,6 +404,8 @@ class AsyncTagsResource(AsyncAPIResource):
|
|
|
394
404
|
Remove Tags from Limit
|
|
395
405
|
|
|
396
406
|
Args:
|
|
407
|
+
limit_tags: List of limit tags
|
|
408
|
+
|
|
397
409
|
extra_headers: Send extra headers
|
|
398
410
|
|
|
399
411
|
extra_query: Add additional query parameters to the request
|
|
@@ -21,7 +21,7 @@ from ..._response import (
|
|
|
21
21
|
)
|
|
22
22
|
from ..._base_client import make_request_options
|
|
23
23
|
from ...types.requests import property_create_params
|
|
24
|
-
from ...types.
|
|
24
|
+
from ...types.shared.properties_response import PropertiesResponse
|
|
25
25
|
|
|
26
26
|
__all__ = ["PropertiesResource", "AsyncPropertiesResource"]
|
|
27
27
|
|