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

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 +21 -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.2",
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
@@ -45,7 +45,12 @@ export interface ICMemory {
45
45
  category: string | null;
46
46
  subject: string | null;
47
47
  content: string;
48
+ /** Extraction confidence (0–1); null when not scored. */
49
+ confidence?: number | null;
48
50
  source: string | null;
51
+ /** Relevance score — only present on `/memories/search` hits. */
52
+ score?: number | null;
53
+ metadata?: Record<string, unknown> | null;
49
54
  created_at: string | null;
50
55
  updated_at: string | null;
51
56
  }
@@ -55,6 +60,13 @@ export interface ICToolCall {
55
60
  args: Record<string, unknown>;
56
61
  execution: string;
57
62
  }
63
+ /** One run's own token usage (the `usage` map on a run). Distinct from
64
+ * {@link ICUsage}, which is the tenant's aggregated *billing* summary. */
65
+ export interface ICRunUsage {
66
+ input_tokens: number;
67
+ output_tokens: number;
68
+ total_tokens: number;
69
+ }
58
70
  export interface ICRun {
59
71
  id: string;
60
72
  smith_id: string;
@@ -64,7 +76,7 @@ export interface ICRun {
64
76
  input: Array<{ role: string; content: string }>;
65
77
  output: { content?: string; tool_calls?: ICToolCall[] } | null;
66
78
  stop_reason: string | null;
67
- usage: Record<string, number> | null;
79
+ usage: ICRunUsage | null;
68
80
  metadata?: Record<string, unknown>;
69
81
  created_at: string | null;
70
82
  updated_at: string | null;
@@ -100,6 +112,14 @@ export interface ICSchedule {
100
112
  name: string | null;
101
113
  cron: string;
102
114
  timezone: string;
115
+ /** Messages replayed as the run input on each fire. */
116
+ input: Array<Record<string, unknown>>;
117
+ /** Thread the fired runs append to; null mints a fresh thread per fire. */
118
+ thread_id: string | null;
119
+ /** Max overlapping fired runs before new fires are skipped. */
120
+ max_concurrent: number;
121
+ /** What a failed fire does next (e.g. `continue`, `pause`). */
122
+ on_failure: string;
103
123
  enabled: boolean;
104
124
  next_fire_at: string | null;
105
125
  last_fire_at: string | null;