/** @module API/InitResp */

import {BaseApiEnvelope, Options, Balance, Flow, BaseFeatures, Outcome, FreeRounds} from "./common";

/**
 * Init response envelope.
 * Some backends may also include features/outcome(s) if a round is in progress.
 * @category Responses
 */
export interface InitResp extends BaseApiEnvelope {
  /** Game configuration/options. */
  options: Options;
  /** Balance information. */
  balance: Balance;
  /** Flow context. */
  flow: Flow;
  /** Optional feature state (evolves during bonus rounds). */
  features?: BaseFeatures;
  /** Optional single outcome if applicable. */
  outcome?: Outcome;
  /** Optional list of outcomes (some games batch them). */
  outcomes?: Outcome[];
  /** Casino free rounds info, if awarded by integration. */
  free_rounds?: FreeRounds;
}

