From 8380eb6cef2c8229bee4e263bcd0637f9fcb1480 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 20 Dec 2025 00:26:36 +0000 Subject: [PATCH 1/2] feat: Enhance AuthAgentInvocation with step and last activity tracking --- .stats.yml | 4 ++-- src/resources/agents/auth/auth.ts | 11 ++++++++--- src/resources/agents/auth/invocations.ts | 9 +++++---- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.stats.yml b/.stats.yml index 99bb6c4..91fb407 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 89 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-13214b99e392aab631aa1ca99b6a51a58df81e34156d21b8d639bea779566123.yml -openapi_spec_hash: a88d175fc3980de3097ac1411d8dcbff +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-2cf104c4b88159c6a50713b019188f83983748b9cacec598089cf9068dc5b1cd.yml +openapi_spec_hash: 84ea30ae65ad7ebcc04d2f3907d1e73b config_hash: 179f33af31ece83563163d5b3d751d13 diff --git a/src/resources/agents/auth/auth.ts b/src/resources/agents/auth/auth.ts index 636daba..4478e6b 100644 --- a/src/resources/agents/auth/auth.ts +++ b/src/resources/agents/auth/auth.ts @@ -161,6 +161,11 @@ export interface AgentAuthInvocationResponse { */ status: 'IN_PROGRESS' | 'SUCCESS' | 'EXPIRED' | 'CANCELED'; + /** + * Current step in the invocation workflow + */ + step: 'initialized' | 'discovering' | 'awaiting_input' | 'submitting' | 'completed' | 'expired'; + /** * Target domain for authentication */ @@ -337,7 +342,7 @@ export namespace AuthAgentInvocationCreateResponse { /** * Indicates the agent is already authenticated and no invocation was created. */ - status: 'already_authenticated'; + status: 'ALREADY_AUTHENTICATED'; } /** @@ -367,7 +372,7 @@ export namespace AuthAgentInvocationCreateResponse { /** * Indicates an invocation was created. */ - status: 'invocation_created'; + status: 'INVOCATION_CREATED'; } } @@ -413,7 +418,7 @@ export interface ReauthResponse { /** * Result of the re-authentication attempt */ - status: 'reauth_started' | 'already_authenticated' | 'cannot_reauth'; + status: 'REAUTH_STARTED' | 'ALREADY_AUTHENTICATED' | 'CANNOT_REAUTH'; /** * ID of the re-auth invocation if one was created diff --git a/src/resources/agents/auth/invocations.ts b/src/resources/agents/auth/invocations.ts index 84e9cf7..3178106 100644 --- a/src/resources/agents/auth/invocations.ts +++ b/src/resources/agents/auth/invocations.ts @@ -28,8 +28,8 @@ export class Invocations extends APIResource { } /** - * Returns invocation details including app_name and target_domain. Uses the JWT - * returned by the exchange endpoint, or standard API key or JWT authentication. + * Returns invocation details including status, app_name, and target_domain. + * Supports both API key and JWT (from exchange endpoint) authentication. * * @example * ```ts @@ -46,7 +46,7 @@ export class Invocations extends APIResource { /** * Inspects the target site to detect logged-in state or discover required fields. * Returns 200 with success: true when fields are found, or 4xx/5xx for failures. - * Requires the JWT returned by the exchange endpoint. + * Supports both API key and JWT (from exchange endpoint) authentication. * * @example * ```ts @@ -87,7 +87,8 @@ export class Invocations extends APIResource { /** * Submits field values for the discovered login form and may return additional - * auth fields or success. Requires the JWT returned by the exchange endpoint. + * auth fields or success. Supports both API key and JWT (from exchange endpoint) + * authentication. * * @example * ```ts From 1d97cca0d46dbfacd159939766f116f60985ffe2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 20 Dec 2025 00:26:52 +0000 Subject: [PATCH 2/2] release: 0.25.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index fc5553b..945fbaf 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.24.0" + ".": "0.25.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 10efd02..dc4a5b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.25.0 (2025-12-20) + +Full Changelog: [v0.24.0...v0.25.0](https://github.com/onkernel/kernel-node-sdk/compare/v0.24.0...v0.25.0) + +### Features + +* Enhance AuthAgentInvocation with step and last activity tracking ([8380eb6](https://github.com/onkernel/kernel-node-sdk/commit/8380eb6cef2c8229bee4e263bcd0637f9fcb1480)) + ## 0.24.0 (2025-12-17) Full Changelog: [v0.23.0...v0.24.0](https://github.com/onkernel/kernel-node-sdk/compare/v0.23.0...v0.24.0) diff --git a/package.json b/package.json index ce072cc..7443df6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@onkernel/sdk", - "version": "0.24.0", + "version": "0.25.0", "description": "The official TypeScript library for the Kernel API", "author": "Kernel <>", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 7434729..4931d4f 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.24.0'; // x-release-please-version +export const VERSION = '0.25.0'; // x-release-please-version