| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f7b7cb3 commit 1176fce
7 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - configured_endpoints: 173 | ||
| 1 | + configured_endpoints: 172 | ||
| 2 | 2 | openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-51c0e9db3fb9e3aadf35fb4fcf76107a2fcd9da1b8ff6cd593c1ae23d1a24bc3.yml | |
| 3 | 3 | openapi_spec_hash: db222df8620e2270763bef95ff247445 | |
| 4 | - config_hash: 2fa5dd58c6ab4dd15de320fa0f85dde8 | ||
| 4 | + config_hash: ad1db65b32248aecda41b64586aac9ce | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,7 +42,6 @@ from gitpod.types import ( | |||
| 42 | 42 | JoinableOrganization, | |
| 43 | 43 | LoginProvider, | |
| 44 | 44 | AccountRetrieveResponse, | |
| 45 | - AccountGetChatIdentityTokenResponse, | ||
| 46 | 45 | AccountGetSSOLoginURLResponse, | |
| 47 | 46 | AccountListSSOLoginsResponse, | |
| 48 | 47 | ) | |
@@ -52,7 +51,6 @@ Methods: | |||
| 52 | 51 | ||
| 53 | 52 | - <code title="post /gitpod.v1.AccountService/GetAccount">client.accounts.<a href="./src/gitpod/resources/accounts.py">retrieve</a>(\*\*<a href="src/gitpod/types/account_retrieve_params.py">params</a>) -> <a href="./src/gitpod/types/account_retrieve_response.py">AccountRetrieveResponse</a></code> | |
| 54 | 53 | - <code title="post /gitpod.v1.AccountService/DeleteAccount">client.accounts.<a href="./src/gitpod/resources/accounts.py">delete</a>(\*\*<a href="src/gitpod/types/account_delete_params.py">params</a>) -> object</code> | |
| 55 | - - <code title="post /gitpod.v1.AccountService/GetChatIdentityToken">client.accounts.<a href="./src/gitpod/resources/accounts.py">get_chat_identity_token</a>(\*\*<a href="src/gitpod/types/account_get_chat_identity_token_params.py">params</a>) -> <a href="./src/gitpod/types/account_get_chat_identity_token_response.py">AccountGetChatIdentityTokenResponse</a></code> | ||
| 56 | 54 | - <code title="post /gitpod.v1.AccountService/GetSSOLoginURL">client.accounts.<a href="./src/gitpod/resources/accounts.py">get_sso_login_url</a>(\*\*<a href="src/gitpod/types/account_get_sso_login_url_params.py">params</a>) -> <a href="./src/gitpod/types/account_get_sso_login_url_response.py">AccountGetSSOLoginURLResponse</a></code> | |
| 57 | 55 | - <code title="post /gitpod.v1.AccountService/ListJoinableOrganizations">client.accounts.<a href="./src/gitpod/resources/accounts.py">list_joinable_organizations</a>(\*\*<a href="src/gitpod/types/account_list_joinable_organizations_params.py">params</a>) -> <a href="./src/gitpod/types/joinable_organization.py">SyncJoinableOrganizationsPage[JoinableOrganization]</a></code> | |
| 58 | 56 | - <code title="post /gitpod.v1.AccountService/ListLoginProviders">client.accounts.<a href="./src/gitpod/resources/accounts.py">list_login_providers</a>(\*\*<a href="src/gitpod/types/account_list_login_providers_params.py">params</a>) -> <a href="./src/gitpod/types/login_provider.py">SyncLoginProvidersPage[LoginProvider]</a></code> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,7 +12,6 @@ | |||
| 12 | 12 | account_list_sso_logins_params, | |
| 13 | 13 | account_get_sso_login_url_params, | |
| 14 | 14 | account_list_login_providers_params, | |
| 15 | - account_get_chat_identity_token_params, | ||
| 16 | 15 | account_list_joinable_organizations_params, | |
| 17 | 16 | ) | |
| 18 | 17 | from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given | |
@@ -39,7 +38,6 @@ | |||
| 39 | 38 | from ..types.account_retrieve_response import AccountRetrieveResponse | |
| 40 | 39 | from ..types.account_list_sso_logins_response import AccountListSSOLoginsResponse | |
| 41 | 40 | from ..types.account_get_sso_login_url_response import AccountGetSSOLoginURLResponse | |
| 42 | - from ..types.account_get_chat_identity_token_response import AccountGetChatIdentityTokenResponse | ||
| 43 | 41 | ||
| 44 | 42 | __all__ = ["AccountsResource", "AsyncAccountsResource"] | |
| 45 | 43 | ||
@@ -172,58 +170,6 @@ def delete( | |||
| 172 | 170 | cast_to=object, | |
| 173 | 171 | ) | |
| 174 | 172 | ||
| 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 | - | ||
| 227 | 173 | def get_sso_login_url( | |
| 228 | 174 | self, | |
| 229 | 175 | *, | |
@@ -634,58 +580,6 @@ async def delete( | |||
| 634 | 580 | cast_to=object, | |
| 635 | 581 | ) | |
| 636 | 582 | ||
| 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 | - | ||
| 689 | 583 | async def get_sso_login_url( | |
| 690 | 584 | self, | |
| 691 | 585 | *, | |
@@ -978,9 +872,6 @@ def __init__(self, accounts: AccountsResource) -> None: | |||
| 978 | 872 | self.delete = to_raw_response_wrapper( | |
| 979 | 873 | accounts.delete, | |
| 980 | 874 | ) | |
| 981 | - self.get_chat_identity_token = to_raw_response_wrapper( | ||
| 982 | - accounts.get_chat_identity_token, | ||
| 983 | - ) | ||
| 984 | 875 | self.get_sso_login_url = to_raw_response_wrapper( | |
| 985 | 876 | accounts.get_sso_login_url, | |
| 986 | 877 | ) | |
@@ -1005,9 +896,6 @@ def __init__(self, accounts: AsyncAccountsResource) -> None: | |||
| 1005 | 896 | self.delete = async_to_raw_response_wrapper( | |
| 1006 | 897 | accounts.delete, | |
| 1007 | 898 | ) | |
| 1008 | - self.get_chat_identity_token = async_to_raw_response_wrapper( | ||
| 1009 | - accounts.get_chat_identity_token, | ||
| 1010 | - ) | ||
| 1011 | 899 | self.get_sso_login_url = async_to_raw_response_wrapper( | |
| 1012 | 900 | accounts.get_sso_login_url, | |
| 1013 | 901 | ) | |
@@ -1032,9 +920,6 @@ def __init__(self, accounts: AccountsResource) -> None: | |||
| 1032 | 920 | self.delete = to_streamed_response_wrapper( | |
| 1033 | 921 | accounts.delete, | |
| 1034 | 922 | ) | |
| 1035 | - self.get_chat_identity_token = to_streamed_response_wrapper( | ||
| 1036 | - accounts.get_chat_identity_token, | ||
| 1037 | - ) | ||
| 1038 | 923 | self.get_sso_login_url = to_streamed_response_wrapper( | |
| 1039 | 924 | accounts.get_sso_login_url, | |
| 1040 | 925 | ) | |
@@ -1059,9 +944,6 @@ def __init__(self, accounts: AsyncAccountsResource) -> None: | |||
| 1059 | 944 | self.delete = async_to_streamed_response_wrapper( | |
| 1060 | 945 | accounts.delete, | |
| 1061 | 946 | ) | |
| 1062 | - self.get_chat_identity_token = async_to_streamed_response_wrapper( | ||
| 1063 | - accounts.get_chat_identity_token, | ||
| 1064 | - ) | ||
| 1065 | 947 | self.get_sso_login_url = async_to_streamed_response_wrapper( | |
| 1066 | 948 | accounts.get_sso_login_url, | |
| 1067 | 949 | ) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -227,9 +227,6 @@ | |||
| 227 | 227 | from .runner_check_repository_access_params import ( | |
| 228 | 228 | RunnerCheckRepositoryAccessParams as RunnerCheckRepositoryAccessParams, | |
| 229 | 229 | ) | |
| 230 | - from .account_get_chat_identity_token_params import ( | ||
| 231 | - AccountGetChatIdentityTokenParams as AccountGetChatIdentityTokenParams, | ||
| 232 | - ) | ||
| 233 | 230 | from .environment_create_from_project_params import ( | |
| 234 | 231 | EnvironmentCreateFromProjectParams as EnvironmentCreateFromProjectParams, | |
| 235 | 232 | ) | |
@@ -245,9 +242,6 @@ | |||
| 245 | 242 | from .runner_check_repository_access_response import ( | |
| 246 | 243 | RunnerCheckRepositoryAccessResponse as RunnerCheckRepositoryAccessResponse, | |
| 247 | 244 | ) | |
| 248 | - from .account_get_chat_identity_token_response import ( | ||
| 249 | - AccountGetChatIdentityTokenResponse as AccountGetChatIdentityTokenResponse, | ||
| 250 | - ) | ||
| 251 | 245 | from .environment_create_from_project_response import ( | |
| 252 | 246 | EnvironmentCreateFromProjectResponse as EnvironmentCreateFromProjectResponse, | |
| 253 | 247 | ) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,6 @@ | |||
| 15 | 15 | AccountRetrieveResponse, | |
| 16 | 16 | AccountListSSOLoginsResponse, | |
| 17 | 17 | AccountGetSSOLoginURLResponse, | |
| 18 | - AccountGetChatIdentityTokenResponse, | ||
| 19 | 18 | ) | |
| 20 | 19 | from gitpod.pagination import ( | |
| 21 | 20 | SyncLoginsPage, | |
@@ -111,42 +110,6 @@ def test_streaming_response_delete(self, client: Gitpod) -> None: | |||
| 111 | 110 | ||
| 112 | 111 | assert cast(Any, response.is_closed) is True | |
| 113 | 112 | ||
| 114 | - @pytest.mark.skip(reason="Prism tests are disabled") | ||
| 115 | - @parametrize | ||
| 116 | - def test_method_get_chat_identity_token(self, client: Gitpod) -> None: | ||
| 117 | - account = client.accounts.get_chat_identity_token() | ||
| 118 | - assert_matches_type(AccountGetChatIdentityTokenResponse, account, path=["response"]) | ||
| 119 | - | ||
| 120 | - @pytest.mark.skip(reason="Prism tests are disabled") | ||
| 121 | - @parametrize | ||
| 122 | - def test_method_get_chat_identity_token_with_all_params(self, client: Gitpod) -> None: | ||
| 123 | - account = client.accounts.get_chat_identity_token( | ||
| 124 | - empty=True, | ||
| 125 | - ) | ||
| 126 | - assert_matches_type(AccountGetChatIdentityTokenResponse, account, path=["response"]) | ||
| 127 | - | ||
| 128 | - @pytest.mark.skip(reason="Prism tests are disabled") | ||
| 129 | - @parametrize | ||
| 130 | - def test_raw_response_get_chat_identity_token(self, client: Gitpod) -> None: | ||
| 131 | - response = client.accounts.with_raw_response.get_chat_identity_token() | ||
| 132 | - | ||
| 133 | - assert response.is_closed is True | ||
| 134 | - assert response.http_request.headers.get("X-Stainless-Lang") == "python" | ||
| 135 | - account = response.parse() | ||
| 136 | - assert_matches_type(AccountGetChatIdentityTokenResponse, account, path=["response"]) | ||
| 137 | - | ||
| 138 | - @pytest.mark.skip(reason="Prism tests are disabled") | ||
| 139 | - @parametrize | ||
| 140 | - def test_streaming_response_get_chat_identity_token(self, client: Gitpod) -> None: | ||
| 141 | - with client.accounts.with_streaming_response.get_chat_identity_token() as response: | ||
| 142 | - assert not response.is_closed | ||
| 143 | - assert response.http_request.headers.get("X-Stainless-Lang") == "python" | ||
| 144 | - | ||
| 145 | - account = response.parse() | ||
| 146 | - assert_matches_type(AccountGetChatIdentityTokenResponse, account, path=["response"]) | ||
| 147 | - | ||
| 148 | - assert cast(Any, response.is_closed) is True | ||
| 149 | - | ||
| 150 | 113 | @pytest.mark.skip(reason="Prism tests are disabled") | |
| 151 | 114 | @parametrize | |
| 152 | 115 | def test_method_get_sso_login_url(self, client: Gitpod) -> None: | |
@@ -410,42 +373,6 @@ async def test_streaming_response_delete(self, async_client: AsyncGitpod) -> Non | |||
| 410 | 373 | ||
| 411 | 374 | assert cast(Any, response.is_closed) is True | |
| 412 | 375 | ||
| 413 | - @pytest.mark.skip(reason="Prism tests are disabled") | ||
| 414 | - @parametrize | ||
| 415 | - async def test_method_get_chat_identity_token(self, async_client: AsyncGitpod) -> None: | ||
| 416 | - account = await async_client.accounts.get_chat_identity_token() | ||
| 417 | - assert_matches_type(AccountGetChatIdentityTokenResponse, account, path=["response"]) | ||
| 418 | - | ||
| 419 | - @pytest.mark.skip(reason="Prism tests are disabled") | ||
| 420 | - @parametrize | ||
| 421 | - async def test_method_get_chat_identity_token_with_all_params(self, async_client: AsyncGitpod) -> None: | ||
| 422 | - account = await async_client.accounts.get_chat_identity_token( | ||
| 423 | - empty=True, | ||
| 424 | - ) | ||
| 425 | - assert_matches_type(AccountGetChatIdentityTokenResponse, account, path=["response"]) | ||
| 426 | - | ||
| 427 | - @pytest.mark.skip(reason="Prism tests are disabled") | ||
| 428 | - @parametrize | ||
| 429 | - async def test_raw_response_get_chat_identity_token(self, async_client: AsyncGitpod) -> None: | ||
| 430 | - response = await async_client.accounts.with_raw_response.get_chat_identity_token() | ||
| 431 | - | ||
| 432 | - assert response.is_closed is True | ||
| 433 | - assert response.http_request.headers.get("X-Stainless-Lang") == "python" | ||
| 434 | - account = await response.parse() | ||
| 435 | - assert_matches_type(AccountGetChatIdentityTokenResponse, account, path=["response"]) | ||
| 436 | - | ||
| 437 | - @pytest.mark.skip(reason="Prism tests are disabled") | ||
| 438 | - @parametrize | ||
| 439 | - async def test_streaming_response_get_chat_identity_token(self, async_client: AsyncGitpod) -> None: | ||
| 440 | - async with async_client.accounts.with_streaming_response.get_chat_identity_token() as response: | ||
| 441 | - assert not response.is_closed | ||
| 442 | - assert response.http_request.headers.get("X-Stainless-Lang") == "python" | ||
| 443 | - | ||
| 444 | - account = await response.parse() | ||
| 445 | - assert_matches_type(AccountGetChatIdentityTokenResponse, account, path=["response"]) | ||
| 446 | - | ||
| 447 | - assert cast(Any, response.is_closed) is True | ||
| 448 | - | ||
| 449 | 376 | @pytest.mark.skip(reason="Prism tests are disabled") | |
| 450 | 377 | @parametrize | |
| 451 | 378 | async def test_method_get_sso_login_url(self, async_client: AsyncGitpod) -> None: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments