docges-api-py 0.1.3__tar.gz → 0.1.4__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.
- {docges_api_py-0.1.3/src/docges_api_py.egg-info → docges_api_py-0.1.4}/PKG-INFO +1 -1
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/pyproject.toml +1 -1
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/src/docges_api_py/client.py +9 -4
- {docges_api_py-0.1.3 → docges_api_py-0.1.4/src/docges_api_py.egg-info}/PKG-INFO +1 -1
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/LICENSE +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/README.md +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/setup.cfg +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/src/docges_api_py/__init__.py +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/src/docges_api_py/models/__init__.py +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/src/docges_api_py/models/auth.py +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/src/docges_api_py/models/document.py +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/src/docges_api_py/models/requests.py +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/src/docges_api_py/models/responses.py +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/src/docges_api_py.egg-info/SOURCES.txt +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/src/docges_api_py.egg-info/dependency_links.txt +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/src/docges_api_py.egg-info/requires.txt +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/src/docges_api_py.egg-info/top_level.txt +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_client_auth.py +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_content_methods.py +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_endpoints.py +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_examples.py +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_get_document.py +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_initial_cats.py +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_models_auth.py +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_models_init.py +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_models_requests.py +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_models_responses.py +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_remaining_methods.py +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_retry.py +0 -0
- {docges_api_py-0.1.3 → docges_api_py-0.1.4}/tests/test_token_refresh.py +0 -0
|
@@ -203,11 +203,16 @@ class AsyncDocGes:
|
|
|
203
203
|
if self._login_response is not None:
|
|
204
204
|
request_model["loginResponse"] = self._login_response
|
|
205
205
|
|
|
206
|
-
#
|
|
206
|
+
# Build final payload: extra data fields (contenidoModel, fileModel, etc.)
|
|
207
|
+
# go at TOP LEVEL alongside requestModel — NOT nested inside requestModel.
|
|
208
|
+
# This matches the server's RequestContentModel: { contenidoModel, requestModel }.
|
|
209
|
+
payload: dict[str, Any] = {"requestModel": request_model}
|
|
207
210
|
if data is not None:
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
+
extra = data.model_dump(exclude_none=True)
|
|
212
|
+
# If data itself has a requestModel key, merge it into the top-level one
|
|
213
|
+
if "requestModel" in extra:
|
|
214
|
+
request_model.update(extra.pop("requestModel"))
|
|
215
|
+
payload.update(extra)
|
|
211
216
|
|
|
212
217
|
last_exc: Exception | None = None
|
|
213
218
|
|
|
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
|