Function renewTimedTextBudget

  • Reserves the next part once its slice boundary has passed. The host proves current wall-time allowance and team membership (allowed) and reserves through its native spend adapter (reserve); a renewal inside the current slice answers the current view without reserving again.

    Parameters

    • t: CreditTransaction
    • input: {
          scopeId: string;
          budgetId: string;
          at: number;
          cumulativeMicro: number;
          allowed: boolean;
      }
      • scopeId: string
      • budgetId: string
      • at: number
      • cumulativeMicro: number
      • allowed: boolean
    • reserve: ((micro, expiresAtMs) => Promise<string>)
        • (micro, expiresAtMs): Promise<string>
        • Parameters

          • micro: number
          • expiresAtMs: number

          Returns Promise<string>

    Returns Promise<TimedTextBudgetView>

    Throws

    When the allowance is refused, before the first boundary, after settlement, or when reserve answers an empty or already used reservation id.