From 93f48bbe7d7470b076b2e64fda1bc7707d718727 Mon Sep 17 00:00:00 2001 From: nicornk Date: Wed, 29 Apr 2026 17:49:28 +0200 Subject: [PATCH 1/2] feat: add GET methods for TPAs --- .../foundry_dev_tools/clients/multipass.py | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/libs/foundry-dev-tools/src/foundry_dev_tools/clients/multipass.py b/libs/foundry-dev-tools/src/foundry_dev_tools/clients/multipass.py index 515c7ac..82f0991 100644 --- a/libs/foundry-dev-tools/src/foundry_dev_tools/clients/multipass.py +++ b/libs/foundry-dev-tools/src/foundry_dev_tools/clients/multipass.py @@ -1459,3 +1459,27 @@ def api_get_ttl(self) -> requests.Response: the response contains the remaining lifetime (in seconds) of the token until it expires """ return self.api_request("GET", "token/ttl") + + def api_get_third_party_application_installation( + self, + client_id: str, + ) -> requests.Response: + """Returns the installation information for the organization. + + Returns: + requests.Response: + the response + """ + return self.api_request("GET", f"client-installations/{client_id}") + + def api_get_third_party_application( + self, + client_id: str, + ) -> requests.Response: + """Returns the client information. + + Returns: + requests.Response: + the response + """ + return self.api_request("GET", f"clients/{client_id}") From fc810e1be939c0f8b6d51528d29cbdb2ff6e9c54 Mon Sep 17 00:00:00 2001 From: nicornk Date: Thu, 30 Apr 2026 15:01:37 +0200 Subject: [PATCH 2/2] add new multipass grant type --- libs/foundry-dev-tools/src/foundry_dev_tools/utils/api_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/foundry-dev-tools/src/foundry_dev_tools/utils/api_types.py b/libs/foundry-dev-tools/src/foundry_dev_tools/utils/api_types.py index 0eb3a9c..41c78d2 100644 --- a/libs/foundry-dev-tools/src/foundry_dev_tools/utils/api_types.py +++ b/libs/foundry-dev-tools/src/foundry_dev_tools/utils/api_types.py @@ -108,7 +108,7 @@ def assert_in_literal(option, literal, variable_name) -> None: # noqa: ANN001 MultipassClientType = Literal["CONFIDENTIAL", "PUBLIC"] """Multipass client types.""" -MultipassGrantType = Literal["AUTHORIZATION_CODE", "CLIENT_CREDENTIALS", "REFRESH_TOKEN"] +MultipassGrantType = Literal["AUTHORIZATION_CODE", "CLIENT_CREDENTIALS", "REFRESH_TOKEN", "JWT_BEARER"] """Multipass grant types.""" ResourceDecoration = Literal[