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 {