from knockapi.types import Condition, PageInfoTypes:
from knockapi.types import Recipient, RecipientReference, RecipientRequestTypes:
from knockapi.types.recipients import SubscriptionTypes:
from knockapi.types.recipients import (
InlinePreferenceSetRequest,
PreferenceSet,
PreferenceSetChannelSetting,
PreferenceSetChannelTypeSetting,
PreferenceSetChannelTypes,
PreferenceSetRequest,
)Types:
from knockapi.types.recipients import (
AwsSnsPushChannelDataDevicesOnly,
AwsSnsPushChannelDataTargetArnsOnly,
ChannelData,
ChannelDataRequest,
DiscordChannelData,
InlineChannelDataRequest,
MsTeamsChannelData,
OneSignalChannelDataPlayerIDsOnly,
PushChannelDataDevicesOnly,
PushChannelDataTokensOnly,
SlackChannelData,
)Types:
from knockapi.types import (
IdentifyUserRequest,
InlineIdentifyUserRequest,
User,
UserListPreferencesResponse,
)Methods:
client.users.update(user_id, **params) -> Userclient.users.list(**params) -> SyncEntriesCursor[User]client.users.delete(user_id) -> Noneclient.users.get(user_id) -> Userclient.users.get_channel_data(user_id, channel_id) -> ChannelDataclient.users.get_preferences(user_id, id, **params) -> PreferenceSetclient.users.list_messages(user_id, **params) -> SyncItemsCursor[Message]client.users.list_preferences(user_id) -> UserListPreferencesResponseclient.users.list_schedules(user_id, **params) -> SyncEntriesCursor[Schedule]client.users.list_subscriptions(user_id, **params) -> SyncEntriesCursor[Subscription]client.users.merge(user_id, **params) -> Userclient.users.set_channel_data(user_id, channel_id, **params) -> ChannelDataclient.users.set_preferences(user_id, id, **params) -> PreferenceSetclient.users.unset_channel_data(user_id, channel_id) -> None
Types:
from knockapi.types.users import FeedGetSettingsResponse, FeedListItemsResponseMethods:
client.users.feeds.get_settings(user_id, id) -> FeedGetSettingsResponseclient.users.feeds.list_items(user_id, id, **params) -> SyncEntriesCursor[FeedListItemsResponse]
Types:
from knockapi.types.users import (
GuideGetChannelResponse,
GuideMarkMessageAsArchivedResponse,
GuideMarkMessageAsInteractedResponse,
GuideMarkMessageAsSeenResponse,
)Methods:
client.users.guides.get_channel(user_id, channel_id, **params) -> GuideGetChannelResponseclient.users.guides.mark_message_as_archived(user_id, message_id, **params) -> GuideMarkMessageAsArchivedResponseclient.users.guides.mark_message_as_interacted(user_id, message_id, **params) -> GuideMarkMessageAsInteractedResponseclient.users.guides.mark_message_as_seen(user_id, message_id, **params) -> GuideMarkMessageAsSeenResponse
Methods:
client.users.bulk.delete(**params) -> BulkOperationclient.users.bulk.identify(**params) -> BulkOperationclient.users.bulk.set_preferences(**params) -> BulkOperation
Types:
from knockapi.types import (
InlineObjectRequest,
Object,
ObjectAddSubscriptionsResponse,
ObjectDeleteSubscriptionsResponse,
ObjectListPreferencesResponse,
)Methods:
client.objects.list(collection, **params) -> SyncEntriesCursor[Object]client.objects.delete(collection, id) -> Noneclient.objects.add_subscriptions(collection, object_id, **params) -> ObjectAddSubscriptionsResponseclient.objects.delete_subscriptions(collection, object_id, **params) -> ObjectDeleteSubscriptionsResponseclient.objects.get(collection, id) -> Objectclient.objects.get_channel_data(collection, object_id, channel_id) -> ChannelDataclient.objects.get_preferences(collection, object_id, id) -> PreferenceSetclient.objects.list_messages(collection, id, **params) -> SyncItemsCursor[Message]client.objects.list_preferences(collection, object_id) -> ObjectListPreferencesResponseclient.objects.list_schedules(collection, id, **params) -> SyncEntriesCursor[Schedule]client.objects.list_subscriptions(collection, object_id, **params) -> SyncEntriesCursor[Subscription]client.objects.set(collection, id, **params) -> Objectclient.objects.set_channel_data(collection, object_id, channel_id, **params) -> ChannelDataclient.objects.set_preferences(collection, object_id, id, **params) -> PreferenceSetclient.objects.unset_channel_data(collection, object_id, channel_id) -> None
Methods:
client.objects.bulk.delete(collection, **params) -> BulkOperationclient.objects.bulk.add_subscriptions(collection, **params) -> BulkOperationclient.objects.bulk.delete_subscriptions(collection, **params) -> BulkOperationclient.objects.bulk.set(collection, **params) -> BulkOperation
Types:
from knockapi.types import InlineTenantRequest, Tenant, TenantRequestMethods:
client.tenants.list(**params) -> SyncEntriesCursor[Tenant]client.tenants.delete(id) -> Noneclient.tenants.get(id, **params) -> Tenantclient.tenants.set(id, **params) -> Tenant
Methods:
client.tenants.bulk.delete(**params) -> BulkOperationclient.tenants.bulk.set(**params) -> BulkOperation
Types:
from knockapi.types import BulkOperationMethods:
client.bulk_operations.get(id) -> BulkOperation
Types:
from knockapi.types import (
Activity,
Message,
MessageDeliveryLog,
MessageEvent,
MessageGetContentResponse,
)Methods:
client.messages.list(**params) -> SyncItemsCursor[Message]client.messages.archive(message_id) -> Messageclient.messages.get(message_id) -> Messageclient.messages.get_content(message_id) -> MessageGetContentResponseclient.messages.list_activities(message_id, **params) -> SyncItemsCursor[Activity]client.messages.list_delivery_logs(message_id, **params) -> SyncItemsCursor[MessageDeliveryLog]client.messages.list_events(message_id, **params) -> SyncItemsCursor[MessageEvent]client.messages.mark_as_interacted(message_id, **params) -> Messageclient.messages.mark_as_read(message_id) -> Messageclient.messages.mark_as_seen(message_id) -> Messageclient.messages.mark_as_unread(message_id) -> Messageclient.messages.mark_as_unseen(message_id) -> Messageclient.messages.unarchive(message_id) -> Message
Types:
from knockapi.types.messages import (
BatchArchiveResponse,
BatchGetContentResponse,
BatchMarkAsInteractedResponse,
BatchMarkAsReadResponse,
BatchMarkAsSeenResponse,
BatchMarkAsUnreadResponse,
BatchMarkAsUnseenResponse,
BatchUnarchiveResponse,
)Methods:
client.messages.batch.archive(**params) -> BatchArchiveResponseclient.messages.batch.get_content(**params) -> BatchGetContentResponseclient.messages.batch.mark_as_interacted(**params) -> BatchMarkAsInteractedResponseclient.messages.batch.mark_as_read(**params) -> BatchMarkAsReadResponseclient.messages.batch.mark_as_seen(**params) -> BatchMarkAsSeenResponseclient.messages.batch.mark_as_unread(**params) -> BatchMarkAsUnreadResponseclient.messages.batch.mark_as_unseen(**params) -> BatchMarkAsUnseenResponseclient.messages.batch.unarchive(**params) -> BatchUnarchiveResponse
Types:
from knockapi.types.providers import (
SlackCheckAuthResponse,
SlackListChannelsResponse,
SlackRevokeAccessResponse,
)Methods:
client.providers.slack.check_auth(channel_id, **params) -> SlackCheckAuthResponseclient.providers.slack.list_channels(channel_id, **params) -> SyncSlackChannelsCursor[SlackListChannelsResponse]client.providers.slack.revoke_access(channel_id, **params) -> SlackRevokeAccessResponse
Types:
from knockapi.types.providers import (
MsTeamCheckAuthResponse,
MsTeamListChannelsResponse,
MsTeamListTeamsResponse,
MsTeamRevokeAccessResponse,
)Methods:
client.providers.ms_teams.check_auth(channel_id, **params) -> MsTeamCheckAuthResponseclient.providers.ms_teams.list_channels(channel_id, **params) -> MsTeamListChannelsResponseclient.providers.ms_teams.list_teams(channel_id, **params) -> SyncMsTeamsPagination[MsTeamListTeamsResponse]client.providers.ms_teams.revoke_access(channel_id, **params) -> MsTeamRevokeAccessResponse
Types:
from knockapi.types.integrations import CensusCustomDestinationResponseMethods:
client.integrations.census.custom_destination(**params) -> CensusCustomDestinationResponse
Types:
from knockapi.types.integrations import HightouchEmbeddedDestinationResponseMethods:
client.integrations.hightouch.embedded_destination(**params) -> HightouchEmbeddedDestinationResponse
Types:
from knockapi.types import WorkflowTriggerResponseMethods:
client.workflows.cancel(key, **params) -> Noneclient.workflows.trigger(key, **params) -> WorkflowTriggerResponse
Types:
from knockapi.types import (
Schedule,
ScheduleRepeatRule,
ScheduleCreateResponse,
ScheduleUpdateResponse,
ScheduleDeleteResponse,
)Methods:
client.schedules.create(**params) -> ScheduleCreateResponseclient.schedules.update(**params) -> ScheduleUpdateResponseclient.schedules.list(**params) -> SyncEntriesCursor[Schedule]client.schedules.delete(**params) -> ScheduleDeleteResponse
Methods:
client.schedules.bulk.create(**params) -> BulkOperation
Methods:
client.channels.bulk.update_message_status(channel_id, action, **params) -> BulkOperation
Types:
from knockapi.types import AudienceMember, AudienceListMembersResponseMethods:
client.audiences.add_members(key, **params) -> Noneclient.audiences.list_members(key) -> AudienceListMembersResponseclient.audiences.remove_members(key, **params) -> None