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
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": "2.1.0",
"version": "2.1.1",
"description": "TypeScript client for the AgentScore APIs",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand Down
6 changes: 3 additions & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ export type DenialCode =
| 'wallet_not_trusted'
| 'api_error'
| 'payment_required'
// Merchant-emitted convenience codes (e.g. martin-estate's onDenied wraps gate denials
// into wine-specific business codes). These are not emitted by the AgentScore API
// itself but appear in 4xx bodies the SDK may surface back to callers.
// Merchant-emitted convenience codes — not emitted by the AgentScore API itself,
// but they may appear in 4xx bodies that pass through the SDK from merchants whose
// gate `onDenied` hook wraps AgentScore denials into business-domain codes.
| 'operator_verification_required'
| 'compliance_denied'
| 'compliance_error'
Expand Down
5 changes: 3 additions & 2 deletions tests/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import { beforeAll, describe, expect, it } from 'vitest';
import { AgentScore } from '../src/index';

const API_KEY = process.env.AGENTSCORE_API_KEY;
const BASE_URL = process.env.AGENTSCORE_BASE_URL || 'http://api.dev.agentscore.internal';
const BASE_URL = process.env.AGENTSCORE_BASE_URL;
const TEST_ADDRESS = '0x339559a2d1cd15059365fc7bd36b3047bba480e0';

const describeIf = API_KEY ? describe : describe.skip;
// Both must be set for integration tests to run — no default to a private endpoint.
const describeIf = (API_KEY && BASE_URL) ? describe : describe.skip;

describeIf('integration: real API', { timeout: 15_000 }, () => {
let client: AgentScore;
Expand Down
Loading