From 83b455d71c6e99cea35fc9dc69da8cddc26da567 Mon Sep 17 00:00:00 2001 From: vvillait88 Date: Tue, 7 Apr 2026 11:10:04 -0700 Subject: [PATCH] fix: add policy_result type, EntityType variants, bump to v1.4.1 Co-Authored-By: Claude Opus 4.6 (1M context) --- package.json | 2 +- src/types.ts | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ddd499f..02db8bf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@agent-score/sdk", - "version": "1.4.0", + "version": "1.4.1", "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 6e00c7c..7f92ca8 100644 --- a/src/types.ts +++ b/src/types.ts @@ -5,7 +5,7 @@ export interface AgentScoreConfig { } export type Grade = 'A' | 'B' | 'C' | 'D' | 'F'; -export type EntityType = 'agent' | 'service' | 'hybrid' | 'wallet' | 'bot' | 'unknown'; +export type EntityType = 'agent' | 'service' | 'hybrid' | 'wallet' | 'bot' | 'unknown' | 'individual' | 'entity'; export type ReputationStatus = 'scored' | 'stale' | 'known_unscored'; export interface Subject { @@ -167,6 +167,15 @@ export interface AssessResponse { operator_verification?: OperatorVerification; resolved_operator?: string; verify_url?: string; + policy_result?: { + all_passed: boolean; + checks: Array<{ + rule: string; + passed: boolean; + required?: unknown; + actual?: unknown; + }>; + } | null; } export interface AgentScoreErrorBody {