finatic-server-python 1.0.9__py3-none-any.whl → 1.0.10__py3-none-any.whl
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.
- {finatic_server_python-1.0.9.dist-info → finatic_server_python-1.0.10.dist-info}/METADATA +1 -1
- {finatic_server_python-1.0.9.dist-info → finatic_server_python-1.0.10.dist-info}/RECORD +6 -6
- src/__init__.py +2 -0
- src/v1.py +37 -1
- {finatic_server_python-1.0.9.dist-info → finatic_server_python-1.0.10.dist-info}/WHEEL +0 -0
- {finatic_server_python-1.0.9.dist-info → finatic_server_python-1.0.10.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: finatic-server-python
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.10
|
|
4
4
|
Summary: Python SDK for Finatic Server API
|
|
5
5
|
Project-URL: Homepage, https://github.com/FinaticORG/FinaticServerSDK-Python
|
|
6
6
|
Project-URL: Documentation, https://docs.finatic.com/python
|
|
@@ -3,12 +3,12 @@ finatic_server_python/__init__.py,sha256=LB4GcHvm7rEvldM1iqzVqYrJ4WDSQR5-AEd5Kj3
|
|
|
3
3
|
src/.openapi-generator-ignore,sha256=43VbPbcl7Kuqn8_Q0-Yt8syPgWNXrnOzS7qiFkxJw8Y,677
|
|
4
4
|
src/FinaticServer.py,sha256=5FqaZEm21BNZeos-QMCTPDv3rWq4XWr9DGUU7K7M53k,238
|
|
5
5
|
src/FinaticServerCore.py,sha256=ecah0NDKHeO1d0sobe5Gpc8LZXjUz4p7ry5_L_3Q1os,2939
|
|
6
|
-
src/__init__.py,sha256=
|
|
6
|
+
src/__init__.py,sha256=XSMr9JUpSPbJj6ZGkyYFFHYNKlDl1EFG7FtH3sVa7Gs,1611
|
|
7
7
|
src/config.py,sha256=X10rF_jr-VlwiTAaHNIJZJ97q4932PoRKZW-P90j44M,2412
|
|
8
8
|
src/finatic_fdx_typed_dicts.py,sha256=Qk2D8y9SmhUb2Q8gT_Nq2RmYkupu3mvCRQl8KFS4mS4,7516
|
|
9
9
|
src/finatic_fdx_types.py,sha256=d8K5P5ldYo7AW2qoIC7Zq1dTt1uTj7uyiM_LwuA1F0c,2889
|
|
10
10
|
src/types.py,sha256=qYKqx95w5CjiXzMLk-GnojxQ8qsKxrMaY_XKiO7l49Q,712
|
|
11
|
-
src/v1.py,sha256=
|
|
11
|
+
src/v1.py,sha256=UiMH_LBBWgrWUjZ064VUnprJ_7IB-6nL8b46S3NrS3M,31611
|
|
12
12
|
src/internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
13
|
src/openapi/.openapi-generator-ignore,sha256=43VbPbcl7Kuqn8_Q0-Yt8syPgWNXrnOzS7qiFkxJw8Y,677
|
|
14
14
|
src/openapi/path_bootstrap.py,sha256=ywVDEDRhAEs9aqmchRETHPOONaGg5lV4U05CDsaMyxY,622
|
|
@@ -448,7 +448,7 @@ src/utils/request_id.py,sha256=R_Gcyc5rih7_keAruJHW0bg0Y0MCqQNsUgkZ4C_9sRc,200
|
|
|
448
448
|
src/utils/url_utils.py,sha256=dtxaFEF6Li_lQ7ft0BEDsbyYUDcNXUN4WO_yVAG5MJ8,5051
|
|
449
449
|
src/utils/validation.py,sha256=ODt5raui4KVH1Iz_-Tt8-VKEw-yUzIZg6o93iWLwRj0,1263
|
|
450
450
|
src/wrappers/__init__.py,sha256=8puRg8uOrUR42gCwCtW5zkOtCDbgyMpZSMi2iz2bPcU,123
|
|
451
|
-
finatic_server_python-1.0.
|
|
452
|
-
finatic_server_python-1.0.
|
|
453
|
-
finatic_server_python-1.0.
|
|
454
|
-
finatic_server_python-1.0.
|
|
451
|
+
finatic_server_python-1.0.10.dist-info/METADATA,sha256=Tr0LfMIPqRReUR-Iqw5g7jt-GAEQNc9O3207asZ_NUE,8125
|
|
452
|
+
finatic_server_python-1.0.10.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
453
|
+
finatic_server_python-1.0.10.dist-info/licenses/LICENSE,sha256=hE35tOCe7uZCeYglYc-sjRSjad4jPyB3i53-QW1YfLk,3590
|
|
454
|
+
finatic_server_python-1.0.10.dist-info/RECORD,,
|
src/__init__.py
CHANGED
src/v1.py
CHANGED
|
@@ -11,7 +11,7 @@ import json
|
|
|
11
11
|
from collections.abc import Mapping
|
|
12
12
|
from dataclasses import dataclass
|
|
13
13
|
from typing import Any, Literal, TypedDict, cast
|
|
14
|
-
from urllib.parse import parse_qs, urlencode, urlparse, urlunparse
|
|
14
|
+
from urllib.parse import parse_qs, quote, urlencode, urlparse, urlunparse
|
|
15
15
|
|
|
16
16
|
from finatic_server.api_client import ApiClient
|
|
17
17
|
from finatic_server.configuration import Configuration
|
|
@@ -51,6 +51,26 @@ _SESSION_STATUSES: set[str] = {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
|
|
54
|
+
class SessionSyncAccountStatus(TypedDict):
|
|
55
|
+
"""Public camelCase sync state for one selected account."""
|
|
56
|
+
|
|
57
|
+
accountId: str | None
|
|
58
|
+
brokerId: str | None
|
|
59
|
+
lastSyncedAt: str | None
|
|
60
|
+
providerHealth: str
|
|
61
|
+
syncError: str | None
|
|
62
|
+
syncStatus: str
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
class SessionSyncStatusResponse(TypedDict):
|
|
66
|
+
"""Pollable session sync state; status strings remain forward-compatible."""
|
|
67
|
+
|
|
68
|
+
accounts: list[SessionSyncAccountStatus]
|
|
69
|
+
companyId: str
|
|
70
|
+
sessionId: str
|
|
71
|
+
status: str
|
|
72
|
+
|
|
73
|
+
|
|
54
74
|
class SessionStartResult(TypedDict):
|
|
55
75
|
"""Normalized result for every public session-start attempt."""
|
|
56
76
|
|
|
@@ -363,6 +383,22 @@ class V1Client:
|
|
|
363
383
|
portal_url = _append_query_param(portal_url, "mode", mode)
|
|
364
384
|
return portal_url
|
|
365
385
|
|
|
386
|
+
async def get_session_sync_status(
|
|
387
|
+
self, session_id: str | None = None
|
|
388
|
+
) -> FinaticResponse[SessionSyncStatusResponse]:
|
|
389
|
+
"""Read selected-account sync readiness for an explicit or stored session."""
|
|
390
|
+
resolved_session_id = session_id if session_id is not None else self.session_id
|
|
391
|
+
if not resolved_session_id:
|
|
392
|
+
raise ValueError(
|
|
393
|
+
"Session ID is required. Pass session_id or initialize session context first."
|
|
394
|
+
)
|
|
395
|
+
|
|
396
|
+
response = await self._request(
|
|
397
|
+
"GET",
|
|
398
|
+
f"/api/v1/sessions/{quote(resolved_session_id, safe='')}/sync-status",
|
|
399
|
+
)
|
|
400
|
+
return cast(FinaticResponse[SessionSyncStatusResponse], response)
|
|
401
|
+
|
|
366
402
|
async def get_session_user(self) -> dict[str, str]:
|
|
367
403
|
if not self.session_id:
|
|
368
404
|
raise ValueError("Session not initialized. Call v1.start_session() first.")
|
|
File without changes
|
{finatic_server_python-1.0.9.dist-info → finatic_server_python-1.0.10.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|