From 0b0e624ad8612f2f442175a4d1c5c2abcc747976 Mon Sep 17 00:00:00 2001 From: vvillait88 Date: Sat, 18 Apr 2026 07:03:43 -0700 Subject: [PATCH 1/2] Remove require_entity_type from DecisionPolicy, bump to v1.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Stripe Identity doesn't support KYB — the entity type policy field was non-functional. Removed from types and tests. Co-Authored-By: Claude Opus 4.6 (1M context) --- package.json | 6 +++--- src/types.ts | 1 - tests/index.test.ts | 2 -- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 639264e..721f511 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@agent-score/sdk", - "version": "1.5.0", + "version": "1.6.0", "description": "TypeScript client for the AgentScore trust and reputation API", "main": "./dist/index.cjs", "module": "./dist/index.js", @@ -50,10 +50,10 @@ "node": ">=18" }, "devDependencies": { - "@eslint/js": "9", + "@eslint/js": "^9.39.4", "@vitest/coverage-v8": "^4.1.4", "dotenv": "^17.4.2", - "eslint": "9", + "eslint": "^9.39.4", "eslint-plugin-import": "^2.32.0", "eslint-plugin-unused-imports": "^4.4.1", "tsup": "^8.5.1", diff --git a/src/types.ts b/src/types.ts index d5aea3b..efe1805 100644 --- a/src/types.ts +++ b/src/types.ts @@ -138,7 +138,6 @@ export interface DecisionPolicy { min_age?: number; blocked_jurisdictions?: string[]; allowed_jurisdictions?: string[]; - require_entity_type?: string; } export interface AssessRequest { diff --git a/tests/index.test.ts b/tests/index.test.ts index eb63565..fb75aff 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -466,7 +466,6 @@ describe('Verification and compliance fields', () => { require_sanctions_clear: true, min_age: 90, blocked_jurisdictions: ['KP', 'IR'], - require_entity_type: 'agent', }, }); const call = (global.fetch as ReturnType).mock.calls[0]; @@ -476,7 +475,6 @@ describe('Verification and compliance fields', () => { expect(policy.require_sanctions_clear).toBe(true); expect(policy.min_age).toBe(90); expect(policy.blocked_jurisdictions).toEqual(['KP', 'IR']); - expect(policy.require_entity_type).toBe('agent'); }); it('assess sends resolved_operator when present in response', async () => { From 47dc9c637488174d9c42b4599d30e6608c289945 Mon Sep 17 00:00:00 2001 From: vvillait88 Date: Sat, 18 Apr 2026 07:05:42 -0700 Subject: [PATCH 2/2] Update dependencies Co-Authored-By: Claude Opus 4.6 (1M context) --- bun.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bun.lock b/bun.lock index d90257e..ff79071 100644 --- a/bun.lock +++ b/bun.lock @@ -5,10 +5,10 @@ "": { "name": "@agentscore/sdk", "devDependencies": { - "@eslint/js": "9", + "@eslint/js": "^9.39.4", "@vitest/coverage-v8": "^4.1.4", "dotenv": "^17.4.2", - "eslint": "9", + "eslint": "^9.39.4", "eslint-plugin-import": "^2.32.0", "eslint-plugin-unused-imports": "^4.4.1", "tsup": "^8.5.1",