/**
 * 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 { PlatformEnum } from "./platform_enum";
import type { WebPushKeysRequest } from "./web_push_keys_request";
import type { PushChannelCreateTypeEnum } from "./push_channel_create_type_enum";

/**
 * Schema variant of the push registration body for ``POST .../channels/``.

Identical to ``PushDeviceRegistrationSerializer`` plus the ``type``
discriminator, so the polymorphic create endpoint documents the push shape
({type:"push", platform, token, keys?, name?, app_version?}) alongside the
generic channel shape. Validation at runtime still uses the parent.
 */
export interface PushChannelCreateRequest {
  platform: PlatformEnum;
  /**
   * @minLength 1
   * @maxLength 8192
   */
  token: string;
  /** @maxLength 64 */
  app_version?: string;
  keys?: WebPushKeysRequest;
  /** @maxLength 255 */
  name?: string;
  type: PushChannelCreateTypeEnum;
}
