Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 4 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading