Skip to main content

Variable: TokensChartResponseSchema

const TokensChartResponseSchema: ZodObject<{
success: ZodBoolean;
data: ZodObject<{
isQuotaExceeded: ZodBoolean;
records: ZodArray<ZodObject<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<ZodNumber>;
llm_response_units: ZodOptional<ZodNumber>;
mcp_request_units: ZodOptional<ZodNumber>;
mcp_response_units: ZodOptional<ZodNumber>;
a2a_request_units: ZodOptional<ZodNumber>;
a2a_response_units: ZodOptional<ZodNumber>;
avg: ZodNumber;
}, "passthrough", ZodTypeAny, objectOutputType<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<ZodNumber>;
llm_response_units: ZodOptional<ZodNumber>;
mcp_request_units: ZodOptional<ZodNumber>;
mcp_response_units: ZodOptional<ZodNumber>;
a2a_request_units: ZodOptional<ZodNumber>;
a2a_response_units: ZodOptional<ZodNumber>;
avg: ZodNumber;
}, ZodTypeAny, "passthrough">, objectInputType<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<ZodNumber>;
llm_response_units: ZodOptional<ZodNumber>;
mcp_request_units: ZodOptional<ZodNumber>;
mcp_response_units: ZodOptional<ZodNumber>;
a2a_request_units: ZodOptional<ZodNumber>;
a2a_response_units: ZodOptional<ZodNumber>;
avg: ZodNumber;
}, ZodTypeAny, "passthrough">>, "many">;
total: ZodNumber;
avg: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
total_llm_request_units: ZodOptional<ZodNumber>;
total_llm_response_units: ZodOptional<ZodNumber>;
total_mcp_request_units: ZodOptional<ZodNumber>;
total_mcp_response_units: ZodOptional<ZodNumber>;
total_a2a_request_units: ZodOptional<ZodNumber>;
total_a2a_response_units: ZodOptional<ZodNumber>;
}, "passthrough", ZodTypeAny, objectOutputType<{
isQuotaExceeded: ZodBoolean;
records: ZodArray<ZodObject<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<ZodNumber>;
llm_response_units: ZodOptional<ZodNumber>;
mcp_request_units: ZodOptional<ZodNumber>;
mcp_response_units: ZodOptional<ZodNumber>;
a2a_request_units: ZodOptional<ZodNumber>;
a2a_response_units: ZodOptional<ZodNumber>;
avg: ZodNumber;
}, "passthrough", ZodTypeAny, objectOutputType<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<ZodNumber>;
llm_response_units: ZodOptional<ZodNumber>;
mcp_request_units: ZodOptional<ZodNumber>;
mcp_response_units: ZodOptional<ZodNumber>;
a2a_request_units: ZodOptional<ZodNumber>;
a2a_response_units: ZodOptional<ZodNumber>;
avg: ZodNumber;
}, ZodTypeAny, "passthrough">, objectInputType<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<ZodNumber>;
llm_response_units: ZodOptional<ZodNumber>;
mcp_request_units: ZodOptional<ZodNumber>;
mcp_response_units: ZodOptional<ZodNumber>;
a2a_request_units: ZodOptional<ZodNumber>;
a2a_response_units: ZodOptional<ZodNumber>;
avg: ZodNumber;
}, ZodTypeAny, "passthrough">>, "many">;
total: ZodNumber;
avg: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
total_llm_request_units: ZodOptional<ZodNumber>;
total_llm_response_units: ZodOptional<ZodNumber>;
total_mcp_request_units: ZodOptional<ZodNumber>;
total_mcp_response_units: ZodOptional<ZodNumber>;
total_a2a_request_units: ZodOptional<ZodNumber>;
total_a2a_response_units: ZodOptional<ZodNumber>;
}, ZodTypeAny, "passthrough">, objectInputType<{
isQuotaExceeded: ZodBoolean;
records: ZodArray<ZodObject<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<ZodNumber>;
llm_response_units: ZodOptional<ZodNumber>;
mcp_request_units: ZodOptional<ZodNumber>;
mcp_response_units: ZodOptional<ZodNumber>;
a2a_request_units: ZodOptional<ZodNumber>;
a2a_response_units: ZodOptional<ZodNumber>;
avg: ZodNumber;
}, "passthrough", ZodTypeAny, objectOutputType<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<ZodNumber>;
llm_response_units: ZodOptional<ZodNumber>;
mcp_request_units: ZodOptional<ZodNumber>;
mcp_response_units: ZodOptional<ZodNumber>;
a2a_request_units: ZodOptional<ZodNumber>;
a2a_response_units: ZodOptional<ZodNumber>;
avg: ZodNumber;
}, ZodTypeAny, "passthrough">, objectInputType<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<ZodNumber>;
llm_response_units: ZodOptional<ZodNumber>;
mcp_request_units: ZodOptional<ZodNumber>;
mcp_response_units: ZodOptional<ZodNumber>;
a2a_request_units: ZodOptional<ZodNumber>;
a2a_response_units: ZodOptional<ZodNumber>;
avg: ZodNumber;
}, ZodTypeAny, "passthrough">>, "many">;
total: ZodNumber;
avg: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
total_llm_request_units: ZodOptional<ZodNumber>;
total_llm_response_units: ZodOptional<ZodNumber>;
total_mcp_request_units: ZodOptional<ZodNumber>;
total_mcp_response_units: ZodOptional<ZodNumber>;
total_a2a_request_units: ZodOptional<ZodNumber>;
total_a2a_response_units: ZodOptional<ZodNumber>;
}, ZodTypeAny, "passthrough">>;
}, "passthrough", ZodTypeAny, objectOutputType<{
success: ZodBoolean;
data: ZodObject<{
isQuotaExceeded: ZodBoolean;
records: ZodArray<ZodObject<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<ZodNumber>;
llm_response_units: ZodOptional<ZodNumber>;
mcp_request_units: ZodOptional<ZodNumber>;
mcp_response_units: ZodOptional<ZodNumber>;
a2a_request_units: ZodOptional<ZodNumber>;
a2a_response_units: ZodOptional<ZodNumber>;
avg: ZodNumber;
}, "passthrough", ZodTypeAny, objectOutputType<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<ZodNumber>;
llm_response_units: ZodOptional<ZodNumber>;
mcp_request_units: ZodOptional<ZodNumber>;
mcp_response_units: ZodOptional<ZodNumber>;
a2a_request_units: ZodOptional<ZodNumber>;
a2a_response_units: ZodOptional<ZodNumber>;
avg: ZodNumber;
}, ZodTypeAny, "passthrough">, objectInputType<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<ZodNumber>;
llm_response_units: ZodOptional<ZodNumber>;
mcp_request_units: ZodOptional<ZodNumber>;
mcp_response_units: ZodOptional<ZodNumber>;
a2a_request_units: ZodOptional<ZodNumber>;
a2a_response_units: ZodOptional<ZodNumber>;
avg: ZodNumber;
}, ZodTypeAny, "passthrough">>, "many">;
total: ZodNumber;
avg: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
total_llm_request_units: ZodOptional<ZodNumber>;
total_llm_response_units: ZodOptional<ZodNumber>;
total_mcp_request_units: ZodOptional<ZodNumber>;
total_mcp_response_units: ZodOptional<ZodNumber>;
total_a2a_request_units: ZodOptional<ZodNumber>;
total_a2a_response_units: ZodOptional<ZodNumber>;
}, "passthrough", ZodTypeAny, objectOutputType<{
isQuotaExceeded: ZodBoolean;
records: ZodArray<ZodObject<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<ZodNumber>;
llm_response_units: ZodOptional<ZodNumber>;
mcp_request_units: ZodOptional<ZodNumber>;
mcp_response_units: ZodOptional<ZodNumber>;
a2a_request_units: ZodOptional<ZodNumber>;
a2a_response_units: ZodOptional<ZodNumber>;
avg: ZodNumber;
}, "passthrough", ZodTypeAny, objectOutputType<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<...>;
llm_response_units: ZodOptional<...>;
mcp_request_units: ZodOptional<...>;
mcp_response_units: ZodOptional<...>;
a2a_request_units: ZodOptional<...>;
a2a_response_units: ZodOptional<...>;
avg: ZodNumber;
}, ZodTypeAny, "passthrough">, objectInputType<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<...>;
llm_response_units: ZodOptional<...>;
mcp_request_units: ZodOptional<...>;
mcp_response_units: ZodOptional<...>;
a2a_request_units: ZodOptional<...>;
a2a_response_units: ZodOptional<...>;
avg: ZodNumber;
}, ZodTypeAny, "passthrough">>, "many">;
total: ZodNumber;
avg: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
total_llm_request_units: ZodOptional<ZodNumber>;
total_llm_response_units: ZodOptional<ZodNumber>;
total_mcp_request_units: ZodOptional<ZodNumber>;
total_mcp_response_units: ZodOptional<ZodNumber>;
total_a2a_request_units: ZodOptional<ZodNumber>;
total_a2a_response_units: ZodOptional<ZodNumber>;
}, ZodTypeAny, "passthrough">, objectInputType<{
isQuotaExceeded: ZodBoolean;
records: ZodArray<ZodObject<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<ZodNumber>;
llm_response_units: ZodOptional<ZodNumber>;
mcp_request_units: ZodOptional<ZodNumber>;
mcp_response_units: ZodOptional<ZodNumber>;
a2a_request_units: ZodOptional<ZodNumber>;
a2a_response_units: ZodOptional<ZodNumber>;
avg: ZodNumber;
}, "passthrough", ZodTypeAny, objectOutputType<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<...>;
llm_response_units: ZodOptional<...>;
mcp_request_units: ZodOptional<...>;
mcp_response_units: ZodOptional<...>;
a2a_request_units: ZodOptional<...>;
a2a_response_units: ZodOptional<...>;
avg: ZodNumber;
}, ZodTypeAny, "passthrough">, objectInputType<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<...>;
llm_response_units: ZodOptional<...>;
mcp_request_units: ZodOptional<...>;
mcp_response_units: ZodOptional<...>;
a2a_request_units: ZodOptional<...>;
a2a_response_units: ZodOptional<...>;
avg: ZodNumber;
}, ZodTypeAny, "passthrough">>, "many">;
total: ZodNumber;
avg: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
total_llm_request_units: ZodOptional<ZodNumber>;
total_llm_response_units: ZodOptional<ZodNumber>;
total_mcp_request_units: ZodOptional<ZodNumber>;
total_mcp_response_units: ZodOptional<ZodNumber>;
total_a2a_request_units: ZodOptional<ZodNumber>;
total_a2a_response_units: ZodOptional<ZodNumber>;
}, ZodTypeAny, "passthrough">>;
}, ZodTypeAny, "passthrough">, objectInputType<{
success: ZodBoolean;
data: ZodObject<{
isQuotaExceeded: ZodBoolean;
records: ZodArray<ZodObject<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<ZodNumber>;
llm_response_units: ZodOptional<ZodNumber>;
mcp_request_units: ZodOptional<ZodNumber>;
mcp_response_units: ZodOptional<ZodNumber>;
a2a_request_units: ZodOptional<ZodNumber>;
a2a_response_units: ZodOptional<ZodNumber>;
avg: ZodNumber;
}, "passthrough", ZodTypeAny, objectOutputType<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<ZodNumber>;
llm_response_units: ZodOptional<ZodNumber>;
mcp_request_units: ZodOptional<ZodNumber>;
mcp_response_units: ZodOptional<ZodNumber>;
a2a_request_units: ZodOptional<ZodNumber>;
a2a_response_units: ZodOptional<ZodNumber>;
avg: ZodNumber;
}, ZodTypeAny, "passthrough">, objectInputType<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<ZodNumber>;
llm_response_units: ZodOptional<ZodNumber>;
mcp_request_units: ZodOptional<ZodNumber>;
mcp_response_units: ZodOptional<ZodNumber>;
a2a_request_units: ZodOptional<ZodNumber>;
a2a_response_units: ZodOptional<ZodNumber>;
avg: ZodNumber;
}, ZodTypeAny, "passthrough">>, "many">;
total: ZodNumber;
avg: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
total_llm_request_units: ZodOptional<ZodNumber>;
total_llm_response_units: ZodOptional<ZodNumber>;
total_mcp_request_units: ZodOptional<ZodNumber>;
total_mcp_response_units: ZodOptional<ZodNumber>;
total_a2a_request_units: ZodOptional<ZodNumber>;
total_a2a_response_units: ZodOptional<ZodNumber>;
}, "passthrough", ZodTypeAny, objectOutputType<{
isQuotaExceeded: ZodBoolean;
records: ZodArray<ZodObject<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<ZodNumber>;
llm_response_units: ZodOptional<ZodNumber>;
mcp_request_units: ZodOptional<ZodNumber>;
mcp_response_units: ZodOptional<ZodNumber>;
a2a_request_units: ZodOptional<ZodNumber>;
a2a_response_units: ZodOptional<ZodNumber>;
avg: ZodNumber;
}, "passthrough", ZodTypeAny, objectOutputType<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<...>;
llm_response_units: ZodOptional<...>;
mcp_request_units: ZodOptional<...>;
mcp_response_units: ZodOptional<...>;
a2a_request_units: ZodOptional<...>;
a2a_response_units: ZodOptional<...>;
avg: ZodNumber;
}, ZodTypeAny, "passthrough">, objectInputType<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<...>;
llm_response_units: ZodOptional<...>;
mcp_request_units: ZodOptional<...>;
mcp_response_units: ZodOptional<...>;
a2a_request_units: ZodOptional<...>;
a2a_response_units: ZodOptional<...>;
avg: ZodNumber;
}, ZodTypeAny, "passthrough">>, "many">;
total: ZodNumber;
avg: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
total_llm_request_units: ZodOptional<ZodNumber>;
total_llm_response_units: ZodOptional<ZodNumber>;
total_mcp_request_units: ZodOptional<ZodNumber>;
total_mcp_response_units: ZodOptional<ZodNumber>;
total_a2a_request_units: ZodOptional<ZodNumber>;
total_a2a_response_units: ZodOptional<ZodNumber>;
}, ZodTypeAny, "passthrough">, objectInputType<{
isQuotaExceeded: ZodBoolean;
records: ZodArray<ZodObject<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<ZodNumber>;
llm_response_units: ZodOptional<ZodNumber>;
mcp_request_units: ZodOptional<ZodNumber>;
mcp_response_units: ZodOptional<ZodNumber>;
a2a_request_units: ZodOptional<ZodNumber>;
a2a_response_units: ZodOptional<ZodNumber>;
avg: ZodNumber;
}, "passthrough", ZodTypeAny, objectOutputType<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<...>;
llm_response_units: ZodOptional<...>;
mcp_request_units: ZodOptional<...>;
mcp_response_units: ZodOptional<...>;
a2a_request_units: ZodOptional<...>;
a2a_response_units: ZodOptional<...>;
avg: ZodNumber;
}, ZodTypeAny, "passthrough">, objectInputType<{
x: ZodString;
y: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
llm_request_units: ZodOptional<...>;
llm_response_units: ZodOptional<...>;
mcp_request_units: ZodOptional<...>;
mcp_response_units: ZodOptional<...>;
a2a_request_units: ZodOptional<...>;
a2a_response_units: ZodOptional<...>;
avg: ZodNumber;
}, ZodTypeAny, "passthrough">>, "many">;
total: ZodNumber;
avg: ZodNumber;
total_request_units: ZodNumber;
total_response_units: ZodNumber;
total_llm_request_units: ZodOptional<ZodNumber>;
total_llm_response_units: ZodOptional<ZodNumber>;
total_mcp_request_units: ZodOptional<ZodNumber>;
total_mcp_response_units: ZodOptional<ZodNumber>;
total_a2a_request_units: ZodOptional<ZodNumber>;
total_a2a_response_units: ZodOptional<ZodNumber>;
}, ZodTypeAny, "passthrough">>;
}, ZodTypeAny, "passthrough">>;

Defined in: src/models/ai-gateway.ts:189

logs/charts/tokens. Request/response unit splits appear at both levels.