diff --git a/package-lock.json b/package-lock.json index c5ccdd86..b4acb909 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.75.1", "@seamapi/nextlove-sdk-generator": "1.15.7", - "@seamapi/types": "1.345.2", + "@seamapi/types": "1.347.1", "del": "^7.1.0", "prettier": "^3.2.5" } @@ -475,9 +475,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.345.2", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.345.2.tgz", - "integrity": "sha512-tZv6ijspfrINIAPiJ+Oyc8R2uKvwt/j9fRn+VMaEA5pFuGylpA/srBLL8/1nfXK/OFb8wiY2eq0grYf0Qva8iw==", + "version": "1.347.1", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.347.1.tgz", + "integrity": "sha512-Sm8e7YIC8DhtKOdTkwfcS6n98aohuSL7y8iS/OYBDavEP2iBwLGOM5v1TZlT32G0p/c+/8QnH/vlAyB1e3eBGQ==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index f6b4e9c8..e3d6d451 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.75.1", "@seamapi/nextlove-sdk-generator": "1.15.7", - "@seamapi/types": "1.345.2", + "@seamapi/types": "1.347.1", "del": "^7.1.0", "prettier": "^3.2.5" } diff --git a/seam/routes/__init__.py b/seam/routes/__init__.py index 692f027f..9eb6facb 100644 --- a/seam/routes/__init__.py +++ b/seam/routes/__init__.py @@ -4,6 +4,7 @@ from .access_codes import AccessCodes from .acs import Acs from .action_attempts import ActionAttempts +from .bridges import Bridges from .client_sessions import ClientSessions from .connect_webviews import ConnectWebviews from .connected_accounts import ConnectedAccounts @@ -24,6 +25,7 @@ def __init__(self, client: SeamHttpClient, defaults: Dict[str, Any]): self.access_codes = AccessCodes(client=client, defaults=defaults) self.acs = Acs(client=client, defaults=defaults) self.action_attempts = ActionAttempts(client=client, defaults=defaults) + self.bridges = Bridges(client=client, defaults=defaults) self.client_sessions = ClientSessions(client=client, defaults=defaults) self.connect_webviews = ConnectWebviews(client=client, defaults=defaults) self.connected_accounts = ConnectedAccounts(client=client, defaults=defaults) diff --git a/seam/routes/bridges.py b/seam/routes/bridges.py new file mode 100644 index 00000000..38993388 --- /dev/null +++ b/seam/routes/bridges.py @@ -0,0 +1,19 @@ +from typing import Optional, Any, List, Dict, Union +from ..client import SeamHttpClient +from .models import AbstractBridges + + +class Bridges(AbstractBridges): + def __init__(self, client: SeamHttpClient, defaults: Dict[str, Any]): + self.client = client + self.defaults = defaults + + def get(self, *, bridge_id: str) -> None: + json_payload = {} + + if bridge_id is not None: + json_payload["bridge_id"] = bridge_id + + self.client.post("/bridges/get", json=json_payload) + + return None diff --git a/seam/routes/models.py b/seam/routes/models.py index 0b3772d9..309915fc 100644 --- a/seam/routes/models.py +++ b/seam/routes/models.py @@ -1604,6 +1604,13 @@ def list(self, *, action_attempt_ids: List[str]) -> List[ActionAttempt]: raise NotImplementedError() +class AbstractBridges(abc.ABC): + + @abc.abstractmethod + def get(self, *, bridge_id: str) -> None: + raise NotImplementedError() + + class AbstractClientSessions(abc.ABC): @abc.abstractmethod @@ -2668,6 +2675,7 @@ class AbstractRoutes(abc.ABC): access_codes: AbstractAccessCodes acs: AbstractAcs action_attempts: AbstractActionAttempts + bridges: AbstractBridges client_sessions: AbstractClientSessions connect_webviews: AbstractConnectWebviews connected_accounts: AbstractConnectedAccounts