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}") 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[