@columenlabs/lumen-ui-types 0.1.246 → 0.1.247

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.
@@ -288,10 +288,12 @@ export type AssistantEvent = {
288
288
  };
289
289
  } | {
290
290
  event: 'step_start';
291
+ /** `write`: the tool makes a change at once (its group is on Read + write). */
291
292
  data: {
292
293
  id: string;
293
294
  tool: string;
294
295
  title: string;
296
+ write?: boolean;
295
297
  handoff?: boolean;
296
298
  };
297
299
  } | {
@@ -479,7 +481,16 @@ export interface SpendState {
479
481
  rows: (UsagePart & {
480
482
  payer: AssistantPayer;
481
483
  free?: true;
484
+ /** Of an own row: paid by an API key or a plan sign-in (a plan costs the person $0). */
485
+ way?: AssistantOwnWay;
486
+ /** The provider the row ran on, when the server could tell. */
487
+ provider?: AssistantProvider;
482
488
  })[];
489
+ /**
490
+ * USD of this month's own spend that counts toward the own cap: key calls on providers the
491
+ * person can still pay with; a plan sign-in's calls cost nothing. Left out by older servers.
492
+ */
493
+ own_used?: number;
483
494
  }
484
495
  /**
485
496
  * One line of a person's usage history: a chat, or a run of background work an app asked for
@@ -510,10 +521,7 @@ export interface UsageHistory {
510
521
  /** Months with any history, newest first (this month always). */
511
522
  months: string[];
512
523
  usd: number;
513
- rows: (UsagePart & {
514
- payer: AssistantPayer;
515
- free?: true;
516
- })[];
524
+ rows: SpendState['rows'];
517
525
  entries: UsageEntry[];
518
526
  }
519
527
  /** What an app's allowance on its shared keys is counted in: credits, or dollars. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@columenlabs/lumen-ui-types",
3
- "version": "0.1.246",
3
+ "version": "0.1.247",
4
4
  "description": "Lumen's view model: views, formulas, domains and joins, frames.",
5
5
  "license": "MIT",
6
6
  "type": "module",