from knock_mapi.types import PageInfoTypes:
from knock_mapi.types import (
ChatTemplate,
EmailTemplate,
InAppFeedTemplate,
PushTemplate,
RequestTemplate,
SMSTemplate,
WebhookTemplate,
)Types:
from knock_mapi.types import EmailLayout, EmailLayoutUpsertResponse, EmailLayoutValidateResponseMethods:
client.email_layouts.retrieve(email_layout_key, **params) -> EmailLayoutclient.email_layouts.list(**params) -> SyncEntriesCursor[EmailLayout]client.email_layouts.upsert(email_layout_key, **params) -> EmailLayoutUpsertResponseclient.email_layouts.validate(email_layout_key, **params) -> EmailLayoutValidateResponse
Types:
from knock_mapi.types import (
Commit,
CommitCommitAllResponse,
CommitPromoteAllResponse,
CommitPromoteOneResponse,
)Methods:
client.commits.retrieve(id) -> Commitclient.commits.list(**params) -> SyncEntriesCursor[Commit]client.commits.commit_all(**params) -> CommitCommitAllResponseclient.commits.promote_all(**params) -> CommitPromoteAllResponseclient.commits.promote_one(id) -> CommitPromoteOneResponse
Types:
from knock_mapi.types import Partial, PartialUpsertResponse, PartialValidateResponseMethods:
client.partials.retrieve(partial_key, **params) -> Partialclient.partials.list(**params) -> SyncEntriesCursor[Partial]client.partials.upsert(partial_key, **params) -> PartialUpsertResponseclient.partials.validate(partial_key, **params) -> PartialValidateResponse
Types:
from knock_mapi.types import (
Translation,
TranslationRetrieveResponse,
TranslationUpsertResponse,
TranslationValidateResponse,
)Methods:
client.translations.retrieve(locale_code, **params) -> TranslationRetrieveResponseclient.translations.list(**params) -> SyncEntriesCursor[Translation]client.translations.upsert(locale_code, **params) -> TranslationUpsertResponseclient.translations.validate(locale_code, **params) -> TranslationValidateResponse
Types:
from knock_mapi.types import (
Condition,
ConditionGroup,
Duration,
SendWindow,
Workflow,
WorkflowBatchStep,
WorkflowBranchStep,
WorkflowChannelStep,
WorkflowDelayStep,
WorkflowFetchStep,
WorkflowStep,
WorkflowThrottleStep,
WorkflowTriggerWorkflowStep,
WorkflowActivateResponse,
WorkflowRunResponse,
WorkflowUpsertResponse,
WorkflowValidateResponse,
)Methods:
client.workflows.retrieve(workflow_key, **params) -> Workflowclient.workflows.list(**params) -> SyncEntriesCursor[Workflow]client.workflows.activate(workflow_key, **params) -> WorkflowActivateResponseclient.workflows.run(workflow_key, **params) -> WorkflowRunResponseclient.workflows.upsert(workflow_key, **params) -> WorkflowUpsertResponseclient.workflows.validate(workflow_key, **params) -> WorkflowValidateResponse
Types:
from knock_mapi.types.workflows import StepPreviewTemplateResponseMethods:
client.workflows.steps.preview_template(step_ref, *, workflow_key, **params) -> StepPreviewTemplateResponse
Types:
from knock_mapi.types import (
MessageType,
MessageTypeTextField,
MessageTypeVariant,
MessageTypeUpsertResponse,
MessageTypeValidateResponse,
)Methods:
client.message_types.retrieve(message_type_key, **params) -> MessageTypeclient.message_types.list(**params) -> SyncEntriesCursor[MessageType]client.message_types.upsert(message_type_key, **params) -> MessageTypeUpsertResponseclient.message_types.validate(message_type_key, **params) -> MessageTypeValidateResponse
Types:
from knock_mapi.types import AuthVerifyResponseMethods:
client.auth.verify() -> AuthVerifyResponse
Types:
from knock_mapi.types import APIKeyExchangeResponseMethods:
client.api_keys.exchange(**params) -> APIKeyExchangeResponse
Types:
from knock_mapi.types import ChannelGroup, ChannelGroupRuleMethods:
client.channel_groups.list(**params) -> SyncEntriesCursor[ChannelGroup]
Types:
from knock_mapi.types import (
Channel,
ChatChannelSettings,
EmailChannelSettings,
InAppFeedChannelSettings,
PushChannelSettings,
SMSChannelSettings,
)Methods:
client.channels.list(**params) -> SyncEntriesCursor[Channel]
Types:
from knock_mapi.types import EnvironmentMethods:
client.environments.retrieve(environment_slug) -> Environmentclient.environments.list(**params) -> SyncEntriesCursor[Environment]
Types:
from knock_mapi.types import VariableMethods:
client.variables.list(**params) -> SyncEntriesCursor[Variable]