From 8cc4dc1999a634287c2388515a6eb94a471e8092 Mon Sep 17 00:00:00 2001 From: vvillait88 Date: Wed, 22 Apr 2026 11:30:31 -0700 Subject: [PATCH] =?UTF-8?q?feat:=20v1.8.0=20=E2=80=94=20SessionPollNextSte?= =?UTF-8?q?ps=20support=5Femail=20+=20support=5Fsubject?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Extend SessionPollNextSteps with optional support_email and support_subject fields, populated by the API when a session hits status=flagged (sanctions match) with action=contact_support. Additive only; backwards compatible. Co-Authored-By: Claude Opus 4.7 (1M context) --- README.md | 4 ++-- package.json | 2 +- src/types.ts | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 487fdb8..35815b0 100644 --- a/README.md +++ b/README.md @@ -62,9 +62,9 @@ console.log(result.decision); // "allow" | "deny" Bootstrap identity for first-time agents: ```typescript -// Create a session — returns a URL for the user to verify +// Create a session — returns a verify_url for the user and a poll_url for the agent const session = await client.createSession(); -console.log(session.verify_url, session.poll_secret); +console.log(session.verify_url, session.poll_url, session.poll_secret); // Poll until the user completes verification const status = await client.pollSession(session.session_id, session.poll_secret); diff --git a/package.json b/package.json index 683d79b..2b9335b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@agent-score/sdk", - "version": "1.7.0", + "version": "1.8.0", "description": "TypeScript client for the AgentScore trust and reputation API", "main": "./dist/index.cjs", "module": "./dist/index.js", diff --git a/src/types.ts b/src/types.ts index f41c170..b3b6e67 100644 --- a/src/types.ts +++ b/src/types.ts @@ -215,6 +215,10 @@ export interface SessionPollNextSteps { header_name?: string; poll_interval_seconds?: number; eta_message?: string; + /** Present when `action === 'contact_support'` (e.g. sanctions `flagged` status). */ + support_email?: string; + /** Suggested subject line for the support email. */ + support_subject?: string; } export interface SessionPollResponse {