diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index ae5e906..05b6024 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.36.1"
+ ".": "0.37.0"
}
diff --git a/.stats.yml b/.stats.yml
index c875efd..b154e7a 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 101
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-ea5c9cb25c29fa5a8758bbf8732eb306783bb6f13b4df29bf1ad5ad3cb32da1e.yml
-openapi_spec_hash: 597031840469b011f5cf22a4d8b9d750
-config_hash: 147340811dd6fbb9c2d80515a7e31f9a
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-fc4a441d80d9a26574ef8af390a0c76265f5d4190daf90a04b6b353b128bbd97.yml
+openapi_spec_hash: 192987649d3797c3a80e6ef201667b64
+config_hash: 8af430e19f4af86c05f2987241cae72f
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5a81ea4..e0820b4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 0.37.0 (2026-02-23)
+
+Full Changelog: [v0.36.1...v0.37.0](https://github.com/kernel/kernel-node-sdk/compare/v0.36.1...v0.37.0)
+
+### Features
+
+* Neil/kernel 1017 profile pagination query parameter ([5f46e36](https://github.com/kernel/kernel-node-sdk/commit/5f46e36d3b1f48fcaeaa346acc8fd080dafb1830))
+
## 0.36.1 (2026-02-21)
Full Changelog: [v0.36.0...v0.36.1](https://github.com/kernel/kernel-node-sdk/compare/v0.36.0...v0.36.1)
diff --git a/api.md b/api.md
index 1e49256..a29d404 100644
--- a/api.md
+++ b/api.md
@@ -192,15 +192,11 @@ Methods:
# Profiles
-Types:
-
-- ProfileListResponse
-
Methods:
- client.profiles.create({ ...params }) -> Profile
- client.profiles.retrieve(idOrName) -> Profile
-- client.profiles.list() -> ProfileListResponse
+- client.profiles.list({ ...params }) -> ProfilesOffsetPagination
- client.profiles.delete(idOrName) -> void
- client.profiles.download(idOrName) -> Response
diff --git a/package.json b/package.json
index c4163ae..f00c4dc 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@onkernel/sdk",
- "version": "0.36.1",
+ "version": "0.37.0",
"description": "The official TypeScript library for the Kernel API",
"author": "Kernel <>",
"types": "dist/index.d.ts",
diff --git a/src/client.ts b/src/client.ts
index a35a829..70d7ae3 100644
--- a/src/client.ts
+++ b/src/client.ts
@@ -88,7 +88,7 @@ import {
InvocationUpdateResponse,
Invocations,
} from './resources/invocations';
-import { ProfileCreateParams, ProfileListResponse, Profiles } from './resources/profiles';
+import { ProfileCreateParams, ProfileListParams, Profiles } from './resources/profiles';
import {
Proxies,
ProxyCheckResponse,
@@ -985,8 +985,8 @@ export declare namespace Kernel {
export {
Profiles as Profiles,
- type ProfileListResponse as ProfileListResponse,
type ProfileCreateParams as ProfileCreateParams,
+ type ProfileListParams as ProfileListParams,
};
export { Auth as Auth };
diff --git a/src/resources/browsers/browsers.ts b/src/resources/browsers/browsers.ts
index bc1d481..87c2fdc 100644
--- a/src/resources/browsers/browsers.ts
+++ b/src/resources/browsers/browsers.ts
@@ -209,6 +209,8 @@ export class Browsers extends APIResource {
export type BrowserListResponsesOffsetPagination = OffsetPagination;
+export type ProfilesOffsetPagination = OffsetPagination;
+
/**
* @deprecated DEPRECATED: Use timeout_seconds (up to 72 hours) and Profiles
* instead.
diff --git a/src/resources/browsers/index.ts b/src/resources/browsers/index.ts
index 178d54f..1f4ef2b 100644
--- a/src/resources/browsers/index.ts
+++ b/src/resources/browsers/index.ts
@@ -14,6 +14,7 @@ export {
type BrowserListParams,
type BrowserDeleteParams,
type BrowserLoadExtensionsParams,
+ type ProfilesOffsetPagination,
type BrowserListResponsesOffsetPagination,
} from './browsers';
export {
diff --git a/src/resources/index.ts b/src/resources/index.ts
index da81cec..dcf5550 100644
--- a/src/resources/index.ts
+++ b/src/resources/index.ts
@@ -33,6 +33,7 @@ export {
type BrowserListParams,
type BrowserDeleteParams,
type BrowserLoadExtensionsParams,
+ type ProfilesOffsetPagination,
type BrowserListResponsesOffsetPagination,
} from './browsers/browsers';
export {
@@ -92,7 +93,7 @@ export {
type InvocationFollowParams,
type InvocationListResponsesOffsetPagination,
} from './invocations';
-export { Profiles, type ProfileListResponse, type ProfileCreateParams } from './profiles';
+export { Profiles, type ProfileCreateParams, type ProfileListParams } from './profiles';
export {
Proxies,
type ProxyCreateResponse,
diff --git a/src/resources/profiles.ts b/src/resources/profiles.ts
index 774f764..2a3c613 100644
--- a/src/resources/profiles.ts
+++ b/src/resources/profiles.ts
@@ -2,7 +2,9 @@
import { APIResource } from '../core/resource';
import * as BrowsersAPI from './browsers/browsers';
+import { ProfilesOffsetPagination } from './browsers/browsers';
import { APIPromise } from '../core/api-promise';
+import { OffsetPagination, type OffsetPaginationParams, PagePromise } from '../core/pagination';
import { buildHeaders } from '../internal/headers';
import { RequestOptions } from '../internal/request-options';
import { path } from '../internal/utils/path';
@@ -26,8 +28,11 @@ export class Profiles extends APIResource {
/**
* List profiles with optional filtering and pagination.
*/
- list(options?: RequestOptions): APIPromise {
- return this._client.get('/profiles', options);
+ list(
+ query: ProfileListParams | null | undefined = {},
+ options?: RequestOptions,
+ ): PagePromise {
+ return this._client.getAPIList('/profiles', OffsetPagination, { query, ...options });
}
/**
@@ -53,8 +58,6 @@ export class Profiles extends APIResource {
}
}
-export type ProfileListResponse = Array;
-
export interface ProfileCreateParams {
/**
* Optional name of the profile. Must be unique within the organization.
@@ -62,6 +65,15 @@ export interface ProfileCreateParams {
name?: string;
}
+export interface ProfileListParams extends OffsetPaginationParams {
+ /**
+ * Search profiles by name or ID.
+ */
+ query?: string;
+}
+
export declare namespace Profiles {
- export { type ProfileListResponse as ProfileListResponse, type ProfileCreateParams as ProfileCreateParams };
+ export { type ProfileCreateParams as ProfileCreateParams, type ProfileListParams as ProfileListParams };
}
+
+export { type ProfilesOffsetPagination };
diff --git a/src/version.ts b/src/version.ts
index 918ad99..16bacf6 100644
--- a/src/version.ts
+++ b/src/version.ts
@@ -1 +1 @@
-export const VERSION = '0.36.1'; // x-release-please-version
+export const VERSION = '0.37.0'; // x-release-please-version
diff --git a/tests/api-resources/profiles.test.ts b/tests/api-resources/profiles.test.ts
index 3fd4209..0bbb557 100644
--- a/tests/api-resources/profiles.test.ts
+++ b/tests/api-resources/profiles.test.ts
@@ -44,6 +44,21 @@ describe('resource profiles', () => {
expect(dataAndResponse.response).toBe(rawResponse);
});
+ // Mock server tests are disabled
+ test.skip('list: request options and params are passed correctly', async () => {
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
+ await expect(
+ client.profiles.list(
+ {
+ limit: 1,
+ offset: 0,
+ query: 'query',
+ },
+ { path: '/_stainless_unknown_path' },
+ ),
+ ).rejects.toThrow(Kernel.NotFoundError);
+ });
+
// Mock server tests are disabled
test.skip('delete', async () => {
const responsePromise = client.profiles.delete('id_or_name');