From 1b2c0567bfad884aadcb3bbeb81af84c76afe1c3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 18 Feb 2026 20:05:54 +0000 Subject: [PATCH 1/5] feat(api): add time range filters to event list method --- .stats.yml | 4 ++-- src/resources/events.ts | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index f91b512..19ac5c0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 175 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-1923b5d3865532d64d80c22746aa63991bbf227cf1cbefc8cdb14a374c4c5b89.yml -openapi_spec_hash: 304200ebfa8622f5f6846895528f06e3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-18081d3ce0bf5a7c07f195ffcf7934a53c1822f2439270d4e03b89a3993aa3e1.yml +openapi_spec_hash: 38600260362ddb6b1419e21838e97783 config_hash: 469d30a2d44895c8c53a5aac370a56f1 diff --git a/src/resources/events.ts b/src/resources/events.ts index 4fc6a44..0d84a7f 100644 --- a/src/resources/events.ts +++ b/src/resources/events.ts @@ -37,6 +37,16 @@ export class Events extends APIResource { * pageSize: 20 * ``` * + * - Filter by time range: + * + * ```yaml + * filter: + * from: "2024-01-01T00:00:00Z" + * to: "2024-02-01T00:00:00Z" + * pagination: + * pageSize: 20 + * ``` + * * @example * ```ts * // Automatically fetches more pages as needed. @@ -247,9 +257,19 @@ export namespace EventListParams { actorPrincipals?: Array; + /** + * from filters audit logs created at or after this timestamp (inclusive). + */ + from?: string | null; + subjectIds?: Array; subjectTypes?: Array; + + /** + * to filters audit logs created before this timestamp (exclusive). + */ + to?: string | null; } /** From a287ad3af6bf663011161691ca7913a446541a42 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 19 Feb 2026 08:55:25 +0000 Subject: [PATCH 2/5] feat(api): add bpfDebugLevel field to KernelControlsConfig in environments --- .stats.yml | 6 +++--- api.md | 1 + src/client.ts | 2 ++ src/resources/environments/environments.ts | 10 ++++++++++ src/resources/environments/index.ts | 1 + src/resources/index.ts | 1 + 6 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index 19ac5c0..6bc49b8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 175 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-18081d3ce0bf5a7c07f195ffcf7934a53c1822f2439270d4e03b89a3993aa3e1.yml -openapi_spec_hash: 38600260362ddb6b1419e21838e97783 -config_hash: 469d30a2d44895c8c53a5aac370a56f1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-630c480e52441c340adc8a1e95c59e866136b0126b253234bdd578e75cdbbfa8.yml +openapi_spec_hash: 5888d9e3eb30cf12d42cee3ac3932160 +config_hash: b478642d4e5f97aab620afc5c51bb2ea diff --git a/api.md b/api.md index fedc040..3743efb 100644 --- a/api.md +++ b/api.md @@ -108,6 +108,7 @@ Methods: Types: - AdmissionLevel +- BpfDebugLevel - Environment - EnvironmentActivitySignal - EnvironmentMetadata diff --git a/src/client.ts b/src/client.ts index 4c6c90a..f405858 100644 --- a/src/client.ts +++ b/src/client.ts @@ -228,6 +228,7 @@ import { } from './resources/usage'; import { AdmissionLevel, + BpfDebugLevel, Environment, EnvironmentActivitySignal, EnvironmentCreateEnvironmentTokenParams, @@ -1352,6 +1353,7 @@ export declare namespace Gitpod { export { Environments as Environments, type AdmissionLevel as AdmissionLevel, + type BpfDebugLevel as BpfDebugLevel, type Environment as Environment, type EnvironmentActivitySignal as EnvironmentActivitySignal, type EnvironmentMetadata as EnvironmentMetadata, diff --git a/src/resources/environments/environments.ts b/src/resources/environments/environments.ts index 4475f7e..1b5987d 100644 --- a/src/resources/environments/environments.ts +++ b/src/resources/environments/environments.ts @@ -569,6 +569,15 @@ export type AdmissionLevel = | 'ADMISSION_LEVEL_ORGANIZATION' | 'ADMISSION_LEVEL_CREATOR_ONLY'; +/** + * BPFDebugLevel controls the verbosity of BPF trace_pipe output (bpf_printk). + * Applies to all BPF-based agents (veto exec, future agents). + */ +export type BpfDebugLevel = + | 'BPF_DEBUG_LEVEL_UNSPECIFIED' + | 'BPF_DEBUG_LEVEL_INFO' + | 'BPF_DEBUG_LEVEL_VERBOSE'; + /** * +resource get environment */ @@ -1941,6 +1950,7 @@ Environments.Classes = Classes; export declare namespace Environments { export { type AdmissionLevel as AdmissionLevel, + type BpfDebugLevel as BpfDebugLevel, type Environment as Environment, type EnvironmentActivitySignal as EnvironmentActivitySignal, type EnvironmentMetadata as EnvironmentMetadata, diff --git a/src/resources/environments/index.ts b/src/resources/environments/index.ts index cdbafd6..b608089 100644 --- a/src/resources/environments/index.ts +++ b/src/resources/environments/index.ts @@ -10,6 +10,7 @@ export { Classes, type ClassListParams } from './classes'; export { Environments, type AdmissionLevel, + type BpfDebugLevel, type Environment, type EnvironmentActivitySignal, type EnvironmentMetadata, diff --git a/src/resources/index.ts b/src/resources/index.ts index a91cbd3..8a63d22 100644 --- a/src/resources/index.ts +++ b/src/resources/index.ts @@ -69,6 +69,7 @@ export { export { Environments, type AdmissionLevel, + type BpfDebugLevel, type Environment, type EnvironmentActivitySignal, type EnvironmentMetadata, From 84bf167dd9dd77c72968cd5267d9a2b25a6caa76 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 19 Feb 2026 09:46:20 +0000 Subject: [PATCH 3/5] fix(api): rename executableDenyList to vetoExecPolicy in policies --- .stats.yml | 4 ++-- src/resources/organizations/policies.ts | 20 +++++++++---------- .../organizations/policies.test.ts | 10 +++++----- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6bc49b8..ae4752a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 175 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-630c480e52441c340adc8a1e95c59e866136b0126b253234bdd578e75cdbbfa8.yml -openapi_spec_hash: 5888d9e3eb30cf12d42cee3ac3932160 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-6537d9d31bcf213ac7dab540eebd4b21a511ebb6dc9f602296f13e71aa7c859a.yml +openapi_spec_hash: f6629cb53a0e7f5dc97956e9ae439289 config_hash: b478642d4e5f97aab620afc5c51bb2ea diff --git a/src/resources/organizations/policies.ts b/src/resources/organizations/policies.ts index 62c3924..fecce48 100644 --- a/src/resources/organizations/policies.ts +++ b/src/resources/organizations/policies.ts @@ -252,11 +252,6 @@ export interface OrganizationPolicies { */ editorVersionRestrictions?: { [key: string]: OrganizationPolicies.EditorVersionRestrictions }; - /** - * executable_deny_list contains the veto exec policy for environments. - */ - executableDenyList?: VetoExecPolicy; - /** * maximum_environment_lifetime controls for how long environments are allowed to * be reused. 0 means no maximum lifetime. Maximum duration is 180 days (15552000 @@ -277,6 +272,11 @@ export interface OrganizationPolicies { * environments. */ securityAgentPolicy?: SecurityAgentPolicy; + + /** + * veto_exec_policy contains the veto exec policy for environments. + */ + vetoExecPolicy?: VetoExecPolicy; } export namespace OrganizationPolicies { @@ -387,11 +387,6 @@ export interface PolicyUpdateParams { */ editorVersionRestrictions?: { [key: string]: PolicyUpdateParams.EditorVersionRestrictions }; - /** - * executable_deny_list contains the veto exec policy for environments. - */ - executableDenyList?: VetoExecPolicy | null; - /** * maximum_environment_lifetime controls for how long environments are allowed to * be reused. 0 means no maximum lifetime. Maximum duration is 180 days (15552000 @@ -453,6 +448,11 @@ export interface PolicyUpdateParams { * security_agent_policy contains security agent configuration updates */ securityAgentPolicy?: PolicyUpdateParams.SecurityAgentPolicy | null; + + /** + * veto_exec_policy contains the veto exec policy for environments. + */ + vetoExecPolicy?: VetoExecPolicy | null; } export namespace PolicyUpdateParams { diff --git a/tests/api-resources/organizations/policies.test.ts b/tests/api-resources/organizations/policies.test.ts index 1cdd350..d6c32c9 100644 --- a/tests/api-resources/organizations/policies.test.ts +++ b/tests/api-resources/organizations/policies.test.ts @@ -59,11 +59,6 @@ describe('resource policies', () => { defaultEnvironmentImage: 'defaultEnvironmentImage', deleteArchivedEnvironmentsAfter: '+9125115.360s', editorVersionRestrictions: { foo: { allowedVersions: ['string'] } }, - executableDenyList: { - action: 'KERNEL_CONTROLS_ACTION_UNSPECIFIED', - enabled: true, - executables: ['string'], - }, maximumEnvironmentLifetime: '+9125115.360s', maximumEnvironmentsPerUser: '20', maximumEnvironmentTimeout: '3600s', @@ -82,6 +77,11 @@ describe('resource policies', () => { tags: 'tags', }, }, + vetoExecPolicy: { + action: 'KERNEL_CONTROLS_ACTION_UNSPECIFIED', + enabled: true, + executables: ['string'], + }, }); }); }); From d7effeca87947f2c067de984a7fac9f4e498eaac Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 19 Feb 2026 16:05:24 +0000 Subject: [PATCH 4/5] chore(internal): remove mock server code --- scripts/mock | 41 ----------------------------------------- scripts/test | 46 ---------------------------------------------- 2 files changed, 87 deletions(-) delete mode 100755 scripts/mock diff --git a/scripts/mock b/scripts/mock deleted file mode 100755 index 0b28f6e..0000000 --- a/scripts/mock +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -set -e - -cd "$(dirname "$0")/.." - -if [[ -n "$1" && "$1" != '--'* ]]; then - URL="$1" - shift -else - URL="$(grep 'openapi_spec_url' .stats.yml | cut -d' ' -f2)" -fi - -# Check if the URL is empty -if [ -z "$URL" ]; then - echo "Error: No OpenAPI spec path/url provided or found in .stats.yml" - exit 1 -fi - -echo "==> Starting mock server with URL ${URL}" - -# Run prism mock on the given spec -if [ "$1" == "--daemon" ]; then - npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" &> .prism.log & - - # Wait for server to come online - echo -n "Waiting for server" - while ! grep -q "✖ fatal\|Prism is listening" ".prism.log" ; do - echo -n "." - sleep 0.1 - done - - if grep -q "✖ fatal" ".prism.log"; then - cat .prism.log - exit 1 - fi - - echo -else - npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" -fi diff --git a/scripts/test b/scripts/test index 7bce051..548da9b 100755 --- a/scripts/test +++ b/scripts/test @@ -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 echo "==> Running tests" ./node_modules/.bin/jest "$@" From fac85ea0bfa0371e5719e194c896be92ff54798f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 19 Feb 2026 16:05:40 +0000 Subject: [PATCH 5/5] release: 0.14.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 19 +++++++++++++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 22 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index ed21d28..727e2be 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.13.0" + ".": "0.14.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 6590a4f..1391ce0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## 0.14.0 (2026-02-19) + +Full Changelog: [v0.13.0...v0.14.0](https://github.com/gitpod-io/gitpod-sdk-typescript/compare/v0.13.0...v0.14.0) + +### Features + +* **api:** add bpfDebugLevel field to KernelControlsConfig in environments ([a287ad3](https://github.com/gitpod-io/gitpod-sdk-typescript/commit/a287ad3af6bf663011161691ca7913a446541a42)) +* **api:** add time range filters to event list method ([1b2c056](https://github.com/gitpod-io/gitpod-sdk-typescript/commit/1b2c0567bfad884aadcb3bbeb81af84c76afe1c3)) + + +### Bug Fixes + +* **api:** rename executableDenyList to vetoExecPolicy in policies ([84bf167](https://github.com/gitpod-io/gitpod-sdk-typescript/commit/84bf167dd9dd77c72968cd5267d9a2b25a6caa76)) + + +### Chores + +* **internal:** remove mock server code ([d7effec](https://github.com/gitpod-io/gitpod-sdk-typescript/commit/d7effeca87947f2c067de984a7fac9f4e498eaac)) + ## 0.13.0 (2026-02-18) Full Changelog: [v0.12.0...v0.13.0](https://github.com/gitpod-io/gitpod-sdk-typescript/compare/v0.12.0...v0.13.0) diff --git a/package.json b/package.json index 0be4380..d02b76b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gitpod/sdk", - "version": "0.13.0", + "version": "0.14.0", "description": "The official TypeScript library for the Gitpod API", "author": "Gitpod ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 9d013cc..e2b0672 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.13.0'; // x-release-please-version +export const VERSION = '0.14.0'; // x-release-please-version