"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from .capabilityid import CapabilityID
from .capabilitystatus import CapabilityStatus
from moovio_sdk.types import BaseModel
import pydantic
from typing import Optional
from typing_extensions import Annotated, NotRequired, TypedDict


class WebhookDataCapabilityUpdatedTypedDict(TypedDict):
    account_id: str
    capability_id: CapabilityID
    r"""Moov account capabilities.

    The `production-app` capability might appear in your list. This is a read-only capability that Moov requests and uses for account verification purposes. The capability remains active with your account and requires no additional action.
    """
    status: CapabilityStatus
    r"""The status of the capability requested for an account."""
    foreign_id: NotRequired[str]


class WebhookDataCapabilityUpdated(BaseModel):
    account_id: Annotated[str, pydantic.Field(alias="accountID")]

    capability_id: Annotated[CapabilityID, pydantic.Field(alias="capabilityID")]
    r"""Moov account capabilities.

    The `production-app` capability might appear in your list. This is a read-only capability that Moov requests and uses for account verification purposes. The capability remains active with your account and requires no additional action.
    """

    status: CapabilityStatus
    r"""The status of the capability requested for an account."""

    foreign_id: Annotated[Optional[str], pydantic.Field(alias="foreignID")] = None
