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
49 changes: 49 additions & 0 deletions .github/workflows/actions.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# This file is machine-generated by `gh actions-lock`.
# Do not edit by hand; run `gh actions-lock` to update.
# Docs: https://gh.io/actions-lockfile
version: 'v0.0.3'
workflows:
'.github/workflows/ci.yml':
- 'actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd'
- 'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd'
'.github/workflows/publish-pypi.yml':
- 'actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd'
'.github/workflows/release-doctor.yml':
- 'actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd'
'.github/workflows/release-please.yml':
- 'actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547'
- 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020'
- 'pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1'
'.github/workflows/semgrep.yml': []
'.github/workflows/stlc-promote.yml':
- 'actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd'
- 'actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547'
'.github/workflows/stlc-sync.yml':
- 'actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd'
'.github/workflows/vuln-remediation.yml': []
dependencies:
'actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd':
ref: 'v6.0.2'
commit: 'sha1-de0fac2e4500dabe0009e67214ff5f5447ce83dd'
owner_id: 44036562
repo_id: 197814629
'actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547':
ref: 'v1.12.0'
commit: 'sha1-d72941d797fd3113feb6b93fd0dec494b13a2547'
owner_id: 44036562
repo_id: 642580244
'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd':
ref: 'v8.0.0'
commit: 'sha1-ed597411d8f924073f98dfc5c65a23a2325f34cd'
owner_id: 44036562
repo_id: 205262760
'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020':
ref: 'v4.4.0'
commit: 'sha1-49933ea5288caeca8642d1e84afbd3f7d6820020'
owner_id: 44036562
repo_id: 189476904
'pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1':
ref: 'v4.3.0'
commit: 'sha1-b906affcce14559ad1aafd4ab0e942779e9f58b1'
owner_id: 21320719
repo_id: 262289747
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
node-version: '18.20.2'

- name: Set up pnpm
uses: pnpm/action-setup@f40ffcd9367d9f12939873eb1018b921a783ffaa # v4
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
with:
version: '9.11.0'
run_install: false
Expand Down
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.148.0"
".": "0.149.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 179
configured_endpoints: 189
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## [0.149.0](https://github.com/kernel/kernel-python-sdk/compare/v0.148.0...v0.149.0) (2026-11-16)


### Features

* Add reports API and report type discovery ([0c8d11c](https://github.com/kernel/kernel-python-sdk/commit/0c8d11c5f62aa2ddd7e663e87d31267ef4364390))
* Add tasks API: create, list, get, and link browsers ([5dd6af8](https://github.com/kernel/kernel-python-sdk/commit/5dd6af87afa61b5fbbc5770585ae04f4ec2fe49c))
* Let vault item events be read after the item or vault is deleted ([54a0df6](https://github.com/kernel/kernel-python-sdk/commit/54a0df62916a5cd8f0991a8780aa47bdefbfacd3))

## [0.148.0](https://github.com/kernel/kernel-python-sdk/compare/v0.147.0...v0.148.0) (2026-11-12)


Expand Down
54 changes: 54 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,60 @@ Methods:
- <code title="delete /profiles/{id_or_name}">client.profiles.<a href="./src/kernel/resources/profiles.py">delete</a>(id_or_name) -> None</code>
- <code title="get /profiles/{id_or_name}/download">client.profiles.<a href="./src/kernel/resources/profiles.py">download</a>(id_or_name, \*\*<a href="src/kernel/types/profile_download_params.py">params</a>) -> BinaryAPIResponse</code>

# Tasks

Types:

```python
from kernel.types import Task, TaskMetadata
```

Methods:

- <code title="post /tasks">client.tasks.<a href="./src/kernel/resources/tasks.py">create</a>(\*\*<a href="src/kernel/types/task_create_params.py">params</a>) -> <a href="./src/kernel/types/task.py">Task</a></code>
- <code title="get /tasks/{id}">client.tasks.<a href="./src/kernel/resources/tasks.py">retrieve</a>(id) -> <a href="./src/kernel/types/task.py">Task</a></code>
- <code title="get /tasks">client.tasks.<a href="./src/kernel/resources/tasks.py">list</a>(\*\*<a href="src/kernel/types/task_list_params.py">params</a>) -> <a href="./src/kernel/types/task.py">SyncOffsetPagination[Task]</a></code>
- <code title="post /tasks/{id}/browsers">client.tasks.<a href="./src/kernel/resources/tasks.py">link_browsers</a>(id, \*\*<a href="src/kernel/types/task_link_browsers_params.py">params</a>) -> <a href="./src/kernel/types/task.py">Task</a></code>

# Reports

Types:

```python
from kernel.types import Report
```

Methods:

- <code title="post /reports">client.reports.<a href="./src/kernel/resources/reports.py">create</a>(\*\*<a href="src/kernel/types/report_create_params.py">params</a>) -> <a href="./src/kernel/types/report.py">Report</a></code>
- <code title="get /reports/{id}">client.reports.<a href="./src/kernel/resources/reports.py">retrieve</a>(id) -> <a href="./src/kernel/types/report.py">Report</a></code>
- <code title="get /reports">client.reports.<a href="./src/kernel/resources/reports.py">list</a>(\*\*<a href="src/kernel/types/report_list_params.py">params</a>) -> <a href="./src/kernel/types/report.py">SyncOffsetPagination[Report]</a></code>

# ReportTypes

Types:

```python
from kernel.types import ReportType, ReportTypeSummary, ReportTypeVersionSummary
```

Methods:

- <code title="get /report_types/{type}">client.report_types.<a href="./src/kernel/resources/report_types/report_types.py">retrieve</a>(type) -> <a href="./src/kernel/types/report_type.py">ReportType</a></code>
- <code title="get /report_types">client.report_types.<a href="./src/kernel/resources/report_types/report_types.py">list</a>(\*\*<a href="src/kernel/types/report_type_list_params.py">params</a>) -> <a href="./src/kernel/types/report_type_summary.py">SyncOffsetPagination[ReportTypeSummary]</a></code>

## Versions

Types:

```python
from kernel.types.report_types import ReportTypeVersion
```

Methods:

- <code title="get /report_types/{type}/versions/{version}">client.report_types.versions.<a href="./src/kernel/resources/report_types/versions.py">retrieve</a>(version, \*, type) -> <a href="./src/kernel/types/report_types/report_type_version.py">ReportTypeVersion</a></code>

# Auth

## Context
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 = "kernel"
version = "0.148.0"
version = "0.149.0"
description = "The official Python library for the kernel API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
132 changes: 132 additions & 0 deletions src/kernel/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@
from .resources import (
apps,
auth,
tasks,
search,
vaults,
proxies,
reports,
api_keys,
browsers,
profiles,
Expand All @@ -72,13 +74,16 @@
deployments,
invocations,
organization,
report_types,
browser_pools,
config_registry,
credential_providers,
vault_provider_configs,
)
from .resources.apps import AppsResource, AsyncAppsResource
from .resources.tasks import TasksResource, AsyncTasksResource
from .resources.proxies import ProxiesResource, AsyncProxiesResource
from .resources.reports import ReportsResource, AsyncReportsResource
from .resources.api_keys import APIKeysResource, AsyncAPIKeysResource
from .resources.profiles import ProfilesResource, AsyncProfilesResource
from .resources.auth.auth import AuthResource, AsyncAuthResource
Expand All @@ -97,6 +102,7 @@
from .resources.audit_logs.audit_logs import AuditLogsResource, AsyncAuditLogsResource
from .resources.vault_provider_configs import VaultProviderConfigsResource, AsyncVaultProviderConfigsResource
from .resources.organization.organization import OrganizationResource, AsyncOrganizationResource
from .resources.report_types.report_types import ReportTypesResource, AsyncReportTypesResource
from .resources.config_registry.config_registry import ConfigRegistryResource, AsyncConfigRegistryResource

__all__ = [
Expand Down Expand Up @@ -264,6 +270,27 @@ def profiles(self) -> ProfilesResource:

return ProfilesResource(self)

@cached_property
def tasks(self) -> TasksResource:
"""Define tasks that agents work toward and link the browsers they use."""
from .resources.tasks import TasksResource

return TasksResource(self)

@cached_property
def reports(self) -> ReportsResource:
"""Discover report types and submit typed reports against tasks."""
from .resources.reports import ReportsResource

return ReportsResource(self)

@cached_property
def report_types(self) -> ReportTypesResource:
"""Discover report types and submit typed reports against tasks."""
from .resources.report_types import ReportTypesResource

return ReportTypesResource(self)

@cached_property
def auth(self) -> AuthResource:
from .resources.auth import AuthResource
Expand Down Expand Up @@ -680,6 +707,27 @@ def profiles(self) -> AsyncProfilesResource:

return AsyncProfilesResource(self)

@cached_property
def tasks(self) -> AsyncTasksResource:
"""Define tasks that agents work toward and link the browsers they use."""
from .resources.tasks import AsyncTasksResource

return AsyncTasksResource(self)

@cached_property
def reports(self) -> AsyncReportsResource:
"""Discover report types and submit typed reports against tasks."""
from .resources.reports import AsyncReportsResource

return AsyncReportsResource(self)

@cached_property
def report_types(self) -> AsyncReportTypesResource:
"""Discover report types and submit typed reports against tasks."""
from .resources.report_types import AsyncReportTypesResource

return AsyncReportTypesResource(self)

@cached_property
def auth(self) -> AsyncAuthResource:
from .resources.auth import AsyncAuthResource
Expand Down Expand Up @@ -996,6 +1044,27 @@ def profiles(self) -> profiles.ProfilesResourceWithRawResponse:

return ProfilesResourceWithRawResponse(self._client.profiles)

@cached_property
def tasks(self) -> tasks.TasksResourceWithRawResponse:
"""Define tasks that agents work toward and link the browsers they use."""
from .resources.tasks import TasksResourceWithRawResponse

return TasksResourceWithRawResponse(self._client.tasks)

@cached_property
def reports(self) -> reports.ReportsResourceWithRawResponse:
"""Discover report types and submit typed reports against tasks."""
from .resources.reports import ReportsResourceWithRawResponse

return ReportsResourceWithRawResponse(self._client.reports)

@cached_property
def report_types(self) -> report_types.ReportTypesResourceWithRawResponse:
"""Discover report types and submit typed reports against tasks."""
from .resources.report_types import ReportTypesResourceWithRawResponse

return ReportTypesResourceWithRawResponse(self._client.report_types)

@cached_property
def auth(self) -> auth.AuthResourceWithRawResponse:
from .resources.auth import AuthResourceWithRawResponse
Expand Down Expand Up @@ -1144,6 +1213,27 @@ def profiles(self) -> profiles.AsyncProfilesResourceWithRawResponse:

return AsyncProfilesResourceWithRawResponse(self._client.profiles)

@cached_property
def tasks(self) -> tasks.AsyncTasksResourceWithRawResponse:
"""Define tasks that agents work toward and link the browsers they use."""
from .resources.tasks import AsyncTasksResourceWithRawResponse

return AsyncTasksResourceWithRawResponse(self._client.tasks)

@cached_property
def reports(self) -> reports.AsyncReportsResourceWithRawResponse:
"""Discover report types and submit typed reports against tasks."""
from .resources.reports import AsyncReportsResourceWithRawResponse

return AsyncReportsResourceWithRawResponse(self._client.reports)

@cached_property
def report_types(self) -> report_types.AsyncReportTypesResourceWithRawResponse:
"""Discover report types and submit typed reports against tasks."""
from .resources.report_types import AsyncReportTypesResourceWithRawResponse

return AsyncReportTypesResourceWithRawResponse(self._client.report_types)

@cached_property
def auth(self) -> auth.AsyncAuthResourceWithRawResponse:
from .resources.auth import AsyncAuthResourceWithRawResponse
Expand Down Expand Up @@ -1292,6 +1382,27 @@ def profiles(self) -> profiles.ProfilesResourceWithStreamingResponse:

return ProfilesResourceWithStreamingResponse(self._client.profiles)

@cached_property
def tasks(self) -> tasks.TasksResourceWithStreamingResponse:
"""Define tasks that agents work toward and link the browsers they use."""
from .resources.tasks import TasksResourceWithStreamingResponse

return TasksResourceWithStreamingResponse(self._client.tasks)

@cached_property
def reports(self) -> reports.ReportsResourceWithStreamingResponse:
"""Discover report types and submit typed reports against tasks."""
from .resources.reports import ReportsResourceWithStreamingResponse

return ReportsResourceWithStreamingResponse(self._client.reports)

@cached_property
def report_types(self) -> report_types.ReportTypesResourceWithStreamingResponse:
"""Discover report types and submit typed reports against tasks."""
from .resources.report_types import ReportTypesResourceWithStreamingResponse

return ReportTypesResourceWithStreamingResponse(self._client.report_types)

@cached_property
def auth(self) -> auth.AuthResourceWithStreamingResponse:
from .resources.auth import AuthResourceWithStreamingResponse
Expand Down Expand Up @@ -1440,6 +1551,27 @@ def profiles(self) -> profiles.AsyncProfilesResourceWithStreamingResponse:

return AsyncProfilesResourceWithStreamingResponse(self._client.profiles)

@cached_property
def tasks(self) -> tasks.AsyncTasksResourceWithStreamingResponse:
"""Define tasks that agents work toward and link the browsers they use."""
from .resources.tasks import AsyncTasksResourceWithStreamingResponse

return AsyncTasksResourceWithStreamingResponse(self._client.tasks)

@cached_property
def reports(self) -> reports.AsyncReportsResourceWithStreamingResponse:
"""Discover report types and submit typed reports against tasks."""
from .resources.reports import AsyncReportsResourceWithStreamingResponse

return AsyncReportsResourceWithStreamingResponse(self._client.reports)

@cached_property
def report_types(self) -> report_types.AsyncReportTypesResourceWithStreamingResponse:
"""Discover report types and submit typed reports against tasks."""
from .resources.report_types import AsyncReportTypesResourceWithStreamingResponse

return AsyncReportTypesResourceWithStreamingResponse(self._client.report_types)

@cached_property
def auth(self) -> auth.AsyncAuthResourceWithStreamingResponse:
from .resources.auth import AsyncAuthResourceWithStreamingResponse
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/_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__ = "kernel"
__version__ = "0.148.0" # x-release-please-version
__version__ = "0.149.0" # x-release-please-version
Loading
Loading