Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
8c34748
codegen metadata
stainless-app[bot] Feb 18, 2026
c89b37e
feat(api): add time range filters to event list method
stainless-app[bot] Feb 18, 2026
d0cf7a4
feat(api): add bpf_debug_level field to KernelControlsConfig
stainless-app[bot] Feb 19, 2026
8e6e434
fix(api): rename executable_deny_list to veto_exec_policy in policies…
stainless-app[bot] Feb 19, 2026
3c5deb3
chore(internal): remove mock server code
stainless-app[bot] Feb 19, 2026
cef4896
chore: update mock server docs
stainless-app[bot] Feb 19, 2026
2dbb983
codegen metadata
stainless-app[bot] Feb 19, 2026
49175f9
chore(test): update skip reason message
stainless-app[bot] Feb 19, 2026
b30fc23
feat(api): add resource_ids to role assignments, restructure executab…
stainless-app[bot] Feb 19, 2026
026cf87
codegen metadata
stainless-app[bot] Feb 20, 2026
6d2b499
chore(internal): update jsonl tests
stainless-app[bot] Feb 20, 2026
b3c5372
codegen metadata
stainless-app[bot] Feb 20, 2026
e87f54b
feat(api): add SONNET_4_6 model variants to agent_execution Status
stainless-app[bot] Feb 20, 2026
c5c6a3a
feat(types): add CountResponseRelation enum type
stainless-app[bot] Feb 23, 2026
fada768
feat(api): add sort parameter to projects list, SortOrder/SortParam t…
stainless-app[bot] Feb 23, 2026
07f90be
codegen metadata
stainless-app[bot] Feb 23, 2026
17c6632
chore(internal): add request options to SSE classes
stainless-app[bot] Feb 23, 2026
b5ee95d
chore(internal): make `test_proxy_environment_variables` more resilient
stainless-app[bot] Feb 23, 2026
0404454
codegen metadata
stainless-app[bot] Feb 24, 2026
4d2b021
codegen metadata
stainless-app[bot] Feb 24, 2026
2520d14
chore(internal): make `test_proxy_environment_variables` more resilie…
stainless-app[bot] Feb 24, 2026
1b135ad
codegen metadata
stainless-app[bot] Feb 25, 2026
6317ac9
feat(api): add lockdown_at field to environment status
stainless-app[bot] Feb 26, 2026
016383e
codegen metadata
stainless-app[bot] Feb 26, 2026
6ae65db
codegen metadata
stainless-app[bot] Feb 26, 2026
daf1ad5
docs(api): update filter descriptions in groups role_assignment_list_…
stainless-app[bot] Feb 26, 2026
2bb59d8
release: 0.11.0
stainless-app[bot] Feb 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.10.0"
".": "0.11.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 175
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-04247bf988645580ef6550363a7279d67d7c844e4310b526b6868be92541199f.yml
openapi_spec_hash: b0f61f1a55a55a187447ff684bf51d3d
config_hash: 469d30a2d44895c8c53a5aac370a56f1
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-6ddb2652b5fb1610666e18a37fff845ede972439790678f3a8cda6c10e359f68.yml
openapi_spec_hash: 264d8d361658501f45a7ac14ffd82e62
config_hash: 46181938e983742bbe5ea736cb76993b
35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,40 @@
# Changelog

## 0.11.0 (2026-02-26)

Full Changelog: [v0.10.0...v0.11.0](https://github.com/gitpod-io/gitpod-sdk-python/compare/v0.10.0...v0.11.0)

### Features

* **api:** add bpf_debug_level field to KernelControlsConfig ([d0cf7a4](https://github.com/gitpod-io/gitpod-sdk-python/commit/d0cf7a47fc5e68b96a40152ba8f26476da9ded02))
* **api:** add lockdown_at field to environment status ([6317ac9](https://github.com/gitpod-io/gitpod-sdk-python/commit/6317ac97e4de079d158a0839eea63b8b4f11825f))
* **api:** add resource_ids to role assignments, restructure executable deny list in policies ([b30fc23](https://github.com/gitpod-io/gitpod-sdk-python/commit/b30fc2332c0d2f4c8267c00d15a2e0a3f43446ec))
* **api:** add SONNET_4_6 model variants to agent_execution Status ([e87f54b](https://github.com/gitpod-io/gitpod-sdk-python/commit/e87f54b36e2913913125398b6e36223c795b9562))
* **api:** add sort parameter to projects list, SortOrder/SortParam types ([fada768](https://github.com/gitpod-io/gitpod-sdk-python/commit/fada768b6dbe0721d4e6d93dca8ff2d6dc44f648))
* **api:** add time range filters to event list method ([c89b37e](https://github.com/gitpod-io/gitpod-sdk-python/commit/c89b37ec3240396215fba5b77b19c29ae598da2e))
* **types:** add CountResponseRelation enum type ([c5c6a3a](https://github.com/gitpod-io/gitpod-sdk-python/commit/c5c6a3a85b17dafe0bb879d42eb671f4601718b7))


### Bug Fixes

* **api:** rename executable_deny_list to veto_exec_policy in policies update ([8e6e434](https://github.com/gitpod-io/gitpod-sdk-python/commit/8e6e434949910725dcf3e0919e57f2f748acff15))


### Chores

* **internal:** add request options to SSE classes ([17c6632](https://github.com/gitpod-io/gitpod-sdk-python/commit/17c6632b21cdf3fb082f74a6a3823cb210aa1757))
* **internal:** make `test_proxy_environment_variables` more resilient ([b5ee95d](https://github.com/gitpod-io/gitpod-sdk-python/commit/b5ee95d7dcc5a9da2ed73af7a7f896dd56c5b4a4))
* **internal:** make `test_proxy_environment_variables` more resilient to env ([2520d14](https://github.com/gitpod-io/gitpod-sdk-python/commit/2520d14755b2be28dbb6b4335438482aca97a794))
* **internal:** remove mock server code ([3c5deb3](https://github.com/gitpod-io/gitpod-sdk-python/commit/3c5deb354f3c5059bac0bb2b50c288a7b40e2b7f))
* **internal:** update jsonl tests ([6d2b499](https://github.com/gitpod-io/gitpod-sdk-python/commit/6d2b4990c73692b942ae02d99577c119bd6a8b18))
* **test:** update skip reason message ([49175f9](https://github.com/gitpod-io/gitpod-sdk-python/commit/49175f922aa977681c528dc55920562433fcaaee))
* update mock server docs ([cef4896](https://github.com/gitpod-io/gitpod-sdk-python/commit/cef48965ac676afcc1adde238fc0a59c85ed0dac))


### Documentation

* **api:** update filter descriptions in groups role_assignment_list_params ([daf1ad5](https://github.com/gitpod-io/gitpod-sdk-python/commit/daf1ad5c2b42f7851566d8c32f5dda6f9313dd53))

## 0.10.0 (2026-02-18)

Full Changelog: [v0.9.0...v0.10.0](https://github.com/gitpod-io/gitpod-sdk-python/compare/v0.9.0...v0.10.0)
Expand Down
7 changes: 0 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,6 @@ $ pip install ./path-to-wheel-file.whl

## Running tests

Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.

```sh
# you will need npm installed
$ npx prism mock path/to/your/openapi.yml
```

```sh
$ ./scripts/test
```
Expand Down
4 changes: 4 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ Types:
```python
from gitpod.types import (
AdmissionLevel,
BpfDebugLevel,
Environment,
EnvironmentActivitySignal,
EnvironmentMetadata,
Expand Down Expand Up @@ -346,6 +347,7 @@ Types:

```python
from gitpod.types import (
CountResponseRelation,
InviteDomains,
Organization,
OrganizationMember,
Expand Down Expand Up @@ -553,6 +555,8 @@ from gitpod.types import (
ProjectPhase,
ProjectPrebuildConfiguration,
RecommendedEditors,
Sort,
SortOrder,
ProjectCreateResponse,
ProjectRetrieveResponse,
ProjectUpdateResponse,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "gitpod-sdk"
version = "0.10.0"
version = "0.11.0"
description = "The official Python library for the gitpod API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
41 changes: 0 additions & 41 deletions scripts/mock

This file was deleted.

46 changes: 0 additions & 46 deletions scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -4,53 +4,7 @@ set -e

cd "$(dirname "$0")/.."

RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
NC='\033[0m' # No Color

function prism_is_running() {
curl --silent "http://localhost:4010" >/dev/null 2>&1
}

kill_server_on_port() {
pids=$(lsof -t -i tcp:"$1" || echo "")
if [ "$pids" != "" ]; then
kill "$pids"
echo "Stopped $pids."
fi
}

function is_overriding_api_base_url() {
[ -n "$TEST_API_BASE_URL" ]
}

if ! is_overriding_api_base_url && ! prism_is_running ; then
# When we exit this script, make sure to kill the background mock server process
trap 'kill_server_on_port 4010' EXIT

# Start the dev server
./scripts/mock --daemon
fi

if is_overriding_api_base_url ; then
echo -e "${GREEN}✔ Running tests against ${TEST_API_BASE_URL}${NC}"
echo
elif ! prism_is_running ; then
echo -e "${RED}ERROR:${NC} The test suite will not run without a mock Prism server"
echo -e "running against your OpenAPI spec."
echo
echo -e "To run the server, pass in the path or url of your OpenAPI"
echo -e "spec to the prism command:"
echo
echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}"
echo

exit 1
else
echo -e "${GREEN}✔ Mock prism server is running with your OpenAPI spec${NC}"
echo
fi

export DEFER_PYDANTIC_BUILD=false

Expand Down
3 changes: 3 additions & 0 deletions src/gitpod/_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T:
),
response=self.http_response,
client=cast(Any, self._client),
options=self._options,
),
)

Expand All @@ -184,6 +185,7 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T:
cast_to=extract_stream_chunk_type(self._stream_cls),
response=self.http_response,
client=cast(Any, self._client),
options=self._options,
),
)

Expand All @@ -197,6 +199,7 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T:
cast_to=cast_to,
response=self.http_response,
client=cast(Any, self._client),
options=self._options,
),
)

Expand Down
11 changes: 8 additions & 3 deletions src/gitpod/_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import json
import inspect
from types import TracebackType
from typing import TYPE_CHECKING, Any, Generic, TypeVar, Iterator, AsyncIterator, cast
from typing import TYPE_CHECKING, Any, Generic, TypeVar, Iterator, Optional, AsyncIterator, cast
from typing_extensions import Self, Protocol, TypeGuard, override, get_origin, runtime_checkable

import httpx
Expand All @@ -13,6 +13,7 @@

if TYPE_CHECKING:
from ._client import Gitpod, AsyncGitpod
from ._models import FinalRequestOptions


_T = TypeVar("_T")
Expand All @@ -22,7 +23,7 @@ class Stream(Generic[_T]):
"""Provides the core interface to iterate over a synchronous stream response."""

response: httpx.Response

_options: Optional[FinalRequestOptions] = None
_decoder: SSEBytesDecoder

def __init__(
Expand All @@ -31,10 +32,12 @@ def __init__(
cast_to: type[_T],
response: httpx.Response,
client: Gitpod,
options: Optional[FinalRequestOptions] = None,
) -> None:
self.response = response
self._cast_to = cast_to
self._client = client
self._options = options
self._decoder = client._make_sse_decoder()
self._iterator = self.__stream__()

Expand Down Expand Up @@ -85,7 +88,7 @@ class AsyncStream(Generic[_T]):
"""Provides the core interface to iterate over an asynchronous stream response."""

response: httpx.Response

_options: Optional[FinalRequestOptions] = None
_decoder: SSEDecoder | SSEBytesDecoder

def __init__(
Expand All @@ -94,10 +97,12 @@ def __init__(
cast_to: type[_T],
response: httpx.Response,
client: AsyncGitpod,
options: Optional[FinalRequestOptions] = None,
) -> None:
self.response = response
self._cast_to = cast_to
self._client = client
self._options = options
self._decoder = client._make_sse_decoder()
self._iterator = self.__stream__()

Expand Down
2 changes: 1 addition & 1 deletion src/gitpod/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "gitpod"
__version__ = "0.10.0" # x-release-please-version
__version__ = "0.11.0" # x-release-please-version
20 changes: 20 additions & 0 deletions src/gitpod/resources/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@ def list(
pageSize: 20
```

- Filter by time range:

```yaml
filter:
from: "2024-01-01T00:00:00Z"
to: "2024-02-01T00:00:00Z"
pagination:
pageSize: 20
```

Args:
pagination: pagination contains the pagination options for listing environments

Expand Down Expand Up @@ -251,6 +261,16 @@ def list(
pageSize: 20
```

- Filter by time range:

```yaml
filter:
from: "2024-01-01T00:00:00Z"
to: "2024-02-01T00:00:00Z"
pagination:
pageSize: 20
```

Args:
pagination: pagination contains the pagination options for listing environments

Expand Down
Loading