Skip to content

Commit 1176fce

Browse files
chore: update OpenAPI spec to e50946de8cddc549be7f7423903ad444632abce6
1 parent f7b7cb3 commit 1176fce

7 files changed

Lines changed: 2 additions & 227 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 173
1+
configured_endpoints: 172
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-51c0e9db3fb9e3aadf35fb4fcf76107a2fcd9da1b8ff6cd593c1ae23d1a24bc3.yml
33
openapi_spec_hash: db222df8620e2270763bef95ff247445
4-
config_hash: 2fa5dd58c6ab4dd15de320fa0f85dde8
4+
config_hash: ad1db65b32248aecda41b64586aac9ce

api.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ from gitpod.types import (
4242
JoinableOrganization,
4343
LoginProvider,
4444
AccountRetrieveResponse,
45-
AccountGetChatIdentityTokenResponse,
4645
AccountGetSSOLoginURLResponse,
4746
AccountListSSOLoginsResponse,
4847
)
@@ -52,7 +51,6 @@ Methods:
5251

5352
- <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>
5453
- <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>
5654
- <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>
5755
- <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>
5856
- <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>

src/gitpod/resources/accounts.py

Lines changed: 0 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
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
)
1817
from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
@@ -39,7 +38,6 @@
3938
from ..types.account_retrieve_response import AccountRetrieveResponse
4039
from ..types.account_list_sso_logins_response import AccountListSSOLoginsResponse
4140
from ..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
)

src/gitpod/types/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,6 @@
227227
from .runner_check_repository_access_params import (
228228
RunnerCheckRepositoryAccessParams as RunnerCheckRepositoryAccessParams,
229229
)
230-
from .account_get_chat_identity_token_params import (
231-
AccountGetChatIdentityTokenParams as AccountGetChatIdentityTokenParams,
232-
)
233230
from .environment_create_from_project_params import (
234231
EnvironmentCreateFromProjectParams as EnvironmentCreateFromProjectParams,
235232
)
@@ -245,9 +242,6 @@
245242
from .runner_check_repository_access_response import (
246243
RunnerCheckRepositoryAccessResponse as RunnerCheckRepositoryAccessResponse,
247244
)
248-
from .account_get_chat_identity_token_response import (
249-
AccountGetChatIdentityTokenResponse as AccountGetChatIdentityTokenResponse,
250-
)
251245
from .environment_create_from_project_response import (
252246
EnvironmentCreateFromProjectResponse as EnvironmentCreateFromProjectResponse,
253247
)

src/gitpod/types/account_get_chat_identity_token_params.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/gitpod/types/account_get_chat_identity_token_response.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

tests/api_resources/test_accounts.py

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
AccountRetrieveResponse,
1616
AccountListSSOLoginsResponse,
1717
AccountGetSSOLoginURLResponse,
18-
AccountGetChatIdentityTokenResponse,
1918
)
2019
from gitpod.pagination import (
2120
SyncLoginsPage,
@@ -111,42 +110,6 @@ def test_streaming_response_delete(self, client: Gitpod) -> None:
111110

112111
assert cast(Any, response.is_closed) is True
113112

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-
150113
@pytest.mark.skip(reason="Prism tests are disabled")
151114
@parametrize
152115
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
410373

411374
assert cast(Any, response.is_closed) is True
412375

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-
449376
@pytest.mark.skip(reason="Prism tests are disabled")
450377
@parametrize
451378
async def test_method_get_sso_login_url(self, async_client: AsyncGitpod) -> None:

0 commit comments

Comments
 (0)