File tree Expand file tree Collapse file tree 3 files changed +15
-9
lines changed
src/resources/agents/auth Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 11configured_endpoints : 89
2- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-13214b99e392aab631aa1ca99b6a51a58df81e34156d21b8d639bea779566123 .yml
3- openapi_spec_hash : a88d175fc3980de3097ac1411d8dcbff
2+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-2cf104c4b88159c6a50713b019188f83983748b9cacec598089cf9068dc5b1cd .yml
3+ openapi_spec_hash : 84ea30ae65ad7ebcc04d2f3907d1e73b
44config_hash : 179f33af31ece83563163d5b3d751d13
Original file line number Diff line number Diff line change @@ -161,6 +161,11 @@ export interface AgentAuthInvocationResponse {
161161 */
162162 status : 'IN_PROGRESS' | 'SUCCESS' | 'EXPIRED' | 'CANCELED' ;
163163
164+ /**
165+ * Current step in the invocation workflow
166+ */
167+ step : 'initialized' | 'discovering' | 'awaiting_input' | 'submitting' | 'completed' | 'expired' ;
168+
164169 /**
165170 * Target domain for authentication
166171 */
@@ -337,7 +342,7 @@ export namespace AuthAgentInvocationCreateResponse {
337342 /**
338343 * Indicates the agent is already authenticated and no invocation was created.
339344 */
340- status : 'already_authenticated ' ;
345+ status : 'ALREADY_AUTHENTICATED ' ;
341346 }
342347
343348 /**
@@ -367,7 +372,7 @@ export namespace AuthAgentInvocationCreateResponse {
367372 /**
368373 * Indicates an invocation was created.
369374 */
370- status : 'invocation_created ' ;
375+ status : 'INVOCATION_CREATED ' ;
371376 }
372377}
373378
@@ -413,7 +418,7 @@ export interface ReauthResponse {
413418 /**
414419 * Result of the re-authentication attempt
415420 */
416- status : 'reauth_started ' | 'already_authenticated ' | 'cannot_reauth ' ;
421+ status : 'REAUTH_STARTED ' | 'ALREADY_AUTHENTICATED ' | 'CANNOT_REAUTH ' ;
417422
418423 /**
419424 * ID of the re-auth invocation if one was created
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ export class Invocations extends APIResource {
2828 }
2929
3030 /**
31- * Returns invocation details including app_name and target_domain. Uses the JWT
32- * returned by the exchange endpoint, or standard API key or JWT authentication.
31+ * Returns invocation details including status, app_name, and target_domain.
32+ * Supports both API key and JWT (from exchange endpoint) authentication.
3333 *
3434 * @example
3535 * ```ts
@@ -46,7 +46,7 @@ export class Invocations extends APIResource {
4646 /**
4747 * Inspects the target site to detect logged-in state or discover required fields.
4848 * Returns 200 with success: true when fields are found, or 4xx/5xx for failures.
49- * Requires the JWT returned by the exchange endpoint.
49+ * Supports both API key and JWT (from exchange endpoint) authentication .
5050 *
5151 * @example
5252 * ```ts
@@ -87,7 +87,8 @@ export class Invocations extends APIResource {
8787
8888 /**
8989 * Submits field values for the discovered login form and may return additional
90- * auth fields or success. Requires the JWT returned by the exchange endpoint.
90+ * auth fields or success. Supports both API key and JWT (from exchange endpoint)
91+ * authentication.
9192 *
9293 * @example
9394 * ```ts
You can’t perform that action at this time.
0 commit comments