1212 account_list_sso_logins_params ,
1313 account_get_sso_login_url_params ,
1414 account_list_login_providers_params ,
15- account_get_chat_identity_token_params ,
1615 account_list_joinable_organizations_params ,
1716)
1817from .._types import Body , Omit , Query , Headers , NotGiven , omit , not_given
3938from ..types .account_retrieve_response import AccountRetrieveResponse
4039from ..types .account_list_sso_logins_response import AccountListSSOLoginsResponse
4140from ..types .account_get_sso_login_url_response import AccountGetSSOLoginURLResponse
42- from ..types .account_get_chat_identity_token_response import AccountGetChatIdentityTokenResponse
4341
4442__all__ = ["AccountsResource" , "AsyncAccountsResource" ]
4543
@@ -172,58 +170,6 @@ def delete(
172170 cast_to = object ,
173171 )
174172
175- def get_chat_identity_token (
176- self ,
177- * ,
178- empty : bool | Omit = omit ,
179- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
180- # The extra values given here take precedence over values defined on the client or passed to this method.
181- extra_headers : Headers | None = None ,
182- extra_query : Query | None = None ,
183- extra_body : Body | None = None ,
184- timeout : float | httpx .Timeout | None | NotGiven = not_given ,
185- ) -> AccountGetChatIdentityTokenResponse :
186- """
187- Gets the chat identity token for the currently authenticated account.
188-
189- Use this method to:
190-
191- - Obtain a verification hash for in-app chat identity verification
192- - Secure chat sessions against impersonation
193-
194- The returned hash is an HMAC-SHA256 signature of the account's email, used by
195- the chat widget to verify user identity.
196-
197- ### Examples
198-
199- - Get chat identity token:
200-
201- Retrieves the identity verification hash for the authenticated account.
202-
203- ```yaml
204- {}
205- ```
206-
207- Args:
208- extra_headers: Send extra headers
209-
210- extra_query: Add additional query parameters to the request
211-
212- extra_body: Add additional JSON properties to the request
213-
214- timeout: Override the client-level default timeout for this request, in seconds
215- """
216- return self ._post (
217- "/gitpod.v1.AccountService/GetChatIdentityToken" ,
218- body = maybe_transform (
219- {"empty" : empty }, account_get_chat_identity_token_params .AccountGetChatIdentityTokenParams
220- ),
221- options = make_request_options (
222- extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
223- ),
224- cast_to = AccountGetChatIdentityTokenResponse ,
225- )
226-
227173 def get_sso_login_url (
228174 self ,
229175 * ,
@@ -634,58 +580,6 @@ async def delete(
634580 cast_to = object ,
635581 )
636582
637- async def get_chat_identity_token (
638- self ,
639- * ,
640- empty : bool | Omit = omit ,
641- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
642- # The extra values given here take precedence over values defined on the client or passed to this method.
643- extra_headers : Headers | None = None ,
644- extra_query : Query | None = None ,
645- extra_body : Body | None = None ,
646- timeout : float | httpx .Timeout | None | NotGiven = not_given ,
647- ) -> AccountGetChatIdentityTokenResponse :
648- """
649- Gets the chat identity token for the currently authenticated account.
650-
651- Use this method to:
652-
653- - Obtain a verification hash for in-app chat identity verification
654- - Secure chat sessions against impersonation
655-
656- The returned hash is an HMAC-SHA256 signature of the account's email, used by
657- the chat widget to verify user identity.
658-
659- ### Examples
660-
661- - Get chat identity token:
662-
663- Retrieves the identity verification hash for the authenticated account.
664-
665- ```yaml
666- {}
667- ```
668-
669- Args:
670- extra_headers: Send extra headers
671-
672- extra_query: Add additional query parameters to the request
673-
674- extra_body: Add additional JSON properties to the request
675-
676- timeout: Override the client-level default timeout for this request, in seconds
677- """
678- return await self ._post (
679- "/gitpod.v1.AccountService/GetChatIdentityToken" ,
680- body = await async_maybe_transform (
681- {"empty" : empty }, account_get_chat_identity_token_params .AccountGetChatIdentityTokenParams
682- ),
683- options = make_request_options (
684- extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
685- ),
686- cast_to = AccountGetChatIdentityTokenResponse ,
687- )
688-
689583 async def get_sso_login_url (
690584 self ,
691585 * ,
@@ -978,9 +872,6 @@ def __init__(self, accounts: AccountsResource) -> None:
978872 self .delete = to_raw_response_wrapper (
979873 accounts .delete ,
980874 )
981- self .get_chat_identity_token = to_raw_response_wrapper (
982- accounts .get_chat_identity_token ,
983- )
984875 self .get_sso_login_url = to_raw_response_wrapper (
985876 accounts .get_sso_login_url ,
986877 )
@@ -1005,9 +896,6 @@ def __init__(self, accounts: AsyncAccountsResource) -> None:
1005896 self .delete = async_to_raw_response_wrapper (
1006897 accounts .delete ,
1007898 )
1008- self .get_chat_identity_token = async_to_raw_response_wrapper (
1009- accounts .get_chat_identity_token ,
1010- )
1011899 self .get_sso_login_url = async_to_raw_response_wrapper (
1012900 accounts .get_sso_login_url ,
1013901 )
@@ -1032,9 +920,6 @@ def __init__(self, accounts: AccountsResource) -> None:
1032920 self .delete = to_streamed_response_wrapper (
1033921 accounts .delete ,
1034922 )
1035- self .get_chat_identity_token = to_streamed_response_wrapper (
1036- accounts .get_chat_identity_token ,
1037- )
1038923 self .get_sso_login_url = to_streamed_response_wrapper (
1039924 accounts .get_sso_login_url ,
1040925 )
@@ -1059,9 +944,6 @@ def __init__(self, accounts: AsyncAccountsResource) -> None:
1059944 self .delete = async_to_streamed_response_wrapper (
1060945 accounts .delete ,
1061946 )
1062- self .get_chat_identity_token = async_to_streamed_response_wrapper (
1063- accounts .get_chat_identity_token ,
1064- )
1065947 self .get_sso_login_url = async_to_streamed_response_wrapper (
1066948 accounts .get_sso_login_url ,
1067949 )
0 commit comments