Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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.13.0"
".": "0.14.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-1923b5d3865532d64d80c22746aa63991bbf227cf1cbefc8cdb14a374c4c5b89.yml
openapi_spec_hash: 304200ebfa8622f5f6846895528f06e3
config_hash: 469d30a2d44895c8c53a5aac370a56f1
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-6537d9d31bcf213ac7dab540eebd4b21a511ebb6dc9f602296f13e71aa7c859a.yml
openapi_spec_hash: f6629cb53a0e7f5dc97956e9ae439289
config_hash: b478642d4e5f97aab620afc5c51bb2ea
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
1 change: 1 addition & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ Methods:
Types:

- <code><a href="./src/resources/environments/environments.ts">AdmissionLevel</a></code>
- <code><a href="./src/resources/environments/environments.ts">BpfDebugLevel</a></code>
- <code><a href="./src/resources/environments/environments.ts">Environment</a></code>
- <code><a href="./src/resources/environments/environments.ts">EnvironmentActivitySignal</a></code>
- <code><a href="./src/resources/environments/environments.ts">EnvironmentMetadata</a></code>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <dev-feedback@gitpod.com>",
"types": "dist/index.d.ts",
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

echo "==> Running tests"
./node_modules/.bin/jest "$@"
2 changes: 2 additions & 0 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ import {
} from './resources/usage';
import {
AdmissionLevel,
BpfDebugLevel,
Environment,
EnvironmentActivitySignal,
EnvironmentCreateEnvironmentTokenParams,
Expand Down Expand Up @@ -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,
Expand Down
10 changes: 10 additions & 0 deletions src/resources/environments/environments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/resources/environments/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export { Classes, type ClassListParams } from './classes';
export {
Environments,
type AdmissionLevel,
type BpfDebugLevel,
type Environment,
type EnvironmentActivitySignal,
type EnvironmentMetadata,
Expand Down
20 changes: 20 additions & 0 deletions src/resources/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -247,9 +257,19 @@ export namespace EventListParams {

actorPrincipals?: Array<Shared.Principal>;

/**
* from filters audit logs created at or after this timestamp (inclusive).
*/
from?: string | null;

subjectIds?: Array<string>;

subjectTypes?: Array<Shared.ResourceType>;

/**
* to filters audit logs created before this timestamp (exclusive).
*/
to?: string | null;
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/resources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export {
export {
Environments,
type AdmissionLevel,
type BpfDebugLevel,
type Environment,
type EnvironmentActivitySignal,
type EnvironmentMetadata,
Expand Down
20 changes: 10 additions & 10 deletions src/resources/organizations/policies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.13.0'; // x-release-please-version
export const VERSION = '0.14.0'; // x-release-please-version
10 changes: 5 additions & 5 deletions tests/api-resources/organizations/policies.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -82,6 +77,11 @@ describe('resource policies', () => {
tags: 'tags',
},
},
vetoExecPolicy: {
action: 'KERNEL_CONTROLS_ACTION_UNSPECIFIED',
enabled: true,
executables: ['string'],
},
});
});
});