@rodrigobeber/patoai-dtos 4.8.14 → 4.8.16

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.
@@ -3,4 +3,6 @@ export interface CompletionDto {
3
3
  content: string;
4
4
  tokensIn: number;
5
5
  tokensOut: number;
6
+ tokensCacheRead?: number | null;
7
+ tokensCacheWrite?: number | null;
6
8
  }
@@ -8,4 +8,6 @@ export interface ResponseDto {
8
8
  truncationReason: 'max_output_tokens' | 'content_filter' | null;
9
9
  tokensIn: number | null;
10
10
  tokensOut: number | null;
11
+ tokensCacheRead?: number | null;
12
+ tokensCacheWrite?: number | null;
11
13
  }
@@ -9,6 +9,7 @@ export interface AgentResponseBalanceDto {
9
9
  nrResponses: number;
10
10
  nrCredits: number;
11
11
  responsesPerCredit: number;
12
+ creditsPerPack?: number;
12
13
  canConsume: boolean;
13
14
  unlimited?: boolean;
14
15
  }
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  // Metering UNIFICADO dos agentes internos (support, sandbox, lab-chat, lab-analysis). Um único lastro:
3
3
  // o crédito de conversa. Cada agente tem um saldo prepago de "respostas" (billing.agent_response_balance);
4
- // quando zera, 1 crédito é convertido automaticamente em N respostas (taxa em billing.agent_rate, default
5
- // id_crew=0 + exceção por-crew). Ledger idempotente por turnKey (billing.agent_response_consumption).
4
+ // quando zera, um PACOTE é convertido automaticamente creditsPerPack créditos compram responsesPerCredit
5
+ // respostas (billing.agent_rate, default id_crew=0 + exceção por-crew). É o par que permite tanto o barato
6
+ // (1 crédito → 30 respostas de teste) quanto o caro (2 créditos → 1 análise profunda) com crédito inteiro.
7
+ // Ledger idempotente por turnKey (billing.agent_response_consumption).
6
8
  // Substitui getTestBalance/consumeTestResponse (sandbox) e getAgentLimit/consumeAgentUsage (cotas).
7
9
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,6 +4,7 @@ export interface SupportAgentBalanceDto {
4
4
  unlimited: boolean;
5
5
  remainingResponses?: number;
6
6
  responsesPerCredit?: number;
7
+ creditsPerPack?: number;
7
8
  credits?: number;
8
9
  creditsAvailable?: boolean;
9
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "4.8.14",
3
+ "version": "4.8.16",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",