# This file was auto-generated by Fern from our API Definition.

import typing_extensions
import typing_extensions
import typing
from .device_created_event_data import DeviceCreatedEventDataParams


class DeviceCreatedEventParams(typing_extensions.TypedDict):
    """
    Published when a Device is created.
    """

    merchant_id: typing_extensions.NotRequired[typing.Optional[str]]
    """
    The merchant the newly created device belongs to.
    """

    type: typing_extensions.NotRequired[typing.Optional[str]]
    """
    The type of event this represents. The value is `"device.created"`.
    """

    event_id: typing_extensions.NotRequired[typing.Optional[str]]
    """
    A UUID that uniquely identifies this device creation event.
    """

    created_at: typing_extensions.NotRequired[str]
    """
    The time when the device creation event was first created, in RFC 3339 format.
    """

    data: typing_extensions.NotRequired[DeviceCreatedEventDataParams]
    """
    The metadata associated with the device creation event.
    """
