@kya-brasil/agent-tools 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +4 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -185,7 +185,8 @@ export interface KyaClient {
185
185
  }): Promise<Registration>;
186
186
  /** Free: send both signatures; the credential is issued if the e-CNPJ is valid and not revoked, the CNPJ matches and the company is ATIVA. */
187
187
  prove(credentialId: string, proof: Proof): Promise<{
188
- credential: Credential; /** /v1 compatibility, always empty. */
188
+ credential: Credential; /** D-24: e.g. registration status not confirmed (issued anyway). */
189
+ warnings?: string[]; /** /v1 compatibility, same as warnings. */
189
190
  kyb_warnings: string[];
190
191
  }>;
191
192
  /** $0.10: renewal challenge (then renewProve). */
@@ -198,7 +199,8 @@ export interface KyaClient {
198
199
  };
199
200
  }>;
200
201
  renewProve(credentialId: string, proof: Proof): Promise<{
201
- credential: Credential; /** /v1 compatibility, always empty. */
202
+ credential: Credential; /** D-24: e.g. registration status not confirmed (issued anyway). */
203
+ warnings?: string[]; /** /v1 compatibility, same as warnings. */
202
204
  kyb_warnings: string[];
203
205
  }>;
204
206
  /** Free: the company revokes at once. signed_text must be "KYA Brasil: revoke <id>\n<nonce>", signed with the e-CNPJ. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-brasil/agent-tools",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "KYA Brasil for AI agents: verify that an agent acts for a Brazilian company (e-CNPJ-signed credential, revocation and company registration checked daily against the Receita's open data, no third-party service), check an action against its mandate, or give your own agent a credential. Sign in with KYA middleware (Hono, Express, Workers) and request signing. x402 payments (USDC on Base) handled for you. Adapters for Vercel AI SDK, LangChain, OpenAI and Anthropic.",
5
5
  "license": "MIT",
6
6
  "type": "module",