@ingram-tech/ingram-cloud-sdk 0.1.0 → 0.1.1

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/package.json +1 -1
  2. package/ts/responses.ts +8 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ingram-tech/ingram-cloud-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "The Ingram Cloud /v1 API wire contract in TypeScript: Zod request/response schemas (generated from the OpenAPI spec), hand-authored SSE/webhook event types, and the JSON response types. The source of truth for the wire shapes.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/ts/responses.ts CHANGED
@@ -55,6 +55,13 @@ export interface ICToolCall {
55
55
  args: Record<string, unknown>;
56
56
  execution: string;
57
57
  }
58
+ /** One run's own token usage (the `usage` map on a run). Distinct from
59
+ * {@link ICUsage}, which is the tenant's aggregated *billing* summary. */
60
+ export interface ICRunUsage {
61
+ input_tokens: number;
62
+ output_tokens: number;
63
+ total_tokens: number;
64
+ }
58
65
  export interface ICRun {
59
66
  id: string;
60
67
  smith_id: string;
@@ -64,7 +71,7 @@ export interface ICRun {
64
71
  input: Array<{ role: string; content: string }>;
65
72
  output: { content?: string; tool_calls?: ICToolCall[] } | null;
66
73
  stop_reason: string | null;
67
- usage: Record<string, number> | null;
74
+ usage: ICRunUsage | null;
68
75
  metadata?: Record<string, unknown>;
69
76
  created_at: string | null;
70
77
  updated_at: string | null;