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

from __future__ import annotations
from enum import Enum
from ragie.types import BaseModel
from typing_extensions import TypedDict


class Provider(str, Enum):
    ATLASSIAN = "atlassian"
    DROPBOX = "dropbox"
    GOOGLE = "google"
    MICROSOFT = "microsoft"
    SALESFORCE = "salesforce"
    SLACK = "slack"
    HUBSPOT = "hubspot"


class OAuthCredentialsTypedDict(TypedDict):
    provider: Provider
    name: str
    r"""The unique name of your authenticator, used to identify it and distinguish it from others. This name must be unique. Attempting to reuse the same name will result in an error."""
    client_id: str
    client_secret: str


class OAuthCredentials(BaseModel):
    provider: Provider

    name: str
    r"""The unique name of your authenticator, used to identify it and distinguish it from others. This name must be unique. Attempting to reuse the same name will result in an error."""

    client_id: str

    client_secret: str
