/**
 * Generated by orval 🍺
 * Do not edit manually.
 * messages API
 * This is the messages API schema.
 * OpenAPI spec version: 1.0.0 (v1.0)
 */
import type { ScopeLevelEnum } from "./scope_level_enum";

/**
 * Serialize Channel model.
 */
export interface Channel {
  /** primary key for the record as UUID */
  readonly id: string;
  /**
   * Human-readable name for this channel
   * @maxLength 255
   */
  name: string;
  /**
   * Type of channel
   * @maxLength 255
   */
  type: string;
  readonly scope_level: ScopeLevelEnum;
  /** Channel-specific configuration settings */
  settings?: unknown;
  /**
   * primary key for the record as UUID
   * @nullable
   */
  readonly mailbox: string | null;
  /**
   * primary key for the record as UUID
   * @nullable
   */
  readonly maildomain: string | null;
  /**
   * primary key for the record as UUID
   * @nullable
   */
  readonly user: string | null;
  /** @nullable */
  readonly last_used_at: string | null;
  /** date and time at which a record was created */
  readonly created_at: string;
  /** date and time at which a record was last updated */
  readonly updated_at: string;
}
