Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

1.2 KB
Raw Blame
/**
 * Generated by orval v7.21.0 🍺
 * Do not edit manually.
 * Document Cognition Service
 * OpenAPI spec version: 1.0.0
 */
import type { UsageAudioSeconds } from './usageAudioSeconds';
import type { UsagePrice } from './usagePrice';
import type { UsageProviderCredits } from './usageProviderCredits';

/**
 * Measured usage for one invocation.
 */
export interface Usage {
  /** Audio duration in seconds, absent for token and credit billing. */
  audio_seconds?: UsageAudioSeconds;
  /**
   * Input tokens read from a prompt cache; zero for audio and credit billing.
   * @minimum 0
   */
  cache_read_input_tokens: number;
  /**
   * Input tokens written to a prompt cache; zero for audio and credit billing.
   * @minimum 0
   */
  cache_write_input_tokens: number;
  /** Recording timestamp. */
  created_at: string;
  /**
   * Uncached input tokens; zero for audio and credit billing.
   * @minimum 0
   */
  input_tokens: number;
  /** Provider model identifier. */
  model: string;
  /**
   * Output tokens; zero for audio and credit billing.
   * @minimum 0
   */
  output_tokens: number;
  price?: UsagePrice;
  /**
   * Vendor credits consumed, absent for token and audio billing.
   * @minimum 0
   */
  provider_credits?: UsageProviderCredits;
}