payi 0.1.0a27__tar.gz → 0.1.0a28__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.0a28/.release-please-manifest.json +3 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/CHANGELOG.md +15 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/PKG-INFO +7 -11
- {payi-0.1.0a27 → payi-0.1.0a28}/README.md +4 -6
- {payi-0.1.0a27 → payi-0.1.0a28}/pyproject.toml +3 -4
- {payi-0.1.0a27 → payi-0.1.0a28}/requirements-dev.lock +10 -13
- {payi-0.1.0a27 → payi-0.1.0a28}/requirements.lock +4 -4
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/_compat.py +5 -3
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/_models.py +11 -8
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/_types.py +4 -2
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/_utils/__init__.py +1 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/_utils/_transform.py +12 -2
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/_utils/_utils.py +17 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/_version.py +1 -1
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/conftest.py +8 -6
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/test_client.py +2 -2
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/test_models.py +7 -14
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/test_transform.py +15 -0
- payi-0.1.0a27/.release-please-manifest.json +0 -3
- payi-0.1.0a27/src/payi/types/evaluations/__init__.py +0 -6
- payi-0.1.0a27/src/payi/types/evaluations/experience_create_params.py +0 -14
- payi-0.1.0a27/src/payi/types/evaluations/request_create_params.py +0 -14
- payi-0.1.0a27/src/payi/types/shared/__init__.py +0 -2
- payi-0.1.0a27/tests/api_resources/experiences/__init__.py +0 -1
- {payi-0.1.0a27 → payi-0.1.0a28}/.gitignore +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/CONTRIBUTING.md +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/LICENSE +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/SECURITY.md +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/api.md +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/bin/check-release-environment +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/bin/publish-pypi +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/examples/.keep +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/mypy.ini +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/noxfile.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/release-please-config.json +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/__init__.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/_base_client.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/_client.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/_constants.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/_exceptions.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/_files.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/_qs.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/_resource.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/_response.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/_streaming.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/_utils/_logs.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/_utils/_proxy.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/_utils/_reflection.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/_utils/_streams.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/_utils/_sync.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/_utils/_typing.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/lib/.keep +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/lib/helpers.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/py.typed +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/resources/__init__.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/resources/billing_models.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/resources/budgets/__init__.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/resources/budgets/budgets.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/resources/budgets/tags.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/resources/categories/__init__.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/resources/categories/categories.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/resources/categories/resources.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/resources/csat.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/resources/experiences/__init__.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/resources/experiences/experiences.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/resources/experiences/types.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/resources/ingest.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/resources/price_modifiers.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/__init__.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/billing_model.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/billing_model_create_params.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/billing_model_list_response.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/billing_model_update_params.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/budget_create_params.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/budget_history_response.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/budget_list_params.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/budget_response.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/budget_update_params.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/budgets/__init__.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/budgets/budget_tags.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/budgets/tag_create_params.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/budgets/tag_create_response.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/budgets/tag_delete_response.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/budgets/tag_list_response.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/budgets/tag_remove_params.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/budgets/tag_remove_response.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/budgets/tag_update_params.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/budgets/tag_update_response.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/bulk_ingest_response.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/categories/__init__.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/categories/resource_create_params.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/categories/resource_list_response.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/category_delete_resource_response.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/category_delete_response.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/category_list_resources_response.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/category_list_response.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/category_resource_response.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/category_response.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/cost_data.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/cost_details.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/csat.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/csat_create_params.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/default_response.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/experience_instance.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/experiences/__init__.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/experiences/experience_type.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/experiences/type_create_params.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/experiences/type_list_params.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/experiences/type_list_response.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/experiences/type_update_params.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/ingest_bulk_params.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/ingest_event_param.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/ingest_response.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/ingest_units_params.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/paged_budget_list.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/price_modifier.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/price_modifier_create_params.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/price_modifier_retrieve_response.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/price_modifier_update_params.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/requests_data.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/src/payi/types/total_cost_data.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/__init__.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/api_resources/__init__.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/api_resources/budgets/__init__.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/api_resources/budgets/test_tags.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/api_resources/categories/__init__.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/api_resources/categories/test_resources.py +0 -0
- {payi-0.1.0a27/tests/api_resources/evaluations → payi-0.1.0a28/tests/api_resources/experiences}/__init__.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/api_resources/experiences/test_types.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/api_resources/test_billing_models.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/api_resources/test_budgets.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/api_resources/test_categories.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/api_resources/test_csat.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/api_resources/test_experiences.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/api_resources/test_ingest.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/api_resources/test_price_modifiers.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/sample_file.txt +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/test_deepcopy.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/test_extract_files.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/test_files.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/test_qs.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/test_required_args.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/test_response.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/test_streaming.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/test_utils/test_proxy.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/test_utils/test_typing.py +0 -0
- {payi-0.1.0a27 → payi-0.1.0a28}/tests/utils.py +0 -0
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.28 (2024-11-15)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.27...v0.1.0-alpha.28](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.27...v0.1.0-alpha.28)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([#127](https://github.com/Pay-i/pay-i-python/issues/127)) ([f9f8665](https://github.com/Pay-i/pay-i-python/commit/f9f8665278eec1f3b4d081076047460004230a97))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* rebuild project due to codegen change ([#128](https://github.com/Pay-i/pay-i-python/issues/128)) ([31ab0f5](https://github.com/Pay-i/pay-i-python/commit/31ab0f57ca4d1c073c7d1996af9df94db792cf9f))
|
|
15
|
+
* rebuild project due to codegen change ([#130](https://github.com/Pay-i/pay-i-python/issues/130)) ([e98d9ce](https://github.com/Pay-i/pay-i-python/commit/e98d9cead371ef5e3e9f3b68116dc81975fbd471))
|
|
16
|
+
* rebuild project due to codegen change ([#131](https://github.com/Pay-i/pay-i-python/issues/131)) ([e197c4b](https://github.com/Pay-i/pay-i-python/commit/e197c4b0199f417b550ee4c852ffcaef4888c82c))
|
|
17
|
+
|
|
3
18
|
## 0.1.0-alpha.27 (2024-10-22)
|
|
4
19
|
|
|
5
20
|
Full Changelog: [v0.1.0-alpha.26...v0.1.0-alpha.27](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.26...v0.1.0-alpha.27)
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: payi
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a28
|
|
4
4
|
Summary: The official Python library for the payi API
|
|
5
5
|
Project-URL: Homepage, https://github.com/Pay-i/pay-i-python
|
|
6
6
|
Project-URL: Repository, https://github.com/Pay-i/pay-i-python
|
|
7
7
|
Author-email: Payi <support@payi.com>
|
|
8
|
-
License
|
|
9
|
-
License-File: LICENSE
|
|
8
|
+
License: Apache-2.0
|
|
10
9
|
Classifier: Intended Audience :: Developers
|
|
11
10
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
11
|
Classifier: Operating System :: MacOS
|
|
@@ -14,7 +13,6 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
14
13
|
Classifier: Operating System :: OS Independent
|
|
15
14
|
Classifier: Operating System :: POSIX
|
|
16
15
|
Classifier: Operating System :: POSIX :: Linux
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
18
16
|
Classifier: Programming Language :: Python :: 3.8
|
|
19
17
|
Classifier: Programming Language :: Python :: 3.9
|
|
20
18
|
Classifier: Programming Language :: Python :: 3.10
|
|
@@ -22,7 +20,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
22
20
|
Classifier: Programming Language :: Python :: 3.12
|
|
23
21
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
24
22
|
Classifier: Typing :: Typed
|
|
25
|
-
Requires-Python: >=3.
|
|
23
|
+
Requires-Python: >=3.8
|
|
26
24
|
Requires-Dist: anyio<5,>=3.5.0
|
|
27
25
|
Requires-Dist: cached-property; python_version < '3.8'
|
|
28
26
|
Requires-Dist: distro<2,>=1.7.0
|
|
@@ -36,7 +34,7 @@ Description-Content-Type: text/markdown
|
|
|
36
34
|
|
|
37
35
|
[](https://pypi.org/project/payi/)
|
|
38
36
|
|
|
39
|
-
The Payi Python library provides convenient access to the Payi REST API from any Python 3.
|
|
37
|
+
The Payi Python library provides convenient access to the Payi REST API from any Python 3.8+
|
|
40
38
|
application. The library includes type definitions for all request params and response fields,
|
|
41
39
|
and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx).
|
|
42
40
|
|
|
@@ -62,8 +60,7 @@ import os
|
|
|
62
60
|
from payi import Payi
|
|
63
61
|
|
|
64
62
|
client = Payi(
|
|
65
|
-
# This is the default and can be omitted
|
|
66
|
-
api_key=os.environ.get("PAYI_API_KEY"),
|
|
63
|
+
api_key=os.environ.get("PAYI_API_KEY"), # This is the default and can be omitted
|
|
67
64
|
)
|
|
68
65
|
|
|
69
66
|
budget_response = client.budgets.create(
|
|
@@ -88,8 +85,7 @@ import asyncio
|
|
|
88
85
|
from payi import AsyncPayi
|
|
89
86
|
|
|
90
87
|
client = AsyncPayi(
|
|
91
|
-
# This is the default and can be omitted
|
|
92
|
-
api_key=os.environ.get("PAYI_API_KEY"),
|
|
88
|
+
api_key=os.environ.get("PAYI_API_KEY"), # This is the default and can be omitted
|
|
93
89
|
)
|
|
94
90
|
|
|
95
91
|
|
|
@@ -369,7 +365,7 @@ print(payi.__version__)
|
|
|
369
365
|
|
|
370
366
|
## Requirements
|
|
371
367
|
|
|
372
|
-
Python 3.
|
|
368
|
+
Python 3.8 or higher.
|
|
373
369
|
|
|
374
370
|
## Contributing
|
|
375
371
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://pypi.org/project/payi/)
|
|
4
4
|
|
|
5
|
-
The Payi Python library provides convenient access to the Payi REST API from any Python 3.
|
|
5
|
+
The Payi Python library provides convenient access to the Payi REST API from any Python 3.8+
|
|
6
6
|
application. The library includes type definitions for all request params and response fields,
|
|
7
7
|
and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx).
|
|
8
8
|
|
|
@@ -28,8 +28,7 @@ import os
|
|
|
28
28
|
from payi import Payi
|
|
29
29
|
|
|
30
30
|
client = Payi(
|
|
31
|
-
# This is the default and can be omitted
|
|
32
|
-
api_key=os.environ.get("PAYI_API_KEY"),
|
|
31
|
+
api_key=os.environ.get("PAYI_API_KEY"), # This is the default and can be omitted
|
|
33
32
|
)
|
|
34
33
|
|
|
35
34
|
budget_response = client.budgets.create(
|
|
@@ -54,8 +53,7 @@ import asyncio
|
|
|
54
53
|
from payi import AsyncPayi
|
|
55
54
|
|
|
56
55
|
client = AsyncPayi(
|
|
57
|
-
# This is the default and can be omitted
|
|
58
|
-
api_key=os.environ.get("PAYI_API_KEY"),
|
|
56
|
+
api_key=os.environ.get("PAYI_API_KEY"), # This is the default and can be omitted
|
|
59
57
|
)
|
|
60
58
|
|
|
61
59
|
|
|
@@ -335,7 +333,7 @@ print(payi.__version__)
|
|
|
335
333
|
|
|
336
334
|
## Requirements
|
|
337
335
|
|
|
338
|
-
Python 3.
|
|
336
|
+
Python 3.8 or higher.
|
|
339
337
|
|
|
340
338
|
## Contributing
|
|
341
339
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "payi"
|
|
3
|
-
version = "0.1.0-alpha.
|
|
3
|
+
version = "0.1.0-alpha.28"
|
|
4
4
|
description = "The official Python library for the payi API"
|
|
5
5
|
dynamic = ["readme"]
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -16,11 +16,10 @@ dependencies = [
|
|
|
16
16
|
"sniffio",
|
|
17
17
|
"cached-property; python_version < '3.8'",
|
|
18
18
|
]
|
|
19
|
-
requires-python = ">= 3.
|
|
19
|
+
requires-python = ">= 3.8"
|
|
20
20
|
classifiers = [
|
|
21
21
|
"Typing :: Typed",
|
|
22
22
|
"Intended Audience :: Developers",
|
|
23
|
-
"Programming Language :: Python :: 3.7",
|
|
24
23
|
"Programming Language :: Python :: 3.8",
|
|
25
24
|
"Programming Language :: Python :: 3.9",
|
|
26
25
|
"Programming Language :: Python :: 3.10",
|
|
@@ -139,7 +138,7 @@ filterwarnings = [
|
|
|
139
138
|
# there are a couple of flags that are still disabled by
|
|
140
139
|
# default in strict mode as they are experimental and niche.
|
|
141
140
|
typeCheckingMode = "strict"
|
|
142
|
-
pythonVersion = "3.
|
|
141
|
+
pythonVersion = "3.8"
|
|
143
142
|
|
|
144
143
|
exclude = [
|
|
145
144
|
"_dev",
|
|
@@ -16,8 +16,6 @@ anyio==4.4.0
|
|
|
16
16
|
# via payi
|
|
17
17
|
argcomplete==3.1.2
|
|
18
18
|
# via nox
|
|
19
|
-
attrs==23.1.0
|
|
20
|
-
# via pytest
|
|
21
19
|
certifi==2023.7.22
|
|
22
20
|
# via httpcore
|
|
23
21
|
# via httpx
|
|
@@ -28,8 +26,9 @@ distlib==0.3.7
|
|
|
28
26
|
# via virtualenv
|
|
29
27
|
distro==1.8.0
|
|
30
28
|
# via payi
|
|
31
|
-
exceptiongroup==1.
|
|
29
|
+
exceptiongroup==1.2.2
|
|
32
30
|
# via anyio
|
|
31
|
+
# via pytest
|
|
33
32
|
filelock==3.12.4
|
|
34
33
|
# via virtualenv
|
|
35
34
|
h11==0.14.0
|
|
@@ -49,7 +48,7 @@ markdown-it-py==3.0.0
|
|
|
49
48
|
# via rich
|
|
50
49
|
mdurl==0.1.2
|
|
51
50
|
# via markdown-it-py
|
|
52
|
-
mypy==1.
|
|
51
|
+
mypy==1.13.0
|
|
53
52
|
mypy-extensions==1.0.0
|
|
54
53
|
# via mypy
|
|
55
54
|
nodeenv==1.8.0
|
|
@@ -60,20 +59,18 @@ packaging==23.2
|
|
|
60
59
|
# via pytest
|
|
61
60
|
platformdirs==3.11.0
|
|
62
61
|
# via virtualenv
|
|
63
|
-
pluggy==1.
|
|
64
|
-
# via pytest
|
|
65
|
-
py==1.11.0
|
|
62
|
+
pluggy==1.5.0
|
|
66
63
|
# via pytest
|
|
67
|
-
pydantic==2.
|
|
64
|
+
pydantic==2.9.2
|
|
68
65
|
# via payi
|
|
69
|
-
pydantic-core==2.
|
|
66
|
+
pydantic-core==2.23.4
|
|
70
67
|
# via pydantic
|
|
71
68
|
pygments==2.18.0
|
|
72
69
|
# via rich
|
|
73
70
|
pyright==1.1.380
|
|
74
|
-
pytest==
|
|
71
|
+
pytest==8.3.3
|
|
75
72
|
# via pytest-asyncio
|
|
76
|
-
pytest-asyncio==0.
|
|
73
|
+
pytest-asyncio==0.24.0
|
|
77
74
|
python-dateutil==2.8.2
|
|
78
75
|
# via time-machine
|
|
79
76
|
pytz==2023.3.post1
|
|
@@ -90,10 +87,10 @@ sniffio==1.3.0
|
|
|
90
87
|
# via httpx
|
|
91
88
|
# via payi
|
|
92
89
|
time-machine==2.9.0
|
|
93
|
-
tomli==2.0.
|
|
90
|
+
tomli==2.0.2
|
|
94
91
|
# via mypy
|
|
95
92
|
# via pytest
|
|
96
|
-
typing-extensions==4.
|
|
93
|
+
typing-extensions==4.12.2
|
|
97
94
|
# via anyio
|
|
98
95
|
# via mypy
|
|
99
96
|
# via payi
|
|
@@ -19,7 +19,7 @@ certifi==2023.7.22
|
|
|
19
19
|
# via httpx
|
|
20
20
|
distro==1.8.0
|
|
21
21
|
# via payi
|
|
22
|
-
exceptiongroup==1.
|
|
22
|
+
exceptiongroup==1.2.2
|
|
23
23
|
# via anyio
|
|
24
24
|
h11==0.14.0
|
|
25
25
|
# via httpcore
|
|
@@ -30,15 +30,15 @@ httpx==0.25.2
|
|
|
30
30
|
idna==3.4
|
|
31
31
|
# via anyio
|
|
32
32
|
# via httpx
|
|
33
|
-
pydantic==2.
|
|
33
|
+
pydantic==2.9.2
|
|
34
34
|
# via payi
|
|
35
|
-
pydantic-core==2.
|
|
35
|
+
pydantic-core==2.23.4
|
|
36
36
|
# via pydantic
|
|
37
37
|
sniffio==1.3.0
|
|
38
38
|
# via anyio
|
|
39
39
|
# via httpx
|
|
40
40
|
# via payi
|
|
41
|
-
typing-extensions==4.
|
|
41
|
+
typing-extensions==4.12.2
|
|
42
42
|
# via anyio
|
|
43
43
|
# via payi
|
|
44
44
|
# via pydantic
|
|
@@ -2,7 +2,7 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
from typing import TYPE_CHECKING, Any, Union, Generic, TypeVar, Callable, cast, overload
|
|
4
4
|
from datetime import date, datetime
|
|
5
|
-
from typing_extensions import Self
|
|
5
|
+
from typing_extensions import Self, Literal
|
|
6
6
|
|
|
7
7
|
import pydantic
|
|
8
8
|
from pydantic.fields import FieldInfo
|
|
@@ -133,13 +133,15 @@ def model_json(model: pydantic.BaseModel, *, indent: int | None = None) -> str:
|
|
|
133
133
|
def model_dump(
|
|
134
134
|
model: pydantic.BaseModel,
|
|
135
135
|
*,
|
|
136
|
-
exclude: IncEx = None,
|
|
136
|
+
exclude: IncEx | None = None,
|
|
137
137
|
exclude_unset: bool = False,
|
|
138
138
|
exclude_defaults: bool = False,
|
|
139
139
|
warnings: bool = True,
|
|
140
|
+
mode: Literal["json", "python"] = "python",
|
|
140
141
|
) -> dict[str, Any]:
|
|
141
|
-
if PYDANTIC_V2:
|
|
142
|
+
if PYDANTIC_V2 or hasattr(model, "model_dump"):
|
|
142
143
|
return model.model_dump(
|
|
144
|
+
mode=mode,
|
|
143
145
|
exclude=exclude,
|
|
144
146
|
exclude_unset=exclude_unset,
|
|
145
147
|
exclude_defaults=exclude_defaults,
|
|
@@ -37,6 +37,7 @@ from ._utils import (
|
|
|
37
37
|
PropertyInfo,
|
|
38
38
|
is_list,
|
|
39
39
|
is_given,
|
|
40
|
+
json_safe,
|
|
40
41
|
lru_cache,
|
|
41
42
|
is_mapping,
|
|
42
43
|
parse_date,
|
|
@@ -176,7 +177,7 @@ class BaseModel(pydantic.BaseModel):
|
|
|
176
177
|
# Based on https://github.com/samuelcolvin/pydantic/issues/1168#issuecomment-817742836.
|
|
177
178
|
@classmethod
|
|
178
179
|
@override
|
|
179
|
-
def construct(
|
|
180
|
+
def construct( # pyright: ignore[reportIncompatibleMethodOverride]
|
|
180
181
|
cls: Type[ModelT],
|
|
181
182
|
_fields_set: set[str] | None = None,
|
|
182
183
|
**values: object,
|
|
@@ -248,8 +249,8 @@ class BaseModel(pydantic.BaseModel):
|
|
|
248
249
|
self,
|
|
249
250
|
*,
|
|
250
251
|
mode: Literal["json", "python"] | str = "python",
|
|
251
|
-
include: IncEx = None,
|
|
252
|
-
exclude: IncEx = None,
|
|
252
|
+
include: IncEx | None = None,
|
|
253
|
+
exclude: IncEx | None = None,
|
|
253
254
|
by_alias: bool = False,
|
|
254
255
|
exclude_unset: bool = False,
|
|
255
256
|
exclude_defaults: bool = False,
|
|
@@ -279,8 +280,8 @@ class BaseModel(pydantic.BaseModel):
|
|
|
279
280
|
Returns:
|
|
280
281
|
A dictionary representation of the model.
|
|
281
282
|
"""
|
|
282
|
-
if mode
|
|
283
|
-
raise ValueError("mode
|
|
283
|
+
if mode not in {"json", "python"}:
|
|
284
|
+
raise ValueError("mode must be either 'json' or 'python'")
|
|
284
285
|
if round_trip != False:
|
|
285
286
|
raise ValueError("round_trip is only supported in Pydantic v2")
|
|
286
287
|
if warnings != True:
|
|
@@ -289,7 +290,7 @@ class BaseModel(pydantic.BaseModel):
|
|
|
289
290
|
raise ValueError("context is only supported in Pydantic v2")
|
|
290
291
|
if serialize_as_any != False:
|
|
291
292
|
raise ValueError("serialize_as_any is only supported in Pydantic v2")
|
|
292
|
-
|
|
293
|
+
dumped = super().dict( # pyright: ignore[reportDeprecated]
|
|
293
294
|
include=include,
|
|
294
295
|
exclude=exclude,
|
|
295
296
|
by_alias=by_alias,
|
|
@@ -298,13 +299,15 @@ class BaseModel(pydantic.BaseModel):
|
|
|
298
299
|
exclude_none=exclude_none,
|
|
299
300
|
)
|
|
300
301
|
|
|
302
|
+
return cast(dict[str, Any], json_safe(dumped)) if mode == "json" else dumped
|
|
303
|
+
|
|
301
304
|
@override
|
|
302
305
|
def model_dump_json(
|
|
303
306
|
self,
|
|
304
307
|
*,
|
|
305
308
|
indent: int | None = None,
|
|
306
|
-
include: IncEx = None,
|
|
307
|
-
exclude: IncEx = None,
|
|
309
|
+
include: IncEx | None = None,
|
|
310
|
+
exclude: IncEx | None = None,
|
|
308
311
|
by_alias: bool = False,
|
|
309
312
|
exclude_unset: bool = False,
|
|
310
313
|
exclude_defaults: bool = False,
|
|
@@ -16,7 +16,7 @@ from typing import (
|
|
|
16
16
|
Optional,
|
|
17
17
|
Sequence,
|
|
18
18
|
)
|
|
19
|
-
from typing_extensions import Literal, Protocol, TypeAlias, TypedDict, override, runtime_checkable
|
|
19
|
+
from typing_extensions import Set, Literal, Protocol, TypeAlias, TypedDict, override, runtime_checkable
|
|
20
20
|
|
|
21
21
|
import httpx
|
|
22
22
|
import pydantic
|
|
@@ -193,7 +193,9 @@ StrBytesIntFloat = Union[str, bytes, int, float]
|
|
|
193
193
|
|
|
194
194
|
# Note: copied from Pydantic
|
|
195
195
|
# https://github.com/pydantic/pydantic/blob/32ea570bf96e84234d2992e1ddf40ab8a565925a/pydantic/main.py#L49
|
|
196
|
-
IncEx: TypeAlias =
|
|
196
|
+
IncEx: TypeAlias = Union[
|
|
197
|
+
Set[int], Set[str], Mapping[int, Union["IncEx", Literal[True]]], Mapping[str, Union["IncEx", Literal[True]]]
|
|
198
|
+
]
|
|
197
199
|
|
|
198
200
|
PostParser = Callable[[Any], Any]
|
|
199
201
|
|
|
@@ -173,6 +173,11 @@ def _transform_recursive(
|
|
|
173
173
|
# Iterable[T]
|
|
174
174
|
or (is_iterable_type(stripped_type) and is_iterable(data) and not isinstance(data, str))
|
|
175
175
|
):
|
|
176
|
+
# dicts are technically iterable, but it is an iterable on the keys of the dict and is not usually
|
|
177
|
+
# intended as an iterable, so we don't transform it.
|
|
178
|
+
if isinstance(data, dict):
|
|
179
|
+
return cast(object, data)
|
|
180
|
+
|
|
176
181
|
inner_type = extract_type_arg(stripped_type, 0)
|
|
177
182
|
return [_transform_recursive(d, annotation=annotation, inner_type=inner_type) for d in data]
|
|
178
183
|
|
|
@@ -186,7 +191,7 @@ def _transform_recursive(
|
|
|
186
191
|
return data
|
|
187
192
|
|
|
188
193
|
if isinstance(data, pydantic.BaseModel):
|
|
189
|
-
return model_dump(data, exclude_unset=True)
|
|
194
|
+
return model_dump(data, exclude_unset=True, mode="json")
|
|
190
195
|
|
|
191
196
|
annotated_type = _get_annotated_type(annotation)
|
|
192
197
|
if annotated_type is None:
|
|
@@ -311,6 +316,11 @@ async def _async_transform_recursive(
|
|
|
311
316
|
# Iterable[T]
|
|
312
317
|
or (is_iterable_type(stripped_type) and is_iterable(data) and not isinstance(data, str))
|
|
313
318
|
):
|
|
319
|
+
# dicts are technically iterable, but it is an iterable on the keys of the dict and is not usually
|
|
320
|
+
# intended as an iterable, so we don't transform it.
|
|
321
|
+
if isinstance(data, dict):
|
|
322
|
+
return cast(object, data)
|
|
323
|
+
|
|
314
324
|
inner_type = extract_type_arg(stripped_type, 0)
|
|
315
325
|
return [await _async_transform_recursive(d, annotation=annotation, inner_type=inner_type) for d in data]
|
|
316
326
|
|
|
@@ -324,7 +334,7 @@ async def _async_transform_recursive(
|
|
|
324
334
|
return data
|
|
325
335
|
|
|
326
336
|
if isinstance(data, pydantic.BaseModel):
|
|
327
|
-
return model_dump(data, exclude_unset=True)
|
|
337
|
+
return model_dump(data, exclude_unset=True, mode="json")
|
|
328
338
|
|
|
329
339
|
annotated_type = _get_annotated_type(annotation)
|
|
330
340
|
if annotated_type is None:
|
|
@@ -16,6 +16,7 @@ from typing import (
|
|
|
16
16
|
overload,
|
|
17
17
|
)
|
|
18
18
|
from pathlib import Path
|
|
19
|
+
from datetime import date, datetime
|
|
19
20
|
from typing_extensions import TypeGuard
|
|
20
21
|
|
|
21
22
|
import sniffio
|
|
@@ -395,3 +396,19 @@ def lru_cache(*, maxsize: int | None = 128) -> Callable[[CallableT], CallableT]:
|
|
|
395
396
|
maxsize=maxsize,
|
|
396
397
|
)
|
|
397
398
|
return cast(Any, wrapper) # type: ignore[no-any-return]
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
def json_safe(data: object) -> object:
|
|
402
|
+
"""Translates a mapping / sequence recursively in the same fashion
|
|
403
|
+
as `pydantic` v2's `model_dump(mode="json")`.
|
|
404
|
+
"""
|
|
405
|
+
if is_mapping(data):
|
|
406
|
+
return {json_safe(key): json_safe(value) for key, value in data.items()}
|
|
407
|
+
|
|
408
|
+
if is_iterable(data) and not isinstance(data, (str, bytes, bytearray)):
|
|
409
|
+
return [json_safe(item) for item in data]
|
|
410
|
+
|
|
411
|
+
if isinstance(data, (datetime, date)):
|
|
412
|
+
return data.isoformat()
|
|
413
|
+
|
|
414
|
+
return data
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import os
|
|
4
|
-
import asyncio
|
|
5
4
|
import logging
|
|
6
5
|
from typing import TYPE_CHECKING, Iterator, AsyncIterator
|
|
7
6
|
|
|
8
7
|
import pytest
|
|
8
|
+
from pytest_asyncio import is_async_test
|
|
9
9
|
|
|
10
10
|
from payi import Payi, AsyncPayi
|
|
11
11
|
|
|
@@ -17,11 +17,13 @@ pytest.register_assert_rewrite("tests.utils")
|
|
|
17
17
|
logging.getLogger("payi").setLevel(logging.DEBUG)
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
# automatically add `pytest.mark.asyncio()` to all of our async tests
|
|
21
|
+
# so we don't have to add that boilerplate everywhere
|
|
22
|
+
def pytest_collection_modifyitems(items: list[pytest.Function]) -> None:
|
|
23
|
+
pytest_asyncio_tests = (item for item in items if is_async_test(item))
|
|
24
|
+
session_scope_marker = pytest.mark.asyncio(loop_scope="session")
|
|
25
|
+
for async_test in pytest_asyncio_tests:
|
|
26
|
+
async_test.add_marker(session_scope_marker, append=False)
|
|
25
27
|
|
|
26
28
|
|
|
27
29
|
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
|
|
@@ -680,7 +680,7 @@ class TestPayi:
|
|
|
680
680
|
[3, "", 0.5],
|
|
681
681
|
[2, "", 0.5 * 2.0],
|
|
682
682
|
[1, "", 0.5 * 4.0],
|
|
683
|
-
[-1100, "",
|
|
683
|
+
[-1100, "", 8], # test large number potentially overflowing
|
|
684
684
|
],
|
|
685
685
|
)
|
|
686
686
|
@mock.patch("time.time", mock.MagicMock(return_value=1696004797))
|
|
@@ -1447,7 +1447,7 @@ class TestAsyncPayi:
|
|
|
1447
1447
|
[3, "", 0.5],
|
|
1448
1448
|
[2, "", 0.5 * 2.0],
|
|
1449
1449
|
[1, "", 0.5 * 4.0],
|
|
1450
|
-
[-1100, "",
|
|
1450
|
+
[-1100, "", 8], # test large number potentially overflowing
|
|
1451
1451
|
],
|
|
1452
1452
|
)
|
|
1453
1453
|
@mock.patch("time.time", mock.MagicMock(return_value=1696004797))
|
|
@@ -520,19 +520,15 @@ def test_to_dict() -> None:
|
|
|
520
520
|
assert m3.to_dict(exclude_none=True) == {}
|
|
521
521
|
assert m3.to_dict(exclude_defaults=True) == {}
|
|
522
522
|
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
class Model2(BaseModel):
|
|
526
|
-
created_at: datetime
|
|
523
|
+
class Model2(BaseModel):
|
|
524
|
+
created_at: datetime
|
|
527
525
|
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
else:
|
|
533
|
-
with pytest.raises(ValueError, match="mode is only supported in Pydantic v2"):
|
|
534
|
-
m.to_dict(mode="json")
|
|
526
|
+
time_str = "2024-03-21T11:39:01.275859"
|
|
527
|
+
m4 = Model2.construct(created_at=time_str)
|
|
528
|
+
assert m4.to_dict(mode="python") == {"created_at": datetime.fromisoformat(time_str)}
|
|
529
|
+
assert m4.to_dict(mode="json") == {"created_at": time_str}
|
|
535
530
|
|
|
531
|
+
if not PYDANTIC_V2:
|
|
536
532
|
with pytest.raises(ValueError, match="warnings is only supported in Pydantic v2"):
|
|
537
533
|
m.to_dict(warnings=False)
|
|
538
534
|
|
|
@@ -558,9 +554,6 @@ def test_forwards_compat_model_dump_method() -> None:
|
|
|
558
554
|
assert m3.model_dump(exclude_none=True) == {}
|
|
559
555
|
|
|
560
556
|
if not PYDANTIC_V2:
|
|
561
|
-
with pytest.raises(ValueError, match="mode is only supported in Pydantic v2"):
|
|
562
|
-
m.model_dump(mode="json")
|
|
563
|
-
|
|
564
557
|
with pytest.raises(ValueError, match="round_trip is only supported in Pydantic v2"):
|
|
565
558
|
m.model_dump(round_trip=True)
|
|
566
559
|
|
|
@@ -177,17 +177,32 @@ class DateDict(TypedDict, total=False):
|
|
|
177
177
|
foo: Annotated[date, PropertyInfo(format="iso8601")]
|
|
178
178
|
|
|
179
179
|
|
|
180
|
+
class DatetimeModel(BaseModel):
|
|
181
|
+
foo: datetime
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
class DateModel(BaseModel):
|
|
185
|
+
foo: Optional[date]
|
|
186
|
+
|
|
187
|
+
|
|
180
188
|
@parametrize
|
|
181
189
|
@pytest.mark.asyncio
|
|
182
190
|
async def test_iso8601_format(use_async: bool) -> None:
|
|
183
191
|
dt = datetime.fromisoformat("2023-02-23T14:16:36.337692+00:00")
|
|
192
|
+
tz = "Z" if PYDANTIC_V2 else "+00:00"
|
|
184
193
|
assert await transform({"foo": dt}, DatetimeDict, use_async) == {"foo": "2023-02-23T14:16:36.337692+00:00"} # type: ignore[comparison-overlap]
|
|
194
|
+
assert await transform(DatetimeModel(foo=dt), Any, use_async) == {"foo": "2023-02-23T14:16:36.337692" + tz} # type: ignore[comparison-overlap]
|
|
185
195
|
|
|
186
196
|
dt = dt.replace(tzinfo=None)
|
|
187
197
|
assert await transform({"foo": dt}, DatetimeDict, use_async) == {"foo": "2023-02-23T14:16:36.337692"} # type: ignore[comparison-overlap]
|
|
198
|
+
assert await transform(DatetimeModel(foo=dt), Any, use_async) == {"foo": "2023-02-23T14:16:36.337692"} # type: ignore[comparison-overlap]
|
|
188
199
|
|
|
189
200
|
assert await transform({"foo": None}, DateDict, use_async) == {"foo": None} # type: ignore[comparison-overlap]
|
|
201
|
+
assert await transform(DateModel(foo=None), Any, use_async) == {"foo": None} # type: ignore
|
|
190
202
|
assert await transform({"foo": date.fromisoformat("2023-02-23")}, DateDict, use_async) == {"foo": "2023-02-23"} # type: ignore[comparison-overlap]
|
|
203
|
+
assert await transform(DateModel(foo=date.fromisoformat("2023-02-23")), DateDict, use_async) == {
|
|
204
|
+
"foo": "2023-02-23"
|
|
205
|
+
} # type: ignore[comparison-overlap]
|
|
191
206
|
|
|
192
207
|
|
|
193
208
|
@parametrize
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from .request_create_params import RequestCreateParams as RequestCreateParams
|
|
6
|
-
from .experience_create_params import ExperienceCreateParams as ExperienceCreateParams
|
|
@@ -1,14 +0,0 @@
|
|
|
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 Optional
|
|
6
|
-
from typing_extensions import Required, TypedDict
|
|
7
|
-
|
|
8
|
-
__all__ = ["ExperienceCreateParams"]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class ExperienceCreateParams(TypedDict, total=False):
|
|
12
|
-
evaluation: Required[int]
|
|
13
|
-
|
|
14
|
-
user_id: Optional[str]
|
|
@@ -1,14 +0,0 @@
|
|
|
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 Optional
|
|
6
|
-
from typing_extensions import Required, TypedDict
|
|
7
|
-
|
|
8
|
-
__all__ = ["RequestCreateParams"]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class RequestCreateParams(TypedDict, total=False):
|
|
12
|
-
evaluation: Required[int]
|
|
13
|
-
|
|
14
|
-
user_id: Optional[str]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|