Skip to content

Latest commit

 

History

History
476 lines (353 loc) · 25 KB

File metadata and controls

476 lines (353 loc) · 25 KB

Shared Types

from courier.types import (
    AirshipProfile,
    AirshipProfileAudience,
    Alignment,
    AudienceFilter,
    AudienceFilterConfig,
    AudienceRecipient,
    ChannelClassification,
    ChannelPreference,
    DeviceType,
    Discord,
    ElementalActionNodeWithType,
    ElementalBaseNode,
    ElementalChannelNode,
    ElementalChannelNodeWithType,
    ElementalContent,
    ElementalContentSugar,
    ElementalDividerNodeWithType,
    ElementalImageNodeWithType,
    ElementalMetaNodeWithType,
    ElementalNode,
    ElementalQuoteNodeWithType,
    ElementalTextNodeWithType,
    Expo,
    FilterConfig,
    Intercom,
    IntercomRecipient,
    ListFilter,
    ListPatternRecipient,
    ListRecipient,
    MessageContext,
    MessageRouting,
    MessageRoutingChannel,
    MsTeams,
    MsTeamsBaseProperties,
    MsTeamsRecipient,
    MultipleTokens,
    NotificationPreferenceDetails,
    Pagerduty,
    PagerdutyRecipient,
    Paging,
    Preference,
    PreferenceStatus,
    RecipientPreferences,
    Rule,
    SendDirectMessage,
    SendToChannel,
    SendToMsTeamsChannelID,
    SendToMsTeamsChannelName,
    SendToMsTeamsConversationID,
    SendToMsTeamsEmail,
    SendToMsTeamsUserID,
    SendToSlackChannel,
    SendToSlackEmail,
    SendToSlackUserID,
    Slack,
    SlackBaseProperties,
    SlackRecipient,
    TextStyle,
    Token,
    UserProfile,
    UserProfileFirebaseToken,
    UserRecipient,
    Utm,
    WebhookAuthMode,
    WebhookAuthentication,
    WebhookMethod,
    WebhookProfile,
    WebhookProfileType,
    WebhookRecipient,
)

Send

Types:

from courier.types import SendMessageResponse

Methods:

Audiences

Types:

from courier.types import (
    Audience,
    AudienceUpdateResponse,
    AudienceListResponse,
    AudienceListMembersResponse,
)

Methods:

AuditEvents

Types:

from courier.types import AuditEvent, AuditEventListResponse

Methods:

Auth

Types:

from courier.types import AuthIssueTokenResponse

Methods:

Automations

Types:

from courier.types import (
    AutomationInvokeResponse,
    AutomationTemplate,
    AutomationTemplateListResponse,
)

Methods:

Invoke

Methods:

Brands

Types:

from courier.types import (
    Brand,
    BrandColors,
    BrandSettings,
    BrandSettingsEmail,
    BrandSettingsInApp,
    BrandSnippet,
    BrandSnippets,
    BrandTemplate,
    EmailFooter,
    EmailHead,
    EmailHeader,
    Icons,
    Logo,
    WidgetBackground,
    BrandListResponse,
)

Methods:

Bulk

Types:

from courier.types import (
    InboundBulkMessage,
    InboundBulkMessageUser,
    BulkCreateJobResponse,
    BulkListUsersResponse,
    BulkRetrieveJobResponse,
)

Methods:

Inbound

Types:

from courier.types import InboundTrackEventResponse

Methods:

Lists

Types:

from courier.types import PutSubscriptionsRecipient, SubscriptionList, ListListResponse

Methods:

Subscriptions

Types:

from courier.types.lists import SubscriptionListResponse

Methods:

Messages

Types:

from courier.types import (
    MessageDetails,
    MessageRetrieveResponse,
    MessageListResponse,
    MessageContentResponse,
    MessageHistoryResponse,
)

Methods:

Requests

Methods:

  • client.requests.archive(request_id) -> None

Notifications

Types:

from courier.types import BaseCheck, Check, NotificationGetContent, NotificationListResponse

Methods:

Draft

Methods:

Checks

Types:

from courier.types.notifications import CheckUpdateResponse, CheckListResponse

Methods:

Profiles

Types:

from courier.types import (
    SubscribeToListsRequestItem,
    ProfileCreateResponse,
    ProfileRetrieveResponse,
    ProfileReplaceResponse,
)

Methods:

Lists

Types:

from courier.types.profiles import ListRetrieveResponse, ListDeleteResponse, ListSubscribeResponse

Methods:

Tenants

Types:

from courier.types import (
    BaseTemplateTenantAssociation,
    DefaultPreferences,
    PostTenantTemplatePublishRequest,
    PostTenantTemplatePublishResponse,
    PutTenantTemplateRequest,
    PutTenantTemplateResponse,
    SubscriptionTopicNew,
    Tenant,
    TenantAssociation,
    TenantTemplateInput,
    TenantListResponse,
    TenantListUsersResponse,
)

Methods:

Preferences

Items

Methods:

  • client.tenants.preferences.items.update(topic_id, *, tenant_id, **params) -> None
  • client.tenants.preferences.items.delete(topic_id, *, tenant_id) -> None

Templates

Types:

from courier.types.tenants import TemplateListResponse

Methods:

Versions

Methods:

Translations

Types:

from courier.types import TranslationRetrieveResponse

Methods:

  • client.translations.retrieve(locale, *, domain) -> str
  • client.translations.update(locale, *, domain, **params) -> None

Users

Preferences

Types:

from courier.types.users import (
    TopicPreference,
    PreferenceRetrieveResponse,
    PreferenceRetrieveTopicResponse,
    PreferenceUpdateOrCreateTopicResponse,
)

Methods:

Tenants

Types:

from courier.types.users import TenantListResponse

Methods:

Tokens

Types:

from courier.types.users import UserToken, TokenRetrieveResponse, TokenListResponse

Methods: