Documentation
¶
Index ¶
- type AcceptInvitationParams
- type AcceptPendingInvitationParams
- type AccessRequestsLatestParams
- type AdapterRuntime
- type AddSegmentMembersParams
- type ApiKey
- type ApiKeyRejection
- type ApprovalAudienceListsRow
- type ApprovalBypassCountParams
- type ApprovalCampaignVersionParams
- type ApprovalCampaignVersionRow
- type ApprovalComment
- type ApprovalCommentsRow
- type ApprovalDecision
- type ApprovalDecisionWaitsParams
- type ApprovalDecisionsRow
- type ApprovalGetParams
- type ApprovalGetRow
- type ApprovalHeldCampaignsRow
- type ApprovalInsertCommentParams
- type ApprovalInsertDecisionParams
- type ApprovalInsertHoldParams
- type ApprovalInsertRequestParams
- type ApprovalInvalidateParams
- type ApprovalLastAuditParams
- type ApprovalLastAuditRow
- type ApprovalLatestForCampaignRow
- type ApprovalListParams
- type ApprovalListRow
- type ApprovalLockParams
- type ApprovalMarkScheduledParams
- type ApprovalMarkSendingParams
- type ApprovalMemberParams
- type ApprovalMemberRow
- type ApprovalMembersRow
- type ApprovalOpenRequestsRow
- type ApprovalPendingForWorkspaceRow
- type ApprovalReopenParams
- type ApprovalRequest
- type ApprovalResolveHoldParams
- type ApprovalScheduleCampaignParams
- type ApprovalSetCampaignStatusParams
- type ApprovalSetRemindedParams
- type ApprovalSetStatusParams
- type ApprovalUnscheduleParams
- type ArchiveInsertIssueParams
- type ArchiveIssue
- type ArchiveIssueBySlugParams
- type ArchiveIssueBySlugRow
- type ArchiveIssueCountParams
- type ArchiveIssueGetParams
- type ArchiveIssueOneParams
- type ArchiveIssueOneRow
- type ArchiveIssuesParams
- type ArchiveIssuesRow
- type ArchiveListCountsParams
- type ArchiveListCountsRow
- type ArchiveMissingIssuesParams
- type ArchiveMissingIssuesRow
- type ArchiveSlugTakenParams
- type ArchiveSummaryParams
- type ArchiveSummaryRow
- type ArchiveUpdateIssueParams
- type AudienceAutomationByNameParams
- type AudienceCountsRow
- type AudienceDaily
- type AudienceState
- type AuditEvent
- type AuditLogActionGroupsRow
- type AuditLogActorsRow
- type AuditLogExportParams
- type AuditLogExportRow
- type AuditLogGetParams
- type AuditLogGetRow
- type AuditLogListParams
- type AuditLogListRow
- type AuditLogRelatedParams
- type AuditLogRelatedRow
- type AuditSetRetentionParams
- type AuditStreamAdvanceParams
- type AuditStreamBatchParams
- type AuditStreamConfigureParams
- type AuditStreamSetStatusParams
- type AuditStreamWorkspacesRow
- type AuthChallenge
- type Automation
- type AutomationActiveRunNodesRow
- type AutomationActiveRunVersionsRow
- type AutomationAddContactTagParams
- type AutomationAddListMembershipParams
- type AutomationAlert
- type AutomationContactByEmailParams
- type AutomationContactByEmailRow
- type AutomationContactEmailedSinceParams
- type AutomationContactInListParams
- type AutomationContactInWorkspaceParams
- type AutomationContactInWorkspaceRow
- type AutomationContactRow
- type AutomationContactSentEventParams
- type AutomationContactSuppressedParams
- type AutomationDateFieldMatchesParams
- type AutomationDateTriggersRow
- type AutomationEmail
- type AutomationEmailLink
- type AutomationEmailVersion
- type AutomationEngagedParams
- type AutomationEvent
- type AutomationFieldsRow
- type AutomationFormsRow
- type AutomationGoalRunsEngagedParams
- type AutomationGoalRunsEngagedRow
- type AutomationGoalRunsEventParams
- type AutomationGoalRunsEventRow
- type AutomationGoalRunsInListParams
- type AutomationGoalRunsInListRow
- type AutomationGoalRunsTaggedParams
- type AutomationGoalRunsTaggedRow
- type AutomationListsRow
- type AutomationLostWebhookRunsRow
- type AutomationMessageEngagedParams
- type AutomationMessageForStatsRow
- type AutomationProviderSendsSinceParams
- type AutomationProviderSendsSinceRow
- type AutomationProvidersRow
- type AutomationRemoveContactTagParams
- type AutomationRemoveListMembershipParams
- type AutomationRouteRow
- type AutomationRun
- type AutomationRunExistsParams
- type AutomationRunMessageParams
- type AutomationRunMessageRow
- type AutomationStepFailuresRow
- type AutomationStepPathsSinceParams
- type AutomationStepPathsSinceRow
- type AutomationStepProvidersSinceParams
- type AutomationStepProvidersSinceRow
- type AutomationStepSecret
- type AutomationStepStat
- type AutomationStepStatsSinceParams
- type AutomationStepStatsSinceRow
- type AutomationTopTagsRow
- type AutomationVersion
- type AutomationWebhookCall
- type AutomationWorkspaceStatsSinceParams
- type AutomationWorkspaceStatsSinceRow
- type BlocklistResult
- type BumpAutomationStepStatsParams
- type BumpNotificationEmailAttemptsParams
- type Campaign
- type CampaignAudienceStage
- type CampaignCostSinceParams
- type CampaignCostSinceRow
- type CampaignCounter
- type CampaignHourly
- type CampaignIncident
- type CampaignLink
- type CampaignRoute
- type CampaignSend
- type CampaignTotalsSinceParams
- type CampaignTotalsSinceRow
- type CampaignVersion
- type ClaimAutomationEventsRow
- type ClaimDueAutomationRunsParams
- type ClaimDueAutomationRunsRow
- type CommunityAdapterListRow
- type CompleteInstanceSetupParams
- type ComposerAudienceListsRow
- type ComposerAudienceSegmentsRow
- type ComposerCountListAudienceParams
- type ComposerCountMissingFieldParams
- type ComposerCustomFieldsRow
- type ComposerDefaultSenderRow
- type ComposerLastSentCampaignRow
- type ComposerLatestReadinessRow
- type ComposerLockCampaignParams
- type ComposerLockCampaignRow
- type ComposerPreviewContactByIDParams
- type ComposerPreviewContactByIDRow
- type ComposerPreviewContactsParams
- type ComposerPreviewContactsRow
- type ComposerRandomContactRow
- type ComposerTestRecipientsRow
- type ComposerUpdateCampaignMetaParams
- type ComposerVersionSourcesParams
- type ComposerVersionSourcesRow
- type ConnectCreateListParams
- type ConnectFirstWebhookParams
- type ConnectFirstWebhookRow
- type ConnectInsertProviderParams
- type ConnectMessageParams
- type ConnectProviderRoutedParams
- type ConnectSameAdapterParams
- type ConnectSameAdapterRow
- type ConnectSetProviderConfigParams
- type ConnectSetSendThresholdsParams
- type ConnectSetWebhookSecretParams
- type ConnectSuppressionSyncModeParams
- type ConnectUpdateProviderParams
- type ConsentEvent
- type ConsumeEmailChangeParams
- type Contact
- type ContactConsentEventsRow
- type ContactEngagementSinceParams
- type ContactEngagementSinceRow
- type ContactListNamesRow
- type ContactMembershipsRow
- type ContactPreference
- type ContactSourcesRow
- type ContentCheckUpsertLinkListingParams
- type CountAutomationInFlowByNodeRow
- type CountAutomationInFlowRow
- type CountAutomationsByStatusRow
- type CountCampaignsByStatusRow
- type CountCampaignsParams
- type CountDeliverabilityIncidentsParams
- type CountNotificationsParams
- type CountNotificationsRow
- type CountUnreadNotificationsParams
- type CreateAPIKeyParams
- type CreateAutomationEmailParams
- type CreateAutomationParams
- type CreateChallengeParams
- type CreateContactParams
- type CreateCustomFieldParams
- type CreateDeliverabilityCheckRunParams
- type CreateEmailChangeParams
- type CreateHostReputeOAuthStateParams
- type CreateIdentityParams
- type CreateImportParams
- type CreateInvitationParams
- type CreateListParams
- type CreateMemberParams
- type CreatePasskeyParams
- type CreatePasskeyRecordParams
- type CreatePasswordResetFromParams
- type CreatePasswordResetParams
- type CreateRecoveryCodeParams
- type CreateRoleParams
- type CreateSavedViewParams
- type CreateSegmentParams
- type CreateSessionParams
- type CreateUserParams
- type CreateWorkspaceParams
- type CustomField
- type DBTX
- type DeleteAutomationStepSecretParams
- type DeleteCustomFieldParams
- type DeleteDeliverabilityBlocklistResultsParams
- type DeleteIdentityParams
- type DeleteImportParams
- type DeleteMemberParams
- type DeletePasskeyParams
- type DeleteSavedViewParams
- type DeleteSegmentParams
- type DeleteSuppressionParams
- type DeliverabilityAssetCheck
- type DeliverabilityCheckRun
- type DeliverabilityProviderStreamsRow
- type DeliverabilityWarmupPlansRow
- type DeliveryEvent
- type DmarcReport
- type DomCreateParams
- type DomDueParams
- type DomGetByNameParams
- type DomGetParams
- type DomSaveCheckParams
- type DomUpdateNoteParams
- type DomUpdateRecordsParams
- type DomUpdateTrackingParams
- type EmailChange
- type EmailTakenParams
- type EmailTemplateNameTakenParams
- type EnabledSSOProvidersRow
- type ExitAutomationRunsParams
- type FinishDeliverabilityCheckRunParams
- type FinishImportParams
- type Form
- type FormAllowOriginParams
- type FormBlockedOriginsParams
- type FormBlockedOriginsRow
- type FormBumpDailyParams
- type FormBumpTotalsParams
- type FormByPublicIDParams
- type FormBySlugParams
- type FormChallenge
- type FormChallengeInsertParams
- type FormChallengeLiveParams
- type FormChallengeTakeParams
- type FormDaily
- type FormDeleteParams
- type FormDismissOriginParams
- type FormGetParams
- type FormInsertParams
- type FormLastSubmissionForContactRow
- type FormPublicIDTakenParams
- type FormRecordRejectionParams
- type FormRejection
- type FormRenameParams
- type FormSetStatusParams
- type FormSlugTakenParams
- type FormStatsSinceParams
- type FormStatsSinceRow
- type FormSubmission
- type FormSubmissionByIDParams
- type FormSubmissionInsertParams
- type FormSubmissionMarkRemindedParams
- type FormSubmissionMarkSentParams
- type FormSubmissionSettleParams
- type FormSubmissionsConfirmParams
- type FormSubmissionsConfirmRow
- type FormSubmissionsToRemindParams
- type FormSubmissionsToRemindRow
- type FormSubmissionsToSendParams
- type FormSubmissionsToSendRow
- type FormUpdateParams
- type FormWaitingCountParams
- type FormWaitingSubmissionsParams
- type FormWaitingSubmissionsRow
- type FormsDefaultSenderRow
- type FormsRemoveBrandingKeysParams
- type FormsUpdateBrandingParams
- type GetAPIKeyByTokenRow
- type GetAPIKeyParams
- type GetAutomationEmailVersionParams
- type GetAutomationEmailVersionRow
- type GetAutomationParams
- type GetAutomationRow
- type GetAutomationRunForUpdateRow
- type GetAutomationStepSecretParams
- type GetAutomationVersionParams
- type GetAutomationVersionRow
- type GetChallengeParams
- type GetComposerCampaignParams
- type GetComposerCampaignRow
- type GetComposerSenderParams
- type GetComposerSenderRow
- type GetComposerVersionParams
- type GetComposerVersionRow
- type GetContactByEmailParams
- type GetContactParams
- type GetCustomFieldParams
- type GetDeliverabilityBlocklistListingParams
- type GetDeliverabilityCheckRunParams
- type GetEmailTemplateParams
- type GetEmailTemplateRow
- type GetIdentityParams
- type GetImportParams
- type GetInvitationByTokenRow
- type GetInvitationViewRow
- type GetListParams
- type GetMXCacheParams
- type GetMXCacheRow
- type GetMediaAssetDataRow
- type GetMediaAssetParams
- type GetMediaAssetRow
- type GetMemberParams
- type GetMemberRow
- type GetMembershipParams
- type GetMembershipRow
- type GetRoleByKeyParams
- type GetSavedViewParams
- type GetSegmentParams
- type GetSuppressionByEmailParams
- type GetSuppressionParams
- type GetUsablePasswordResetRow
- type GetUserPasskeyParams
- type GetUserSessionParams
- type HideMediaAssetParams
- type HooksClaimDeliveryRow
- type HooksCreateParams
- type HooksDeleteParams
- type HooksDeliveriesParams
- type HooksDeliveriesRow
- type HooksFinishDeliveryParams
- type HooksGetDeliveryParams
- type HooksGetDeliveryRow
- type HooksGetParams
- type HooksInsertDeliveryParams
- type HooksListRow
- type HooksMatchingParams
- type HooksMatchingRow
- type HooksRecordResultParams
- type HooksRequeueParams
- type HooksSetEnabledParams
- type HooksSetSecretParams
- type HooksUpdateParams
- type HostReputeAssetSourcesRow
- type HostReputeCountWebhooksRow
- type HostReputeDataSourceViaRow
- type HostReputeProviderForIPParams
- type HostReputeProviderForIPRow
- type HostReputeUserNameRow
- type HostreputeConnection
- type HostreputeOauthState
- type Import
- type ImportJobsParams
- type ImportJobsRow
- type ImportLog
- type ImportRow
- type ImportRowsAfterParams
- type ImportStatusCountsRow
- type Incident
- type IngestAddSuppressionParams
- type IngestBumpCountersParams
- type IngestEventLogCountParams
- type IngestEventLogParams
- type IngestEventLogRow
- type IngestInsertEventParams
- type IngestInsertRawParams
- type IngestMarkNormalizedParams
- type IngestMessageByIDParams
- type IngestMessageByIDRow
- type IngestMessageByProviderIDParams
- type IngestMessageByProviderIDRow
- type IngestSetContactStatusParams
- type IngestStaleRawParams
- type IngestUpdateMessageParams
- type InsertAuditEventParams
- type InsertAutomationEmailVersionParams
- type InsertAutomationEventParams
- type InsertAutomationMessageParams
- type InsertAutomationRunParams
- type InsertAutomationVersionParams
- type InsertAutomationWebhookCallParams
- type InsertComposerCampaignParams
- type InsertComposerVersionParams
- type InsertConsentEventParams
- type InsertDeliverabilityBlocklistResultParams
- type InsertDeliverabilityIncidentParams
- type InsertEmailTemplateParams
- type InsertImportLogParams
- type InsertMediaAssetParams
- type InsertMediaAssetRow
- type InsertNotificationParams
- type InsertSuppressionParams
- type InstalledAdapter
- type InstanceAdminAdminNamesRow
- type InstanceAdminDeactivateMembershipsParams
- type InstanceAdminDeactivateUserParams
- type InstanceAdminIdentitiesRow
- type InstanceAdminLastDomainRejectionRow
- type InstanceAdminLockedCountRow
- type InstanceAdminMembershipsRow
- type InstanceAdminPasswordHistoryParams
- type InstanceAdminPurgeWorkspaceRow
- type InstanceAdminReactivateMembershipsParams
- type InstanceAdminResetTwoFactorParams
- type InstanceAdminRestoreWorkspaceParams
- type InstanceAdminSavePolicyParams
- type InstanceAdminSaveSettingsParams
- type InstanceAdminSaveSocialParams
- type InstanceAdminSignInEventsRow
- type InstanceAdminSoleOwnersRow
- type InstanceAdminSoleOwnershipsRow
- type InstanceAdminSystemProviderRow
- type InstanceAdminUserRow
- type InstanceAdminUsersInGraceRow
- type InstanceAdminUsersRow
- type InstanceAdminWorkspacesRow
- type InstanceAuditExportParams
- type InstanceAuditExportRow
- type InstanceAuditGetRow
- type InstanceAuditListParams
- type InstanceAuditListRow
- type InstanceAuditRelatedParams
- type InstanceAuditRelatedRow
- type InstanceAuditStreamAdvanceParams
- type InstanceAuditStreamBatchParams
- type InstanceAuditStreamConfigureParams
- type InstanceAuditStreamStateRow
- type InstanceAuditWorkspaceStreamsRow
- type InstanceSetting
- type Invitation
- type KeysAgentActionsParams
- type KeysAgentActionsRow
- type KeysByTokenRow
- type KeysCountActiveRow
- type KeysCreateParams
- type KeysCreateRow
- type KeysDeleteParams
- type KeysGetParams
- type KeysGetRow
- type KeysListParams
- type KeysListRow
- type KeysRecordRejectionParams
- type KeysRejectionsRow
- type KeysRevokeParams
- type KeysTouchParams
- type LastAuditAtParams
- type LatestFinishedDeliverabilityCheckRunParams
- type LinkDomainListing
- type List
- type ListAPIKeysParams
- type ListAPIKeysRow
- type ListAuditEventsParams
- type ListAutomationAlertsRow
- type ListAutomationEmailsRow
- type ListAutomationHeldAlertsRow
- type ListAutomationPublishedGraphsRow
- type ListAutomationRunsForMigrationParams
- type ListAutomationRunsForMigrationRow
- type ListAutomationVersionsRow
- type ListAutomationWebhookCallsParams
- type ListAutomationWebhookCallsRow
- type ListAutomationsRow
- type ListCampaignIncidentSummariesRow
- type ListCampaignRouteSharesRow
- type ListCampaignsParams
- type ListCampaignsRow
- type ListComposerSendersRow
- type ListComposerVersionsParams
- type ListComposerVersionsRow
- type ListDeletedAtParams
- type ListDeliverabilityDMARCReportsParams
- type ListDeliverabilityIncidentsParams
- type ListDeliverabilityIncidentsRow
- type ListDeliverabilityPostmasterDaysParams
- type ListDeliverabilitySNDSDaysParams
- type ListEmailTemplatesParams
- type ListEmailTemplatesRow
- type ListGrowthSinceParams
- type ListGrowthSinceRow
- type ListIdentitiesWithProviderRow
- type ListImpactAutomationsParams
- type ListImpactAutomationsRow
- type ListImpactCampaignsParams
- type ListImpactCampaignsRow
- type ListImpactFormsParams
- type ListImpactFormsRow
- type ListImpactMembersRow
- type ListImpactOtherListsRow
- type ListImportsRow
- type ListListsWithCountsRow
- type ListMediaAssetsParams
- type ListMediaAssetsRow
- type ListMembersRow
- type ListMembersWithRolesRow
- type ListMembership
- type ListMembershipsOfUserRow
- type ListNameTakenParams
- type ListNamesOfListsParams
- type ListNamesOfListsRow
- type ListNotificationsParams
- type ListPauseAutomationParams
- type ListPauseFormParams
- type ListPendingEmailNotificationsRow
- type ListPendingInvitationsRow
- type ListRescheduleCampaignParams
- type ListResumeAutomationParams
- type ListResumeFormParams
- type ListRetiringAutomationVersionsRow
- type ListRolesRow
- type ListSavedViewsParams
- type ListSegmentsRow
- type ListTierMixRow
- type ListUnscheduleCampaignParams
- type ListUserWorkspacesRow
- type ListWorkspaceListsRow
- type LiveAutomationsForTriggerParams
- type LiveAutomationsForTriggerRow
- type LockAutomationParams
- type LockDeletedListParams
- type LockListParams
- type MarkAllNotificationsReadParams
- type MarkAutomationEventProcessedParams
- type MarkHostReputeSyncedParams
- type MarkHostReputeTokenRejectedParams
- type MarkNotificationReadParams
- type McpAddSuppressionParams
- type McpAutomationsRow
- type McpBlocklistsRow
- type McpCampaignByMailboxRow
- type McpCampaignByProviderRow
- type McpCampaignRoutesRow
- type McpCampaignTotalsRow
- type McpCreateDraftParams
- type McpCreateDraftRow
- type McpCreateSegmentParams
- type McpCreateSegmentRow
- type McpDefaultRoutingRuleParams
- type McpDefaultRoutingRuleRow
- type McpFindCampaignParams
- type McpFindCampaignRow
- type McpGetRoutingRuleParams
- type McpGetRoutingRuleRow
- type McpLatestReadinessRow
- type McpPostmasterRow
- type McpProvidersRow
- type McpRoutingRow
- type McpSearchContactsParams
- type McpSearchContactsRow
- type McpSendingDomainsRow
- type McpSetRoutingSplitsParams
- type McpUpdateDraftParams
- type McpUpdateDraftRow
- type MediaAsset
- type Message
- type MxCache
- type Notification
- type NotificationPreference
- type NotificationSetting
- type OpenAutomationAlertParams
- type OverviewCampaignRoutesRow
- type OverviewLatestReadinessRow
- type OverviewListChangesParams
- type OverviewListChangesRow
- type OverviewNextScheduledParams
- type OverviewNextScheduledRow
- type PasswordReset
- type PauseAutomationParams
- type PostmasterDaily
- type ProvAwaitingCampaignsParams
- type ProvAwaitingCampaignsRow
- type ProvAwaitingCountParams
- type ProvAwaitingCountRow
- type ProvAwaitingProviderIDsParams
- type ProvAwaitingStatusParams
- type ProvAwaitingStatusRow
- type ProvBroadcastWeeklyParams
- type ProvCallWindowTotalsParams
- type ProvCallWindowTotalsRow
- type ProvCampaignRoutesRow
- type ProvDailyTotalsParams
- type ProvDailyTotalsRow
- type ProvEndFailoversParams
- type ProvGetByWebhookTokenParams
- type ProvGetParams
- type ProvHeldRoutesParams
- type ProvHeldRoutesRow
- type ProvIncidentsSinceParams
- type ProvInsertIncidentParams
- type ProvLastConfirmedParams
- type ProvLastConfirmedRow
- type ProvMembersWithNamesRow
- type ProvRawEventsByHourParams
- type ProvRawEventsByHourRow
- type ProvRecordCallParams
- type ProvRecordDailyParams
- type ProvRecordOutcomeParams
- type ProvReroutedByAutomationParams
- type ProvReroutedByAutomationRow
- type ProvResolveIncidentsParams
- type ProvSendingCampaignsOnParams
- type ProvSendingCampaignsOnRow
- type ProvSentByKindParams
- type ProvSentByKindRow
- type ProvSentSinceParams
- type ProvSentSinceRow
- type ProvSentThroughSinceParams
- type ProvSetRouteStatusParams
- type ProvStartFailoverParams
- type ProvStreamVolumeParams
- type ProvStreamVolumeRow
- type ProvTouchLastEventParams
- type ProvUpdateCapabilitiesParams
- type ProvUpdateConfigParams
- type ProvUpdateCredentialsParams
- type ProvUpdateHealthParams
- type ProvUpdateSettingsParams
- type ProvUpdateTrackingParams
- type Provider
- type ProviderCallWindow
- type ProviderDailyStat
- type ProviderNamesRow
- type ProviderRawEvent
- type ProviderSetup
- type ProviderSuppressionSync
- type PruneComposerVersionsParams
- type PublicBumpUnsubscribedParams
- type PublicCampaignParams
- type PublicCampaignRow
- type PublicInsertFeedbackParams
- type PublicInsertUnsubscribeEventParams
- type PublicLatestIssueSlugParams
- type PublicMessageRow
- type PublicPageSetting
- type PublicScheduledCampaignsParams
- type PublicScheduledCampaignsRow
- type PublicSettingsByDomainRow
- type PublicSettingsDomainTakenParams
- type PublicSettingsDomainsToCheckRow
- type PublicSettingsLogoRow
- type PublicSettingsSetDomainParams
- type PublicSettingsSetHostedFormParams
- type PublicSettingsSetLogoParams
- type PublicSettingsSetPagesParams
- type PublicSettingsSetTurnstileParams
- type PublicSettingsTouchParams
- type PublicSettingsTurnstileErrorParams
- type PublicUnsubscribeStatsParams
- type PublicUnsubscribeStatsRow
- type PublishAutomationVersionParams
- type PurgeAuditEventsParams
- type PutMXCacheParams
- type Querier
- type Queries
- func (q *Queries) AcceptInvitation(ctx context.Context, arg AcceptInvitationParams) error
- func (q *Queries) AcceptPendingInvitation(ctx context.Context, arg AcceptPendingInvitationParams) (int64, error)
- func (q *Queries) AccessRequestsLatest(ctx context.Context, arg AccessRequestsLatestParams) (time.Time, error)
- func (q *Queries) ActiveImport(ctx context.Context, workspaceID uuid.UUID) (Import, error)
- func (q *Queries) AddSegmentMembers(ctx context.Context, arg AddSegmentMembersParams) error
- func (q *Queries) ApprovalAudienceLists(ctx context.Context, workspaceID uuid.UUID) ([]ApprovalAudienceListsRow, error)
- func (q *Queries) ApprovalBypassCount(ctx context.Context, arg ApprovalBypassCountParams) (int64, error)
- func (q *Queries) ApprovalCampaignVersion(ctx context.Context, arg ApprovalCampaignVersionParams) (ApprovalCampaignVersionRow, error)
- func (q *Queries) ApprovalChain(ctx context.Context, id uuid.UUID) ([]uuid.UUID, error)
- func (q *Queries) ApprovalComments(ctx context.Context, requestIds []uuid.UUID) ([]ApprovalCommentsRow, error)
- func (q *Queries) ApprovalDecisionWaits(ctx context.Context, arg ApprovalDecisionWaitsParams) ([]int64, error)
- func (q *Queries) ApprovalDecisions(ctx context.Context, requestIds []uuid.UUID) ([]ApprovalDecisionsRow, error)
- func (q *Queries) ApprovalGet(ctx context.Context, arg ApprovalGetParams) (ApprovalGetRow, error)
- func (q *Queries) ApprovalHeldCampaigns(ctx context.Context) ([]ApprovalHeldCampaignsRow, error)
- func (q *Queries) ApprovalInsertComment(ctx context.Context, arg ApprovalInsertCommentParams) error
- func (q *Queries) ApprovalInsertDecision(ctx context.Context, arg ApprovalInsertDecisionParams) error
- func (q *Queries) ApprovalInsertHold(ctx context.Context, arg ApprovalInsertHoldParams) error
- func (q *Queries) ApprovalInsertRequest(ctx context.Context, arg ApprovalInsertRequestParams) error
- func (q *Queries) ApprovalInvalidate(ctx context.Context, arg ApprovalInvalidateParams) error
- func (q *Queries) ApprovalLastAudit(ctx context.Context, arg ApprovalLastAuditParams) (ApprovalLastAuditRow, error)
- func (q *Queries) ApprovalLatestForCampaign(ctx context.Context, campaignID *uuid.UUID) (ApprovalLatestForCampaignRow, error)
- func (q *Queries) ApprovalList(ctx context.Context, arg ApprovalListParams) ([]ApprovalListRow, error)
- func (q *Queries) ApprovalLock(ctx context.Context, arg ApprovalLockParams) (ApprovalRequest, error)
- func (q *Queries) ApprovalMarkScheduled(ctx context.Context, arg ApprovalMarkScheduledParams) error
- func (q *Queries) ApprovalMarkSending(ctx context.Context, arg ApprovalMarkSendingParams) error
- func (q *Queries) ApprovalMember(ctx context.Context, arg ApprovalMemberParams) (ApprovalMemberRow, error)
- func (q *Queries) ApprovalMembers(ctx context.Context, workspaceID uuid.UUID) ([]ApprovalMembersRow, error)
- func (q *Queries) ApprovalOpenForCampaign(ctx context.Context, campaignID *uuid.UUID) (ApprovalRequest, error)
- func (q *Queries) ApprovalOpenHold(ctx context.Context, campaignID uuid.UUID) (CampaignIncident, error)
- func (q *Queries) ApprovalOpenRequests(ctx context.Context) ([]ApprovalOpenRequestsRow, error)
- func (q *Queries) ApprovalPauseAlertsSlack(ctx context.Context, workspaceID uuid.UUID) (bool, error)
- func (q *Queries) ApprovalPendingForWorkspace(ctx context.Context, workspaceID uuid.UUID) ([]ApprovalPendingForWorkspaceRow, error)
- func (q *Queries) ApprovalReopen(ctx context.Context, arg ApprovalReopenParams) error
- func (q *Queries) ApprovalResolveHold(ctx context.Context, arg ApprovalResolveHoldParams) error
- func (q *Queries) ApprovalScheduleCampaign(ctx context.Context, arg ApprovalScheduleCampaignParams) error
- func (q *Queries) ApprovalSetCampaignStatus(ctx context.Context, arg ApprovalSetCampaignStatusParams) error
- func (q *Queries) ApprovalSetReminded(ctx context.Context, arg ApprovalSetRemindedParams) error
- func (q *Queries) ApprovalSetStatus(ctx context.Context, arg ApprovalSetStatusParams) error
- func (q *Queries) ApprovalUnschedule(ctx context.Context, arg ApprovalUnscheduleParams) error
- func (q *Queries) ArchiveInsertIssue(ctx context.Context, arg ArchiveInsertIssueParams) error
- func (q *Queries) ArchiveIssueBySlug(ctx context.Context, arg ArchiveIssueBySlugParams) (ArchiveIssueBySlugRow, error)
- func (q *Queries) ArchiveIssueCount(ctx context.Context, arg ArchiveIssueCountParams) (int64, error)
- func (q *Queries) ArchiveIssueGet(ctx context.Context, arg ArchiveIssueGetParams) (ArchiveIssue, error)
- func (q *Queries) ArchiveIssueOne(ctx context.Context, arg ArchiveIssueOneParams) (ArchiveIssueOneRow, error)
- func (q *Queries) ArchiveIssues(ctx context.Context, arg ArchiveIssuesParams) ([]ArchiveIssuesRow, error)
- func (q *Queries) ArchiveListCounts(ctx context.Context, arg ArchiveListCountsParams) ([]ArchiveListCountsRow, error)
- func (q *Queries) ArchiveLock(ctx context.Context, workspaceID uuid.UUID) error
- func (q *Queries) ArchiveMissingIssues(ctx context.Context, arg ArchiveMissingIssuesParams) ([]ArchiveMissingIssuesRow, error)
- func (q *Queries) ArchiveSlugTaken(ctx context.Context, arg ArchiveSlugTakenParams) (bool, error)
- func (q *Queries) ArchiveSummary(ctx context.Context, arg ArchiveSummaryParams) (ArchiveSummaryRow, error)
- func (q *Queries) ArchiveUpdateIssue(ctx context.Context, arg ArchiveUpdateIssueParams) (ArchiveIssue, error)
- func (q *Queries) AudienceAutomationByName(ctx context.Context, arg AudienceAutomationByNameParams) (uuid.UUID, error)
- func (q *Queries) AudienceCounts(ctx context.Context, workspaceID uuid.UUID) (AudienceCountsRow, error)
- func (q *Queries) AuditLogActionGroups(ctx context.Context, workspaceID *uuid.UUID) ([]AuditLogActionGroupsRow, error)
- func (q *Queries) AuditLogActors(ctx context.Context, workspaceID *uuid.UUID) ([]AuditLogActorsRow, error)
- func (q *Queries) AuditLogCount(ctx context.Context, workspaceID *uuid.UUID) (int64, error)
- func (q *Queries) AuditLogExport(ctx context.Context, arg AuditLogExportParams) ([]AuditLogExportRow, error)
- func (q *Queries) AuditLogGet(ctx context.Context, arg AuditLogGetParams) (AuditLogGetRow, error)
- func (q *Queries) AuditLogList(ctx context.Context, arg AuditLogListParams) ([]AuditLogListRow, error)
- func (q *Queries) AuditLogRelated(ctx context.Context, arg AuditLogRelatedParams) ([]AuditLogRelatedRow, error)
- func (q *Queries) AuditSetRetention(ctx context.Context, arg AuditSetRetentionParams) error
- func (q *Queries) AuditStreamAdvance(ctx context.Context, arg AuditStreamAdvanceParams) error
- func (q *Queries) AuditStreamBatch(ctx context.Context, arg AuditStreamBatchParams) ([]AuditEvent, error)
- func (q *Queries) AuditStreamConfigure(ctx context.Context, arg AuditStreamConfigureParams) error
- func (q *Queries) AuditStreamSetStatus(ctx context.Context, arg AuditStreamSetStatusParams) error
- func (q *Queries) AuditStreamWorkspaces(ctx context.Context) ([]AuditStreamWorkspacesRow, error)
- func (q *Queries) AutomationActiveRunNodes(ctx context.Context, automationID uuid.UUID) ([]AutomationActiveRunNodesRow, error)
- func (q *Queries) AutomationActiveRunVersions(ctx context.Context) ([]AutomationActiveRunVersionsRow, error)
- func (q *Queries) AutomationAddContactTag(ctx context.Context, arg AutomationAddContactTagParams) error
- func (q *Queries) AutomationAddListMembership(ctx context.Context, arg AutomationAddListMembershipParams) error
- func (q *Queries) AutomationContact(ctx context.Context, id uuid.UUID) (AutomationContactRow, error)
- func (q *Queries) AutomationContactByEmail(ctx context.Context, arg AutomationContactByEmailParams) (AutomationContactByEmailRow, error)
- func (q *Queries) AutomationContactEmailedSince(ctx context.Context, arg AutomationContactEmailedSinceParams) (bool, error)
- func (q *Queries) AutomationContactInList(ctx context.Context, arg AutomationContactInListParams) (bool, error)
- func (q *Queries) AutomationContactInWorkspace(ctx context.Context, arg AutomationContactInWorkspaceParams) (AutomationContactInWorkspaceRow, error)
- func (q *Queries) AutomationContactSentEvent(ctx context.Context, arg AutomationContactSentEventParams) (bool, error)
- func (q *Queries) AutomationContactSuppressed(ctx context.Context, arg AutomationContactSuppressedParams) (bool, error)
- func (q *Queries) AutomationDateFieldMatches(ctx context.Context, arg AutomationDateFieldMatchesParams) ([]uuid.UUID, error)
- func (q *Queries) AutomationDateTriggers(ctx context.Context) ([]AutomationDateTriggersRow, error)
- func (q *Queries) AutomationEngaged(ctx context.Context, arg AutomationEngagedParams) (bool, error)
- func (q *Queries) AutomationEventNames(ctx context.Context, workspaceID uuid.UUID) ([]string, error)
- func (q *Queries) AutomationFields(ctx context.Context, workspaceID uuid.UUID) ([]AutomationFieldsRow, error)
- func (q *Queries) AutomationForms(ctx context.Context, workspaceID uuid.UUID) ([]AutomationFormsRow, error)
- func (q *Queries) AutomationGoalRunsEngaged(ctx context.Context, arg AutomationGoalRunsEngagedParams) ([]AutomationGoalRunsEngagedRow, error)
- func (q *Queries) AutomationGoalRunsEvent(ctx context.Context, arg AutomationGoalRunsEventParams) ([]AutomationGoalRunsEventRow, error)
- func (q *Queries) AutomationGoalRunsInList(ctx context.Context, arg AutomationGoalRunsInListParams) ([]AutomationGoalRunsInListRow, error)
- func (q *Queries) AutomationGoalRunsTagged(ctx context.Context, arg AutomationGoalRunsTaggedParams) ([]AutomationGoalRunsTaggedRow, error)
- func (q *Queries) AutomationLists(ctx context.Context, workspaceID uuid.UUID) ([]AutomationListsRow, error)
- func (q *Queries) AutomationLostWebhookRuns(ctx context.Context, before time.Time) ([]AutomationLostWebhookRunsRow, error)
- func (q *Queries) AutomationMessageEngaged(ctx context.Context, arg AutomationMessageEngagedParams) (bool, error)
- func (q *Queries) AutomationMessageForStats(ctx context.Context, id uuid.UUID) (AutomationMessageForStatsRow, error)
- func (q *Queries) AutomationProviderSendsSince(ctx context.Context, arg AutomationProviderSendsSinceParams) ([]AutomationProviderSendsSinceRow, error)
- func (q *Queries) AutomationProviders(ctx context.Context, workspaceID uuid.UUID) ([]AutomationProvidersRow, error)
- func (q *Queries) AutomationRemoveContactTag(ctx context.Context, arg AutomationRemoveContactTagParams) error
- func (q *Queries) AutomationRemoveListMembership(ctx context.Context, arg AutomationRemoveListMembershipParams) error
- func (q *Queries) AutomationRoute(ctx context.Context, workspaceID uuid.UUID) (AutomationRouteRow, error)
- func (q *Queries) AutomationRunExists(ctx context.Context, arg AutomationRunExistsParams) (bool, error)
- func (q *Queries) AutomationRunMessage(ctx context.Context, arg AutomationRunMessageParams) (AutomationRunMessageRow, error)
- func (q *Queries) AutomationStepFailures(ctx context.Context, automationID uuid.UUID) ([]AutomationStepFailuresRow, error)
- func (q *Queries) AutomationStepPathsSince(ctx context.Context, arg AutomationStepPathsSinceParams) ([]AutomationStepPathsSinceRow, error)
- func (q *Queries) AutomationStepProvidersSince(ctx context.Context, arg AutomationStepProvidersSinceParams) ([]AutomationStepProvidersSinceRow, error)
- func (q *Queries) AutomationStepSecretNodes(ctx context.Context, automationID uuid.UUID) ([]string, error)
- func (q *Queries) AutomationStepStatsSince(ctx context.Context, arg AutomationStepStatsSinceParams) ([]AutomationStepStatsSinceRow, error)
- func (q *Queries) AutomationTopTags(ctx context.Context, workspaceID uuid.UUID) ([]AutomationTopTagsRow, error)
- func (q *Queries) AutomationUnsubscribeAll(ctx context.Context, contactID uuid.UUID) error
- func (q *Queries) AutomationWorkspaceStatsSince(ctx context.Context, arg AutomationWorkspaceStatsSinceParams) ([]AutomationWorkspaceStatsSinceRow, error)
- func (q *Queries) BroadcastDefaultSplit(ctx context.Context, workspaceID uuid.UUID) (json.RawMessage, error)
- func (q *Queries) BumpAutomationStepStats(ctx context.Context, arg BumpAutomationStepStatsParams) error
- func (q *Queries) BumpChallengeAttempts(ctx context.Context, id uuid.UUID) (int32, error)
- func (q *Queries) BumpNotificationEmailAttempts(ctx context.Context, arg BumpNotificationEmailAttemptsParams) error
- func (q *Queries) CampaignCostSince(ctx context.Context, arg CampaignCostSinceParams) ([]CampaignCostSinceRow, error)
- func (q *Queries) CampaignTotalsSince(ctx context.Context, arg CampaignTotalsSinceParams) (CampaignTotalsSinceRow, error)
- func (q *Queries) ClaimAutomationEvents(ctx context.Context, lim int32) ([]ClaimAutomationEventsRow, error)
- func (q *Queries) ClaimDueAutomationRuns(ctx context.Context, arg ClaimDueAutomationRunsParams) ([]ClaimDueAutomationRunsRow, error)
- func (q *Queries) ClearSegmentMembers(ctx context.Context, segmentID uuid.UUID) error
- func (q *Queries) ClearSignInThrottle(ctx context.Context, email string) error
- func (q *Queries) ClearUserLockout(ctx context.Context, id uuid.UUID) error
- func (q *Queries) CommunityAdapterList(ctx context.Context) ([]CommunityAdapterListRow, error)
- func (q *Queries) CompleteInstanceSetup(ctx context.Context, arg CompleteInstanceSetupParams) (InstanceSetting, error)
- func (q *Queries) ComposerAudienceLists(ctx context.Context, workspaceID uuid.UUID) ([]ComposerAudienceListsRow, error)
- func (q *Queries) ComposerAudienceSegments(ctx context.Context, workspaceID uuid.UUID) ([]ComposerAudienceSegmentsRow, error)
- func (q *Queries) ComposerCountListAudience(ctx context.Context, arg ComposerCountListAudienceParams) (int64, error)
- func (q *Queries) ComposerCountMissingField(ctx context.Context, arg ComposerCountMissingFieldParams) (int64, error)
- func (q *Queries) ComposerCustomFields(ctx context.Context, workspaceID uuid.UUID) ([]ComposerCustomFieldsRow, error)
- func (q *Queries) ComposerDefaultSender(ctx context.Context, id uuid.UUID) (ComposerDefaultSenderRow, error)
- func (q *Queries) ComposerLastSentCampaign(ctx context.Context, workspaceID uuid.UUID) (ComposerLastSentCampaignRow, error)
- func (q *Queries) ComposerLatestReadiness(ctx context.Context, campaignID uuid.UUID) (ComposerLatestReadinessRow, error)
- func (q *Queries) ComposerLockCampaign(ctx context.Context, arg ComposerLockCampaignParams) (ComposerLockCampaignRow, error)
- func (q *Queries) ComposerPreviewContactByID(ctx context.Context, arg ComposerPreviewContactByIDParams) (ComposerPreviewContactByIDRow, error)
- func (q *Queries) ComposerPreviewContacts(ctx context.Context, arg ComposerPreviewContactsParams) ([]ComposerPreviewContactsRow, error)
- func (q *Queries) ComposerRandomContact(ctx context.Context, workspaceID uuid.UUID) (ComposerRandomContactRow, error)
- func (q *Queries) ComposerTestRecipients(ctx context.Context, workspaceID uuid.UUID) ([]ComposerTestRecipientsRow, error)
- func (q *Queries) ComposerUpdateCampaignMeta(ctx context.Context, arg ComposerUpdateCampaignMetaParams) error
- func (q *Queries) ComposerVersionSources(ctx context.Context, arg ComposerVersionSourcesParams) ([]ComposerVersionSourcesRow, error)
- func (q *Queries) ConfirmInstanceBasics(ctx context.Context) error
- func (q *Queries) ConnectActiveContacts(ctx context.Context, workspaceID uuid.UUID) (int64, error)
- func (q *Queries) ConnectCreateList(ctx context.Context, arg ConnectCreateListParams) error
- func (q *Queries) ConnectFirstWebhook(ctx context.Context, arg ConnectFirstWebhookParams) (ConnectFirstWebhookRow, error)
- func (q *Queries) ConnectInsertProvider(ctx context.Context, arg ConnectInsertProviderParams) (Provider, error)
- func (q *Queries) ConnectListNames(ctx context.Context, workspaceID uuid.UUID) ([]string, error)
- func (q *Queries) ConnectMessage(ctx context.Context, arg ConnectMessageParams) (Message, error)
- func (q *Queries) ConnectMessageEvents(ctx context.Context, messageID *uuid.UUID) ([]DeliveryEvent, error)
- func (q *Queries) ConnectProviderNames(ctx context.Context, workspaceID uuid.UUID) ([]string, error)
- func (q *Queries) ConnectProviderRouted(ctx context.Context, arg ConnectProviderRoutedParams) (bool, error)
- func (q *Queries) ConnectProvidersWithSecrets(ctx context.Context, workspaceID uuid.UUID) ([]Provider, error)
- func (q *Queries) ConnectSameAdapter(ctx context.Context, arg ConnectSameAdapterParams) ([]ConnectSameAdapterRow, error)
- func (q *Queries) ConnectSetProviderConfig(ctx context.Context, arg ConnectSetProviderConfigParams) error
- func (q *Queries) ConnectSetSendThresholds(ctx context.Context, arg ConnectSetSendThresholdsParams) error
- func (q *Queries) ConnectSetWebhookSecret(ctx context.Context, arg ConnectSetWebhookSecretParams) error
- func (q *Queries) ConnectSuppressionSyncMode(ctx context.Context, arg ConnectSuppressionSyncModeParams) error
- func (q *Queries) ConnectUpdateProvider(ctx context.Context, arg ConnectUpdateProviderParams) (Provider, error)
- func (q *Queries) ConsumeEmailChange(ctx context.Context, arg ConsumeEmailChangeParams) (EmailChange, error)
- func (q *Queries) ConsumeHostReputeOAuthState(ctx context.Context, stateHash []byte) (HostreputeOauthState, error)
- func (q *Queries) ConsumePasswordReset(ctx context.Context, tokenHash []byte) (PasswordReset, error)
- func (q *Queries) ContactActivityCount(ctx context.Context, contactID *uuid.UUID) (int64, error)
- func (q *Queries) ContactChoseFewer(ctx context.Context, contactID *uuid.UUID) (bool, error)
- func (q *Queries) ContactConsentEvents(ctx context.Context, contactID uuid.UUID) ([]ContactConsentEventsRow, error)
- func (q *Queries) ContactEngagementSince(ctx context.Context, arg ContactEngagementSinceParams) (ContactEngagementSinceRow, error)
- func (q *Queries) ContactListNames(ctx context.Context, contactIds []uuid.UUID) ([]ContactListNamesRow, error)
- func (q *Queries) ContactMemberships(ctx context.Context, contactID uuid.UUID) ([]ContactMembershipsRow, error)
- func (q *Queries) ContactSources(ctx context.Context, workspaceID uuid.UUID) ([]ContactSourcesRow, error)
- func (q *Queries) ContentCheckLinkListings(ctx context.Context, domains []string) ([]LinkDomainListing, error)
- func (q *Queries) ContentCheckUpsertLinkListing(ctx context.Context, arg ContentCheckUpsertLinkListingParams) error
- func (q *Queries) CountActiveOwners(ctx context.Context, workspaceID uuid.UUID) (int64, error)
- func (q *Queries) CountAutomationHeldMessages(ctx context.Context, automationID *uuid.UUID) (int64, error)
- func (q *Queries) CountAutomationInFlow(ctx context.Context, automationIds []uuid.UUID) ([]CountAutomationInFlowRow, error)
- func (q *Queries) CountAutomationInFlowByNode(ctx context.Context, automationID uuid.UUID) ([]CountAutomationInFlowByNodeRow, error)
- func (q *Queries) CountAutomationsByStatus(ctx context.Context, workspaceID uuid.UUID) ([]CountAutomationsByStatusRow, error)
- func (q *Queries) CountCampaigns(ctx context.Context, arg CountCampaignsParams) (int64, error)
- func (q *Queries) CountCampaignsByStatus(ctx context.Context, workspaceID uuid.UUID) ([]CountCampaignsByStatusRow, error)
- func (q *Queries) CountDeliverabilityIncidents(ctx context.Context, arg CountDeliverabilityIncidentsParams) (int64, error)
- func (q *Queries) CountImportRows(ctx context.Context, importID uuid.UUID) (int64, error)
- func (q *Queries) CountNotifications(ctx context.Context, arg CountNotificationsParams) (CountNotificationsRow, error)
- func (q *Queries) CountUnreadNotifications(ctx context.Context, arg CountUnreadNotificationsParams) (int64, error)
- func (q *Queries) CountUnusedRecoveryCodes(ctx context.Context, userID uuid.UUID) (int64, error)
- func (q *Queries) CountUsers(ctx context.Context) (int64, error)
- func (q *Queries) CountWorkspaceSegments(ctx context.Context, workspaceID uuid.UUID) (int64, error)
- func (q *Queries) CountWorkspaceSuppressions(ctx context.Context, workspaceID uuid.UUID) (int64, error)
- func (q *Queries) CreateAPIKey(ctx context.Context, arg CreateAPIKeyParams) (ApiKey, error)
- func (q *Queries) CreateAutomation(ctx context.Context, arg CreateAutomationParams) (Automation, error)
- func (q *Queries) CreateAutomationEmail(ctx context.Context, arg CreateAutomationEmailParams) error
- func (q *Queries) CreateChallenge(ctx context.Context, arg CreateChallengeParams) (AuthChallenge, error)
- func (q *Queries) CreateContact(ctx context.Context, arg CreateContactParams) (Contact, error)
- func (q *Queries) CreateCustomField(ctx context.Context, arg CreateCustomFieldParams) (CustomField, error)
- func (q *Queries) CreateDeliverabilityCheckRun(ctx context.Context, arg CreateDeliverabilityCheckRunParams) (DeliverabilityCheckRun, error)
- func (q *Queries) CreateEmailChange(ctx context.Context, arg CreateEmailChangeParams) (EmailChange, error)
- func (q *Queries) CreateHostReputeOAuthState(ctx context.Context, arg CreateHostReputeOAuthStateParams) error
- func (q *Queries) CreateIdentity(ctx context.Context, arg CreateIdentityParams) (UserIdentity, error)
- func (q *Queries) CreateImport(ctx context.Context, arg CreateImportParams) (Import, error)
- func (q *Queries) CreateInvitation(ctx context.Context, arg CreateInvitationParams) (Invitation, error)
- func (q *Queries) CreateList(ctx context.Context, arg CreateListParams) (List, error)
- func (q *Queries) CreateMember(ctx context.Context, arg CreateMemberParams) (WorkspaceMember, error)
- func (q *Queries) CreatePasskey(ctx context.Context, arg CreatePasskeyParams) (UserPasskey, error)
- func (q *Queries) CreatePasskeyRecord(ctx context.Context, arg CreatePasskeyRecordParams) (UserPasskey, error)
- func (q *Queries) CreatePasswordReset(ctx context.Context, arg CreatePasswordResetParams) (PasswordReset, error)
- func (q *Queries) CreatePasswordResetFrom(ctx context.Context, arg CreatePasswordResetFromParams) (PasswordReset, error)
- func (q *Queries) CreateRecoveryCode(ctx context.Context, arg CreateRecoveryCodeParams) error
- func (q *Queries) CreateRole(ctx context.Context, arg CreateRoleParams) (Role, error)
- func (q *Queries) CreateSavedView(ctx context.Context, arg CreateSavedViewParams) (SavedView, error)
- func (q *Queries) CreateSegment(ctx context.Context, arg CreateSegmentParams) (Segment, error)
- func (q *Queries) CreateSession(ctx context.Context, arg CreateSessionParams) (Session, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) CreateWorkspace(ctx context.Context, arg CreateWorkspaceParams) (Workspace, error)
- func (q *Queries) DeleteAutomationStepSecret(ctx context.Context, arg DeleteAutomationStepSecretParams) (int64, error)
- func (q *Queries) DeleteAvatar(ctx context.Context, userID uuid.UUID) (int64, error)
- func (q *Queries) DeleteChallenge(ctx context.Context, id uuid.UUID) error
- func (q *Queries) DeleteCustomField(ctx context.Context, arg DeleteCustomFieldParams) (int64, error)
- func (q *Queries) DeleteDeliverabilityBlocklistResults(ctx context.Context, arg DeleteDeliverabilityBlocklistResultsParams) error
- func (q *Queries) DeleteExpiredChallenges(ctx context.Context) (int64, error)
- func (q *Queries) DeleteExpiredHostReputeOAuthStates(ctx context.Context) (int64, error)
- func (q *Queries) DeleteExpiredSessions(ctx context.Context) (int64, error)
- func (q *Queries) DeleteHostReputeConnection(ctx context.Context, workspaceID uuid.UUID) (int64, error)
- func (q *Queries) DeleteHostReputeData(ctx context.Context, workspaceID uuid.UUID) error
- func (q *Queries) DeleteIdentity(ctx context.Context, arg DeleteIdentityParams) (int64, error)
- func (q *Queries) DeleteImport(ctx context.Context, arg DeleteImportParams) (int64, error)
- func (q *Queries) DeleteImportRows(ctx context.Context, importID uuid.UUID) error
- func (q *Queries) DeleteMember(ctx context.Context, arg DeleteMemberParams) (int64, error)
- func (q *Queries) DeleteOldNotifications(ctx context.Context, days int32) (int64, error)
- func (q *Queries) DeletePasskey(ctx context.Context, arg DeletePasskeyParams) (int64, error)
- func (q *Queries) DeletePendingEmailChanges(ctx context.Context, userID uuid.UUID) (int64, error)
- func (q *Queries) DeleteRecoveryCodes(ctx context.Context, userID uuid.UUID) error
- func (q *Queries) DeleteRole(ctx context.Context, roleID uuid.UUID) (int64, error)
- func (q *Queries) DeleteSavedView(ctx context.Context, arg DeleteSavedViewParams) (int64, error)
- func (q *Queries) DeleteSegment(ctx context.Context, arg DeleteSegmentParams) (int64, error)
- func (q *Queries) DeleteStaleThrottle(ctx context.Context) (int64, error)
- func (q *Queries) DeleteSuppression(ctx context.Context, arg DeleteSuppressionParams) (int64, error)
- func (q *Queries) DeliverabilityProviderStreams(ctx context.Context, workspaceID uuid.UUID) ([]DeliverabilityProviderStreamsRow, error)
- func (q *Queries) DeliverabilityWarmupPlans(ctx context.Context, workspaceID uuid.UUID) ([]DeliverabilityWarmupPlansRow, error)
- func (q *Queries) DeliverabilityWorkspaces(ctx context.Context) ([]uuid.UUID, error)
- func (q *Queries) DomCreate(ctx context.Context, arg DomCreateParams) (SendingDomain, error)
- func (q *Queries) DomDMARCReports(ctx context.Context, workspaceID uuid.UUID) (string, error)
- func (q *Queries) DomDelete(ctx context.Context, id uuid.UUID) error
- func (q *Queries) DomDue(ctx context.Context, arg DomDueParams) ([]uuid.UUID, error)
- func (q *Queries) DomGet(ctx context.Context, arg DomGetParams) (SendingDomain, error)
- func (q *Queries) DomGetAny(ctx context.Context, id uuid.UUID) (SendingDomain, error)
- func (q *Queries) DomGetByName(ctx context.Context, arg DomGetByNameParams) (SendingDomain, error)
- func (q *Queries) DomList(ctx context.Context, workspaceID uuid.UUID) ([]SendingDomain, error)
- func (q *Queries) DomSaveCheck(ctx context.Context, arg DomSaveCheckParams) error
- func (q *Queries) DomUpdateNote(ctx context.Context, arg DomUpdateNoteParams) error
- func (q *Queries) DomUpdateRecords(ctx context.Context, arg DomUpdateRecordsParams) error
- func (q *Queries) DomUpdateTracking(ctx context.Context, arg DomUpdateTrackingParams) error
- func (q *Queries) EmailTaken(ctx context.Context, arg EmailTakenParams) (bool, error)
- func (q *Queries) EmailTemplateNameTaken(ctx context.Context, arg EmailTemplateNameTakenParams) (bool, error)
- func (q *Queries) EnableAuditPurge(ctx context.Context) error
- func (q *Queries) EnabledSSOProviders(ctx context.Context) ([]EnabledSSOProvidersRow, error)
- func (q *Queries) ExitAutomationRuns(ctx context.Context, arg ExitAutomationRunsParams) (int64, error)
- func (q *Queries) FailStaleDeliverabilityCheckRuns(ctx context.Context, aliveAfter time.Time) (int64, error)
- func (q *Queries) FinishDeliverabilityCheckRun(ctx context.Context, arg FinishDeliverabilityCheckRunParams) error
- func (q *Queries) FinishImport(ctx context.Context, arg FinishImportParams) error
- func (q *Queries) FormAllowOrigin(ctx context.Context, arg FormAllowOriginParams) (Form, error)
- func (q *Queries) FormBlockedOrigins(ctx context.Context, arg FormBlockedOriginsParams) ([]FormBlockedOriginsRow, error)
- func (q *Queries) FormBumpDaily(ctx context.Context, arg FormBumpDailyParams) error
- func (q *Queries) FormBumpTotals(ctx context.Context, arg FormBumpTotalsParams) error
- func (q *Queries) FormByPublicID(ctx context.Context, arg FormByPublicIDParams) (Form, error)
- func (q *Queries) FormBySlug(ctx context.Context, arg FormBySlugParams) (Form, error)
- func (q *Queries) FormChallengeInsert(ctx context.Context, arg FormChallengeInsertParams) error
- func (q *Queries) FormChallengeLive(ctx context.Context, arg FormChallengeLiveParams) (bool, error)
- func (q *Queries) FormChallengeTake(ctx context.Context, arg FormChallengeTakeParams) (FormChallenge, error)
- func (q *Queries) FormChallengesPurge(ctx context.Context, at time.Time) (int64, error)
- func (q *Queries) FormDelete(ctx context.Context, arg FormDeleteParams) (int64, error)
- func (q *Queries) FormDismissOrigin(ctx context.Context, arg FormDismissOriginParams) (int64, error)
- func (q *Queries) FormGet(ctx context.Context, arg FormGetParams) (Form, error)
- func (q *Queries) FormInsert(ctx context.Context, arg FormInsertParams) (Form, error)
- func (q *Queries) FormLastSubmissionForContact(ctx context.Context, contactID uuid.UUID) (FormLastSubmissionForContactRow, error)
- func (q *Queries) FormPublicIDTaken(ctx context.Context, arg FormPublicIDTakenParams) (bool, error)
- func (q *Queries) FormRecordRejection(ctx context.Context, arg FormRecordRejectionParams) error
- func (q *Queries) FormRename(ctx context.Context, arg FormRenameParams) (Form, error)
- func (q *Queries) FormSetStatus(ctx context.Context, arg FormSetStatusParams) (Form, error)
- func (q *Queries) FormSlugTaken(ctx context.Context, arg FormSlugTakenParams) (bool, error)
- func (q *Queries) FormStatsSince(ctx context.Context, arg FormStatsSinceParams) ([]FormStatsSinceRow, error)
- func (q *Queries) FormSubmissionByID(ctx context.Context, arg FormSubmissionByIDParams) (FormSubmission, error)
- func (q *Queries) FormSubmissionInsert(ctx context.Context, arg FormSubmissionInsertParams) error
- func (q *Queries) FormSubmissionMarkAttempt(ctx context.Context, id uuid.UUID) error
- func (q *Queries) FormSubmissionMarkReminded(ctx context.Context, arg FormSubmissionMarkRemindedParams) error
- func (q *Queries) FormSubmissionMarkSent(ctx context.Context, arg FormSubmissionMarkSentParams) error
- func (q *Queries) FormSubmissionSettle(ctx context.Context, arg FormSubmissionSettleParams) error
- func (q *Queries) FormSubmissionsConfirm(ctx context.Context, arg FormSubmissionsConfirmParams) ([]FormSubmissionsConfirmRow, error)
- func (q *Queries) FormSubmissionsToRemind(ctx context.Context, arg FormSubmissionsToRemindParams) ([]FormSubmissionsToRemindRow, error)
- func (q *Queries) FormSubmissionsToSend(ctx context.Context, arg FormSubmissionsToSendParams) ([]FormSubmissionsToSendRow, error)
- func (q *Queries) FormUpdate(ctx context.Context, arg FormUpdateParams) (Form, error)
- func (q *Queries) FormWaitingCount(ctx context.Context, arg FormWaitingCountParams) (int64, error)
- func (q *Queries) FormWaitingSubmissions(ctx context.Context, arg FormWaitingSubmissionsParams) ([]FormWaitingSubmissionsRow, error)
- func (q *Queries) FormsDefaultSender(ctx context.Context, workspaceID uuid.UUID) (FormsDefaultSenderRow, error)
- func (q *Queries) FormsList(ctx context.Context, workspaceID uuid.UUID) ([]Form, error)
- func (q *Queries) FormsRemoveBrandingKeys(ctx context.Context, arg FormsRemoveBrandingKeysParams) error
- func (q *Queries) FormsUpdateBranding(ctx context.Context, arg FormsUpdateBrandingParams) (json.RawMessage, error)
- func (q *Queries) FormsWorkspaceBranding(ctx context.Context, id uuid.UUID) (json.RawMessage, error)
- func (q *Queries) GetAPIKey(ctx context.Context, arg GetAPIKeyParams) (ApiKey, error)
- func (q *Queries) GetAPIKeyByToken(ctx context.Context, tokenHash []byte) (GetAPIKeyByTokenRow, error)
- func (q *Queries) GetAudienceState(ctx context.Context, workspaceID uuid.UUID) (AudienceState, error)
- func (q *Queries) GetAuditEvent(ctx context.Context, id uuid.UUID) (AuditEvent, error)
- func (q *Queries) GetAutomation(ctx context.Context, arg GetAutomationParams) (GetAutomationRow, error)
- func (q *Queries) GetAutomationEmailVersion(ctx context.Context, arg GetAutomationEmailVersionParams) (GetAutomationEmailVersionRow, error)
- func (q *Queries) GetAutomationRunForUpdate(ctx context.Context, id uuid.UUID) (GetAutomationRunForUpdateRow, error)
- func (q *Queries) GetAutomationStepSecret(ctx context.Context, arg GetAutomationStepSecretParams) ([]byte, error)
- func (q *Queries) GetAutomationVersion(ctx context.Context, arg GetAutomationVersionParams) (GetAutomationVersionRow, error)
- func (q *Queries) GetAvatar(ctx context.Context, userID uuid.UUID) (UserAvatar, error)
- func (q *Queries) GetChallenge(ctx context.Context, arg GetChallengeParams) (AuthChallenge, error)
- func (q *Queries) GetComposerCampaign(ctx context.Context, arg GetComposerCampaignParams) (GetComposerCampaignRow, error)
- func (q *Queries) GetComposerSender(ctx context.Context, arg GetComposerSenderParams) (GetComposerSenderRow, error)
- func (q *Queries) GetComposerVersion(ctx context.Context, arg GetComposerVersionParams) (GetComposerVersionRow, error)
- func (q *Queries) GetContact(ctx context.Context, arg GetContactParams) (Contact, error)
- func (q *Queries) GetContactByEmail(ctx context.Context, arg GetContactByEmailParams) (Contact, error)
- func (q *Queries) GetContactPreferences(ctx context.Context, contactID uuid.UUID) (ContactPreference, error)
- func (q *Queries) GetCustomField(ctx context.Context, arg GetCustomFieldParams) (CustomField, error)
- func (q *Queries) GetDeliverabilityBlocklistListing(ctx context.Context, arg GetDeliverabilityBlocklistListingParams) (BlocklistResult, error)
- func (q *Queries) GetDeliverabilityCheckRun(ctx context.Context, arg GetDeliverabilityCheckRunParams) (DeliverabilityCheckRun, error)
- func (q *Queries) GetEmailTemplate(ctx context.Context, arg GetEmailTemplateParams) (GetEmailTemplateRow, error)
- func (q *Queries) GetHostReputeConnection(ctx context.Context, workspaceID uuid.UUID) (HostreputeConnection, error)
- func (q *Queries) GetHostReputeConnectionForUpdate(ctx context.Context, workspaceID uuid.UUID) (HostreputeConnection, error)
- func (q *Queries) GetIdentity(ctx context.Context, arg GetIdentityParams) (UserIdentity, error)
- func (q *Queries) GetImport(ctx context.Context, arg GetImportParams) (Import, error)
- func (q *Queries) GetImportByID(ctx context.Context, id uuid.UUID) (Import, error)
- func (q *Queries) GetInstanceSettings(ctx context.Context) (InstanceSetting, error)
- func (q *Queries) GetInvitationByToken(ctx context.Context, tokenHash []byte) (GetInvitationByTokenRow, error)
- func (q *Queries) GetInvitationView(ctx context.Context, tokenHash []byte) (GetInvitationViewRow, error)
- func (q *Queries) GetList(ctx context.Context, arg GetListParams) (List, error)
- func (q *Queries) GetMXCache(ctx context.Context, arg GetMXCacheParams) ([]GetMXCacheRow, error)
- func (q *Queries) GetMediaAsset(ctx context.Context, arg GetMediaAssetParams) (GetMediaAssetRow, error)
- func (q *Queries) GetMediaAssetData(ctx context.Context, id uuid.UUID) (GetMediaAssetDataRow, error)
- func (q *Queries) GetMember(ctx context.Context, arg GetMemberParams) (GetMemberRow, error)
- func (q *Queries) GetMembership(ctx context.Context, arg GetMembershipParams) (GetMembershipRow, error)
- func (q *Queries) GetNotificationSettings(ctx context.Context, userID uuid.UUID) (NotificationSetting, error)
- func (q *Queries) GetPasskeyByCredential(ctx context.Context, credentialID []byte) (UserPasskey, error)
- func (q *Queries) GetPasswordReset(ctx context.Context, tokenHash []byte) (PasswordReset, error)
- func (q *Queries) GetPendingEmailChange(ctx context.Context, userID uuid.UUID) (EmailChange, error)
- func (q *Queries) GetRole(ctx context.Context, id uuid.UUID) (Role, error)
- func (q *Queries) GetRoleByKey(ctx context.Context, arg GetRoleByKeyParams) (Role, error)
- func (q *Queries) GetSavedView(ctx context.Context, arg GetSavedViewParams) (SavedView, error)
- func (q *Queries) GetSegment(ctx context.Context, arg GetSegmentParams) (Segment, error)
- func (q *Queries) GetSessionByToken(ctx context.Context, tokenHash []byte) (Session, error)
- func (q *Queries) GetSignInThrottle(ctx context.Context, email string) (SignInThrottle, error)
- func (q *Queries) GetSuppression(ctx context.Context, arg GetSuppressionParams) (Suppression, error)
- func (q *Queries) GetSuppressionByEmail(ctx context.Context, arg GetSuppressionByEmailParams) (Suppression, error)
- func (q *Queries) GetUsablePasswordReset(ctx context.Context, tokenHash []byte) (GetUsablePasswordResetRow, error)
- func (q *Queries) GetUser(ctx context.Context, id uuid.UUID) (User, error)
- func (q *Queries) GetUserByEmail(ctx context.Context, email string) (User, error)
- func (q *Queries) GetUserByWebAuthnID(ctx context.Context, webauthnID []byte) (User, error)
- func (q *Queries) GetUserPasskey(ctx context.Context, arg GetUserPasskeyParams) (UserPasskey, error)
- func (q *Queries) GetUserSession(ctx context.Context, arg GetUserSessionParams) (Session, error)
- func (q *Queries) GetWorkspace(ctx context.Context, id uuid.UUID) (Workspace, error)
- func (q *Queries) GetWorkspaceBySlug(ctx context.Context, slug string) (Workspace, error)
- func (q *Queries) HealthViews(ctx context.Context, workspaceID uuid.UUID) ([]SavedView, error)
- func (q *Queries) HideMediaAsset(ctx context.Context, arg HideMediaAssetParams) (int64, error)
- func (q *Queries) HooksClaimDelivery(ctx context.Context, id uuid.UUID) (HooksClaimDeliveryRow, error)
- func (q *Queries) HooksCreate(ctx context.Context, arg HooksCreateParams) (Webhook, error)
- func (q *Queries) HooksDelete(ctx context.Context, arg HooksDeleteParams) (int64, error)
- func (q *Queries) HooksDeliveries(ctx context.Context, arg HooksDeliveriesParams) ([]HooksDeliveriesRow, error)
- func (q *Queries) HooksDue(ctx context.Context, lim int32) ([]uuid.UUID, error)
- func (q *Queries) HooksFinishDelivery(ctx context.Context, arg HooksFinishDeliveryParams) error
- func (q *Queries) HooksGet(ctx context.Context, arg HooksGetParams) (Webhook, error)
- func (q *Queries) HooksGetDelivery(ctx context.Context, arg HooksGetDeliveryParams) (HooksGetDeliveryRow, error)
- func (q *Queries) HooksInsertDelivery(ctx context.Context, arg HooksInsertDeliveryParams) error
- func (q *Queries) HooksList(ctx context.Context, workspaceID uuid.UUID) ([]HooksListRow, error)
- func (q *Queries) HooksMatching(ctx context.Context, arg HooksMatchingParams) ([]HooksMatchingRow, error)
- func (q *Queries) HooksPurgeDeliveries(ctx context.Context) (int64, error)
- func (q *Queries) HooksRecordResult(ctx context.Context, arg HooksRecordResultParams) error
- func (q *Queries) HooksReleaseHeld(ctx context.Context, webhookID uuid.UUID) ([]uuid.UUID, error)
- func (q *Queries) HooksRequeue(ctx context.Context, arg HooksRequeueParams) ([]uuid.UUID, error)
- func (q *Queries) HooksSetEnabled(ctx context.Context, arg HooksSetEnabledParams) error
- func (q *Queries) HooksSetSecret(ctx context.Context, arg HooksSetSecretParams) error
- func (q *Queries) HooksStaleDelivering(ctx context.Context) error
- func (q *Queries) HooksUpdate(ctx context.Context, arg HooksUpdateParams) (Webhook, error)
- func (q *Queries) HostReputeAssetSources(ctx context.Context, workspaceID uuid.UUID) ([]HostReputeAssetSourcesRow, error)
- func (q *Queries) HostReputeCountAgents(ctx context.Context, workspaceID uuid.UUID) (int64, error)
- func (q *Queries) HostReputeCountWebhooks(ctx context.Context, workspaceID uuid.UUID) (HostReputeCountWebhooksRow, error)
- func (q *Queries) HostReputeDataSourceVia(ctx context.Context, workspaceID uuid.UUID) (HostReputeDataSourceViaRow, error)
- func (q *Queries) HostReputeProviderForIP(ctx context.Context, arg HostReputeProviderForIPParams) (HostReputeProviderForIPRow, error)
- func (q *Queries) HostReputeUserName(ctx context.Context, id uuid.UUID) (HostReputeUserNameRow, error)
- func (q *Queries) HostReputeWorkspaceSlug(ctx context.Context, id uuid.UUID) (string, error)
- func (q *Queries) ImportJobs(ctx context.Context, arg ImportJobsParams) ([]ImportJobsRow, error)
- func (q *Queries) ImportRowsAfter(ctx context.Context, arg ImportRowsAfterParams) ([]ImportRow, error)
- func (q *Queries) ImportStatusCounts(ctx context.Context, importID uuid.UUID) ([]ImportStatusCountsRow, error)
- func (q *Queries) IngestAddSuppression(ctx context.Context, arg IngestAddSuppressionParams) (uuid.UUID, error)
- func (q *Queries) IngestBumpCounters(ctx context.Context, arg IngestBumpCountersParams) error
- func (q *Queries) IngestEventLog(ctx context.Context, arg IngestEventLogParams) ([]IngestEventLogRow, error)
- func (q *Queries) IngestEventLogCount(ctx context.Context, arg IngestEventLogCountParams) (int64, error)
- func (q *Queries) IngestGetRaw(ctx context.Context, id uuid.UUID) (ProviderRawEvent, error)
- func (q *Queries) IngestInsertEvent(ctx context.Context, arg IngestInsertEventParams) (uuid.UUID, error)
- func (q *Queries) IngestInsertRaw(ctx context.Context, arg IngestInsertRawParams) error
- func (q *Queries) IngestMarkNormalized(ctx context.Context, arg IngestMarkNormalizedParams) error
- func (q *Queries) IngestMessageByID(ctx context.Context, arg IngestMessageByIDParams) (IngestMessageByIDRow, error)
- func (q *Queries) IngestMessageByProviderID(ctx context.Context, arg IngestMessageByProviderIDParams) (IngestMessageByProviderIDRow, error)
- func (q *Queries) IngestPurgeRaw(ctx context.Context, before time.Time) (int64, error)
- func (q *Queries) IngestSetContactStatus(ctx context.Context, arg IngestSetContactStatusParams) error
- func (q *Queries) IngestStaleRaw(ctx context.Context, arg IngestStaleRawParams) ([]uuid.UUID, error)
- func (q *Queries) IngestUpdateMessage(ctx context.Context, arg IngestUpdateMessageParams) error
- func (q *Queries) InsertAuditEvent(ctx context.Context, arg InsertAuditEventParams) error
- func (q *Queries) InsertAutomationEmailVersion(ctx context.Context, arg InsertAutomationEmailVersionParams) error
- func (q *Queries) InsertAutomationEvent(ctx context.Context, arg InsertAutomationEventParams) error
- func (q *Queries) InsertAutomationMessage(ctx context.Context, arg InsertAutomationMessageParams) (uuid.UUID, error)
- func (q *Queries) InsertAutomationRun(ctx context.Context, arg InsertAutomationRunParams) (int64, error)
- func (q *Queries) InsertAutomationVersion(ctx context.Context, arg InsertAutomationVersionParams) error
- func (q *Queries) InsertAutomationWebhookCall(ctx context.Context, arg InsertAutomationWebhookCallParams) error
- func (q *Queries) InsertComposerCampaign(ctx context.Context, arg InsertComposerCampaignParams) error
- func (q *Queries) InsertComposerVersion(ctx context.Context, arg InsertComposerVersionParams) error
- func (q *Queries) InsertConsentEvent(ctx context.Context, arg InsertConsentEventParams) error
- func (q *Queries) InsertDeliverabilityBlocklistResult(ctx context.Context, arg InsertDeliverabilityBlocklistResultParams) error
- func (q *Queries) InsertDeliverabilityIncident(ctx context.Context, arg InsertDeliverabilityIncidentParams) (uuid.UUID, error)
- func (q *Queries) InsertEmailTemplate(ctx context.Context, arg InsertEmailTemplateParams) error
- func (q *Queries) InsertImportLog(ctx context.Context, arg InsertImportLogParams) error
- func (q *Queries) InsertMediaAsset(ctx context.Context, arg InsertMediaAssetParams) (InsertMediaAssetRow, error)
- func (q *Queries) InsertNotification(ctx context.Context, arg InsertNotificationParams) (int64, error)
- func (q *Queries) InsertSuppression(ctx context.Context, arg InsertSuppressionParams) (Suppression, error)
- func (q *Queries) InstanceAdminAdminNames(ctx context.Context) ([]InstanceAdminAdminNamesRow, error)
- func (q *Queries) InstanceAdminCancelScheduled(ctx context.Context, workspaceID uuid.UUID) (int64, error)
- func (q *Queries) InstanceAdminCountAdmins(ctx context.Context) (int64, error)
- func (q *Queries) InstanceAdminDeactivateMemberships(ctx context.Context, arg InstanceAdminDeactivateMembershipsParams) (int64, error)
- func (q *Queries) InstanceAdminDeactivateUser(ctx context.Context, arg InstanceAdminDeactivateUserParams) (int64, error)
- func (q *Queries) InstanceAdminIdentities(ctx context.Context) ([]InstanceAdminIdentitiesRow, error)
- func (q *Queries) InstanceAdminLastDomainRejection(ctx context.Context) (InstanceAdminLastDomainRejectionRow, error)
- func (q *Queries) InstanceAdminLockAdmins(ctx context.Context) ([]uuid.UUID, error)
- func (q *Queries) InstanceAdminLockedCount(ctx context.Context) (InstanceAdminLockedCountRow, error)
- func (q *Queries) InstanceAdminMemberships(ctx context.Context) ([]InstanceAdminMembershipsRow, error)
- func (q *Queries) InstanceAdminPasswordHistory(ctx context.Context, arg InstanceAdminPasswordHistoryParams) ([]string, error)
- func (q *Queries) InstanceAdminPurgeWorkspace(ctx context.Context, id uuid.UUID) (InstanceAdminPurgeWorkspaceRow, error)
- func (q *Queries) InstanceAdminReactivateMemberships(ctx context.Context, arg InstanceAdminReactivateMembershipsParams) (int64, error)
- func (q *Queries) InstanceAdminReactivateUser(ctx context.Context, id uuid.UUID) (int64, error)
- func (q *Queries) InstanceAdminRecordRelease(ctx context.Context, latestRelease json.RawMessage) error
- func (q *Queries) InstanceAdminRecordReleaseError(ctx context.Context, error string) error
- func (q *Queries) InstanceAdminResetTwoFactor(ctx context.Context, arg InstanceAdminResetTwoFactorParams) error
- func (q *Queries) InstanceAdminRestoreWorkspace(ctx context.Context, arg InstanceAdminRestoreWorkspaceParams) error
- func (q *Queries) InstanceAdminRevokeKeysCreatedBy(ctx context.Context, userID *uuid.UUID) (int64, error)
- func (q *Queries) InstanceAdminSavePolicy(ctx context.Context, arg InstanceAdminSavePolicyParams) (InstanceSetting, error)
- func (q *Queries) InstanceAdminSaveSettings(ctx context.Context, arg InstanceAdminSaveSettingsParams) (InstanceSetting, error)
- func (q *Queries) InstanceAdminSaveSocial(ctx context.Context, arg InstanceAdminSaveSocialParams) error
- func (q *Queries) InstanceAdminSetLogo(ctx context.Context, logoSvg *string) error
- func (q *Queries) InstanceAdminSetURLCheck(ctx context.Context, result json.RawMessage) error
- func (q *Queries) InstanceAdminSetUpdateCheck(ctx context.Context, enabled bool) error
- func (q *Queries) InstanceAdminSignInEvents(ctx context.Context, lim int32) ([]InstanceAdminSignInEventsRow, error)
- func (q *Queries) InstanceAdminSoftDeleteWorkspace(ctx context.Context, id uuid.UUID) (*time.Time, error)
- func (q *Queries) InstanceAdminSoleOwners(ctx context.Context) ([]InstanceAdminSoleOwnersRow, error)
- func (q *Queries) InstanceAdminSoleOwnerships(ctx context.Context, userID uuid.UUID) ([]InstanceAdminSoleOwnershipsRow, error)
- func (q *Queries) InstanceAdminSystemProvider(ctx context.Context) (InstanceAdminSystemProviderRow, error)
- func (q *Queries) InstanceAdminUnlockUser(ctx context.Context, id uuid.UUID) error
- func (q *Queries) InstanceAdminUser(ctx context.Context, id uuid.UUID) (InstanceAdminUserRow, error)
- func (q *Queries) InstanceAdminUsers(ctx context.Context) ([]InstanceAdminUsersRow, error)
- func (q *Queries) InstanceAdminUsersInGrace(ctx context.Context) ([]InstanceAdminUsersInGraceRow, error)
- func (q *Queries) InstanceAdminWorkspace(ctx context.Context, id uuid.UUID) (Workspace, error)
- func (q *Queries) InstanceAdminWorkspaces(ctx context.Context) ([]InstanceAdminWorkspacesRow, error)
- func (q *Queries) InstanceAuditCount(ctx context.Context) (int64, error)
- func (q *Queries) InstanceAuditExport(ctx context.Context, arg InstanceAuditExportParams) ([]InstanceAuditExportRow, error)
- func (q *Queries) InstanceAuditGet(ctx context.Context, id uuid.UUID) (InstanceAuditGetRow, error)
- func (q *Queries) InstanceAuditList(ctx context.Context, arg InstanceAuditListParams) ([]InstanceAuditListRow, error)
- func (q *Queries) InstanceAuditRelated(ctx context.Context, arg InstanceAuditRelatedParams) ([]InstanceAuditRelatedRow, error)
- func (q *Queries) InstanceAuditSetRetention(ctx context.Context, days int32) error
- func (q *Queries) InstanceAuditStreamAdvance(ctx context.Context, arg InstanceAuditStreamAdvanceParams) error
- func (q *Queries) InstanceAuditStreamBatch(ctx context.Context, arg InstanceAuditStreamBatchParams) ([]AuditEvent, error)
- func (q *Queries) InstanceAuditStreamConfigure(ctx context.Context, arg InstanceAuditStreamConfigureParams) error
- func (q *Queries) InstanceAuditStreamSetStatus(ctx context.Context, status json.RawMessage) error
- func (q *Queries) InstanceAuditStreamState(ctx context.Context) (InstanceAuditStreamStateRow, error)
- func (q *Queries) InstanceAuditWorkspaceStreams(ctx context.Context) ([]InstanceAuditWorkspaceStreamsRow, error)
- func (q *Queries) InvalidatePasswordResets(ctx context.Context, userID uuid.UUID) error
- func (q *Queries) KeysAgentActions(ctx context.Context, arg KeysAgentActionsParams) ([]KeysAgentActionsRow, error)
- func (q *Queries) KeysByToken(ctx context.Context, tokenHash []byte) (KeysByTokenRow, error)
- func (q *Queries) KeysCountActive(ctx context.Context, workspaceID uuid.UUID) (KeysCountActiveRow, error)
- func (q *Queries) KeysCreate(ctx context.Context, arg KeysCreateParams) (KeysCreateRow, error)
- func (q *Queries) KeysDelete(ctx context.Context, arg KeysDeleteParams) (int64, error)
- func (q *Queries) KeysFirstRejection(ctx context.Context, apiKeyID uuid.UUID) (time.Time, error)
- func (q *Queries) KeysGet(ctx context.Context, arg KeysGetParams) (KeysGetRow, error)
- func (q *Queries) KeysList(ctx context.Context, arg KeysListParams) ([]KeysListRow, error)
- func (q *Queries) KeysRecordRejection(ctx context.Context, arg KeysRecordRejectionParams) error
- func (q *Queries) KeysRejections(ctx context.Context, apiKeyID uuid.UUID) (KeysRejectionsRow, error)
- func (q *Queries) KeysRevoke(ctx context.Context, arg KeysRevokeParams) (int64, error)
- func (q *Queries) KeysTouch(ctx context.Context, arg KeysTouchParams) error
- func (q *Queries) LastAuditAt(ctx context.Context, arg LastAuditAtParams) (time.Time, error)
- func (q *Queries) LastDeliverabilityAssetCheckAt(ctx context.Context, workspaceID uuid.UUID) (time.Time, error)
- func (q *Queries) LastPasswordResetAt(ctx context.Context, userID uuid.UUID) (time.Time, error)
- func (q *Queries) LastRecoveryCodeUse(ctx context.Context, userID uuid.UUID) (time.Time, error)
- func (q *Queries) LatestDeliverabilityCheckRun(ctx context.Context, workspaceID uuid.UUID) (DeliverabilityCheckRun, error)
- func (q *Queries) LatestFinishedDeliverabilityCheckRun(ctx context.Context, arg LatestFinishedDeliverabilityCheckRunParams) (DeliverabilityCheckRun, error)
- func (q *Queries) LatestFinishedImport(ctx context.Context, workspaceID uuid.UUID) (Import, error)
- func (q *Queries) ListAPIKeys(ctx context.Context, arg ListAPIKeysParams) ([]ListAPIKeysRow, error)
- func (q *Queries) ListAuditEvents(ctx context.Context, arg ListAuditEventsParams) ([]AuditEvent, error)
- func (q *Queries) ListAutomationAlerts(ctx context.Context, workspaceID uuid.UUID) ([]ListAutomationAlertsRow, error)
- func (q *Queries) ListAutomationEmails(ctx context.Context, workspaceID uuid.UUID) ([]ListAutomationEmailsRow, error)
- func (q *Queries) ListAutomationHeldAlerts(ctx context.Context) ([]ListAutomationHeldAlertsRow, error)
- func (q *Queries) ListAutomationPublishedGraphs(ctx context.Context, automationID uuid.UUID) ([]ListAutomationPublishedGraphsRow, error)
- func (q *Queries) ListAutomationRunsForMigration(ctx context.Context, arg ListAutomationRunsForMigrationParams) ([]ListAutomationRunsForMigrationRow, error)
- func (q *Queries) ListAutomationVersions(ctx context.Context, automationID uuid.UUID) ([]ListAutomationVersionsRow, error)
- func (q *Queries) ListAutomationWebhookCalls(ctx context.Context, arg ListAutomationWebhookCallsParams) ([]ListAutomationWebhookCallsRow, error)
- func (q *Queries) ListAutomations(ctx context.Context, workspaceID uuid.UUID) ([]ListAutomationsRow, error)
- func (q *Queries) ListCampaignIncidentSummaries(ctx context.Context, campaignIds []uuid.UUID) ([]ListCampaignIncidentSummariesRow, error)
- func (q *Queries) ListCampaignRouteShares(ctx context.Context, campaignIds []uuid.UUID) ([]ListCampaignRouteSharesRow, error)
- func (q *Queries) ListCampaigns(ctx context.Context, arg ListCampaignsParams) ([]ListCampaignsRow, error)
- func (q *Queries) ListComposerSenders(ctx context.Context, workspaceID uuid.UUID) ([]ListComposerSendersRow, error)
- func (q *Queries) ListComposerVersions(ctx context.Context, arg ListComposerVersionsParams) ([]ListComposerVersionsRow, error)
- func (q *Queries) ListConnectedHostRepute(ctx context.Context) ([]uuid.UUID, error)
- func (q *Queries) ListCustomFields(ctx context.Context, workspaceID uuid.UUID) ([]CustomField, error)
- func (q *Queries) ListDeletedAt(ctx context.Context, arg ListDeletedAtParams) (*time.Time, error)
- func (q *Queries) ListDeliverabilityAssetChecks(ctx context.Context, workspaceID uuid.UUID) ([]DeliverabilityAssetCheck, error)
- func (q *Queries) ListDeliverabilityBlocklistResults(ctx context.Context, workspaceID uuid.UUID) ([]BlocklistResult, error)
- func (q *Queries) ListDeliverabilityDMARCReports(ctx context.Context, arg ListDeliverabilityDMARCReportsParams) ([]DmarcReport, error)
- func (q *Queries) ListDeliverabilityIncidents(ctx context.Context, arg ListDeliverabilityIncidentsParams) ([]ListDeliverabilityIncidentsRow, error)
- func (q *Queries) ListDeliverabilityPostmasterDays(ctx context.Context, arg ListDeliverabilityPostmasterDaysParams) ([]PostmasterDaily, error)
- func (q *Queries) ListDeliverabilitySNDSDays(ctx context.Context, arg ListDeliverabilitySNDSDaysParams) ([]SndsDaily, error)
- func (q *Queries) ListEmailTemplates(ctx context.Context, arg ListEmailTemplatesParams) ([]ListEmailTemplatesRow, error)
- func (q *Queries) ListGrowthSince(ctx context.Context, arg ListGrowthSinceParams) ([]ListGrowthSinceRow, error)
- func (q *Queries) ListIdentities(ctx context.Context, userID uuid.UUID) ([]UserIdentity, error)
- func (q *Queries) ListIdentitiesWithProvider(ctx context.Context, userID uuid.UUID) ([]ListIdentitiesWithProviderRow, error)
- func (q *Queries) ListImpactAutomations(ctx context.Context, arg ListImpactAutomationsParams) ([]ListImpactAutomationsRow, error)
- func (q *Queries) ListImpactCampaigns(ctx context.Context, arg ListImpactCampaignsParams) ([]ListImpactCampaignsRow, error)
- func (q *Queries) ListImpactForms(ctx context.Context, arg ListImpactFormsParams) ([]ListImpactFormsRow, error)
- func (q *Queries) ListImpactMembers(ctx context.Context, id uuid.UUID) (ListImpactMembersRow, error)
- func (q *Queries) ListImpactOtherLists(ctx context.Context, id uuid.UUID) ([]ListImpactOtherListsRow, error)
- func (q *Queries) ListImportLog(ctx context.Context, importID uuid.UUID) ([]ImportLog, error)
- func (q *Queries) ListImports(ctx context.Context, workspaceID uuid.UUID) ([]ListImportsRow, error)
- func (q *Queries) ListListsWithCounts(ctx context.Context, workspaceID uuid.UUID) ([]ListListsWithCountsRow, error)
- func (q *Queries) ListMediaAssets(ctx context.Context, arg ListMediaAssetsParams) ([]ListMediaAssetsRow, error)
- func (q *Queries) ListMembers(ctx context.Context, workspaceID uuid.UUID) ([]ListMembersRow, error)
- func (q *Queries) ListMembersWithRoles(ctx context.Context, workspaceID uuid.UUID) ([]ListMembersWithRolesRow, error)
- func (q *Queries) ListMembershipsOfUser(ctx context.Context, userID uuid.UUID) ([]ListMembershipsOfUserRow, error)
- func (q *Queries) ListNameTaken(ctx context.Context, arg ListNameTakenParams) (bool, error)
- func (q *Queries) ListNamesOfLists(ctx context.Context, arg ListNamesOfListsParams) ([]ListNamesOfListsRow, error)
- func (q *Queries) ListNotificationPreferences(ctx context.Context, userID uuid.UUID) ([]NotificationPreference, error)
- func (q *Queries) ListNotifications(ctx context.Context, arg ListNotificationsParams) ([]Notification, error)
- func (q *Queries) ListPasskeys(ctx context.Context, userID uuid.UUID) ([]UserPasskey, error)
- func (q *Queries) ListPauseAutomation(ctx context.Context, arg ListPauseAutomationParams) (int64, error)
- func (q *Queries) ListPauseForm(ctx context.Context, arg ListPauseFormParams) (int64, error)
- func (q *Queries) ListPendingEmailNotifications(ctx context.Context, userID uuid.UUID) ([]ListPendingEmailNotificationsRow, error)
- func (q *Queries) ListPendingInvitations(ctx context.Context, workspaceID uuid.UUID) ([]ListPendingInvitationsRow, error)
- func (q *Queries) ListRescheduleCampaign(ctx context.Context, arg ListRescheduleCampaignParams) (int64, error)
- func (q *Queries) ListResumeAutomation(ctx context.Context, arg ListResumeAutomationParams) (int64, error)
- func (q *Queries) ListResumeForm(ctx context.Context, arg ListResumeFormParams) (int64, error)
- func (q *Queries) ListRetiringAutomationVersions(ctx context.Context) ([]ListRetiringAutomationVersionsRow, error)
- func (q *Queries) ListRoles(ctx context.Context, workspaceID uuid.UUID) ([]ListRolesRow, error)
- func (q *Queries) ListSavedViews(ctx context.Context, arg ListSavedViewsParams) ([]SavedView, error)
- func (q *Queries) ListSegments(ctx context.Context, workspaceID uuid.UUID) ([]ListSegmentsRow, error)
- func (q *Queries) ListTierMix(ctx context.Context, workspaceID uuid.UUID) ([]ListTierMixRow, error)
- func (q *Queries) ListUnscheduleCampaign(ctx context.Context, arg ListUnscheduleCampaignParams) (int64, error)
- func (q *Queries) ListUserSessions(ctx context.Context, userID uuid.UUID) ([]Session, error)
- func (q *Queries) ListUserWorkspaces(ctx context.Context, userID uuid.UUID) ([]ListUserWorkspacesRow, error)
- func (q *Queries) ListUsers(ctx context.Context) ([]User, error)
- func (q *Queries) ListUsersWithPendingEmail(ctx context.Context) ([]uuid.UUID, error)
- func (q *Queries) ListWorkspaceLists(ctx context.Context, workspaceID uuid.UUID) ([]ListWorkspaceListsRow, error)
- func (q *Queries) ListWorkspaces(ctx context.Context) ([]Workspace, error)
- func (q *Queries) LiveAutomationsForTrigger(ctx context.Context, arg LiveAutomationsForTriggerParams) ([]LiveAutomationsForTriggerRow, error)
- func (q *Queries) LockAutomation(ctx context.Context, arg LockAutomationParams) (Automation, error)
- func (q *Queries) LockDeletedList(ctx context.Context, arg LockDeletedListParams) (List, error)
- func (q *Queries) LockList(ctx context.Context, arg LockListParams) (List, error)
- func (q *Queries) MarkAllNotificationsRead(ctx context.Context, arg MarkAllNotificationsReadParams) (int64, error)
- func (q *Queries) MarkAutomationEventProcessed(ctx context.Context, arg MarkAutomationEventProcessedParams) error
- func (q *Queries) MarkHostReputeSynced(ctx context.Context, arg MarkHostReputeSyncedParams) error
- func (q *Queries) MarkHostReputeTokenRejected(ctx context.Context, arg MarkHostReputeTokenRejectedParams) (int64, error)
- func (q *Queries) MarkNotificationRead(ctx context.Context, arg MarkNotificationReadParams) (int64, error)
- func (q *Queries) MarkReinviteRequested(ctx context.Context, id uuid.UUID) (int64, error)
- func (q *Queries) McpAddSuppression(ctx context.Context, arg McpAddSuppressionParams) (uuid.UUID, error)
- func (q *Queries) McpAutomations(ctx context.Context, workspaceID uuid.UUID) ([]McpAutomationsRow, error)
- func (q *Queries) McpBlocklists(ctx context.Context, workspaceID uuid.UUID) ([]McpBlocklistsRow, error)
- func (q *Queries) McpCampaignByMailbox(ctx context.Context, campaignID uuid.UUID) ([]McpCampaignByMailboxRow, error)
- func (q *Queries) McpCampaignByProvider(ctx context.Context, campaignID uuid.UUID) ([]McpCampaignByProviderRow, error)
- func (q *Queries) McpCampaignRoutes(ctx context.Context, campaignID uuid.UUID) ([]McpCampaignRoutesRow, error)
- func (q *Queries) McpCampaignTotals(ctx context.Context, campaignID uuid.UUID) (McpCampaignTotalsRow, error)
- func (q *Queries) McpCreateDraft(ctx context.Context, arg McpCreateDraftParams) (McpCreateDraftRow, error)
- func (q *Queries) McpCreateSegment(ctx context.Context, arg McpCreateSegmentParams) (McpCreateSegmentRow, error)
- func (q *Queries) McpDefaultRoutingRule(ctx context.Context, arg McpDefaultRoutingRuleParams) (McpDefaultRoutingRuleRow, error)
- func (q *Queries) McpFindCampaign(ctx context.Context, arg McpFindCampaignParams) (McpFindCampaignRow, error)
- func (q *Queries) McpGetRoutingRule(ctx context.Context, arg McpGetRoutingRuleParams) (McpGetRoutingRuleRow, error)
- func (q *Queries) McpLatestReadiness(ctx context.Context, campaignID uuid.UUID) (McpLatestReadinessRow, error)
- func (q *Queries) McpPostmaster(ctx context.Context, workspaceID uuid.UUID) ([]McpPostmasterRow, error)
- func (q *Queries) McpProviders(ctx context.Context, workspaceID uuid.UUID) ([]McpProvidersRow, error)
- func (q *Queries) McpRouting(ctx context.Context, workspaceID uuid.UUID) ([]McpRoutingRow, error)
- func (q *Queries) McpSearchContacts(ctx context.Context, arg McpSearchContactsParams) ([]McpSearchContactsRow, error)
- func (q *Queries) McpSendingDomains(ctx context.Context, workspaceID uuid.UUID) ([]McpSendingDomainsRow, error)
- func (q *Queries) McpSetRoutingSplits(ctx context.Context, arg McpSetRoutingSplitsParams) error
- func (q *Queries) McpUpdateDraft(ctx context.Context, arg McpUpdateDraftParams) (McpUpdateDraftRow, error)
- func (q *Queries) OpenAutomationAlert(ctx context.Context, arg OpenAutomationAlertParams) error
- func (q *Queries) OverviewCampaignRoutes(ctx context.Context, campaignID uuid.UUID) ([]OverviewCampaignRoutesRow, error)
- func (q *Queries) OverviewDraftCount(ctx context.Context, workspaceID uuid.UUID) (int64, error)
- func (q *Queries) OverviewLatestReadiness(ctx context.Context, campaignID uuid.UUID) (OverviewLatestReadinessRow, error)
- func (q *Queries) OverviewListChanges(ctx context.Context, arg OverviewListChangesParams) ([]OverviewListChangesRow, error)
- func (q *Queries) OverviewNextScheduled(ctx context.Context, arg OverviewNextScheduledParams) (OverviewNextScheduledRow, error)
- func (q *Queries) PauseAutomation(ctx context.Context, arg PauseAutomationParams) error
- func (q *Queries) ProvActiveFailovers(ctx context.Context, workspaceID uuid.UUID) ([]StreamFailover, error)
- func (q *Queries) ProvAwaitingCampaigns(ctx context.Context, arg ProvAwaitingCampaignsParams) ([]ProvAwaitingCampaignsRow, error)
- func (q *Queries) ProvAwaitingCount(ctx context.Context, arg ProvAwaitingCountParams) (ProvAwaitingCountRow, error)
- func (q *Queries) ProvAwaitingProviderIDs(ctx context.Context, arg ProvAwaitingProviderIDsParams) ([]string, error)
- func (q *Queries) ProvAwaitingStatus(ctx context.Context, arg ProvAwaitingStatusParams) ([]ProvAwaitingStatusRow, error)
- func (q *Queries) ProvBroadcastWeekly(ctx context.Context, arg ProvBroadcastWeeklyParams) (int64, error)
- func (q *Queries) ProvCallWindowTotals(ctx context.Context, arg ProvCallWindowTotalsParams) ([]ProvCallWindowTotalsRow, error)
- func (q *Queries) ProvCampaignRoutes(ctx context.Context, campaignID uuid.UUID) ([]ProvCampaignRoutesRow, error)
- func (q *Queries) ProvDailyTotals(ctx context.Context, arg ProvDailyTotalsParams) ([]ProvDailyTotalsRow, error)
- func (q *Queries) ProvDisconnect(ctx context.Context, id uuid.UUID) error
- func (q *Queries) ProvEndFailovers(ctx context.Context, arg ProvEndFailoversParams) ([]StreamFailover, error)
- func (q *Queries) ProvGet(ctx context.Context, arg ProvGetParams) (Provider, error)
- func (q *Queries) ProvGetAny(ctx context.Context, id uuid.UUID) (Provider, error)
- func (q *Queries) ProvGetByWebhookToken(ctx context.Context, arg ProvGetByWebhookTokenParams) (Provider, error)
- func (q *Queries) ProvHeldRoutes(ctx context.Context, arg ProvHeldRoutesParams) ([]ProvHeldRoutesRow, error)
- func (q *Queries) ProvIncidentsSince(ctx context.Context, arg ProvIncidentsSinceParams) ([]Incident, error)
- func (q *Queries) ProvInsertIncident(ctx context.Context, arg ProvInsertIncidentParams) error
- func (q *Queries) ProvLastConfirmed(ctx context.Context, arg ProvLastConfirmedParams) ([]ProvLastConfirmedRow, error)
- func (q *Queries) ProvListActive(ctx context.Context, workspaceID uuid.UUID) ([]Provider, error)
- func (q *Queries) ProvListAllActive(ctx context.Context) ([]Provider, error)
- func (q *Queries) ProvMembersWithNames(ctx context.Context, ids []uuid.UUID) ([]ProvMembersWithNamesRow, error)
- func (q *Queries) ProvPurgeCallWindows(ctx context.Context, before time.Time) (int64, error)
- func (q *Queries) ProvRawEventsByHour(ctx context.Context, arg ProvRawEventsByHourParams) ([]ProvRawEventsByHourRow, error)
- func (q *Queries) ProvRecordCall(ctx context.Context, arg ProvRecordCallParams) error
- func (q *Queries) ProvRecordDaily(ctx context.Context, arg ProvRecordDailyParams) error
- func (q *Queries) ProvRecordOutcome(ctx context.Context, arg ProvRecordOutcomeParams) error
- func (q *Queries) ProvReroutedByAutomation(ctx context.Context, arg ProvReroutedByAutomationParams) ([]ProvReroutedByAutomationRow, error)
- func (q *Queries) ProvResolveIncidents(ctx context.Context, arg ProvResolveIncidentsParams) error
- func (q *Queries) ProvSendingCampaignsOn(ctx context.Context, arg ProvSendingCampaignsOnParams) ([]ProvSendingCampaignsOnRow, error)
- func (q *Queries) ProvSentByKind(ctx context.Context, arg ProvSentByKindParams) ([]ProvSentByKindRow, error)
- func (q *Queries) ProvSentSince(ctx context.Context, arg ProvSentSinceParams) ([]ProvSentSinceRow, error)
- func (q *Queries) ProvSentThroughSince(ctx context.Context, arg ProvSentThroughSinceParams) (int64, error)
- func (q *Queries) ProvSetRouteStatus(ctx context.Context, arg ProvSetRouteStatusParams) (int64, error)
- func (q *Queries) ProvStartFailover(ctx context.Context, arg ProvStartFailoverParams) error
- func (q *Queries) ProvStreamVolume(ctx context.Context, arg ProvStreamVolumeParams) ([]ProvStreamVolumeRow, error)
- func (q *Queries) ProvTouchLastEvent(ctx context.Context, arg ProvTouchLastEventParams) error
- func (q *Queries) ProvUpdateCapabilities(ctx context.Context, arg ProvUpdateCapabilitiesParams) error
- func (q *Queries) ProvUpdateConfig(ctx context.Context, arg ProvUpdateConfigParams) error
- func (q *Queries) ProvUpdateCredentials(ctx context.Context, arg ProvUpdateCredentialsParams) error
- func (q *Queries) ProvUpdateHealth(ctx context.Context, arg ProvUpdateHealthParams) error
- func (q *Queries) ProvUpdateSettings(ctx context.Context, arg ProvUpdateSettingsParams) error
- func (q *Queries) ProvUpdateTracking(ctx context.Context, arg ProvUpdateTrackingParams) error
- func (q *Queries) ProviderNames(ctx context.Context, workspaceID uuid.UUID) ([]ProviderNamesRow, error)
- func (q *Queries) PruneComposerVersions(ctx context.Context, arg PruneComposerVersionsParams) (int64, error)
- func (q *Queries) PublicBumpUnsubscribed(ctx context.Context, arg PublicBumpUnsubscribedParams) error
- func (q *Queries) PublicCampaign(ctx context.Context, arg PublicCampaignParams) (PublicCampaignRow, error)
- func (q *Queries) PublicInsertFeedback(ctx context.Context, arg PublicInsertFeedbackParams) error
- func (q *Queries) PublicInsertUnsubscribeEvent(ctx context.Context, arg PublicInsertUnsubscribeEventParams) error
- func (q *Queries) PublicLatestIssueSlug(ctx context.Context, arg PublicLatestIssueSlugParams) (string, error)
- func (q *Queries) PublicMessage(ctx context.Context, id uuid.UUID) (PublicMessageRow, error)
- func (q *Queries) PublicScheduledCampaigns(ctx context.Context, arg PublicScheduledCampaignsParams) ([]PublicScheduledCampaignsRow, error)
- func (q *Queries) PublicSettingsByDomain(ctx context.Context, domain *string) (PublicSettingsByDomainRow, error)
- func (q *Queries) PublicSettingsDomainTaken(ctx context.Context, arg PublicSettingsDomainTakenParams) (bool, error)
- func (q *Queries) PublicSettingsDomainsToCheck(ctx context.Context, before *time.Time) ([]PublicSettingsDomainsToCheckRow, error)
- func (q *Queries) PublicSettingsEnsure(ctx context.Context, workspaceID uuid.UUID) error
- func (q *Queries) PublicSettingsGet(ctx context.Context, workspaceID uuid.UUID) (PublicPageSetting, error)
- func (q *Queries) PublicSettingsLogo(ctx context.Context, workspaceID uuid.UUID) (PublicSettingsLogoRow, error)
- func (q *Queries) PublicSettingsSetDomain(ctx context.Context, arg PublicSettingsSetDomainParams) error
- func (q *Queries) PublicSettingsSetHostedForm(ctx context.Context, arg PublicSettingsSetHostedFormParams) error
- func (q *Queries) PublicSettingsSetLogo(ctx context.Context, arg PublicSettingsSetLogoParams) error
- func (q *Queries) PublicSettingsSetPages(ctx context.Context, arg PublicSettingsSetPagesParams) error
- func (q *Queries) PublicSettingsSetTurnstile(ctx context.Context, arg PublicSettingsSetTurnstileParams) error
- func (q *Queries) PublicSettingsTouch(ctx context.Context, arg PublicSettingsTouchParams) error
- func (q *Queries) PublicSettingsTurnstileError(ctx context.Context, arg PublicSettingsTurnstileErrorParams) error
- func (q *Queries) PublicUnsubscribeStats(ctx context.Context, arg PublicUnsubscribeStatsParams) (PublicUnsubscribeStatsRow, error)
- func (q *Queries) PublishAutomationVersion(ctx context.Context, arg PublishAutomationVersionParams) error
- func (q *Queries) PurgeAuditEvents(ctx context.Context, arg PurgeAuditEventsParams) (int64, error)
- func (q *Queries) PurgeAutomationEvents(ctx context.Context, before *time.Time) (int64, error)
- func (q *Queries) PurgeAutomationWebhookCalls(ctx context.Context, before time.Time) (int64, error)
- func (q *Queries) PurgeDeletedLists(ctx context.Context, before *time.Time) (int64, error)
- func (q *Queries) PurgeInstanceAuditEvents(ctx context.Context, before time.Time) (int64, error)
- func (q *Queries) PutMXCache(ctx context.Context, arg PutMXCacheParams) error
- func (q *Queries) ReadinessAcceptUnknown(ctx context.Context, arg ReadinessAcceptUnknownParams) error
- func (q *Queries) ReadinessCampaign(ctx context.Context, arg ReadinessCampaignParams) (ReadinessCampaignRow, error)
- func (q *Queries) ReadinessCampaignWorkspace(ctx context.Context, id uuid.UUID) (uuid.UUID, error)
- func (q *Queries) ReadinessEndProgress(ctx context.Context, arg ReadinessEndProgressParams) error
- func (q *Queries) ReadinessGetProgress(ctx context.Context, campaignID uuid.UUID) (ReadinessGetProgressRow, error)
- func (q *Queries) ReadinessGetRun(ctx context.Context, arg ReadinessGetRunParams) (ReadinessGetRunRow, error)
- func (q *Queries) ReadinessInsertRoute(ctx context.Context, arg ReadinessInsertRouteParams) error
- func (q *Queries) ReadinessInsertRun(ctx context.Context, arg ReadinessInsertRunParams) error
- func (q *Queries) ReadinessLatestRun(ctx context.Context, campaignID uuid.UUID) (ReadinessLatestRunRow, error)
- func (q *Queries) ReadinessListCount(ctx context.Context, workspaceID uuid.UUID) (int64, error)
- func (q *Queries) ReadinessListNames(ctx context.Context, workspaceID uuid.UUID) ([]ReadinessListNamesRow, error)
- func (q *Queries) ReadinessPruneRuns(ctx context.Context, campaignID uuid.UUID) error
- func (q *Queries) ReadinessRecipients(ctx context.Context, arg ReadinessRecipientsParams) ([]ReadinessRecipientsRow, error)
- func (q *Queries) ReadinessReplaceRoutes(ctx context.Context, campaignID uuid.UUID) error
- func (q *Queries) ReadinessScheduledDue(ctx context.Context, arg ReadinessScheduledDueParams) ([]ReadinessScheduledDueRow, error)
- func (q *Queries) ReadinessSegmentNames(ctx context.Context, workspaceID uuid.UUID) ([]ReadinessSegmentNamesRow, error)
- func (q *Queries) ReadinessSetAudience(ctx context.Context, arg ReadinessSetAudienceParams) error
- func (q *Queries) ReadinessSetAudienceCount(ctx context.Context, arg ReadinessSetAudienceCountParams) error
- func (q *Queries) ReadinessSetContentSettings(ctx context.Context, arg ReadinessSetContentSettingsParams) error
- func (q *Queries) ReadinessSetFingerprint(ctx context.Context, arg ReadinessSetFingerprintParams) error
- func (q *Queries) ReadinessSetRouteOverride(ctx context.Context, arg ReadinessSetRouteOverrideParams) error
- func (q *Queries) ReadinessSetSendSettings(ctx context.Context, arg ReadinessSetSendSettingsParams) error
- func (q *Queries) ReadinessStartProgress(ctx context.Context, arg ReadinessStartProgressParams) (uuid.UUID, error)
- func (q *Queries) ReadinessTestSends(ctx context.Context, arg ReadinessTestSendsParams) ([]ReadinessTestSendsRow, error)
- func (q *Queries) ReadinessUpdateProgress(ctx context.Context, arg ReadinessUpdateProgressParams) error
- func (q *Queries) RecentSentCampaigns(ctx context.Context, workspaceID uuid.UUID) ([]RecentSentCampaignsRow, error)
- func (q *Queries) RecordHostReputeSyncError(ctx context.Context, arg RecordHostReputeSyncErrorParams) error
- func (q *Queries) RecordSignInFailure(ctx context.Context, arg RecordSignInFailureParams) (RecordSignInFailureRow, error)
- func (q *Queries) RecordSignInSuccess(ctx context.Context, id uuid.UUID) error
- func (q *Queries) RecordSignInThrottleFailure(ctx context.Context, arg RecordSignInThrottleFailureParams) (SignInThrottle, error)
- func (q *Queries) RecoveryCodeStats(ctx context.Context, userID uuid.UUID) (RecoveryCodeStatsRow, error)
- func (q *Queries) RefreshInvitation(ctx context.Context, arg RefreshInvitationParams) (Invitation, error)
- func (q *Queries) ReleaseAutomationHeldMessages(ctx context.Context, arg ReleaseAutomationHeldMessagesParams) (int64, error)
- func (q *Queries) RemoteAdapterConnected(ctx context.Context, adapter string) (int64, error)
- func (q *Queries) RemoteAdapterDelete(ctx context.Context, id uuid.UUID) (int64, error)
- func (q *Queries) RemoteAdapterGet(ctx context.Context, id uuid.UUID) (RemoteAdapterGetRow, error)
- func (q *Queries) RemoteAdapterGetByKey(ctx context.Context, adapterKey string) (RemoteAdapterGetByKeyRow, error)
- func (q *Queries) RemoteAdapterInsert(ctx context.Context, arg RemoteAdapterInsertParams) error
- func (q *Queries) RemoteAdapterList(ctx context.Context) ([]RemoteAdapterListRow, error)
- func (q *Queries) RemoteAdapterUpdateManifest(ctx context.Context, arg RemoteAdapterUpdateManifestParams) error
- func (q *Queries) RemoteRuntimeCreate(ctx context.Context, arg RemoteRuntimeCreateParams) error
- func (q *Queries) RemoteRuntimeRecordCheck(ctx context.Context, arg RemoteRuntimeRecordCheckParams) error
- func (q *Queries) RemoteRuntimeSetEndpoint(ctx context.Context, arg RemoteRuntimeSetEndpointParams) error
- func (q *Queries) RemoteRuntimeSetSecret(ctx context.Context, arg RemoteRuntimeSetSecretParams) error
- func (q *Queries) RemoteRuntimeTouch(ctx context.Context, adapterID uuid.UUID) error
- func (q *Queries) RenamePasskey(ctx context.Context, arg RenamePasskeyParams) error
- func (q *Queries) ReportBounceCodes(ctx context.Context, arg ReportBounceCodesParams) ([]ReportBounceCodesRow, error)
- func (q *Queries) ReportBounceDiagnostics(ctx context.Context, arg ReportBounceDiagnosticsParams) ([]ReportBounceDiagnosticsRow, error)
- func (q *Queries) ReportBounceRecipients(ctx context.Context, arg ReportBounceRecipientsParams) ([]string, error)
- func (q *Queries) ReportCampaign(ctx context.Context, arg ReportCampaignParams) (ReportCampaignRow, error)
- func (q *Queries) ReportCounterCells(ctx context.Context, campaignID uuid.UUID) ([]ReportCounterCellsRow, error)
- func (q *Queries) ReportHourly(ctx context.Context, arg ReportHourlyParams) ([]ReportHourlyRow, error)
- func (q *Queries) ReportIngestBacklog(ctx context.Context, arg ReportIngestBacklogParams) ([]ReportIngestBacklogRow, error)
- func (q *Queries) ReportLatestReadiness(ctx context.Context, campaignID uuid.UUID) (ReportLatestReadinessRow, error)
- func (q *Queries) ReportLatestSent(ctx context.Context, arg ReportLatestSentParams) (ReportLatestSentRow, error)
- func (q *Queries) ReportLinks(ctx context.Context, campaignID uuid.UUID) ([]ReportLinksRow, error)
- func (q *Queries) ReportRoutes(ctx context.Context, campaignID uuid.UUID) ([]ReportRoutesRow, error)
- func (q *Queries) ReportShareByToken(ctx context.Context, tokenHash []byte) (ReportShareByTokenRow, error)
- func (q *Queries) ReportShareCreate(ctx context.Context, arg ReportShareCreateParams) (ReportShare, error)
- func (q *Queries) ReportShareGet(ctx context.Context, arg ReportShareGetParams) (ReportShare, error)
- func (q *Queries) ReportShareList(ctx context.Context, arg ReportShareListParams) ([]ReportShareListRow, error)
- func (q *Queries) ReportShareRevoke(ctx context.Context, arg ReportShareRevokeParams) (ReportShare, error)
- func (q *Queries) ReportShareTouch(ctx context.Context, arg ReportShareTouchParams) error
- func (q *Queries) ReportUnsubscribeReasons(ctx context.Context, arg ReportUnsubscribeReasonsParams) ([]ReportUnsubscribeReasonsRow, error)
- func (q *Queries) ReportWarmupAt(ctx context.Context, providerIds []uuid.UUID) ([]ReportWarmupAtRow, error)
- func (q *Queries) ResetUserTwoFactor(ctx context.Context, id uuid.UUID) error
- func (q *Queries) ResolveAutomationAlert(ctx context.Context, arg ResolveAutomationAlertParams) (int64, error)
- func (q *Queries) RestoreList(ctx context.Context, id uuid.UUID) (List, error)
- func (q *Queries) ResumeAutomation(ctx context.Context, arg ResumeAutomationParams) error
- func (q *Queries) RetireAutomationVersion(ctx context.Context, arg RetireAutomationVersionParams) error
- func (q *Queries) RevokeAPIKey(ctx context.Context, arg RevokeAPIKeyParams) (int64, error)
- func (q *Queries) RevokeAPIKeysCreatedBy(ctx context.Context, arg RevokeAPIKeysCreatedByParams) (int64, error)
- func (q *Queries) RevokeAllUserSessions(ctx context.Context, userID uuid.UUID) (int64, error)
- func (q *Queries) RevokeInvitation(ctx context.Context, arg RevokeInvitationParams) (int64, error)
- func (q *Queries) RevokeOtherSessions(ctx context.Context, arg RevokeOtherSessionsParams) (int64, error)
- func (q *Queries) RevokeSession(ctx context.Context, arg RevokeSessionParams) (int64, error)
- func (q *Queries) RolesCreate(ctx context.Context, arg RolesCreateParams) (uuid.UUID, error)
- func (q *Queries) RolesDelete(ctx context.Context, arg RolesDeleteParams) (int64, error)
- func (q *Queries) RolesGet(ctx context.Context, arg RolesGetParams) (RolesGetRow, error)
- func (q *Queries) RolesKeyTaken(ctx context.Context, arg RolesKeyTakenParams) (bool, error)
- func (q *Queries) RolesKeysOfMembers(ctx context.Context, arg RolesKeysOfMembersParams) ([]RolesKeysOfMembersRow, error)
- func (q *Queries) RolesList(ctx context.Context, workspaceID uuid.UUID) ([]RolesListRow, error)
- func (q *Queries) RolesMembers(ctx context.Context, workspaceID uuid.UUID) ([]RolesMembersRow, error)
- func (q *Queries) RolesNameTaken(ctx context.Context, arg RolesNameTakenParams) (bool, error)
- func (q *Queries) RolesPendingInvites(ctx context.Context, workspaceID uuid.UUID) ([]RolesPendingInvitesRow, error)
- func (q *Queries) RolesUpdate(ctx context.Context, arg RolesUpdateParams) (int64, error)
- func (q *Queries) RoutingBroadcastSizes(ctx context.Context, arg RoutingBroadcastSizesParams) (RoutingBroadcastSizesRow, error)
- func (q *Queries) RoutingContact(ctx context.Context, arg RoutingContactParams) (RoutingContactRow, error)
- func (q *Queries) RoutingDeleteRules(ctx context.Context, workspaceID uuid.UUID) error
- func (q *Queries) RoutingInsertRule(ctx context.Context, arg RoutingInsertRuleParams) error
- func (q *Queries) RoutingIsSuppressed(ctx context.Context, arg RoutingIsSuppressedParams) (bool, error)
- func (q *Queries) RoutingListPolicies(ctx context.Context, workspaceID uuid.UUID) ([]StreamPolicy, error)
- func (q *Queries) RoutingListRules(ctx context.Context, workspaceID uuid.UUID) ([]RoutingRule, error)
- func (q *Queries) RoutingLists(ctx context.Context, workspaceID uuid.UUID) ([]RoutingListsRow, error)
- func (q *Queries) RoutingSaved(ctx context.Context, workspaceID uuid.UUID) (RoutingSavedRow, error)
- func (q *Queries) RoutingSenderDomains(ctx context.Context, workspaceID uuid.UUID) ([]RoutingSenderDomainsRow, error)
- func (q *Queries) RoutingUpsertPolicy(ctx context.Context, arg RoutingUpsertPolicyParams) error
- func (q *Queries) RunningDeliverabilityCheckRun(ctx context.Context, arg RunningDeliverabilityCheckRunParams) (DeliverabilityCheckRun, error)
- func (q *Queries) SSOCreateIdentity(ctx context.Context, arg SSOCreateIdentityParams) (UserIdentity, error)
- func (q *Queries) SSOCreateMember(ctx context.Context, arg SSOCreateMemberParams) error
- func (q *Queries) SSOCreateProvider(ctx context.Context, arg SSOCreateProviderParams) (SsoProvider, error)
- func (q *Queries) SSOCreateUser(ctx context.Context, arg SSOCreateUserParams) (User, error)
- func (q *Queries) SSODeleteProvider(ctx context.Context, id uuid.UUID) (int64, error)
- func (q *Queries) SSODomainEnforcedElsewhere(ctx context.Context, arg SSODomainEnforcedElsewhereParams) (string, error)
- func (q *Queries) SSODomainUsers(ctx context.Context, arg SSODomainUsersParams) ([]SSODomainUsersRow, error)
- func (q *Queries) SSOGroupMemberships(ctx context.Context, userID uuid.UUID) ([]SSOGroupMembershipsRow, error)
- func (q *Queries) SSOIdentityUsers(ctx context.Context, providerID *uuid.UUID) ([]SSOIdentityUsersRow, error)
- func (q *Queries) SSOMarkBreakGlass(ctx context.Context, ids []uuid.UUID) (int64, error)
- func (q *Queries) SSOMembership(ctx context.Context, arg SSOMembershipParams) (SSOMembershipRow, error)
- func (q *Queries) SSOOwners(ctx context.Context) ([]SSOOwnersRow, error)
- func (q *Queries) SSOPendingInvitation(ctx context.Context, tokenHash []byte) (SSOPendingInvitationRow, error)
- func (q *Queries) SSOProvider(ctx context.Context, id uuid.UUID) (SsoProvider, error)
- func (q *Queries) SSOProviderBySlug(ctx context.Context, slug string) (SsoProvider, error)
- func (q *Queries) SSOProviderMemberCounts(ctx context.Context) ([]SSOProviderMemberCountsRow, error)
- func (q *Queries) SSOProviders(ctx context.Context) ([]SsoProvider, error)
- func (q *Queries) SSOSetClientSecret(ctx context.Context, arg SSOSetClientSecretParams) error
- func (q *Queries) SSOSetDiscovery(ctx context.Context, arg SSOSetDiscoveryParams) error
- func (q *Queries) SSOSetEnforcement(ctx context.Context, arg SSOSetEnforcementParams) error
- func (q *Queries) SSOSetLastTest(ctx context.Context, arg SSOSetLastTestParams) error
- func (q *Queries) SSOSetMemberRole(ctx context.Context, arg SSOSetMemberRoleParams) error
- func (q *Queries) SSOSetPreset(ctx context.Context, arg SSOSetPresetParams) error
- func (q *Queries) SSOSetStatus(ctx context.Context, arg SSOSetStatusParams) (SsoProvider, error)
- func (q *Queries) SSOSignInFailures(ctx context.Context, providerID string) ([]SSOSignInFailuresRow, error)
- func (q *Queries) SSOSocialIdentityCounts(ctx context.Context) ([]SSOSocialIdentityCountsRow, error)
- func (q *Queries) SSOTouchIdentity(ctx context.Context, arg SSOTouchIdentityParams) error
- func (q *Queries) SSOUpdateProvider(ctx context.Context, arg SSOUpdateProviderParams) (SsoProvider, error)
- func (q *Queries) SSOUserIdentityOfKind(ctx context.Context, arg SSOUserIdentityOfKindParams) (UserIdentity, error)
- func (q *Queries) SSOWorkspaceLists(ctx context.Context) ([]SSOWorkspaceListsRow, error)
- func (q *Queries) SSOWorkspaceRoles(ctx context.Context) ([]SSOWorkspaceRolesRow, error)
- func (q *Queries) SaveComposerContent(ctx context.Context, arg SaveComposerContentParams) error
- func (q *Queries) ScopeTotalsSince(ctx context.Context, arg ScopeTotalsSinceParams) ([]ScopeTotalsSinceRow, error)
- func (q *Queries) SegmentMemberIDs(ctx context.Context, segmentID uuid.UUID) ([]uuid.UUID, error)
- func (q *Queries) SenderCampaignCount(ctx context.Context, senderID *uuid.UUID) (int64, error)
- func (q *Queries) SenderCreate(ctx context.Context, arg SenderCreateParams) (Sender, error)
- func (q *Queries) SenderDelete(ctx context.Context, id uuid.UUID) error
- func (q *Queries) SenderGet(ctx context.Context, arg SenderGetParams) (SenderGetRow, error)
- func (q *Queries) SenderGetByEmail(ctx context.Context, arg SenderGetByEmailParams) (SenderGetByEmailRow, error)
- func (q *Queries) SenderList(ctx context.Context, workspaceID uuid.UUID) ([]SenderListRow, error)
- func (q *Queries) SenderListByDomain(ctx context.Context, domainID uuid.UUID) ([]Sender, error)
- func (q *Queries) SenderSetFooterAddress(ctx context.Context, arg SenderSetFooterAddressParams) error
- func (q *Queries) SenderSetSendingDefaults(ctx context.Context, arg SenderSetSendingDefaultsParams) error
- func (q *Queries) SenderSetStreamDefaults(ctx context.Context, arg SenderSetStreamDefaultsParams) error
- func (q *Queries) SenderSetVerification(ctx context.Context, arg SenderSetVerificationParams) error
- func (q *Queries) SenderUpdate(ctx context.Context, arg SenderUpdateParams) error
- func (q *Queries) SenderWorkspaceDefaults(ctx context.Context, id uuid.UUID) (SenderWorkspaceDefaultsRow, error)
- func (q *Queries) SendingABTotals(ctx context.Context, campaignID uuid.UUID) ([]SendingABTotalsRow, error)
- func (q *Queries) SendingActiveSends(ctx context.Context) ([]SendingActiveSendsRow, error)
- func (q *Queries) SendingAddPlanned(ctx context.Context, arg SendingAddPlannedParams) error
- func (q *Queries) SendingAddRouteCost(ctx context.Context, arg SendingAddRouteCostParams) error
- func (q *Queries) SendingApproval(ctx context.Context, campaignID *uuid.UUID) (SendingApprovalRow, error)
- func (q *Queries) SendingAudienceAddresses(ctx context.Context, arg SendingAudienceAddressesParams) ([]SendingAudienceAddressesRow, error)
- func (q *Queries) SendingAudiencePage(ctx context.Context, arg SendingAudiencePageParams) ([]SendingAudiencePageRow, error)
- func (q *Queries) SendingAutomationByName(ctx context.Context, arg SendingAutomationByNameParams) (SendingAutomationByNameRow, error)
- func (q *Queries) SendingAutomationEmail(ctx context.Context, arg SendingAutomationEmailParams) (SendingAutomationEmailRow, error)
- func (q *Queries) SendingAutomationEmailLatest(ctx context.Context, id uuid.UUID) (int32, error)
- func (q *Queries) SendingAutomationLinkCount(ctx context.Context, arg SendingAutomationLinkCountParams) (int64, error)
- func (q *Queries) SendingAutomationSender(ctx context.Context, workspaceID uuid.UUID) (SendingAutomationSenderRow, error)
- func (q *Queries) SendingBumpCounters(ctx context.Context, arg SendingBumpCountersParams) error
- func (q *Queries) SendingCampaign(ctx context.Context, id uuid.UUID) (Campaign, error)
- func (q *Queries) SendingCampaignContext(ctx context.Context, id uuid.UUID) (SendingCampaignContextRow, error)
- func (q *Queries) SendingCampaignForUpdate(ctx context.Context, id uuid.UUID) (Campaign, error)
- func (q *Queries) SendingCampaignInWorkspace(ctx context.Context, arg SendingCampaignInWorkspaceParams) (Campaign, error)
- func (q *Queries) SendingCampaignWorkspace(ctx context.Context, id uuid.UUID) (uuid.UUID, error)
- func (q *Queries) SendingCancelRemaining(ctx context.Context, arg SendingCancelRemainingParams) (int64, error)
- func (q *Queries) SendingClaim(ctx context.Context, arg SendingClaimParams) ([]SendingClaimRow, error)
- func (q *Queries) SendingClearLinks(ctx context.Context, campaignID uuid.UUID) error
- func (q *Queries) SendingClearMessages(ctx context.Context, campaignID *uuid.UUID) error
- func (q *Queries) SendingClearRoutes(ctx context.Context, campaignID uuid.UUID) error
- func (q *Queries) SendingClearWindows(ctx context.Context, arg SendingClearWindowsParams) error
- func (q *Queries) SendingCohortContacts(ctx context.Context, arg SendingCohortContactsParams) ([]*uuid.UUID, error)
- func (q *Queries) SendingComplaintCohorts(ctx context.Context, arg SendingComplaintCohortsParams) ([]SendingComplaintCohortsRow, error)
- func (q *Queries) SendingContactForAutomation(ctx context.Context, id uuid.UUID) (SendingContactForAutomationRow, error)
- func (q *Queries) SendingCounters(ctx context.Context, campaignID uuid.UUID) ([]SendingCountersRow, error)
- func (q *Queries) SendingDeferralsSince(ctx context.Context, arg SendingDeferralsSinceParams) (int64, error)
- func (q *Queries) SendingDeleteSimEvents(ctx context.Context, ids []int64) error
- func (q *Queries) SendingDueScheduled(ctx context.Context, now *time.Time) ([]uuid.UUID, error)
- func (q *Queries) SendingDueSimEvents(ctx context.Context, arg SendingDueSimEventsParams) ([]SendingSimEvent, error)
- func (q *Queries) SendingExcludeGroup(ctx context.Context, arg SendingExcludeGroupParams) ([]*uuid.UUID, error)
- func (q *Queries) SendingFeed(ctx context.Context, arg SendingFeedParams) ([]SendingFeedRow, error)
- func (q *Queries) SendingFinishPrepare(ctx context.Context, arg SendingFinishPrepareParams) error
- func (q *Queries) SendingFinishRoutes(ctx context.Context, arg SendingFinishRoutesParams) error
- func (q *Queries) SendingGetSend(ctx context.Context, campaignID uuid.UUID) (CampaignSend, error)
- func (q *Queries) SendingGetSendForUpdate(ctx context.Context, campaignID uuid.UUID) (CampaignSend, error)
- func (q *Queries) SendingGroupSize(ctx context.Context, arg SendingGroupSizeParams) (SendingGroupSizeRow, error)
- func (q *Queries) SendingImportOf(ctx context.Context, arg SendingImportOfParams) (SendingImportOfRow, error)
- func (q *Queries) SendingIncidents(ctx context.Context, campaignID uuid.UUID) ([]CampaignIncident, error)
- func (q *Queries) SendingInsertAutomationLink(ctx context.Context, arg SendingInsertAutomationLinkParams) error
- func (q *Queries) SendingInsertAutomationMessage(ctx context.Context, arg SendingInsertAutomationMessageParams) error
- func (q *Queries) SendingInsertIncident(ctx context.Context, arg SendingInsertIncidentParams) error
- func (q *Queries) SendingInsertLink(ctx context.Context, arg SendingInsertLinkParams) error
- func (q *Queries) SendingInsertSend(ctx context.Context, arg SendingInsertSendParams) error
- func (q *Queries) SendingListNames(ctx context.Context, workspaceID uuid.UUID) ([]SendingListNamesRow, error)
- func (q *Queries) SendingMarkCompleted(ctx context.Context, arg SendingMarkCompletedParams) error
- func (q *Queries) SendingMarkScheduled(ctx context.Context, arg SendingMarkScheduledParams) error
- func (q *Queries) SendingMarkSent(ctx context.Context, arg SendingMarkSentParams) error
- func (q *Queries) SendingMarkStarted(ctx context.Context, arg SendingMarkStartedParams) error
- func (q *Queries) SendingMarkUnsent(ctx context.Context, arg SendingMarkUnsentParams) error
- func (q *Queries) SendingMoveRemaining(ctx context.Context, arg SendingMoveRemainingParams) (int64, error)
- func (q *Queries) SendingNextSimEvent(ctx context.Context) (time.Time, error)
- func (q *Queries) SendingOpenIncidents(ctx context.Context, campaignID uuid.UUID) ([]CampaignIncident, error)
- func (q *Queries) SendingOpenWindow(ctx context.Context, arg SendingOpenWindowParams) error
- func (q *Queries) SendingOutboxClaim(ctx context.Context, arg SendingOutboxClaimParams) ([]SendingOutboxClaimRow, error)
- func (q *Queries) SendingOutboxProviders(ctx context.Context) ([]uuid.UUID, error)
- func (q *Queries) SendingPriorSends(ctx context.Context, arg SendingPriorSendsParams) (int64, error)
- func (q *Queries) SendingPurgeWindows(ctx context.Context, before int64) error
- func (q *Queries) SendingQueueState(ctx context.Context, arg SendingQueueStateParams) ([]SendingQueueStateRow, error)
- func (q *Queries) SendingRelease(ctx context.Context, ids []uuid.UUID) error
- func (q *Queries) SendingReleaseHeld(ctx context.Context, arg SendingReleaseHeldParams) (int64, error)
- func (q *Queries) SendingRemainingOn(ctx context.Context, arg SendingRemainingOnParams) (int64, error)
- func (q *Queries) SendingReserve(ctx context.Context, arg SendingReserveParams) (int32, error)
- func (q *Queries) SendingResolveIncident(ctx context.Context, arg SendingResolveIncidentParams) error
- func (q *Queries) SendingRetryLater(ctx context.Context, arg SendingRetryLaterParams) error
- func (q *Queries) SendingRetryNow(ctx context.Context, arg SendingRetryNowParams) error
- func (q *Queries) SendingRoutes(ctx context.Context, campaignID uuid.UUID) ([]SendingRoutesRow, error)
- func (q *Queries) SendingSavePrepare(ctx context.Context, arg SendingSavePrepareParams) error
- func (q *Queries) SendingSegmentNames(ctx context.Context, workspaceID uuid.UUID) ([]SendingSegmentNamesRow, error)
- func (q *Queries) SendingSentSince(ctx context.Context, arg SendingSentSinceParams) ([]SendingSentSinceRow, error)
- func (q *Queries) SendingSetAB(ctx context.Context, arg SendingSetABParams) error
- func (q *Queries) SendingSetAudienceCount(ctx context.Context, arg SendingSetAudienceCountParams) error
- func (q *Queries) SendingSetCampaignStatus(ctx context.Context, arg SendingSetCampaignStatusParams) error
- func (q *Queries) SendingSetChanges(ctx context.Context, arg SendingSetChangesParams) error
- func (q *Queries) SendingSetContent(ctx context.Context, arg SendingSetContentParams) error
- func (q *Queries) SendingSetDeliveryP50(ctx context.Context, campaignID uuid.UUID) error
- func (q *Queries) SendingSetHolds(ctx context.Context, arg SendingSetHoldsParams) error
- func (q *Queries) SendingSetPaused(ctx context.Context, arg SendingSetPausedParams) error
- func (q *Queries) SendingSetPhase(ctx context.Context, arg SendingSetPhaseParams) error
- func (q *Queries) SendingSetRouteStatus(ctx context.Context, arg SendingSetRouteStatusParams) error
- func (q *Queries) SendingSetThrottles(ctx context.Context, arg SendingSetThrottlesParams) error
- func (q *Queries) SendingSimMessages(ctx context.Context, ids []uuid.UUID) ([]SendingSimMessagesRow, error)
- func (q *Queries) SendingStageAdd(ctx context.Context, arg SendingStageAddParams) error
- func (q *Queries) SendingStageClear(ctx context.Context, campaignID uuid.UUID) error
- func (q *Queries) SendingStageCount(ctx context.Context, campaignID uuid.UUID) (int64, error)
- func (q *Queries) SendingUnschedule(ctx context.Context, arg SendingUnscheduleParams) error
- func (q *Queries) SendingUnsentCounts(ctx context.Context, campaignID *uuid.UUID) ([]SendingUnsentCountsRow, error)
- func (q *Queries) SendingUpdateIncidentDetail(ctx context.Context, arg SendingUpdateIncidentDetailParams) error
- func (q *Queries) SendingUserNames(ctx context.Context, ids []uuid.UUID) ([]SendingUserNamesRow, error)
- func (q *Queries) SendingUsualOpenHours(ctx context.Context, arg SendingUsualOpenHoursParams) ([]SendingUsualOpenHoursRow, error)
- func (q *Queries) SendingWorkspaceDefaults(ctx context.Context, id uuid.UUID) (SendingWorkspaceDefaultsRow, error)
- func (q *Queries) SendingWorkspaceProviders(ctx context.Context, workspaceID uuid.UUID) ([]Provider, error)
- func (q *Queries) SessionExtRestartIdle(ctx context.Context, arg SessionExtRestartIdleParams) (SessionExtRestartIdleRow, error)
- func (q *Queries) SessionExtTiming(ctx context.Context, id uuid.UUID) (SessionExtTimingRow, error)
- func (q *Queries) SetAutomationDraft(ctx context.Context, arg SetAutomationDraftParams) error
- func (q *Queries) SetAutomationLive(ctx context.Context, arg SetAutomationLiveParams) error
- func (q *Queries) SetAvatarUpdatedAt(ctx context.Context, arg SetAvatarUpdatedAtParams) error
- func (q *Queries) SetDeliverabilityBlocklistDelisting(ctx context.Context, arg SetDeliverabilityBlocklistDelistingParams) error
- func (q *Queries) SetHostReputeMonitored(ctx context.Context, arg SetHostReputeMonitoredParams) error
- func (q *Queries) SetImportConnection(ctx context.Context, arg SetImportConnectionParams) error
- func (q *Queries) SetImportConsentMap(ctx context.Context, arg SetImportConsentMapParams) error
- func (q *Queries) SetImportFieldMap(ctx context.Context, arg SetImportFieldMapParams) error
- func (q *Queries) SetImportFile(ctx context.Context, arg SetImportFileParams) error
- func (q *Queries) SetImportOptions(ctx context.Context, arg SetImportOptionsParams) error
- func (q *Queries) SetImportPreview(ctx context.Context, arg SetImportPreviewParams) error
- func (q *Queries) SetImportProgress(ctx context.Context, arg SetImportProgressParams) error
- func (q *Queries) SetImportStaged(ctx context.Context, arg SetImportStagedParams) error
- func (q *Queries) SetImportStatus(ctx context.Context, arg SetImportStatusParams) error
- func (q *Queries) SetImportStep(ctx context.Context, arg SetImportStepParams) error
- func (q *Queries) SetLastDigestAt(ctx context.Context, userID uuid.UUID) error
- func (q *Queries) SetLatestRelease(ctx context.Context, latestRelease json.RawMessage) error
- func (q *Queries) SetMemberStatus(ctx context.Context, arg SetMemberStatusParams) error
- func (q *Queries) SetNotificationsEmailStatus(ctx context.Context, arg SetNotificationsEmailStatusParams) error
- func (q *Queries) SetRecoveryCodesSaved(ctx context.Context, id uuid.UUID) error
- func (q *Queries) SetSegmentCount(ctx context.Context, arg SetSegmentCountParams) error
- func (q *Queries) SetSessionPasskey(ctx context.Context, arg SetSessionPasskeyParams) error
- func (q *Queries) SetSunsetPolicy(ctx context.Context, arg SetSunsetPolicyParams) error
- func (q *Queries) SetUserBreakGlass(ctx context.Context, arg SetUserBreakGlassParams) error
- func (q *Queries) SetUserEmail(ctx context.Context, arg SetUserEmailParams) error
- func (q *Queries) SetUserInstanceAdmin(ctx context.Context, arg SetUserInstanceAdminParams) error
- func (q *Queries) SetUserPassword(ctx context.Context, arg SetUserPasswordParams) error
- func (q *Queries) SetUserStatus(ctx context.Context, arg SetUserStatusParams) error
- func (q *Queries) SetUserTOTP(ctx context.Context, arg SetUserTOTPParams) error
- func (q *Queries) SetUserTOTPLabel(ctx context.Context, arg SetUserTOTPLabelParams) error
- func (q *Queries) SetUserTwoFAGrace(ctx context.Context, arg SetUserTwoFAGraceParams) error
- func (q *Queries) SetUserWebAuthnID(ctx context.Context, arg SetUserWebAuthnIDParams) error
- func (q *Queries) SetupByProvider(ctx context.Context, providerID *uuid.UUID) (ProviderSetup, error)
- func (q *Queries) SetupCreate(ctx context.Context, arg SetupCreateParams) (ProviderSetup, error)
- func (q *Queries) SetupGet(ctx context.Context, arg SetupGetParams) (ProviderSetup, error)
- func (q *Queries) SetupGetAny(ctx context.Context, id uuid.UUID) (ProviderSetup, error)
- func (q *Queries) SetupList(ctx context.Context, arg SetupListParams) ([]ProviderSetup, error)
- func (q *Queries) SetupLock(ctx context.Context, id uuid.UUID) (ProviderSetup, error)
- func (q *Queries) SetupOpen(ctx context.Context, arg SetupOpenParams) ([]ProviderSetup, error)
- func (q *Queries) SetupSave(ctx context.Context, arg SetupSaveParams) (ProviderSetup, error)
- func (q *Queries) SignupAddUnsubscribe(ctx context.Context, arg SignupAddUnsubscribeParams) error
- func (q *Queries) SignupConfirmPending(ctx context.Context, arg SignupConfirmPendingParams) ([]uuid.UUID, error)
- func (q *Queries) SignupContactByEmail(ctx context.Context, arg SignupContactByEmailParams) (Contact, error)
- func (q *Queries) SignupContactByID(ctx context.Context, arg SignupContactByIDParams) (Contact, error)
- func (q *Queries) SignupContactNames(ctx context.Context, arg SignupContactNamesParams) ([]SignupContactNamesRow, error)
- func (q *Queries) SignupFillContact(ctx context.Context, arg SignupFillContactParams) error
- func (q *Queries) SignupInsertConsent(ctx context.Context, arg SignupInsertConsentParams) error
- func (q *Queries) SignupInsertContact(ctx context.Context, arg SignupInsertContactParams) (Contact, error)
- func (q *Queries) SignupLastConsent(ctx context.Context, arg SignupLastConsentParams) (SignupLastConsentRow, error)
- func (q *Queries) SignupLastUnsubscribedLists(ctx context.Context, contactID uuid.UUID) ([]uuid.UUID, error)
- func (q *Queries) SignupLiftUnsubscribe(ctx context.Context, arg SignupLiftUnsubscribeParams) (int64, error)
- func (q *Queries) SignupMemberships(ctx context.Context, contactID uuid.UUID) ([]SignupMembershipsRow, error)
- func (q *Queries) SignupPreferences(ctx context.Context, contactID uuid.UUID) (SignupPreferencesRow, error)
- func (q *Queries) SignupPreviewConfirmed(ctx context.Context, workspaceID uuid.UUID) (uuid.UUID, error)
- func (q *Queries) SignupPreviewLatest(ctx context.Context, workspaceID uuid.UUID) (uuid.UUID, error)
- func (q *Queries) SignupPublicLists(ctx context.Context, workspaceID uuid.UUID) ([]SignupPublicListsRow, error)
- func (q *Queries) SignupSetContactState(ctx context.Context, arg SignupSetContactStateParams) error
- func (q *Queries) SignupSetFirstName(ctx context.Context, arg SignupSetFirstNameParams) error
- func (q *Queries) SignupSetMembership(ctx context.Context, arg SignupSetMembershipParams) error
- func (q *Queries) SignupSuppression(ctx context.Context, arg SignupSuppressionParams) (Suppression, error)
- func (q *Queries) SignupTouchContact(ctx context.Context, arg SignupTouchContactParams) error
- func (q *Queries) SignupUnsubscribeAll(ctx context.Context, arg SignupUnsubscribeAllParams) ([]uuid.UUID, error)
- func (q *Queries) SignupUpsertPreferences(ctx context.Context, arg SignupUpsertPreferencesParams) error
- func (q *Queries) SlugTaken(ctx context.Context, slug string) (bool, error)
- func (q *Queries) SoftDeleteAutomation(ctx context.Context, arg SoftDeleteAutomationParams) error
- func (q *Queries) SoftDeleteEmailTemplate(ctx context.Context, arg SoftDeleteEmailTemplateParams) (int64, error)
- func (q *Queries) SoftDeleteList(ctx context.Context, arg SoftDeleteListParams) (int64, error)
- func (q *Queries) SoftDeleteWorkspace(ctx context.Context, id uuid.UUID) error
- func (q *Queries) StartImport(ctx context.Context, arg StartImportParams) error
- func (q *Queries) SuppAddedByProvider(ctx context.Context, workspaceID uuid.UUID) ([]SuppAddedByProviderRow, error)
- func (q *Queries) SuppCount(ctx context.Context, workspaceID uuid.UUID) (int64, error)
- func (q *Queries) SuppImportSources(ctx context.Context, workspaceID uuid.UUID) ([]SuppImportSourcesRow, error)
- func (q *Queries) SuppLatestCreated(ctx context.Context, workspaceID uuid.UUID) (time.Time, error)
- func (q *Queries) SuppPendingCount(ctx context.Context, arg SuppPendingCountParams) (int64, error)
- func (q *Queries) SuppReasonCounts(ctx context.Context, workspaceID uuid.UUID) ([]SuppReasonCountsRow, error)
- func (q *Queries) SuppSyncGet(ctx context.Context, providerID uuid.UUID) (ProviderSuppressionSync, error)
- func (q *Queries) SuppSyncList(ctx context.Context, providerIds []uuid.UUID) ([]ProviderSuppressionSync, error)
- func (q *Queries) SuppSyncUpsert(ctx context.Context, arg SuppSyncUpsertParams) error
- func (q *Queries) SuppToPush(ctx context.Context, arg SuppToPushParams) ([]SuppToPushRow, error)
- func (q *Queries) SuppressionCounts(ctx context.Context, workspaceID uuid.UUID) (SuppressionCountsRow, error)
- func (q *Queries) SuppressionSyncStates(ctx context.Context, workspaceID uuid.UUID) ([]SuppressionSyncStatesRow, error)
- func (q *Queries) SysmailInsertMessage(ctx context.Context, arg SysmailInsertMessageParams) error
- func (q *Queries) SysmailMarkSent(ctx context.Context, arg SysmailMarkSentParams) error
- func (q *Queries) SysmailWorkspaces(ctx context.Context) ([]uuid.UUID, error)
- func (q *Queries) SysmailWorkspacesForEmail(ctx context.Context, email string) ([]uuid.UUID, error)
- func (q *Queries) SystemStreamProviderName(ctx context.Context, workspaceID uuid.UUID) (string, error)
- func (q *Queries) TeamActiveSessionCount(ctx context.Context, userID uuid.UUID) (int64, error)
- func (q *Queries) TeamApprovalsGiven(ctx context.Context, arg TeamApprovalsGivenParams) ([]TeamApprovalsGivenRow, error)
- func (q *Queries) TeamApprovalsRequested(ctx context.Context, arg TeamApprovalsRequestedParams) ([]TeamApprovalsRequestedRow, error)
- func (q *Queries) TeamCountActiveOwners(ctx context.Context, workspaceID uuid.UUID) (int64, error)
- func (q *Queries) TeamCreateInvitation(ctx context.Context, arg TeamCreateInvitationParams) (TeamCreateInvitationRow, error)
- func (q *Queries) TeamDeleteMember(ctx context.Context, arg TeamDeleteMemberParams) (int64, error)
- func (q *Queries) TeamEndTwoFAGrace(ctx context.Context, userIds []uuid.UUID) (int64, error)
- func (q *Queries) TeamEnforcedSSO(ctx context.Context) ([]TeamEnforcedSSORow, error)
- func (q *Queries) TeamGetInvitation(ctx context.Context, arg TeamGetInvitationParams) (TeamGetInvitationRow, error)
- func (q *Queries) TeamGetMember(ctx context.Context, arg TeamGetMemberParams) (TeamGetMemberRow, error)
- func (q *Queries) TeamIdentities(ctx context.Context, userIds []uuid.UUID) ([]TeamIdentitiesRow, error)
- func (q *Queries) TeamJITProviders(ctx context.Context, workspaceID *uuid.UUID) ([]TeamJITProvidersRow, error)
- func (q *Queries) TeamListInvitations(ctx context.Context, workspaceID uuid.UUID) ([]TeamListInvitationsRow, error)
- func (q *Queries) TeamListMembers(ctx context.Context, workspaceID uuid.UUID) ([]TeamListMembersRow, error)
- func (q *Queries) TeamMarkInvitationSent(ctx context.Context, arg TeamMarkInvitationSentParams) error
- func (q *Queries) TeamMemberAPIKeys(ctx context.Context, arg TeamMemberAPIKeysParams) ([]TeamMemberAPIKeysRow, error)
- func (q *Queries) TeamMemberActivity(ctx context.Context, arg TeamMemberActivityParams) ([]TeamMemberActivityRow, error)
- func (q *Queries) TeamMemberEmails(ctx context.Context, arg TeamMemberEmailsParams) ([]string, error)
- func (q *Queries) TeamPendingInviteEmails(ctx context.Context, arg TeamPendingInviteEmailsParams) ([]string, error)
- func (q *Queries) TeamRevokeInvitation(ctx context.Context, arg TeamRevokeInvitationParams) (int64, error)
- func (q *Queries) TeamRevokeKeysCreatedBy(ctx context.Context, arg TeamRevokeKeysCreatedByParams) ([]TeamRevokeKeysCreatedByRow, error)
- func (q *Queries) TeamRevokeUserSessions(ctx context.Context, userID uuid.UUID) (int64, error)
- func (q *Queries) TeamSetMemberRole(ctx context.Context, arg TeamSetMemberRoleParams) error
- func (q *Queries) TeamSetMemberStatus(ctx context.Context, arg TeamSetMemberStatusParams) error
- func (q *Queries) TeamSystemProviderName(ctx context.Context, workspaceID uuid.UUID) (string, error)
- func (q *Queries) TeamWorkspaceLists(ctx context.Context, workspaceID uuid.UUID) ([]TeamWorkspaceListsRow, error)
- func (q *Queries) TeamWorkspaceSenderDomains(ctx context.Context, workspaceID uuid.UUID) ([]string, error)
- func (q *Queries) TierRunWorkspaces(ctx context.Context) ([]TierRunWorkspacesRow, error)
- func (q *Queries) TouchAPIKey(ctx context.Context, arg TouchAPIKeyParams) error
- func (q *Queries) TouchAutomationRunNextAt(ctx context.Context, arg TouchAutomationRunNextAtParams) error
- func (q *Queries) TouchIdentity(ctx context.Context, id uuid.UUID) error
- func (q *Queries) TouchMemberActive(ctx context.Context, arg TouchMemberActiveParams) error
- func (q *Queries) TouchPasskey(ctx context.Context, arg TouchPasskeyParams) error
- func (q *Queries) TouchSession(ctx context.Context, id uuid.UUID) error
- func (q *Queries) TouchUserActive(ctx context.Context, id uuid.UUID) error
- func (q *Queries) TrackingAutomationLinks(ctx context.Context, arg TrackingAutomationLinksParams) ([]TrackingAutomationLinksRow, error)
- func (q *Queries) TrackingBumpAutomationLink(ctx context.Context, arg TrackingBumpAutomationLinkParams) error
- func (q *Queries) TrackingBumpCounters(ctx context.Context, arg TrackingBumpCountersParams) error
- func (q *Queries) TrackingBumpHourly(ctx context.Context, arg TrackingBumpHourlyParams) error
- func (q *Queries) TrackingBumpLink(ctx context.Context, arg TrackingBumpLinkParams) error
- func (q *Queries) TrackingCampaignLinks(ctx context.Context, campaignID uuid.UUID) ([]TrackingCampaignLinksRow, error)
- func (q *Queries) TrackingContactVars(ctx context.Context, id uuid.UUID) (TrackingContactVarsRow, error)
- func (q *Queries) TrackingFirstLinkClick(ctx context.Context, arg TrackingFirstLinkClickParams) (int32, error)
- func (q *Queries) TrackingInsertEvent(ctx context.Context, arg TrackingInsertEventParams) error
- func (q *Queries) TrackingMarkClick(ctx context.Context, arg TrackingMarkClickParams) (TrackingMarkClickRow, error)
- func (q *Queries) TrackingMarkOpen(ctx context.Context, arg TrackingMarkOpenParams) (TrackingMarkOpenRow, error)
- func (q *Queries) TrackingMessage(ctx context.Context, id uuid.UUID) (TrackingMessageRow, error)
- func (q *Queries) TrackingSourceLabel(ctx context.Context, id uuid.UUID) (string, error)
- func (q *Queries) TrackingTouchContactClick(ctx context.Context, arg TrackingTouchContactClickParams) error
- func (q *Queries) TrackingTouchContactOpen(ctx context.Context, arg TrackingTouchContactOpenParams) error
- func (q *Queries) UpdateAuthPolicy(ctx context.Context, arg UpdateAuthPolicyParams) (InstanceSetting, error)
- func (q *Queries) UpdateAutomationDraftGraph(ctx context.Context, arg UpdateAutomationDraftGraphParams) (int64, error)
- func (q *Queries) UpdateAutomationMeta(ctx context.Context, arg UpdateAutomationMetaParams) (Automation, error)
- func (q *Queries) UpdateAutomationRun(ctx context.Context, arg UpdateAutomationRunParams) error
- func (q *Queries) UpdateContactFields(ctx context.Context, arg UpdateContactFieldsParams) (Contact, error)
- func (q *Queries) UpdateCustomField(ctx context.Context, arg UpdateCustomFieldParams) (CustomField, error)
- func (q *Queries) UpdateDeliverabilityCheckRunProgress(ctx context.Context, arg UpdateDeliverabilityCheckRunProgressParams) error
- func (q *Queries) UpdateEmailTemplate(ctx context.Context, arg UpdateEmailTemplateParams) error
- func (q *Queries) UpdateHostReputeTokens(ctx context.Context, arg UpdateHostReputeTokensParams) error
- func (q *Queries) UpdateInstanceBasics(ctx context.Context, arg UpdateInstanceBasicsParams) (InstanceSetting, error)
- func (q *Queries) UpdateList(ctx context.Context, arg UpdateListParams) (List, error)
- func (q *Queries) UpdateMemberRole(ctx context.Context, arg UpdateMemberRoleParams) (WorkspaceMember, error)
- func (q *Queries) UpdatePasskeyAfterUse(ctx context.Context, arg UpdatePasskeyAfterUseParams) error
- func (q *Queries) UpdateRole(ctx context.Context, arg UpdateRoleParams) (Role, error)
- func (q *Queries) UpdateSegment(ctx context.Context, arg UpdateSegmentParams) (Segment, error)
- func (q *Queries) UpdateSocialProviders(ctx context.Context, arg UpdateSocialProvidersParams) (InstanceSetting, error)
- func (q *Queries) UpdateUserProfile(ctx context.Context, arg UpdateUserProfileParams) (User, error)
- func (q *Queries) UpdateWorkspaceApprovalPolicy(ctx context.Context, arg UpdateWorkspaceApprovalPolicyParams) (Workspace, error)
- func (q *Queries) UpdateWorkspaceGeneral(ctx context.Context, arg UpdateWorkspaceGeneralParams) (Workspace, error)
- func (q *Queries) UpdateWorkspaceJSON(ctx context.Context, arg UpdateWorkspaceJSONParams) (Workspace, error)
- func (q *Queries) UpsertAudienceDaily(ctx context.Context, arg UpsertAudienceDailyParams) error
- func (q *Queries) UpsertAudienceState(ctx context.Context, arg UpsertAudienceStateParams) error
- func (q *Queries) UpsertAutomationStepSecret(ctx context.Context, arg UpsertAutomationStepSecretParams) error
- func (q *Queries) UpsertAvatar(ctx context.Context, arg UpsertAvatarParams) error
- func (q *Queries) UpsertDeliverabilityAssetCheck(ctx context.Context, arg UpsertDeliverabilityAssetCheckParams) error
- func (q *Queries) UpsertDeliverabilityDMARCReport(ctx context.Context, arg UpsertDeliverabilityDMARCReportParams) error
- func (q *Queries) UpsertDeliverabilityPostmasterDay(ctx context.Context, arg UpsertDeliverabilityPostmasterDayParams) error
- func (q *Queries) UpsertDeliverabilitySNDSDay(ctx context.Context, arg UpsertDeliverabilitySNDSDayParams) error
- func (q *Queries) UpsertHostReputeConnection(ctx context.Context, arg UpsertHostReputeConnectionParams) (HostreputeConnection, error)
- func (q *Queries) UpsertMembership(ctx context.Context, arg UpsertMembershipParams) error
- func (q *Queries) UpsertNotificationPreference(ctx context.Context, arg UpsertNotificationPreferenceParams) error
- func (q *Queries) UpsertNotificationSettings(ctx context.Context, arg UpsertNotificationSettingsParams) error
- func (q *Queries) UseRecoveryCode(ctx context.Context, arg UseRecoveryCodeParams) (uuid.UUID, error)
- func (q *Queries) UsersShareWorkspace(ctx context.Context, arg UsersShareWorkspaceParams) (bool, error)
- func (q *Queries) WakeAutomationBranchRuns(ctx context.Context, now *time.Time) (int64, error)
- func (q *Queries) WarmupActiveForProvider(ctx context.Context, providerID uuid.UUID) (WarmupPlan, error)
- func (q *Queries) WarmupActivePlans(ctx context.Context) ([]WarmupActivePlansRow, error)
- func (q *Queries) WarmupAddEvent(ctx context.Context, arg WarmupAddEventParams) error
- func (q *Queries) WarmupDailyStats(ctx context.Context, arg WarmupDailyStatsParams) ([]WarmupDailyStatsRow, error)
- func (q *Queries) WarmupGetPlan(ctx context.Context, arg WarmupGetPlanParams) (WarmupGetPlanRow, error)
- func (q *Queries) WarmupInsertPlan(ctx context.Context, arg WarmupInsertPlanParams) error
- func (q *Queries) WarmupListPlans(ctx context.Context, workspaceID uuid.UUID) ([]WarmupListPlansRow, error)
- func (q *Queries) WarmupLog(ctx context.Context, arg WarmupLogParams) ([]WarmupEvent, error)
- func (q *Queries) WarmupPlannedCampaignUse(ctx context.Context, arg WarmupPlannedCampaignUseParams) ([]WarmupPlannedCampaignUseRow, error)
- func (q *Queries) WarmupSetProgress(ctx context.Context, arg WarmupSetProgressParams) error
- func (q *Queries) WarmupSetStatus(ctx context.Context, arg WarmupSetStatusParams) error
- func (q *Queries) WarmupUpdateSettings(ctx context.Context, arg WarmupUpdateSettingsParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- func (q *Queries) WorkspaceProviders(ctx context.Context, workspaceID uuid.UUID) ([]WorkspaceProvidersRow, error)
- func (q *Queries) WorkspaceTierHistory(ctx context.Context, arg WorkspaceTierHistoryParams) ([]WorkspaceTierHistoryRow, error)
- func (q *Queries) WsAuditSettings(ctx context.Context, id uuid.UUID) (WsAuditSettingsRow, error)
- func (q *Queries) WsCancelScheduled(ctx context.Context, workspaceID uuid.UUID) (int64, error)
- func (q *Queries) WsCounts(ctx context.Context, workspaceID uuid.UUID) (WsCountsRow, error)
- func (q *Queries) WsMCPSettings(ctx context.Context, id uuid.UUID) (json.RawMessage, error)
- func (q *Queries) WsMemberCounts(ctx context.Context, workspaceID uuid.UUID) (WsMemberCountsRow, error)
- func (q *Queries) WsProviderNames(ctx context.Context, workspaceID uuid.UUID) ([]WsProviderNamesRow, error)
- func (q *Queries) WsPurgeDeleted(ctx context.Context) ([]WsPurgeDeletedRow, error)
- func (q *Queries) WsSenderExists(ctx context.Context, arg WsSenderExistsParams) (bool, error)
- func (q *Queries) WsSenders(ctx context.Context, workspaceID uuid.UUID) ([]WsSendersRow, error)
- func (q *Queries) WsSetMCPSettings(ctx context.Context, arg WsSetMCPSettingsParams) error
- func (q *Queries) WsSoftDelete(ctx context.Context, id uuid.UUID) error
- func (q *Queries) WsUpdateGeneral(ctx context.Context, arg WsUpdateGeneralParams) (WsUpdateGeneralRow, error)
- type ReadinessAcceptUnknownParams
- type ReadinessCampaignParams
- type ReadinessCampaignRow
- type ReadinessEndProgressParams
- type ReadinessGetProgressRow
- type ReadinessGetRunParams
- type ReadinessGetRunRow
- type ReadinessInsertRouteParams
- type ReadinessInsertRunParams
- type ReadinessLatestRunRow
- type ReadinessListNamesRow
- type ReadinessProgress
- type ReadinessRecipientsParams
- type ReadinessRecipientsRow
- type ReadinessRun
- type ReadinessScheduledDueParams
- type ReadinessScheduledDueRow
- type ReadinessSegmentNamesRow
- type ReadinessSetAudienceCountParams
- type ReadinessSetAudienceParams
- type ReadinessSetContentSettingsParams
- type ReadinessSetFingerprintParams
- type ReadinessSetRouteOverrideParams
- type ReadinessSetSendSettingsParams
- type ReadinessStartProgressParams
- type ReadinessTestSendsParams
- type ReadinessTestSendsRow
- type ReadinessUpdateProgressParams
- type RecentSentCampaignsRow
- type RecordHostReputeSyncErrorParams
- type RecordSignInFailureParams
- type RecordSignInFailureRow
- type RecordSignInThrottleFailureParams
- type RecoveryCodeStatsRow
- type RefreshInvitationParams
- type ReleaseAutomationHeldMessagesParams
- type RemoteAdapterGetByKeyRow
- type RemoteAdapterGetRow
- type RemoteAdapterInsertParams
- type RemoteAdapterListRow
- type RemoteAdapterUpdateManifestParams
- type RemoteRuntimeCreateParams
- type RemoteRuntimeRecordCheckParams
- type RemoteRuntimeSetEndpointParams
- type RemoteRuntimeSetSecretParams
- type RenamePasskeyParams
- type ReportBounceCodesParams
- type ReportBounceCodesRow
- type ReportBounceDiagnosticsParams
- type ReportBounceDiagnosticsRow
- type ReportBounceRecipientsParams
- type ReportCampaignParams
- type ReportCampaignRow
- type ReportCounterCellsRow
- type ReportHourlyParams
- type ReportHourlyRow
- type ReportIngestBacklogParams
- type ReportIngestBacklogRow
- type ReportLatestReadinessRow
- type ReportLatestSentParams
- type ReportLatestSentRow
- type ReportLinksRow
- type ReportRoutesRow
- type ReportShare
- type ReportShareByTokenRow
- type ReportShareCreateParams
- type ReportShareGetParams
- type ReportShareListParams
- type ReportShareListRow
- type ReportShareRevokeParams
- type ReportShareTouchParams
- type ReportUnsubscribeReasonsParams
- type ReportUnsubscribeReasonsRow
- type ReportWarmupAtRow
- type ResolveAutomationAlertParams
- type ResumeAutomationParams
- type RetireAutomationVersionParams
- type RevokeAPIKeyParams
- type RevokeAPIKeysCreatedByParams
- type RevokeInvitationParams
- type RevokeOtherSessionsParams
- type RevokeSessionParams
- type Role
- type RolesCreateParams
- type RolesDeleteParams
- type RolesGetParams
- type RolesGetRow
- type RolesKeyTakenParams
- type RolesKeysOfMembersParams
- type RolesKeysOfMembersRow
- type RolesListRow
- type RolesMembersRow
- type RolesNameTakenParams
- type RolesPendingInvitesRow
- type RolesUpdateParams
- type RoutingBroadcastSizesParams
- type RoutingBroadcastSizesRow
- type RoutingContactParams
- type RoutingContactRow
- type RoutingInsertRuleParams
- type RoutingIsSuppressedParams
- type RoutingListsRow
- type RoutingRule
- type RoutingSavedRow
- type RoutingSenderDomainsRow
- type RoutingUpsertPolicyParams
- type RunningDeliverabilityCheckRunParams
- type SSOCreateIdentityParams
- type SSOCreateMemberParams
- type SSOCreateProviderParams
- type SSOCreateUserParams
- type SSODomainEnforcedElsewhereParams
- type SSODomainUsersParams
- type SSODomainUsersRow
- type SSOGroupMembershipsRow
- type SSOIdentityUsersRow
- type SSOMembershipParams
- type SSOMembershipRow
- type SSOOwnersRow
- type SSOPendingInvitationRow
- type SSOProviderMemberCountsRow
- type SSOSetClientSecretParams
- type SSOSetDiscoveryParams
- type SSOSetEnforcementParams
- type SSOSetLastTestParams
- type SSOSetMemberRoleParams
- type SSOSetPresetParams
- type SSOSetStatusParams
- type SSOSignInFailuresRow
- type SSOSocialIdentityCountsRow
- type SSOTouchIdentityParams
- type SSOUpdateProviderParams
- type SSOUserIdentityOfKindParams
- type SSOWorkspaceListsRow
- type SSOWorkspaceRolesRow
- type SaveComposerContentParams
- type SavedView
- type ScopeTotalsSinceParams
- type ScopeTotalsSinceRow
- type Segment
- type SegmentMember
- type Sender
- type SenderCreateParams
- type SenderGetByEmailParams
- type SenderGetByEmailRow
- type SenderGetParams
- type SenderGetRow
- type SenderListRow
- type SenderSetFooterAddressParams
- type SenderSetSendingDefaultsParams
- type SenderSetStreamDefaultsParams
- type SenderSetVerificationParams
- type SenderUpdateParams
- type SenderWorkspaceDefaultsRow
- type SendingABTotalsRow
- type SendingActiveSendsRow
- type SendingAddPlannedParams
- type SendingAddRouteCostParams
- type SendingApprovalRow
- type SendingAudienceAddressesParams
- type SendingAudienceAddressesRow
- type SendingAudiencePageParams
- type SendingAudiencePageRow
- type SendingAutomationByNameParams
- type SendingAutomationByNameRow
- type SendingAutomationEmailParams
- type SendingAutomationEmailRow
- type SendingAutomationLinkCountParams
- type SendingAutomationSenderRow
- type SendingBumpCountersParams
- type SendingCampaignContextRow
- type SendingCampaignInWorkspaceParams
- type SendingCancelRemainingParams
- type SendingClaimParams
- type SendingClaimRow
- type SendingClearWindowsParams
- type SendingCohortContactsParams
- type SendingComplaintCohortsParams
- type SendingComplaintCohortsRow
- type SendingContactForAutomationRow
- type SendingCountersRow
- type SendingDeferralsSinceParams
- type SendingDomain
- type SendingDueSimEventsParams
- type SendingExcludeGroupParams
- type SendingFeedParams
- type SendingFeedRow
- type SendingFinishPrepareParams
- type SendingFinishRoutesParams
- type SendingGroupSizeParams
- type SendingGroupSizeRow
- type SendingImportOfParams
- type SendingImportOfRow
- type SendingInsertAutomationLinkParams
- type SendingInsertAutomationMessageParams
- type SendingInsertIncidentParams
- type SendingInsertLinkParams
- type SendingInsertSendParams
- type SendingListNamesRow
- type SendingMarkCompletedParams
- type SendingMarkScheduledParams
- type SendingMarkSentParams
- type SendingMarkStartedParams
- type SendingMarkUnsentParams
- type SendingMoveRemainingParams
- type SendingOpenWindowParams
- type SendingOutboxClaimParams
- type SendingOutboxClaimRow
- type SendingPriorSendsParams
- type SendingQueueStateParams
- type SendingQueueStateRow
- type SendingRateWindow
- type SendingReleaseHeldParams
- type SendingRemainingOnParams
- type SendingReserveParams
- type SendingResolveIncidentParams
- type SendingRetryLaterParams
- type SendingRetryNowParams
- type SendingRoutesRow
- type SendingSavePrepareParams
- type SendingSegmentNamesRow
- type SendingSentSinceParams
- type SendingSentSinceRow
- type SendingSetABParams
- type SendingSetAudienceCountParams
- type SendingSetCampaignStatusParams
- type SendingSetChangesParams
- type SendingSetContentParams
- type SendingSetHoldsParams
- type SendingSetPausedParams
- type SendingSetPhaseParams
- type SendingSetRouteStatusParams
- type SendingSetThrottlesParams
- type SendingSimEvent
- type SendingSimMessagesRow
- type SendingStageAddParams
- type SendingUnscheduleParams
- type SendingUnsentCountsRow
- type SendingUpdateIncidentDetailParams
- type SendingUserNamesRow
- type SendingUsualOpenHoursParams
- type SendingUsualOpenHoursRow
- type SendingWorkspaceDefaultsRow
- type Session
- type SessionExtRestartIdleParams
- type SessionExtRestartIdleRow
- type SessionExtTimingRow
- type SetAutomationDraftParams
- type SetAutomationLiveParams
- type SetAvatarUpdatedAtParams
- type SetDeliverabilityBlocklistDelistingParams
- type SetHostReputeMonitoredParams
- type SetImportConnectionParams
- type SetImportConsentMapParams
- type SetImportFieldMapParams
- type SetImportFileParams
- type SetImportOptionsParams
- type SetImportPreviewParams
- type SetImportProgressParams
- type SetImportStagedParams
- type SetImportStatusParams
- type SetImportStepParams
- type SetMemberStatusParams
- type SetNotificationsEmailStatusParams
- type SetSegmentCountParams
- type SetSessionPasskeyParams
- type SetSunsetPolicyParams
- type SetUserBreakGlassParams
- type SetUserEmailParams
- type SetUserInstanceAdminParams
- type SetUserPasswordParams
- type SetUserStatusParams
- type SetUserTOTPLabelParams
- type SetUserTOTPParams
- type SetUserTwoFAGraceParams
- type SetUserWebAuthnIDParams
- type SetupCreateParams
- type SetupGetParams
- type SetupListParams
- type SetupOpenParams
- type SetupSaveParams
- type SignInThrottle
- type SignupAddUnsubscribeParams
- type SignupConfirmPendingParams
- type SignupContactByEmailParams
- type SignupContactByIDParams
- type SignupContactNamesParams
- type SignupContactNamesRow
- type SignupFillContactParams
- type SignupInsertConsentParams
- type SignupInsertContactParams
- type SignupLastConsentParams
- type SignupLastConsentRow
- type SignupLiftUnsubscribeParams
- type SignupMembershipsRow
- type SignupPreferencesRow
- type SignupPublicListsRow
- type SignupSetContactStateParams
- type SignupSetFirstNameParams
- type SignupSetMembershipParams
- type SignupSuppressionParams
- type SignupTouchContactParams
- type SignupUnsubscribeAllParams
- type SignupUpsertPreferencesParams
- type SndsDaily
- type SoftDeleteAutomationParams
- type SoftDeleteEmailTemplateParams
- type SoftDeleteListParams
- type SsoProvider
- type StartImportParams
- type StreamFailover
- type StreamPolicy
- type SubscriberToken
- type SuppAddedByProviderRow
- type SuppImportSourcesRow
- type SuppPendingCountParams
- type SuppReasonCountsRow
- type SuppSyncUpsertParams
- type SuppToPushParams
- type SuppToPushRow
- type Suppression
- type SuppressionCountsRow
- type SuppressionSyncStatesRow
- type SysmailInsertMessageParams
- type SysmailMarkSentParams
- type TeamApprovalsGivenParams
- type TeamApprovalsGivenRow
- type TeamApprovalsRequestedParams
- type TeamApprovalsRequestedRow
- type TeamCreateInvitationParams
- type TeamCreateInvitationRow
- type TeamDeleteMemberParams
- type TeamEnforcedSSORow
- type TeamGetInvitationParams
- type TeamGetInvitationRow
- type TeamGetMemberParams
- type TeamGetMemberRow
- type TeamIdentitiesRow
- type TeamJITProvidersRow
- type TeamListInvitationsRow
- type TeamListMembersRow
- type TeamMarkInvitationSentParams
- type TeamMemberAPIKeysParams
- type TeamMemberAPIKeysRow
- type TeamMemberActivityParams
- type TeamMemberActivityRow
- type TeamMemberEmailsParams
- type TeamPendingInviteEmailsParams
- type TeamRevokeInvitationParams
- type TeamRevokeKeysCreatedByParams
- type TeamRevokeKeysCreatedByRow
- type TeamSetMemberRoleParams
- type TeamSetMemberStatusParams
- type TeamWorkspaceListsRow
- type Template
- type TierRunWorkspacesRow
- type TouchAPIKeyParams
- type TouchAutomationRunNextAtParams
- type TouchMemberActiveParams
- type TouchPasskeyParams
- type TrackingAutomationLinksParams
- type TrackingAutomationLinksRow
- type TrackingBumpAutomationLinkParams
- type TrackingBumpCountersParams
- type TrackingBumpHourlyParams
- type TrackingBumpLinkParams
- type TrackingCampaignLinksRow
- type TrackingContactVarsRow
- type TrackingFirstLinkClickParams
- type TrackingInsertEventParams
- type TrackingLinkClick
- type TrackingMarkClickParams
- type TrackingMarkClickRow
- type TrackingMarkOpenParams
- type TrackingMarkOpenRow
- type TrackingMessageRow
- type TrackingTouchContactClickParams
- type TrackingTouchContactOpenParams
- type UnsubscribeFeedback
- type UpdateAuthPolicyParams
- type UpdateAutomationDraftGraphParams
- type UpdateAutomationMetaParams
- type UpdateAutomationRunParams
- type UpdateContactFieldsParams
- type UpdateCustomFieldParams
- type UpdateDeliverabilityCheckRunProgressParams
- type UpdateEmailTemplateParams
- type UpdateHostReputeTokensParams
- type UpdateInstanceBasicsParams
- type UpdateListParams
- type UpdateMemberRoleParams
- type UpdatePasskeyAfterUseParams
- type UpdateRoleParams
- type UpdateSegmentParams
- type UpdateSocialProvidersParams
- type UpdateUserProfileParams
- type UpdateWorkspaceApprovalPolicyParams
- type UpdateWorkspaceGeneralParams
- type UpdateWorkspaceJSONParams
- type UpsertAudienceDailyParams
- type UpsertAudienceStateParams
- type UpsertAutomationStepSecretParams
- type UpsertAvatarParams
- type UpsertDeliverabilityAssetCheckParams
- type UpsertDeliverabilityDMARCReportParams
- type UpsertDeliverabilityPostmasterDayParams
- type UpsertDeliverabilitySNDSDayParams
- type UpsertHostReputeConnectionParams
- type UpsertMembershipParams
- type UpsertNotificationPreferenceParams
- type UpsertNotificationSettingsParams
- type UseRecoveryCodeParams
- type User
- type UserAvatar
- type UserIdentity
- type UserPasskey
- type UserPasswordHistory
- type UserRecoveryCode
- type UsersShareWorkspaceParams
- type WarmupActivePlansRow
- type WarmupAddEventParams
- type WarmupDailyStatsParams
- type WarmupDailyStatsRow
- type WarmupEvent
- type WarmupGetPlanParams
- type WarmupGetPlanRow
- type WarmupInsertPlanParams
- type WarmupListPlansRow
- type WarmupLogParams
- type WarmupPlan
- type WarmupPlannedCampaignUseParams
- type WarmupPlannedCampaignUseRow
- type WarmupSetProgressParams
- type WarmupSetStatusParams
- type WarmupUpdateSettingsParams
- type Webhook
- type WebhookDelivery
- type Workspace
- type WorkspaceMember
- type WorkspaceProvidersRow
- type WorkspaceTierHistoryParams
- type WorkspaceTierHistoryRow
- type WsAuditSettingsRow
- type WsCountsRow
- type WsMemberCountsRow
- type WsProviderNamesRow
- type WsPurgeDeletedRow
- type WsSenderExistsParams
- type WsSendersRow
- type WsSetMCPSettingsParams
- type WsUpdateGeneralParams
- type WsUpdateGeneralRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceptInvitationParams ¶
type AdapterRuntime ¶
type AdapterRuntime struct {
AdapterID uuid.UUID `json:"adapterId"`
AdapterKey string `json:"adapterKey"`
EndpointUrl string `json:"endpointUrl"`
SecretEnc []byte `json:"secretEnc"`
SecretIssuedAt time.Time `json:"secretIssuedAt"`
PreviousSecretEnc []byte `json:"previousSecretEnc"`
PreviousValidUntil *time.Time `json:"previousValidUntil"`
CheckedAt *time.Time `json:"checkedAt"`
CheckOk *bool `json:"checkOk"`
CheckDetail string `json:"checkDetail"`
RunningVersion string `json:"runningVersion"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type AddSegmentMembersParams ¶
type ApiKey ¶
type ApiKey struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Kind string `json:"kind"`
Name string `json:"name"`
Description string `json:"description"`
Prefix string `json:"prefix"`
TokenHash []byte `json:"tokenHash"`
Permissions []string `json:"permissions"`
Scope json.RawMessage `json:"scope"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
ExpiresAt *time.Time `json:"expiresAt"`
LastUsedAt *time.Time `json:"lastUsedAt"`
LastUsedIp *netip.Addr `json:"lastUsedIp"`
RevokedAt *time.Time `json:"revokedAt"`
RotatedFrom *uuid.UUID `json:"rotatedFrom"`
LastUsedClient string `json:"lastUsedClient"`
LastCall string `json:"lastCall"`
}
type ApiKeyRejection ¶
type ApprovalComment ¶
type ApprovalCommentsRow ¶
type ApprovalDecision ¶
type ApprovalDecisionsRow ¶
type ApprovalDecisionsRow struct {
ID uuid.UUID `json:"id"`
RequestID uuid.UUID `json:"requestId"`
ApproverID *uuid.UUID `json:"approverId"`
Decision string `json:"decision"`
Comment string `json:"comment"`
CreatedAt time.Time `json:"createdAt"`
ApproverName string `json:"approverName"`
ApproverColor string `json:"approverColor"`
}
type ApprovalGetParams ¶
type ApprovalGetRow ¶
type ApprovalGetRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
SubjectType string `json:"subjectType"`
CampaignID *uuid.UUID `json:"campaignId"`
AutomationID *uuid.UUID `json:"automationId"`
RequestedBy *uuid.UUID `json:"requestedBy"`
RequestedAt time.Time `json:"requestedAt"`
Note string `json:"note"`
Status string `json:"status"`
MatchedRules []string `json:"matchedRules"`
ApprovalsRequired int32 `json:"approvalsRequired"`
Snapshot json.RawMessage `json:"snapshot"`
InvalidatedAt *time.Time `json:"invalidatedAt"`
InvalidatedReason string `json:"invalidatedReason"`
Changes json.RawMessage `json:"changes"`
BypassReason string `json:"bypassReason"`
DecidedAt *time.Time `json:"decidedAt"`
CampaignVersion *int32 `json:"campaignVersion"`
ReadinessRunID *uuid.UUID `json:"readinessRunId"`
DecidedBy *uuid.UUID `json:"decidedBy"`
InvalidatedBy *uuid.UUID `json:"invalidatedBy"`
RemindedAt *time.Time `json:"remindedAt"`
PreviousID *uuid.UUID `json:"previousId"`
InvalidatedFrom string `json:"invalidatedFrom"`
RequestedByName string `json:"requestedByName"`
RequestedByEmail string `json:"requestedByEmail"`
RequestedByColor string `json:"requestedByColor"`
DecidedByName string `json:"decidedByName"`
InvalidatedByName string `json:"invalidatedByName"`
SubjectName string `json:"subjectName"`
CampaignStatus string `json:"campaignStatus"`
CampaignScheduledAt *time.Time `json:"campaignScheduledAt"`
CampaignStartedAt *time.Time `json:"campaignStartedAt"`
CampaignCurrentVersion int32 `json:"campaignCurrentVersion"`
}
type ApprovalInsertRequestParams ¶
type ApprovalInsertRequestParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
SubjectType string `json:"subjectType"`
CampaignID *uuid.UUID `json:"campaignId"`
AutomationID *uuid.UUID `json:"automationId"`
RequestedBy *uuid.UUID `json:"requestedBy"`
RequestedAt time.Time `json:"requestedAt"`
Note string `json:"note"`
Status string `json:"status"`
MatchedRules []string `json:"matchedRules"`
ApprovalsRequired int32 `json:"approvalsRequired"`
Snapshot json.RawMessage `json:"snapshot"`
CampaignVersion *int32 `json:"campaignVersion"`
ReadinessRunID *uuid.UUID `json:"readinessRunId"`
PreviousID *uuid.UUID `json:"previousId"`
BypassReason string `json:"bypassReason"`
}
type ApprovalInvalidateParams ¶
type ApprovalInvalidateParams struct {
InvalidatedAt *time.Time `json:"invalidatedAt"`
InvalidatedReason string `json:"invalidatedReason"`
Changes json.RawMessage `json:"changes"`
InvalidatedBy *uuid.UUID `json:"invalidatedBy"`
InvalidatedFrom string `json:"invalidatedFrom"`
ID uuid.UUID `json:"id"`
}
type ApprovalLastAuditParams ¶
type ApprovalLastAuditRow ¶
type ApprovalLatestForCampaignRow ¶
type ApprovalLatestForCampaignRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
SubjectType string `json:"subjectType"`
CampaignID *uuid.UUID `json:"campaignId"`
AutomationID *uuid.UUID `json:"automationId"`
RequestedBy *uuid.UUID `json:"requestedBy"`
RequestedAt time.Time `json:"requestedAt"`
Note string `json:"note"`
Status string `json:"status"`
MatchedRules []string `json:"matchedRules"`
ApprovalsRequired int32 `json:"approvalsRequired"`
Snapshot json.RawMessage `json:"snapshot"`
InvalidatedAt *time.Time `json:"invalidatedAt"`
InvalidatedReason string `json:"invalidatedReason"`
Changes json.RawMessage `json:"changes"`
BypassReason string `json:"bypassReason"`
DecidedAt *time.Time `json:"decidedAt"`
CampaignVersion *int32 `json:"campaignVersion"`
ReadinessRunID *uuid.UUID `json:"readinessRunId"`
DecidedBy *uuid.UUID `json:"decidedBy"`
InvalidatedBy *uuid.UUID `json:"invalidatedBy"`
RemindedAt *time.Time `json:"remindedAt"`
PreviousID *uuid.UUID `json:"previousId"`
InvalidatedFrom string `json:"invalidatedFrom"`
RequestedByName string `json:"requestedByName"`
DecidedByName string `json:"decidedByName"`
InvalidatedByName string `json:"invalidatedByName"`
}
type ApprovalListParams ¶
type ApprovalListRow ¶
type ApprovalListRow struct {
ID uuid.UUID `json:"id"`
SubjectType string `json:"subjectType"`
CampaignID *uuid.UUID `json:"campaignId"`
AutomationID *uuid.UUID `json:"automationId"`
RequestedBy *uuid.UUID `json:"requestedBy"`
RequestedAt time.Time `json:"requestedAt"`
Status string `json:"status"`
MatchedRules []string `json:"matchedRules"`
ApprovalsRequired int32 `json:"approvalsRequired"`
DecidedAt *time.Time `json:"decidedAt"`
InvalidatedAt *time.Time `json:"invalidatedAt"`
InvalidatedReason string `json:"invalidatedReason"`
Changes json.RawMessage `json:"changes"`
BypassReason string `json:"bypassReason"`
AudienceCount int64 `json:"audienceCount"`
Route json.RawMessage `json:"route"`
Schedule json.RawMessage `json:"schedule"`
Rules json.RawMessage `json:"rules"`
Subject string `json:"subject"`
RequestedByName string `json:"requestedByName"`
RequestedByEmail string `json:"requestedByEmail"`
RequestedByColor string `json:"requestedByColor"`
DecidedByName string `json:"decidedByName"`
SubjectName string `json:"subjectName"`
CampaignStatus string `json:"campaignStatus"`
CampaignScheduledAt *time.Time `json:"campaignScheduledAt"`
CampaignStartedAt *time.Time `json:"campaignStartedAt"`
LastComment string `json:"lastComment"`
}
type ApprovalLockParams ¶
type ApprovalMemberParams ¶
type ApprovalMemberRow ¶
type ApprovalMembersRow ¶
type ApprovalMembersRow struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Email string `json:"email"`
AvatarColor string `json:"avatarColor"`
HasPassword bool `json:"hasPassword"`
RoleKey string `json:"roleKey"`
RoleName string `json:"roleName"`
Builtin bool `json:"builtin"`
Permissions []string `json:"permissions"`
LastActiveAt *time.Time `json:"lastActiveAt"`
}
type ApprovalOpenRequestsRow ¶
type ApprovalPendingForWorkspaceRow ¶
type ApprovalPendingForWorkspaceRow struct {
ID uuid.UUID `json:"id"`
RequestedAt time.Time `json:"requestedAt"`
AudienceCount int64 `json:"audienceCount"`
SubjectName string `json:"subjectName"`
RequestedByName string `json:"requestedByName"`
RequestedByEmail string `json:"requestedByEmail"`
RequestedByColor string `json:"requestedByColor"`
}
type ApprovalReopenParams ¶
type ApprovalRequest ¶
type ApprovalRequest struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
SubjectType string `json:"subjectType"`
CampaignID *uuid.UUID `json:"campaignId"`
AutomationID *uuid.UUID `json:"automationId"`
RequestedBy *uuid.UUID `json:"requestedBy"`
RequestedAt time.Time `json:"requestedAt"`
Note string `json:"note"`
Status string `json:"status"`
MatchedRules []string `json:"matchedRules"`
ApprovalsRequired int32 `json:"approvalsRequired"`
Snapshot json.RawMessage `json:"snapshot"`
InvalidatedAt *time.Time `json:"invalidatedAt"`
InvalidatedReason string `json:"invalidatedReason"`
Changes json.RawMessage `json:"changes"`
BypassReason string `json:"bypassReason"`
DecidedAt *time.Time `json:"decidedAt"`
CampaignVersion *int32 `json:"campaignVersion"`
ReadinessRunID *uuid.UUID `json:"readinessRunId"`
DecidedBy *uuid.UUID `json:"decidedBy"`
InvalidatedBy *uuid.UUID `json:"invalidatedBy"`
RemindedAt *time.Time `json:"remindedAt"`
PreviousID *uuid.UUID `json:"previousId"`
InvalidatedFrom string `json:"invalidatedFrom"`
}
type ApprovalSetStatusParams ¶
type ArchiveIssue ¶
type ArchiveIssue struct {
CampaignID uuid.UUID `json:"campaignId"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Slug string `json:"slug"`
ListID *uuid.UUID `json:"listId"`
Title string `json:"title"`
Excerpt string `json:"excerpt"`
Label string `json:"label"`
Hidden bool `json:"hidden"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
UpdatedBy *uuid.UUID `json:"updatedBy"`
}
type ArchiveIssueBySlugRow ¶
type ArchiveIssueBySlugRow struct {
CampaignID uuid.UUID `json:"campaignId"`
Slug string `json:"slug"`
ListID *uuid.UUID `json:"listId"`
ListName string `json:"listName"`
Title string `json:"title"`
Excerpt string `json:"excerpt"`
Label string `json:"label"`
Hidden bool `json:"hidden"`
Name string `json:"name"`
Subject string `json:"subject"`
Preheader string `json:"preheader"`
Html string `json:"html"`
PlainText string `json:"plainText"`
SentAt time.Time `json:"sentAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type ArchiveIssueCountParams ¶
type ArchiveIssueGetParams ¶
type ArchiveIssueOneParams ¶
type ArchiveIssueOneRow ¶
type ArchiveIssueOneRow struct {
CampaignID uuid.UUID `json:"campaignId"`
Slug string `json:"slug"`
ListID *uuid.UUID `json:"listId"`
ListName string `json:"listName"`
Title string `json:"title"`
Excerpt string `json:"excerpt"`
Label string `json:"label"`
Hidden bool `json:"hidden"`
Name string `json:"name"`
Subject string `json:"subject"`
Preheader string `json:"preheader"`
PlainText string `json:"plainText"`
SentAt time.Time `json:"sentAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type ArchiveIssuesParams ¶
type ArchiveIssuesRow ¶
type ArchiveIssuesRow struct {
CampaignID uuid.UUID `json:"campaignId"`
Slug string `json:"slug"`
ListID *uuid.UUID `json:"listId"`
ListName string `json:"listName"`
Title string `json:"title"`
Excerpt string `json:"excerpt"`
Label string `json:"label"`
Hidden bool `json:"hidden"`
Name string `json:"name"`
Subject string `json:"subject"`
Preheader string `json:"preheader"`
PlainText string `json:"plainText"`
SentAt time.Time `json:"sentAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type ArchiveListCountsParams ¶
type ArchiveListCountsRow ¶
type ArchiveMissingIssuesRow ¶
type ArchiveSlugTakenParams ¶
type ArchiveSummaryParams ¶
type ArchiveSummaryRow ¶
type ArchiveUpdateIssueParams ¶
type ArchiveUpdateIssueParams struct {
Hidden bool `json:"hidden"`
Title string `json:"title"`
Excerpt string `json:"excerpt"`
Label string `json:"label"`
ListID *uuid.UUID `json:"listId"`
UpdatedBy *uuid.UUID `json:"updatedBy"`
At time.Time `json:"at"`
WorkspaceID uuid.UUID `json:"workspaceId"`
CampaignID uuid.UUID `json:"campaignId"`
}
type AudienceCountsRow ¶
type AudienceDaily ¶
type AudienceDaily struct {
WorkspaceID uuid.UUID `json:"workspaceId"`
Scope string `json:"scope"`
ScopeID uuid.UUID `json:"scopeId"`
Day time.Time `json:"day"`
Contacts int64 `json:"contacts"`
Active int64 `json:"active"`
Cooling int64 `json:"cooling"`
AtRisk int64 `json:"atRisk"`
Sunset int64 `json:"sunset"`
Joined int64 `json:"joined"`
Departed int64 `json:"departed"`
Sent int64 `json:"sent"`
Delivered int64 `json:"delivered"`
OpenedHuman int64 `json:"openedHuman"`
Unsubscribed int64 `json:"unsubscribed"`
Complained int64 `json:"complained"`
Bounced int64 `json:"bounced"`
}
type AudienceState ¶
type AuditEvent ¶
type AuditEvent struct {
ID uuid.UUID `json:"id"`
WorkspaceID *uuid.UUID `json:"workspaceId"`
OccurredAt time.Time `json:"occurredAt"`
ActorType string `json:"actorType"`
ActorID *uuid.UUID `json:"actorId"`
ActorName string `json:"actorName"`
Action string `json:"action"`
TargetType string `json:"targetType"`
TargetID string `json:"targetId"`
TargetName string `json:"targetName"`
Result string `json:"result"`
Reason string `json:"reason"`
Ip *netip.Addr `json:"ip"`
UserAgent string `json:"userAgent"`
RequestID string `json:"requestId"`
Before json.RawMessage `json:"before"`
After json.RawMessage `json:"after"`
Metadata json.RawMessage `json:"metadata"`
}
type AuditLogActionGroupsRow ¶
type AuditLogActorsRow ¶
type AuditLogExportParams ¶
type AuditLogExportParams struct {
WorkspaceID *uuid.UUID `json:"workspaceId"`
ActorType *string `json:"actorType"`
ActorID *uuid.UUID `json:"actorId"`
Actions []string `json:"actions"`
Result *string `json:"result"`
Since *time.Time `json:"since"`
Until *time.Time `json:"until"`
Search *string `json:"search"`
CursorAt *time.Time `json:"cursorAt"`
CursorID *uuid.UUID `json:"cursorId"`
Lim int32 `json:"lim"`
}
type AuditLogExportRow ¶
type AuditLogExportRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID *uuid.UUID `json:"workspaceId"`
OccurredAt time.Time `json:"occurredAt"`
ActorType string `json:"actorType"`
ActorID *uuid.UUID `json:"actorId"`
ActorName string `json:"actorName"`
Action string `json:"action"`
TargetType string `json:"targetType"`
TargetID string `json:"targetId"`
TargetName string `json:"targetName"`
Result string `json:"result"`
Reason string `json:"reason"`
Ip *netip.Addr `json:"ip"`
UserAgent string `json:"userAgent"`
RequestID string `json:"requestId"`
Before json.RawMessage `json:"before"`
After json.RawMessage `json:"after"`
Metadata json.RawMessage `json:"metadata"`
ActorColor string `json:"actorColor"`
ActorRole string `json:"actorRole"`
}
type AuditLogGetParams ¶
type AuditLogGetRow ¶
type AuditLogGetRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID *uuid.UUID `json:"workspaceId"`
OccurredAt time.Time `json:"occurredAt"`
ActorType string `json:"actorType"`
ActorID *uuid.UUID `json:"actorId"`
ActorName string `json:"actorName"`
Action string `json:"action"`
TargetType string `json:"targetType"`
TargetID string `json:"targetId"`
TargetName string `json:"targetName"`
Result string `json:"result"`
Reason string `json:"reason"`
Ip *netip.Addr `json:"ip"`
UserAgent string `json:"userAgent"`
RequestID string `json:"requestId"`
Before json.RawMessage `json:"before"`
After json.RawMessage `json:"after"`
Metadata json.RawMessage `json:"metadata"`
ActorColor string `json:"actorColor"`
ActorRole string `json:"actorRole"`
WorkspaceName string `json:"workspaceName"`
}
type AuditLogListParams ¶
type AuditLogListParams struct {
WorkspaceID *uuid.UUID `json:"workspaceId"`
ActorType *string `json:"actorType"`
ActorID *uuid.UUID `json:"actorId"`
Actions []string `json:"actions"`
Result *string `json:"result"`
Since *time.Time `json:"since"`
Until *time.Time `json:"until"`
Search *string `json:"search"`
CursorAt *time.Time `json:"cursorAt"`
CursorID *uuid.UUID `json:"cursorId"`
Lim int32 `json:"lim"`
}
type AuditLogListRow ¶
type AuditLogListRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID *uuid.UUID `json:"workspaceId"`
OccurredAt time.Time `json:"occurredAt"`
ActorType string `json:"actorType"`
ActorID *uuid.UUID `json:"actorId"`
ActorName string `json:"actorName"`
Action string `json:"action"`
TargetType string `json:"targetType"`
TargetID string `json:"targetId"`
TargetName string `json:"targetName"`
Result string `json:"result"`
Reason string `json:"reason"`
Ip *netip.Addr `json:"ip"`
UserAgent string `json:"userAgent"`
RequestID string `json:"requestId"`
Metadata json.RawMessage `json:"metadata"`
ActorColor string `json:"actorColor"`
ActorRole string `json:"actorRole"`
HasChanges bool `json:"hasChanges"`
}
type AuditLogRelatedParams ¶
type AuditLogRelatedRow ¶
type AuditSetRetentionParams ¶
type AuditStreamBatchParams ¶
type AuditStreamSetStatusParams ¶
type AuditStreamSetStatusParams struct {
Status json.RawMessage `json:"status"`
ID uuid.UUID `json:"id"`
}
type AuditStreamWorkspacesRow ¶
type AuditStreamWorkspacesRow struct {
ID uuid.UUID `json:"id"`
Slug string `json:"slug"`
AuditStreamUrl *string `json:"auditStreamUrl"`
AuditStreamSecretEnc []byte `json:"auditStreamSecretEnc"`
AuditStreamCursorAt *time.Time `json:"auditStreamCursorAt"`
AuditStreamCursorID *uuid.UUID `json:"auditStreamCursorId"`
AuditStreamStatus json.RawMessage `json:"auditStreamStatus"`
}
type AuthChallenge ¶
type Automation ¶
type Automation struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Name string `json:"name"`
Description string `json:"description"`
Status string `json:"status"`
TemplateKey string `json:"templateKey"`
LiveVersion *int32 `json:"liveVersion"`
DraftVersion int32 `json:"draftVersion"`
Trigger json.RawMessage `json:"trigger"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt"`
PausedAt *time.Time `json:"pausedAt"`
PausedBy *uuid.UUID `json:"pausedBy"`
PauseReason string `json:"pauseReason"`
DraftRevision int64 `json:"draftRevision"`
UpdatedBy *uuid.UUID `json:"updatedBy"`
}
type AutomationAlert ¶
type AutomationAlert struct {
ID uuid.UUID `json:"id"`
AutomationID uuid.UUID `json:"automationId"`
Kind string `json:"kind"`
NodeID string `json:"nodeId"`
Detail json.RawMessage `json:"detail"`
Failures int64 `json:"failures"`
FirstAt time.Time `json:"firstAt"`
LastAt time.Time `json:"lastAt"`
ResolvedAt *time.Time `json:"resolvedAt"`
}
type AutomationContactRow ¶
type AutomationContactRow struct {
ID uuid.UUID `json:"id"`
Email string `json:"email"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Status string `json:"status"`
Timezone string `json:"timezone"`
Tags []string `json:"tags"`
Attributes json.RawMessage `json:"attributes"`
ErasedAt *time.Time `json:"erasedAt"`
}
type AutomationEmail ¶
type AutomationEmail struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
AutomationID *uuid.UUID `json:"automationId"`
Name string `json:"name"`
LatestVersion int32 `json:"latestVersion"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt"`
}
type AutomationEmailLink ¶
type AutomationEmailVersion ¶
type AutomationEmailVersion struct {
EmailID uuid.UUID `json:"emailId"`
Version int32 `json:"version"`
Subject string `json:"subject"`
Preheader string `json:"preheader"`
Mjml string `json:"mjml"`
Html string `json:"html"`
PlainText string `json:"plainText"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
}
type AutomationEngagedParams ¶
type AutomationEvent ¶
type AutomationEvent struct {
ID int64 `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Kind string `json:"kind"`
ContactID uuid.UUID `json:"contactId"`
Ref string `json:"ref"`
Payload json.RawMessage `json:"payload"`
OccurredAt time.Time `json:"occurredAt"`
ProcessedAt *time.Time `json:"processedAt"`
Enrolled int32 `json:"enrolled"`
}
type AutomationFieldsRow ¶
type AutomationFormsRow ¶
type AutomationListsRow ¶
type AutomationProvidersRow ¶
type AutomationRouteRow ¶
type AutomationRouteRow struct {
Splits json.RawMessage `json:"splits"`
FallbackProviderID *uuid.UUID `json:"fallbackProviderId"`
}
type AutomationRun ¶
type AutomationRun struct {
ID uuid.UUID `json:"id"`
AutomationID uuid.UUID `json:"automationId"`
Version int32 `json:"version"`
ContactID uuid.UUID `json:"contactId"`
NodeID string `json:"nodeId"`
Status string `json:"status"`
State json.RawMessage `json:"state"`
EnteredAt time.Time `json:"enteredAt"`
NextAt *time.Time `json:"nextAt"`
FinishedAt *time.Time `json:"finishedAt"`
NodeEnteredAt time.Time `json:"nodeEnteredAt"`
ExitReason string `json:"exitReason"`
}
type AutomationRunMessageRow ¶
type AutomationStepSecret ¶
type AutomationStepStat ¶
type AutomationStepStat struct {
AutomationID uuid.UUID `json:"automationId"`
Version int32 `json:"version"`
NodeID string `json:"nodeId"`
Entered int64 `json:"entered"`
Waiting int64 `json:"waiting"`
Completed int64 `json:"completed"`
Sent int64 `json:"sent"`
Delivered int64 `json:"delivered"`
Opened int64 `json:"opened"`
Clicked int64 `json:"clicked"`
BranchYes int64 `json:"branchYes"`
BranchNo int64 `json:"branchNo"`
GoalReached int64 `json:"goalReached"`
Day time.Time `json:"day"`
Exited int64 `json:"exited"`
Dropped int64 `json:"dropped"`
Skipped int64 `json:"skipped"`
Failed int64 `json:"failed"`
Bounced int64 `json:"bounced"`
Complained int64 `json:"complained"`
OpenedHuman int64 `json:"openedHuman"`
Unsubscribed int64 `json:"unsubscribed"`
Paths json.RawMessage `json:"paths"`
Providers json.RawMessage `json:"providers"`
}
type AutomationStepStatsSinceRow ¶
type AutomationStepStatsSinceRow struct {
AutomationID uuid.UUID `json:"automationId"`
NodeID string `json:"nodeId"`
Entered int64 `json:"entered"`
Completed int64 `json:"completed"`
Waiting int64 `json:"waiting"`
Exited int64 `json:"exited"`
Dropped int64 `json:"dropped"`
GoalReached int64 `json:"goalReached"`
Skipped int64 `json:"skipped"`
Failed int64 `json:"failed"`
Sent int64 `json:"sent"`
Delivered int64 `json:"delivered"`
Bounced int64 `json:"bounced"`
Complained int64 `json:"complained"`
Opened int64 `json:"opened"`
OpenedHuman int64 `json:"openedHuman"`
Clicked int64 `json:"clicked"`
Unsubscribed int64 `json:"unsubscribed"`
BranchYes int64 `json:"branchYes"`
BranchNo int64 `json:"branchNo"`
}
type AutomationTopTagsRow ¶
type AutomationVersion ¶
type AutomationVersion struct {
AutomationID uuid.UUID `json:"automationId"`
Version int32 `json:"version"`
Graph json.RawMessage `json:"graph"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
PublishedBy *uuid.UUID `json:"publishedBy"`
PublishedAt *time.Time `json:"publishedAt"`
RetiredAt *time.Time `json:"retiredAt"`
Summary string `json:"summary"`
Migration string `json:"migration"`
}
type AutomationWebhookCall ¶
type AutomationWebhookCall struct {
ID uuid.UUID `json:"id"`
AutomationID uuid.UUID `json:"automationId"`
Version int32 `json:"version"`
NodeID string `json:"nodeId"`
RunID *uuid.UUID `json:"runId"`
Url string `json:"url"`
StatusCode int32 `json:"statusCode"`
Error string `json:"error"`
DurationMs int32 `json:"durationMs"`
Attempt int32 `json:"attempt"`
CalledAt time.Time `json:"calledAt"`
}
type BlocklistResult ¶
type BlocklistResult struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
AssetType string `json:"assetType"`
Asset string `json:"asset"`
Source string `json:"source"`
Impact string `json:"impact"`
Listed bool `json:"listed"`
ListedSince *time.Time `json:"listedSince"`
DelistUrl string `json:"delistUrl"`
CheckedAt time.Time `json:"checkedAt"`
Via string `json:"via"`
Rank int32 `json:"rank"`
Detail string `json:"detail"`
Delisting string `json:"delisting"`
DelistingRequestedAt *time.Time `json:"delistingRequestedAt"`
}
type BumpAutomationStepStatsParams ¶
type BumpAutomationStepStatsParams struct {
AutomationID uuid.UUID `json:"automationId"`
Version int32 `json:"version"`
NodeID string `json:"nodeId"`
Day time.Time `json:"day"`
Entered int64 `json:"entered"`
Completed int64 `json:"completed"`
Waiting int64 `json:"waiting"`
Exited int64 `json:"exited"`
Dropped int64 `json:"dropped"`
GoalReached int64 `json:"goalReached"`
Skipped int64 `json:"skipped"`
Failed int64 `json:"failed"`
Sent int64 `json:"sent"`
Delivered int64 `json:"delivered"`
Bounced int64 `json:"bounced"`
Complained int64 `json:"complained"`
Opened int64 `json:"opened"`
OpenedHuman int64 `json:"openedHuman"`
Clicked int64 `json:"clicked"`
Unsubscribed int64 `json:"unsubscribed"`
BranchYes int64 `json:"branchYes"`
BranchNo int64 `json:"branchNo"`
Paths json.RawMessage `json:"paths"`
Providers json.RawMessage `json:"providers"`
}
type Campaign ¶
type Campaign struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Name string `json:"name"`
Status string `json:"status"`
Subject string `json:"subject"`
Preheader string `json:"preheader"`
SenderID *uuid.UUID `json:"senderId"`
ReplyTo string `json:"replyTo"`
Audience json.RawMessage `json:"audience"`
AudienceCount *int64 `json:"audienceCount"`
EditorMode string `json:"editorMode"`
Mjml string `json:"mjml"`
Html string `json:"html"`
PlainText string `json:"plainText"`
Version int32 `json:"version"`
AbTest json.RawMessage `json:"abTest"`
Schedule json.RawMessage `json:"schedule"`
Thresholds json.RawMessage `json:"thresholds"`
RouteOverride json.RawMessage `json:"routeOverride"`
Tracking json.RawMessage `json:"tracking"`
CreatedBy *uuid.UUID `json:"createdBy"`
UpdatedBy *uuid.UUID `json:"updatedBy"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
AutosavedAt *time.Time `json:"autosavedAt"`
ScheduledAt *time.Time `json:"scheduledAt"`
StartedBy *uuid.UUID `json:"startedBy"`
StartedAt *time.Time `json:"startedAt"`
CompletedAt *time.Time `json:"completedAt"`
DeletedAt *time.Time `json:"deletedAt"`
Origin string `json:"origin"`
Note string `json:"note"`
ContentHash string `json:"contentHash"`
ContentSettings json.RawMessage `json:"contentSettings"`
}
type CampaignAudienceStage ¶
type CampaignCostSinceParams ¶
type CampaignCostSinceRow ¶
type CampaignCounter ¶
type CampaignCounter struct {
CampaignID uuid.UUID `json:"campaignId"`
ProviderID uuid.UUID `json:"providerId"`
MailboxProvider string `json:"mailboxProvider"`
Variant string `json:"variant"`
Sent int64 `json:"sent"`
Delivered int64 `json:"delivered"`
Deferred int64 `json:"deferred"`
HardBounced int64 `json:"hardBounced"`
SoftBounced int64 `json:"softBounced"`
Complained int64 `json:"complained"`
Rejected int64 `json:"rejected"`
OpenedHuman int64 `json:"openedHuman"`
OpenedMachine int64 `json:"openedMachine"`
Clicked int64 `json:"clicked"`
Unsubscribed int64 `json:"unsubscribed"`
}
type CampaignHourly ¶
type CampaignIncident ¶
type CampaignIncident struct {
ID uuid.UUID `json:"id"`
CampaignID uuid.UUID `json:"campaignId"`
Kind string `json:"kind"`
Scope string `json:"scope"`
ProviderID *uuid.UUID `json:"providerId"`
MailboxProvider string `json:"mailboxProvider"`
Metric string `json:"metric"`
Value *float64 `json:"value"`
Threshold *float64 `json:"threshold"`
Held int64 `json:"held"`
Detail json.RawMessage `json:"detail"`
TrippedAt time.Time `json:"trippedAt"`
ResolvedAt *time.Time `json:"resolvedAt"`
Resolution string `json:"resolution"`
ResolvedBy *uuid.UUID `json:"resolvedBy"`
}
type CampaignLink ¶
type CampaignRoute ¶
type CampaignSend ¶
type CampaignSend struct {
CampaignID uuid.UUID `json:"campaignId"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Phase string `json:"phase"`
PrepareCursor *uuid.UUID `json:"prepareCursor"`
PreparedAt *time.Time `json:"preparedAt"`
Recipients int64 `json:"recipients"`
Excluded json.RawMessage `json:"excluded"`
StartedBy *uuid.UUID `json:"startedBy"`
StartedByName string `json:"startedByName"`
ApprovedBy *uuid.UUID `json:"approvedBy"`
ApprovedAt *time.Time `json:"approvedAt"`
ScheduledBy *uuid.UUID `json:"scheduledBy"`
Throttles json.RawMessage `json:"throttles"`
Thresholds json.RawMessage `json:"thresholds"`
Holds json.RawMessage `json:"holds"`
Changes json.RawMessage `json:"changes"`
Ab json.RawMessage `json:"ab"`
Content json.RawMessage `json:"content"`
Scenario string `json:"scenario"`
PausedAt *time.Time `json:"pausedAt"`
PausedByName string `json:"pausedByName"`
PauseReason string `json:"pauseReason"`
Error string `json:"error"`
FinishedAt *time.Time `json:"finishedAt"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type CampaignTotalsSinceRow ¶
type CampaignVersion ¶
type CampaignVersion struct {
CampaignID uuid.UUID `json:"campaignId"`
Version int32 `json:"version"`
Subject string `json:"subject"`
Preheader string `json:"preheader"`
Mjml string `json:"mjml"`
Html string `json:"html"`
SavedBy *uuid.UUID `json:"savedBy"`
SavedAt time.Time `json:"savedAt"`
Label string `json:"label"`
PlainText string `json:"plainText"`
AbTest json.RawMessage `json:"abTest"`
Source string `json:"source"`
SizeBytes int32 `json:"sizeBytes"`
}
type ClaimDueAutomationRunsRow ¶
type ClaimDueAutomationRunsRow struct {
ID uuid.UUID `json:"id"`
AutomationID uuid.UUID `json:"automationId"`
Version int32 `json:"version"`
ContactID uuid.UUID `json:"contactId"`
NodeID string `json:"nodeId"`
Status string `json:"status"`
State json.RawMessage `json:"state"`
EnteredAt time.Time `json:"enteredAt"`
NodeEnteredAt time.Time `json:"nodeEnteredAt"`
NextAt *time.Time `json:"nextAt"`
WorkspaceID uuid.UUID `json:"workspaceId"`
}
type CommunityAdapterListRow ¶
type ComposerCustomFieldsRow ¶
type ComposerDefaultSenderRow ¶
type ComposerDefaultSenderRow struct {
SenderID string `json:"senderId"`
Branding json.RawMessage `json:"branding"`
}
type ComposerLockCampaignRow ¶
type ComposerLockCampaignRow struct {
ID uuid.UUID `json:"id"`
Status string `json:"status"`
Version int32 `json:"version"`
Subject string `json:"subject"`
Preheader string `json:"preheader"`
Mjml string `json:"mjml"`
Html string `json:"html"`
AbTest json.RawMessage `json:"abTest"`
ContentHash string `json:"contentHash"`
ContentSettings json.RawMessage `json:"contentSettings"`
UpdatedBy *uuid.UUID `json:"updatedBy"`
AutosavedAt *time.Time `json:"autosavedAt"`
UpdatedAt time.Time `json:"updatedAt"`
UpdatedByName string `json:"updatedByName"`
}
type ComposerUpdateCampaignMetaParams ¶
type ComposerUpdateCampaignMetaParams struct {
Name string `json:"name"`
SenderID *uuid.UUID `json:"senderId"`
ReplyTo string `json:"replyTo"`
Audience json.RawMessage `json:"audience"`
AudienceCount *int64 `json:"audienceCount"`
ContentSettings json.RawMessage `json:"contentSettings"`
UpdatedBy *uuid.UUID `json:"updatedBy"`
Now time.Time `json:"now"`
WorkspaceID uuid.UUID `json:"workspaceId"`
ID uuid.UUID `json:"id"`
}
type ConnectCreateListParams ¶
type ConnectFirstWebhookRow ¶
type ConnectInsertProviderParams ¶
type ConnectInsertProviderParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Adapter string `json:"adapter"`
Name string `json:"name"`
Label string `json:"label"`
Config json.RawMessage `json:"config"`
CredentialsEnc []byte `json:"credentialsEnc"`
WebhookToken string `json:"webhookToken"`
WebhookSecretEnc []byte `json:"webhookSecretEnc"`
Status string `json:"status"`
StatusDetail string `json:"statusDetail"`
IpMode string `json:"ipMode"`
Ips []string `json:"ips"`
Capabilities json.RawMessage `json:"capabilities"`
Limits json.RawMessage `json:"limits"`
Health json.RawMessage `json:"health"`
Pricing json.RawMessage `json:"pricing"`
ConnectedBy *uuid.UUID `json:"connectedBy"`
ConnectedAt time.Time `json:"connectedAt"`
}
type ConnectMessageParams ¶
type ConnectSameAdapterRow ¶
type ConnectSetProviderConfigParams ¶
type ConnectSetProviderConfigParams struct {
Config json.RawMessage `json:"config"`
ID uuid.UUID `json:"id"`
}
type ConnectUpdateProviderParams ¶
type ConnectUpdateProviderParams struct {
Label string `json:"label"`
Config json.RawMessage `json:"config"`
CredentialsEnc []byte `json:"credentialsEnc"`
Status string `json:"status"`
StatusDetail string `json:"statusDetail"`
IpMode string `json:"ipMode"`
Ips []string `json:"ips"`
Health json.RawMessage `json:"health"`
CheckedAt *time.Time `json:"checkedAt"`
ID uuid.UUID `json:"id"`
}
type ConsentEvent ¶
type ConsentEvent struct {
ID uuid.UUID `json:"id"`
ContactID uuid.UUID `json:"contactId"`
ListID *uuid.UUID `json:"listId"`
Action string `json:"action"`
Source string `json:"source"`
Ip *netip.Addr `json:"ip"`
UserAgent string `json:"userAgent"`
Detail string `json:"detail"`
OccurredAt time.Time `json:"occurredAt"`
Note string `json:"note"`
ConsentVersion string `json:"consentVersion"`
ActorID *uuid.UUID `json:"actorId"`
ImportID *uuid.UUID `json:"importId"`
ConsentText string `json:"consentText"`
}
type Contact ¶
type Contact struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Email string `json:"email"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Status string `json:"status"`
Tier string `json:"tier"`
Source string `json:"source"`
Timezone string `json:"timezone"`
Country string `json:"country"`
MailboxProvider string `json:"mailboxProvider"`
Tags []string `json:"tags"`
Attributes json.RawMessage `json:"attributes"`
LastSentAt *time.Time `json:"lastSentAt"`
LastOpenAt *time.Time `json:"lastOpenAt"`
LastClickAt *time.Time `json:"lastClickAt"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
ErasedAt *time.Time `json:"erasedAt"`
Company string `json:"company"`
Language string `json:"language"`
MailboxDetail string `json:"mailboxDetail"`
Consent string `json:"consent"`
ConsentEvidence json.RawMessage `json:"consentEvidence"`
ImportID *uuid.UUID `json:"importId"`
RoleAddress bool `json:"roleAddress"`
LastHumanOpenAt *time.Time `json:"lastHumanOpenAt"`
LastOpenMachine bool `json:"lastOpenMachine"`
LastActivityAt *time.Time `json:"lastActivityAt"`
TierChangedAt *time.Time `json:"tierChangedAt"`
SunsetAt *time.Time `json:"sunsetAt"`
BroadcastsStoppedAt *time.Time `json:"broadcastsStoppedAt"`
}
type ContactConsentEventsRow ¶
type ContactConsentEventsRow struct {
ID uuid.UUID `json:"id"`
ListID *uuid.UUID `json:"listId"`
Action string `json:"action"`
Source string `json:"source"`
Ip *netip.Addr `json:"ip"`
UserAgent string `json:"userAgent"`
Detail string `json:"detail"`
Note string `json:"note"`
ConsentVersion string `json:"consentVersion"`
OccurredAt time.Time `json:"occurredAt"`
ActorName string `json:"actorName"`
}
type ContactListNamesRow ¶
type ContactMembershipsRow ¶
type ContactMembershipsRow struct {
ListID uuid.UUID `json:"listId"`
Name string `json:"name"`
DoubleOptIn bool `json:"doubleOptIn"`
Status string `json:"status"`
Source string `json:"source"`
SubscribedAt *time.Time `json:"subscribedAt"`
UnsubscribedAt *time.Time `json:"unsubscribedAt"`
CreatedAt time.Time `json:"createdAt"`
}
type ContactPreference ¶
type ContactSourcesRow ¶
type CountCampaignsParams ¶
type CountNotificationsRow ¶
type CreateAPIKeyParams ¶
type CreateAPIKeyParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Kind string `json:"kind"`
Name string `json:"name"`
Description string `json:"description"`
Prefix string `json:"prefix"`
TokenHash []byte `json:"tokenHash"`
Permissions []string `json:"permissions"`
Scope json.RawMessage `json:"scope"`
CreatedBy *uuid.UUID `json:"createdBy"`
ExpiresAt *time.Time `json:"expiresAt"`
RotatedFrom *uuid.UUID `json:"rotatedFrom"`
}
type CreateAutomationParams ¶
type CreateChallengeParams ¶
type CreateContactParams ¶
type CreateContactParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Email string `json:"email"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Company string `json:"company"`
Country string `json:"country"`
Timezone string `json:"timezone"`
Language string `json:"language"`
MailboxProvider string `json:"mailboxProvider"`
MailboxDetail string `json:"mailboxDetail"`
Consent string `json:"consent"`
Source string `json:"source"`
Tags []string `json:"tags"`
Attributes json.RawMessage `json:"attributes"`
RoleAddress bool `json:"roleAddress"`
}
type CreateCustomFieldParams ¶
type CreateDeliverabilityCheckRunParams ¶
type CreateDeliverabilityCheckRunParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Via string `json:"via"`
Trigger string `json:"trigger"`
Assets []string `json:"assets"`
Total int32 `json:"total"`
RequestedBy *uuid.UUID `json:"requestedBy"`
StartedAt time.Time `json:"startedAt"`
}
type CreateEmailChangeParams ¶
type CreateHostReputeOAuthStateParams ¶
type CreateHostReputeOAuthStateParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
UserID uuid.UUID `json:"userId"`
StateHash []byte `json:"stateHash"`
VerifierEnc []byte `json:"verifierEnc"`
RedirectUri string `json:"redirectUri"`
ExpiresAt time.Time `json:"expiresAt"`
}
type CreateIdentityParams ¶
type CreateImportParams ¶
type CreateInvitationParams ¶
type CreateInvitationParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Email string `json:"email"`
RoleID uuid.UUID `json:"roleId"`
Scope json.RawMessage `json:"scope"`
Message string `json:"message"`
TokenHash []byte `json:"tokenHash"`
InvitedBy *uuid.UUID `json:"invitedBy"`
SentVia *string `json:"sentVia"`
LastSentAt *time.Time `json:"lastSentAt"`
ExpiresAt time.Time `json:"expiresAt"`
}
type CreateListParams ¶
type CreateMemberParams ¶
type CreatePasskeyParams ¶
type CreatePasskeyParams struct {
ID uuid.UUID `json:"id"`
UserID uuid.UUID `json:"userId"`
Name string `json:"name"`
CredentialID []byte `json:"credentialId"`
PublicKey []byte `json:"publicKey"`
AttestationType string `json:"attestationType"`
Aaguid []byte `json:"aaguid"`
SignCount int64 `json:"signCount"`
Transports []string `json:"transports"`
BackupEligible bool `json:"backupEligible"`
BackupState bool `json:"backupState"`
}
type CreatePasskeyRecordParams ¶
type CreatePasskeyRecordParams struct {
ID uuid.UUID `json:"id"`
UserID uuid.UUID `json:"userId"`
Name string `json:"name"`
CredentialID []byte `json:"credentialId"`
PublicKey []byte `json:"publicKey"`
AttestationType string `json:"attestationType"`
Aaguid []byte `json:"aaguid"`
SignCount int64 `json:"signCount"`
Transports []string `json:"transports"`
BackupEligible bool `json:"backupEligible"`
BackupState bool `json:"backupState"`
Credential json.RawMessage `json:"credential"`
Attachment string `json:"attachment"`
Provider string `json:"provider"`
}
type CreateRoleParams ¶
type CreateRoleParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Key string `json:"key"`
Name string `json:"name"`
Description string `json:"description"`
Builtin bool `json:"builtin"`
Permissions []string `json:"permissions"`
CreatedBy *uuid.UUID `json:"createdBy"`
}
type CreateSavedViewParams ¶
type CreateSegmentParams ¶
type CreateSegmentParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Name string `json:"name"`
Description string `json:"description"`
Mode string `json:"mode"`
Refresh string `json:"refresh"`
Definition json.RawMessage `json:"definition"`
Sql string `json:"sql"`
CreatedBy *uuid.UUID `json:"createdBy"`
}
type CreateSessionParams ¶
type CreateSessionParams struct {
ID uuid.UUID `json:"id"`
UserID uuid.UUID `json:"userId"`
TokenHash []byte `json:"tokenHash"`
AuthMethod string `json:"authMethod"`
MfaVerified bool `json:"mfaVerified"`
Ip *netip.Addr `json:"ip"`
UserAgent string `json:"userAgent"`
Location string `json:"location"`
ExpiresAt time.Time `json:"expiresAt"`
}
type CreateUserParams ¶
type CreateUserParams struct {
ID uuid.UUID `json:"id"`
Email string `json:"email"`
Name string `json:"name"`
Timezone string `json:"timezone"`
PasswordHash *string `json:"passwordHash"`
PasswordSetAt *time.Time `json:"passwordSetAt"`
MustChangePassword bool `json:"mustChangePassword"`
IsInstanceAdmin bool `json:"isInstanceAdmin"`
BreakGlass bool `json:"breakGlass"`
AvatarColor string `json:"avatarColor"`
TwofaGraceUntil *time.Time `json:"twofaGraceUntil"`
}
type CreateWorkspaceParams ¶
type CustomField ¶
type CustomField struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Key string `json:"key"`
Label string `json:"label"`
Type string `json:"type"`
Options json.RawMessage `json:"options"`
CreatedAt time.Time `json:"createdAt"`
Display string `json:"display"`
Position int32 `json:"position"`
}
type DeleteCustomFieldParams ¶
type DeleteIdentityParams ¶
type DeleteImportParams ¶
type DeleteMemberParams ¶
type DeletePasskeyParams ¶
type DeleteSavedViewParams ¶
type DeleteSegmentParams ¶
type DeleteSuppressionParams ¶
type DeliverabilityCheckRun ¶
type DeliverabilityCheckRun struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Via string `json:"via"`
Trigger string `json:"trigger"`
Status string `json:"status"`
Assets []string `json:"assets"`
Total int32 `json:"total"`
Answered int32 `json:"answered"`
Listed int32 `json:"listed"`
Error string `json:"error"`
RequestedBy *uuid.UUID `json:"requestedBy"`
StartedAt time.Time `json:"startedAt"`
FinishedAt *time.Time `json:"finishedAt"`
}
type DeliveryEvent ¶
type DeliveryEvent struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
MessageID *uuid.UUID `json:"messageId"`
CampaignID *uuid.UUID `json:"campaignId"`
ContactID *uuid.UUID `json:"contactId"`
ProviderID *uuid.UUID `json:"providerId"`
RawEventID *uuid.UUID `json:"rawEventId"`
Type string `json:"type"`
OccurredAt time.Time `json:"occurredAt"`
MailboxProvider string `json:"mailboxProvider"`
OriginalType string `json:"originalType"`
OriginalCode string `json:"originalCode"`
Diagnostic string `json:"diagnostic"`
BounceClass string `json:"bounceClass"`
Machine bool `json:"machine"`
Url string `json:"url"`
UserAgent string `json:"userAgent"`
Ip *netip.Addr `json:"ip"`
Recipient string `json:"recipient"`
ProviderMessageID string `json:"providerMessageId"`
Source string `json:"source"`
ReceivedAt time.Time `json:"receivedAt"`
DedupeKey string `json:"dedupeKey"`
}
type DmarcReport ¶
type DmarcReport struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Domain string `json:"domain"`
OrgName string `json:"orgName"`
ReportID string `json:"reportId"`
DateBegin time.Time `json:"dateBegin"`
DateEnd time.Time `json:"dateEnd"`
Policy json.RawMessage `json:"policy"`
Records json.RawMessage `json:"records"`
ReceivedAt time.Time `json:"receivedAt"`
Via string `json:"via"`
}
type DomCreateParams ¶
type DomDueParams ¶
type DomGetByNameParams ¶
type DomGetParams ¶
type DomSaveCheckParams ¶
type DomSaveCheckParams struct {
DnsRecords json.RawMessage `json:"dnsRecords"`
AuthSummary json.RawMessage `json:"authSummary"`
AuthDetail json.RawMessage `json:"authDetail"`
Status string `json:"status"`
TrackingStatus string `json:"trackingStatus"`
DnsHost string `json:"dnsHost"`
Nameservers []string `json:"nameservers"`
CheckedAt *time.Time `json:"checkedAt"`
ID uuid.UUID `json:"id"`
}
type DomUpdateNoteParams ¶
type DomUpdateRecordsParams ¶
type DomUpdateTrackingParams ¶
type EmailChange ¶
type EmailTakenParams ¶
type EnabledSSOProvidersRow ¶
type FinishImportParams ¶
type Form ¶
type Form struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Name string `json:"name"`
Kind string `json:"kind"`
Slug string `json:"slug"`
ListIds []uuid.UUID `json:"listIds"`
DoubleOptIn bool `json:"doubleOptIn"`
Fields json.RawMessage `json:"fields"`
Content json.RawMessage `json:"content"`
SpamProtection json.RawMessage `json:"spamProtection"`
Status string `json:"status"`
Views int64 `json:"views"`
Submissions int64 `json:"submissions"`
Confirmed int64 `json:"confirmed"`
Blocked int64 `json:"blocked"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
PublicID string `json:"publicId"`
DefaultListIds []uuid.UUID `json:"defaultListIds"`
ListChoice bool `json:"listChoice"`
ConsentText string `json:"consentText"`
ConsentVersion int32 `json:"consentVersion"`
AllowedOrigins []string `json:"allowedOrigins"`
AfterSubmit string `json:"afterSubmit"`
RedirectUrl string `json:"redirectUrl"`
PublishedAt *time.Time `json:"publishedAt"`
UpdatedBy *uuid.UUID `json:"updatedBy"`
}
type FormAllowOriginParams ¶
type FormBlockedOriginsRow ¶
type FormBumpDailyParams ¶
type FormBumpTotalsParams ¶
type FormByPublicIDParams ¶
type FormBySlugParams ¶
type FormChallenge ¶
type FormChallengeLiveParams ¶
type FormChallengeTakeParams ¶
type FormDeleteParams ¶
type FormDismissOriginParams ¶
type FormGetParams ¶
type FormInsertParams ¶
type FormInsertParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Name string `json:"name"`
Kind string `json:"kind"`
Slug string `json:"slug"`
PublicID string `json:"publicId"`
ListIds []uuid.UUID `json:"listIds"`
DefaultListIds []uuid.UUID `json:"defaultListIds"`
ListChoice bool `json:"listChoice"`
DoubleOptIn bool `json:"doubleOptIn"`
Fields json.RawMessage `json:"fields"`
Content json.RawMessage `json:"content"`
SpamProtection json.RawMessage `json:"spamProtection"`
ConsentText string `json:"consentText"`
ConsentVersion int32 `json:"consentVersion"`
AllowedOrigins []string `json:"allowedOrigins"`
AfterSubmit string `json:"afterSubmit"`
RedirectUrl string `json:"redirectUrl"`
Status string `json:"status"`
PublishedAt *time.Time `json:"publishedAt"`
CreatedBy *uuid.UUID `json:"createdBy"`
At time.Time `json:"at"`
}
type FormPublicIDTakenParams ¶
type FormRejection ¶
type FormRenameParams ¶
type FormSetStatusParams ¶
type FormSlugTakenParams ¶
type FormStatsSinceParams ¶
type FormStatsSinceRow ¶
type FormSubmission ¶
type FormSubmission struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
FormID *uuid.UUID `json:"formId"`
ContactID uuid.UUID `json:"contactId"`
ListIds []uuid.UUID `json:"listIds"`
DoubleOptIn bool `json:"doubleOptIn"`
CreatedAt time.Time `json:"createdAt"`
ConfirmSentAt *time.Time `json:"confirmSentAt"`
SendAttempts int32 `json:"sendAttempts"`
RemindedAt *time.Time `json:"remindedAt"`
ConfirmedAt *time.Time `json:"confirmedAt"`
}
type FormSubmissionInsertParams ¶
type FormSubmissionInsertParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
FormID *uuid.UUID `json:"formId"`
ContactID uuid.UUID `json:"contactId"`
ListIds []uuid.UUID `json:"listIds"`
DoubleOptIn bool `json:"doubleOptIn"`
At time.Time `json:"at"`
ConfirmedAt *time.Time `json:"confirmedAt"`
}
type FormUpdateParams ¶
type FormUpdateParams struct {
Name string `json:"name"`
Kind string `json:"kind"`
ListIds []uuid.UUID `json:"listIds"`
DefaultListIds []uuid.UUID `json:"defaultListIds"`
ListChoice bool `json:"listChoice"`
DoubleOptIn bool `json:"doubleOptIn"`
Fields json.RawMessage `json:"fields"`
Content json.RawMessage `json:"content"`
SpamProtection json.RawMessage `json:"spamProtection"`
ConsentText string `json:"consentText"`
ConsentVersion int32 `json:"consentVersion"`
AllowedOrigins []string `json:"allowedOrigins"`
AfterSubmit string `json:"afterSubmit"`
RedirectUrl string `json:"redirectUrl"`
Status string `json:"status"`
At time.Time `json:"at"`
UpdatedBy *uuid.UUID `json:"updatedBy"`
WorkspaceID uuid.UUID `json:"workspaceId"`
ID uuid.UUID `json:"id"`
}
type FormWaitingCountParams ¶
type FormsDefaultSenderRow ¶
type FormsUpdateBrandingParams ¶
type FormsUpdateBrandingParams struct {
Patch json.RawMessage `json:"patch"`
ID uuid.UUID `json:"id"`
}
type GetAPIKeyByTokenRow ¶
type GetAPIKeyByTokenRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Kind string `json:"kind"`
Name string `json:"name"`
Description string `json:"description"`
Prefix string `json:"prefix"`
TokenHash []byte `json:"tokenHash"`
Permissions []string `json:"permissions"`
Scope json.RawMessage `json:"scope"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
ExpiresAt *time.Time `json:"expiresAt"`
LastUsedAt *time.Time `json:"lastUsedAt"`
LastUsedIp *netip.Addr `json:"lastUsedIp"`
RevokedAt *time.Time `json:"revokedAt"`
RotatedFrom *uuid.UUID `json:"rotatedFrom"`
LastUsedClient string `json:"lastUsedClient"`
LastCall string `json:"lastCall"`
WorkspaceSlug string `json:"workspaceSlug"`
}
type GetAPIKeyParams ¶
type GetAutomationEmailVersionRow ¶
type GetAutomationEmailVersionRow struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
LatestVersion int32 `json:"latestVersion"`
Version int32 `json:"version"`
Subject string `json:"subject"`
Preheader string `json:"preheader"`
Mjml string `json:"mjml"`
Html string `json:"html"`
PlainText string `json:"plainText"`
CreatedAt time.Time `json:"createdAt"`
}
type GetAutomationParams ¶
type GetAutomationRow ¶
type GetAutomationRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Name string `json:"name"`
Description string `json:"description"`
Status string `json:"status"`
TemplateKey string `json:"templateKey"`
LiveVersion *int32 `json:"liveVersion"`
DraftVersion int32 `json:"draftVersion"`
Trigger json.RawMessage `json:"trigger"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt"`
PausedAt *time.Time `json:"pausedAt"`
PausedBy *uuid.UUID `json:"pausedBy"`
PauseReason string `json:"pauseReason"`
DraftRevision int64 `json:"draftRevision"`
UpdatedBy *uuid.UUID `json:"updatedBy"`
PausedByName string `json:"pausedByName"`
}
type GetAutomationRunForUpdateRow ¶
type GetAutomationRunForUpdateRow struct {
ID uuid.UUID `json:"id"`
AutomationID uuid.UUID `json:"automationId"`
Version int32 `json:"version"`
ContactID uuid.UUID `json:"contactId"`
NodeID string `json:"nodeId"`
Status string `json:"status"`
State json.RawMessage `json:"state"`
EnteredAt time.Time `json:"enteredAt"`
NodeEnteredAt time.Time `json:"nodeEnteredAt"`
NextAt *time.Time `json:"nextAt"`
WorkspaceID uuid.UUID `json:"workspaceId"`
}
type GetAutomationVersionRow ¶
type GetAutomationVersionRow struct {
AutomationID uuid.UUID `json:"automationId"`
Version int32 `json:"version"`
Graph json.RawMessage `json:"graph"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
PublishedBy *uuid.UUID `json:"publishedBy"`
PublishedAt *time.Time `json:"publishedAt"`
RetiredAt *time.Time `json:"retiredAt"`
Summary string `json:"summary"`
Migration string `json:"migration"`
CreatedByName string `json:"createdByName"`
PublishedByName string `json:"publishedByName"`
}
type GetChallengeParams ¶
type GetComposerCampaignRow ¶
type GetComposerCampaignRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Name string `json:"name"`
Status string `json:"status"`
Subject string `json:"subject"`
Preheader string `json:"preheader"`
SenderID *uuid.UUID `json:"senderId"`
ReplyTo string `json:"replyTo"`
Audience json.RawMessage `json:"audience"`
AudienceCount *int64 `json:"audienceCount"`
EditorMode string `json:"editorMode"`
Mjml string `json:"mjml"`
Html string `json:"html"`
PlainText string `json:"plainText"`
Version int32 `json:"version"`
AbTest json.RawMessage `json:"abTest"`
Schedule json.RawMessage `json:"schedule"`
ContentHash string `json:"contentHash"`
ContentSettings json.RawMessage `json:"contentSettings"`
CreatedBy *uuid.UUID `json:"createdBy"`
UpdatedBy *uuid.UUID `json:"updatedBy"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
AutosavedAt *time.Time `json:"autosavedAt"`
ScheduledAt *time.Time `json:"scheduledAt"`
StartedAt *time.Time `json:"startedAt"`
UpdatedByName string `json:"updatedByName"`
SenderName string `json:"senderName"`
SenderEmail string `json:"senderEmail"`
VersionCount int64 `json:"versionCount"`
}
type GetComposerSenderParams ¶
type GetComposerSenderRow ¶
type GetComposerVersionRow ¶
type GetComposerVersionRow struct {
CampaignID uuid.UUID `json:"campaignId"`
Version int32 `json:"version"`
Subject string `json:"subject"`
Preheader string `json:"preheader"`
Mjml string `json:"mjml"`
Html string `json:"html"`
PlainText string `json:"plainText"`
AbTest json.RawMessage `json:"abTest"`
SavedBy *uuid.UUID `json:"savedBy"`
SavedAt time.Time `json:"savedAt"`
Label string `json:"label"`
Source string `json:"source"`
SizeBytes int32 `json:"sizeBytes"`
SavedByName string `json:"savedByName"`
}
type GetContactByEmailParams ¶
type GetContactParams ¶
type GetCustomFieldParams ¶
type GetEmailTemplateParams ¶
type GetEmailTemplateRow ¶
type GetEmailTemplateRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Kind string `json:"kind"`
Name string `json:"name"`
Description string `json:"description"`
Mjml string `json:"mjml"`
Html string `json:"html"`
Thumb json.RawMessage `json:"thumb"`
SizeBytes int32 `json:"sizeBytes"`
SourceCampaignID *uuid.UUID `json:"sourceCampaignId"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
UpdatedByName string `json:"updatedByName"`
}
type GetIdentityParams ¶
type GetImportParams ¶
type GetInvitationByTokenRow ¶
type GetInvitationByTokenRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Email string `json:"email"`
RoleID uuid.UUID `json:"roleId"`
Scope json.RawMessage `json:"scope"`
Message string `json:"message"`
TokenHash []byte `json:"tokenHash"`
InvitedBy *uuid.UUID `json:"invitedBy"`
SentVia *string `json:"sentVia"`
LastSentAt *time.Time `json:"lastSentAt"`
CreatedAt time.Time `json:"createdAt"`
ExpiresAt time.Time `json:"expiresAt"`
AcceptedAt *time.Time `json:"acceptedAt"`
AcceptedBy *uuid.UUID `json:"acceptedBy"`
RevokedAt *time.Time `json:"revokedAt"`
TokenEnc []byte `json:"tokenEnc"`
ExpiresDays int32 `json:"expiresDays"`
ReinviteRequestedAt *time.Time `json:"reinviteRequestedAt"`
RoleName string `json:"roleName"`
RoleKey string `json:"roleKey"`
WorkspaceName string `json:"workspaceName"`
WorkspaceSlug string `json:"workspaceSlug"`
InvitedByName *string `json:"invitedByName"`
}
type GetInvitationViewRow ¶
type GetInvitationViewRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Email string `json:"email"`
RoleID uuid.UUID `json:"roleId"`
Scope json.RawMessage `json:"scope"`
Message string `json:"message"`
TokenHash []byte `json:"tokenHash"`
InvitedBy *uuid.UUID `json:"invitedBy"`
SentVia *string `json:"sentVia"`
LastSentAt *time.Time `json:"lastSentAt"`
CreatedAt time.Time `json:"createdAt"`
ExpiresAt time.Time `json:"expiresAt"`
AcceptedAt *time.Time `json:"acceptedAt"`
AcceptedBy *uuid.UUID `json:"acceptedBy"`
RevokedAt *time.Time `json:"revokedAt"`
TokenEnc []byte `json:"tokenEnc"`
ExpiresDays int32 `json:"expiresDays"`
ReinviteRequestedAt *time.Time `json:"reinviteRequestedAt"`
RoleName string `json:"roleName"`
RoleKey string `json:"roleKey"`
RoleBuiltin bool `json:"roleBuiltin"`
RolePermissions []string `json:"rolePermissions"`
WorkspaceName string `json:"workspaceName"`
WorkspaceSlug string `json:"workspaceSlug"`
WorkspaceApprovalPolicy json.RawMessage `json:"workspaceApprovalPolicy"`
InvitedByName string `json:"invitedByName"`
InvitedByEmail string `json:"invitedByEmail"`
InvitedByStatus string `json:"invitedByStatus"`
}
type GetListParams ¶
type GetMXCacheParams ¶
type GetMXCacheRow ¶
type GetMediaAssetDataRow ¶
type GetMediaAssetParams ¶
type GetMediaAssetRow ¶
type GetMediaAssetRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
FileName string `json:"fileName"`
ContentType string `json:"contentType"`
SizeBytes int32 `json:"sizeBytes"`
Width int32 `json:"width"`
Height int32 `json:"height"`
HasAlpha bool `json:"hasAlpha"`
CreatedAt time.Time `json:"createdAt"`
}
type GetMemberParams ¶
type GetMemberRow ¶
type GetMemberRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
UserID uuid.UUID `json:"userId"`
RoleID uuid.UUID `json:"roleId"`
Scope json.RawMessage `json:"scope"`
Source string `json:"source"`
Status string `json:"status"`
InvitedBy *uuid.UUID `json:"invitedBy"`
JoinedAt time.Time `json:"joinedAt"`
DeactivatedAt *time.Time `json:"deactivatedAt"`
LastActiveAt *time.Time `json:"lastActiveAt"`
RoleKey string `json:"roleKey"`
RoleName string `json:"roleName"`
RoleBuiltin bool `json:"roleBuiltin"`
RolePermissions []string `json:"rolePermissions"`
Email string `json:"email"`
UserName string `json:"userName"`
UserStatus string `json:"userStatus"`
TotpEnabledAt *time.Time `json:"totpEnabledAt"`
TwofaGraceUntil *time.Time `json:"twofaGraceUntil"`
UserLastActiveAt *time.Time `json:"userLastActiveAt"`
HasPassword interface{} `json:"hasPassword"`
}
type GetMembershipParams ¶
type GetMembershipRow ¶
type GetMembershipRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
UserID uuid.UUID `json:"userId"`
RoleID uuid.UUID `json:"roleId"`
Scope json.RawMessage `json:"scope"`
Source string `json:"source"`
Status string `json:"status"`
InvitedBy *uuid.UUID `json:"invitedBy"`
JoinedAt time.Time `json:"joinedAt"`
DeactivatedAt *time.Time `json:"deactivatedAt"`
LastActiveAt *time.Time `json:"lastActiveAt"`
RoleKey string `json:"roleKey"`
RoleName string `json:"roleName"`
RoleBuiltin bool `json:"roleBuiltin"`
RolePermissions []string `json:"rolePermissions"`
}
type GetRoleByKeyParams ¶
type GetSavedViewParams ¶
type GetSegmentParams ¶
type GetSuppressionParams ¶
type GetUsablePasswordResetRow ¶
type GetUsablePasswordResetRow struct {
ID uuid.UUID `json:"id"`
UserID uuid.UUID `json:"userId"`
TokenHash []byte `json:"tokenHash"`
CreatedAt time.Time `json:"createdAt"`
ExpiresAt time.Time `json:"expiresAt"`
UsedAt *time.Time `json:"usedAt"`
Source string `json:"source"`
Email string `json:"email"`
UserStatus string `json:"userStatus"`
}
type GetUserPasskeyParams ¶
type GetUserSessionParams ¶
type HideMediaAssetParams ¶
type HooksClaimDeliveryRow ¶
type HooksClaimDeliveryRow struct {
ID uuid.UUID `json:"id"`
WebhookID uuid.UUID `json:"webhookId"`
Event string `json:"event"`
EventID *uuid.UUID `json:"eventId"`
Payload json.RawMessage `json:"payload"`
Attempt int32 `json:"attempt"`
MaxAttempts int32 `json:"maxAttempts"`
Url string `json:"url"`
SecretEnc []byte `json:"secretEnc"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Demo bool `json:"demo"`
}
type HooksCreateParams ¶
type HooksDeleteParams ¶
type HooksDeliveriesParams ¶
type HooksDeliveriesRow ¶
type HooksDeliveriesRow struct {
ID uuid.UUID `json:"id"`
WebhookID uuid.UUID `json:"webhookId"`
Event string `json:"event"`
EventID *uuid.UUID `json:"eventId"`
Attempt int32 `json:"attempt"`
MaxAttempts int32 `json:"maxAttempts"`
State string `json:"state"`
StatusCode *int32 `json:"statusCode"`
DurationMs *int32 `json:"durationMs"`
Error string `json:"error"`
CreatedAt time.Time `json:"createdAt"`
LastAttemptAt *time.Time `json:"lastAttemptAt"`
NextAttemptAt *time.Time `json:"nextAttemptAt"`
DeliveredAt *time.Time `json:"deliveredAt"`
WebhookUrl string `json:"webhookUrl"`
Subtype string `json:"subtype"`
}
type HooksGetDeliveryParams ¶
type HooksGetDeliveryRow ¶
type HooksGetDeliveryRow struct {
ID uuid.UUID `json:"id"`
WebhookID uuid.UUID `json:"webhookId"`
Event string `json:"event"`
Payload json.RawMessage `json:"payload"`
Attempt int32 `json:"attempt"`
StatusCode *int32 `json:"statusCode"`
DurationMs *int32 `json:"durationMs"`
Response string `json:"response"`
Error string `json:"error"`
CreatedAt time.Time `json:"createdAt"`
EventID *uuid.UUID `json:"eventId"`
State string `json:"state"`
MaxAttempts int32 `json:"maxAttempts"`
NextAttemptAt *time.Time `json:"nextAttemptAt"`
EnqueuedAt *time.Time `json:"enqueuedAt"`
LastAttemptAt *time.Time `json:"lastAttemptAt"`
DeliveredAt *time.Time `json:"deliveredAt"`
WebhookUrl string `json:"webhookUrl"`
WorkspaceID uuid.UUID `json:"workspaceId"`
}
type HooksGetParams ¶
type HooksInsertDeliveryParams ¶
type HooksInsertDeliveryParams struct {
ID uuid.UUID `json:"id"`
WebhookID uuid.UUID `json:"webhookId"`
Event string `json:"event"`
EventID *uuid.UUID `json:"eventId"`
Payload json.RawMessage `json:"payload"`
State string `json:"state"`
NextAttemptAt *time.Time `json:"nextAttemptAt"`
MaxAttempts int32 `json:"maxAttempts"`
}
type HooksListRow ¶
type HooksListRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Name string `json:"name"`
Description string `json:"description"`
Url string `json:"url"`
Events []string `json:"events"`
Enabled bool `json:"enabled"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
LastStatus *int32 `json:"lastStatus"`
LastDeliveryAt *time.Time `json:"lastDeliveryAt"`
FailingSince *time.Time `json:"failingSince"`
SecretRotatedAt *time.Time `json:"secretRotatedAt"`
PausedAt *time.Time `json:"pausedAt"`
Total24h int64 `json:"total24h"`
Ok24h int64 `json:"ok24h"`
Queued int64 `json:"queued"`
}
type HooksMatchingParams ¶
type HooksMatchingRow ¶
type HooksRecordResultParams ¶
type HooksRequeueParams ¶
type HooksSetEnabledParams ¶
type HooksSetSecretParams ¶
type HooksUpdateParams ¶
type HostReputeUserNameRow ¶
type HostreputeConnection ¶
type HostreputeConnection struct {
WorkspaceID uuid.UUID `json:"workspaceId"`
Method string `json:"method"`
AccountEmail string `json:"accountEmail"`
TeamName string `json:"teamName"`
Scopes []string `json:"scopes"`
TokenEnc []byte `json:"tokenEnc"`
RefreshEnc []byte `json:"refreshEnc"`
TokenExpiresAt *time.Time `json:"tokenExpiresAt"`
Status string `json:"status"`
StatusDetail string `json:"statusDetail"`
Monitored json.RawMessage `json:"monitored"`
MonitorLimit *int32 `json:"monitorLimit"`
AlertsToNotifications bool `json:"alertsToNotifications"`
ConnectedBy *uuid.UUID `json:"connectedBy"`
ConnectedAt time.Time `json:"connectedAt"`
LastSyncAt *time.Time `json:"lastSyncAt"`
ApiUrl string `json:"apiUrl"`
AccountID string `json:"accountId"`
TeamID string `json:"teamId"`
Plan string `json:"plan"`
Sources int32 `json:"sources"`
CheckIntervalMinutes int32 `json:"checkIntervalMinutes"`
LastCheckAt *time.Time `json:"lastCheckAt"`
DmarcRua string `json:"dmarcRua"`
LastSyncAttemptAt *time.Time `json:"lastSyncAttemptAt"`
LastSyncError string `json:"lastSyncError"`
TokenRejectedAt *time.Time `json:"tokenRejectedAt"`
AlertsSince *time.Time `json:"alertsSince"`
UpdatedAt time.Time `json:"updatedAt"`
}
type HostreputeOauthState ¶
type HostreputeOauthState struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
UserID uuid.UUID `json:"userId"`
StateHash []byte `json:"stateHash"`
VerifierEnc []byte `json:"verifierEnc"`
RedirectUri string `json:"redirectUri"`
CreatedAt time.Time `json:"createdAt"`
ExpiresAt time.Time `json:"expiresAt"`
}
type Import ¶
type Import struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Source string `json:"source"`
Status string `json:"status"`
FileName string `json:"fileName"`
FileData []byte `json:"fileData"`
Connection json.RawMessage `json:"connection"`
CredentialsEnc []byte `json:"credentialsEnc"`
FieldMap json.RawMessage `json:"fieldMap"`
ConsentMap json.RawMessage `json:"consentMap"`
Options json.RawMessage `json:"options"`
Preview json.RawMessage `json:"preview"`
Stats json.RawMessage `json:"stats"`
ReportCsv []byte `json:"reportCsv"`
Error string `json:"error"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
StartedAt *time.Time `json:"startedAt"`
FinishedAt *time.Time `json:"finishedAt"`
Step string `json:"step"`
StagedAt *time.Time `json:"stagedAt"`
Progress json.RawMessage `json:"progress"`
SkippedCsv []byte `json:"skippedCsv"`
ResumeAt *time.Time `json:"resumeAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type ImportJobsParams ¶
type ImportJobsRow ¶
type ImportJobsRow struct {
ID uuid.UUID `json:"id"`
Source string `json:"source"`
Status string `json:"status"`
FileName string `json:"fileName"`
Progress json.RawMessage `json:"progress"`
Stats json.RawMessage `json:"stats"`
Error string `json:"error"`
Connection json.RawMessage `json:"connection"`
ResumeAt *time.Time `json:"resumeAt"`
CreatedAt time.Time `json:"createdAt"`
StartedAt *time.Time `json:"startedAt"`
FinishedAt *time.Time `json:"finishedAt"`
}
type ImportRow ¶
type ImportRow struct {
ImportID uuid.UUID `json:"importId"`
RowNo int32 `json:"rowNo"`
Email string `json:"email"`
Status string `json:"status"`
ListRef string `json:"listRef"`
Data json.RawMessage `json:"data"`
Tags []string `json:"tags"`
Engagement json.RawMessage `json:"engagement"`
Outcome string `json:"outcome"`
Reason string `json:"reason"`
}
type ImportRowsAfterParams ¶
type ImportStatusCountsRow ¶
type Incident ¶
type Incident struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
OccurredAt time.Time `json:"occurredAt"`
Kind string `json:"kind"`
Severity string `json:"severity"`
Title string `json:"title"`
Detail string `json:"detail"`
CampaignID *uuid.UUID `json:"campaignId"`
ProviderID *uuid.UUID `json:"providerId"`
ResolvedAt *time.Time `json:"resolvedAt"`
Source string `json:"source"`
Asset string `json:"asset"`
ExternalID *string `json:"externalId"`
}
type IngestAddSuppressionParams ¶
type IngestAddSuppressionParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Email string `json:"email"`
Reason string `json:"reason"`
Source string `json:"source"`
SourceProviderID *uuid.UUID `json:"sourceProviderId"`
OriginalCode string `json:"originalCode"`
Detail string `json:"detail"`
CreatedAt time.Time `json:"createdAt"`
}
type IngestBumpCountersParams ¶
type IngestBumpCountersParams struct {
CampaignID uuid.UUID `json:"campaignId"`
ProviderID uuid.UUID `json:"providerId"`
MailboxProvider string `json:"mailboxProvider"`
Variant string `json:"variant"`
Delivered int64 `json:"delivered"`
Deferred int64 `json:"deferred"`
HardBounced int64 `json:"hardBounced"`
SoftBounced int64 `json:"softBounced"`
Complained int64 `json:"complained"`
Rejected int64 `json:"rejected"`
}
type IngestEventLogParams ¶
type IngestEventLogRow ¶
type IngestEventLogRow struct {
ID uuid.UUID `json:"id"`
ReceivedAt time.Time `json:"receivedAt"`
OccurredAt time.Time `json:"occurredAt"`
Type string `json:"type"`
OriginalType string `json:"originalType"`
OriginalCode string `json:"originalCode"`
Diagnostic string `json:"diagnostic"`
BounceClass string `json:"bounceClass"`
Recipient string `json:"recipient"`
ProviderMessageID string `json:"providerMessageId"`
Source string `json:"source"`
ProviderID *uuid.UUID `json:"providerId"`
CampaignID *uuid.UUID `json:"campaignId"`
ProviderName string `json:"providerName"`
Adapter string `json:"adapter"`
RawSource string `json:"rawSource"`
}
type IngestInsertEventParams ¶
type IngestInsertEventParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
MessageID *uuid.UUID `json:"messageId"`
CampaignID *uuid.UUID `json:"campaignId"`
ContactID *uuid.UUID `json:"contactId"`
ProviderID *uuid.UUID `json:"providerId"`
RawEventID *uuid.UUID `json:"rawEventId"`
Type string `json:"type"`
OccurredAt time.Time `json:"occurredAt"`
MailboxProvider string `json:"mailboxProvider"`
OriginalType string `json:"originalType"`
OriginalCode string `json:"originalCode"`
Diagnostic string `json:"diagnostic"`
BounceClass string `json:"bounceClass"`
Url string `json:"url"`
UserAgent string `json:"userAgent"`
Recipient string `json:"recipient"`
ProviderMessageID string `json:"providerMessageId"`
Source string `json:"source"`
ReceivedAt time.Time `json:"receivedAt"`
DedupeKey string `json:"dedupeKey"`
}
type IngestInsertRawParams ¶
type IngestInsertRawParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
ProviderID uuid.UUID `json:"providerId"`
ReceivedAt time.Time `json:"receivedAt"`
ContentType string `json:"contentType"`
Body []byte `json:"body"`
Headers json.RawMessage `json:"headers"`
SignatureOk bool `json:"signatureOk"`
Source string `json:"source"`
}
type IngestMessageByIDParams ¶
type IngestMessageByIDRow ¶
type IngestMessageByIDRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Stream string `json:"stream"`
CampaignID *uuid.UUID `json:"campaignId"`
AutomationID *uuid.UUID `json:"automationId"`
AutomationNode *string `json:"automationNode"`
ContactID *uuid.UUID `json:"contactId"`
Email string `json:"email"`
Variant string `json:"variant"`
ProviderID *uuid.UUID `json:"providerId"`
ProviderMessageID *string `json:"providerMessageId"`
MailboxProvider string `json:"mailboxProvider"`
Status string `json:"status"`
QueuedAt time.Time `json:"queuedAt"`
SentAt *time.Time `json:"sentAt"`
DeliveredAt *time.Time `json:"deliveredAt"`
OpenedAt *time.Time `json:"openedAt"`
ClickedAt *time.Time `json:"clickedAt"`
Error string `json:"error"`
Kind string `json:"kind"`
Failover bool `json:"failover"`
RouteNote string `json:"routeNote"`
Attempts int16 `json:"attempts"`
NextAttemptAt *time.Time `json:"nextAttemptAt"`
ClaimedAt *time.Time `json:"claimedAt"`
ContentRef json.RawMessage `json:"contentRef"`
HumanOpenedAt *time.Time `json:"humanOpenedAt"`
SendOrder int32 `json:"sendOrder"`
CampaignName string `json:"campaignName"`
AutomationName string `json:"automationName"`
}
type IngestMessageByProviderIDRow ¶
type IngestMessageByProviderIDRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Stream string `json:"stream"`
CampaignID *uuid.UUID `json:"campaignId"`
AutomationID *uuid.UUID `json:"automationId"`
AutomationNode *string `json:"automationNode"`
ContactID *uuid.UUID `json:"contactId"`
Email string `json:"email"`
Variant string `json:"variant"`
ProviderID *uuid.UUID `json:"providerId"`
ProviderMessageID *string `json:"providerMessageId"`
MailboxProvider string `json:"mailboxProvider"`
Status string `json:"status"`
QueuedAt time.Time `json:"queuedAt"`
SentAt *time.Time `json:"sentAt"`
DeliveredAt *time.Time `json:"deliveredAt"`
OpenedAt *time.Time `json:"openedAt"`
ClickedAt *time.Time `json:"clickedAt"`
Error string `json:"error"`
Kind string `json:"kind"`
Failover bool `json:"failover"`
RouteNote string `json:"routeNote"`
Attempts int16 `json:"attempts"`
NextAttemptAt *time.Time `json:"nextAttemptAt"`
ClaimedAt *time.Time `json:"claimedAt"`
ContentRef json.RawMessage `json:"contentRef"`
HumanOpenedAt *time.Time `json:"humanOpenedAt"`
SendOrder int32 `json:"sendOrder"`
CampaignName string `json:"campaignName"`
AutomationName string `json:"automationName"`
}
type IngestStaleRawParams ¶
type InsertAuditEventParams ¶
type InsertAuditEventParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID *uuid.UUID `json:"workspaceId"`
OccurredAt time.Time `json:"occurredAt"`
ActorType string `json:"actorType"`
ActorID *uuid.UUID `json:"actorId"`
ActorName string `json:"actorName"`
Action string `json:"action"`
TargetType string `json:"targetType"`
TargetID string `json:"targetId"`
TargetName string `json:"targetName"`
Result string `json:"result"`
Reason string `json:"reason"`
Ip *netip.Addr `json:"ip"`
UserAgent string `json:"userAgent"`
RequestID string `json:"requestId"`
Before json.RawMessage `json:"before"`
After json.RawMessage `json:"after"`
Metadata json.RawMessage `json:"metadata"`
}
type InsertAutomationEmailVersionParams ¶
type InsertAutomationEmailVersionParams struct {
EmailID uuid.UUID `json:"emailId"`
Version int32 `json:"version"`
Subject string `json:"subject"`
Preheader string `json:"preheader"`
Mjml string `json:"mjml"`
Html string `json:"html"`
PlainText string `json:"plainText"`
CreatedBy *uuid.UUID `json:"createdBy"`
}
type InsertAutomationMessageParams ¶
type InsertAutomationMessageParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
AutomationID *uuid.UUID `json:"automationId"`
AutomationNode *string `json:"automationNode"`
ContactID *uuid.UUID `json:"contactId"`
Email string `json:"email"`
ProviderID *uuid.UUID `json:"providerId"`
MailboxProvider string `json:"mailboxProvider"`
Status string `json:"status"`
QueuedAt time.Time `json:"queuedAt"`
Error string `json:"error"`
}
type InsertAutomationWebhookCallParams ¶
type InsertAutomationWebhookCallParams struct {
ID uuid.UUID `json:"id"`
AutomationID uuid.UUID `json:"automationId"`
Version int32 `json:"version"`
NodeID string `json:"nodeId"`
RunID *uuid.UUID `json:"runId"`
Url string `json:"url"`
StatusCode int32 `json:"statusCode"`
Error string `json:"error"`
DurationMs int32 `json:"durationMs"`
Attempt int32 `json:"attempt"`
CalledAt time.Time `json:"calledAt"`
}
type InsertComposerCampaignParams ¶
type InsertComposerCampaignParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Name string `json:"name"`
Subject string `json:"subject"`
Preheader string `json:"preheader"`
SenderID *uuid.UUID `json:"senderId"`
Audience json.RawMessage `json:"audience"`
AudienceCount *int64 `json:"audienceCount"`
Mjml string `json:"mjml"`
Html string `json:"html"`
PlainText string `json:"plainText"`
AbTest json.RawMessage `json:"abTest"`
ContentHash string `json:"contentHash"`
CreatedBy *uuid.UUID `json:"createdBy"`
Now time.Time `json:"now"`
AutosavedAt *time.Time `json:"autosavedAt"`
}
type InsertComposerVersionParams ¶
type InsertComposerVersionParams struct {
CampaignID uuid.UUID `json:"campaignId"`
Version int32 `json:"version"`
Subject string `json:"subject"`
Preheader string `json:"preheader"`
Mjml string `json:"mjml"`
Html string `json:"html"`
PlainText string `json:"plainText"`
AbTest json.RawMessage `json:"abTest"`
SavedBy *uuid.UUID `json:"savedBy"`
SavedAt time.Time `json:"savedAt"`
Label string `json:"label"`
Source string `json:"source"`
SizeBytes int32 `json:"sizeBytes"`
}
type InsertConsentEventParams ¶
type InsertConsentEventParams struct {
ID uuid.UUID `json:"id"`
ContactID uuid.UUID `json:"contactId"`
ListID *uuid.UUID `json:"listId"`
Action string `json:"action"`
Source string `json:"source"`
Ip *netip.Addr `json:"ip"`
UserAgent string `json:"userAgent"`
Detail string `json:"detail"`
Note string `json:"note"`
ConsentVersion string `json:"consentVersion"`
ActorID *uuid.UUID `json:"actorId"`
ImportID *uuid.UUID `json:"importId"`
OccurredAt time.Time `json:"occurredAt"`
}
type InsertDeliverabilityBlocklistResultParams ¶
type InsertDeliverabilityBlocklistResultParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Via string `json:"via"`
AssetType string `json:"assetType"`
Asset string `json:"asset"`
Source string `json:"source"`
Impact string `json:"impact"`
Rank int32 `json:"rank"`
Listed bool `json:"listed"`
ListedSince *time.Time `json:"listedSince"`
DelistUrl string `json:"delistUrl"`
Detail string `json:"detail"`
Delisting string `json:"delisting"`
DelistingRequestedAt *time.Time `json:"delistingRequestedAt"`
CheckedAt time.Time `json:"checkedAt"`
}
type InsertDeliverabilityIncidentParams ¶
type InsertDeliverabilityIncidentParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
OccurredAt time.Time `json:"occurredAt"`
Kind string `json:"kind"`
Severity string `json:"severity"`
Title string `json:"title"`
Detail string `json:"detail"`
CampaignID *uuid.UUID `json:"campaignId"`
ProviderID *uuid.UUID `json:"providerId"`
ResolvedAt *time.Time `json:"resolvedAt"`
Source string `json:"source"`
Asset string `json:"asset"`
ExternalID *string `json:"externalId"`
}
type InsertEmailTemplateParams ¶
type InsertEmailTemplateParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Kind string `json:"kind"`
Name string `json:"name"`
Description string `json:"description"`
Mjml string `json:"mjml"`
Html string `json:"html"`
Thumb json.RawMessage `json:"thumb"`
SizeBytes int32 `json:"sizeBytes"`
SourceCampaignID *uuid.UUID `json:"sourceCampaignId"`
CreatedBy *uuid.UUID `json:"createdBy"`
Now time.Time `json:"now"`
}
type InsertImportLogParams ¶
type InsertMediaAssetParams ¶
type InsertMediaAssetParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
FileName string `json:"fileName"`
ContentType string `json:"contentType"`
SizeBytes int32 `json:"sizeBytes"`
Width int32 `json:"width"`
Height int32 `json:"height"`
HasAlpha bool `json:"hasAlpha"`
Sha256 []byte `json:"sha256"`
Data []byte `json:"data"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
}
type InsertMediaAssetRow ¶
type InsertMediaAssetRow struct {
ID uuid.UUID `json:"id"`
FileName string `json:"fileName"`
ContentType string `json:"contentType"`
SizeBytes int32 `json:"sizeBytes"`
Width int32 `json:"width"`
Height int32 `json:"height"`
HasAlpha bool `json:"hasAlpha"`
CreatedAt time.Time `json:"createdAt"`
Inserted bool `json:"inserted"`
}
type InsertNotificationParams ¶
type InsertNotificationParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID *uuid.UUID `json:"workspaceId"`
Kind string `json:"kind"`
Severity string `json:"severity"`
Title string `json:"title"`
Summary string `json:"summary"`
Body string `json:"body"`
Link string `json:"link"`
Data json.RawMessage `json:"data"`
DefaultEmail bool `json:"defaultEmail"`
EventType string `json:"eventType"`
UserID uuid.UUID `json:"userId"`
}
type InsertSuppressionParams ¶
type InsertSuppressionParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Email string `json:"email"`
Reason string `json:"reason"`
Source string `json:"source"`
SourceProviderID *uuid.UUID `json:"sourceProviderId"`
OriginalCode string `json:"originalCode"`
Detail string `json:"detail"`
CreatedBy *uuid.UUID `json:"createdBy"`
Scope string `json:"scope"`
CampaignID *uuid.UUID `json:"campaignId"`
AutomationID *uuid.UUID `json:"automationId"`
AutomationStep string `json:"automationStep"`
Context string `json:"context"`
ImportID *uuid.UUID `json:"importId"`
CreatedAt time.Time `json:"createdAt"`
}
type InstalledAdapter ¶
type InstalledAdapter struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Kind string `json:"kind"`
Version string `json:"version"`
Maintainer string `json:"maintainer"`
SourceUrl string `json:"sourceUrl"`
Manifest json.RawMessage `json:"manifest"`
LatestVersion *string `json:"latestVersion"`
InstalledAt time.Time `json:"installedAt"`
}
type InstanceAdminIdentitiesRow ¶
type InstanceAdminIdentitiesRow struct {
UserID uuid.UUID `json:"userId"`
Kind string `json:"kind"`
SsoProviderID *uuid.UUID `json:"ssoProviderId"`
ProviderName string `json:"providerName"`
ProviderPreset string `json:"providerPreset"`
ProviderStatus string `json:"providerStatus"`
ProviderTwofaMode string `json:"providerTwofaMode"`
LastUsedAt *time.Time `json:"lastUsedAt"`
}
type InstanceAdminMembershipsRow ¶
type InstanceAdminMembershipsRow struct {
UserID uuid.UUID `json:"userId"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Slug string `json:"slug"`
WorkspaceName string `json:"workspaceName"`
RoleKey string `json:"roleKey"`
RoleName string `json:"roleName"`
RoleBuiltin bool `json:"roleBuiltin"`
RolePermissions []string `json:"rolePermissions"`
Status string `json:"status"`
}
type InstanceAdminSavePolicyParams ¶
type InstanceAdminSavePolicyParams struct {
AllowedMethods []string `json:"allowedMethods"`
PasswordMinLength int32 `json:"passwordMinLength"`
PasswordReuse int32 `json:"passwordReuse"`
BreachedCheck bool `json:"breachedCheck"`
TwofaEnforcement string `json:"twofaEnforcement"`
TwofaGraceDays int32 `json:"twofaGraceDays"`
SessionLifetime time.Duration `json:"sessionLifetime"`
SessionIdle time.Duration `json:"sessionIdle"`
LockoutAttempts int32 `json:"lockoutAttempts"`
LockoutMinutes int32 `json:"lockoutMinutes"`
JitDomainAllowlist []string `json:"jitDomainAllowlist"`
SocialProviders json.RawMessage `json:"socialProviders"`
}
type InstanceAdminSaveSocialParams ¶
type InstanceAdminSaveSocialParams struct {
SocialProviders json.RawMessage `json:"socialProviders"`
SocialSecretsEnc []byte `json:"socialSecretsEnc"`
}
type InstanceAdminSignInEventsRow ¶
type InstanceAdminSignInEventsRow struct {
ID uuid.UUID `json:"id"`
OccurredAt time.Time `json:"occurredAt"`
Action string `json:"action"`
ActorType string `json:"actorType"`
ActorName string `json:"actorName"`
TargetName string `json:"targetName"`
Result string `json:"result"`
Reason string `json:"reason"`
Metadata json.RawMessage `json:"metadata"`
}
type InstanceAdminUserRow ¶
type InstanceAdminUserRow struct {
ID uuid.UUID `json:"id"`
Email string `json:"email"`
Name string `json:"name"`
AvatarColor string `json:"avatarColor"`
AvatarUpdatedAt *time.Time `json:"avatarUpdatedAt"`
IsInstanceAdmin bool `json:"isInstanceAdmin"`
BreakGlass bool `json:"breakGlass"`
Status string `json:"status"`
DeactivatedAt *time.Time `json:"deactivatedAt"`
HasPassword bool `json:"hasPassword"`
TotpEnabledAt *time.Time `json:"totpEnabledAt"`
TwofaGraceUntil *time.Time `json:"twofaGraceUntil"`
LockedUntil *time.Time `json:"lockedUntil"`
LastSignInAt *time.Time `json:"lastSignInAt"`
LastActiveAt *time.Time `json:"lastActiveAt"`
CreatedAt time.Time `json:"createdAt"`
Passkeys int64 `json:"passkeys"`
Sessions int64 `json:"sessions"`
ApiKeys int64 `json:"apiKeys"`
}
type InstanceAdminUsersRow ¶
type InstanceAdminUsersRow struct {
ID uuid.UUID `json:"id"`
Email string `json:"email"`
Name string `json:"name"`
AvatarColor string `json:"avatarColor"`
AvatarUpdatedAt *time.Time `json:"avatarUpdatedAt"`
IsInstanceAdmin bool `json:"isInstanceAdmin"`
BreakGlass bool `json:"breakGlass"`
Status string `json:"status"`
DeactivatedAt *time.Time `json:"deactivatedAt"`
HasPassword bool `json:"hasPassword"`
TotpEnabledAt *time.Time `json:"totpEnabledAt"`
TwofaGraceUntil *time.Time `json:"twofaGraceUntil"`
LockedUntil *time.Time `json:"lockedUntil"`
LastSignInAt *time.Time `json:"lastSignInAt"`
LastActiveAt *time.Time `json:"lastActiveAt"`
CreatedAt time.Time `json:"createdAt"`
Passkeys int64 `json:"passkeys"`
Sessions int64 `json:"sessions"`
ApiKeys int64 `json:"apiKeys"`
}
type InstanceAdminWorkspacesRow ¶
type InstanceAdminWorkspacesRow struct {
ID uuid.UUID `json:"id"`
Slug string `json:"slug"`
Name string `json:"name"`
Timezone string `json:"timezone"`
CreatedAt time.Time `json:"createdAt"`
DeletedAt *time.Time `json:"deletedAt"`
Members int64 `json:"members"`
Invited int64 `json:"invited"`
Subscribers int64 `json:"subscribers"`
Providers []string `json:"providers"`
OwnerName string `json:"ownerName"`
}
type InstanceAuditExportParams ¶
type InstanceAuditExportParams struct {
InstanceOnly bool `json:"instanceOnly"`
WorkspaceID *uuid.UUID `json:"workspaceId"`
ActorType *string `json:"actorType"`
Result *string `json:"result"`
Since *time.Time `json:"since"`
Until *time.Time `json:"until"`
Search *string `json:"search"`
CursorAt *time.Time `json:"cursorAt"`
CursorID *uuid.UUID `json:"cursorId"`
Lim int32 `json:"lim"`
}
type InstanceAuditExportRow ¶
type InstanceAuditExportRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID *uuid.UUID `json:"workspaceId"`
OccurredAt time.Time `json:"occurredAt"`
ActorType string `json:"actorType"`
ActorID *uuid.UUID `json:"actorId"`
ActorName string `json:"actorName"`
Action string `json:"action"`
TargetType string `json:"targetType"`
TargetID string `json:"targetId"`
TargetName string `json:"targetName"`
Result string `json:"result"`
Reason string `json:"reason"`
Ip *netip.Addr `json:"ip"`
UserAgent string `json:"userAgent"`
RequestID string `json:"requestId"`
Before json.RawMessage `json:"before"`
After json.RawMessage `json:"after"`
Metadata json.RawMessage `json:"metadata"`
WorkspaceSlug string `json:"workspaceSlug"`
}
type InstanceAuditGetRow ¶
type InstanceAuditGetRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID *uuid.UUID `json:"workspaceId"`
OccurredAt time.Time `json:"occurredAt"`
ActorType string `json:"actorType"`
ActorID *uuid.UUID `json:"actorId"`
ActorName string `json:"actorName"`
Action string `json:"action"`
TargetType string `json:"targetType"`
TargetID string `json:"targetId"`
TargetName string `json:"targetName"`
Result string `json:"result"`
Reason string `json:"reason"`
Ip *netip.Addr `json:"ip"`
UserAgent string `json:"userAgent"`
RequestID string `json:"requestId"`
Before json.RawMessage `json:"before"`
After json.RawMessage `json:"after"`
Metadata json.RawMessage `json:"metadata"`
ActorColor string `json:"actorColor"`
WorkspaceName string `json:"workspaceName"`
WorkspaceSlug string `json:"workspaceSlug"`
WorkspaceTimezone string `json:"workspaceTimezone"`
}
type InstanceAuditListParams ¶
type InstanceAuditListParams struct {
InstanceOnly bool `json:"instanceOnly"`
WorkspaceID *uuid.UUID `json:"workspaceId"`
ActorType *string `json:"actorType"`
Result *string `json:"result"`
Since *time.Time `json:"since"`
Until *time.Time `json:"until"`
Search *string `json:"search"`
CursorAt *time.Time `json:"cursorAt"`
CursorID *uuid.UUID `json:"cursorId"`
Lim int32 `json:"lim"`
}
type InstanceAuditListRow ¶
type InstanceAuditListRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID *uuid.UUID `json:"workspaceId"`
OccurredAt time.Time `json:"occurredAt"`
ActorType string `json:"actorType"`
ActorID *uuid.UUID `json:"actorId"`
ActorName string `json:"actorName"`
Action string `json:"action"`
TargetType string `json:"targetType"`
TargetID string `json:"targetId"`
TargetName string `json:"targetName"`
Result string `json:"result"`
Reason string `json:"reason"`
Ip *netip.Addr `json:"ip"`
UserAgent string `json:"userAgent"`
RequestID string `json:"requestId"`
Metadata json.RawMessage `json:"metadata"`
ActorColor string `json:"actorColor"`
WorkspaceName string `json:"workspaceName"`
WorkspaceSlug string `json:"workspaceSlug"`
HasChanges bool `json:"hasChanges"`
}
type InstanceAuditRelatedRow ¶
type InstanceAuditStreamStateRow ¶
type InstanceAuditStreamStateRow struct {
AuditRetentionDays int32 `json:"auditRetentionDays"`
AuditStreamEnabled bool `json:"auditStreamEnabled"`
AuditStreamUrl *string `json:"auditStreamUrl"`
AuditStreamSecretEnc []byte `json:"auditStreamSecretEnc"`
AuditStreamCursorAt *time.Time `json:"auditStreamCursorAt"`
AuditStreamCursorID *uuid.UUID `json:"auditStreamCursorId"`
AuditStreamStatus json.RawMessage `json:"auditStreamStatus"`
}
type InstanceSetting ¶
type InstanceSetting struct {
ID bool `json:"id"`
Name string `json:"name"`
LogoSvg *string `json:"logoSvg"`
PublicUrl string `json:"publicUrl"`
DefaultTimezone string `json:"defaultTimezone"`
UpdateCheck bool `json:"updateCheck"`
SetupCompletedAt *time.Time `json:"setupCompletedAt"`
AllowedMethods []string `json:"allowedMethods"`
PasswordMinLength int32 `json:"passwordMinLength"`
BreachedCheck bool `json:"breachedCheck"`
TwofaEnforcement string `json:"twofaEnforcement"`
TwofaGraceDays int32 `json:"twofaGraceDays"`
SessionLifetime time.Duration `json:"sessionLifetime"`
SessionIdle time.Duration `json:"sessionIdle"`
LockoutAttempts int32 `json:"lockoutAttempts"`
LockoutMinutes int32 `json:"lockoutMinutes"`
JitDomainAllowlist []string `json:"jitDomainAllowlist"`
SocialProviders json.RawMessage `json:"socialProviders"`
SocialSecretsEnc []byte `json:"socialSecretsEnc"`
AuditRetentionDays int32 `json:"auditRetentionDays"`
LatestRelease json.RawMessage `json:"latestRelease"`
LatestReleaseAt *time.Time `json:"latestReleaseAt"`
UpdatedAt time.Time `json:"updatedAt"`
BasicsConfirmedAt *time.Time `json:"basicsConfirmedAt"`
PasswordReuse int32 `json:"passwordReuse"`
PublicUrlCheck json.RawMessage `json:"publicUrlCheck"`
PublicUrlCheckedAt *time.Time `json:"publicUrlCheckedAt"`
UpdateCheckedAt *time.Time `json:"updateCheckedAt"`
UpdateCheckError string `json:"updateCheckError"`
AuditStreamEnabled bool `json:"auditStreamEnabled"`
AuditStreamUrl *string `json:"auditStreamUrl"`
AuditStreamSecretEnc []byte `json:"auditStreamSecretEnc"`
AuditStreamCursorAt *time.Time `json:"auditStreamCursorAt"`
AuditStreamCursorID *uuid.UUID `json:"auditStreamCursorId"`
AuditStreamStatus json.RawMessage `json:"auditStreamStatus"`
}
type Invitation ¶
type Invitation struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Email string `json:"email"`
RoleID uuid.UUID `json:"roleId"`
Scope json.RawMessage `json:"scope"`
Message string `json:"message"`
TokenHash []byte `json:"tokenHash"`
InvitedBy *uuid.UUID `json:"invitedBy"`
SentVia *string `json:"sentVia"`
LastSentAt *time.Time `json:"lastSentAt"`
CreatedAt time.Time `json:"createdAt"`
ExpiresAt time.Time `json:"expiresAt"`
AcceptedAt *time.Time `json:"acceptedAt"`
AcceptedBy *uuid.UUID `json:"acceptedBy"`
RevokedAt *time.Time `json:"revokedAt"`
TokenEnc []byte `json:"tokenEnc"`
ExpiresDays int32 `json:"expiresDays"`
ReinviteRequestedAt *time.Time `json:"reinviteRequestedAt"`
}
type KeysAgentActionsParams ¶
type KeysAgentActionsRow ¶
type KeysAgentActionsRow struct {
ID uuid.UUID `json:"id"`
OccurredAt time.Time `json:"occurredAt"`
ActorID *uuid.UUID `json:"actorId"`
ActorName string `json:"actorName"`
Action string `json:"action"`
TargetType string `json:"targetType"`
TargetID string `json:"targetId"`
TargetName string `json:"targetName"`
Result string `json:"result"`
Reason string `json:"reason"`
Metadata json.RawMessage `json:"metadata"`
}
type KeysByTokenRow ¶
type KeysByTokenRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Kind string `json:"kind"`
Name string `json:"name"`
Prefix string `json:"prefix"`
Permissions []string `json:"permissions"`
Scope json.RawMessage `json:"scope"`
CreatedBy *uuid.UUID `json:"createdBy"`
ExpiresAt *time.Time `json:"expiresAt"`
RevokedAt *time.Time `json:"revokedAt"`
WorkspaceSlug string `json:"workspaceSlug"`
WorkspaceName string `json:"workspaceName"`
McpSettings json.RawMessage `json:"mcpSettings"`
}
type KeysCountActiveRow ¶
type KeysCreateParams ¶
type KeysCreateParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Kind string `json:"kind"`
Name string `json:"name"`
Description string `json:"description"`
Prefix string `json:"prefix"`
TokenHash []byte `json:"tokenHash"`
Permissions []string `json:"permissions"`
Scope json.RawMessage `json:"scope"`
CreatedBy *uuid.UUID `json:"createdBy"`
ExpiresAt *time.Time `json:"expiresAt"`
RotatedFrom *uuid.UUID `json:"rotatedFrom"`
}
type KeysCreateRow ¶
type KeysDeleteParams ¶
type KeysGetParams ¶
type KeysGetRow ¶
type KeysGetRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Kind string `json:"kind"`
Name string `json:"name"`
Description string `json:"description"`
Prefix string `json:"prefix"`
Permissions []string `json:"permissions"`
Scope json.RawMessage `json:"scope"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
ExpiresAt *time.Time `json:"expiresAt"`
LastUsedAt *time.Time `json:"lastUsedAt"`
LastUsedIp *netip.Addr `json:"lastUsedIp"`
LastUsedClient string `json:"lastUsedClient"`
LastCall string `json:"lastCall"`
RevokedAt *time.Time `json:"revokedAt"`
RotatedFrom *uuid.UUID `json:"rotatedFrom"`
CreatedByName string `json:"createdByName"`
CreatedByColor string `json:"createdByColor"`
}
type KeysListParams ¶
type KeysListRow ¶
type KeysListRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Kind string `json:"kind"`
Name string `json:"name"`
Description string `json:"description"`
Prefix string `json:"prefix"`
Permissions []string `json:"permissions"`
Scope json.RawMessage `json:"scope"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
ExpiresAt *time.Time `json:"expiresAt"`
LastUsedAt *time.Time `json:"lastUsedAt"`
LastUsedIp *netip.Addr `json:"lastUsedIp"`
LastUsedClient string `json:"lastUsedClient"`
LastCall string `json:"lastCall"`
RevokedAt *time.Time `json:"revokedAt"`
RotatedFrom *uuid.UUID `json:"rotatedFrom"`
CreatedByName string `json:"createdByName"`
CreatedByColor string `json:"createdByColor"`
}
type KeysRejectionsRow ¶
type KeysRevokeParams ¶
type KeysTouchParams ¶
type LastAuditAtParams ¶
type LinkDomainListing ¶
type List ¶
type List struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Name string `json:"name"`
Description string `json:"description"`
DoubleOptIn bool `json:"doubleOptIn"`
RequiresApproval bool `json:"requiresApproval"`
Public bool `json:"public"`
CreatedAt time.Time `json:"createdAt"`
DeletedAt *time.Time `json:"deletedAt"`
DeletePaused json.RawMessage `json:"deletePaused"`
}
type ListAPIKeysParams ¶
type ListAPIKeysRow ¶
type ListAPIKeysRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Kind string `json:"kind"`
Name string `json:"name"`
Description string `json:"description"`
Prefix string `json:"prefix"`
TokenHash []byte `json:"tokenHash"`
Permissions []string `json:"permissions"`
Scope json.RawMessage `json:"scope"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
ExpiresAt *time.Time `json:"expiresAt"`
LastUsedAt *time.Time `json:"lastUsedAt"`
LastUsedIp *netip.Addr `json:"lastUsedIp"`
RevokedAt *time.Time `json:"revokedAt"`
RotatedFrom *uuid.UUID `json:"rotatedFrom"`
LastUsedClient string `json:"lastUsedClient"`
LastCall string `json:"lastCall"`
CreatedByName *string `json:"createdByName"`
}
type ListAuditEventsParams ¶
type ListAuditEventsParams struct {
WorkspaceID *uuid.UUID `json:"workspaceId"`
ActorType *string `json:"actorType"`
ActorID *uuid.UUID `json:"actorId"`
ActionPrefix *string `json:"actionPrefix"`
TargetType *string `json:"targetType"`
Result *string `json:"result"`
Since *time.Time `json:"since"`
Until *time.Time `json:"until"`
BeforeID *uuid.UUID `json:"beforeId"`
Lim int32 `json:"lim"`
}
type ListAutomationAlertsRow ¶
type ListAutomationAlertsRow struct {
ID uuid.UUID `json:"id"`
AutomationID uuid.UUID `json:"automationId"`
Kind string `json:"kind"`
NodeID string `json:"nodeId"`
Detail json.RawMessage `json:"detail"`
Failures int64 `json:"failures"`
FirstAt time.Time `json:"firstAt"`
LastAt time.Time `json:"lastAt"`
AutomationName string `json:"automationName"`
DraftVersion int32 `json:"draftVersion"`
LiveVersion *int32 `json:"liveVersion"`
}
type ListAutomationEmailsRow ¶
type ListAutomationPublishedGraphsRow ¶
type ListAutomationPublishedGraphsRow struct {
Version int32 `json:"version"`
Graph json.RawMessage `json:"graph"`
}
type ListAutomationVersionsRow ¶
type ListAutomationVersionsRow struct {
AutomationID uuid.UUID `json:"automationId"`
Version int32 `json:"version"`
CreatedAt time.Time `json:"createdAt"`
PublishedAt *time.Time `json:"publishedAt"`
RetiredAt *time.Time `json:"retiredAt"`
Summary string `json:"summary"`
Migration string `json:"migration"`
CreatedByName string `json:"createdByName"`
PublishedByName string `json:"publishedByName"`
}
type ListAutomationWebhookCallsRow ¶
type ListAutomationWebhookCallsRow struct {
ID uuid.UUID `json:"id"`
Version int32 `json:"version"`
RunID *uuid.UUID `json:"runId"`
Url string `json:"url"`
StatusCode int32 `json:"statusCode"`
Error string `json:"error"`
DurationMs int32 `json:"durationMs"`
Attempt int32 `json:"attempt"`
CalledAt time.Time `json:"calledAt"`
}
type ListAutomationsRow ¶
type ListAutomationsRow struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Status string `json:"status"`
TemplateKey string `json:"templateKey"`
LiveVersion *int32 `json:"liveVersion"`
DraftVersion int32 `json:"draftVersion"`
Trigger json.RawMessage `json:"trigger"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
PausedAt *time.Time `json:"pausedAt"`
PauseReason string `json:"pauseReason"`
PausedByName string `json:"pausedByName"`
LivePublishedAt *time.Time `json:"livePublishedAt"`
LiveGraph json.RawMessage `json:"liveGraph"`
DraftGraph json.RawMessage `json:"draftGraph"`
}
type ListCampaignRouteSharesRow ¶
type ListCampaignRouteSharesRow struct {
}
type ListCampaignsParams ¶
type ListCampaignsRow ¶
type ListCampaignsRow struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Status string `json:"status"`
Audience json.RawMessage `json:"audience"`
AudienceCount *int64 `json:"audienceCount"`
AbTest json.RawMessage `json:"abTest"`
ScheduledAt *time.Time `json:"scheduledAt"`
Schedule json.RawMessage `json:"schedule"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
StartedAt *time.Time `json:"startedAt"`
CompletedAt *time.Time `json:"completedAt"`
Origin string `json:"origin"`
Note string `json:"note"`
UpdatedByName string `json:"updatedByName"`
Sent int64 `json:"sent"`
Delivered int64 `json:"delivered"`
OpenedHuman int64 `json:"openedHuman"`
Clicked int64 `json:"clicked"`
ReadinessVerdict string `json:"readinessVerdict"`
ReadinessIssues int64 `json:"readinessIssues"`
}
type ListComposerSendersRow ¶
type ListComposerVersionsRow ¶
type ListDeletedAtParams ¶
type ListDeliverabilityIncidentsRow ¶
type ListDeliverabilityIncidentsRow struct {
ID uuid.UUID `json:"id"`
OccurredAt time.Time `json:"occurredAt"`
Kind string `json:"kind"`
Severity string `json:"severity"`
Title string `json:"title"`
Detail string `json:"detail"`
Source string `json:"source"`
Asset string `json:"asset"`
ResolvedAt *time.Time `json:"resolvedAt"`
ProviderID *uuid.UUID `json:"providerId"`
ProviderName string `json:"providerName"`
ProviderAdapter string `json:"providerAdapter"`
CampaignID uuid.UUID `json:"campaignId"`
CampaignName string `json:"campaignName"`
CampaignStatus string `json:"campaignStatus"`
}
type ListEmailTemplatesRow ¶
type ListEmailTemplatesRow struct {
ID uuid.UUID `json:"id"`
Kind string `json:"kind"`
Name string `json:"name"`
Description string `json:"description"`
Thumb json.RawMessage `json:"thumb"`
SizeBytes int32 `json:"sizeBytes"`
SourceCampaignID *uuid.UUID `json:"sourceCampaignId"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
UpdatedByName string `json:"updatedByName"`
}
type ListGrowthSinceParams ¶
type ListGrowthSinceRow ¶
type ListIdentitiesWithProviderRow ¶
type ListIdentitiesWithProviderRow struct {
ID uuid.UUID `json:"id"`
UserID uuid.UUID `json:"userId"`
Kind string `json:"kind"`
SsoProviderID *uuid.UUID `json:"ssoProviderId"`
Subject string `json:"subject"`
Email string `json:"email"`
CreatedAt time.Time `json:"createdAt"`
LastUsedAt *time.Time `json:"lastUsedAt"`
Username string `json:"username"`
Details json.RawMessage `json:"details"`
ProviderName string `json:"providerName"`
ProviderPreset string `json:"providerPreset"`
EnforceDomains []string `json:"enforceDomains"`
ProviderStatus string `json:"providerStatus"`
}
type ListImpactCampaignsRow ¶
type ListImpactFormsParams ¶
type ListImpactFormsRow ¶
type ListImpactMembersRow ¶
type ListImpactOtherListsRow ¶
type ListImportsRow ¶
type ListImportsRow struct {
ID uuid.UUID `json:"id"`
Source string `json:"source"`
Status string `json:"status"`
Step string `json:"step"`
FileName string `json:"fileName"`
Stats json.RawMessage `json:"stats"`
CreatedAt time.Time `json:"createdAt"`
StartedAt *time.Time `json:"startedAt"`
FinishedAt *time.Time `json:"finishedAt"`
CreatedByName string `json:"createdByName"`
}
type ListListsWithCountsRow ¶
type ListMediaAssetsParams ¶
type ListMediaAssetsRow ¶
type ListMediaAssetsRow struct {
ID uuid.UUID `json:"id"`
FileName string `json:"fileName"`
ContentType string `json:"contentType"`
SizeBytes int32 `json:"sizeBytes"`
Width int32 `json:"width"`
Height int32 `json:"height"`
HasAlpha bool `json:"hasAlpha"`
CreatedAt time.Time `json:"createdAt"`
CreatedByName string `json:"createdByName"`
}
type ListMembersRow ¶
type ListMembersRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
UserID uuid.UUID `json:"userId"`
RoleID uuid.UUID `json:"roleId"`
Scope json.RawMessage `json:"scope"`
Source string `json:"source"`
Status string `json:"status"`
InvitedBy *uuid.UUID `json:"invitedBy"`
JoinedAt time.Time `json:"joinedAt"`
DeactivatedAt *time.Time `json:"deactivatedAt"`
LastActiveAt *time.Time `json:"lastActiveAt"`
RoleKey string `json:"roleKey"`
RoleName string `json:"roleName"`
RoleBuiltin bool `json:"roleBuiltin"`
RolePermissions []string `json:"rolePermissions"`
Email string `json:"email"`
UserName string `json:"userName"`
UserStatus string `json:"userStatus"`
TotpEnabledAt *time.Time `json:"totpEnabledAt"`
TwofaGraceUntil *time.Time `json:"twofaGraceUntil"`
UserLastActiveAt *time.Time `json:"userLastActiveAt"`
HasPassword interface{} `json:"hasPassword"`
PasskeyCount int64 `json:"passkeyCount"`
IdentityKinds []string `json:"identityKinds"`
}
type ListMembersWithRolesRow ¶
type ListMembership ¶
type ListMembershipsOfUserRow ¶
type ListMembershipsOfUserRow struct {
MemberID uuid.UUID `json:"memberId"`
Status string `json:"status"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Slug string `json:"slug"`
Name string `json:"name"`
RoleKey string `json:"roleKey"`
RoleName string `json:"roleName"`
RoleBuiltin bool `json:"roleBuiltin"`
RolePermissions []string `json:"rolePermissions"`
MemberCount int64 `json:"memberCount"`
OwnerCount int64 `json:"ownerCount"`
}
type ListNameTakenParams ¶
type ListNamesOfListsParams ¶
type ListNamesOfListsRow ¶
type ListNotificationsParams ¶
type ListPauseFormParams ¶
type ListPendingEmailNotificationsRow ¶
type ListPendingEmailNotificationsRow struct {
ID uuid.UUID `json:"id"`
UserID uuid.UUID `json:"userId"`
WorkspaceID *uuid.UUID `json:"workspaceId"`
Kind string `json:"kind"`
Severity string `json:"severity"`
Title string `json:"title"`
Body string `json:"body"`
Link string `json:"link"`
Data json.RawMessage `json:"data"`
CreatedAt time.Time `json:"createdAt"`
ReadAt *time.Time `json:"readAt"`
Summary string `json:"summary"`
InApp bool `json:"inApp"`
EmailStatus *string `json:"emailStatus"`
EmailAttempts int32 `json:"emailAttempts"`
EmailedAt *time.Time `json:"emailedAt"`
WorkspaceName string `json:"workspaceName"`
WorkspaceSlug string `json:"workspaceSlug"`
}
type ListPendingInvitationsRow ¶
type ListPendingInvitationsRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Email string `json:"email"`
RoleID uuid.UUID `json:"roleId"`
Scope json.RawMessage `json:"scope"`
Message string `json:"message"`
TokenHash []byte `json:"tokenHash"`
InvitedBy *uuid.UUID `json:"invitedBy"`
SentVia *string `json:"sentVia"`
LastSentAt *time.Time `json:"lastSentAt"`
CreatedAt time.Time `json:"createdAt"`
ExpiresAt time.Time `json:"expiresAt"`
AcceptedAt *time.Time `json:"acceptedAt"`
AcceptedBy *uuid.UUID `json:"acceptedBy"`
RevokedAt *time.Time `json:"revokedAt"`
TokenEnc []byte `json:"tokenEnc"`
ExpiresDays int32 `json:"expiresDays"`
ReinviteRequestedAt *time.Time `json:"reinviteRequestedAt"`
RoleName string `json:"roleName"`
RoleKey string `json:"roleKey"`
InvitedByName *string `json:"invitedByName"`
}
type ListResumeFormParams ¶
type ListRolesRow ¶
type ListRolesRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Key string `json:"key"`
Name string `json:"name"`
Description string `json:"description"`
Builtin bool `json:"builtin"`
Permissions []string `json:"permissions"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
MemberCount int64 `json:"memberCount"`
}
type ListSavedViewsParams ¶
type ListSegmentsRow ¶
type ListSegmentsRow struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Mode string `json:"mode"`
Refresh string `json:"refresh"`
CachedCount *int64 `json:"cachedCount"`
CountedAt *time.Time `json:"countedAt"`
CountMs *int32 `json:"countMs"`
TierCounts json.RawMessage `json:"tierCounts"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type ListTierMixRow ¶
type ListUserWorkspacesRow ¶
type ListUserWorkspacesRow struct {
ID uuid.UUID `json:"id"`
Slug string `json:"slug"`
Name string `json:"name"`
Timezone string `json:"timezone"`
DefaultSenderID *uuid.UUID `json:"defaultSenderId"`
ApprovalPolicy json.RawMessage `json:"approvalPolicy"`
SunsetPolicy json.RawMessage `json:"sunsetPolicy"`
Branding json.RawMessage `json:"branding"`
SendThresholds json.RawMessage `json:"sendThresholds"`
AuditRetentionDays int32 `json:"auditRetentionDays"`
AuditStreamUrl *string `json:"auditStreamUrl"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt"`
McpSettings json.RawMessage `json:"mcpSettings"`
AuditStreamEnabled bool `json:"auditStreamEnabled"`
AuditStreamSecretEnc []byte `json:"auditStreamSecretEnc"`
AuditStreamCursorAt *time.Time `json:"auditStreamCursorAt"`
AuditStreamCursorID *uuid.UUID `json:"auditStreamCursorId"`
AuditStreamStatus json.RawMessage `json:"auditStreamStatus"`
AuditStreamDemo bool `json:"auditStreamDemo"`
DefaultAutomationSenderID *uuid.UUID `json:"defaultAutomationSenderId"`
DefaultSystemSenderID *uuid.UUID `json:"defaultSystemSenderId"`
SendingDefaults json.RawMessage `json:"sendingDefaults"`
RoleKey string `json:"roleKey"`
RoleName string `json:"roleName"`
MemberStatus string `json:"memberStatus"`
MemberCount int64 `json:"memberCount"`
}
type ListWorkspaceListsRow ¶
type LiveAutomationsForTriggerRow ¶
type LiveAutomationsForTriggerRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
LiveVersion *int32 `json:"liveVersion"`
Trigger json.RawMessage `json:"trigger"`
Graph json.RawMessage `json:"graph"`
}
type LockAutomationParams ¶
type LockDeletedListParams ¶
type LockListParams ¶
type MarkHostReputeSyncedParams ¶
type MarkHostReputeSyncedParams struct {
AccountEmail string `json:"accountEmail"`
TeamName string `json:"teamName"`
TeamID string `json:"teamId"`
Plan string `json:"plan"`
Scopes []string `json:"scopes"`
Monitored json.RawMessage `json:"monitored"`
MonitorLimit *int32 `json:"monitorLimit"`
Sources int32 `json:"sources"`
CheckIntervalMinutes int32 `json:"checkIntervalMinutes"`
DmarcRua string `json:"dmarcRua"`
LastCheckAt *time.Time `json:"lastCheckAt"`
AlertsSince *time.Time `json:"alertsSince"`
SyncedAt *time.Time `json:"syncedAt"`
WorkspaceID uuid.UUID `json:"workspaceId"`
}
type McpAddSuppressionParams ¶
type McpAutomationsRow ¶
type McpBlocklistsRow ¶
type McpCampaignByMailboxRow ¶
type McpCampaignRoutesRow ¶
type McpCampaignTotalsRow ¶
type McpCampaignTotalsRow struct {
Sent int64 `json:"sent"`
Delivered int64 `json:"delivered"`
Deferred int64 `json:"deferred"`
Bounced int64 `json:"bounced"`
Complained int64 `json:"complained"`
OpenedHuman int64 `json:"openedHuman"`
OpenedMachine int64 `json:"openedMachine"`
Clicked int64 `json:"clicked"`
Unsubscribed int64 `json:"unsubscribed"`
}
type McpCreateDraftParams ¶
type McpCreateDraftRow ¶
type McpCreateSegmentParams ¶
type McpCreateSegmentRow ¶
type McpDefaultRoutingRuleRow ¶
type McpDefaultRoutingRuleRow struct {
ID uuid.UUID `json:"id"`
Stream string `json:"stream"`
Priority int32 `json:"priority"`
Name string `json:"name"`
Conditions json.RawMessage `json:"conditions"`
Splits json.RawMessage `json:"splits"`
FallbackProviderID *uuid.UUID `json:"fallbackProviderId"`
Enabled bool `json:"enabled"`
}
type McpFindCampaignParams ¶
type McpFindCampaignRow ¶
type McpFindCampaignRow struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Status string `json:"status"`
Subject string `json:"subject"`
Preheader string `json:"preheader"`
Audience json.RawMessage `json:"audience"`
AudienceCount *int64 `json:"audienceCount"`
ScheduledAt *time.Time `json:"scheduledAt"`
StartedAt *time.Time `json:"startedAt"`
CompletedAt *time.Time `json:"completedAt"`
Version int32 `json:"version"`
Mjml string `json:"mjml"`
}
type McpGetRoutingRuleParams ¶
type McpGetRoutingRuleRow ¶
type McpGetRoutingRuleRow struct {
ID uuid.UUID `json:"id"`
Stream string `json:"stream"`
Priority int32 `json:"priority"`
Name string `json:"name"`
Conditions json.RawMessage `json:"conditions"`
Splits json.RawMessage `json:"splits"`
FallbackProviderID *uuid.UUID `json:"fallbackProviderId"`
Enabled bool `json:"enabled"`
}
type McpLatestReadinessRow ¶
type McpLatestReadinessRow struct {
Verdict string `json:"verdict"`
Checks json.RawMessage `json:"checks"`
Estimates json.RawMessage `json:"estimates"`
RanAt time.Time `json:"ranAt"`
}
type McpPostmasterRow ¶
type McpProvidersRow ¶
type McpProvidersRow struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Adapter string `json:"adapter"`
Label string `json:"label"`
Status string `json:"status"`
StatusDetail string `json:"statusDetail"`
Health json.RawMessage `json:"health"`
Ips []string `json:"ips"`
LastEventAt *time.Time `json:"lastEventAt"`
}
type McpRoutingRow ¶
type McpRoutingRow struct {
ID uuid.UUID `json:"id"`
Stream string `json:"stream"`
Priority int32 `json:"priority"`
Name string `json:"name"`
Conditions json.RawMessage `json:"conditions"`
Splits json.RawMessage `json:"splits"`
FallbackProviderID *uuid.UUID `json:"fallbackProviderId"`
Enabled bool `json:"enabled"`
UpdatedAt time.Time `json:"updatedAt"`
}
type McpSearchContactsParams ¶
type McpSearchContactsRow ¶
type McpSendingDomainsRow ¶
type McpUpdateDraftParams ¶
type McpUpdateDraftRow ¶
type MediaAsset ¶
type MediaAsset struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
FileName string `json:"fileName"`
ContentType string `json:"contentType"`
SizeBytes int32 `json:"sizeBytes"`
Width int32 `json:"width"`
Height int32 `json:"height"`
HasAlpha bool `json:"hasAlpha"`
Sha256 []byte `json:"sha256"`
Data []byte `json:"data"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
HiddenAt *time.Time `json:"hiddenAt"`
}
type Message ¶
type Message struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Stream string `json:"stream"`
CampaignID *uuid.UUID `json:"campaignId"`
AutomationID *uuid.UUID `json:"automationId"`
AutomationNode *string `json:"automationNode"`
ContactID *uuid.UUID `json:"contactId"`
Email string `json:"email"`
Variant string `json:"variant"`
ProviderID *uuid.UUID `json:"providerId"`
ProviderMessageID *string `json:"providerMessageId"`
MailboxProvider string `json:"mailboxProvider"`
Status string `json:"status"`
QueuedAt time.Time `json:"queuedAt"`
SentAt *time.Time `json:"sentAt"`
DeliveredAt *time.Time `json:"deliveredAt"`
OpenedAt *time.Time `json:"openedAt"`
ClickedAt *time.Time `json:"clickedAt"`
Error string `json:"error"`
Kind string `json:"kind"`
Failover bool `json:"failover"`
RouteNote string `json:"routeNote"`
Attempts int16 `json:"attempts"`
NextAttemptAt *time.Time `json:"nextAttemptAt"`
ClaimedAt *time.Time `json:"claimedAt"`
ContentRef json.RawMessage `json:"contentRef"`
HumanOpenedAt *time.Time `json:"humanOpenedAt"`
SendOrder int32 `json:"sendOrder"`
}
type Notification ¶
type Notification struct {
ID uuid.UUID `json:"id"`
UserID uuid.UUID `json:"userId"`
WorkspaceID *uuid.UUID `json:"workspaceId"`
Kind string `json:"kind"`
Severity string `json:"severity"`
Title string `json:"title"`
Body string `json:"body"`
Link string `json:"link"`
Data json.RawMessage `json:"data"`
CreatedAt time.Time `json:"createdAt"`
ReadAt *time.Time `json:"readAt"`
Summary string `json:"summary"`
InApp bool `json:"inApp"`
EmailStatus *string `json:"emailStatus"`
EmailAttempts int32 `json:"emailAttempts"`
EmailedAt *time.Time `json:"emailedAt"`
}
type NotificationPreference ¶
type NotificationSetting ¶
type OverviewLatestReadinessRow ¶
type OverviewLatestReadinessRow struct {
Verdict string `json:"verdict"`
Checks json.RawMessage `json:"checks"`
RanAt time.Time `json:"ranAt"`
}
type OverviewListChangesRow ¶
type PasswordReset ¶
type PauseAutomationParams ¶
type PostmasterDaily ¶
type PostmasterDaily struct {
WorkspaceID uuid.UUID `json:"workspaceId"`
Domain string `json:"domain"`
Day time.Time `json:"day"`
SpamRate *float64 `json:"spamRate"`
DomainReputation string `json:"domainReputation"`
IpReputation string `json:"ipReputation"`
SpfRate *float64 `json:"spfRate"`
DkimRate *float64 `json:"dkimRate"`
DmarcRate *float64 `json:"dmarcRate"`
TlsRate *float64 `json:"tlsRate"`
DeliveryErrors *float64 `json:"deliveryErrors"`
Via string `json:"via"`
FblFlagged *int32 `json:"fblFlagged"`
}
type ProvAwaitingCountParams ¶
type ProvAwaitingCountRow ¶
type ProvAwaitingStatusRow ¶
type ProvAwaitingStatusRow struct {
ID uuid.UUID `json:"id"`
Email string `json:"email"`
ProviderMessageID *string `json:"providerMessageId"`
SentAt *time.Time `json:"sentAt"`
Status string `json:"status"`
DeliveredAt *time.Time `json:"deliveredAt"`
Kind string `json:"kind"`
CampaignName string `json:"campaignName"`
AutomationName string `json:"automationName"`
AutomationNode *string `json:"automationNode"`
}
type ProvCallWindowTotalsRow ¶
type ProvCampaignRoutesRow ¶
type ProvCampaignRoutesRow struct {
CampaignID uuid.UUID `json:"campaignId"`
ProviderID uuid.UUID `json:"providerId"`
Planned int64 `json:"planned"`
Status string `json:"status"`
StatusDetail string `json:"statusDetail"`
ProviderName string `json:"providerName"`
Adapter string `json:"adapter"`
Sent int64 `json:"sent"`
}
type ProvDailyTotalsParams ¶
type ProvDailyTotalsRow ¶
type ProvDailyTotalsRow struct {
ProviderID uuid.UUID `json:"providerId"`
Sent int64 `json:"sent"`
Delivered int64 `json:"delivered"`
Bounced int64 `json:"bounced"`
Complained int64 `json:"complained"`
ApiCalls int64 `json:"apiCalls"`
ApiErrors int64 `json:"apiErrors"`
CostMicros int64 `json:"costMicros"`
}
type ProvEndFailoversParams ¶
type ProvGetParams ¶
type ProvHeldRoutesParams ¶
type ProvHeldRoutesRow ¶
type ProvHeldRoutesRow struct {
CampaignID uuid.UUID `json:"campaignId"`
ProviderID uuid.UUID `json:"providerId"`
Planned int64 `json:"planned"`
Status string `json:"status"`
StatusDetail string `json:"statusDetail"`
CampaignName string `json:"campaignName"`
CampaignStatus string `json:"campaignStatus"`
AudienceCount *int64 `json:"audienceCount"`
StartedAt *time.Time `json:"startedAt"`
Sent int64 `json:"sent"`
}
type ProvInsertIncidentParams ¶
type ProvInsertIncidentParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
OccurredAt time.Time `json:"occurredAt"`
Kind string `json:"kind"`
Severity string `json:"severity"`
Title string `json:"title"`
Detail string `json:"detail"`
CampaignID *uuid.UUID `json:"campaignId"`
ProviderID *uuid.UUID `json:"providerId"`
}
type ProvLastConfirmedParams ¶
type ProvLastConfirmedRow ¶
type ProvLastConfirmedRow struct {
ID uuid.UUID `json:"id"`
Email string `json:"email"`
ProviderMessageID *string `json:"providerMessageId"`
SentAt *time.Time `json:"sentAt"`
Status string `json:"status"`
DeliveredAt *time.Time `json:"deliveredAt"`
Kind string `json:"kind"`
CampaignName string `json:"campaignName"`
AutomationName string `json:"automationName"`
AutomationNode *string `json:"automationNode"`
}
type ProvMembersWithNamesRow ¶
type ProvRawEventsByHourRow ¶
type ProvRecordCallParams ¶
type ProvRecordDailyParams ¶
type ProvRecordOutcomeParams ¶
type ProvSentByKindParams ¶
type ProvSentByKindRow ¶
type ProvSentSinceParams ¶
type ProvSentSinceRow ¶
type ProvStartFailoverParams ¶
type ProvStartFailoverParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Stream string `json:"stream"`
ProviderID uuid.UUID `json:"providerId"`
FallbackProviderID *uuid.UUID `json:"fallbackProviderId"`
Mode string `json:"mode"`
StartedAt time.Time `json:"startedAt"`
Detail json.RawMessage `json:"detail"`
}
type ProvStreamVolumeParams ¶
type ProvStreamVolumeRow ¶
type ProvUpdateCapabilitiesParams ¶
type ProvUpdateCapabilitiesParams struct {
Capabilities json.RawMessage `json:"capabilities"`
ID uuid.UUID `json:"id"`
}
type ProvUpdateConfigParams ¶
type ProvUpdateConfigParams struct {
Config json.RawMessage `json:"config"`
ID uuid.UUID `json:"id"`
}
type ProvUpdateHealthParams ¶
type ProvUpdateSettingsParams ¶
type ProvUpdateSettingsParams struct {
Label string `json:"label"`
Pricing json.RawMessage `json:"pricing"`
Limits json.RawMessage `json:"limits"`
ID uuid.UUID `json:"id"`
}
type ProvUpdateTrackingParams ¶
type ProvUpdateTrackingParams struct {
Tracking json.RawMessage `json:"tracking"`
ID uuid.UUID `json:"id"`
}
type Provider ¶
type Provider struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Adapter string `json:"adapter"`
Name string `json:"name"`
Label string `json:"label"`
Config json.RawMessage `json:"config"`
CredentialsEnc []byte `json:"credentialsEnc"`
WebhookToken string `json:"webhookToken"`
WebhookSecretEnc []byte `json:"webhookSecretEnc"`
Status string `json:"status"`
StatusDetail string `json:"statusDetail"`
IpMode string `json:"ipMode"`
Ips []string `json:"ips"`
Capabilities json.RawMessage `json:"capabilities"`
Limits json.RawMessage `json:"limits"`
Health json.RawMessage `json:"health"`
Pricing json.RawMessage `json:"pricing"`
Tracking json.RawMessage `json:"tracking"`
LastEventAt *time.Time `json:"lastEventAt"`
LastCheckedAt *time.Time `json:"lastCheckedAt"`
ConnectedBy *uuid.UUID `json:"connectedBy"`
ConnectedAt time.Time `json:"connectedAt"`
DisconnectedAt *time.Time `json:"disconnectedAt"`
}
type ProviderCallWindow ¶
type ProviderDailyStat ¶
type ProviderDailyStat struct {
ProviderID uuid.UUID `json:"providerId"`
Day time.Time `json:"day"`
Sent int64 `json:"sent"`
Delivered int64 `json:"delivered"`
Bounced int64 `json:"bounced"`
Complained int64 `json:"complained"`
ApiCalls int64 `json:"apiCalls"`
ApiErrors int64 `json:"apiErrors"`
CostMicros int64 `json:"costMicros"`
}
type ProviderNamesRow ¶
type ProviderRawEvent ¶
type ProviderRawEvent struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
ProviderID uuid.UUID `json:"providerId"`
ReceivedAt time.Time `json:"receivedAt"`
ContentType string `json:"contentType"`
Body []byte `json:"body"`
SignatureOk bool `json:"signatureOk"`
NormalizedAt *time.Time `json:"normalizedAt"`
NormalizeError *string `json:"normalizeError"`
Headers json.RawMessage `json:"headers"`
Source string `json:"source"`
Events int32 `json:"events"`
}
type ProviderSetup ¶
type ProviderSetup struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Adapter string `json:"adapter"`
ProviderID *uuid.UUID `json:"providerId"`
Step string `json:"step"`
Status string `json:"status"`
State json.RawMessage `json:"state"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
FinishedAt *time.Time `json:"finishedAt"`
}
type ProviderSuppressionSync ¶
type ProviderSuppressionSync struct {
ProviderID uuid.UUID `json:"providerId"`
Mode string `json:"mode"`
LastPushAt *time.Time `json:"lastPushAt"`
LastPullAt *time.Time `json:"lastPullAt"`
Pushed int64 `json:"pushed"`
Pulled int64 `json:"pulled"`
Pending int64 `json:"pending"`
Status string `json:"status"`
StatusDetail string `json:"statusDetail"`
}
type PublicCampaignParams ¶
type PublicCampaignRow ¶
type PublicCampaignRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Name string `json:"name"`
Subject string `json:"subject"`
Preheader string `json:"preheader"`
Html string `json:"html"`
PlainText string `json:"plainText"`
AbTest json.RawMessage `json:"abTest"`
Audience json.RawMessage `json:"audience"`
SentAt time.Time `json:"sentAt"`
}
type PublicInsertFeedbackParams ¶
type PublicInsertFeedbackParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
ContactID *uuid.UUID `json:"contactId"`
CampaignID *uuid.UUID `json:"campaignId"`
Reason string `json:"reason"`
Comment string `json:"comment"`
ChoseFewer bool `json:"choseFewer"`
At time.Time `json:"at"`
}
type PublicInsertUnsubscribeEventParams ¶
type PublicInsertUnsubscribeEventParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
MessageID *uuid.UUID `json:"messageId"`
CampaignID *uuid.UUID `json:"campaignId"`
ContactID *uuid.UUID `json:"contactId"`
ProviderID *uuid.UUID `json:"providerId"`
At time.Time `json:"at"`
MailboxProvider string `json:"mailboxProvider"`
OriginalType string `json:"originalType"`
UserAgent string `json:"userAgent"`
Ip *netip.Addr `json:"ip"`
Recipient string `json:"recipient"`
Source string `json:"source"`
}
type PublicMessageRow ¶
type PublicMessageRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Stream string `json:"stream"`
CampaignID *uuid.UUID `json:"campaignId"`
ContactID *uuid.UUID `json:"contactId"`
ProviderID *uuid.UUID `json:"providerId"`
MailboxProvider string `json:"mailboxProvider"`
Variant string `json:"variant"`
Email string `json:"email"`
}
type PublicPageSetting ¶
type PublicPageSetting struct {
WorkspaceID uuid.UUID `json:"workspaceId"`
HostedFormID *uuid.UUID `json:"hostedFormId"`
Pages json.RawMessage `json:"pages"`
CustomDomain *string `json:"customDomain"`
DomainStatus string `json:"domainStatus"`
DomainDetail string `json:"domainDetail"`
DomainCheckedAt *time.Time `json:"domainCheckedAt"`
DomainVerifiedAt *time.Time `json:"domainVerifiedAt"`
TurnstileSiteKey string `json:"turnstileSiteKey"`
TurnstileSecretEnc []byte `json:"turnstileSecretEnc"`
TurnstileStatus string `json:"turnstileStatus"`
TurnstileError string `json:"turnstileError"`
TurnstileCheckedAt *time.Time `json:"turnstileCheckedAt"`
Logo []byte `json:"logo"`
LogoType string `json:"logoType"`
UpdatedBy *uuid.UUID `json:"updatedBy"`
UpdatedAt time.Time `json:"updatedAt"`
}
type PublicSettingsLogoRow ¶
type PublicSettingsSetDomainParams ¶
type PublicSettingsSetDomainParams struct {
CustomDomain *string `json:"customDomain"`
DomainStatus string `json:"domainStatus"`
DomainDetail string `json:"domainDetail"`
DomainCheckedAt *time.Time `json:"domainCheckedAt"`
DomainVerifiedAt *time.Time `json:"domainVerifiedAt"`
UpdatedBy *uuid.UUID `json:"updatedBy"`
At time.Time `json:"at"`
WorkspaceID uuid.UUID `json:"workspaceId"`
}
type PublicSettingsSetTurnstileParams ¶
type PublicSettingsSetTurnstileParams struct {
SiteKey string `json:"siteKey"`
SecretEnc []byte `json:"secretEnc"`
Status string `json:"status"`
Error string `json:"error"`
CheckedAt *time.Time `json:"checkedAt"`
UpdatedBy *uuid.UUID `json:"updatedBy"`
At time.Time `json:"at"`
WorkspaceID uuid.UUID `json:"workspaceId"`
}
type PurgeAuditEventsParams ¶
type PutMXCacheParams ¶
type Querier ¶
type Querier interface {
AcceptInvitation(ctx context.Context, arg AcceptInvitationParams) error
AcceptPendingInvitation(ctx context.Context, arg AcceptPendingInvitationParams) (int64, error)
// Access requests from the "403 · no permission" screen (internal/accessrequests).
// The member's latest request for this role in the last day (one a day).
AccessRequestsLatest(ctx context.Context, arg AccessRequestsLatestParams) (time.Time, error)
// The draft or running import the wizard resumes.
ActiveImport(ctx context.Context, workspaceID uuid.UUID) (Import, error)
AddSegmentMembers(ctx context.Context, arg AddSegmentMembersParams) error
ApprovalAudienceLists(ctx context.Context, workspaceID uuid.UUID) ([]ApprovalAudienceListsRow, error)
ApprovalBypassCount(ctx context.Context, arg ApprovalBypassCountParams) (int64, error)
ApprovalCampaignVersion(ctx context.Context, arg ApprovalCampaignVersionParams) (ApprovalCampaignVersionRow, error)
// A request and the requests it follows, newest first.
ApprovalChain(ctx context.Context, id uuid.UUID) ([]uuid.UUID, error)
// The discussion of a request and of the requests it follows.
ApprovalComments(ctx context.Context, requestIds []uuid.UUID) ([]ApprovalCommentsRow, error)
// How long requests waited for their first decision (the median wait).
ApprovalDecisionWaits(ctx context.Context, arg ApprovalDecisionWaitsParams) ([]int64, error)
ApprovalDecisions(ctx context.Context, requestIds []uuid.UUID) ([]ApprovalDecisionsRow, error)
ApprovalGet(ctx context.Context, arg ApprovalGetParams) (ApprovalGetRow, error)
// Scheduled campaigns held by a Blocked recheck (retried until a recheck passes).
ApprovalHeldCampaigns(ctx context.Context) ([]ApprovalHeldCampaignsRow, error)
ApprovalInsertComment(ctx context.Context, arg ApprovalInsertCommentParams) error
ApprovalInsertDecision(ctx context.Context, arg ApprovalInsertDecisionParams) error
ApprovalInsertHold(ctx context.Context, arg ApprovalInsertHoldParams) error
ApprovalInsertRequest(ctx context.Context, arg ApprovalInsertRequestParams) error
ApprovalInvalidate(ctx context.Context, arg ApprovalInvalidateParams) error
// The latest audit entry of an action on a target (who scheduled, who approved, from where).
ApprovalLastAudit(ctx context.Context, arg ApprovalLastAuditParams) (ApprovalLastAuditRow, error)
// The most recent request of a campaign (bypass records aside).
ApprovalLatestForCampaign(ctx context.Context, campaignID *uuid.UUID) (ApprovalLatestForCampaignRow, error)
// The approval inbox. Approvers see every request; others only their own.
ApprovalList(ctx context.Context, arg ApprovalListParams) ([]ApprovalListRow, error)
ApprovalLock(ctx context.Context, arg ApprovalLockParams) (ApprovalRequest, error)
ApprovalMarkScheduled(ctx context.Context, arg ApprovalMarkScheduledParams) error
ApprovalMarkSending(ctx context.Context, arg ApprovalMarkSendingParams) error
ApprovalMember(ctx context.Context, arg ApprovalMemberParams) (ApprovalMemberRow, error)
// Active members with their role and user details (approvers, presence).
ApprovalMembers(ctx context.Context, workspaceID uuid.UUID) ([]ApprovalMembersRow, error)
// The pending or approved request of a campaign.
ApprovalOpenForCampaign(ctx context.Context, campaignID *uuid.UUID) (ApprovalRequest, error)
ApprovalOpenHold(ctx context.Context, campaignID uuid.UUID) (CampaignIncident, error)
// Open campaign requests of every workspace (the revalidation job).
ApprovalOpenRequests(ctx context.Context) ([]ApprovalOpenRequestsRow, error)
// Whether an enabled webhook posts campaign.paused to Slack (Review & send says who hears about a held send).
ApprovalPauseAlertsSlack(ctx context.Context, workspaceID uuid.UUID) (bool, error)
ApprovalPendingForWorkspace(ctx context.Context, workspaceID uuid.UUID) ([]ApprovalPendingForWorkspaceRow, error)
// "Restore … (keeps approval)": the campaign matches the snapshot again.
ApprovalReopen(ctx context.Context, arg ApprovalReopenParams) error
ApprovalResolveHold(ctx context.Context, arg ApprovalResolveHoldParams) error
ApprovalScheduleCampaign(ctx context.Context, arg ApprovalScheduleCampaignParams) error
ApprovalSetCampaignStatus(ctx context.Context, arg ApprovalSetCampaignStatusParams) error
ApprovalSetReminded(ctx context.Context, arg ApprovalSetRemindedParams) error
ApprovalSetStatus(ctx context.Context, arg ApprovalSetStatusParams) error
ApprovalUnschedule(ctx context.Context, arg ApprovalUnscheduleParams) error
ArchiveInsertIssue(ctx context.Context, arg ArchiveInsertIssueParams) error
ArchiveIssueBySlug(ctx context.Context, arg ArchiveIssueBySlugParams) (ArchiveIssueBySlugRow, error)
ArchiveIssueCount(ctx context.Context, arg ArchiveIssueCountParams) (int64, error)
ArchiveIssueGet(ctx context.Context, arg ArchiveIssueGetParams) (ArchiveIssue, error)
// One issue of the Archive tab, as ArchiveIssues lists it.
ArchiveIssueOne(ctx context.Context, arg ArchiveIssueOneParams) (ArchiveIssueOneRow, error)
ArchiveIssues(ctx context.Context, arg ArchiveIssuesParams) ([]ArchiveIssuesRow, error)
ArchiveListCounts(ctx context.Context, arg ArchiveListCountsParams) ([]ArchiveListCountsRow, error)
// Serializes archive syncs of a workspace, so two requests never hand out
// the same slug.
ArchiveLock(ctx context.Context, workspaceID uuid.UUID) error
// Public pages (spec 7.12): the archive, view online and what an
// unsubscribe records about the email it came from.
// Sent campaigns of the archived lists without an archive row yet, oldest
// first so slugs are handed out in publishing order.
ArchiveMissingIssues(ctx context.Context, arg ArchiveMissingIssuesParams) ([]ArchiveMissingIssuesRow, error)
ArchiveSlugTaken(ctx context.Context, arg ArchiveSlugTakenParams) (bool, error)
// Every published issue: how many and since when.
ArchiveSummary(ctx context.Context, arg ArchiveSummaryParams) (ArchiveSummaryRow, error)
ArchiveUpdateIssue(ctx context.Context, arg ArchiveUpdateIssueParams) (ArchiveIssue, error)
// The automation the sunset policy names (List health links to its flow).
AudienceAutomationByName(ctx context.Context, arg AudienceAutomationByNameParams) (uuid.UUID, error)
// Audience: lists, custom fields, contacts, consent, saved views,
// suppressions and the daily rollups behind List health.
AudienceCounts(ctx context.Context, workspaceID uuid.UUID) (AudienceCountsRow, error)
AuditLogActionGroups(ctx context.Context, workspaceID *uuid.UUID) ([]AuditLogActionGroupsRow, error)
// Actors seen in the workspace log, for the actor filter.
AuditLogActors(ctx context.Context, workspaceID *uuid.UUID) ([]AuditLogActorsRow, error)
AuditLogCount(ctx context.Context, workspaceID *uuid.UUID) (int64, error)
// Same filters as AuditLogList, with before/after for exports.
AuditLogExport(ctx context.Context, arg AuditLogExportParams) ([]AuditLogExportRow, error)
AuditLogGet(ctx context.Context, arg AuditLogGetParams) (AuditLogGetRow, error)
// Workspace audit log views, export and stream. The instance-level
// view lives with the instance admin domain.
AuditLogList(ctx context.Context, arg AuditLogListParams) ([]AuditLogListRow, error)
// Other entries about the same target close in time, for "Related:".
AuditLogRelated(ctx context.Context, arg AuditLogRelatedParams) ([]AuditLogRelatedRow, error)
AuditSetRetention(ctx context.Context, arg AuditSetRetentionParams) error
AuditStreamAdvance(ctx context.Context, arg AuditStreamAdvanceParams) error
AuditStreamBatch(ctx context.Context, arg AuditStreamBatchParams) ([]AuditEvent, error)
AuditStreamConfigure(ctx context.Context, arg AuditStreamConfigureParams) error
AuditStreamSetStatus(ctx context.Context, arg AuditStreamSetStatusParams) error
AuditStreamWorkspaces(ctx context.Context) ([]AuditStreamWorkspacesRow, error)
// Where contacts are, per version and step (publish impact).
AutomationActiveRunNodes(ctx context.Context, automationID uuid.UUID) ([]AutomationActiveRunNodesRow, error)
// Live flows' versions that still have contacts in them (goal detection).
AutomationActiveRunVersions(ctx context.Context) ([]AutomationActiveRunVersionsRow, error)
AutomationAddContactTag(ctx context.Context, arg AutomationAddContactTagParams) error
AutomationAddListMembership(ctx context.Context, arg AutomationAddListMembershipParams) error
AutomationContact(ctx context.Context, id uuid.UUID) (AutomationContactRow, error)
AutomationContactByEmail(ctx context.Context, arg AutomationContactByEmailParams) (AutomationContactByEmailRow, error)
AutomationContactEmailedSince(ctx context.Context, arg AutomationContactEmailedSinceParams) (bool, error)
AutomationContactInList(ctx context.Context, arg AutomationContactInListParams) (bool, error)
AutomationContactInWorkspace(ctx context.Context, arg AutomationContactInWorkspaceParams) (AutomationContactInWorkspaceRow, error)
AutomationContactSentEvent(ctx context.Context, arg AutomationContactSentEventParams) (bool, error)
AutomationContactSuppressed(ctx context.Context, arg AutomationContactSuppressedParams) (bool, error)
// Contacts whose date field (plus the offset) is today in the workspace's
// timezone; yearly triggers match the day and month every year.
AutomationDateFieldMatches(ctx context.Context, arg AutomationDateFieldMatchesParams) ([]uuid.UUID, error)
AutomationDateTriggers(ctx context.Context) ([]AutomationDateTriggersRow, error)
// Whether the contact opened or clicked any email of this flow since a time.
AutomationEngaged(ctx context.Context, arg AutomationEngagedParams) (bool, error)
AutomationEventNames(ctx context.Context, workspaceID uuid.UUID) ([]string, error)
AutomationFields(ctx context.Context, workspaceID uuid.UUID) ([]AutomationFieldsRow, error)
AutomationForms(ctx context.Context, workspaceID uuid.UUID) ([]AutomationFormsRow, error)
// Runs whose contact opened or clicked an email of this flow since entering.
AutomationGoalRunsEngaged(ctx context.Context, arg AutomationGoalRunsEngagedParams) ([]AutomationGoalRunsEngagedRow, error)
AutomationGoalRunsEvent(ctx context.Context, arg AutomationGoalRunsEventParams) ([]AutomationGoalRunsEventRow, error)
AutomationGoalRunsInList(ctx context.Context, arg AutomationGoalRunsInListParams) ([]AutomationGoalRunsInListRow, error)
AutomationGoalRunsTagged(ctx context.Context, arg AutomationGoalRunsTaggedParams) ([]AutomationGoalRunsTaggedRow, error)
AutomationLists(ctx context.Context, workspaceID uuid.UUID) ([]AutomationListsRow, error)
// Runs waiting on a webhook call whose job never ran (lost or not enqueued).
AutomationLostWebhookRuns(ctx context.Context, before time.Time) ([]AutomationLostWebhookRunsRow, error)
AutomationMessageEngaged(ctx context.Context, arg AutomationMessageEngagedParams) (bool, error)
AutomationMessageForStats(ctx context.Context, id uuid.UUID) (AutomationMessageForStatsRow, error)
// Automation emails per sending provider since a day, and the last day each sent.
AutomationProviderSendsSince(ctx context.Context, arg AutomationProviderSendsSinceParams) ([]AutomationProviderSendsSinceRow, error)
AutomationProviders(ctx context.Context, workspaceID uuid.UUID) ([]AutomationProvidersRow, error)
AutomationRemoveContactTag(ctx context.Context, arg AutomationRemoveContactTagParams) error
AutomationRemoveListMembership(ctx context.Context, arg AutomationRemoveListMembershipParams) error
// The default Automations route: the weighted split and the fallback.
AutomationRoute(ctx context.Context, workspaceID uuid.UUID) (AutomationRouteRow, error)
AutomationRunExists(ctx context.Context, arg AutomationRunExistsParams) (bool, error)
// The message a run's email step queued (for branch checks).
AutomationRunMessage(ctx context.Context, arg AutomationRunMessageParams) (AutomationRunMessageRow, error)
// The latest alert per webhook step, open or resolved (for the publish diff).
AutomationStepFailures(ctx context.Context, automationID uuid.UUID) ([]AutomationStepFailuresRow, error)
// Paths taken out of branches and splits.
AutomationStepPathsSince(ctx context.Context, arg AutomationStepPathsSinceParams) ([]AutomationStepPathsSinceRow, error)
// Emails per sending provider, per step.
AutomationStepProvidersSince(ctx context.Context, arg AutomationStepProvidersSinceParams) ([]AutomationStepProvidersSinceRow, error)
AutomationStepSecretNodes(ctx context.Context, automationID uuid.UUID) ([]string, error)
// Per-step totals since a day, across versions (steps keep their ids).
AutomationStepStatsSince(ctx context.Context, arg AutomationStepStatsSinceParams) ([]AutomationStepStatsSinceRow, error)
AutomationTopTags(ctx context.Context, workspaceID uuid.UUID) ([]AutomationTopTagsRow, error)
AutomationUnsubscribeAll(ctx context.Context, contactID uuid.UUID) error
// Totals per automation since a day, for the KPI row.
AutomationWorkspaceStatsSince(ctx context.Context, arg AutomationWorkspaceStatsSinceParams) ([]AutomationWorkspaceStatsSinceRow, error)
BroadcastDefaultSplit(ctx context.Context, workspaceID uuid.UUID) (json.RawMessage, error)
// Adds to one step's counters for a day. Path and provider counts are merged
// key by key.
BumpAutomationStepStats(ctx context.Context, arg BumpAutomationStepStatsParams) error
BumpChallengeAttempts(ctx context.Context, id uuid.UUID) (int32, error)
BumpNotificationEmailAttempts(ctx context.Context, arg BumpNotificationEmailAttemptsParams) error
CampaignCostSince(ctx context.Context, arg CampaignCostSinceParams) ([]CampaignCostSinceRow, error)
CampaignTotalsSince(ctx context.Context, arg CampaignTotalsSinceParams) (CampaignTotalsSinceRow, error)
ClaimAutomationEvents(ctx context.Context, lim int32) ([]ClaimAutomationEventsRow, error)
// Runs ready to move on, in flows that are live (paused flows hold their runs).
ClaimDueAutomationRuns(ctx context.Context, arg ClaimDueAutomationRunsParams) ([]ClaimDueAutomationRunsRow, error)
ClearSegmentMembers(ctx context.Context, segmentID uuid.UUID) error
ClearSignInThrottle(ctx context.Context, email string) error
ClearUserLockout(ctx context.Context, id uuid.UUID) error
// Every installed community adapter, any kind: the runtime registers the
// kinds it runs, and registry keys must not collide across kinds.
CommunityAdapterList(ctx context.Context) ([]CommunityAdapterListRow, error)
CompleteInstanceSetup(ctx context.Context, arg CompleteInstanceSetupParams) (InstanceSetting, error)
// Lists with their subscribed, active contacts (suppressed addresses excluded).
ComposerAudienceLists(ctx context.Context, workspaceID uuid.UUID) ([]ComposerAudienceListsRow, error)
ComposerAudienceSegments(ctx context.Context, workspaceID uuid.UUID) ([]ComposerAudienceSegmentsRow, error)
// Recipients of lists minus excluded lists and suppressions. A deleted list
// (restorable for 30 days) adds nobody; as an exclusion it still excludes.
ComposerCountListAudience(ctx context.Context, arg ComposerCountListAudienceParams) (int64, error)
// Audience contacts whose first name is empty (they see the fallback).
ComposerCountMissingField(ctx context.Context, arg ComposerCountMissingFieldParams) (int64, error)
ComposerCustomFields(ctx context.Context, workspaceID uuid.UUID) ([]ComposerCustomFieldsRow, error)
ComposerDefaultSender(ctx context.Context, id uuid.UUID) (ComposerDefaultSenderRow, error)
ComposerLastSentCampaign(ctx context.Context, workspaceID uuid.UUID) (ComposerLastSentCampaignRow, error)
ComposerLatestReadiness(ctx context.Context, campaignID uuid.UUID) (ComposerLatestReadinessRow, error)
// Row lock for autosave: the version check and the new version are atomic.
ComposerLockCampaign(ctx context.Context, arg ComposerLockCampaignParams) (ComposerLockCampaignRow, error)
ComposerPreviewContactByID(ctx context.Context, arg ComposerPreviewContactByIDParams) (ComposerPreviewContactByIDRow, error)
// Contacts to preview as: the campaign's audience first, people with a first name first.
ComposerPreviewContacts(ctx context.Context, arg ComposerPreviewContactsParams) ([]ComposerPreviewContactsRow, error)
ComposerRandomContact(ctx context.Context, workspaceID uuid.UUID) (ComposerRandomContactRow, error)
// Active members of the workspace, for "Send test" (name and email).
ComposerTestRecipients(ctx context.Context, workspaceID uuid.UUID) ([]ComposerTestRecipientsRow, error)
ComposerUpdateCampaignMeta(ctx context.Context, arg ComposerUpdateCampaignMetaParams) error
// The MJML of recent versions, newest first (to find when a section was removed).
ComposerVersionSources(ctx context.Context, arg ComposerVersionSourcesParams) ([]ComposerVersionSourcesRow, error)
ConfirmInstanceBasics(ctx context.Context) error
ConnectActiveContacts(ctx context.Context, workspaceID uuid.UUID) (int64, error)
ConnectCreateList(ctx context.Context, arg ConnectCreateListParams) error
// The first webhook payload about a message (its provider message id is in
// the body) a provider sent in a window after the send: the test send's
// "event came back" step, with the body to name the event.
ConnectFirstWebhook(ctx context.Context, arg ConnectFirstWebhookParams) (ConnectFirstWebhookRow, error)
ConnectInsertProvider(ctx context.Context, arg ConnectInsertProviderParams) (Provider, error)
ConnectListNames(ctx context.Context, workspaceID uuid.UUID) ([]string, error)
ConnectMessage(ctx context.Context, arg ConnectMessageParams) (Message, error)
ConnectMessageEvents(ctx context.Context, messageID *uuid.UUID) ([]DeliveryEvent, error)
ConnectProviderNames(ctx context.Context, workspaceID uuid.UUID) ([]string, error)
// Whether any routing rule of the workspace uses the provider.
ConnectProviderRouted(ctx context.Context, arg ConnectProviderRoutedParams) (bool, error)
// Connected providers whose webhooks are authenticated with a secret.
ConnectProvidersWithSecrets(ctx context.Context, workspaceID uuid.UUID) ([]Provider, error)
// Other connections of an adapter on this instance (resource-name clashes
// when two workspaces share one provider account).
ConnectSameAdapter(ctx context.Context, arg ConnectSameAdapterParams) ([]ConnectSameAdapterRow, error)
ConnectSetProviderConfig(ctx context.Context, arg ConnectSetProviderConfigParams) error
ConnectSetSendThresholds(ctx context.Context, arg ConnectSetSendThresholdsParams) error
ConnectSetWebhookSecret(ctx context.Context, arg ConnectSetWebhookSecretParams) error
ConnectSuppressionSyncMode(ctx context.Context, arg ConnectSuppressionSyncModeParams) error
// Settings and credentials from a repeated connection step (new key, other region).
ConnectUpdateProvider(ctx context.Context, arg ConnectUpdateProviderParams) (Provider, error)
ConsumeEmailChange(ctx context.Context, arg ConsumeEmailChangeParams) (EmailChange, error)
// A state is single use: reading it deletes it.
ConsumeHostReputeOAuthState(ctx context.Context, stateHash []byte) (HostreputeOauthState, error)
ConsumePasswordReset(ctx context.Context, tokenHash []byte) (PasswordReset, error)
ContactActivityCount(ctx context.Context, contactID *uuid.UUID) (int64, error)
ContactChoseFewer(ctx context.Context, contactID *uuid.UUID) (bool, error)
ContactConsentEvents(ctx context.Context, contactID uuid.UUID) ([]ContactConsentEventsRow, error)
// Emails sent to a contact since a date (Broadcasts and Automations), how
// many were opened by a person and how many were clicked.
ContactEngagementSince(ctx context.Context, arg ContactEngagementSinceParams) (ContactEngagementSinceRow, error)
// Lists a page of contacts belongs to (subscribed or pending), in list order.
ContactListNames(ctx context.Context, contactIds []uuid.UUID) ([]ContactListNamesRow, error)
ContactMemberships(ctx context.Context, contactID uuid.UUID) ([]ContactMembershipsRow, error)
ContactSources(ctx context.Context, workspaceID uuid.UUID) ([]ContactSourcesRow, error)
ContentCheckLinkListings(ctx context.Context, domains []string) ([]LinkDomainListing, error)
ContentCheckUpsertLinkListing(ctx context.Context, arg ContentCheckUpsertLinkListingParams) error
CountActiveOwners(ctx context.Context, workspaceID uuid.UUID) (int64, error)
CountAutomationHeldMessages(ctx context.Context, automationID *uuid.UUID) (int64, error)
CountAutomationInFlow(ctx context.Context, automationIds []uuid.UUID) ([]CountAutomationInFlowRow, error)
CountAutomationInFlowByNode(ctx context.Context, automationID uuid.UUID) ([]CountAutomationInFlowByNodeRow, error)
CountAutomationsByStatus(ctx context.Context, workspaceID uuid.UUID) ([]CountAutomationsByStatusRow, error)
CountCampaigns(ctx context.Context, arg CountCampaignsParams) (int64, error)
CountCampaignsByStatus(ctx context.Context, workspaceID uuid.UUID) ([]CountCampaignsByStatusRow, error)
CountDeliverabilityIncidents(ctx context.Context, arg CountDeliverabilityIncidentsParams) (int64, error)
CountImportRows(ctx context.Context, importID uuid.UUID) (int64, error)
CountNotifications(ctx context.Context, arg CountNotificationsParams) (CountNotificationsRow, error)
CountUnreadNotifications(ctx context.Context, arg CountUnreadNotificationsParams) (int64, error)
CountUnusedRecoveryCodes(ctx context.Context, userID uuid.UUID) (int64, error)
CountUsers(ctx context.Context) (int64, error)
CountWorkspaceSegments(ctx context.Context, workspaceID uuid.UUID) (int64, error)
CountWorkspaceSuppressions(ctx context.Context, workspaceID uuid.UUID) (int64, error)
CreateAPIKey(ctx context.Context, arg CreateAPIKeyParams) (ApiKey, error)
CreateAutomation(ctx context.Context, arg CreateAutomationParams) (Automation, error)
CreateAutomationEmail(ctx context.Context, arg CreateAutomationEmailParams) error
CreateChallenge(ctx context.Context, arg CreateChallengeParams) (AuthChallenge, error)
CreateContact(ctx context.Context, arg CreateContactParams) (Contact, error)
CreateCustomField(ctx context.Context, arg CreateCustomFieldParams) (CustomField, error)
CreateDeliverabilityCheckRun(ctx context.Context, arg CreateDeliverabilityCheckRunParams) (DeliverabilityCheckRun, error)
CreateEmailChange(ctx context.Context, arg CreateEmailChangeParams) (EmailChange, error)
CreateHostReputeOAuthState(ctx context.Context, arg CreateHostReputeOAuthStateParams) error
CreateIdentity(ctx context.Context, arg CreateIdentityParams) (UserIdentity, error)
// Imports: the migration wizard's drafts, staged rows, live log and reports.
CreateImport(ctx context.Context, arg CreateImportParams) (Import, error)
CreateInvitation(ctx context.Context, arg CreateInvitationParams) (Invitation, error)
CreateList(ctx context.Context, arg CreateListParams) (List, error)
CreateMember(ctx context.Context, arg CreateMemberParams) (WorkspaceMember, error)
CreatePasskey(ctx context.Context, arg CreatePasskeyParams) (UserPasskey, error)
CreatePasskeyRecord(ctx context.Context, arg CreatePasskeyRecordParams) (UserPasskey, error)
CreatePasswordReset(ctx context.Context, arg CreatePasswordResetParams) (PasswordReset, error)
CreatePasswordResetFrom(ctx context.Context, arg CreatePasswordResetFromParams) (PasswordReset, error)
CreateRecoveryCode(ctx context.Context, arg CreateRecoveryCodeParams) error
CreateRole(ctx context.Context, arg CreateRoleParams) (Role, error)
CreateSavedView(ctx context.Context, arg CreateSavedViewParams) (SavedView, error)
CreateSegment(ctx context.Context, arg CreateSegmentParams) (Segment, error)
CreateSession(ctx context.Context, arg CreateSessionParams) (Session, error)
CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
CreateWorkspace(ctx context.Context, arg CreateWorkspaceParams) (Workspace, error)
DeleteAutomationStepSecret(ctx context.Context, arg DeleteAutomationStepSecretParams) (int64, error)
DeleteAvatar(ctx context.Context, userID uuid.UUID) (int64, error)
DeleteChallenge(ctx context.Context, id uuid.UUID) error
DeleteCustomField(ctx context.Context, arg DeleteCustomFieldParams) (int64, error)
DeleteDeliverabilityBlocklistResults(ctx context.Context, arg DeleteDeliverabilityBlocklistResultsParams) error
DeleteExpiredChallenges(ctx context.Context) (int64, error)
DeleteExpiredHostReputeOAuthStates(ctx context.Context) (int64, error)
DeleteExpiredSessions(ctx context.Context) (int64, error)
DeleteHostReputeConnection(ctx context.Context, workspaceID uuid.UUID) (int64, error)
// Disconnect forgets what was synced from HostRepute (HostRepute keeps it).
DeleteHostReputeData(ctx context.Context, workspaceID uuid.UUID) error
DeleteIdentity(ctx context.Context, arg DeleteIdentityParams) (int64, error)
DeleteImport(ctx context.Context, arg DeleteImportParams) (int64, error)
DeleteImportRows(ctx context.Context, importID uuid.UUID) error
DeleteMember(ctx context.Context, arg DeleteMemberParams) (int64, error)
DeleteOldNotifications(ctx context.Context, days int32) (int64, error)
DeletePasskey(ctx context.Context, arg DeletePasskeyParams) (int64, error)
DeletePendingEmailChanges(ctx context.Context, userID uuid.UUID) (int64, error)
DeleteRecoveryCodes(ctx context.Context, userID uuid.UUID) error
DeleteRole(ctx context.Context, roleID uuid.UUID) (int64, error)
DeleteSavedView(ctx context.Context, arg DeleteSavedViewParams) (int64, error)
DeleteSegment(ctx context.Context, arg DeleteSegmentParams) (int64, error)
DeleteStaleThrottle(ctx context.Context) (int64, error)
DeleteSuppression(ctx context.Context, arg DeleteSuppressionParams) (int64, error)
// Which streams each provider serves, as primary (in a split) or fallback.
DeliverabilityProviderStreams(ctx context.Context, workspaceID uuid.UUID) ([]DeliverabilityProviderStreamsRow, error)
DeliverabilityWarmupPlans(ctx context.Context, workspaceID uuid.UUID) ([]DeliverabilityWarmupPlansRow, error)
// Workspaces the daily checks look at: they send through something.
DeliverabilityWorkspaces(ctx context.Context) ([]uuid.UUID, error)
DomCreate(ctx context.Context, arg DomCreateParams) (SendingDomain, error)
// Where HostRepute collects DMARC aggregate reports for this workspace (rua=).
DomDMARCReports(ctx context.Context, workspaceID uuid.UUID) (string, error)
DomDelete(ctx context.Context, id uuid.UUID) error
// Sending domains whose DNS was last checked before a time (the periodic
// re-verification job), oldest first.
DomDue(ctx context.Context, arg DomDueParams) ([]uuid.UUID, error)
DomGet(ctx context.Context, arg DomGetParams) (SendingDomain, error)
DomGetAny(ctx context.Context, id uuid.UUID) (SendingDomain, error)
DomGetByName(ctx context.Context, arg DomGetByNameParams) (SendingDomain, error)
// Sending domains and sender identities (Settings › Senders, the
// domain step of Connect a sending provider, system mail). Query names start
// with Dom or Sender so they never collide with other domains.
DomList(ctx context.Context, workspaceID uuid.UUID) ([]SendingDomain, error)
// The result of a live DNS check.
DomSaveCheck(ctx context.Context, arg DomSaveCheckParams) error
DomUpdateNote(ctx context.Context, arg DomUpdateNoteParams) error
DomUpdateRecords(ctx context.Context, arg DomUpdateRecordsParams) error
DomUpdateTracking(ctx context.Context, arg DomUpdateTrackingParams) error
EmailTaken(ctx context.Context, arg EmailTakenParams) (bool, error)
EmailTemplateNameTaken(ctx context.Context, arg EmailTemplateNameTakenParams) (bool, error)
// Must run inside the same transaction as PurgeAuditEvents (retention job only).
EnableAuditPurge(ctx context.Context) error
EnabledSSOProviders(ctx context.Context) ([]EnabledSSOProvidersRow, error)
ExitAutomationRuns(ctx context.Context, arg ExitAutomationRunsParams) (int64, error)
FailStaleDeliverabilityCheckRuns(ctx context.Context, aliveAfter time.Time) (int64, error)
FinishDeliverabilityCheckRun(ctx context.Context, arg FinishDeliverabilityCheckRunParams) error
FinishImport(ctx context.Context, arg FinishImportParams) error
FormAllowOrigin(ctx context.Context, arg FormAllowOriginParams) (Form, error)
// Origins rejected today that nobody chose to keep blocked yet.
FormBlockedOrigins(ctx context.Context, arg FormBlockedOriginsParams) ([]FormBlockedOriginsRow, error)
FormBumpDaily(ctx context.Context, arg FormBumpDailyParams) error
FormBumpTotals(ctx context.Context, arg FormBumpTotalsParams) error
FormByPublicID(ctx context.Context, arg FormByPublicIDParams) (Form, error)
FormBySlug(ctx context.Context, arg FormBySlugParams) (Form, error)
FormChallengeInsert(ctx context.Context, arg FormChallengeInsertParams) error
// A held submission still waiting for its Turnstile check.
FormChallengeLive(ctx context.Context, arg FormChallengeLiveParams) (bool, error)
FormChallengeTake(ctx context.Context, arg FormChallengeTakeParams) (FormChallenge, error)
FormChallengesPurge(ctx context.Context, at time.Time) (int64, error)
FormDelete(ctx context.Context, arg FormDeleteParams) (int64, error)
FormDismissOrigin(ctx context.Context, arg FormDismissOriginParams) (int64, error)
FormGet(ctx context.Context, arg FormGetParams) (Form, error)
FormInsert(ctx context.Context, arg FormInsertParams) (Form, error)
FormLastSubmissionForContact(ctx context.Context, contactID uuid.UUID) (FormLastSubmissionForContactRow, error)
FormPublicIDTaken(ctx context.Context, arg FormPublicIDTakenParams) (bool, error)
FormRecordRejection(ctx context.Context, arg FormRecordRejectionParams) error
FormRename(ctx context.Context, arg FormRenameParams) (Form, error)
FormSetStatus(ctx context.Context, arg FormSetStatusParams) (Form, error)
FormSlugTaken(ctx context.Context, arg FormSlugTakenParams) (bool, error)
// Per form: views, submissions, confirmations of those submissions and spam
// blocked since a day (inclusive).
FormStatsSince(ctx context.Context, arg FormStatsSinceParams) ([]FormStatsSinceRow, error)
FormSubmissionByID(ctx context.Context, arg FormSubmissionByIDParams) (FormSubmission, error)
FormSubmissionInsert(ctx context.Context, arg FormSubmissionInsertParams) error
FormSubmissionMarkAttempt(ctx context.Context, id uuid.UUID) error
FormSubmissionMarkReminded(ctx context.Context, arg FormSubmissionMarkRemindedParams) error
FormSubmissionMarkSent(ctx context.Context, arg FormSubmissionMarkSentParams) error
// A contact confirmed some other way (re-permission, the team): nothing
// to send or remind any more.
FormSubmissionSettle(ctx context.Context, arg FormSubmissionSettleParams) error
// Marks a contact's waiting submissions confirmed; returns the form and the
// day each was submitted, so the day's confirmed count moves.
FormSubmissionsConfirm(ctx context.Context, arg FormSubmissionsConfirmParams) ([]FormSubmissionsConfirmRow, error)
// Confirmations sent more than 24 hours ago without a click: one reminder.
FormSubmissionsToRemind(ctx context.Context, arg FormSubmissionsToRemindParams) ([]FormSubmissionsToRemindRow, error)
// Double opt-in confirmations that couldn't go out yet (no System provider,
// a provider error): retried by the confirmations job for three days.
FormSubmissionsToSend(ctx context.Context, arg FormSubmissionsToSendParams) ([]FormSubmissionsToSendRow, error)
FormUpdate(ctx context.Context, arg FormUpdateParams) (Form, error)
FormWaitingCount(ctx context.Context, arg FormWaitingCountParams) (int64, error)
// Double opt-in signups of a form whose confirmation email hasn't gone out
// (nothing could send System mail, or the provider refused it), newest
// first: the builder offers their links to send by hand.
FormWaitingSubmissions(ctx context.Context, arg FormWaitingSubmissionsParams) ([]FormWaitingSubmissionsRow, error)
FormsDefaultSender(ctx context.Context, workspaceID uuid.UUID) (FormsDefaultSenderRow, error)
// Signup forms and public page settings (spec 5.12, 7.12).
FormsList(ctx context.Context, workspaceID uuid.UUID) ([]Form, error)
FormsRemoveBrandingKeys(ctx context.Context, arg FormsRemoveBrandingKeysParams) error
// Merges the public-page keys into workspaces.branding; keys other screens
// own (the postal address of the email footer) stay as they are.
FormsUpdateBranding(ctx context.Context, arg FormsUpdateBrandingParams) (json.RawMessage, error)
FormsWorkspaceBranding(ctx context.Context, id uuid.UUID) (json.RawMessage, error)
GetAPIKey(ctx context.Context, arg GetAPIKeyParams) (ApiKey, error)
GetAPIKeyByToken(ctx context.Context, tokenHash []byte) (GetAPIKeyByTokenRow, error)
GetAudienceState(ctx context.Context, workspaceID uuid.UUID) (AudienceState, error)
GetAuditEvent(ctx context.Context, id uuid.UUID) (AuditEvent, error)
GetAutomation(ctx context.Context, arg GetAutomationParams) (GetAutomationRow, error)
GetAutomationEmailVersion(ctx context.Context, arg GetAutomationEmailVersionParams) (GetAutomationEmailVersionRow, error)
GetAutomationRunForUpdate(ctx context.Context, id uuid.UUID) (GetAutomationRunForUpdateRow, error)
GetAutomationStepSecret(ctx context.Context, arg GetAutomationStepSecretParams) ([]byte, error)
GetAutomationVersion(ctx context.Context, arg GetAutomationVersionParams) (GetAutomationVersionRow, error)
GetAvatar(ctx context.Context, userID uuid.UUID) (UserAvatar, error)
GetChallenge(ctx context.Context, arg GetChallengeParams) (AuthChallenge, error)
// One campaign with what the composer header shows.
GetComposerCampaign(ctx context.Context, arg GetComposerCampaignParams) (GetComposerCampaignRow, error)
GetComposerSender(ctx context.Context, arg GetComposerSenderParams) (GetComposerSenderRow, error)
GetComposerVersion(ctx context.Context, arg GetComposerVersionParams) (GetComposerVersionRow, error)
GetContact(ctx context.Context, arg GetContactParams) (Contact, error)
GetContactByEmail(ctx context.Context, arg GetContactByEmailParams) (Contact, error)
GetContactPreferences(ctx context.Context, contactID uuid.UUID) (ContactPreference, error)
GetCustomField(ctx context.Context, arg GetCustomFieldParams) (CustomField, error)
GetDeliverabilityBlocklistListing(ctx context.Context, arg GetDeliverabilityBlocklistListingParams) (BlocklistResult, error)
GetDeliverabilityCheckRun(ctx context.Context, arg GetDeliverabilityCheckRunParams) (DeliverabilityCheckRun, error)
GetEmailTemplate(ctx context.Context, arg GetEmailTemplateParams) (GetEmailTemplateRow, error)
GetHostReputeConnection(ctx context.Context, workspaceID uuid.UUID) (HostreputeConnection, error)
GetHostReputeConnectionForUpdate(ctx context.Context, workspaceID uuid.UUID) (HostreputeConnection, error)
GetIdentity(ctx context.Context, arg GetIdentityParams) (UserIdentity, error)
GetImport(ctx context.Context, arg GetImportParams) (Import, error)
GetImportByID(ctx context.Context, id uuid.UUID) (Import, error)
GetInstanceSettings(ctx context.Context) (InstanceSetting, error)
GetInvitationByToken(ctx context.Context, tokenHash []byte) (GetInvitationByTokenRow, error)
GetInvitationView(ctx context.Context, tokenHash []byte) (GetInvitationViewRow, error)
GetList(ctx context.Context, arg GetListParams) (List, error)
GetMXCache(ctx context.Context, arg GetMXCacheParams) ([]GetMXCacheRow, error)
GetMediaAsset(ctx context.Context, arg GetMediaAssetParams) (GetMediaAssetRow, error)
// Public serving: by id only (ids are unguessable UUIDv7s embedded in emails).
GetMediaAssetData(ctx context.Context, id uuid.UUID) (GetMediaAssetDataRow, error)
GetMember(ctx context.Context, arg GetMemberParams) (GetMemberRow, error)
GetMembership(ctx context.Context, arg GetMembershipParams) (GetMembershipRow, error)
GetNotificationSettings(ctx context.Context, userID uuid.UUID) (NotificationSetting, error)
GetPasskeyByCredential(ctx context.Context, credentialID []byte) (UserPasskey, error)
GetPasswordReset(ctx context.Context, tokenHash []byte) (PasswordReset, error)
GetPendingEmailChange(ctx context.Context, userID uuid.UUID) (EmailChange, error)
GetRole(ctx context.Context, id uuid.UUID) (Role, error)
GetRoleByKey(ctx context.Context, arg GetRoleByKeyParams) (Role, error)
GetSavedView(ctx context.Context, arg GetSavedViewParams) (SavedView, error)
GetSegment(ctx context.Context, arg GetSegmentParams) (Segment, error)
GetSessionByToken(ctx context.Context, tokenHash []byte) (Session, error)
GetSignInThrottle(ctx context.Context, email string) (SignInThrottle, error)
GetSuppression(ctx context.Context, arg GetSuppressionParams) (Suppression, error)
GetSuppressionByEmail(ctx context.Context, arg GetSuppressionByEmailParams) (Suppression, error)
GetUsablePasswordReset(ctx context.Context, tokenHash []byte) (GetUsablePasswordResetRow, error)
GetUser(ctx context.Context, id uuid.UUID) (User, error)
GetUserByEmail(ctx context.Context, email string) (User, error)
GetUserByWebAuthnID(ctx context.Context, webauthnID []byte) (User, error)
GetUserPasskey(ctx context.Context, arg GetUserPasskeyParams) (UserPasskey, error)
GetUserSession(ctx context.Context, arg GetUserSessionParams) (Session, error)
GetWorkspace(ctx context.Context, id uuid.UUID) (Workspace, error)
GetWorkspaceBySlug(ctx context.Context, slug string) (Workspace, error)
HealthViews(ctx context.Context, workspaceID uuid.UUID) ([]SavedView, error)
HideMediaAsset(ctx context.Context, arg HideMediaAssetParams) (int64, error)
// Takes a due delivery for one attempt. Returns no row when someone else has it.
HooksClaimDelivery(ctx context.Context, id uuid.UUID) (HooksClaimDeliveryRow, error)
HooksCreate(ctx context.Context, arg HooksCreateParams) (Webhook, error)
HooksDelete(ctx context.Context, arg HooksDeleteParams) (int64, error)
HooksDeliveries(ctx context.Context, arg HooksDeliveriesParams) ([]HooksDeliveriesRow, error)
// Deliveries ready for an attempt that have no job queued (or a lost one).
// While an endpoint is failing only its oldest open delivery is tried (the
// probe); the rest wait and replay once the endpoint answers 2xx again. The
// probes are found once per failing endpoint, not once per waiting delivery.
HooksDue(ctx context.Context, lim int32) ([]uuid.UUID, error)
HooksFinishDelivery(ctx context.Context, arg HooksFinishDeliveryParams) error
HooksGet(ctx context.Context, arg HooksGetParams) (Webhook, error)
HooksGetDelivery(ctx context.Context, arg HooksGetDeliveryParams) (HooksGetDeliveryRow, error)
HooksInsertDelivery(ctx context.Context, arg HooksInsertDeliveryParams) error
// Outgoing webhooks and their delivery log.
HooksList(ctx context.Context, workspaceID uuid.UUID) ([]HooksListRow, error)
// Endpoints subscribed to an event: exact name, "group.*" or "*".
HooksMatching(ctx context.Context, arg HooksMatchingParams) ([]HooksMatchingRow, error)
HooksPurgeDeliveries(ctx context.Context) (int64, error)
HooksRecordResult(ctx context.Context, arg HooksRecordResultParams) error
HooksReleaseHeld(ctx context.Context, webhookID uuid.UUID) ([]uuid.UUID, error)
// Retry now / Retry all failed / Replay: back to pending for an immediate attempt.
HooksRequeue(ctx context.Context, arg HooksRequeueParams) ([]uuid.UUID, error)
HooksSetEnabled(ctx context.Context, arg HooksSetEnabledParams) error
HooksSetSecret(ctx context.Context, arg HooksSetSecretParams) error
// A worker that died mid-attempt leaves a row in 'delivering'; give it back.
HooksStaleDelivering(ctx context.Context) error
// A demo endpoint stays one only while its address is unchanged.
HooksUpdate(ctx context.Context, arg HooksUpdateParams) (Webhook, error)
// The sending domains an asset list is built from (with the records their
// providers require). Connected providers come from ProvListActive.
HostReputeAssetSources(ctx context.Context, workspaceID uuid.UUID) ([]HostReputeAssetSourcesRow, error)
HostReputeCountAgents(ctx context.Context, workspaceID uuid.UUID) (int64, error)
HostReputeCountWebhooks(ctx context.Context, workspaceID uuid.UUID) (HostReputeCountWebhooksRow, error)
// Where Postmaster and SNDS data come from now (hostrepute, direct or none).
HostReputeDataSourceVia(ctx context.Context, workspaceID uuid.UUID) (HostReputeDataSourceViaRow, error)
// The connected provider that sends from a dedicated IP.
HostReputeProviderForIP(ctx context.Context, arg HostReputeProviderForIPParams) (HostReputeProviderForIPRow, error)
HostReputeUserName(ctx context.Context, id uuid.UUID) (HostReputeUserNameRow, error)
HostReputeWorkspaceSlug(ctx context.Context, id uuid.UUID) (string, error)
// Imports running in the background, and those that ended in the last two
// hours, for the jobs tray.
ImportJobs(ctx context.Context, arg ImportJobsParams) ([]ImportJobsRow, error)
ImportRowsAfter(ctx context.Context, arg ImportRowsAfterParams) ([]ImportRow, error)
ImportStatusCounts(ctx context.Context, importID uuid.UUID) ([]ImportStatusCountsRow, error)
IngestAddSuppression(ctx context.Context, arg IngestAddSuppressionParams) (uuid.UUID, error)
IngestBumpCounters(ctx context.Context, arg IngestBumpCountersParams) error
// The provider event log: provider events (not ReputeCast's own opens and
// clicks), newest first, retained 90 days.
IngestEventLog(ctx context.Context, arg IngestEventLogParams) ([]IngestEventLogRow, error)
IngestEventLogCount(ctx context.Context, arg IngestEventLogCountParams) (int64, error)
IngestGetRaw(ctx context.Context, id uuid.UUID) (ProviderRawEvent, error)
IngestInsertEvent(ctx context.Context, arg IngestInsertEventParams) (uuid.UUID, error)
// Webhook ingest, normalization and the provider event log.
IngestInsertRaw(ctx context.Context, arg IngestInsertRawParams) error
IngestMarkNormalized(ctx context.Context, arg IngestMarkNormalizedParams) error
IngestMessageByID(ctx context.Context, arg IngestMessageByIDParams) (IngestMessageByIDRow, error)
IngestMessageByProviderID(ctx context.Context, arg IngestMessageByProviderIDParams) (IngestMessageByProviderIDRow, error)
IngestPurgeRaw(ctx context.Context, before time.Time) (int64, error)
IngestSetContactStatus(ctx context.Context, arg IngestSetContactStatusParams) error
// Verified payloads the normalization job never finished (recovery sweep).
IngestStaleRaw(ctx context.Context, arg IngestStaleRawParams) ([]uuid.UUID, error)
// Moves a message forward: delivered/deferred are replaced by bounces and
// complaints, never the other way round.
IngestUpdateMessage(ctx context.Context, arg IngestUpdateMessageParams) error
InsertAuditEvent(ctx context.Context, arg InsertAuditEventParams) error
InsertAutomationEmailVersion(ctx context.Context, arg InsertAutomationEmailVersionParams) error
InsertAutomationEvent(ctx context.Context, arg InsertAutomationEventParams) error
InsertAutomationMessage(ctx context.Context, arg InsertAutomationMessageParams) (uuid.UUID, error)
InsertAutomationRun(ctx context.Context, arg InsertAutomationRunParams) (int64, error)
InsertAutomationVersion(ctx context.Context, arg InsertAutomationVersionParams) error
InsertAutomationWebhookCall(ctx context.Context, arg InsertAutomationWebhookCallParams) error
InsertComposerCampaign(ctx context.Context, arg InsertComposerCampaignParams) error
InsertComposerVersion(ctx context.Context, arg InsertComposerVersionParams) error
InsertConsentEvent(ctx context.Context, arg InsertConsentEventParams) error
InsertDeliverabilityBlocklistResult(ctx context.Context, arg InsertDeliverabilityBlocklistResultParams) error
// Incidents with an external id (HostRepute alerts) are stored once; the
// returned row count says whether this one is new.
InsertDeliverabilityIncident(ctx context.Context, arg InsertDeliverabilityIncidentParams) (uuid.UUID, error)
InsertEmailTemplate(ctx context.Context, arg InsertEmailTemplateParams) error
InsertImportLog(ctx context.Context, arg InsertImportLogParams) error
// Uploading the same bytes twice returns the existing asset (and shows it again).
InsertMediaAsset(ctx context.Context, arg InsertMediaAssetParams) (InsertMediaAssetRow, error)
// Notification center, preferences and email delivery (internal/notify).
// Stores a notification unless the person turned both in-app and email off
// for its event type. email_status is 'pending' when they asked for email.
InsertNotification(ctx context.Context, arg InsertNotificationParams) (int64, error)
InsertSuppression(ctx context.Context, arg InsertSuppressionParams) (Suppression, error)
InstanceAdminAdminNames(ctx context.Context) ([]InstanceAdminAdminNamesRow, error)
InstanceAdminCancelScheduled(ctx context.Context, workspaceID uuid.UUID) (int64, error)
InstanceAdminCountAdmins(ctx context.Context) (int64, error)
InstanceAdminDeactivateMemberships(ctx context.Context, arg InstanceAdminDeactivateMembershipsParams) (int64, error)
InstanceAdminDeactivateUser(ctx context.Context, arg InstanceAdminDeactivateUserParams) (int64, error)
InstanceAdminIdentities(ctx context.Context) ([]InstanceAdminIdentitiesRow, error)
// The latest sign-in turned away because of its email domain (the
// allowlist's "for example kim@gmail.com this morning").
InstanceAdminLastDomainRejection(ctx context.Context) (InstanceAdminLastDomainRejectionRow, error)
// The active instance admins, locked until the transaction ends: two admins
// removing (or deactivating) each other can't both succeed, because the
// second waits and then re-reads who is still an admin.
InstanceAdminLockAdmins(ctx context.Context) ([]uuid.UUID, error)
InstanceAdminLockedCount(ctx context.Context) (InstanceAdminLockedCountRow, error)
// Every membership in a live workspace, oldest workspace first.
InstanceAdminMemberships(ctx context.Context) ([]InstanceAdminMembershipsRow, error)
// The hashes of a person's previous passwords, newest first.
InstanceAdminPasswordHistory(ctx context.Context, arg InstanceAdminPasswordHistoryParams) ([]string, error)
// Deletes a workspace for good once its restore hold is over (cascade).
InstanceAdminPurgeWorkspace(ctx context.Context, id uuid.UUID) (InstanceAdminPurgeWorkspaceRow, error)
// Only the memberships deactivated together with the account come back.
InstanceAdminReactivateMemberships(ctx context.Context, arg InstanceAdminReactivateMembershipsParams) (int64, error)
InstanceAdminReactivateUser(ctx context.Context, id uuid.UUID) (int64, error)
InstanceAdminRecordRelease(ctx context.Context, latestRelease json.RawMessage) error
InstanceAdminRecordReleaseError(ctx context.Context, error string) error
// Removes the authenticator and recovery codes; passkeys stay. The grace
// period restarts so the person can set two-factor up again.
InstanceAdminResetTwoFactor(ctx context.Context, arg InstanceAdminResetTwoFactorParams) error
InstanceAdminRestoreWorkspace(ctx context.Context, arg InstanceAdminRestoreWorkspaceParams) error
InstanceAdminRevokeKeysCreatedBy(ctx context.Context, userID *uuid.UUID) (int64, error)
InstanceAdminSavePolicy(ctx context.Context, arg InstanceAdminSavePolicyParams) (InstanceSetting, error)
// A new public URL drops the last URL check, which describes the old one.
InstanceAdminSaveSettings(ctx context.Context, arg InstanceAdminSaveSettingsParams) (InstanceSetting, error)
InstanceAdminSaveSocial(ctx context.Context, arg InstanceAdminSaveSocialParams) error
InstanceAdminSetLogo(ctx context.Context, logoSvg *string) error
InstanceAdminSetURLCheck(ctx context.Context, result json.RawMessage) error
InstanceAdminSetUpdateCheck(ctx context.Context, enabled bool) error
// The latest sign-in attempts at instance level (Users › Recent sign-in events).
InstanceAdminSignInEvents(ctx context.Context, lim int32) ([]InstanceAdminSignInEventsRow, error)
// The slug is freed for new workspaces; the suffix keeps it unique and
// within the 63-character limit.
InstanceAdminSoftDeleteWorkspace(ctx context.Context, id uuid.UUID) (*time.Time, error)
// Every person who is the only active Owner of a live workspace, with the
// workspace (the users list reads them in one query).
InstanceAdminSoleOwners(ctx context.Context) ([]InstanceAdminSoleOwnersRow, error)
// Live workspaces where the user is the only active Owner.
InstanceAdminSoleOwnerships(ctx context.Context, userID uuid.UUID) ([]InstanceAdminSoleOwnershipsRow, error)
// The System-stream provider of the oldest workspace that has one, for "the
// email goes out via Postmark".
InstanceAdminSystemProvider(ctx context.Context) (InstanceAdminSystemProviderRow, error)
InstanceAdminUnlockUser(ctx context.Context, id uuid.UUID) error
InstanceAdminUser(ctx context.Context, id uuid.UUID) (InstanceAdminUserRow, error)
// Instance admin: users, workspaces, policies, instance settings and updates.
InstanceAdminUsers(ctx context.Context) ([]InstanceAdminUsersRow, error)
// People in a two-factor grace period without a second factor yet.
InstanceAdminUsersInGrace(ctx context.Context) ([]InstanceAdminUsersInGraceRow, error)
InstanceAdminWorkspace(ctx context.Context, id uuid.UUID) (Workspace, error)
// Live workspaces and the ones deleted within the 7-day restore hold.
InstanceAdminWorkspaces(ctx context.Context) ([]InstanceAdminWorkspacesRow, error)
InstanceAuditCount(ctx context.Context) (int64, error)
// Same filters as InstanceAuditList, with before/after for exports.
InstanceAuditExport(ctx context.Context, arg InstanceAuditExportParams) ([]InstanceAuditExportRow, error)
InstanceAuditGet(ctx context.Context, id uuid.UUID) (InstanceAuditGetRow, error)
// Instance admin › Audit log: every workspace's entries and the
// instance-level ones (workspace_id IS NULL), with the same filters as the
// workspace view plus a workspace filter.
InstanceAuditList(ctx context.Context, arg InstanceAuditListParams) ([]InstanceAuditListRow, error)
// Other entries about the same target close in time, for "Related:".
InstanceAuditRelated(ctx context.Context, arg InstanceAuditRelatedParams) ([]InstanceAuditRelatedRow, error)
InstanceAuditSetRetention(ctx context.Context, days int32) error
InstanceAuditStreamAdvance(ctx context.Context, arg InstanceAuditStreamAdvanceParams) error
InstanceAuditStreamBatch(ctx context.Context, arg InstanceAuditStreamBatchParams) ([]AuditEvent, error)
InstanceAuditStreamConfigure(ctx context.Context, arg InstanceAuditStreamConfigureParams) error
InstanceAuditStreamSetStatus(ctx context.Context, status json.RawMessage) error
InstanceAuditStreamState(ctx context.Context) (InstanceAuditStreamStateRow, error)
// Workspaces that stream their own log, for "Streaming" on the instance view.
InstanceAuditWorkspaceStreams(ctx context.Context) ([]InstanceAuditWorkspaceStreamsRow, error)
InvalidatePasswordResets(ctx context.Context, userID uuid.UUID) error
KeysAgentActions(ctx context.Context, arg KeysAgentActionsParams) ([]KeysAgentActionsRow, error)
KeysByToken(ctx context.Context, tokenHash []byte) (KeysByTokenRow, error)
KeysCountActive(ctx context.Context, workspaceID uuid.UUID) (KeysCountActiveRow, error)
KeysCreate(ctx context.Context, arg KeysCreateParams) (KeysCreateRow, error)
// Only expired or revoked keys can be deleted (the audit log keeps their history).
KeysDelete(ctx context.Context, arg KeysDeleteParams) (int64, error)
KeysFirstRejection(ctx context.Context, apiKeyID uuid.UUID) (time.Time, error)
KeysGet(ctx context.Context, arg KeysGetParams) (KeysGetRow, error)
// API keys and MCP agents. Both live in api_keys (kind api_key | mcp_agent).
KeysList(ctx context.Context, arg KeysListParams) ([]KeysListRow, error)
KeysRecordRejection(ctx context.Context, arg KeysRecordRejectionParams) error
// Calls rejected in the last 7 days, with the busiest client address.
KeysRejections(ctx context.Context, apiKeyID uuid.UUID) (KeysRejectionsRow, error)
KeysRevoke(ctx context.Context, arg KeysRevokeParams) (int64, error)
KeysTouch(ctx context.Context, arg KeysTouchParams) error
// When an action was last recorded for a target (throttles repeated emails).
LastAuditAt(ctx context.Context, arg LastAuditAtParams) (time.Time, error)
LastDeliverabilityAssetCheckAt(ctx context.Context, workspaceID uuid.UUID) (time.Time, error)
LastPasswordResetAt(ctx context.Context, userID uuid.UUID) (time.Time, error)
LastRecoveryCodeUse(ctx context.Context, userID uuid.UUID) (time.Time, error)
LatestDeliverabilityCheckRun(ctx context.Context, workspaceID uuid.UUID) (DeliverabilityCheckRun, error)
LatestFinishedDeliverabilityCheckRun(ctx context.Context, arg LatestFinishedDeliverabilityCheckRunParams) (DeliverabilityCheckRun, error)
LatestFinishedImport(ctx context.Context, workspaceID uuid.UUID) (Import, error)
ListAPIKeys(ctx context.Context, arg ListAPIKeysParams) ([]ListAPIKeysRow, error)
ListAuditEvents(ctx context.Context, arg ListAuditEventsParams) ([]AuditEvent, error)
// Open alerts, held sending first: nothing goes out until it is fixed.
ListAutomationAlerts(ctx context.Context, workspaceID uuid.UUID) ([]ListAutomationAlertsRow, error)
ListAutomationEmails(ctx context.Context, workspaceID uuid.UUID) ([]ListAutomationEmailsRow, error)
ListAutomationHeldAlerts(ctx context.Context) ([]ListAutomationHeldAlertsRow, error)
ListAutomationPublishedGraphs(ctx context.Context, automationID uuid.UUID) ([]ListAutomationPublishedGraphsRow, error)
ListAutomationRunsForMigration(ctx context.Context, arg ListAutomationRunsForMigrationParams) ([]ListAutomationRunsForMigrationRow, error)
ListAutomationVersions(ctx context.Context, automationID uuid.UUID) ([]ListAutomationVersionsRow, error)
ListAutomationWebhookCalls(ctx context.Context, arg ListAutomationWebhookCallsParams) ([]ListAutomationWebhookCallsRow, error)
// Automations: flows, versions, runs, step stats, emails, trigger
// events, webhook calls, step secrets and alerts.
// Every flow of a workspace with its live and draft graphs: live first, then
// drafts, then paused, most recently changed first.
ListAutomations(ctx context.Context, workspaceID uuid.UUID) ([]ListAutomationsRow, error)
ListCampaignIncidentSummaries(ctx context.Context, campaignIds []uuid.UUID) ([]ListCampaignIncidentSummariesRow, error)
ListCampaignRouteShares(ctx context.Context, campaignIds []uuid.UUID) ([]ListCampaignRouteSharesRow, error)
// One page of the campaigns list. Status groups: drafts = draft, approval,
// approved; sending = sending, paused; sent = sent, cancelled, failed.
ListCampaigns(ctx context.Context, arg ListCampaignsParams) ([]ListCampaignsRow, error)
ListComposerSenders(ctx context.Context, workspaceID uuid.UUID) ([]ListComposerSendersRow, error)
ListComposerVersions(ctx context.Context, arg ListComposerVersionsParams) ([]ListComposerVersionsRow, error)
// Workspaces whose HostRepute connection the hourly sync refreshes.
ListConnectedHostRepute(ctx context.Context) ([]uuid.UUID, error)
ListCustomFields(ctx context.Context, workspaceID uuid.UUID) ([]CustomField, error)
ListDeletedAt(ctx context.Context, arg ListDeletedAtParams) (*time.Time, error)
ListDeliverabilityAssetChecks(ctx context.Context, workspaceID uuid.UUID) ([]DeliverabilityAssetCheck, error)
// Every blocklist result of a workspace, most important first: listings,
// then by the source's rank.
ListDeliverabilityBlocklistResults(ctx context.Context, workspaceID uuid.UUID) ([]BlocklistResult, error)
ListDeliverabilityDMARCReports(ctx context.Context, arg ListDeliverabilityDMARCReportsParams) ([]DmarcReport, error)
// The incident timeline. An incident without an explicit campaign is linked
// to the campaign that was sending through its provider when it happened.
ListDeliverabilityIncidents(ctx context.Context, arg ListDeliverabilityIncidentsParams) ([]ListDeliverabilityIncidentsRow, error)
ListDeliverabilityPostmasterDays(ctx context.Context, arg ListDeliverabilityPostmasterDaysParams) ([]PostmasterDaily, error)
ListDeliverabilitySNDSDays(ctx context.Context, arg ListDeliverabilitySNDSDaysParams) ([]SndsDaily, error)
ListEmailTemplates(ctx context.Context, arg ListEmailTemplatesParams) ([]ListEmailTemplatesRow, error)
ListGrowthSince(ctx context.Context, arg ListGrowthSinceParams) ([]ListGrowthSinceRow, error)
ListIdentities(ctx context.Context, userID uuid.UUID) ([]UserIdentity, error)
ListIdentitiesWithProvider(ctx context.Context, userID uuid.UUID) ([]ListIdentitiesWithProviderRow, error)
// Live automations that start when someone joins the list.
ListImpactAutomations(ctx context.Context, arg ListImpactAutomationsParams) ([]ListImpactAutomationsRow, error)
// Scheduled campaigns that send to the list.
ListImpactCampaigns(ctx context.Context, arg ListImpactCampaignsParams) ([]ListImpactCampaignsRow, error)
// Live signup forms that subscribe people to the list.
ListImpactForms(ctx context.Context, arg ListImpactFormsParams) ([]ListImpactFormsRow, error)
// The list's subscribers, and how many of them another list keeps
// subscribed.
ListImpactMembers(ctx context.Context, id uuid.UUID) (ListImpactMembersRow, error)
// The other lists the subscribers are on, most shared first.
ListImpactOtherLists(ctx context.Context, id uuid.UUID) ([]ListImpactOtherListsRow, error)
ListImportLog(ctx context.Context, importID uuid.UUID) ([]ImportLog, error)
ListImports(ctx context.Context, workspaceID uuid.UUID) ([]ListImportsRow, error)
ListListsWithCounts(ctx context.Context, workspaceID uuid.UUID) ([]ListListsWithCountsRow, error)
ListMediaAssets(ctx context.Context, arg ListMediaAssetsParams) ([]ListMediaAssetsRow, error)
ListMembers(ctx context.Context, workspaceID uuid.UUID) ([]ListMembersRow, error)
// Used to name who can help when a permission is missing.
ListMembersWithRoles(ctx context.Context, workspaceID uuid.UUID) ([]ListMembersWithRolesRow, error)
ListMembershipsOfUser(ctx context.Context, userID uuid.UUID) ([]ListMembershipsOfUserRow, error)
ListNameTaken(ctx context.Context, arg ListNameTakenParams) (bool, error)
ListNamesOfLists(ctx context.Context, arg ListNamesOfListsParams) ([]ListNamesOfListsRow, error)
ListNotificationPreferences(ctx context.Context, userID uuid.UUID) ([]NotificationPreference, error)
// Unread first, then newest first (the notification center and the bell).
ListNotifications(ctx context.Context, arg ListNotificationsParams) ([]Notification, error)
ListPasskeys(ctx context.Context, userID uuid.UUID) ([]UserPasskey, error)
ListPauseAutomation(ctx context.Context, arg ListPauseAutomationParams) (int64, error)
ListPauseForm(ctx context.Context, arg ListPauseFormParams) (int64, error)
ListPendingEmailNotifications(ctx context.Context, userID uuid.UUID) ([]ListPendingEmailNotificationsRow, error)
ListPendingInvitations(ctx context.Context, workspaceID uuid.UUID) ([]ListPendingInvitationsRow, error)
// Only a campaign nobody changed since deleting the list took it off the
// schedule.
ListRescheduleCampaign(ctx context.Context, arg ListRescheduleCampaignParams) (int64, error)
ListResumeAutomation(ctx context.Context, arg ListResumeAutomationParams) (int64, error)
// Only a form still paused the way deleting the list left it.
ListResumeForm(ctx context.Context, arg ListResumeFormParams) (int64, error)
// Published versions that are no longer live but not yet retired: they
// retire once their last contact leaves.
ListRetiringAutomationVersions(ctx context.Context) ([]ListRetiringAutomationVersionsRow, error)
ListRoles(ctx context.Context, workspaceID uuid.UUID) ([]ListRolesRow, error)
ListSavedViews(ctx context.Context, arg ListSavedViewsParams) ([]SavedView, error)
ListSegments(ctx context.Context, workspaceID uuid.UUID) ([]ListSegmentsRow, error)
// Tier mix and size of each list (subscribed members).
ListTierMix(ctx context.Context, workspaceID uuid.UUID) ([]ListTierMixRow, error)
ListUnscheduleCampaign(ctx context.Context, arg ListUnscheduleCampaignParams) (int64, error)
ListUserSessions(ctx context.Context, userID uuid.UUID) ([]Session, error)
ListUserWorkspaces(ctx context.Context, userID uuid.UUID) ([]ListUserWorkspacesRow, error)
ListUsers(ctx context.Context) ([]User, error)
ListUsersWithPendingEmail(ctx context.Context) ([]uuid.UUID, error)
ListWorkspaceLists(ctx context.Context, workspaceID uuid.UUID) ([]ListWorkspaceListsRow, error)
ListWorkspaces(ctx context.Context) ([]Workspace, error)
// Live flows a trigger event enrolls into.
LiveAutomationsForTrigger(ctx context.Context, arg LiveAutomationsForTriggerParams) ([]LiveAutomationsForTriggerRow, error)
LockAutomation(ctx context.Context, arg LockAutomationParams) (Automation, error)
LockDeletedList(ctx context.Context, arg LockDeletedListParams) (List, error)
LockList(ctx context.Context, arg LockListParams) (List, error)
MarkAllNotificationsRead(ctx context.Context, arg MarkAllNotificationsReadParams) (int64, error)
MarkAutomationEventProcessed(ctx context.Context, arg MarkAutomationEventProcessedParams) error
// A sync finished: account, team, scopes and monitored assets as HostRepute
// reports them now.
MarkHostReputeSynced(ctx context.Context, arg MarkHostReputeSyncedParams) error
// HostRepute rejected the token (revoked on its side, or expired and not
// refreshable). Only the first rejection is recorded.
MarkHostReputeTokenRejected(ctx context.Context, arg MarkHostReputeTokenRejectedParams) (int64, error)
MarkNotificationRead(ctx context.Context, arg MarkNotificationReadParams) (int64, error)
MarkReinviteRequested(ctx context.Context, id uuid.UUID) (int64, error)
McpAddSuppression(ctx context.Context, arg McpAddSuppressionParams) (uuid.UUID, error)
McpAutomations(ctx context.Context, workspaceID uuid.UUID) ([]McpAutomationsRow, error)
McpBlocklists(ctx context.Context, workspaceID uuid.UUID) ([]McpBlocklistsRow, error)
McpCampaignByMailbox(ctx context.Context, campaignID uuid.UUID) ([]McpCampaignByMailboxRow, error)
McpCampaignByProvider(ctx context.Context, campaignID uuid.UUID) ([]McpCampaignByProviderRow, error)
McpCampaignRoutes(ctx context.Context, campaignID uuid.UUID) ([]McpCampaignRoutesRow, error)
McpCampaignTotals(ctx context.Context, campaignID uuid.UUID) (McpCampaignTotalsRow, error)
McpCreateDraft(ctx context.Context, arg McpCreateDraftParams) (McpCreateDraftRow, error)
McpCreateSegment(ctx context.Context, arg McpCreateSegmentParams) (McpCreateSegmentRow, error)
McpDefaultRoutingRule(ctx context.Context, arg McpDefaultRoutingRuleParams) (McpDefaultRoutingRuleRow, error)
// Read models behind the MCP server's tools. Writes go through the
// owning domain's rules; these queries only read or make small, audited changes.
// A campaign by id or by exact (case-insensitive) name, newest first.
McpFindCampaign(ctx context.Context, arg McpFindCampaignParams) (McpFindCampaignRow, error)
McpGetRoutingRule(ctx context.Context, arg McpGetRoutingRuleParams) (McpGetRoutingRuleRow, error)
McpLatestReadiness(ctx context.Context, campaignID uuid.UUID) (McpLatestReadinessRow, error)
McpPostmaster(ctx context.Context, workspaceID uuid.UUID) ([]McpPostmasterRow, error)
McpProviders(ctx context.Context, workspaceID uuid.UUID) ([]McpProvidersRow, error)
McpRouting(ctx context.Context, workspaceID uuid.UUID) ([]McpRoutingRow, error)
McpSearchContacts(ctx context.Context, arg McpSearchContactsParams) ([]McpSearchContactsRow, error)
McpSendingDomains(ctx context.Context, workspaceID uuid.UUID) ([]McpSendingDomainsRow, error)
McpSetRoutingSplits(ctx context.Context, arg McpSetRoutingSplitsParams) error
McpUpdateDraft(ctx context.Context, arg McpUpdateDraftParams) (McpUpdateDraftRow, error)
// Records a failure: opens the alert or adds to the open one.
OpenAutomationAlert(ctx context.Context, arg OpenAutomationAlertParams) error
OverviewCampaignRoutes(ctx context.Context, campaignID uuid.UUID) ([]OverviewCampaignRoutesRow, error)
OverviewDraftCount(ctx context.Context, workspaceID uuid.UUID) (int64, error)
OverviewLatestReadiness(ctx context.Context, campaignID uuid.UUID) (OverviewLatestReadinessRow, error)
// Joins and departures across the workspace's lists in each 24-hour step
// since a time, counted the way List health counts a list's net growth
// (ListGrowthSince): joins of members still subscribed, and departures.
OverviewListChanges(ctx context.Context, arg OverviewListChangesParams) ([]OverviewListChangesRow, error)
// Overview (spec 7.1).
OverviewNextScheduled(ctx context.Context, arg OverviewNextScheduledParams) (OverviewNextScheduledRow, error)
PauseAutomation(ctx context.Context, arg PauseAutomationParams) error
ProvActiveFailovers(ctx context.Context, workspaceID uuid.UUID) ([]StreamFailover, error)
ProvAwaitingCampaigns(ctx context.Context, arg ProvAwaitingCampaignsParams) ([]ProvAwaitingCampaignsRow, error)
ProvAwaitingCount(ctx context.Context, arg ProvAwaitingCountParams) (ProvAwaitingCountRow, error)
ProvAwaitingProviderIDs(ctx context.Context, arg ProvAwaitingProviderIDsParams) ([]string, error)
// Messages a provider accepted with no event since (newest first).
ProvAwaitingStatus(ctx context.Context, arg ProvAwaitingStatusParams) ([]ProvAwaitingStatusRow, error)
// Broadcast recipients sent over the last weeks (campaign counters).
ProvBroadcastWeekly(ctx context.Context, arg ProvBroadcastWeeklyParams) (int64, error)
// API calls, failures and messages per provider since a time (rolling windows).
ProvCallWindowTotals(ctx context.Context, arg ProvCallWindowTotalsParams) ([]ProvCallWindowTotalsRow, error)
ProvCampaignRoutes(ctx context.Context, campaignID uuid.UUID) ([]ProvCampaignRoutesRow, error)
// Totals per provider over [since, until] (dates).
ProvDailyTotals(ctx context.Context, arg ProvDailyTotalsParams) ([]ProvDailyTotalsRow, error)
ProvDisconnect(ctx context.Context, id uuid.UUID) error
ProvEndFailovers(ctx context.Context, arg ProvEndFailoversParams) ([]StreamFailover, error)
ProvGet(ctx context.Context, arg ProvGetParams) (Provider, error)
ProvGetAny(ctx context.Context, id uuid.UUID) (Provider, error)
ProvGetByWebhookToken(ctx context.Context, arg ProvGetByWebhookTokenParams) (Provider, error)
// Campaign shares held on a provider (Broadcasts waiting for a decision).
ProvHeldRoutes(ctx context.Context, arg ProvHeldRoutesParams) ([]ProvHeldRoutesRow, error)
ProvIncidentsSince(ctx context.Context, arg ProvIncidentsSinceParams) ([]Incident, error)
ProvInsertIncident(ctx context.Context, arg ProvInsertIncidentParams) error
// The newest message a provider reported on before its webhooks went quiet
// (the last row of "Messages awaiting status").
ProvLastConfirmed(ctx context.Context, arg ProvLastConfirmedParams) ([]ProvLastConfirmedRow, error)
// Sending providers: connected providers, health inputs, actions.
// Query names start with Prov so they never collide with other domains.
ProvListActive(ctx context.Context, workspaceID uuid.UUID) ([]Provider, error)
// Every connected provider of every workspace (health and sync jobs).
ProvListAllActive(ctx context.Context) ([]Provider, error)
ProvMembersWithNames(ctx context.Context, ids []uuid.UUID) ([]ProvMembersWithNamesRow, error)
ProvPurgeCallWindows(ctx context.Context, before time.Time) (int64, error)
// Webhook events received per hour (webhook freshness chart).
ProvRawEventsByHour(ctx context.Context, arg ProvRawEventsByHourParams) ([]ProvRawEventsByHourRow, error)
ProvRecordCall(ctx context.Context, arg ProvRecordCallParams) error
ProvRecordDaily(ctx context.Context, arg ProvRecordDailyParams) error
// Delivery outcomes counted from normalized events (bounce and complaint rates).
ProvRecordOutcome(ctx context.Context, arg ProvRecordOutcomeParams) error
// Automation mail sent through a fallback since a time, per automation.
ProvReroutedByAutomation(ctx context.Context, arg ProvReroutedByAutomationParams) ([]ProvReroutedByAutomationRow, error)
ProvResolveIncidents(ctx context.Context, arg ProvResolveIncidentsParams) error
// Campaigns sending through a provider right now.
ProvSendingCampaignsOn(ctx context.Context, arg ProvSendingCampaignsOnParams) ([]ProvSendingCampaignsOnRow, error)
// System mail sent through a provider since a time, per kind.
ProvSentByKind(ctx context.Context, arg ProvSentByKindParams) ([]ProvSentByKindRow, error)
// Messages handed to each provider since a time, and since the provider's
// last webhook event (webhook freshness: mail went out but nothing came back).
ProvSentSince(ctx context.Context, arg ProvSentSinceParams) ([]ProvSentSinceRow, error)
// Mail of one stream a provider sent since a time (what failover moved to it).
ProvSentThroughSince(ctx context.Context, arg ProvSentThroughSinceParams) (int64, error)
ProvSetRouteStatus(ctx context.Context, arg ProvSetRouteStatusParams) (int64, error)
ProvStartFailover(ctx context.Context, arg ProvStartFailoverParams) error
// Messages per stream over a window (volume estimates on the routing screen).
ProvStreamVolume(ctx context.Context, arg ProvStreamVolumeParams) ([]ProvStreamVolumeRow, error)
ProvTouchLastEvent(ctx context.Context, arg ProvTouchLastEventParams) error
ProvUpdateCapabilities(ctx context.Context, arg ProvUpdateCapabilitiesParams) error
ProvUpdateConfig(ctx context.Context, arg ProvUpdateConfigParams) error
ProvUpdateCredentials(ctx context.Context, arg ProvUpdateCredentialsParams) error
ProvUpdateHealth(ctx context.Context, arg ProvUpdateHealthParams) error
ProvUpdateSettings(ctx context.Context, arg ProvUpdateSettingsParams) error
ProvUpdateTracking(ctx context.Context, arg ProvUpdateTrackingParams) error
ProviderNames(ctx context.Context, workspaceID uuid.UUID) ([]ProviderNamesRow, error)
// Keeps the newest @keep versions; the first version and anything that is
// not an autosave (restores, imports, ⌘S) are always kept.
PruneComposerVersions(ctx context.Context, arg PruneComposerVersionsParams) (int64, error)
PublicBumpUnsubscribed(ctx context.Context, arg PublicBumpUnsubscribedParams) error
PublicCampaign(ctx context.Context, arg PublicCampaignParams) (PublicCampaignRow, error)
PublicInsertFeedback(ctx context.Context, arg PublicInsertFeedbackParams) error
PublicInsertUnsubscribeEvent(ctx context.Context, arg PublicInsertUnsubscribeEventParams) error
PublicLatestIssueSlug(ctx context.Context, arg PublicLatestIssueSlugParams) (string, error)
PublicMessage(ctx context.Context, id uuid.UUID) (PublicMessageRow, error)
// Upcoming sends, for "Next issue: Tuesday 14 October" on the confirmation page.
PublicScheduledCampaigns(ctx context.Context, arg PublicScheduledCampaignsParams) ([]PublicScheduledCampaignsRow, error)
PublicSettingsByDomain(ctx context.Context, domain *string) (PublicSettingsByDomainRow, error)
PublicSettingsDomainTaken(ctx context.Context, arg PublicSettingsDomainTakenParams) (bool, error)
// Domains waiting for DNS (every run) and verified ones (once a day).
PublicSettingsDomainsToCheck(ctx context.Context, before *time.Time) ([]PublicSettingsDomainsToCheckRow, error)
PublicSettingsEnsure(ctx context.Context, workspaceID uuid.UUID) error
PublicSettingsGet(ctx context.Context, workspaceID uuid.UUID) (PublicPageSetting, error)
PublicSettingsLogo(ctx context.Context, workspaceID uuid.UUID) (PublicSettingsLogoRow, error)
PublicSettingsSetDomain(ctx context.Context, arg PublicSettingsSetDomainParams) error
PublicSettingsSetHostedForm(ctx context.Context, arg PublicSettingsSetHostedFormParams) error
PublicSettingsSetLogo(ctx context.Context, arg PublicSettingsSetLogoParams) error
PublicSettingsSetPages(ctx context.Context, arg PublicSettingsSetPagesParams) error
PublicSettingsSetTurnstile(ctx context.Context, arg PublicSettingsSetTurnstileParams) error
PublicSettingsTouch(ctx context.Context, arg PublicSettingsTouchParams) error
// The widget on a challenge page reported an error (wrong site key, domain
// not allowed): spam protection falls back until someone fixes the key.
PublicSettingsTurnstileError(ctx context.Context, arg PublicSettingsTurnstileErrorParams) error
// The unsubscribe page tab: departures and answers in the last 30 days.
PublicUnsubscribeStats(ctx context.Context, arg PublicUnsubscribeStatsParams) (PublicUnsubscribeStatsRow, error)
PublishAutomationVersion(ctx context.Context, arg PublishAutomationVersionParams) error
PurgeAuditEvents(ctx context.Context, arg PurgeAuditEventsParams) (int64, error)
PurgeAutomationEvents(ctx context.Context, before *time.Time) (int64, error)
PurgeAutomationWebhookCalls(ctx context.Context, before time.Time) (int64, error)
// Past the 30 days a deleted list can be restored: the list and its
// memberships go for good. Contacts and suppressions stay.
PurgeDeletedLists(ctx context.Context, before *time.Time) (int64, error)
// Retention of the instance-level entries (inside the purge transaction).
PurgeInstanceAuditEvents(ctx context.Context, before time.Time) (int64, error)
PutMXCache(ctx context.Context, arg PutMXCacheParams) error
ReadinessAcceptUnknown(ctx context.Context, arg ReadinessAcceptUnknownParams) error
// A campaign with its sender and sending domain.
ReadinessCampaign(ctx context.Context, arg ReadinessCampaignParams) (ReadinessCampaignRow, error)
// The workspace of a campaign (the sending engine asks by campaign id).
ReadinessCampaignWorkspace(ctx context.Context, id uuid.UUID) (uuid.UUID, error)
ReadinessEndProgress(ctx context.Context, arg ReadinessEndProgressParams) error
ReadinessGetProgress(ctx context.Context, campaignID uuid.UUID) (ReadinessGetProgressRow, error)
ReadinessGetRun(ctx context.Context, arg ReadinessGetRunParams) (ReadinessGetRunRow, error)
ReadinessInsertRoute(ctx context.Context, arg ReadinessInsertRouteParams) error
ReadinessInsertRun(ctx context.Context, arg ReadinessInsertRunParams) error
ReadinessLatestRun(ctx context.Context, campaignID uuid.UUID) (ReadinessLatestRunRow, error)
// Lists of the workspace, to tell "All subscribers" from a few lists.
ReadinessListCount(ctx context.Context, workspaceID uuid.UUID) (int64, error)
ReadinessListNames(ctx context.Context, workspaceID uuid.UUID) ([]ReadinessListNamesRow, error)
// Keeps the 20 latest runs of a campaign and any run an approval refers to.
ReadinessPruneRuns(ctx context.Context, campaignID uuid.UUID) error
// The audience before suppressions and exclusions by address: active
// contacts subscribed to the lists (or in the segments), minus excluded lists
// and segments, with what the counts need per contact. A deleted list
// (restorable for 30 days) adds nobody; as an exclusion it still excludes.
ReadinessRecipients(ctx context.Context, arg ReadinessRecipientsParams) ([]ReadinessRecipientsRow, error)
// The planned split of an unsent campaign, refreshed by each run.
ReadinessReplaceRoutes(ctx context.Context, campaignID uuid.UUID) error
// Scheduled campaigns starting within the window whose latest run is
// older than the window (checks run again 15 minutes before the send).
ReadinessScheduledDue(ctx context.Context, arg ReadinessScheduledDueParams) ([]ReadinessScheduledDueRow, error)
ReadinessSegmentNames(ctx context.Context, workspaceID uuid.UUID) ([]ReadinessSegmentNamesRow, error)
ReadinessSetAudience(ctx context.Context, arg ReadinessSetAudienceParams) error
ReadinessSetAudienceCount(ctx context.Context, arg ReadinessSetAudienceCountParams) error
ReadinessSetContentSettings(ctx context.Context, arg ReadinessSetContentSettingsParams) error
// A run confirmed for a new schedule at send time describes the campaign as scheduled.
ReadinessSetFingerprint(ctx context.Context, arg ReadinessSetFingerprintParams) error
ReadinessSetRouteOverride(ctx context.Context, arg ReadinessSetRouteOverrideParams) error
ReadinessSetSendSettings(ctx context.Context, arg ReadinessSetSendSettingsParams) error
// Starts a run unless one is already running (a run that stopped updating
// for two minutes is taken over).
ReadinessStartProgress(ctx context.Context, arg ReadinessStartProgressParams) (uuid.UUID, error)
// The latest test emails of a campaign, from the audit log.
ReadinessTestSends(ctx context.Context, arg ReadinessTestSendsParams) ([]ReadinessTestSendsRow, error)
ReadinessUpdateProgress(ctx context.Context, arg ReadinessUpdateProgressParams) error
// Campaigns a segment can refer to ("Opened campaign …").
RecentSentCampaigns(ctx context.Context, workspaceID uuid.UUID) ([]RecentSentCampaignsRow, error)
RecordHostReputeSyncError(ctx context.Context, arg RecordHostReputeSyncErrorParams) error
RecordSignInFailure(ctx context.Context, arg RecordSignInFailureParams) (RecordSignInFailureRow, error)
RecordSignInSuccess(ctx context.Context, id uuid.UUID) error
RecordSignInThrottleFailure(ctx context.Context, arg RecordSignInThrottleFailureParams) (SignInThrottle, error)
RecoveryCodeStats(ctx context.Context, userID uuid.UUID) (RecoveryCodeStatsRow, error)
RefreshInvitation(ctx context.Context, arg RefreshInvitationParams) (Invitation, error)
ReleaseAutomationHeldMessages(ctx context.Context, arg ReleaseAutomationHeldMessagesParams) (int64, error)
RemoteAdapterConnected(ctx context.Context, adapter string) (int64, error)
RemoteAdapterDelete(ctx context.Context, id uuid.UUID) (int64, error)
RemoteAdapterGet(ctx context.Context, id uuid.UUID) (RemoteAdapterGetRow, error)
RemoteAdapterGetByKey(ctx context.Context, adapterKey string) (RemoteAdapterGetByKeyRow, error)
RemoteAdapterInsert(ctx context.Context, arg RemoteAdapterInsertParams) error
// Community adapters of kind "remote" and their runtime (internal/providers/remote).
RemoteAdapterList(ctx context.Context) ([]RemoteAdapterListRow, error)
RemoteAdapterUpdateManifest(ctx context.Context, arg RemoteAdapterUpdateManifestParams) error
RemoteRuntimeCreate(ctx context.Context, arg RemoteRuntimeCreateParams) error
RemoteRuntimeRecordCheck(ctx context.Context, arg RemoteRuntimeRecordCheckParams) error
RemoteRuntimeSetEndpoint(ctx context.Context, arg RemoteRuntimeSetEndpointParams) error
RemoteRuntimeSetSecret(ctx context.Context, arg RemoteRuntimeSetSecretParams) error
RemoteRuntimeTouch(ctx context.Context, adapterID uuid.UUID) error
RenamePasskey(ctx context.Context, arg RenamePasskeyParams) error
// Bounces of a campaign by taxonomy class, sending provider and the
// provider's original event and code, with how many of the bounced
// addresses are on the shared suppression list now.
ReportBounceCodes(ctx context.Context, arg ReportBounceCodesParams) ([]ReportBounceCodesRow, error)
// The diagnostics behind one group of bounce classes (the Review dialog).
// Addresses are never returned: an address inside a provider's words reads
// "<address>", so the same answer for many recipients is one line.
ReportBounceDiagnostics(ctx context.Context, arg ReportBounceDiagnosticsParams) ([]ReportBounceDiagnosticsRow, error)
// Bounced addresses of some classes that aren't suppressed yet (for "Add
// to suppression"). Never sent to the browser.
ReportBounceRecipients(ctx context.Context, arg ReportBounceRecipientsParams) ([]string, error)
// Campaign reports (spec 7.7, 5.5) and read-only report links.
ReportCampaign(ctx context.Context, arg ReportCampaignParams) (ReportCampaignRow, error)
// Final or live counters per sending provider × mailbox provider × A/B
// variant, with the provider's name for the per-provider comparison.
ReportCounterCells(ctx context.Context, campaignID uuid.UUID) ([]ReportCounterCellsRow, error)
ReportHourly(ctx context.Context, arg ReportHourlyParams) ([]ReportHourlyRow, error)
// Provider events received but not normalized yet, per provider: when the
// normalization job falls behind, live counts lag by that much.
ReportIngestBacklog(ctx context.Context, arg ReportIngestBacklogParams) ([]ReportIngestBacklogRow, error)
ReportLatestReadiness(ctx context.Context, campaignID uuid.UUID) (ReportLatestReadinessRow, error)
// The most recent campaign with results, for "See the last report instead".
ReportLatestSent(ctx context.Context, arg ReportLatestSentParams) (ReportLatestSentRow, error)
ReportLinks(ctx context.Context, campaignID uuid.UUID) ([]ReportLinksRow, error)
// Each sending provider's share of the send: what was planned, the cost and
// the median time to delivery (stored at completion, else computed from the
// route's messages).
ReportRoutes(ctx context.Context, campaignID uuid.UUID) ([]ReportRoutesRow, error)
// A link by its token hash with its campaign and workspace (the public page).
// Active links of a campaign, newest first, with who made them.
ReportUnsubscribeReasons(ctx context.Context, arg ReportUnsubscribeReasonsParams) ([]ReportUnsubscribeReasonsRow, error)
// Warm-up plans of the campaign's providers (the day each was on when the
// campaign was sent).
ReportWarmupAt(ctx context.Context, providerIds []uuid.UUID) ([]ReportWarmupAtRow, error)
ResetUserTwoFactor(ctx context.Context, id uuid.UUID) error
ResolveAutomationAlert(ctx context.Context, arg ResolveAutomationAlertParams) (int64, error)
RestoreList(ctx context.Context, id uuid.UUID) (List, error)
ResumeAutomation(ctx context.Context, arg ResumeAutomationParams) error
RetireAutomationVersion(ctx context.Context, arg RetireAutomationVersionParams) error
RevokeAPIKey(ctx context.Context, arg RevokeAPIKeyParams) (int64, error)
RevokeAPIKeysCreatedBy(ctx context.Context, arg RevokeAPIKeysCreatedByParams) (int64, error)
RevokeAllUserSessions(ctx context.Context, userID uuid.UUID) (int64, error)
RevokeInvitation(ctx context.Context, arg RevokeInvitationParams) (int64, error)
RevokeOtherSessions(ctx context.Context, arg RevokeOtherSessionsParams) (int64, error)
RevokeSession(ctx context.Context, arg RevokeSessionParams) (int64, error)
RolesCreate(ctx context.Context, arg RolesCreateParams) (uuid.UUID, error)
RolesDelete(ctx context.Context, arg RolesDeleteParams) (int64, error)
RolesGet(ctx context.Context, arg RolesGetParams) (RolesGetRow, error)
RolesKeyTaken(ctx context.Context, arg RolesKeyTakenParams) (bool, error)
// Active API keys and MCP agents created by the given users in the workspace.
RolesKeysOfMembers(ctx context.Context, arg RolesKeysOfMembersParams) ([]RolesKeysOfMembersRow, error)
// Roles & permissions.
RolesList(ctx context.Context, workspaceID uuid.UUID) ([]RolesListRow, error)
// Members of every role in the workspace (member counts and impact previews).
RolesMembers(ctx context.Context, workspaceID uuid.UUID) ([]RolesMembersRow, error)
RolesNameTaken(ctx context.Context, arg RolesNameTakenParams) (bool, error)
RolesPendingInvites(ctx context.Context, workspaceID uuid.UUID) ([]RolesPendingInvitesRow, error)
RolesUpdate(ctx context.Context, arg RolesUpdateParams) (int64, error)
// Smallest and largest broadcast audience over a window ("31,988 to 48,213
// recipients per send").
RoutingBroadcastSizes(ctx context.Context, arg RoutingBroadcastSizesParams) (RoutingBroadcastSizesRow, error)
RoutingContact(ctx context.Context, arg RoutingContactParams) (RoutingContactRow, error)
RoutingDeleteRules(ctx context.Context, workspaceID uuid.UUID) error
RoutingInsertRule(ctx context.Context, arg RoutingInsertRuleParams) error
RoutingIsSuppressed(ctx context.Context, arg RoutingIsSuppressedParams) (bool, error)
RoutingListPolicies(ctx context.Context, workspaceID uuid.UUID) ([]StreamPolicy, error)
// Routing rules, failover policies and the route tester.
RoutingListRules(ctx context.Context, workspaceID uuid.UUID) ([]RoutingRule, error)
RoutingLists(ctx context.Context, workspaceID uuid.UUID) ([]RoutingListsRow, error)
// When the routing was last saved and by whom.
RoutingSaved(ctx context.Context, workspaceID uuid.UUID) (RoutingSavedRow, error)
RoutingSenderDomains(ctx context.Context, workspaceID uuid.UUID) ([]RoutingSenderDomainsRow, error)
RoutingUpsertPolicy(ctx context.Context, arg RoutingUpsertPolicyParams) error
// A run still in progress (runs older than ten minutes are considered dead).
RunningDeliverabilityCheckRun(ctx context.Context, arg RunningDeliverabilityCheckRunParams) (DeliverabilityCheckRun, error)
SSOCreateIdentity(ctx context.Context, arg SSOCreateIdentityParams) (UserIdentity, error)
SSOCreateMember(ctx context.Context, arg SSOCreateMemberParams) error
SSOCreateProvider(ctx context.Context, arg SSOCreateProviderParams) (SsoProvider, error)
SSOCreateUser(ctx context.Context, arg SSOCreateUserParams) (User, error)
SSODeleteProvider(ctx context.Context, id uuid.UUID) (int64, error)
// Another enabled provider already enforces one of these domains.
SSODomainEnforcedElsewhere(ctx context.Context, arg SSODomainEnforcedElsewhereParams) (string, error)
// Active accounts with an email at one of the domains, with what they sign in with today.
SSODomainUsers(ctx context.Context, arg SSODomainUsersParams) ([]SSODomainUsersRow, error)
// A person's active memberships that a group mapping granted, for the
// re-application of the mappings at every sign-in.
SSOGroupMemberships(ctx context.Context, userID uuid.UUID) ([]SSOGroupMembershipsRow, error)
// The people who sign in with this provider (for the enforcement preview).
SSOIdentityUsers(ctx context.Context, providerID *uuid.UUID) ([]SSOIdentityUsersRow, error)
SSOMarkBreakGlass(ctx context.Context, ids []uuid.UUID) (int64, error)
SSOMembership(ctx context.Context, arg SSOMembershipParams) (SSOMembershipRow, error)
// Active Owners of live workspaces, oldest membership first.
SSOOwners(ctx context.Context) ([]SSOOwnersRow, error)
SSOPendingInvitation(ctx context.Context, tokenHash []byte) (SSOPendingInvitationRow, error)
SSOProvider(ctx context.Context, id uuid.UUID) (SsoProvider, error)
SSOProviderBySlug(ctx context.Context, slug string) (SsoProvider, error)
// How many active people sign in with each SSO provider.
SSOProviderMemberCounts(ctx context.Context) ([]SSOProviderMemberCountsRow, error)
// SSO providers, social sign-in and the identities they link.
SSOProviders(ctx context.Context) ([]SsoProvider, error)
SSOSetClientSecret(ctx context.Context, arg SSOSetClientSecretParams) error
SSOSetDiscovery(ctx context.Context, arg SSOSetDiscoveryParams) error
SSOSetEnforcement(ctx context.Context, arg SSOSetEnforcementParams) error
SSOSetLastTest(ctx context.Context, arg SSOSetLastTestParams) error
SSOSetMemberRole(ctx context.Context, arg SSOSetMemberRoleParams) error
SSOSetPreset(ctx context.Context, arg SSOSetPresetParams) error
SSOSetStatus(ctx context.Context, arg SSOSetStatusParams) (SsoProvider, error)
// Recent sign-in rejections for a provider (setup page "sign-ins rejected").
SSOSignInFailures(ctx context.Context, providerID string) ([]SSOSignInFailuresRow, error)
// How many people linked each social sign-in provider.
SSOSocialIdentityCounts(ctx context.Context) ([]SSOSocialIdentityCountsRow, error)
SSOTouchIdentity(ctx context.Context, arg SSOTouchIdentityParams) error
SSOUpdateProvider(ctx context.Context, arg SSOUpdateProviderParams) (SsoProvider, error)
SSOUserIdentityOfKind(ctx context.Context, arg SSOUserIdentityOfKindParams) (UserIdentity, error)
// The lists a group mapping can be scoped to, per live workspace.
SSOWorkspaceLists(ctx context.Context) ([]SSOWorkspaceListsRow, error)
// Workspaces and their roles, for the JIT default and group mapping pickers.
SSOWorkspaceRoles(ctx context.Context) ([]SSOWorkspaceRolesRow, error)
SaveComposerContent(ctx context.Context, arg SaveComposerContentParams) error
// 30-day sums per list or followed view.
ScopeTotalsSince(ctx context.Context, arg ScopeTotalsSinceParams) ([]ScopeTotalsSinceRow, error)
SegmentMemberIDs(ctx context.Context, segmentID uuid.UUID) ([]uuid.UUID, error)
// Campaigns that are not sent yet and use the sender (deleting it clears them).
SenderCampaignCount(ctx context.Context, senderID *uuid.UUID) (int64, error)
SenderCreate(ctx context.Context, arg SenderCreateParams) (Sender, error)
SenderDelete(ctx context.Context, id uuid.UUID) error
SenderGet(ctx context.Context, arg SenderGetParams) (SenderGetRow, error)
SenderGetByEmail(ctx context.Context, arg SenderGetByEmailParams) (SenderGetByEmailRow, error)
SenderList(ctx context.Context, workspaceID uuid.UUID) ([]SenderListRow, error)
SenderListByDomain(ctx context.Context, domainID uuid.UUID) ([]Sender, error)
// The publisher's postal address (branding.footer_address), shown in email
// footers and on public pages.
SenderSetSendingDefaults(ctx context.Context, arg SenderSetSendingDefaultsParams) error
SenderSetStreamDefaults(ctx context.Context, arg SenderSetStreamDefaultsParams) error
SenderSetVerification(ctx context.Context, arg SenderSetVerificationParams) error
SenderUpdate(ctx context.Context, arg SenderUpdateParams) error
SenderWorkspaceDefaults(ctx context.Context, id uuid.UUID) (SenderWorkspaceDefaultsRow, error)
SendingABTotals(ctx context.Context, campaignID uuid.UUID) ([]SendingABTotalsRow, error)
// Sends in progress, with what keeps a paused one paused: a person's pause
// or an incident still waiting for a decision.
SendingActiveSends(ctx context.Context) ([]SendingActiveSendsRow, error)
SendingAddPlanned(ctx context.Context, arg SendingAddPlannedParams) error
SendingAddRouteCost(ctx context.Context, arg SendingAddRouteCostParams) error
// The approval a campaign's send went out under, with the approver.
SendingApproval(ctx context.Context, campaignID *uuid.UUID) (SendingApprovalRow, error)
// The addresses of the audience members who can receive the send (active,
// not suppressed, in no excluded list or segment), so the audience build can
// leave out a second contact that reaches the same mailbox (an alias). The
// order keeps the one the sunset policy didn't stop, then the oldest. A
// deleted list adds nobody; as an exclusion it still excludes.
SendingAudienceAddresses(ctx context.Context, arg SendingAudienceAddressesParams) ([]SendingAudienceAddressesRow, error)
// One page of the audience after the cursor, in contact id order, with
// everything that decides whether each member receives the campaign. It
// reads the audience, not the workspace's contacts, and looks up the page's
// memberships once, so a page costs the same whatever the workspace's size
// or the planner's statistics right after a large import. gone marks a
// member whose contact was erased or isn't the workspace's: the caller skips
// it and the cursor moves on. A deleted list adds nobody.
SendingAudiencePage(ctx context.Context, arg SendingAudiencePageParams) ([]SendingAudiencePageRow, error)
// A flow whose name matches, for "move them into the Re-permission automation".
SendingAutomationByName(ctx context.Context, arg SendingAutomationByNameParams) (SendingAutomationByNameRow, error)
SendingAutomationEmail(ctx context.Context, arg SendingAutomationEmailParams) (SendingAutomationEmailRow, error)
SendingAutomationEmailLatest(ctx context.Context, id uuid.UUID) (int32, error)
SendingAutomationLinkCount(ctx context.Context, arg SendingAutomationLinkCountParams) (int64, error)
// The workspace's default sender (automation emails come from it).
SendingAutomationSender(ctx context.Context, workspaceID uuid.UUID) (SendingAutomationSenderRow, error)
SendingBumpCounters(ctx context.Context, arg SendingBumpCountersParams) error
SendingCampaign(ctx context.Context, id uuid.UUID) (Campaign, error)
// A campaign with its sender and workspace, for building messages.
SendingCampaignContext(ctx context.Context, id uuid.UUID) (SendingCampaignContextRow, error)
// Sending engine and live monitor (spec 5.3, 7.6).
SendingCampaignForUpdate(ctx context.Context, id uuid.UUID) (Campaign, error)
SendingCampaignInWorkspace(ctx context.Context, arg SendingCampaignInWorkspaceParams) (Campaign, error)
SendingCampaignWorkspace(ctx context.Context, id uuid.UUID) (uuid.UUID, error)
// Cancels what is left of a campaign, or of one sending or mailbox provider.
SendingCancelRemaining(ctx context.Context, arg SendingCancelRemainingParams) (int64, error)
// Claims up to lim queued messages of one sending provider and mailbox
// provider in the send's shuffled order, skipping rows another worker
// holds. A claim older than the stale time belonged to a worker that died.
SendingClaim(ctx context.Context, arg SendingClaimParams) ([]SendingClaimRow, error)
SendingClearLinks(ctx context.Context, campaignID uuid.UUID) error
// A send that is prepared again (after a failed preparation) starts clean.
SendingClearMessages(ctx context.Context, campaignID *uuid.UUID) error
SendingClearRoutes(ctx context.Context, campaignID uuid.UUID) error
// Frees providers' windows over a past interval (the demo command's
// fast-forward replays seconds the real-time worker may have used).
SendingClearWindows(ctx context.Context, arg SendingClearWindowsParams) error
// Contacts of an import cohort in this send (never opened), to tell whether
// this is the first mail they get from the workspace.
SendingCohortContacts(ctx context.Context, arg SendingCohortContactsParams) ([]*uuid.UUID, error)
// Complaints of a campaign (optionally one mailbox provider) by how the
// complaining contacts joined, whether they ever engaged and their tier:
// the evidence behind "likely causes".
SendingComplaintCohorts(ctx context.Context, arg SendingComplaintCohortsParams) ([]SendingComplaintCohortsRow, error)
SendingContactForAutomation(ctx context.Context, id uuid.UUID) (SendingContactForAutomationRow, error)
SendingCounters(ctx context.Context, campaignID uuid.UUID) ([]SendingCountersRow, error)
SendingDeferralsSince(ctx context.Context, arg SendingDeferralsSinceParams) (int64, error)
SendingDeleteSimEvents(ctx context.Context, ids []int64) error
// Scheduled campaigns whose time has come (the watchdog starts any whose
// start job was lost). One held by a Blocked send-time recheck is left to
// Review & send, which rechecks it every 15 minutes.
SendingDueScheduled(ctx context.Context, now *time.Time) ([]uuid.UUID, error)
SendingDueSimEvents(ctx context.Context, arg SendingDueSimEventsParams) ([]SendingSimEvent, error)
// Takes a group out of the rest of the send; returns their contact ids so
// they can be added to another flow.
SendingExcludeGroup(ctx context.Context, arg SendingExcludeGroupParams) ([]*uuid.UUID, error)
// The newest delivery and engagement events of a campaign.
SendingFeed(ctx context.Context, arg SendingFeedParams) ([]SendingFeedRow, error)
SendingFinishPrepare(ctx context.Context, arg SendingFinishPrepareParams) error
SendingFinishRoutes(ctx context.Context, arg SendingFinishRoutesParams) error
SendingGetSend(ctx context.Context, campaignID uuid.UUID) (CampaignSend, error)
SendingGetSendForUpdate(ctx context.Context, campaignID uuid.UUID) (CampaignSend, error)
// Groups an auto-pause can take out of the rest of a send (grp):
// 'imported' (joined from an import, from @source when given, and never
// opened), 'lapsed' (at risk or sunset: no open in more than 90 days) and
// 'never' (never opened).
// A group's recipients in this send (optionally of one mailbox provider),
// and how many of them are still to send.
SendingGroupSize(ctx context.Context, arg SendingGroupSizeParams) (SendingGroupSizeRow, error)
// The most recent import from a source ("the Mailchimp import on 18 Sep").
SendingImportOf(ctx context.Context, arg SendingImportOfParams) (SendingImportOfRow, error)
SendingIncidents(ctx context.Context, campaignID uuid.UUID) ([]CampaignIncident, error)
SendingInsertAutomationLink(ctx context.Context, arg SendingInsertAutomationLinkParams) error
SendingInsertAutomationMessage(ctx context.Context, arg SendingInsertAutomationMessageParams) error
SendingInsertIncident(ctx context.Context, arg SendingInsertIncidentParams) error
SendingInsertLink(ctx context.Context, arg SendingInsertLinkParams) error
SendingInsertSend(ctx context.Context, arg SendingInsertSendParams) error
SendingListNames(ctx context.Context, workspaceID uuid.UUID) ([]SendingListNamesRow, error)
SendingMarkCompleted(ctx context.Context, arg SendingMarkCompletedParams) error
SendingMarkScheduled(ctx context.Context, arg SendingMarkScheduledParams) error
SendingMarkSent(ctx context.Context, arg SendingMarkSentParams) error
SendingMarkStarted(ctx context.Context, arg SendingMarkStartedParams) error
// Messages that will never be sent: rejected by the provider, failed after
// every retry, or dropped (suppressed during the send, contact erased).
SendingMarkUnsent(ctx context.Context, arg SendingMarkUnsentParams) error
// Moves what is left of one provider's share to another provider.
SendingMoveRemaining(ctx context.Context, arg SendingMoveRemainingParams) (int64, error)
SendingNextSimEvent(ctx context.Context) (time.Time, error)
SendingOpenIncidents(ctx context.Context, campaignID uuid.UUID) ([]CampaignIncident, error)
SendingOpenWindow(ctx context.Context, arg SendingOpenWindowParams) error
SendingOutboxClaim(ctx context.Context, arg SendingOutboxClaimParams) ([]SendingOutboxClaimRow, error)
SendingOutboxProviders(ctx context.Context) ([]uuid.UUID, error)
// How many of a cohort's contacts received anything from this workspace
// before this campaign.
SendingPriorSends(ctx context.Context, arg SendingPriorSendsParams) (int64, error)
SendingPurgeWindows(ctx context.Context, before int64) error
// What is left of a campaign per sending and mailbox provider: queued (and
// when the next retry is due) and held for the A/B winner.
SendingQueueState(ctx context.Context, arg SendingQueueStateParams) ([]SendingQueueStateRow, error)
SendingRelease(ctx context.Context, ids []uuid.UUID) error
// The A/B winner goes to everyone who waited for it.
SendingReleaseHeld(ctx context.Context, arg SendingReleaseHeldParams) (int64, error)
SendingRemainingOn(ctx context.Context, arg SendingRemainingOnParams) (int64, error)
// Reserves up to want sends in a provider's one-second window of cap (open
// it first). No row comes back when the window is full.
SendingReserve(ctx context.Context, arg SendingReserveParams) (int32, error)
SendingResolveIncident(ctx context.Context, arg SendingResolveIncidentParams) error
SendingRetryLater(ctx context.Context, arg SendingRetryLaterParams) error
SendingRetryNow(ctx context.Context, arg SendingRetryNowParams) error
SendingRoutes(ctx context.Context, campaignID uuid.UUID) ([]SendingRoutesRow, error)
SendingSavePrepare(ctx context.Context, arg SendingSavePrepareParams) error
SendingSegmentNames(ctx context.Context, workspaceID uuid.UUID) ([]SendingSegmentNamesRow, error)
SendingSentSince(ctx context.Context, arg SendingSentSinceParams) ([]SendingSentSinceRow, error)
SendingSetAB(ctx context.Context, arg SendingSetABParams) error
SendingSetAudienceCount(ctx context.Context, arg SendingSetAudienceCountParams) error
SendingSetCampaignStatus(ctx context.Context, arg SendingSetCampaignStatusParams) error
SendingSetChanges(ctx context.Context, arg SendingSetChangesParams) error
SendingSetContent(ctx context.Context, arg SendingSetContentParams) error
// The median time from handing a message to the provider to its delivery
// event, per route, stored when a send ends ("Median time to delivery" in
// the report's per-provider comparison).
SendingSetDeliveryP50(ctx context.Context, campaignID uuid.UUID) error
SendingSetHolds(ctx context.Context, arg SendingSetHoldsParams) error
SendingSetPaused(ctx context.Context, arg SendingSetPausedParams) error
SendingSetPhase(ctx context.Context, arg SendingSetPhaseParams) error
SendingSetRouteStatus(ctx context.Context, arg SendingSetRouteStatusParams) error
SendingSetThrottles(ctx context.Context, arg SendingSetThrottlesParams) error
SendingSimMessages(ctx context.Context, ids []uuid.UUID) ([]SendingSimMessagesRow, error)
SendingStageAdd(ctx context.Context, arg SendingStageAddParams) error
SendingStageClear(ctx context.Context, campaignID uuid.UUID) error
SendingStageCount(ctx context.Context, campaignID uuid.UUID) (int64, error)
// Takes a scheduled campaign back (to draft, or approved when its approval
// still stands).
SendingUnschedule(ctx context.Context, arg SendingUnscheduleParams) error
// Messages that will never be sent, per sending and mailbox provider.
SendingUnsentCounts(ctx context.Context, campaignID *uuid.UUID) ([]SendingUnsentCountsRow, error)
SendingUpdateIncidentDetail(ctx context.Context, arg SendingUpdateIncidentDetailParams) error
SendingUserNames(ctx context.Context, ids []uuid.UUID) ([]SendingUserNamesRow, error)
// The hour of the day (UTC) each contact opens at most often, from their
// own opens since a date (privacy-proxy fetches left out): the best time of
// a send scheduled per recipient.
SendingUsualOpenHours(ctx context.Context, arg SendingUsualOpenHoursParams) ([]SendingUsualOpenHoursRow, error)
// The workspace's sending defaults (Settings › Providers): auto-pause
// thresholds and the throttles per mailbox provider.
SendingWorkspaceDefaults(ctx context.Context, id uuid.UUID) (SendingWorkspaceDefaultsRow, error)
SendingWorkspaceProviders(ctx context.Context, workspaceID uuid.UUID) ([]Provider, error)
// Restarts the idle clock now (the middleware only touches sessions every
// 30 seconds). The absolute lifetime (expires_at) never moves.
SessionExtRestartIdle(ctx context.Context, arg SessionExtRestartIdleParams) (SessionExtRestartIdleRow, error)
// Session timing for the app's "Session ending in 2 minutes" banner and its
// Extend action (internal/sessionext).
SessionExtTiming(ctx context.Context, id uuid.UUID) (SessionExtTimingRow, error)
// A draft was saved: bump the revision and remember the trigger of a flow
// that was never published (live flows keep the live trigger).
SetAutomationDraft(ctx context.Context, arg SetAutomationDraftParams) error
SetAutomationLive(ctx context.Context, arg SetAutomationLiveParams) error
SetAvatarUpdatedAt(ctx context.Context, arg SetAvatarUpdatedAtParams) error
SetDeliverabilityBlocklistDelisting(ctx context.Context, arg SetDeliverabilityBlocklistDelistingParams) error
SetHostReputeMonitored(ctx context.Context, arg SetHostReputeMonitoredParams) error
SetImportConnection(ctx context.Context, arg SetImportConnectionParams) error
SetImportConsentMap(ctx context.Context, arg SetImportConsentMapParams) error
SetImportFieldMap(ctx context.Context, arg SetImportFieldMapParams) error
SetImportFile(ctx context.Context, arg SetImportFileParams) error
SetImportOptions(ctx context.Context, arg SetImportOptionsParams) error
SetImportPreview(ctx context.Context, arg SetImportPreviewParams) error
SetImportProgress(ctx context.Context, arg SetImportProgressParams) error
SetImportStaged(ctx context.Context, arg SetImportStagedParams) error
SetImportStatus(ctx context.Context, arg SetImportStatusParams) error
SetImportStep(ctx context.Context, arg SetImportStepParams) error
SetLastDigestAt(ctx context.Context, userID uuid.UUID) error
SetLatestRelease(ctx context.Context, latestRelease json.RawMessage) error
SetMemberStatus(ctx context.Context, arg SetMemberStatusParams) error
SetNotificationsEmailStatus(ctx context.Context, arg SetNotificationsEmailStatusParams) error
SetRecoveryCodesSaved(ctx context.Context, id uuid.UUID) error
SetSegmentCount(ctx context.Context, arg SetSegmentCountParams) error
SetSessionPasskey(ctx context.Context, arg SetSessionPasskeyParams) error
SetSunsetPolicy(ctx context.Context, arg SetSunsetPolicyParams) error
SetUserBreakGlass(ctx context.Context, arg SetUserBreakGlassParams) error
SetUserEmail(ctx context.Context, arg SetUserEmailParams) error
SetUserInstanceAdmin(ctx context.Context, arg SetUserInstanceAdminParams) error
SetUserPassword(ctx context.Context, arg SetUserPasswordParams) error
SetUserStatus(ctx context.Context, arg SetUserStatusParams) error
SetUserTOTP(ctx context.Context, arg SetUserTOTPParams) error
SetUserTOTPLabel(ctx context.Context, arg SetUserTOTPLabelParams) error
SetUserTwoFAGrace(ctx context.Context, arg SetUserTwoFAGraceParams) error
// Account & security, passkeys, password resets, email changes, invitations
// (accept side) and the first sign-in (internal/accounts).
SetUserWebAuthnID(ctx context.Context, arg SetUserWebAuthnIDParams) error
// The latest setup that connected a provider.
SetupByProvider(ctx context.Context, providerID *uuid.UUID) (ProviderSetup, error)
// Connect a sending provider (the setup wizard), Settings › Providers
// and the system mailer. Query names start with Setup, Connect or Sysmail.
SetupCreate(ctx context.Context, arg SetupCreateParams) (ProviderSetup, error)
SetupGet(ctx context.Context, arg SetupGetParams) (ProviderSetup, error)
SetupGetAny(ctx context.Context, id uuid.UUID) (ProviderSetup, error)
// A workspace's setups, newest first, optionally of one adapter or status.
SetupList(ctx context.Context, arg SetupListParams) ([]ProviderSetup, error)
SetupLock(ctx context.Context, id uuid.UUID) (ProviderSetup, error)
// Unfinished setups of a workspace, newest first (resume "Connect SES").
SetupOpen(ctx context.Context, arg SetupOpenParams) ([]ProviderSetup, error)
SetupSave(ctx context.Context, arg SetupSaveParams) (ProviderSetup, error)
// Unsubscribes block Broadcasts and Automations; System mail (password
// resets, receipts) still reaches the contact.
SignupAddUnsubscribe(ctx context.Context, arg SignupAddUnsubscribeParams) error
SignupConfirmPending(ctx context.Context, arg SignupConfirmPendingParams) ([]uuid.UUID, error)
// Audience · public self-service (internal/audience/signup.go): signups from
// forms and the hosted page, double opt-in confirmations, the preference
// center and unsubscribes. The contact acts on these; there is no team
// member behind them, so consent events carry the IP and browser instead.
SignupContactByEmail(ctx context.Context, arg SignupContactByEmailParams) (Contact, error)
SignupContactByID(ctx context.Context, arg SignupContactByIDParams) (Contact, error)
// Addresses and first names of some contacts (erased ones left out), for
// lists of signups.
SignupContactNames(ctx context.Context, arg SignupContactNamesParams) ([]SignupContactNamesRow, error)
// Fills fields the contact left empty; a public form never overwrites what
// is already known (anyone can type anyone's address into a form).
SignupFillContact(ctx context.Context, arg SignupFillContactParams) error
SignupInsertConsent(ctx context.Context, arg SignupInsertConsentParams) error
// A concurrent signup for the same address wins the race; the caller then
// reads the contact it created.
SignupInsertContact(ctx context.Context, arg SignupInsertContactParams) (Contact, error)
// The latest consent event of one kind (the confirmation shown under the
// confirmation page, the opt-in that recorded the consent text).
SignupLastConsent(ctx context.Context, arg SignupLastConsentParams) (SignupLastConsentRow, error)
// The lists the latest unsubscribe left, for "Resubscribe".
SignupLastUnsubscribedLists(ctx context.Context, contactID uuid.UUID) ([]uuid.UUID, error)
SignupLiftUnsubscribe(ctx context.Context, arg SignupLiftUnsubscribeParams) (int64, error)
SignupMemberships(ctx context.Context, contactID uuid.UUID) ([]SignupMembershipsRow, error)
SignupPreferences(ctx context.Context, contactID uuid.UUID) (SignupPreferencesRow, error)
// The subscriber who confirmed most recently: the app previews the public
// pages as they see them.
SignupPreviewConfirmed(ctx context.Context, workspaceID uuid.UUID) (uuid.UUID, error)
SignupPreviewLatest(ctx context.Context, workspaceID uuid.UUID) (uuid.UUID, error)
// Lists a public page can show, with their size.
SignupPublicLists(ctx context.Context, workspaceID uuid.UUID) ([]SignupPublicListsRow, error)
SignupSetContactState(ctx context.Context, arg SignupSetContactStateParams) error
SignupSetFirstName(ctx context.Context, arg SignupSetFirstNameParams) error
SignupSetMembership(ctx context.Context, arg SignupSetMembershipParams) error
SignupSuppression(ctx context.Context, arg SignupSuppressionParams) (Suppression, error)
SignupTouchContact(ctx context.Context, arg SignupTouchContactParams) error
SignupUnsubscribeAll(ctx context.Context, arg SignupUnsubscribeAllParams) ([]uuid.UUID, error)
SignupUpsertPreferences(ctx context.Context, arg SignupUpsertPreferencesParams) error
SlugTaken(ctx context.Context, slug string) (bool, error)
SoftDeleteAutomation(ctx context.Context, arg SoftDeleteAutomationParams) error
SoftDeleteEmailTemplate(ctx context.Context, arg SoftDeleteEmailTemplateParams) (int64, error)
// The list goes from every screen and send; paused notes what deleting it
// paused, for a restore.
SoftDeleteList(ctx context.Context, arg SoftDeleteListParams) (int64, error)
SoftDeleteWorkspace(ctx context.Context, id uuid.UUID) error
StartImport(ctx context.Context, arg StartImportParams) error
// Addresses each provider's bounce and complaint events added to the shared
// list (the "pulled in" count of providers without a suppression API).
SuppAddedByProvider(ctx context.Context, workspaceID uuid.UUID) ([]SuppAddedByProviderRow, error)
SuppCount(ctx context.Context, workspaceID uuid.UUID) (int64, error)
// Suppressions brought in by imports ("Brevo (import)"), per source.
SuppImportSources(ctx context.Context, workspaceID uuid.UUID) ([]SuppImportSourcesRow, error)
SuppLatestCreated(ctx context.Context, workspaceID uuid.UUID) (time.Time, error)
SuppPendingCount(ctx context.Context, arg SuppPendingCountParams) (int64, error)
SuppReasonCounts(ctx context.Context, workspaceID uuid.UUID) ([]SuppReasonCountsRow, error)
SuppSyncGet(ctx context.Context, providerID uuid.UUID) (ProviderSuppressionSync, error)
// Sync of the shared suppression list with each provider. The list
// itself (screens, manual adds, imports) belongs to the audience domain.
SuppSyncList(ctx context.Context, providerIds []uuid.UUID) ([]ProviderSuppressionSync, error)
SuppSyncUpsert(ctx context.Context, arg SuppSyncUpsertParams) error
// Addresses of the shared list created after a time that didn't come from
// the provider being pushed to (no point echoing its own list back).
SuppToPush(ctx context.Context, arg SuppToPushParams) ([]SuppToPushRow, error)
SuppressionCounts(ctx context.Context, workspaceID uuid.UUID) (SuppressionCountsRow, error)
// One row per connected provider with its suppression sync state (kept by
// the providers domain) and, for providers without a suppression API, the
// addresses their bounce and complaint events added to the shared list.
SuppressionSyncStates(ctx context.Context, workspaceID uuid.UUID) ([]SuppressionSyncStatesRow, error)
// A message the system mailer or a setup's test sends (stream system, or
// the stream a test goes on).
SysmailInsertMessage(ctx context.Context, arg SysmailInsertMessageParams) error
SysmailMarkSent(ctx context.Context, arg SysmailMarkSentParams) error
// Every workspace, oldest first (instance-level mail falls back to the
// first workspace with a System route).
SysmailWorkspaces(ctx context.Context) ([]uuid.UUID, error)
// The workspaces of the person a message without a workspace goes to,
// oldest membership first.
SysmailWorkspacesForEmail(ctx context.Context, email string) ([]uuid.UUID, error)
// The provider of the default System-stream route of a workspace (read-only
// view of the routing domain, for "emails go out … via Postmark").
SystemStreamProviderName(ctx context.Context, workspaceID uuid.UUID) (string, error)
TeamActiveSessionCount(ctx context.Context, userID uuid.UUID) (int64, error)
TeamApprovalsGiven(ctx context.Context, arg TeamApprovalsGivenParams) ([]TeamApprovalsGivenRow, error)
TeamApprovalsRequested(ctx context.Context, arg TeamApprovalsRequestedParams) ([]TeamApprovalsRequestedRow, error)
TeamCountActiveOwners(ctx context.Context, workspaceID uuid.UUID) (int64, error)
TeamCreateInvitation(ctx context.Context, arg TeamCreateInvitationParams) (TeamCreateInvitationRow, error)
TeamDeleteMember(ctx context.Context, arg TeamDeleteMemberParams) (int64, error)
// "Require 2FA now": the grace period ends immediately for users without a second factor.
TeamEndTwoFAGrace(ctx context.Context, userIds []uuid.UUID) (int64, error)
TeamEnforcedSSO(ctx context.Context) ([]TeamEnforcedSSORow, error)
TeamGetInvitation(ctx context.Context, arg TeamGetInvitationParams) (TeamGetInvitationRow, error)
TeamGetMember(ctx context.Context, arg TeamGetMemberParams) (TeamGetMemberRow, error)
// Social and SSO identities of the given users, with the SSO provider name.
TeamIdentities(ctx context.Context, userIds []uuid.UUID) ([]TeamIdentitiesRow, error)
// SSO providers that create accounts on first sign-in for this workspace.
TeamJITProviders(ctx context.Context, workspaceID *uuid.UUID) ([]TeamJITProvidersRow, error)
TeamListInvitations(ctx context.Context, workspaceID uuid.UUID) ([]TeamListInvitationsRow, error)
// Team: members, invitations, sign-in methods and member detail.
TeamListMembers(ctx context.Context, workspaceID uuid.UUID) ([]TeamListMembersRow, error)
TeamMarkInvitationSent(ctx context.Context, arg TeamMarkInvitationSentParams) error
TeamMemberAPIKeys(ctx context.Context, arg TeamMemberAPIKeysParams) ([]TeamMemberAPIKeysRow, error)
TeamMemberActivity(ctx context.Context, arg TeamMemberActivityParams) ([]TeamMemberActivityRow, error)
TeamMemberEmails(ctx context.Context, arg TeamMemberEmailsParams) ([]string, error)
TeamPendingInviteEmails(ctx context.Context, arg TeamPendingInviteEmailsParams) ([]string, error)
TeamRevokeInvitation(ctx context.Context, arg TeamRevokeInvitationParams) (int64, error)
TeamRevokeKeysCreatedBy(ctx context.Context, arg TeamRevokeKeysCreatedByParams) ([]TeamRevokeKeysCreatedByRow, error)
TeamRevokeUserSessions(ctx context.Context, userID uuid.UUID) (int64, error)
TeamSetMemberRole(ctx context.Context, arg TeamSetMemberRoleParams) error
TeamSetMemberStatus(ctx context.Context, arg TeamSetMemberStatusParams) error
// The provider of the System stream's default rule (first split), for
// "Sent on the System stream via Postmark".
TeamSystemProviderName(ctx context.Context, workspaceID uuid.UUID) (string, error)
TeamWorkspaceLists(ctx context.Context, workspaceID uuid.UUID) ([]TeamWorkspaceListsRow, error)
TeamWorkspaceSenderDomains(ctx context.Context, workspaceID uuid.UUID) ([]string, error)
// Workspaces with their timezone and the last tier run, for the nightly job.
TierRunWorkspaces(ctx context.Context) ([]TierRunWorkspacesRow, error)
TouchAPIKey(ctx context.Context, arg TouchAPIKeyParams) error
TouchAutomationRunNextAt(ctx context.Context, arg TouchAutomationRunNextAtParams) error
TouchIdentity(ctx context.Context, id uuid.UUID) error
TouchMemberActive(ctx context.Context, arg TouchMemberActiveParams) error
TouchPasskey(ctx context.Context, arg TouchPasskeyParams) error
TouchSession(ctx context.Context, id uuid.UUID) error
TouchUserActive(ctx context.Context, id uuid.UUID) error
TrackingAutomationLinks(ctx context.Context, arg TrackingAutomationLinksParams) ([]TrackingAutomationLinksRow, error)
TrackingBumpAutomationLink(ctx context.Context, arg TrackingBumpAutomationLinkParams) error
TrackingBumpCounters(ctx context.Context, arg TrackingBumpCountersParams) error
TrackingBumpHourly(ctx context.Context, arg TrackingBumpHourlyParams) error
TrackingBumpLink(ctx context.Context, arg TrackingBumpLinkParams) error
TrackingCampaignLinks(ctx context.Context, campaignID uuid.UUID) ([]TrackingCampaignLinksRow, error)
TrackingContactVars(ctx context.Context, id uuid.UUID) (TrackingContactVarsRow, error)
TrackingFirstLinkClick(ctx context.Context, arg TrackingFirstLinkClickParams) (int32, error)
TrackingInsertEvent(ctx context.Context, arg TrackingInsertEventParams) error
// A click counts as a human open too.
TrackingMarkClick(ctx context.Context, arg TrackingMarkClickParams) (TrackingMarkClickRow, error)
// Records an open on a message and says what changed, so counters move
// once per message: the first open, or the first human open after a
// machine prefetch (prev_opened_at is when that prefetch was).
TrackingMarkOpen(ctx context.Context, arg TrackingMarkOpenParams) (TrackingMarkOpenRow, error)
// Open and click tracking (spec 5.5, 7.6).
TrackingMessage(ctx context.Context, id uuid.UUID) (TrackingMessageRow, error)
TrackingSourceLabel(ctx context.Context, id uuid.UUID) (string, error)
TrackingTouchContactClick(ctx context.Context, arg TrackingTouchContactClickParams) error
// last_open_at counts every open, last_human_open_at only people's (tiers
// and the sunset policy use it); last_open_machine says what the latest was.
TrackingTouchContactOpen(ctx context.Context, arg TrackingTouchContactOpenParams) error
UpdateAuthPolicy(ctx context.Context, arg UpdateAuthPolicyParams) (InstanceSetting, error)
UpdateAutomationDraftGraph(ctx context.Context, arg UpdateAutomationDraftGraphParams) (int64, error)
UpdateAutomationMeta(ctx context.Context, arg UpdateAutomationMetaParams) (Automation, error)
UpdateAutomationRun(ctx context.Context, arg UpdateAutomationRunParams) error
UpdateContactFields(ctx context.Context, arg UpdateContactFieldsParams) (Contact, error)
UpdateCustomField(ctx context.Context, arg UpdateCustomFieldParams) (CustomField, error)
UpdateDeliverabilityCheckRunProgress(ctx context.Context, arg UpdateDeliverabilityCheckRunProgressParams) error
UpdateEmailTemplate(ctx context.Context, arg UpdateEmailTemplateParams) error
UpdateHostReputeTokens(ctx context.Context, arg UpdateHostReputeTokensParams) error
UpdateInstanceBasics(ctx context.Context, arg UpdateInstanceBasicsParams) (InstanceSetting, error)
UpdateList(ctx context.Context, arg UpdateListParams) (List, error)
UpdateMemberRole(ctx context.Context, arg UpdateMemberRoleParams) (WorkspaceMember, error)
UpdatePasskeyAfterUse(ctx context.Context, arg UpdatePasskeyAfterUseParams) error
UpdateRole(ctx context.Context, arg UpdateRoleParams) (Role, error)
UpdateSegment(ctx context.Context, arg UpdateSegmentParams) (Segment, error)
UpdateSocialProviders(ctx context.Context, arg UpdateSocialProvidersParams) (InstanceSetting, error)
UpdateUserProfile(ctx context.Context, arg UpdateUserProfileParams) (User, error)
UpdateWorkspaceApprovalPolicy(ctx context.Context, arg UpdateWorkspaceApprovalPolicyParams) (Workspace, error)
UpdateWorkspaceGeneral(ctx context.Context, arg UpdateWorkspaceGeneralParams) (Workspace, error)
UpdateWorkspaceJSON(ctx context.Context, arg UpdateWorkspaceJSONParams) (Workspace, error)
UpsertAudienceDaily(ctx context.Context, arg UpsertAudienceDailyParams) error
UpsertAudienceState(ctx context.Context, arg UpsertAudienceStateParams) error
UpsertAutomationStepSecret(ctx context.Context, arg UpsertAutomationStepSecretParams) error
UpsertAvatar(ctx context.Context, arg UpsertAvatarParams) error
UpsertDeliverabilityAssetCheck(ctx context.Context, arg UpsertDeliverabilityAssetCheckParams) error
UpsertDeliverabilityDMARCReport(ctx context.Context, arg UpsertDeliverabilityDMARCReportParams) error
UpsertDeliverabilityPostmasterDay(ctx context.Context, arg UpsertDeliverabilityPostmasterDayParams) error
UpsertDeliverabilitySNDSDay(ctx context.Context, arg UpsertDeliverabilitySNDSDayParams) error
// Connect or reconnect: new tokens and account details, status back to
// connected. Monitored assets and alert history survive a reconnect.
UpsertHostReputeConnection(ctx context.Context, arg UpsertHostReputeConnectionParams) (HostreputeConnection, error)
UpsertMembership(ctx context.Context, arg UpsertMembershipParams) error
UpsertNotificationPreference(ctx context.Context, arg UpsertNotificationPreferenceParams) error
UpsertNotificationSettings(ctx context.Context, arg UpsertNotificationSettingsParams) error
UseRecoveryCode(ctx context.Context, arg UseRecoveryCodeParams) (uuid.UUID, error)
// Runs waiting at a branch for an open or click: wake them as soon as the
// email they wait on has one, instead of at the end of the window.
WakeAutomationBranchRuns(ctx context.Context, now *time.Time) (int64, error)
WarmupActiveForProvider(ctx context.Context, providerID uuid.UUID) (WarmupPlan, error)
// Every plan that is still running (daily warm-up job).
WarmupActivePlans(ctx context.Context) ([]WarmupActivePlansRow, error)
WarmupAddEvent(ctx context.Context, arg WarmupAddEventParams) error
WarmupDailyStats(ctx context.Context, arg WarmupDailyStatsParams) ([]WarmupDailyStatsRow, error)
WarmupGetPlan(ctx context.Context, arg WarmupGetPlanParams) (WarmupGetPlanRow, error)
WarmupInsertPlan(ctx context.Context, arg WarmupInsertPlanParams) error
// Warm-up plans for new providers and dedicated IPs.
// Plans of a workspace's providers, current first.
WarmupListPlans(ctx context.Context, workspaceID uuid.UUID) ([]WarmupListPlansRow, error)
WarmupLog(ctx context.Context, arg WarmupLogParams) ([]WarmupEvent, error)
// Scheduled campaigns with a share on the provider (the plan table shows
// "Weekly Digest #142 uses 3,160").
WarmupPlannedCampaignUse(ctx context.Context, arg WarmupPlannedCampaignUseParams) ([]WarmupPlannedCampaignUseRow, error)
WarmupSetProgress(ctx context.Context, arg WarmupSetProgressParams) error
WarmupSetStatus(ctx context.Context, arg WarmupSetStatusParams) error
WarmupUpdateSettings(ctx context.Context, arg WarmupUpdateSettingsParams) error
WorkspaceProviders(ctx context.Context, workspaceID uuid.UUID) ([]WorkspaceProvidersRow, error)
WorkspaceTierHistory(ctx context.Context, arg WorkspaceTierHistoryParams) ([]WorkspaceTierHistoryRow, error)
WsAuditSettings(ctx context.Context, id uuid.UUID) (WsAuditSettingsRow, error)
WsCancelScheduled(ctx context.Context, workspaceID uuid.UUID) (int64, error)
WsCounts(ctx context.Context, workspaceID uuid.UUID) (WsCountsRow, error)
WsMCPSettings(ctx context.Context, id uuid.UUID) (json.RawMessage, error)
WsMemberCounts(ctx context.Context, workspaceID uuid.UUID) (WsMemberCountsRow, error)
WsProviderNames(ctx context.Context, workspaceID uuid.UUID) ([]WsProviderNamesRow, error)
// Workspaces past the 7-day restore hold are deleted for good (cascade).
WsPurgeDeleted(ctx context.Context) ([]WsPurgeDeletedRow, error)
WsSenderExists(ctx context.Context, arg WsSenderExistsParams) (bool, error)
// Workspace settings: general, danger zone and summaries.
WsSenders(ctx context.Context, workspaceID uuid.UUID) ([]WsSendersRow, error)
WsSetMCPSettings(ctx context.Context, arg WsSetMCPSettingsParams) error
WsSoftDelete(ctx context.Context, id uuid.UUID) error
WsUpdateGeneral(ctx context.Context, arg WsUpdateGeneralParams) (WsUpdateGeneralRow, error)
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AcceptInvitation ¶
func (q *Queries) AcceptInvitation(ctx context.Context, arg AcceptInvitationParams) error
func (*Queries) AcceptPendingInvitation ¶
func (*Queries) AccessRequestsLatest ¶
func (q *Queries) AccessRequestsLatest(ctx context.Context, arg AccessRequestsLatestParams) (time.Time, error)
Access requests from the "403 · no permission" screen (internal/accessrequests). The member's latest request for this role in the last day (one a day).
func (*Queries) ActiveImport ¶
The draft or running import the wizard resumes.
func (*Queries) AddSegmentMembers ¶
func (q *Queries) AddSegmentMembers(ctx context.Context, arg AddSegmentMembersParams) error
func (*Queries) ApprovalAudienceLists ¶
func (*Queries) ApprovalBypassCount ¶
func (*Queries) ApprovalCampaignVersion ¶
func (q *Queries) ApprovalCampaignVersion(ctx context.Context, arg ApprovalCampaignVersionParams) (ApprovalCampaignVersionRow, error)
func (*Queries) ApprovalChain ¶
A request and the requests it follows, newest first.
func (*Queries) ApprovalComments ¶
func (q *Queries) ApprovalComments(ctx context.Context, requestIds []uuid.UUID) ([]ApprovalCommentsRow, error)
The discussion of a request and of the requests it follows.
func (*Queries) ApprovalDecisionWaits ¶
func (q *Queries) ApprovalDecisionWaits(ctx context.Context, arg ApprovalDecisionWaitsParams) ([]int64, error)
How long requests waited for their first decision (the median wait).
func (*Queries) ApprovalDecisions ¶
func (*Queries) ApprovalGet ¶
func (q *Queries) ApprovalGet(ctx context.Context, arg ApprovalGetParams) (ApprovalGetRow, error)
func (*Queries) ApprovalHeldCampaigns ¶
func (q *Queries) ApprovalHeldCampaigns(ctx context.Context) ([]ApprovalHeldCampaignsRow, error)
Scheduled campaigns held by a Blocked recheck (retried until a recheck passes).
func (*Queries) ApprovalInsertComment ¶
func (q *Queries) ApprovalInsertComment(ctx context.Context, arg ApprovalInsertCommentParams) error
func (*Queries) ApprovalInsertDecision ¶
func (q *Queries) ApprovalInsertDecision(ctx context.Context, arg ApprovalInsertDecisionParams) error
func (*Queries) ApprovalInsertHold ¶
func (q *Queries) ApprovalInsertHold(ctx context.Context, arg ApprovalInsertHoldParams) error
func (*Queries) ApprovalInsertRequest ¶
func (q *Queries) ApprovalInsertRequest(ctx context.Context, arg ApprovalInsertRequestParams) error
func (*Queries) ApprovalInvalidate ¶
func (q *Queries) ApprovalInvalidate(ctx context.Context, arg ApprovalInvalidateParams) error
func (*Queries) ApprovalLastAudit ¶
func (q *Queries) ApprovalLastAudit(ctx context.Context, arg ApprovalLastAuditParams) (ApprovalLastAuditRow, error)
The latest audit entry of an action on a target (who scheduled, who approved, from where).
func (*Queries) ApprovalLatestForCampaign ¶
func (q *Queries) ApprovalLatestForCampaign(ctx context.Context, campaignID *uuid.UUID) (ApprovalLatestForCampaignRow, error)
The most recent request of a campaign (bypass records aside).
func (*Queries) ApprovalList ¶
func (q *Queries) ApprovalList(ctx context.Context, arg ApprovalListParams) ([]ApprovalListRow, error)
The approval inbox. Approvers see every request; others only their own.
func (*Queries) ApprovalLock ¶
func (q *Queries) ApprovalLock(ctx context.Context, arg ApprovalLockParams) (ApprovalRequest, error)
func (*Queries) ApprovalMarkScheduled ¶
func (q *Queries) ApprovalMarkScheduled(ctx context.Context, arg ApprovalMarkScheduledParams) error
func (*Queries) ApprovalMarkSending ¶
func (q *Queries) ApprovalMarkSending(ctx context.Context, arg ApprovalMarkSendingParams) error
func (*Queries) ApprovalMember ¶
func (q *Queries) ApprovalMember(ctx context.Context, arg ApprovalMemberParams) (ApprovalMemberRow, error)
func (*Queries) ApprovalMembers ¶
func (q *Queries) ApprovalMembers(ctx context.Context, workspaceID uuid.UUID) ([]ApprovalMembersRow, error)
Active members with their role and user details (approvers, presence).
func (*Queries) ApprovalOpenForCampaign ¶
func (q *Queries) ApprovalOpenForCampaign(ctx context.Context, campaignID *uuid.UUID) (ApprovalRequest, error)
The pending or approved request of a campaign.
func (*Queries) ApprovalOpenHold ¶
func (*Queries) ApprovalOpenRequests ¶
func (q *Queries) ApprovalOpenRequests(ctx context.Context) ([]ApprovalOpenRequestsRow, error)
Open campaign requests of every workspace (the revalidation job).
func (*Queries) ApprovalPauseAlertsSlack ¶
func (q *Queries) ApprovalPauseAlertsSlack(ctx context.Context, workspaceID uuid.UUID) (bool, error)
Whether an enabled webhook posts campaign.paused to Slack (Review & send says who hears about a held send).
func (*Queries) ApprovalPendingForWorkspace ¶
func (*Queries) ApprovalReopen ¶
func (q *Queries) ApprovalReopen(ctx context.Context, arg ApprovalReopenParams) error
"Restore … (keeps approval)": the campaign matches the snapshot again.
func (*Queries) ApprovalResolveHold ¶
func (q *Queries) ApprovalResolveHold(ctx context.Context, arg ApprovalResolveHoldParams) error
func (*Queries) ApprovalScheduleCampaign ¶
func (q *Queries) ApprovalScheduleCampaign(ctx context.Context, arg ApprovalScheduleCampaignParams) error
func (*Queries) ApprovalSetCampaignStatus ¶
func (q *Queries) ApprovalSetCampaignStatus(ctx context.Context, arg ApprovalSetCampaignStatusParams) error
func (*Queries) ApprovalSetReminded ¶
func (q *Queries) ApprovalSetReminded(ctx context.Context, arg ApprovalSetRemindedParams) error
func (*Queries) ApprovalSetStatus ¶
func (q *Queries) ApprovalSetStatus(ctx context.Context, arg ApprovalSetStatusParams) error
func (*Queries) ApprovalUnschedule ¶
func (q *Queries) ApprovalUnschedule(ctx context.Context, arg ApprovalUnscheduleParams) error
func (*Queries) ArchiveInsertIssue ¶
func (q *Queries) ArchiveInsertIssue(ctx context.Context, arg ArchiveInsertIssueParams) error
func (*Queries) ArchiveIssueBySlug ¶
func (q *Queries) ArchiveIssueBySlug(ctx context.Context, arg ArchiveIssueBySlugParams) (ArchiveIssueBySlugRow, error)
func (*Queries) ArchiveIssueCount ¶
func (*Queries) ArchiveIssueGet ¶
func (q *Queries) ArchiveIssueGet(ctx context.Context, arg ArchiveIssueGetParams) (ArchiveIssue, error)
func (*Queries) ArchiveIssueOne ¶
func (q *Queries) ArchiveIssueOne(ctx context.Context, arg ArchiveIssueOneParams) (ArchiveIssueOneRow, error)
One issue of the Archive tab, as ArchiveIssues lists it.
func (*Queries) ArchiveIssues ¶
func (q *Queries) ArchiveIssues(ctx context.Context, arg ArchiveIssuesParams) ([]ArchiveIssuesRow, error)
func (*Queries) ArchiveListCounts ¶
func (q *Queries) ArchiveListCounts(ctx context.Context, arg ArchiveListCountsParams) ([]ArchiveListCountsRow, error)
func (*Queries) ArchiveLock ¶
Serializes archive syncs of a workspace, so two requests never hand out the same slug.
func (*Queries) ArchiveMissingIssues ¶
func (q *Queries) ArchiveMissingIssues(ctx context.Context, arg ArchiveMissingIssuesParams) ([]ArchiveMissingIssuesRow, error)
Public pages (spec 7.12): the archive, view online and what an unsubscribe records about the email it came from. Sent campaigns of the archived lists without an archive row yet, oldest first so slugs are handed out in publishing order.
func (*Queries) ArchiveSlugTaken ¶
func (*Queries) ArchiveSummary ¶
func (q *Queries) ArchiveSummary(ctx context.Context, arg ArchiveSummaryParams) (ArchiveSummaryRow, error)
Every published issue: how many and since when.
func (*Queries) ArchiveUpdateIssue ¶
func (q *Queries) ArchiveUpdateIssue(ctx context.Context, arg ArchiveUpdateIssueParams) (ArchiveIssue, error)
func (*Queries) AudienceAutomationByName ¶
func (q *Queries) AudienceAutomationByName(ctx context.Context, arg AudienceAutomationByNameParams) (uuid.UUID, error)
The automation the sunset policy names (List health links to its flow).
func (*Queries) AudienceCounts ¶
func (q *Queries) AudienceCounts(ctx context.Context, workspaceID uuid.UUID) (AudienceCountsRow, error)
Audience: lists, custom fields, contacts, consent, saved views, suppressions and the daily rollups behind List health.
func (*Queries) AuditLogActionGroups ¶
func (*Queries) AuditLogActors ¶
func (q *Queries) AuditLogActors(ctx context.Context, workspaceID *uuid.UUID) ([]AuditLogActorsRow, error)
Actors seen in the workspace log, for the actor filter.
func (*Queries) AuditLogCount ¶
func (*Queries) AuditLogExport ¶
func (q *Queries) AuditLogExport(ctx context.Context, arg AuditLogExportParams) ([]AuditLogExportRow, error)
Same filters as AuditLogList, with before/after for exports.
func (*Queries) AuditLogGet ¶
func (q *Queries) AuditLogGet(ctx context.Context, arg AuditLogGetParams) (AuditLogGetRow, error)
func (*Queries) AuditLogList ¶
func (q *Queries) AuditLogList(ctx context.Context, arg AuditLogListParams) ([]AuditLogListRow, error)
Workspace audit log views, export and stream. The instance-level view lives with the instance admin domain.
func (*Queries) AuditLogRelated ¶
func (q *Queries) AuditLogRelated(ctx context.Context, arg AuditLogRelatedParams) ([]AuditLogRelatedRow, error)
Other entries about the same target close in time, for "Related:".
func (*Queries) AuditSetRetention ¶
func (q *Queries) AuditSetRetention(ctx context.Context, arg AuditSetRetentionParams) error
func (*Queries) AuditStreamAdvance ¶
func (q *Queries) AuditStreamAdvance(ctx context.Context, arg AuditStreamAdvanceParams) error
func (*Queries) AuditStreamBatch ¶
func (q *Queries) AuditStreamBatch(ctx context.Context, arg AuditStreamBatchParams) ([]AuditEvent, error)
func (*Queries) AuditStreamConfigure ¶
func (q *Queries) AuditStreamConfigure(ctx context.Context, arg AuditStreamConfigureParams) error
func (*Queries) AuditStreamSetStatus ¶
func (q *Queries) AuditStreamSetStatus(ctx context.Context, arg AuditStreamSetStatusParams) error
func (*Queries) AuditStreamWorkspaces ¶
func (q *Queries) AuditStreamWorkspaces(ctx context.Context) ([]AuditStreamWorkspacesRow, error)
func (*Queries) AutomationActiveRunNodes ¶
func (q *Queries) AutomationActiveRunNodes(ctx context.Context, automationID uuid.UUID) ([]AutomationActiveRunNodesRow, error)
Where contacts are, per version and step (publish impact).
func (*Queries) AutomationActiveRunVersions ¶
func (q *Queries) AutomationActiveRunVersions(ctx context.Context) ([]AutomationActiveRunVersionsRow, error)
Live flows' versions that still have contacts in them (goal detection).
func (*Queries) AutomationAddContactTag ¶
func (q *Queries) AutomationAddContactTag(ctx context.Context, arg AutomationAddContactTagParams) error
func (*Queries) AutomationAddListMembership ¶
func (q *Queries) AutomationAddListMembership(ctx context.Context, arg AutomationAddListMembershipParams) error
func (*Queries) AutomationContact ¶
func (*Queries) AutomationContactByEmail ¶
func (q *Queries) AutomationContactByEmail(ctx context.Context, arg AutomationContactByEmailParams) (AutomationContactByEmailRow, error)
func (*Queries) AutomationContactEmailedSince ¶
func (*Queries) AutomationContactInList ¶
func (*Queries) AutomationContactInWorkspace ¶
func (q *Queries) AutomationContactInWorkspace(ctx context.Context, arg AutomationContactInWorkspaceParams) (AutomationContactInWorkspaceRow, error)
func (*Queries) AutomationContactSentEvent ¶
func (*Queries) AutomationContactSuppressed ¶
func (*Queries) AutomationDateFieldMatches ¶
func (q *Queries) AutomationDateFieldMatches(ctx context.Context, arg AutomationDateFieldMatchesParams) ([]uuid.UUID, error)
Contacts whose date field (plus the offset) is today in the workspace's timezone; yearly triggers match the day and month every year.
func (*Queries) AutomationDateTriggers ¶
func (q *Queries) AutomationDateTriggers(ctx context.Context) ([]AutomationDateTriggersRow, error)
func (*Queries) AutomationEngaged ¶
Whether the contact opened or clicked any email of this flow since a time.
func (*Queries) AutomationEventNames ¶
func (*Queries) AutomationFields ¶
func (*Queries) AutomationForms ¶
func (*Queries) AutomationGoalRunsEngaged ¶
func (q *Queries) AutomationGoalRunsEngaged(ctx context.Context, arg AutomationGoalRunsEngagedParams) ([]AutomationGoalRunsEngagedRow, error)
Runs whose contact opened or clicked an email of this flow since entering.
func (*Queries) AutomationGoalRunsEvent ¶
func (q *Queries) AutomationGoalRunsEvent(ctx context.Context, arg AutomationGoalRunsEventParams) ([]AutomationGoalRunsEventRow, error)
func (*Queries) AutomationGoalRunsInList ¶
func (q *Queries) AutomationGoalRunsInList(ctx context.Context, arg AutomationGoalRunsInListParams) ([]AutomationGoalRunsInListRow, error)
func (*Queries) AutomationGoalRunsTagged ¶
func (q *Queries) AutomationGoalRunsTagged(ctx context.Context, arg AutomationGoalRunsTaggedParams) ([]AutomationGoalRunsTaggedRow, error)
func (*Queries) AutomationLists ¶
func (*Queries) AutomationLostWebhookRuns ¶
func (q *Queries) AutomationLostWebhookRuns(ctx context.Context, before time.Time) ([]AutomationLostWebhookRunsRow, error)
Runs waiting on a webhook call whose job never ran (lost or not enqueued).
func (*Queries) AutomationMessageEngaged ¶
func (*Queries) AutomationMessageForStats ¶
func (*Queries) AutomationProviderSendsSince ¶
func (q *Queries) AutomationProviderSendsSince(ctx context.Context, arg AutomationProviderSendsSinceParams) ([]AutomationProviderSendsSinceRow, error)
Automation emails per sending provider since a day, and the last day each sent.
func (*Queries) AutomationProviders ¶
func (*Queries) AutomationRemoveContactTag ¶
func (q *Queries) AutomationRemoveContactTag(ctx context.Context, arg AutomationRemoveContactTagParams) error
func (*Queries) AutomationRemoveListMembership ¶
func (q *Queries) AutomationRemoveListMembership(ctx context.Context, arg AutomationRemoveListMembershipParams) error
func (*Queries) AutomationRoute ¶
func (q *Queries) AutomationRoute(ctx context.Context, workspaceID uuid.UUID) (AutomationRouteRow, error)
The default Automations route: the weighted split and the fallback.
func (*Queries) AutomationRunExists ¶
func (*Queries) AutomationRunMessage ¶
func (q *Queries) AutomationRunMessage(ctx context.Context, arg AutomationRunMessageParams) (AutomationRunMessageRow, error)
The message a run's email step queued (for branch checks).
func (*Queries) AutomationStepFailures ¶
func (q *Queries) AutomationStepFailures(ctx context.Context, automationID uuid.UUID) ([]AutomationStepFailuresRow, error)
The latest alert per webhook step, open or resolved (for the publish diff).
func (*Queries) AutomationStepPathsSince ¶
func (q *Queries) AutomationStepPathsSince(ctx context.Context, arg AutomationStepPathsSinceParams) ([]AutomationStepPathsSinceRow, error)
Paths taken out of branches and splits.
func (*Queries) AutomationStepProvidersSince ¶
func (q *Queries) AutomationStepProvidersSince(ctx context.Context, arg AutomationStepProvidersSinceParams) ([]AutomationStepProvidersSinceRow, error)
Emails per sending provider, per step.
func (*Queries) AutomationStepSecretNodes ¶
func (*Queries) AutomationStepStatsSince ¶
func (q *Queries) AutomationStepStatsSince(ctx context.Context, arg AutomationStepStatsSinceParams) ([]AutomationStepStatsSinceRow, error)
Per-step totals since a day, across versions (steps keep their ids).
func (*Queries) AutomationTopTags ¶
func (*Queries) AutomationUnsubscribeAll ¶
func (*Queries) AutomationWorkspaceStatsSince ¶
func (q *Queries) AutomationWorkspaceStatsSince(ctx context.Context, arg AutomationWorkspaceStatsSinceParams) ([]AutomationWorkspaceStatsSinceRow, error)
Totals per automation since a day, for the KPI row.
func (*Queries) BroadcastDefaultSplit ¶
func (*Queries) BumpAutomationStepStats ¶
func (q *Queries) BumpAutomationStepStats(ctx context.Context, arg BumpAutomationStepStatsParams) error
Adds to one step's counters for a day. Path and provider counts are merged key by key.
func (*Queries) BumpChallengeAttempts ¶
func (*Queries) BumpNotificationEmailAttempts ¶
func (q *Queries) BumpNotificationEmailAttempts(ctx context.Context, arg BumpNotificationEmailAttemptsParams) error
func (*Queries) CampaignCostSince ¶
func (q *Queries) CampaignCostSince(ctx context.Context, arg CampaignCostSinceParams) ([]CampaignCostSinceRow, error)
func (*Queries) CampaignTotalsSince ¶
func (q *Queries) CampaignTotalsSince(ctx context.Context, arg CampaignTotalsSinceParams) (CampaignTotalsSinceRow, error)
func (*Queries) ClaimAutomationEvents ¶
func (*Queries) ClaimDueAutomationRuns ¶
func (q *Queries) ClaimDueAutomationRuns(ctx context.Context, arg ClaimDueAutomationRunsParams) ([]ClaimDueAutomationRunsRow, error)
Runs ready to move on, in flows that are live (paused flows hold their runs).
func (*Queries) ClearSegmentMembers ¶
func (*Queries) ClearSignInThrottle ¶
func (*Queries) ClearUserLockout ¶
func (*Queries) CommunityAdapterList ¶
func (q *Queries) CommunityAdapterList(ctx context.Context) ([]CommunityAdapterListRow, error)
Every installed community adapter, any kind: the runtime registers the kinds it runs, and registry keys must not collide across kinds.
func (*Queries) CompleteInstanceSetup ¶
func (q *Queries) CompleteInstanceSetup(ctx context.Context, arg CompleteInstanceSetupParams) (InstanceSetting, error)
func (*Queries) ComposerAudienceLists ¶
func (q *Queries) ComposerAudienceLists(ctx context.Context, workspaceID uuid.UUID) ([]ComposerAudienceListsRow, error)
Lists with their subscribed, active contacts (suppressed addresses excluded).
func (*Queries) ComposerAudienceSegments ¶
func (*Queries) ComposerCountListAudience ¶
func (q *Queries) ComposerCountListAudience(ctx context.Context, arg ComposerCountListAudienceParams) (int64, error)
Recipients of lists minus excluded lists and suppressions. A deleted list (restorable for 30 days) adds nobody; as an exclusion it still excludes.
func (*Queries) ComposerCountMissingField ¶
func (q *Queries) ComposerCountMissingField(ctx context.Context, arg ComposerCountMissingFieldParams) (int64, error)
Audience contacts whose first name is empty (they see the fallback).
func (*Queries) ComposerCustomFields ¶
func (*Queries) ComposerDefaultSender ¶
func (*Queries) ComposerLastSentCampaign ¶
func (*Queries) ComposerLatestReadiness ¶
func (*Queries) ComposerLockCampaign ¶
func (q *Queries) ComposerLockCampaign(ctx context.Context, arg ComposerLockCampaignParams) (ComposerLockCampaignRow, error)
Row lock for autosave: the version check and the new version are atomic.
func (*Queries) ComposerPreviewContactByID ¶
func (q *Queries) ComposerPreviewContactByID(ctx context.Context, arg ComposerPreviewContactByIDParams) (ComposerPreviewContactByIDRow, error)
func (*Queries) ComposerPreviewContacts ¶
func (q *Queries) ComposerPreviewContacts(ctx context.Context, arg ComposerPreviewContactsParams) ([]ComposerPreviewContactsRow, error)
Contacts to preview as: the campaign's audience first, people with a first name first.
func (*Queries) ComposerRandomContact ¶
func (*Queries) ComposerTestRecipients ¶
func (q *Queries) ComposerTestRecipients(ctx context.Context, workspaceID uuid.UUID) ([]ComposerTestRecipientsRow, error)
Active members of the workspace, for "Send test" (name and email).
func (*Queries) ComposerUpdateCampaignMeta ¶
func (q *Queries) ComposerUpdateCampaignMeta(ctx context.Context, arg ComposerUpdateCampaignMetaParams) error
func (*Queries) ComposerVersionSources ¶
func (q *Queries) ComposerVersionSources(ctx context.Context, arg ComposerVersionSourcesParams) ([]ComposerVersionSourcesRow, error)
The MJML of recent versions, newest first (to find when a section was removed).
func (*Queries) ConfirmInstanceBasics ¶
func (*Queries) ConnectActiveContacts ¶
func (*Queries) ConnectCreateList ¶
func (q *Queries) ConnectCreateList(ctx context.Context, arg ConnectCreateListParams) error
func (*Queries) ConnectFirstWebhook ¶
func (q *Queries) ConnectFirstWebhook(ctx context.Context, arg ConnectFirstWebhookParams) (ConnectFirstWebhookRow, error)
The first webhook payload about a message (its provider message id is in the body) a provider sent in a window after the send: the test send's "event came back" step, with the body to name the event.
func (*Queries) ConnectInsertProvider ¶
func (*Queries) ConnectListNames ¶
func (*Queries) ConnectMessage ¶
func (*Queries) ConnectMessageEvents ¶
func (*Queries) ConnectProviderNames ¶
func (*Queries) ConnectProviderRouted ¶
func (q *Queries) ConnectProviderRouted(ctx context.Context, arg ConnectProviderRoutedParams) (bool, error)
Whether any routing rule of the workspace uses the provider.
func (*Queries) ConnectProvidersWithSecrets ¶
func (q *Queries) ConnectProvidersWithSecrets(ctx context.Context, workspaceID uuid.UUID) ([]Provider, error)
Connected providers whose webhooks are authenticated with a secret.
func (*Queries) ConnectSameAdapter ¶
func (q *Queries) ConnectSameAdapter(ctx context.Context, arg ConnectSameAdapterParams) ([]ConnectSameAdapterRow, error)
Other connections of an adapter on this instance (resource-name clashes when two workspaces share one provider account).
func (*Queries) ConnectSetProviderConfig ¶
func (q *Queries) ConnectSetProviderConfig(ctx context.Context, arg ConnectSetProviderConfigParams) error
func (*Queries) ConnectSetSendThresholds ¶
func (q *Queries) ConnectSetSendThresholds(ctx context.Context, arg ConnectSetSendThresholdsParams) error
func (*Queries) ConnectSetWebhookSecret ¶
func (q *Queries) ConnectSetWebhookSecret(ctx context.Context, arg ConnectSetWebhookSecretParams) error
func (*Queries) ConnectSuppressionSyncMode ¶
func (q *Queries) ConnectSuppressionSyncMode(ctx context.Context, arg ConnectSuppressionSyncModeParams) error
func (*Queries) ConnectUpdateProvider ¶
func (q *Queries) ConnectUpdateProvider(ctx context.Context, arg ConnectUpdateProviderParams) (Provider, error)
Settings and credentials from a repeated connection step (new key, other region).
func (*Queries) ConsumeEmailChange ¶
func (q *Queries) ConsumeEmailChange(ctx context.Context, arg ConsumeEmailChangeParams) (EmailChange, error)
func (*Queries) ConsumeHostReputeOAuthState ¶
func (q *Queries) ConsumeHostReputeOAuthState(ctx context.Context, stateHash []byte) (HostreputeOauthState, error)
A state is single use: reading it deletes it.
func (*Queries) ConsumePasswordReset ¶
func (*Queries) ContactActivityCount ¶
func (*Queries) ContactChoseFewer ¶
func (*Queries) ContactConsentEvents ¶
func (*Queries) ContactEngagementSince ¶
func (q *Queries) ContactEngagementSince(ctx context.Context, arg ContactEngagementSinceParams) (ContactEngagementSinceRow, error)
Emails sent to a contact since a date (Broadcasts and Automations), how many were opened by a person and how many were clicked.
func (*Queries) ContactListNames ¶
func (q *Queries) ContactListNames(ctx context.Context, contactIds []uuid.UUID) ([]ContactListNamesRow, error)
Lists a page of contacts belongs to (subscribed or pending), in list order.
func (*Queries) ContactMemberships ¶
func (*Queries) ContactSources ¶
func (*Queries) ContentCheckLinkListings ¶
func (*Queries) ContentCheckUpsertLinkListing ¶
func (q *Queries) ContentCheckUpsertLinkListing(ctx context.Context, arg ContentCheckUpsertLinkListingParams) error
func (*Queries) CountActiveOwners ¶
func (*Queries) CountAutomationHeldMessages ¶
func (*Queries) CountAutomationInFlow ¶
func (*Queries) CountAutomationInFlowByNode ¶
func (*Queries) CountAutomationsByStatus ¶
func (*Queries) CountCampaigns ¶
func (*Queries) CountCampaignsByStatus ¶
func (*Queries) CountDeliverabilityIncidents ¶
func (*Queries) CountImportRows ¶
func (*Queries) CountNotifications ¶
func (q *Queries) CountNotifications(ctx context.Context, arg CountNotificationsParams) (CountNotificationsRow, error)
func (*Queries) CountUnreadNotifications ¶
func (*Queries) CountUnusedRecoveryCodes ¶
func (*Queries) CountWorkspaceSegments ¶
func (*Queries) CountWorkspaceSuppressions ¶
func (*Queries) CreateAPIKey ¶
func (*Queries) CreateAutomation ¶
func (q *Queries) CreateAutomation(ctx context.Context, arg CreateAutomationParams) (Automation, error)
func (*Queries) CreateAutomationEmail ¶
func (q *Queries) CreateAutomationEmail(ctx context.Context, arg CreateAutomationEmailParams) error
func (*Queries) CreateChallenge ¶
func (q *Queries) CreateChallenge(ctx context.Context, arg CreateChallengeParams) (AuthChallenge, error)
func (*Queries) CreateContact ¶
func (*Queries) CreateCustomField ¶
func (q *Queries) CreateCustomField(ctx context.Context, arg CreateCustomFieldParams) (CustomField, error)
func (*Queries) CreateDeliverabilityCheckRun ¶
func (q *Queries) CreateDeliverabilityCheckRun(ctx context.Context, arg CreateDeliverabilityCheckRunParams) (DeliverabilityCheckRun, error)
func (*Queries) CreateEmailChange ¶
func (q *Queries) CreateEmailChange(ctx context.Context, arg CreateEmailChangeParams) (EmailChange, error)
func (*Queries) CreateHostReputeOAuthState ¶
func (q *Queries) CreateHostReputeOAuthState(ctx context.Context, arg CreateHostReputeOAuthStateParams) error
func (*Queries) CreateIdentity ¶
func (q *Queries) CreateIdentity(ctx context.Context, arg CreateIdentityParams) (UserIdentity, error)
func (*Queries) CreateImport ¶
Imports: the migration wizard's drafts, staged rows, live log and reports.
func (*Queries) CreateInvitation ¶
func (q *Queries) CreateInvitation(ctx context.Context, arg CreateInvitationParams) (Invitation, error)
func (*Queries) CreateList ¶
func (*Queries) CreateMember ¶
func (q *Queries) CreateMember(ctx context.Context, arg CreateMemberParams) (WorkspaceMember, error)
func (*Queries) CreatePasskey ¶
func (q *Queries) CreatePasskey(ctx context.Context, arg CreatePasskeyParams) (UserPasskey, error)
func (*Queries) CreatePasskeyRecord ¶
func (q *Queries) CreatePasskeyRecord(ctx context.Context, arg CreatePasskeyRecordParams) (UserPasskey, error)
func (*Queries) CreatePasswordReset ¶
func (q *Queries) CreatePasswordReset(ctx context.Context, arg CreatePasswordResetParams) (PasswordReset, error)
func (*Queries) CreatePasswordResetFrom ¶
func (q *Queries) CreatePasswordResetFrom(ctx context.Context, arg CreatePasswordResetFromParams) (PasswordReset, error)
func (*Queries) CreateRecoveryCode ¶
func (q *Queries) CreateRecoveryCode(ctx context.Context, arg CreateRecoveryCodeParams) error
func (*Queries) CreateRole ¶
func (*Queries) CreateSavedView ¶
func (*Queries) CreateSegment ¶
func (*Queries) CreateSession ¶
func (*Queries) CreateUser ¶
func (*Queries) CreateWorkspace ¶
func (*Queries) DeleteAutomationStepSecret ¶
func (*Queries) DeleteAvatar ¶
func (*Queries) DeleteChallenge ¶
func (*Queries) DeleteCustomField ¶
func (*Queries) DeleteDeliverabilityBlocklistResults ¶
func (q *Queries) DeleteDeliverabilityBlocklistResults(ctx context.Context, arg DeleteDeliverabilityBlocklistResultsParams) error
func (*Queries) DeleteExpiredChallenges ¶
func (*Queries) DeleteExpiredHostReputeOAuthStates ¶
func (*Queries) DeleteExpiredSessions ¶
func (*Queries) DeleteHostReputeConnection ¶
func (*Queries) DeleteHostReputeData ¶
Disconnect forgets what was synced from HostRepute (HostRepute keeps it).
func (*Queries) DeleteIdentity ¶
func (*Queries) DeleteImport ¶
func (*Queries) DeleteImportRows ¶
func (*Queries) DeleteMember ¶
func (*Queries) DeleteOldNotifications ¶
func (*Queries) DeletePasskey ¶
func (*Queries) DeletePendingEmailChanges ¶
func (*Queries) DeleteRecoveryCodes ¶
func (*Queries) DeleteRole ¶
func (*Queries) DeleteSavedView ¶
func (*Queries) DeleteSegment ¶
func (*Queries) DeleteStaleThrottle ¶
func (*Queries) DeleteSuppression ¶
func (*Queries) DeliverabilityProviderStreams ¶
func (q *Queries) DeliverabilityProviderStreams(ctx context.Context, workspaceID uuid.UUID) ([]DeliverabilityProviderStreamsRow, error)
Which streams each provider serves, as primary (in a split) or fallback.
func (*Queries) DeliverabilityWarmupPlans ¶
func (*Queries) DeliverabilityWorkspaces ¶
Workspaces the daily checks look at: they send through something.
func (*Queries) DomCreate ¶
func (q *Queries) DomCreate(ctx context.Context, arg DomCreateParams) (SendingDomain, error)
func (*Queries) DomDMARCReports ¶
Where HostRepute collects DMARC aggregate reports for this workspace (rua=).
func (*Queries) DomDue ¶
Sending domains whose DNS was last checked before a time (the periodic re-verification job), oldest first.
func (*Queries) DomGet ¶
func (q *Queries) DomGet(ctx context.Context, arg DomGetParams) (SendingDomain, error)
func (*Queries) DomGetByName ¶
func (q *Queries) DomGetByName(ctx context.Context, arg DomGetByNameParams) (SendingDomain, error)
func (*Queries) DomList ¶
Sending domains and sender identities (Settings › Senders, the domain step of Connect a sending provider, system mail). Query names start with Dom or Sender so they never collide with other domains.
func (*Queries) DomSaveCheck ¶
func (q *Queries) DomSaveCheck(ctx context.Context, arg DomSaveCheckParams) error
The result of a live DNS check.
func (*Queries) DomUpdateNote ¶
func (q *Queries) DomUpdateNote(ctx context.Context, arg DomUpdateNoteParams) error
func (*Queries) DomUpdateRecords ¶
func (q *Queries) DomUpdateRecords(ctx context.Context, arg DomUpdateRecordsParams) error
func (*Queries) DomUpdateTracking ¶
func (q *Queries) DomUpdateTracking(ctx context.Context, arg DomUpdateTrackingParams) error
func (*Queries) EmailTaken ¶
func (*Queries) EmailTemplateNameTaken ¶
func (*Queries) EnableAuditPurge ¶
Must run inside the same transaction as PurgeAuditEvents (retention job only).
func (*Queries) EnabledSSOProviders ¶
func (q *Queries) EnabledSSOProviders(ctx context.Context) ([]EnabledSSOProvidersRow, error)
func (*Queries) ExitAutomationRuns ¶
func (*Queries) FailStaleDeliverabilityCheckRuns ¶
func (*Queries) FinishDeliverabilityCheckRun ¶
func (q *Queries) FinishDeliverabilityCheckRun(ctx context.Context, arg FinishDeliverabilityCheckRunParams) error
func (*Queries) FinishImport ¶
func (q *Queries) FinishImport(ctx context.Context, arg FinishImportParams) error
func (*Queries) FormAllowOrigin ¶
func (*Queries) FormBlockedOrigins ¶
func (q *Queries) FormBlockedOrigins(ctx context.Context, arg FormBlockedOriginsParams) ([]FormBlockedOriginsRow, error)
Origins rejected today that nobody chose to keep blocked yet.
func (*Queries) FormBumpDaily ¶
func (q *Queries) FormBumpDaily(ctx context.Context, arg FormBumpDailyParams) error
func (*Queries) FormBumpTotals ¶
func (q *Queries) FormBumpTotals(ctx context.Context, arg FormBumpTotalsParams) error
func (*Queries) FormByPublicID ¶
func (*Queries) FormBySlug ¶
func (*Queries) FormChallengeInsert ¶
func (q *Queries) FormChallengeInsert(ctx context.Context, arg FormChallengeInsertParams) error
func (*Queries) FormChallengeLive ¶
A held submission still waiting for its Turnstile check.
func (*Queries) FormChallengeTake ¶
func (q *Queries) FormChallengeTake(ctx context.Context, arg FormChallengeTakeParams) (FormChallenge, error)
func (*Queries) FormChallengesPurge ¶
func (*Queries) FormDelete ¶
func (*Queries) FormDismissOrigin ¶
func (*Queries) FormInsert ¶
func (*Queries) FormLastSubmissionForContact ¶
func (*Queries) FormPublicIDTaken ¶
func (*Queries) FormRecordRejection ¶
func (q *Queries) FormRecordRejection(ctx context.Context, arg FormRecordRejectionParams) error
func (*Queries) FormRename ¶
func (*Queries) FormSetStatus ¶
func (*Queries) FormSlugTaken ¶
func (*Queries) FormStatsSince ¶
func (q *Queries) FormStatsSince(ctx context.Context, arg FormStatsSinceParams) ([]FormStatsSinceRow, error)
Per form: views, submissions, confirmations of those submissions and spam blocked since a day (inclusive).
func (*Queries) FormSubmissionByID ¶
func (q *Queries) FormSubmissionByID(ctx context.Context, arg FormSubmissionByIDParams) (FormSubmission, error)
func (*Queries) FormSubmissionInsert ¶
func (q *Queries) FormSubmissionInsert(ctx context.Context, arg FormSubmissionInsertParams) error
func (*Queries) FormSubmissionMarkAttempt ¶
func (*Queries) FormSubmissionMarkReminded ¶
func (q *Queries) FormSubmissionMarkReminded(ctx context.Context, arg FormSubmissionMarkRemindedParams) error
func (*Queries) FormSubmissionMarkSent ¶
func (q *Queries) FormSubmissionMarkSent(ctx context.Context, arg FormSubmissionMarkSentParams) error
func (*Queries) FormSubmissionSettle ¶
func (q *Queries) FormSubmissionSettle(ctx context.Context, arg FormSubmissionSettleParams) error
A contact confirmed some other way (re-permission, the team): nothing to send or remind any more.
func (*Queries) FormSubmissionsConfirm ¶
func (q *Queries) FormSubmissionsConfirm(ctx context.Context, arg FormSubmissionsConfirmParams) ([]FormSubmissionsConfirmRow, error)
Marks a contact's waiting submissions confirmed; returns the form and the day each was submitted, so the day's confirmed count moves.
func (*Queries) FormSubmissionsToRemind ¶
func (q *Queries) FormSubmissionsToRemind(ctx context.Context, arg FormSubmissionsToRemindParams) ([]FormSubmissionsToRemindRow, error)
Confirmations sent more than 24 hours ago without a click: one reminder.
func (*Queries) FormSubmissionsToSend ¶
func (q *Queries) FormSubmissionsToSend(ctx context.Context, arg FormSubmissionsToSendParams) ([]FormSubmissionsToSendRow, error)
Double opt-in confirmations that couldn't go out yet (no System provider, a provider error): retried by the confirmations job for three days.
func (*Queries) FormUpdate ¶
func (*Queries) FormWaitingCount ¶
func (*Queries) FormWaitingSubmissions ¶
func (q *Queries) FormWaitingSubmissions(ctx context.Context, arg FormWaitingSubmissionsParams) ([]FormWaitingSubmissionsRow, error)
Double opt-in signups of a form whose confirmation email hasn't gone out (nothing could send System mail, or the provider refused it), newest first: the builder offers their links to send by hand.
func (*Queries) FormsDefaultSender ¶
func (*Queries) FormsRemoveBrandingKeys ¶
func (q *Queries) FormsRemoveBrandingKeys(ctx context.Context, arg FormsRemoveBrandingKeysParams) error
func (*Queries) FormsUpdateBranding ¶
func (q *Queries) FormsUpdateBranding(ctx context.Context, arg FormsUpdateBrandingParams) (json.RawMessage, error)
Merges the public-page keys into workspaces.branding; keys other screens own (the postal address of the email footer) stay as they are.
func (*Queries) FormsWorkspaceBranding ¶
func (*Queries) GetAPIKeyByToken ¶
func (*Queries) GetAudienceState ¶
func (*Queries) GetAuditEvent ¶
func (*Queries) GetAutomation ¶
func (q *Queries) GetAutomation(ctx context.Context, arg GetAutomationParams) (GetAutomationRow, error)
func (*Queries) GetAutomationEmailVersion ¶
func (q *Queries) GetAutomationEmailVersion(ctx context.Context, arg GetAutomationEmailVersionParams) (GetAutomationEmailVersionRow, error)
func (*Queries) GetAutomationRunForUpdate ¶
func (*Queries) GetAutomationStepSecret ¶
func (*Queries) GetAutomationVersion ¶
func (q *Queries) GetAutomationVersion(ctx context.Context, arg GetAutomationVersionParams) (GetAutomationVersionRow, error)
func (*Queries) GetChallenge ¶
func (q *Queries) GetChallenge(ctx context.Context, arg GetChallengeParams) (AuthChallenge, error)
func (*Queries) GetComposerCampaign ¶
func (q *Queries) GetComposerCampaign(ctx context.Context, arg GetComposerCampaignParams) (GetComposerCampaignRow, error)
One campaign with what the composer header shows.
func (*Queries) GetComposerSender ¶
func (q *Queries) GetComposerSender(ctx context.Context, arg GetComposerSenderParams) (GetComposerSenderRow, error)
func (*Queries) GetComposerVersion ¶
func (q *Queries) GetComposerVersion(ctx context.Context, arg GetComposerVersionParams) (GetComposerVersionRow, error)
func (*Queries) GetContact ¶
func (*Queries) GetContactByEmail ¶
func (*Queries) GetContactPreferences ¶
func (*Queries) GetCustomField ¶
func (q *Queries) GetCustomField(ctx context.Context, arg GetCustomFieldParams) (CustomField, error)
func (*Queries) GetDeliverabilityBlocklistListing ¶
func (q *Queries) GetDeliverabilityBlocklistListing(ctx context.Context, arg GetDeliverabilityBlocklistListingParams) (BlocklistResult, error)
func (*Queries) GetDeliverabilityCheckRun ¶
func (q *Queries) GetDeliverabilityCheckRun(ctx context.Context, arg GetDeliverabilityCheckRunParams) (DeliverabilityCheckRun, error)
func (*Queries) GetEmailTemplate ¶
func (q *Queries) GetEmailTemplate(ctx context.Context, arg GetEmailTemplateParams) (GetEmailTemplateRow, error)
func (*Queries) GetHostReputeConnection ¶
func (*Queries) GetHostReputeConnectionForUpdate ¶
func (*Queries) GetIdentity ¶
func (q *Queries) GetIdentity(ctx context.Context, arg GetIdentityParams) (UserIdentity, error)
func (*Queries) GetImportByID ¶
func (*Queries) GetInstanceSettings ¶
func (q *Queries) GetInstanceSettings(ctx context.Context) (InstanceSetting, error)
func (*Queries) GetInvitationByToken ¶
func (*Queries) GetInvitationView ¶
func (*Queries) GetMXCache ¶
func (q *Queries) GetMXCache(ctx context.Context, arg GetMXCacheParams) ([]GetMXCacheRow, error)
func (*Queries) GetMediaAsset ¶
func (q *Queries) GetMediaAsset(ctx context.Context, arg GetMediaAssetParams) (GetMediaAssetRow, error)
func (*Queries) GetMediaAssetData ¶
func (q *Queries) GetMediaAssetData(ctx context.Context, id uuid.UUID) (GetMediaAssetDataRow, error)
Public serving: by id only (ids are unguessable UUIDv7s embedded in emails).
func (*Queries) GetMember ¶
func (q *Queries) GetMember(ctx context.Context, arg GetMemberParams) (GetMemberRow, error)
func (*Queries) GetMembership ¶
func (q *Queries) GetMembership(ctx context.Context, arg GetMembershipParams) (GetMembershipRow, error)
func (*Queries) GetNotificationSettings ¶
func (*Queries) GetPasskeyByCredential ¶
func (*Queries) GetPasswordReset ¶
func (*Queries) GetPendingEmailChange ¶
func (*Queries) GetRoleByKey ¶
func (*Queries) GetSavedView ¶
func (*Queries) GetSegment ¶
func (*Queries) GetSessionByToken ¶
func (*Queries) GetSignInThrottle ¶
func (*Queries) GetSuppression ¶
func (q *Queries) GetSuppression(ctx context.Context, arg GetSuppressionParams) (Suppression, error)
func (*Queries) GetSuppressionByEmail ¶
func (q *Queries) GetSuppressionByEmail(ctx context.Context, arg GetSuppressionByEmailParams) (Suppression, error)
func (*Queries) GetUsablePasswordReset ¶
func (*Queries) GetUserByEmail ¶
func (*Queries) GetUserByWebAuthnID ¶
func (*Queries) GetUserPasskey ¶
func (q *Queries) GetUserPasskey(ctx context.Context, arg GetUserPasskeyParams) (UserPasskey, error)
func (*Queries) GetUserSession ¶
func (*Queries) GetWorkspace ¶
func (*Queries) GetWorkspaceBySlug ¶
func (*Queries) HealthViews ¶
func (*Queries) HideMediaAsset ¶
func (*Queries) HooksClaimDelivery ¶
func (q *Queries) HooksClaimDelivery(ctx context.Context, id uuid.UUID) (HooksClaimDeliveryRow, error)
Takes a due delivery for one attempt. Returns no row when someone else has it.
func (*Queries) HooksCreate ¶
func (*Queries) HooksDelete ¶
func (*Queries) HooksDeliveries ¶
func (q *Queries) HooksDeliveries(ctx context.Context, arg HooksDeliveriesParams) ([]HooksDeliveriesRow, error)
func (*Queries) HooksDue ¶
Deliveries ready for an attempt that have no job queued (or a lost one). While an endpoint is failing only its oldest open delivery is tried (the probe); the rest wait and replay once the endpoint answers 2xx again. The probes are found once per failing endpoint, not once per waiting delivery.
func (*Queries) HooksFinishDelivery ¶
func (q *Queries) HooksFinishDelivery(ctx context.Context, arg HooksFinishDeliveryParams) error
func (*Queries) HooksGetDelivery ¶
func (q *Queries) HooksGetDelivery(ctx context.Context, arg HooksGetDeliveryParams) (HooksGetDeliveryRow, error)
func (*Queries) HooksInsertDelivery ¶
func (q *Queries) HooksInsertDelivery(ctx context.Context, arg HooksInsertDeliveryParams) error
func (*Queries) HooksMatching ¶
func (q *Queries) HooksMatching(ctx context.Context, arg HooksMatchingParams) ([]HooksMatchingRow, error)
Endpoints subscribed to an event: exact name, "group.*" or "*".
func (*Queries) HooksPurgeDeliveries ¶
func (*Queries) HooksRecordResult ¶
func (q *Queries) HooksRecordResult(ctx context.Context, arg HooksRecordResultParams) error
func (*Queries) HooksReleaseHeld ¶
func (*Queries) HooksRequeue ¶
Retry now / Retry all failed / Replay: back to pending for an immediate attempt.
func (*Queries) HooksSetEnabled ¶
func (q *Queries) HooksSetEnabled(ctx context.Context, arg HooksSetEnabledParams) error
func (*Queries) HooksSetSecret ¶
func (q *Queries) HooksSetSecret(ctx context.Context, arg HooksSetSecretParams) error
func (*Queries) HooksStaleDelivering ¶
A worker that died mid-attempt leaves a row in 'delivering'; give it back.
func (*Queries) HooksUpdate ¶
A demo endpoint stays one only while its address is unchanged.
func (*Queries) HostReputeAssetSources ¶
func (q *Queries) HostReputeAssetSources(ctx context.Context, workspaceID uuid.UUID) ([]HostReputeAssetSourcesRow, error)
The sending domains an asset list is built from (with the records their providers require). Connected providers come from ProvListActive.
func (*Queries) HostReputeCountAgents ¶
func (*Queries) HostReputeCountWebhooks ¶
func (*Queries) HostReputeDataSourceVia ¶
func (q *Queries) HostReputeDataSourceVia(ctx context.Context, workspaceID uuid.UUID) (HostReputeDataSourceViaRow, error)
Where Postmaster and SNDS data come from now (hostrepute, direct or none).
func (*Queries) HostReputeProviderForIP ¶
func (q *Queries) HostReputeProviderForIP(ctx context.Context, arg HostReputeProviderForIPParams) (HostReputeProviderForIPRow, error)
The connected provider that sends from a dedicated IP.
func (*Queries) HostReputeUserName ¶
func (*Queries) HostReputeWorkspaceSlug ¶
func (*Queries) ImportJobs ¶
func (q *Queries) ImportJobs(ctx context.Context, arg ImportJobsParams) ([]ImportJobsRow, error)
Imports running in the background, and those that ended in the last two hours, for the jobs tray.
func (*Queries) ImportRowsAfter ¶
func (*Queries) ImportStatusCounts ¶
func (*Queries) IngestAddSuppression ¶
func (*Queries) IngestBumpCounters ¶
func (q *Queries) IngestBumpCounters(ctx context.Context, arg IngestBumpCountersParams) error
func (*Queries) IngestEventLog ¶
func (q *Queries) IngestEventLog(ctx context.Context, arg IngestEventLogParams) ([]IngestEventLogRow, error)
The provider event log: provider events (not ReputeCast's own opens and clicks), newest first, retained 90 days.
func (*Queries) IngestEventLogCount ¶
func (*Queries) IngestGetRaw ¶
func (*Queries) IngestInsertEvent ¶
func (*Queries) IngestInsertRaw ¶
func (q *Queries) IngestInsertRaw(ctx context.Context, arg IngestInsertRawParams) error
Webhook ingest, normalization and the provider event log.
func (*Queries) IngestMarkNormalized ¶
func (q *Queries) IngestMarkNormalized(ctx context.Context, arg IngestMarkNormalizedParams) error
func (*Queries) IngestMessageByID ¶
func (q *Queries) IngestMessageByID(ctx context.Context, arg IngestMessageByIDParams) (IngestMessageByIDRow, error)
func (*Queries) IngestMessageByProviderID ¶
func (q *Queries) IngestMessageByProviderID(ctx context.Context, arg IngestMessageByProviderIDParams) (IngestMessageByProviderIDRow, error)
func (*Queries) IngestPurgeRaw ¶
func (*Queries) IngestSetContactStatus ¶
func (q *Queries) IngestSetContactStatus(ctx context.Context, arg IngestSetContactStatusParams) error
func (*Queries) IngestStaleRaw ¶
func (q *Queries) IngestStaleRaw(ctx context.Context, arg IngestStaleRawParams) ([]uuid.UUID, error)
Verified payloads the normalization job never finished (recovery sweep).
func (*Queries) IngestUpdateMessage ¶
func (q *Queries) IngestUpdateMessage(ctx context.Context, arg IngestUpdateMessageParams) error
Moves a message forward: delivered/deferred are replaced by bounces and complaints, never the other way round.
func (*Queries) InsertAuditEvent ¶
func (q *Queries) InsertAuditEvent(ctx context.Context, arg InsertAuditEventParams) error
func (*Queries) InsertAutomationEmailVersion ¶
func (q *Queries) InsertAutomationEmailVersion(ctx context.Context, arg InsertAutomationEmailVersionParams) error
func (*Queries) InsertAutomationEvent ¶
func (q *Queries) InsertAutomationEvent(ctx context.Context, arg InsertAutomationEventParams) error
func (*Queries) InsertAutomationMessage ¶
func (*Queries) InsertAutomationRun ¶
func (*Queries) InsertAutomationVersion ¶
func (q *Queries) InsertAutomationVersion(ctx context.Context, arg InsertAutomationVersionParams) error
func (*Queries) InsertAutomationWebhookCall ¶
func (q *Queries) InsertAutomationWebhookCall(ctx context.Context, arg InsertAutomationWebhookCallParams) error
func (*Queries) InsertComposerCampaign ¶
func (q *Queries) InsertComposerCampaign(ctx context.Context, arg InsertComposerCampaignParams) error
func (*Queries) InsertComposerVersion ¶
func (q *Queries) InsertComposerVersion(ctx context.Context, arg InsertComposerVersionParams) error
func (*Queries) InsertConsentEvent ¶
func (q *Queries) InsertConsentEvent(ctx context.Context, arg InsertConsentEventParams) error
func (*Queries) InsertDeliverabilityBlocklistResult ¶
func (q *Queries) InsertDeliverabilityBlocklistResult(ctx context.Context, arg InsertDeliverabilityBlocklistResultParams) error
func (*Queries) InsertDeliverabilityIncident ¶
func (q *Queries) InsertDeliverabilityIncident(ctx context.Context, arg InsertDeliverabilityIncidentParams) (uuid.UUID, error)
Incidents with an external id (HostRepute alerts) are stored once; the returned row count says whether this one is new.
func (*Queries) InsertEmailTemplate ¶
func (q *Queries) InsertEmailTemplate(ctx context.Context, arg InsertEmailTemplateParams) error
func (*Queries) InsertImportLog ¶
func (q *Queries) InsertImportLog(ctx context.Context, arg InsertImportLogParams) error
func (*Queries) InsertMediaAsset ¶
func (q *Queries) InsertMediaAsset(ctx context.Context, arg InsertMediaAssetParams) (InsertMediaAssetRow, error)
Uploading the same bytes twice returns the existing asset (and shows it again).
func (*Queries) InsertNotification ¶
func (q *Queries) InsertNotification(ctx context.Context, arg InsertNotificationParams) (int64, error)
Notification center, preferences and email delivery (internal/notify). Stores a notification unless the person turned both in-app and email off for its event type. email_status is 'pending' when they asked for email.
func (*Queries) InsertSuppression ¶
func (q *Queries) InsertSuppression(ctx context.Context, arg InsertSuppressionParams) (Suppression, error)
func (*Queries) InstanceAdminAdminNames ¶
func (q *Queries) InstanceAdminAdminNames(ctx context.Context) ([]InstanceAdminAdminNamesRow, error)
func (*Queries) InstanceAdminCancelScheduled ¶
func (*Queries) InstanceAdminCountAdmins ¶
func (*Queries) InstanceAdminDeactivateMemberships ¶
func (*Queries) InstanceAdminDeactivateUser ¶
func (*Queries) InstanceAdminIdentities ¶
func (q *Queries) InstanceAdminIdentities(ctx context.Context) ([]InstanceAdminIdentitiesRow, error)
func (*Queries) InstanceAdminLastDomainRejection ¶
func (q *Queries) InstanceAdminLastDomainRejection(ctx context.Context) (InstanceAdminLastDomainRejectionRow, error)
The latest sign-in turned away because of its email domain (the allowlist's "for example kim@gmail.com this morning").
func (*Queries) InstanceAdminLockAdmins ¶
The active instance admins, locked until the transaction ends: two admins removing (or deactivating) each other can't both succeed, because the second waits and then re-reads who is still an admin.
func (*Queries) InstanceAdminLockedCount ¶
func (q *Queries) InstanceAdminLockedCount(ctx context.Context) (InstanceAdminLockedCountRow, error)
func (*Queries) InstanceAdminMemberships ¶
func (q *Queries) InstanceAdminMemberships(ctx context.Context) ([]InstanceAdminMembershipsRow, error)
Every membership in a live workspace, oldest workspace first.
func (*Queries) InstanceAdminPasswordHistory ¶
func (q *Queries) InstanceAdminPasswordHistory(ctx context.Context, arg InstanceAdminPasswordHistoryParams) ([]string, error)
The hashes of a person's previous passwords, newest first.
func (*Queries) InstanceAdminPurgeWorkspace ¶
func (q *Queries) InstanceAdminPurgeWorkspace(ctx context.Context, id uuid.UUID) (InstanceAdminPurgeWorkspaceRow, error)
Deletes a workspace for good once its restore hold is over (cascade).
func (*Queries) InstanceAdminReactivateMemberships ¶
func (q *Queries) InstanceAdminReactivateMemberships(ctx context.Context, arg InstanceAdminReactivateMembershipsParams) (int64, error)
Only the memberships deactivated together with the account come back.
func (*Queries) InstanceAdminReactivateUser ¶
func (*Queries) InstanceAdminRecordRelease ¶
func (*Queries) InstanceAdminRecordReleaseError ¶
func (*Queries) InstanceAdminResetTwoFactor ¶
func (q *Queries) InstanceAdminResetTwoFactor(ctx context.Context, arg InstanceAdminResetTwoFactorParams) error
Removes the authenticator and recovery codes; passkeys stay. The grace period restarts so the person can set two-factor up again.
func (*Queries) InstanceAdminRestoreWorkspace ¶
func (q *Queries) InstanceAdminRestoreWorkspace(ctx context.Context, arg InstanceAdminRestoreWorkspaceParams) error
func (*Queries) InstanceAdminRevokeKeysCreatedBy ¶
func (*Queries) InstanceAdminSavePolicy ¶
func (q *Queries) InstanceAdminSavePolicy(ctx context.Context, arg InstanceAdminSavePolicyParams) (InstanceSetting, error)
func (*Queries) InstanceAdminSaveSettings ¶
func (q *Queries) InstanceAdminSaveSettings(ctx context.Context, arg InstanceAdminSaveSettingsParams) (InstanceSetting, error)
A new public URL drops the last URL check, which describes the old one.
func (*Queries) InstanceAdminSaveSocial ¶
func (q *Queries) InstanceAdminSaveSocial(ctx context.Context, arg InstanceAdminSaveSocialParams) error
func (*Queries) InstanceAdminSetLogo ¶
func (*Queries) InstanceAdminSetURLCheck ¶
func (*Queries) InstanceAdminSetUpdateCheck ¶
func (*Queries) InstanceAdminSignInEvents ¶
func (q *Queries) InstanceAdminSignInEvents(ctx context.Context, lim int32) ([]InstanceAdminSignInEventsRow, error)
The latest sign-in attempts at instance level (Users › Recent sign-in events).
func (*Queries) InstanceAdminSoftDeleteWorkspace ¶
func (q *Queries) InstanceAdminSoftDeleteWorkspace(ctx context.Context, id uuid.UUID) (*time.Time, error)
The slug is freed for new workspaces; the suffix keeps it unique and within the 63-character limit.
func (*Queries) InstanceAdminSoleOwners ¶
func (q *Queries) InstanceAdminSoleOwners(ctx context.Context) ([]InstanceAdminSoleOwnersRow, error)
Every person who is the only active Owner of a live workspace, with the workspace (the users list reads them in one query).
func (*Queries) InstanceAdminSoleOwnerships ¶
func (q *Queries) InstanceAdminSoleOwnerships(ctx context.Context, userID uuid.UUID) ([]InstanceAdminSoleOwnershipsRow, error)
Live workspaces where the user is the only active Owner.
func (*Queries) InstanceAdminSystemProvider ¶
func (q *Queries) InstanceAdminSystemProvider(ctx context.Context) (InstanceAdminSystemProviderRow, error)
The System-stream provider of the oldest workspace that has one, for "the email goes out via Postmark".
func (*Queries) InstanceAdminUnlockUser ¶
func (*Queries) InstanceAdminUser ¶
func (*Queries) InstanceAdminUsers ¶
func (q *Queries) InstanceAdminUsers(ctx context.Context) ([]InstanceAdminUsersRow, error)
Instance admin: users, workspaces, policies, instance settings and updates.
func (*Queries) InstanceAdminUsersInGrace ¶
func (q *Queries) InstanceAdminUsersInGrace(ctx context.Context) ([]InstanceAdminUsersInGraceRow, error)
People in a two-factor grace period without a second factor yet.
func (*Queries) InstanceAdminWorkspace ¶
func (*Queries) InstanceAdminWorkspaces ¶
func (q *Queries) InstanceAdminWorkspaces(ctx context.Context) ([]InstanceAdminWorkspacesRow, error)
Live workspaces and the ones deleted within the 7-day restore hold.
func (*Queries) InstanceAuditCount ¶
func (*Queries) InstanceAuditExport ¶
func (q *Queries) InstanceAuditExport(ctx context.Context, arg InstanceAuditExportParams) ([]InstanceAuditExportRow, error)
Same filters as InstanceAuditList, with before/after for exports.
func (*Queries) InstanceAuditGet ¶
func (*Queries) InstanceAuditList ¶
func (q *Queries) InstanceAuditList(ctx context.Context, arg InstanceAuditListParams) ([]InstanceAuditListRow, error)
Instance admin › Audit log: every workspace's entries and the instance-level ones (workspace_id IS NULL), with the same filters as the workspace view plus a workspace filter.
func (*Queries) InstanceAuditRelated ¶
func (q *Queries) InstanceAuditRelated(ctx context.Context, arg InstanceAuditRelatedParams) ([]InstanceAuditRelatedRow, error)
Other entries about the same target close in time, for "Related:".
func (*Queries) InstanceAuditSetRetention ¶
func (*Queries) InstanceAuditStreamAdvance ¶
func (q *Queries) InstanceAuditStreamAdvance(ctx context.Context, arg InstanceAuditStreamAdvanceParams) error
func (*Queries) InstanceAuditStreamBatch ¶
func (q *Queries) InstanceAuditStreamBatch(ctx context.Context, arg InstanceAuditStreamBatchParams) ([]AuditEvent, error)
func (*Queries) InstanceAuditStreamConfigure ¶
func (q *Queries) InstanceAuditStreamConfigure(ctx context.Context, arg InstanceAuditStreamConfigureParams) error
func (*Queries) InstanceAuditStreamSetStatus ¶
func (*Queries) InstanceAuditStreamState ¶
func (q *Queries) InstanceAuditStreamState(ctx context.Context) (InstanceAuditStreamStateRow, error)
func (*Queries) InstanceAuditWorkspaceStreams ¶
func (q *Queries) InstanceAuditWorkspaceStreams(ctx context.Context) ([]InstanceAuditWorkspaceStreamsRow, error)
Workspaces that stream their own log, for "Streaming" on the instance view.
func (*Queries) InvalidatePasswordResets ¶
func (*Queries) KeysAgentActions ¶
func (q *Queries) KeysAgentActions(ctx context.Context, arg KeysAgentActionsParams) ([]KeysAgentActionsRow, error)
func (*Queries) KeysByToken ¶
func (*Queries) KeysCountActive ¶
func (*Queries) KeysCreate ¶
func (q *Queries) KeysCreate(ctx context.Context, arg KeysCreateParams) (KeysCreateRow, error)
func (*Queries) KeysDelete ¶
Only expired or revoked keys can be deleted (the audit log keeps their history).
func (*Queries) KeysFirstRejection ¶
func (*Queries) KeysGet ¶
func (q *Queries) KeysGet(ctx context.Context, arg KeysGetParams) (KeysGetRow, error)
func (*Queries) KeysList ¶
func (q *Queries) KeysList(ctx context.Context, arg KeysListParams) ([]KeysListRow, error)
API keys and MCP agents. Both live in api_keys (kind api_key | mcp_agent).
func (*Queries) KeysRecordRejection ¶
func (q *Queries) KeysRecordRejection(ctx context.Context, arg KeysRecordRejectionParams) error
func (*Queries) KeysRejections ¶
func (q *Queries) KeysRejections(ctx context.Context, apiKeyID uuid.UUID) (KeysRejectionsRow, error)
Calls rejected in the last 7 days, with the busiest client address.
func (*Queries) KeysRevoke ¶
func (*Queries) KeysTouch ¶
func (q *Queries) KeysTouch(ctx context.Context, arg KeysTouchParams) error
func (*Queries) LastAuditAt ¶
When an action was last recorded for a target (throttles repeated emails).
func (*Queries) LastDeliverabilityAssetCheckAt ¶
func (*Queries) LastPasswordResetAt ¶
func (*Queries) LastRecoveryCodeUse ¶
func (*Queries) LatestDeliverabilityCheckRun ¶
func (*Queries) LatestFinishedDeliverabilityCheckRun ¶
func (q *Queries) LatestFinishedDeliverabilityCheckRun(ctx context.Context, arg LatestFinishedDeliverabilityCheckRunParams) (DeliverabilityCheckRun, error)
func (*Queries) LatestFinishedImport ¶
func (*Queries) ListAPIKeys ¶
func (q *Queries) ListAPIKeys(ctx context.Context, arg ListAPIKeysParams) ([]ListAPIKeysRow, error)
func (*Queries) ListAuditEvents ¶
func (q *Queries) ListAuditEvents(ctx context.Context, arg ListAuditEventsParams) ([]AuditEvent, error)
func (*Queries) ListAutomationAlerts ¶
func (q *Queries) ListAutomationAlerts(ctx context.Context, workspaceID uuid.UUID) ([]ListAutomationAlertsRow, error)
Open alerts, held sending first: nothing goes out until it is fixed.
func (*Queries) ListAutomationEmails ¶
func (*Queries) ListAutomationHeldAlerts ¶
func (q *Queries) ListAutomationHeldAlerts(ctx context.Context) ([]ListAutomationHeldAlertsRow, error)
func (*Queries) ListAutomationPublishedGraphs ¶
func (*Queries) ListAutomationRunsForMigration ¶
func (q *Queries) ListAutomationRunsForMigration(ctx context.Context, arg ListAutomationRunsForMigrationParams) ([]ListAutomationRunsForMigrationRow, error)
func (*Queries) ListAutomationVersions ¶
func (*Queries) ListAutomationWebhookCalls ¶
func (q *Queries) ListAutomationWebhookCalls(ctx context.Context, arg ListAutomationWebhookCallsParams) ([]ListAutomationWebhookCallsRow, error)
func (*Queries) ListAutomations ¶
func (q *Queries) ListAutomations(ctx context.Context, workspaceID uuid.UUID) ([]ListAutomationsRow, error)
Automations: flows, versions, runs, step stats, emails, trigger events, webhook calls, step secrets and alerts. Every flow of a workspace with its live and draft graphs: live first, then drafts, then paused, most recently changed first.
func (*Queries) ListCampaignIncidentSummaries ¶
func (*Queries) ListCampaignRouteShares ¶
func (q *Queries) ListCampaignRouteShares(ctx context.Context, campaignIds []uuid.UUID) ([]ListCampaignRouteSharesRow, error)
Per-provider share of each campaign: planned recipients and what was sent.
func (*Queries) ListCampaigns ¶
func (q *Queries) ListCampaigns(ctx context.Context, arg ListCampaignsParams) ([]ListCampaignsRow, error)
One page of the campaigns list. Status groups: drafts = draft, approval, approved; sending = sending, paused; sent = sent, cancelled, failed.
func (*Queries) ListComposerSenders ¶
func (*Queries) ListComposerVersions ¶
func (q *Queries) ListComposerVersions(ctx context.Context, arg ListComposerVersionsParams) ([]ListComposerVersionsRow, error)
func (*Queries) ListConnectedHostRepute ¶
Workspaces whose HostRepute connection the hourly sync refreshes.
func (*Queries) ListCustomFields ¶
func (*Queries) ListDeletedAt ¶
func (*Queries) ListDeliverabilityAssetChecks ¶
func (*Queries) ListDeliverabilityBlocklistResults ¶
func (q *Queries) ListDeliverabilityBlocklistResults(ctx context.Context, workspaceID uuid.UUID) ([]BlocklistResult, error)
Every blocklist result of a workspace, most important first: listings, then by the source's rank.
func (*Queries) ListDeliverabilityDMARCReports ¶
func (q *Queries) ListDeliverabilityDMARCReports(ctx context.Context, arg ListDeliverabilityDMARCReportsParams) ([]DmarcReport, error)
func (*Queries) ListDeliverabilityIncidents ¶
func (q *Queries) ListDeliverabilityIncidents(ctx context.Context, arg ListDeliverabilityIncidentsParams) ([]ListDeliverabilityIncidentsRow, error)
The incident timeline. An incident without an explicit campaign is linked to the campaign that was sending through its provider when it happened.
func (*Queries) ListDeliverabilityPostmasterDays ¶
func (q *Queries) ListDeliverabilityPostmasterDays(ctx context.Context, arg ListDeliverabilityPostmasterDaysParams) ([]PostmasterDaily, error)
func (*Queries) ListDeliverabilitySNDSDays ¶
func (*Queries) ListEmailTemplates ¶
func (q *Queries) ListEmailTemplates(ctx context.Context, arg ListEmailTemplatesParams) ([]ListEmailTemplatesRow, error)
func (*Queries) ListGrowthSince ¶
func (q *Queries) ListGrowthSince(ctx context.Context, arg ListGrowthSinceParams) ([]ListGrowthSinceRow, error)
func (*Queries) ListIdentities ¶
func (*Queries) ListIdentitiesWithProvider ¶
func (*Queries) ListImpactAutomations ¶
func (q *Queries) ListImpactAutomations(ctx context.Context, arg ListImpactAutomationsParams) ([]ListImpactAutomationsRow, error)
Live automations that start when someone joins the list.
func (*Queries) ListImpactCampaigns ¶
func (q *Queries) ListImpactCampaigns(ctx context.Context, arg ListImpactCampaignsParams) ([]ListImpactCampaignsRow, error)
Scheduled campaigns that send to the list.
func (*Queries) ListImpactForms ¶
func (q *Queries) ListImpactForms(ctx context.Context, arg ListImpactFormsParams) ([]ListImpactFormsRow, error)
Live signup forms that subscribe people to the list.
func (*Queries) ListImpactMembers ¶
func (q *Queries) ListImpactMembers(ctx context.Context, id uuid.UUID) (ListImpactMembersRow, error)
The list's subscribers, and how many of them another list keeps subscribed.
func (*Queries) ListImpactOtherLists ¶
func (q *Queries) ListImpactOtherLists(ctx context.Context, id uuid.UUID) ([]ListImpactOtherListsRow, error)
The other lists the subscribers are on, most shared first.
func (*Queries) ListImportLog ¶
func (*Queries) ListImports ¶
func (*Queries) ListListsWithCounts ¶
func (*Queries) ListMediaAssets ¶
func (q *Queries) ListMediaAssets(ctx context.Context, arg ListMediaAssetsParams) ([]ListMediaAssetsRow, error)
func (*Queries) ListMembers ¶
func (*Queries) ListMembersWithRoles ¶
func (q *Queries) ListMembersWithRoles(ctx context.Context, workspaceID uuid.UUID) ([]ListMembersWithRolesRow, error)
Used to name who can help when a permission is missing.
func (*Queries) ListMembershipsOfUser ¶
func (*Queries) ListNameTaken ¶
func (*Queries) ListNamesOfLists ¶
func (q *Queries) ListNamesOfLists(ctx context.Context, arg ListNamesOfListsParams) ([]ListNamesOfListsRow, error)
func (*Queries) ListNotificationPreferences ¶
func (*Queries) ListNotifications ¶
func (q *Queries) ListNotifications(ctx context.Context, arg ListNotificationsParams) ([]Notification, error)
Unread first, then newest first (the notification center and the bell).
func (*Queries) ListPasskeys ¶
func (*Queries) ListPauseAutomation ¶
func (*Queries) ListPauseForm ¶
func (*Queries) ListPendingEmailNotifications ¶
func (*Queries) ListPendingInvitations ¶
func (*Queries) ListRescheduleCampaign ¶
func (q *Queries) ListRescheduleCampaign(ctx context.Context, arg ListRescheduleCampaignParams) (int64, error)
Only a campaign nobody changed since deleting the list took it off the schedule.
func (*Queries) ListResumeAutomation ¶
func (*Queries) ListResumeForm ¶
Only a form still paused the way deleting the list left it.
func (*Queries) ListRetiringAutomationVersions ¶
func (q *Queries) ListRetiringAutomationVersions(ctx context.Context) ([]ListRetiringAutomationVersionsRow, error)
Published versions that are no longer live but not yet retired: they retire once their last contact leaves.
func (*Queries) ListSavedViews ¶
func (*Queries) ListSegments ¶
func (*Queries) ListTierMix ¶
Tier mix and size of each list (subscribed members).
func (*Queries) ListUnscheduleCampaign ¶
func (*Queries) ListUserSessions ¶
func (*Queries) ListUserWorkspaces ¶
func (*Queries) ListUsersWithPendingEmail ¶
func (*Queries) ListWorkspaceLists ¶
func (*Queries) ListWorkspaces ¶
func (*Queries) LiveAutomationsForTrigger ¶
func (q *Queries) LiveAutomationsForTrigger(ctx context.Context, arg LiveAutomationsForTriggerParams) ([]LiveAutomationsForTriggerRow, error)
Live flows a trigger event enrolls into.
func (*Queries) LockAutomation ¶
func (q *Queries) LockAutomation(ctx context.Context, arg LockAutomationParams) (Automation, error)
func (*Queries) LockDeletedList ¶
func (*Queries) MarkAllNotificationsRead ¶
func (*Queries) MarkAutomationEventProcessed ¶
func (q *Queries) MarkAutomationEventProcessed(ctx context.Context, arg MarkAutomationEventProcessedParams) error
func (*Queries) MarkHostReputeSynced ¶
func (q *Queries) MarkHostReputeSynced(ctx context.Context, arg MarkHostReputeSyncedParams) error
A sync finished: account, team, scopes and monitored assets as HostRepute reports them now.
func (*Queries) MarkHostReputeTokenRejected ¶
func (q *Queries) MarkHostReputeTokenRejected(ctx context.Context, arg MarkHostReputeTokenRejectedParams) (int64, error)
HostRepute rejected the token (revoked on its side, or expired and not refreshable). Only the first rejection is recorded.
func (*Queries) MarkNotificationRead ¶
func (*Queries) MarkReinviteRequested ¶
func (*Queries) McpAddSuppression ¶
func (*Queries) McpAutomations ¶
func (*Queries) McpBlocklists ¶
func (*Queries) McpCampaignByMailbox ¶
func (*Queries) McpCampaignByProvider ¶
func (*Queries) McpCampaignRoutes ¶
func (*Queries) McpCampaignTotals ¶
func (*Queries) McpCreateDraft ¶
func (q *Queries) McpCreateDraft(ctx context.Context, arg McpCreateDraftParams) (McpCreateDraftRow, error)
func (*Queries) McpCreateSegment ¶
func (q *Queries) McpCreateSegment(ctx context.Context, arg McpCreateSegmentParams) (McpCreateSegmentRow, error)
func (*Queries) McpDefaultRoutingRule ¶
func (q *Queries) McpDefaultRoutingRule(ctx context.Context, arg McpDefaultRoutingRuleParams) (McpDefaultRoutingRuleRow, error)
func (*Queries) McpFindCampaign ¶
func (q *Queries) McpFindCampaign(ctx context.Context, arg McpFindCampaignParams) (McpFindCampaignRow, error)
Read models behind the MCP server's tools. Writes go through the owning domain's rules; these queries only read or make small, audited changes. A campaign by id or by exact (case-insensitive) name, newest first.
func (*Queries) McpGetRoutingRule ¶
func (q *Queries) McpGetRoutingRule(ctx context.Context, arg McpGetRoutingRuleParams) (McpGetRoutingRuleRow, error)
func (*Queries) McpLatestReadiness ¶
func (*Queries) McpPostmaster ¶
func (*Queries) McpProviders ¶
func (*Queries) McpRouting ¶
func (*Queries) McpSearchContacts ¶
func (q *Queries) McpSearchContacts(ctx context.Context, arg McpSearchContactsParams) ([]McpSearchContactsRow, error)
func (*Queries) McpSendingDomains ¶
func (*Queries) McpSetRoutingSplits ¶
func (q *Queries) McpSetRoutingSplits(ctx context.Context, arg McpSetRoutingSplitsParams) error
func (*Queries) McpUpdateDraft ¶
func (q *Queries) McpUpdateDraft(ctx context.Context, arg McpUpdateDraftParams) (McpUpdateDraftRow, error)
func (*Queries) OpenAutomationAlert ¶
func (q *Queries) OpenAutomationAlert(ctx context.Context, arg OpenAutomationAlertParams) error
Records a failure: opens the alert or adds to the open one.
func (*Queries) OverviewCampaignRoutes ¶
func (*Queries) OverviewDraftCount ¶
func (*Queries) OverviewLatestReadiness ¶
func (*Queries) OverviewListChanges ¶
func (q *Queries) OverviewListChanges(ctx context.Context, arg OverviewListChangesParams) ([]OverviewListChangesRow, error)
Joins and departures across the workspace's lists in each 24-hour step since a time, counted the way List health counts a list's net growth (ListGrowthSince): joins of members still subscribed, and departures.
func (*Queries) OverviewNextScheduled ¶
func (q *Queries) OverviewNextScheduled(ctx context.Context, arg OverviewNextScheduledParams) (OverviewNextScheduledRow, error)
Overview (spec 7.1).
func (*Queries) PauseAutomation ¶
func (q *Queries) PauseAutomation(ctx context.Context, arg PauseAutomationParams) error
func (*Queries) ProvActiveFailovers ¶
func (*Queries) ProvAwaitingCampaigns ¶
func (q *Queries) ProvAwaitingCampaigns(ctx context.Context, arg ProvAwaitingCampaignsParams) ([]ProvAwaitingCampaignsRow, error)
func (*Queries) ProvAwaitingCount ¶
func (q *Queries) ProvAwaitingCount(ctx context.Context, arg ProvAwaitingCountParams) (ProvAwaitingCountRow, error)
func (*Queries) ProvAwaitingProviderIDs ¶
func (*Queries) ProvAwaitingStatus ¶
func (q *Queries) ProvAwaitingStatus(ctx context.Context, arg ProvAwaitingStatusParams) ([]ProvAwaitingStatusRow, error)
Messages a provider accepted with no event since (newest first).
func (*Queries) ProvBroadcastWeekly ¶
func (q *Queries) ProvBroadcastWeekly(ctx context.Context, arg ProvBroadcastWeeklyParams) (int64, error)
Broadcast recipients sent over the last weeks (campaign counters).
func (*Queries) ProvCallWindowTotals ¶
func (q *Queries) ProvCallWindowTotals(ctx context.Context, arg ProvCallWindowTotalsParams) ([]ProvCallWindowTotalsRow, error)
API calls, failures and messages per provider since a time (rolling windows).
func (*Queries) ProvCampaignRoutes ¶
func (*Queries) ProvDailyTotals ¶
func (q *Queries) ProvDailyTotals(ctx context.Context, arg ProvDailyTotalsParams) ([]ProvDailyTotalsRow, error)
Totals per provider over [since, until] (dates).
func (*Queries) ProvDisconnect ¶
func (*Queries) ProvEndFailovers ¶
func (q *Queries) ProvEndFailovers(ctx context.Context, arg ProvEndFailoversParams) ([]StreamFailover, error)
func (*Queries) ProvGetAny ¶
func (*Queries) ProvGetByWebhookToken ¶
func (*Queries) ProvHeldRoutes ¶
func (q *Queries) ProvHeldRoutes(ctx context.Context, arg ProvHeldRoutesParams) ([]ProvHeldRoutesRow, error)
Campaign shares held on a provider (Broadcasts waiting for a decision).
func (*Queries) ProvIncidentsSince ¶
func (*Queries) ProvInsertIncident ¶
func (q *Queries) ProvInsertIncident(ctx context.Context, arg ProvInsertIncidentParams) error
func (*Queries) ProvLastConfirmed ¶
func (q *Queries) ProvLastConfirmed(ctx context.Context, arg ProvLastConfirmedParams) ([]ProvLastConfirmedRow, error)
The newest message a provider reported on before its webhooks went quiet (the last row of "Messages awaiting status").
func (*Queries) ProvListActive ¶
Sending providers: connected providers, health inputs, actions. Query names start with Prov so they never collide with other domains.
func (*Queries) ProvListAllActive ¶
Every connected provider of every workspace (health and sync jobs).
func (*Queries) ProvMembersWithNames ¶
func (*Queries) ProvPurgeCallWindows ¶
func (*Queries) ProvRawEventsByHour ¶
func (q *Queries) ProvRawEventsByHour(ctx context.Context, arg ProvRawEventsByHourParams) ([]ProvRawEventsByHourRow, error)
Webhook events received per hour (webhook freshness chart).
func (*Queries) ProvRecordCall ¶
func (q *Queries) ProvRecordCall(ctx context.Context, arg ProvRecordCallParams) error
func (*Queries) ProvRecordDaily ¶
func (q *Queries) ProvRecordDaily(ctx context.Context, arg ProvRecordDailyParams) error
func (*Queries) ProvRecordOutcome ¶
func (q *Queries) ProvRecordOutcome(ctx context.Context, arg ProvRecordOutcomeParams) error
Delivery outcomes counted from normalized events (bounce and complaint rates).
func (*Queries) ProvReroutedByAutomation ¶
func (q *Queries) ProvReroutedByAutomation(ctx context.Context, arg ProvReroutedByAutomationParams) ([]ProvReroutedByAutomationRow, error)
Automation mail sent through a fallback since a time, per automation.
func (*Queries) ProvResolveIncidents ¶
func (q *Queries) ProvResolveIncidents(ctx context.Context, arg ProvResolveIncidentsParams) error
func (*Queries) ProvSendingCampaignsOn ¶
func (q *Queries) ProvSendingCampaignsOn(ctx context.Context, arg ProvSendingCampaignsOnParams) ([]ProvSendingCampaignsOnRow, error)
Campaigns sending through a provider right now.
func (*Queries) ProvSentByKind ¶
func (q *Queries) ProvSentByKind(ctx context.Context, arg ProvSentByKindParams) ([]ProvSentByKindRow, error)
System mail sent through a provider since a time, per kind.
func (*Queries) ProvSentSince ¶
func (q *Queries) ProvSentSince(ctx context.Context, arg ProvSentSinceParams) ([]ProvSentSinceRow, error)
Messages handed to each provider since a time, and since the provider's last webhook event (webhook freshness: mail went out but nothing came back).
func (*Queries) ProvSentThroughSince ¶
func (q *Queries) ProvSentThroughSince(ctx context.Context, arg ProvSentThroughSinceParams) (int64, error)
Mail of one stream a provider sent since a time (what failover moved to it).
func (*Queries) ProvSetRouteStatus ¶
func (*Queries) ProvStartFailover ¶
func (q *Queries) ProvStartFailover(ctx context.Context, arg ProvStartFailoverParams) error
func (*Queries) ProvStreamVolume ¶
func (q *Queries) ProvStreamVolume(ctx context.Context, arg ProvStreamVolumeParams) ([]ProvStreamVolumeRow, error)
Messages per stream over a window (volume estimates on the routing screen).
func (*Queries) ProvTouchLastEvent ¶
func (q *Queries) ProvTouchLastEvent(ctx context.Context, arg ProvTouchLastEventParams) error
func (*Queries) ProvUpdateCapabilities ¶
func (q *Queries) ProvUpdateCapabilities(ctx context.Context, arg ProvUpdateCapabilitiesParams) error
func (*Queries) ProvUpdateConfig ¶
func (q *Queries) ProvUpdateConfig(ctx context.Context, arg ProvUpdateConfigParams) error
func (*Queries) ProvUpdateCredentials ¶
func (q *Queries) ProvUpdateCredentials(ctx context.Context, arg ProvUpdateCredentialsParams) error
func (*Queries) ProvUpdateHealth ¶
func (q *Queries) ProvUpdateHealth(ctx context.Context, arg ProvUpdateHealthParams) error
func (*Queries) ProvUpdateSettings ¶
func (q *Queries) ProvUpdateSettings(ctx context.Context, arg ProvUpdateSettingsParams) error
func (*Queries) ProvUpdateTracking ¶
func (q *Queries) ProvUpdateTracking(ctx context.Context, arg ProvUpdateTrackingParams) error
func (*Queries) ProviderNames ¶
func (*Queries) PruneComposerVersions ¶
func (q *Queries) PruneComposerVersions(ctx context.Context, arg PruneComposerVersionsParams) (int64, error)
Keeps the newest @keep versions; the first version and anything that is not an autosave (restores, imports, ⌘S) are always kept.
func (*Queries) PublicBumpUnsubscribed ¶
func (q *Queries) PublicBumpUnsubscribed(ctx context.Context, arg PublicBumpUnsubscribedParams) error
func (*Queries) PublicCampaign ¶
func (q *Queries) PublicCampaign(ctx context.Context, arg PublicCampaignParams) (PublicCampaignRow, error)
func (*Queries) PublicInsertFeedback ¶
func (q *Queries) PublicInsertFeedback(ctx context.Context, arg PublicInsertFeedbackParams) error
func (*Queries) PublicInsertUnsubscribeEvent ¶
func (q *Queries) PublicInsertUnsubscribeEvent(ctx context.Context, arg PublicInsertUnsubscribeEventParams) error
func (*Queries) PublicLatestIssueSlug ¶
func (*Queries) PublicMessage ¶
func (*Queries) PublicScheduledCampaigns ¶
func (q *Queries) PublicScheduledCampaigns(ctx context.Context, arg PublicScheduledCampaignsParams) ([]PublicScheduledCampaignsRow, error)
Upcoming sends, for "Next issue: Tuesday 14 October" on the confirmation page.
func (*Queries) PublicSettingsByDomain ¶
func (*Queries) PublicSettingsDomainTaken ¶
func (*Queries) PublicSettingsDomainsToCheck ¶
func (q *Queries) PublicSettingsDomainsToCheck(ctx context.Context, before *time.Time) ([]PublicSettingsDomainsToCheckRow, error)
Domains waiting for DNS (every run) and verified ones (once a day).
func (*Queries) PublicSettingsEnsure ¶
func (*Queries) PublicSettingsGet ¶
func (*Queries) PublicSettingsLogo ¶
func (*Queries) PublicSettingsSetDomain ¶
func (q *Queries) PublicSettingsSetDomain(ctx context.Context, arg PublicSettingsSetDomainParams) error
func (*Queries) PublicSettingsSetHostedForm ¶
func (q *Queries) PublicSettingsSetHostedForm(ctx context.Context, arg PublicSettingsSetHostedFormParams) error
func (*Queries) PublicSettingsSetLogo ¶
func (q *Queries) PublicSettingsSetLogo(ctx context.Context, arg PublicSettingsSetLogoParams) error
func (*Queries) PublicSettingsSetPages ¶
func (q *Queries) PublicSettingsSetPages(ctx context.Context, arg PublicSettingsSetPagesParams) error
func (*Queries) PublicSettingsSetTurnstile ¶
func (q *Queries) PublicSettingsSetTurnstile(ctx context.Context, arg PublicSettingsSetTurnstileParams) error
func (*Queries) PublicSettingsTouch ¶
func (q *Queries) PublicSettingsTouch(ctx context.Context, arg PublicSettingsTouchParams) error
func (*Queries) PublicSettingsTurnstileError ¶
func (q *Queries) PublicSettingsTurnstileError(ctx context.Context, arg PublicSettingsTurnstileErrorParams) error
The widget on a challenge page reported an error (wrong site key, domain not allowed): spam protection falls back until someone fixes the key.
func (*Queries) PublicUnsubscribeStats ¶
func (q *Queries) PublicUnsubscribeStats(ctx context.Context, arg PublicUnsubscribeStatsParams) (PublicUnsubscribeStatsRow, error)
The unsubscribe page tab: departures and answers in the last 30 days.
func (*Queries) PublishAutomationVersion ¶
func (q *Queries) PublishAutomationVersion(ctx context.Context, arg PublishAutomationVersionParams) error
func (*Queries) PurgeAuditEvents ¶
func (*Queries) PurgeAutomationEvents ¶
func (*Queries) PurgeAutomationWebhookCalls ¶
func (*Queries) PurgeDeletedLists ¶
Past the 30 days a deleted list can be restored: the list and its memberships go for good. Contacts and suppressions stay.
func (*Queries) PurgeInstanceAuditEvents ¶
Retention of the instance-level entries (inside the purge transaction).
func (*Queries) PutMXCache ¶
func (q *Queries) PutMXCache(ctx context.Context, arg PutMXCacheParams) error
func (*Queries) ReadinessAcceptUnknown ¶
func (q *Queries) ReadinessAcceptUnknown(ctx context.Context, arg ReadinessAcceptUnknownParams) error
func (*Queries) ReadinessCampaign ¶
func (q *Queries) ReadinessCampaign(ctx context.Context, arg ReadinessCampaignParams) (ReadinessCampaignRow, error)
A campaign with its sender and sending domain.
func (*Queries) ReadinessCampaignWorkspace ¶
The workspace of a campaign (the sending engine asks by campaign id).
func (*Queries) ReadinessEndProgress ¶
func (q *Queries) ReadinessEndProgress(ctx context.Context, arg ReadinessEndProgressParams) error
func (*Queries) ReadinessGetProgress ¶
func (*Queries) ReadinessGetRun ¶
func (q *Queries) ReadinessGetRun(ctx context.Context, arg ReadinessGetRunParams) (ReadinessGetRunRow, error)
func (*Queries) ReadinessInsertRoute ¶
func (q *Queries) ReadinessInsertRoute(ctx context.Context, arg ReadinessInsertRouteParams) error
func (*Queries) ReadinessInsertRun ¶
func (q *Queries) ReadinessInsertRun(ctx context.Context, arg ReadinessInsertRunParams) error
func (*Queries) ReadinessLatestRun ¶
func (*Queries) ReadinessListCount ¶
Lists of the workspace, to tell "All subscribers" from a few lists.
func (*Queries) ReadinessListNames ¶
func (*Queries) ReadinessPruneRuns ¶
Keeps the 20 latest runs of a campaign and any run an approval refers to.
func (*Queries) ReadinessRecipients ¶
func (q *Queries) ReadinessRecipients(ctx context.Context, arg ReadinessRecipientsParams) ([]ReadinessRecipientsRow, error)
The audience before suppressions and exclusions by address: active contacts subscribed to the lists (or in the segments), minus excluded lists and segments, with what the counts need per contact. A deleted list (restorable for 30 days) adds nobody; as an exclusion it still excludes.
func (*Queries) ReadinessReplaceRoutes ¶
The planned split of an unsent campaign, refreshed by each run.
func (*Queries) ReadinessScheduledDue ¶
func (q *Queries) ReadinessScheduledDue(ctx context.Context, arg ReadinessScheduledDueParams) ([]ReadinessScheduledDueRow, error)
Scheduled campaigns starting within the window whose latest run is older than the window (checks run again 15 minutes before the send).
func (*Queries) ReadinessSegmentNames ¶
func (*Queries) ReadinessSetAudience ¶
func (q *Queries) ReadinessSetAudience(ctx context.Context, arg ReadinessSetAudienceParams) error
func (*Queries) ReadinessSetAudienceCount ¶
func (q *Queries) ReadinessSetAudienceCount(ctx context.Context, arg ReadinessSetAudienceCountParams) error
func (*Queries) ReadinessSetContentSettings ¶
func (q *Queries) ReadinessSetContentSettings(ctx context.Context, arg ReadinessSetContentSettingsParams) error
func (*Queries) ReadinessSetFingerprint ¶
func (q *Queries) ReadinessSetFingerprint(ctx context.Context, arg ReadinessSetFingerprintParams) error
A run confirmed for a new schedule at send time describes the campaign as scheduled.
func (*Queries) ReadinessSetRouteOverride ¶
func (q *Queries) ReadinessSetRouteOverride(ctx context.Context, arg ReadinessSetRouteOverrideParams) error
func (*Queries) ReadinessSetSendSettings ¶
func (q *Queries) ReadinessSetSendSettings(ctx context.Context, arg ReadinessSetSendSettingsParams) error
func (*Queries) ReadinessStartProgress ¶
func (q *Queries) ReadinessStartProgress(ctx context.Context, arg ReadinessStartProgressParams) (uuid.UUID, error)
Starts a run unless one is already running (a run that stopped updating for two minutes is taken over).
func (*Queries) ReadinessTestSends ¶
func (q *Queries) ReadinessTestSends(ctx context.Context, arg ReadinessTestSendsParams) ([]ReadinessTestSendsRow, error)
The latest test emails of a campaign, from the audit log.
func (*Queries) ReadinessUpdateProgress ¶
func (q *Queries) ReadinessUpdateProgress(ctx context.Context, arg ReadinessUpdateProgressParams) error
func (*Queries) RecentSentCampaigns ¶
func (q *Queries) RecentSentCampaigns(ctx context.Context, workspaceID uuid.UUID) ([]RecentSentCampaignsRow, error)
Campaigns a segment can refer to ("Opened campaign …").
func (*Queries) RecordHostReputeSyncError ¶
func (q *Queries) RecordHostReputeSyncError(ctx context.Context, arg RecordHostReputeSyncErrorParams) error
func (*Queries) RecordSignInFailure ¶
func (q *Queries) RecordSignInFailure(ctx context.Context, arg RecordSignInFailureParams) (RecordSignInFailureRow, error)
func (*Queries) RecordSignInSuccess ¶
func (*Queries) RecordSignInThrottleFailure ¶
func (q *Queries) RecordSignInThrottleFailure(ctx context.Context, arg RecordSignInThrottleFailureParams) (SignInThrottle, error)
func (*Queries) RecoveryCodeStats ¶
func (*Queries) RefreshInvitation ¶
func (q *Queries) RefreshInvitation(ctx context.Context, arg RefreshInvitationParams) (Invitation, error)
func (*Queries) ReleaseAutomationHeldMessages ¶
func (*Queries) RemoteAdapterConnected ¶
func (*Queries) RemoteAdapterDelete ¶
func (*Queries) RemoteAdapterGet ¶
func (*Queries) RemoteAdapterGetByKey ¶
func (*Queries) RemoteAdapterInsert ¶
func (q *Queries) RemoteAdapterInsert(ctx context.Context, arg RemoteAdapterInsertParams) error
func (*Queries) RemoteAdapterList ¶
func (q *Queries) RemoteAdapterList(ctx context.Context) ([]RemoteAdapterListRow, error)
Community adapters of kind "remote" and their runtime (internal/providers/remote).
func (*Queries) RemoteAdapterUpdateManifest ¶
func (q *Queries) RemoteAdapterUpdateManifest(ctx context.Context, arg RemoteAdapterUpdateManifestParams) error
func (*Queries) RemoteRuntimeCreate ¶
func (q *Queries) RemoteRuntimeCreate(ctx context.Context, arg RemoteRuntimeCreateParams) error
func (*Queries) RemoteRuntimeRecordCheck ¶
func (q *Queries) RemoteRuntimeRecordCheck(ctx context.Context, arg RemoteRuntimeRecordCheckParams) error
func (*Queries) RemoteRuntimeSetEndpoint ¶
func (q *Queries) RemoteRuntimeSetEndpoint(ctx context.Context, arg RemoteRuntimeSetEndpointParams) error
func (*Queries) RemoteRuntimeSetSecret ¶
func (q *Queries) RemoteRuntimeSetSecret(ctx context.Context, arg RemoteRuntimeSetSecretParams) error
func (*Queries) RemoteRuntimeTouch ¶
func (*Queries) RenamePasskey ¶
func (q *Queries) RenamePasskey(ctx context.Context, arg RenamePasskeyParams) error
func (*Queries) ReportBounceCodes ¶
func (q *Queries) ReportBounceCodes(ctx context.Context, arg ReportBounceCodesParams) ([]ReportBounceCodesRow, error)
Bounces of a campaign by taxonomy class, sending provider and the provider's original event and code, with how many of the bounced addresses are on the shared suppression list now.
func (*Queries) ReportBounceDiagnostics ¶
func (q *Queries) ReportBounceDiagnostics(ctx context.Context, arg ReportBounceDiagnosticsParams) ([]ReportBounceDiagnosticsRow, error)
The diagnostics behind one group of bounce classes (the Review dialog). Addresses are never returned: an address inside a provider's words reads "<address>", so the same answer for many recipients is one line.
func (*Queries) ReportBounceRecipients ¶
func (q *Queries) ReportBounceRecipients(ctx context.Context, arg ReportBounceRecipientsParams) ([]string, error)
Bounced addresses of some classes that aren't suppressed yet (for "Add to suppression"). Never sent to the browser.
func (*Queries) ReportCampaign ¶
func (q *Queries) ReportCampaign(ctx context.Context, arg ReportCampaignParams) (ReportCampaignRow, error)
Campaign reports (spec 7.7, 5.5) and read-only report links.
func (*Queries) ReportCounterCells ¶
func (q *Queries) ReportCounterCells(ctx context.Context, campaignID uuid.UUID) ([]ReportCounterCellsRow, error)
Final or live counters per sending provider × mailbox provider × A/B variant, with the provider's name for the per-provider comparison.
func (*Queries) ReportHourly ¶
func (q *Queries) ReportHourly(ctx context.Context, arg ReportHourlyParams) ([]ReportHourlyRow, error)
func (*Queries) ReportIngestBacklog ¶
func (q *Queries) ReportIngestBacklog(ctx context.Context, arg ReportIngestBacklogParams) ([]ReportIngestBacklogRow, error)
Provider events received but not normalized yet, per provider: when the normalization job falls behind, live counts lag by that much.
func (*Queries) ReportLatestReadiness ¶
func (*Queries) ReportLatestSent ¶
func (q *Queries) ReportLatestSent(ctx context.Context, arg ReportLatestSentParams) (ReportLatestSentRow, error)
The most recent campaign with results, for "See the last report instead".
func (*Queries) ReportLinks ¶
func (*Queries) ReportRoutes ¶
func (q *Queries) ReportRoutes(ctx context.Context, campaignID uuid.UUID) ([]ReportRoutesRow, error)
Each sending provider's share of the send: what was planned, the cost and the median time to delivery (stored at completion, else computed from the route's messages).
func (*Queries) ReportShareByToken ¶
func (q *Queries) ReportShareByToken(ctx context.Context, tokenHash []byte) (ReportShareByTokenRow, error)
A link by its token hash with its campaign and workspace (the public page).
func (*Queries) ReportShareCreate ¶
func (q *Queries) ReportShareCreate(ctx context.Context, arg ReportShareCreateParams) (ReportShare, error)
func (*Queries) ReportShareGet ¶
func (q *Queries) ReportShareGet(ctx context.Context, arg ReportShareGetParams) (ReportShare, error)
func (*Queries) ReportShareList ¶
func (q *Queries) ReportShareList(ctx context.Context, arg ReportShareListParams) ([]ReportShareListRow, error)
Active links of a campaign, newest first, with who made them.
func (*Queries) ReportShareRevoke ¶
func (q *Queries) ReportShareRevoke(ctx context.Context, arg ReportShareRevokeParams) (ReportShare, error)
func (*Queries) ReportShareTouch ¶
func (q *Queries) ReportShareTouch(ctx context.Context, arg ReportShareTouchParams) error
func (*Queries) ReportUnsubscribeReasons ¶
func (q *Queries) ReportUnsubscribeReasons(ctx context.Context, arg ReportUnsubscribeReasonsParams) ([]ReportUnsubscribeReasonsRow, error)
func (*Queries) ReportWarmupAt ¶
func (q *Queries) ReportWarmupAt(ctx context.Context, providerIds []uuid.UUID) ([]ReportWarmupAtRow, error)
Warm-up plans of the campaign's providers (the day each was on when the campaign was sent).
func (*Queries) ResetUserTwoFactor ¶
func (*Queries) ResolveAutomationAlert ¶
func (*Queries) RestoreList ¶
func (*Queries) ResumeAutomation ¶
func (q *Queries) ResumeAutomation(ctx context.Context, arg ResumeAutomationParams) error
func (*Queries) RetireAutomationVersion ¶
func (q *Queries) RetireAutomationVersion(ctx context.Context, arg RetireAutomationVersionParams) error
func (*Queries) RevokeAPIKey ¶
func (*Queries) RevokeAPIKeysCreatedBy ¶
func (*Queries) RevokeAllUserSessions ¶
func (*Queries) RevokeInvitation ¶
func (*Queries) RevokeOtherSessions ¶
func (*Queries) RevokeSession ¶
func (*Queries) RolesCreate ¶
func (*Queries) RolesDelete ¶
func (*Queries) RolesGet ¶
func (q *Queries) RolesGet(ctx context.Context, arg RolesGetParams) (RolesGetRow, error)
func (*Queries) RolesKeyTaken ¶
func (*Queries) RolesKeysOfMembers ¶
func (q *Queries) RolesKeysOfMembers(ctx context.Context, arg RolesKeysOfMembersParams) ([]RolesKeysOfMembersRow, error)
Active API keys and MCP agents created by the given users in the workspace.
func (*Queries) RolesMembers ¶
func (q *Queries) RolesMembers(ctx context.Context, workspaceID uuid.UUID) ([]RolesMembersRow, error)
Members of every role in the workspace (member counts and impact previews).
func (*Queries) RolesNameTaken ¶
func (*Queries) RolesPendingInvites ¶
func (*Queries) RolesUpdate ¶
func (*Queries) RoutingBroadcastSizes ¶
func (q *Queries) RoutingBroadcastSizes(ctx context.Context, arg RoutingBroadcastSizesParams) (RoutingBroadcastSizesRow, error)
Smallest and largest broadcast audience over a window ("31,988 to 48,213 recipients per send").
func (*Queries) RoutingContact ¶
func (q *Queries) RoutingContact(ctx context.Context, arg RoutingContactParams) (RoutingContactRow, error)
func (*Queries) RoutingDeleteRules ¶
func (*Queries) RoutingInsertRule ¶
func (q *Queries) RoutingInsertRule(ctx context.Context, arg RoutingInsertRuleParams) error
func (*Queries) RoutingIsSuppressed ¶
func (*Queries) RoutingListPolicies ¶
func (*Queries) RoutingListRules ¶
func (q *Queries) RoutingListRules(ctx context.Context, workspaceID uuid.UUID) ([]RoutingRule, error)
Routing rules, failover policies and the route tester.
func (*Queries) RoutingLists ¶
func (*Queries) RoutingSaved ¶
When the routing was last saved and by whom.
func (*Queries) RoutingSenderDomains ¶
func (*Queries) RoutingUpsertPolicy ¶
func (q *Queries) RoutingUpsertPolicy(ctx context.Context, arg RoutingUpsertPolicyParams) error
func (*Queries) RunningDeliverabilityCheckRun ¶
func (q *Queries) RunningDeliverabilityCheckRun(ctx context.Context, arg RunningDeliverabilityCheckRunParams) (DeliverabilityCheckRun, error)
A run still in progress (runs older than ten minutes are considered dead).
func (*Queries) SSOCreateIdentity ¶
func (q *Queries) SSOCreateIdentity(ctx context.Context, arg SSOCreateIdentityParams) (UserIdentity, error)
func (*Queries) SSOCreateMember ¶
func (q *Queries) SSOCreateMember(ctx context.Context, arg SSOCreateMemberParams) error
func (*Queries) SSOCreateProvider ¶
func (q *Queries) SSOCreateProvider(ctx context.Context, arg SSOCreateProviderParams) (SsoProvider, error)
func (*Queries) SSOCreateUser ¶
func (*Queries) SSODeleteProvider ¶
func (*Queries) SSODomainEnforcedElsewhere ¶
func (q *Queries) SSODomainEnforcedElsewhere(ctx context.Context, arg SSODomainEnforcedElsewhereParams) (string, error)
Another enabled provider already enforces one of these domains.
func (*Queries) SSODomainUsers ¶
func (q *Queries) SSODomainUsers(ctx context.Context, arg SSODomainUsersParams) ([]SSODomainUsersRow, error)
Active accounts with an email at one of the domains, with what they sign in with today.
func (*Queries) SSOGroupMemberships ¶
func (q *Queries) SSOGroupMemberships(ctx context.Context, userID uuid.UUID) ([]SSOGroupMembershipsRow, error)
A person's active memberships that a group mapping granted, for the re-application of the mappings at every sign-in.
func (*Queries) SSOIdentityUsers ¶
func (q *Queries) SSOIdentityUsers(ctx context.Context, providerID *uuid.UUID) ([]SSOIdentityUsersRow, error)
The people who sign in with this provider (for the enforcement preview).
func (*Queries) SSOMarkBreakGlass ¶
func (*Queries) SSOMembership ¶
func (q *Queries) SSOMembership(ctx context.Context, arg SSOMembershipParams) (SSOMembershipRow, error)
func (*Queries) SSOOwners ¶
func (q *Queries) SSOOwners(ctx context.Context) ([]SSOOwnersRow, error)
Active Owners of live workspaces, oldest membership first.
func (*Queries) SSOPendingInvitation ¶
func (*Queries) SSOProvider ¶
func (*Queries) SSOProviderBySlug ¶
func (*Queries) SSOProviderMemberCounts ¶
func (q *Queries) SSOProviderMemberCounts(ctx context.Context) ([]SSOProviderMemberCountsRow, error)
How many active people sign in with each SSO provider.
func (*Queries) SSOProviders ¶
func (q *Queries) SSOProviders(ctx context.Context) ([]SsoProvider, error)
SSO providers, social sign-in and the identities they link.
func (*Queries) SSOSetClientSecret ¶
func (q *Queries) SSOSetClientSecret(ctx context.Context, arg SSOSetClientSecretParams) error
func (*Queries) SSOSetDiscovery ¶
func (q *Queries) SSOSetDiscovery(ctx context.Context, arg SSOSetDiscoveryParams) error
func (*Queries) SSOSetEnforcement ¶
func (q *Queries) SSOSetEnforcement(ctx context.Context, arg SSOSetEnforcementParams) error
func (*Queries) SSOSetLastTest ¶
func (q *Queries) SSOSetLastTest(ctx context.Context, arg SSOSetLastTestParams) error
func (*Queries) SSOSetMemberRole ¶
func (q *Queries) SSOSetMemberRole(ctx context.Context, arg SSOSetMemberRoleParams) error
func (*Queries) SSOSetPreset ¶
func (q *Queries) SSOSetPreset(ctx context.Context, arg SSOSetPresetParams) error
func (*Queries) SSOSetStatus ¶
func (q *Queries) SSOSetStatus(ctx context.Context, arg SSOSetStatusParams) (SsoProvider, error)
func (*Queries) SSOSignInFailures ¶
func (q *Queries) SSOSignInFailures(ctx context.Context, providerID string) ([]SSOSignInFailuresRow, error)
Recent sign-in rejections for a provider (setup page "sign-ins rejected").
func (*Queries) SSOSocialIdentityCounts ¶
func (q *Queries) SSOSocialIdentityCounts(ctx context.Context) ([]SSOSocialIdentityCountsRow, error)
How many people linked each social sign-in provider.
func (*Queries) SSOTouchIdentity ¶
func (q *Queries) SSOTouchIdentity(ctx context.Context, arg SSOTouchIdentityParams) error
func (*Queries) SSOUpdateProvider ¶
func (q *Queries) SSOUpdateProvider(ctx context.Context, arg SSOUpdateProviderParams) (SsoProvider, error)
func (*Queries) SSOUserIdentityOfKind ¶
func (q *Queries) SSOUserIdentityOfKind(ctx context.Context, arg SSOUserIdentityOfKindParams) (UserIdentity, error)
func (*Queries) SSOWorkspaceLists ¶
func (q *Queries) SSOWorkspaceLists(ctx context.Context) ([]SSOWorkspaceListsRow, error)
The lists a group mapping can be scoped to, per live workspace.
func (*Queries) SSOWorkspaceRoles ¶
func (q *Queries) SSOWorkspaceRoles(ctx context.Context) ([]SSOWorkspaceRolesRow, error)
Workspaces and their roles, for the JIT default and group mapping pickers.
func (*Queries) SaveComposerContent ¶
func (q *Queries) SaveComposerContent(ctx context.Context, arg SaveComposerContentParams) error
func (*Queries) ScopeTotalsSince ¶
func (q *Queries) ScopeTotalsSince(ctx context.Context, arg ScopeTotalsSinceParams) ([]ScopeTotalsSinceRow, error)
30-day sums per list or followed view.
func (*Queries) SegmentMemberIDs ¶
func (*Queries) SenderCampaignCount ¶
Campaigns that are not sent yet and use the sender (deleting it clears them).
func (*Queries) SenderCreate ¶
func (*Queries) SenderDelete ¶
func (*Queries) SenderGet ¶
func (q *Queries) SenderGet(ctx context.Context, arg SenderGetParams) (SenderGetRow, error)
func (*Queries) SenderGetByEmail ¶
func (q *Queries) SenderGetByEmail(ctx context.Context, arg SenderGetByEmailParams) (SenderGetByEmailRow, error)
func (*Queries) SenderList ¶
func (*Queries) SenderListByDomain ¶
func (*Queries) SenderSetFooterAddress ¶
func (q *Queries) SenderSetFooterAddress(ctx context.Context, arg SenderSetFooterAddressParams) error
The publisher's postal address (branding.footer_address), shown in email footers and on public pages.
func (*Queries) SenderSetSendingDefaults ¶
func (q *Queries) SenderSetSendingDefaults(ctx context.Context, arg SenderSetSendingDefaultsParams) error
func (*Queries) SenderSetStreamDefaults ¶
func (q *Queries) SenderSetStreamDefaults(ctx context.Context, arg SenderSetStreamDefaultsParams) error
func (*Queries) SenderSetVerification ¶
func (q *Queries) SenderSetVerification(ctx context.Context, arg SenderSetVerificationParams) error
func (*Queries) SenderUpdate ¶
func (q *Queries) SenderUpdate(ctx context.Context, arg SenderUpdateParams) error
func (*Queries) SenderWorkspaceDefaults ¶
func (*Queries) SendingABTotals ¶
func (*Queries) SendingActiveSends ¶
func (q *Queries) SendingActiveSends(ctx context.Context) ([]SendingActiveSendsRow, error)
Sends in progress, with what keeps a paused one paused: a person's pause or an incident still waiting for a decision.
func (*Queries) SendingAddPlanned ¶
func (q *Queries) SendingAddPlanned(ctx context.Context, arg SendingAddPlannedParams) error
func (*Queries) SendingAddRouteCost ¶
func (q *Queries) SendingAddRouteCost(ctx context.Context, arg SendingAddRouteCostParams) error
func (*Queries) SendingApproval ¶
func (q *Queries) SendingApproval(ctx context.Context, campaignID *uuid.UUID) (SendingApprovalRow, error)
The approval a campaign's send went out under, with the approver.
func (*Queries) SendingAudienceAddresses ¶
func (q *Queries) SendingAudienceAddresses(ctx context.Context, arg SendingAudienceAddressesParams) ([]SendingAudienceAddressesRow, error)
The addresses of the audience members who can receive the send (active, not suppressed, in no excluded list or segment), so the audience build can leave out a second contact that reaches the same mailbox (an alias). The order keeps the one the sunset policy didn't stop, then the oldest. A deleted list adds nobody; as an exclusion it still excludes.
func (*Queries) SendingAudiencePage ¶
func (q *Queries) SendingAudiencePage(ctx context.Context, arg SendingAudiencePageParams) ([]SendingAudiencePageRow, error)
One page of the audience after the cursor, in contact id order, with everything that decides whether each member receives the campaign. It reads the audience, not the workspace's contacts, and looks up the page's memberships once, so a page costs the same whatever the workspace's size or the planner's statistics right after a large import. gone marks a member whose contact was erased or isn't the workspace's: the caller skips it and the cursor moves on. A deleted list adds nobody.
func (*Queries) SendingAutomationByName ¶
func (q *Queries) SendingAutomationByName(ctx context.Context, arg SendingAutomationByNameParams) (SendingAutomationByNameRow, error)
A flow whose name matches, for "move them into the Re-permission automation".
func (*Queries) SendingAutomationEmail ¶
func (q *Queries) SendingAutomationEmail(ctx context.Context, arg SendingAutomationEmailParams) (SendingAutomationEmailRow, error)
func (*Queries) SendingAutomationEmailLatest ¶
func (*Queries) SendingAutomationLinkCount ¶
func (*Queries) SendingAutomationSender ¶
func (q *Queries) SendingAutomationSender(ctx context.Context, workspaceID uuid.UUID) (SendingAutomationSenderRow, error)
The workspace's default sender (automation emails come from it).
func (*Queries) SendingBumpCounters ¶
func (q *Queries) SendingBumpCounters(ctx context.Context, arg SendingBumpCountersParams) error
func (*Queries) SendingCampaign ¶
func (*Queries) SendingCampaignContext ¶
func (q *Queries) SendingCampaignContext(ctx context.Context, id uuid.UUID) (SendingCampaignContextRow, error)
A campaign with its sender and workspace, for building messages.
func (*Queries) SendingCampaignForUpdate ¶
Sending engine and live monitor (spec 5.3, 7.6).
func (*Queries) SendingCampaignInWorkspace ¶
func (*Queries) SendingCampaignWorkspace ¶
func (*Queries) SendingCancelRemaining ¶
func (q *Queries) SendingCancelRemaining(ctx context.Context, arg SendingCancelRemainingParams) (int64, error)
Cancels what is left of a campaign, or of one sending or mailbox provider.
func (*Queries) SendingClaim ¶
func (q *Queries) SendingClaim(ctx context.Context, arg SendingClaimParams) ([]SendingClaimRow, error)
Claims up to lim queued messages of one sending provider and mailbox provider in the send's shuffled order, skipping rows another worker holds. A claim older than the stale time belonged to a worker that died.
func (*Queries) SendingClearLinks ¶
func (*Queries) SendingClearMessages ¶
A send that is prepared again (after a failed preparation) starts clean.
func (*Queries) SendingClearRoutes ¶
func (*Queries) SendingClearWindows ¶
func (q *Queries) SendingClearWindows(ctx context.Context, arg SendingClearWindowsParams) error
Frees providers' windows over a past interval (the demo command's fast-forward replays seconds the real-time worker may have used).
func (*Queries) SendingCohortContacts ¶
func (q *Queries) SendingCohortContacts(ctx context.Context, arg SendingCohortContactsParams) ([]*uuid.UUID, error)
Contacts of an import cohort in this send (never opened), to tell whether this is the first mail they get from the workspace.
func (*Queries) SendingComplaintCohorts ¶
func (q *Queries) SendingComplaintCohorts(ctx context.Context, arg SendingComplaintCohortsParams) ([]SendingComplaintCohortsRow, error)
Complaints of a campaign (optionally one mailbox provider) by how the complaining contacts joined, whether they ever engaged and their tier: the evidence behind "likely causes".
func (*Queries) SendingContactForAutomation ¶
func (*Queries) SendingCounters ¶
func (*Queries) SendingDeferralsSince ¶
func (*Queries) SendingDeleteSimEvents ¶
func (*Queries) SendingDueScheduled ¶
Scheduled campaigns whose time has come (the watchdog starts any whose start job was lost). One held by a Blocked send-time recheck is left to Review & send, which rechecks it every 15 minutes.
func (*Queries) SendingDueSimEvents ¶
func (q *Queries) SendingDueSimEvents(ctx context.Context, arg SendingDueSimEventsParams) ([]SendingSimEvent, error)
func (*Queries) SendingExcludeGroup ¶
func (q *Queries) SendingExcludeGroup(ctx context.Context, arg SendingExcludeGroupParams) ([]*uuid.UUID, error)
Takes a group out of the rest of the send; returns their contact ids so they can be added to another flow.
func (*Queries) SendingFeed ¶
func (q *Queries) SendingFeed(ctx context.Context, arg SendingFeedParams) ([]SendingFeedRow, error)
The newest delivery and engagement events of a campaign.
func (*Queries) SendingFinishPrepare ¶
func (q *Queries) SendingFinishPrepare(ctx context.Context, arg SendingFinishPrepareParams) error
func (*Queries) SendingFinishRoutes ¶
func (q *Queries) SendingFinishRoutes(ctx context.Context, arg SendingFinishRoutesParams) error
func (*Queries) SendingGetSend ¶
func (*Queries) SendingGetSendForUpdate ¶
func (*Queries) SendingGroupSize ¶
func (q *Queries) SendingGroupSize(ctx context.Context, arg SendingGroupSizeParams) (SendingGroupSizeRow, error)
Groups an auto-pause can take out of the rest of a send (grp): 'imported' (joined from an import, from @source when given, and never opened), 'lapsed' (at risk or sunset: no open in more than 90 days) and 'never' (never opened). A group's recipients in this send (optionally of one mailbox provider), and how many of them are still to send.
func (*Queries) SendingImportOf ¶
func (q *Queries) SendingImportOf(ctx context.Context, arg SendingImportOfParams) (SendingImportOfRow, error)
The most recent import from a source ("the Mailchimp import on 18 Sep").
func (*Queries) SendingIncidents ¶
func (*Queries) SendingInsertAutomationLink ¶
func (q *Queries) SendingInsertAutomationLink(ctx context.Context, arg SendingInsertAutomationLinkParams) error
func (*Queries) SendingInsertAutomationMessage ¶
func (q *Queries) SendingInsertAutomationMessage(ctx context.Context, arg SendingInsertAutomationMessageParams) error
func (*Queries) SendingInsertIncident ¶
func (q *Queries) SendingInsertIncident(ctx context.Context, arg SendingInsertIncidentParams) error
func (*Queries) SendingInsertLink ¶
func (q *Queries) SendingInsertLink(ctx context.Context, arg SendingInsertLinkParams) error
func (*Queries) SendingInsertSend ¶
func (q *Queries) SendingInsertSend(ctx context.Context, arg SendingInsertSendParams) error
func (*Queries) SendingListNames ¶
func (*Queries) SendingMarkCompleted ¶
func (q *Queries) SendingMarkCompleted(ctx context.Context, arg SendingMarkCompletedParams) error
func (*Queries) SendingMarkScheduled ¶
func (q *Queries) SendingMarkScheduled(ctx context.Context, arg SendingMarkScheduledParams) error
func (*Queries) SendingMarkSent ¶
func (q *Queries) SendingMarkSent(ctx context.Context, arg SendingMarkSentParams) error
func (*Queries) SendingMarkStarted ¶
func (q *Queries) SendingMarkStarted(ctx context.Context, arg SendingMarkStartedParams) error
func (*Queries) SendingMarkUnsent ¶
func (q *Queries) SendingMarkUnsent(ctx context.Context, arg SendingMarkUnsentParams) error
Messages that will never be sent: rejected by the provider, failed after every retry, or dropped (suppressed during the send, contact erased).
func (*Queries) SendingMoveRemaining ¶
func (q *Queries) SendingMoveRemaining(ctx context.Context, arg SendingMoveRemainingParams) (int64, error)
Moves what is left of one provider's share to another provider.
func (*Queries) SendingNextSimEvent ¶
func (*Queries) SendingOpenIncidents ¶
func (*Queries) SendingOpenWindow ¶
func (q *Queries) SendingOpenWindow(ctx context.Context, arg SendingOpenWindowParams) error
func (*Queries) SendingOutboxClaim ¶
func (q *Queries) SendingOutboxClaim(ctx context.Context, arg SendingOutboxClaimParams) ([]SendingOutboxClaimRow, error)
func (*Queries) SendingOutboxProviders ¶
func (*Queries) SendingPriorSends ¶
func (q *Queries) SendingPriorSends(ctx context.Context, arg SendingPriorSendsParams) (int64, error)
How many of a cohort's contacts received anything from this workspace before this campaign.
func (*Queries) SendingPurgeWindows ¶
func (*Queries) SendingQueueState ¶
func (q *Queries) SendingQueueState(ctx context.Context, arg SendingQueueStateParams) ([]SendingQueueStateRow, error)
What is left of a campaign per sending and mailbox provider: queued (and when the next retry is due) and held for the A/B winner.
func (*Queries) SendingRelease ¶
func (*Queries) SendingReleaseHeld ¶
func (q *Queries) SendingReleaseHeld(ctx context.Context, arg SendingReleaseHeldParams) (int64, error)
The A/B winner goes to everyone who waited for it.
func (*Queries) SendingRemainingOn ¶
func (*Queries) SendingReserve ¶
Reserves up to want sends in a provider's one-second window of cap (open it first). No row comes back when the window is full.
func (*Queries) SendingResolveIncident ¶
func (q *Queries) SendingResolveIncident(ctx context.Context, arg SendingResolveIncidentParams) error
func (*Queries) SendingRetryLater ¶
func (q *Queries) SendingRetryLater(ctx context.Context, arg SendingRetryLaterParams) error
func (*Queries) SendingRetryNow ¶
func (q *Queries) SendingRetryNow(ctx context.Context, arg SendingRetryNowParams) error
func (*Queries) SendingRoutes ¶
func (*Queries) SendingSavePrepare ¶
func (q *Queries) SendingSavePrepare(ctx context.Context, arg SendingSavePrepareParams) error
func (*Queries) SendingSegmentNames ¶
func (*Queries) SendingSentSince ¶
func (q *Queries) SendingSentSince(ctx context.Context, arg SendingSentSinceParams) ([]SendingSentSinceRow, error)
func (*Queries) SendingSetAB ¶
func (q *Queries) SendingSetAB(ctx context.Context, arg SendingSetABParams) error
func (*Queries) SendingSetAudienceCount ¶
func (q *Queries) SendingSetAudienceCount(ctx context.Context, arg SendingSetAudienceCountParams) error
func (*Queries) SendingSetCampaignStatus ¶
func (q *Queries) SendingSetCampaignStatus(ctx context.Context, arg SendingSetCampaignStatusParams) error
func (*Queries) SendingSetChanges ¶
func (q *Queries) SendingSetChanges(ctx context.Context, arg SendingSetChangesParams) error
func (*Queries) SendingSetContent ¶
func (q *Queries) SendingSetContent(ctx context.Context, arg SendingSetContentParams) error
func (*Queries) SendingSetDeliveryP50 ¶
The median time from handing a message to the provider to its delivery event, per route, stored when a send ends ("Median time to delivery" in the report's per-provider comparison).
func (*Queries) SendingSetHolds ¶
func (q *Queries) SendingSetHolds(ctx context.Context, arg SendingSetHoldsParams) error
func (*Queries) SendingSetPaused ¶
func (q *Queries) SendingSetPaused(ctx context.Context, arg SendingSetPausedParams) error
func (*Queries) SendingSetPhase ¶
func (q *Queries) SendingSetPhase(ctx context.Context, arg SendingSetPhaseParams) error
func (*Queries) SendingSetRouteStatus ¶
func (q *Queries) SendingSetRouteStatus(ctx context.Context, arg SendingSetRouteStatusParams) error
func (*Queries) SendingSetThrottles ¶
func (q *Queries) SendingSetThrottles(ctx context.Context, arg SendingSetThrottlesParams) error
func (*Queries) SendingSimMessages ¶
func (*Queries) SendingStageAdd ¶
func (q *Queries) SendingStageAdd(ctx context.Context, arg SendingStageAddParams) error
func (*Queries) SendingStageClear ¶
func (*Queries) SendingStageCount ¶
func (*Queries) SendingUnschedule ¶
func (q *Queries) SendingUnschedule(ctx context.Context, arg SendingUnscheduleParams) error
Takes a scheduled campaign back (to draft, or approved when its approval still stands).
func (*Queries) SendingUnsentCounts ¶
func (q *Queries) SendingUnsentCounts(ctx context.Context, campaignID *uuid.UUID) ([]SendingUnsentCountsRow, error)
Messages that will never be sent, per sending and mailbox provider.
func (*Queries) SendingUpdateIncidentDetail ¶
func (q *Queries) SendingUpdateIncidentDetail(ctx context.Context, arg SendingUpdateIncidentDetailParams) error
func (*Queries) SendingUserNames ¶
func (*Queries) SendingUsualOpenHours ¶
func (q *Queries) SendingUsualOpenHours(ctx context.Context, arg SendingUsualOpenHoursParams) ([]SendingUsualOpenHoursRow, error)
The hour of the day (UTC) each contact opens at most often, from their own opens since a date (privacy-proxy fetches left out): the best time of a send scheduled per recipient.
func (*Queries) SendingWorkspaceDefaults ¶
func (q *Queries) SendingWorkspaceDefaults(ctx context.Context, id uuid.UUID) (SendingWorkspaceDefaultsRow, error)
The workspace's sending defaults (Settings › Providers): auto-pause thresholds and the throttles per mailbox provider.
func (*Queries) SendingWorkspaceProviders ¶
func (*Queries) SessionExtRestartIdle ¶
func (q *Queries) SessionExtRestartIdle(ctx context.Context, arg SessionExtRestartIdleParams) (SessionExtRestartIdleRow, error)
Restarts the idle clock now (the middleware only touches sessions every 30 seconds). The absolute lifetime (expires_at) never moves.
func (*Queries) SessionExtTiming ¶
Session timing for the app's "Session ending in 2 minutes" banner and its Extend action (internal/sessionext).
func (*Queries) SetAutomationDraft ¶
func (q *Queries) SetAutomationDraft(ctx context.Context, arg SetAutomationDraftParams) error
A draft was saved: bump the revision and remember the trigger of a flow that was never published (live flows keep the live trigger).
func (*Queries) SetAutomationLive ¶
func (q *Queries) SetAutomationLive(ctx context.Context, arg SetAutomationLiveParams) error
func (*Queries) SetAvatarUpdatedAt ¶
func (q *Queries) SetAvatarUpdatedAt(ctx context.Context, arg SetAvatarUpdatedAtParams) error
func (*Queries) SetDeliverabilityBlocklistDelisting ¶
func (q *Queries) SetDeliverabilityBlocklistDelisting(ctx context.Context, arg SetDeliverabilityBlocklistDelistingParams) error
func (*Queries) SetHostReputeMonitored ¶
func (q *Queries) SetHostReputeMonitored(ctx context.Context, arg SetHostReputeMonitoredParams) error
func (*Queries) SetImportConnection ¶
func (q *Queries) SetImportConnection(ctx context.Context, arg SetImportConnectionParams) error
func (*Queries) SetImportConsentMap ¶
func (q *Queries) SetImportConsentMap(ctx context.Context, arg SetImportConsentMapParams) error
func (*Queries) SetImportFieldMap ¶
func (q *Queries) SetImportFieldMap(ctx context.Context, arg SetImportFieldMapParams) error
func (*Queries) SetImportFile ¶
func (q *Queries) SetImportFile(ctx context.Context, arg SetImportFileParams) error
func (*Queries) SetImportOptions ¶
func (q *Queries) SetImportOptions(ctx context.Context, arg SetImportOptionsParams) error
func (*Queries) SetImportPreview ¶
func (q *Queries) SetImportPreview(ctx context.Context, arg SetImportPreviewParams) error
func (*Queries) SetImportProgress ¶
func (q *Queries) SetImportProgress(ctx context.Context, arg SetImportProgressParams) error
func (*Queries) SetImportStaged ¶
func (q *Queries) SetImportStaged(ctx context.Context, arg SetImportStagedParams) error
func (*Queries) SetImportStatus ¶
func (q *Queries) SetImportStatus(ctx context.Context, arg SetImportStatusParams) error
func (*Queries) SetImportStep ¶
func (q *Queries) SetImportStep(ctx context.Context, arg SetImportStepParams) error
func (*Queries) SetLastDigestAt ¶
func (*Queries) SetLatestRelease ¶
func (*Queries) SetMemberStatus ¶
func (q *Queries) SetMemberStatus(ctx context.Context, arg SetMemberStatusParams) error
func (*Queries) SetNotificationsEmailStatus ¶
func (q *Queries) SetNotificationsEmailStatus(ctx context.Context, arg SetNotificationsEmailStatusParams) error
func (*Queries) SetRecoveryCodesSaved ¶
func (*Queries) SetSegmentCount ¶
func (q *Queries) SetSegmentCount(ctx context.Context, arg SetSegmentCountParams) error
func (*Queries) SetSessionPasskey ¶
func (q *Queries) SetSessionPasskey(ctx context.Context, arg SetSessionPasskeyParams) error
func (*Queries) SetSunsetPolicy ¶
func (q *Queries) SetSunsetPolicy(ctx context.Context, arg SetSunsetPolicyParams) error
func (*Queries) SetUserBreakGlass ¶
func (q *Queries) SetUserBreakGlass(ctx context.Context, arg SetUserBreakGlassParams) error
func (*Queries) SetUserEmail ¶
func (q *Queries) SetUserEmail(ctx context.Context, arg SetUserEmailParams) error
func (*Queries) SetUserInstanceAdmin ¶
func (q *Queries) SetUserInstanceAdmin(ctx context.Context, arg SetUserInstanceAdminParams) error
func (*Queries) SetUserPassword ¶
func (q *Queries) SetUserPassword(ctx context.Context, arg SetUserPasswordParams) error
func (*Queries) SetUserStatus ¶
func (q *Queries) SetUserStatus(ctx context.Context, arg SetUserStatusParams) error
func (*Queries) SetUserTOTP ¶
func (q *Queries) SetUserTOTP(ctx context.Context, arg SetUserTOTPParams) error
func (*Queries) SetUserTOTPLabel ¶
func (q *Queries) SetUserTOTPLabel(ctx context.Context, arg SetUserTOTPLabelParams) error
func (*Queries) SetUserTwoFAGrace ¶
func (q *Queries) SetUserTwoFAGrace(ctx context.Context, arg SetUserTwoFAGraceParams) error
func (*Queries) SetUserWebAuthnID ¶
func (q *Queries) SetUserWebAuthnID(ctx context.Context, arg SetUserWebAuthnIDParams) error
Account & security, passkeys, password resets, email changes, invitations (accept side) and the first sign-in (internal/accounts).
func (*Queries) SetupByProvider ¶
func (q *Queries) SetupByProvider(ctx context.Context, providerID *uuid.UUID) (ProviderSetup, error)
The latest setup that connected a provider.
func (*Queries) SetupCreate ¶
func (q *Queries) SetupCreate(ctx context.Context, arg SetupCreateParams) (ProviderSetup, error)
Connect a sending provider (the setup wizard), Settings › Providers and the system mailer. Query names start with Setup, Connect or Sysmail.
func (*Queries) SetupGet ¶
func (q *Queries) SetupGet(ctx context.Context, arg SetupGetParams) (ProviderSetup, error)
func (*Queries) SetupGetAny ¶
func (*Queries) SetupList ¶
func (q *Queries) SetupList(ctx context.Context, arg SetupListParams) ([]ProviderSetup, error)
A workspace's setups, newest first, optionally of one adapter or status.
func (*Queries) SetupOpen ¶
func (q *Queries) SetupOpen(ctx context.Context, arg SetupOpenParams) ([]ProviderSetup, error)
Unfinished setups of a workspace, newest first (resume "Connect SES").
func (*Queries) SetupSave ¶
func (q *Queries) SetupSave(ctx context.Context, arg SetupSaveParams) (ProviderSetup, error)
func (*Queries) SignupAddUnsubscribe ¶
func (q *Queries) SignupAddUnsubscribe(ctx context.Context, arg SignupAddUnsubscribeParams) error
Unsubscribes block Broadcasts and Automations; System mail (password resets, receipts) still reaches the contact.
func (*Queries) SignupConfirmPending ¶
func (*Queries) SignupContactByEmail ¶
func (q *Queries) SignupContactByEmail(ctx context.Context, arg SignupContactByEmailParams) (Contact, error)
Audience · public self-service (internal/audience/signup.go): signups from forms and the hosted page, double opt-in confirmations, the preference center and unsubscribes. The contact acts on these; there is no team member behind them, so consent events carry the IP and browser instead.
func (*Queries) SignupContactByID ¶
func (*Queries) SignupContactNames ¶
func (q *Queries) SignupContactNames(ctx context.Context, arg SignupContactNamesParams) ([]SignupContactNamesRow, error)
Addresses and first names of some contacts (erased ones left out), for lists of signups.
func (*Queries) SignupFillContact ¶
func (q *Queries) SignupFillContact(ctx context.Context, arg SignupFillContactParams) error
Fills fields the contact left empty; a public form never overwrites what is already known (anyone can type anyone's address into a form).
func (*Queries) SignupInsertConsent ¶
func (q *Queries) SignupInsertConsent(ctx context.Context, arg SignupInsertConsentParams) error
func (*Queries) SignupInsertContact ¶
func (q *Queries) SignupInsertContact(ctx context.Context, arg SignupInsertContactParams) (Contact, error)
A concurrent signup for the same address wins the race; the caller then reads the contact it created.
func (*Queries) SignupLastConsent ¶
func (q *Queries) SignupLastConsent(ctx context.Context, arg SignupLastConsentParams) (SignupLastConsentRow, error)
The latest consent event of one kind (the confirmation shown under the confirmation page, the opt-in that recorded the consent text).
func (*Queries) SignupLastUnsubscribedLists ¶
func (q *Queries) SignupLastUnsubscribedLists(ctx context.Context, contactID uuid.UUID) ([]uuid.UUID, error)
The lists the latest unsubscribe left, for "Resubscribe".
func (*Queries) SignupLiftUnsubscribe ¶
func (*Queries) SignupMemberships ¶
func (*Queries) SignupPreferences ¶
func (*Queries) SignupPreviewConfirmed ¶
func (q *Queries) SignupPreviewConfirmed(ctx context.Context, workspaceID uuid.UUID) (uuid.UUID, error)
The subscriber who confirmed most recently: the app previews the public pages as they see them.
func (*Queries) SignupPreviewLatest ¶
func (*Queries) SignupPublicLists ¶
func (q *Queries) SignupPublicLists(ctx context.Context, workspaceID uuid.UUID) ([]SignupPublicListsRow, error)
Lists a public page can show, with their size.
func (*Queries) SignupSetContactState ¶
func (q *Queries) SignupSetContactState(ctx context.Context, arg SignupSetContactStateParams) error
func (*Queries) SignupSetFirstName ¶
func (q *Queries) SignupSetFirstName(ctx context.Context, arg SignupSetFirstNameParams) error
func (*Queries) SignupSetMembership ¶
func (q *Queries) SignupSetMembership(ctx context.Context, arg SignupSetMembershipParams) error
func (*Queries) SignupSuppression ¶
func (q *Queries) SignupSuppression(ctx context.Context, arg SignupSuppressionParams) (Suppression, error)
func (*Queries) SignupTouchContact ¶
func (q *Queries) SignupTouchContact(ctx context.Context, arg SignupTouchContactParams) error
func (*Queries) SignupUnsubscribeAll ¶
func (*Queries) SignupUpsertPreferences ¶
func (q *Queries) SignupUpsertPreferences(ctx context.Context, arg SignupUpsertPreferencesParams) error
func (*Queries) SoftDeleteAutomation ¶
func (q *Queries) SoftDeleteAutomation(ctx context.Context, arg SoftDeleteAutomationParams) error
func (*Queries) SoftDeleteEmailTemplate ¶
func (*Queries) SoftDeleteList ¶
The list goes from every screen and send; paused notes what deleting it paused, for a restore.
func (*Queries) SoftDeleteWorkspace ¶
func (*Queries) StartImport ¶
func (q *Queries) StartImport(ctx context.Context, arg StartImportParams) error
func (*Queries) SuppAddedByProvider ¶
func (q *Queries) SuppAddedByProvider(ctx context.Context, workspaceID uuid.UUID) ([]SuppAddedByProviderRow, error)
Addresses each provider's bounce and complaint events added to the shared list (the "pulled in" count of providers without a suppression API).
func (*Queries) SuppImportSources ¶
func (q *Queries) SuppImportSources(ctx context.Context, workspaceID uuid.UUID) ([]SuppImportSourcesRow, error)
Suppressions brought in by imports ("Brevo (import)"), per source.
func (*Queries) SuppLatestCreated ¶
func (*Queries) SuppPendingCount ¶
func (*Queries) SuppReasonCounts ¶
func (*Queries) SuppSyncGet ¶
func (*Queries) SuppSyncList ¶
func (q *Queries) SuppSyncList(ctx context.Context, providerIds []uuid.UUID) ([]ProviderSuppressionSync, error)
Sync of the shared suppression list with each provider. The list itself (screens, manual adds, imports) belongs to the audience domain.
func (*Queries) SuppSyncUpsert ¶
func (q *Queries) SuppSyncUpsert(ctx context.Context, arg SuppSyncUpsertParams) error
func (*Queries) SuppToPush ¶
func (q *Queries) SuppToPush(ctx context.Context, arg SuppToPushParams) ([]SuppToPushRow, error)
Addresses of the shared list created after a time that didn't come from the provider being pushed to (no point echoing its own list back).
func (*Queries) SuppressionCounts ¶
func (*Queries) SuppressionSyncStates ¶
func (q *Queries) SuppressionSyncStates(ctx context.Context, workspaceID uuid.UUID) ([]SuppressionSyncStatesRow, error)
One row per connected provider with its suppression sync state (kept by the providers domain) and, for providers without a suppression API, the addresses their bounce and complaint events added to the shared list.
func (*Queries) SysmailInsertMessage ¶
func (q *Queries) SysmailInsertMessage(ctx context.Context, arg SysmailInsertMessageParams) error
A message the system mailer or a setup's test sends (stream system, or the stream a test goes on).
func (*Queries) SysmailMarkSent ¶
func (q *Queries) SysmailMarkSent(ctx context.Context, arg SysmailMarkSentParams) error
func (*Queries) SysmailWorkspaces ¶
Every workspace, oldest first (instance-level mail falls back to the first workspace with a System route).
func (*Queries) SysmailWorkspacesForEmail ¶
The workspaces of the person a message without a workspace goes to, oldest membership first.
func (*Queries) SystemStreamProviderName ¶
func (q *Queries) SystemStreamProviderName(ctx context.Context, workspaceID uuid.UUID) (string, error)
The provider of the default System-stream route of a workspace (read-only view of the routing domain, for "emails go out … via Postmark").
func (*Queries) TeamActiveSessionCount ¶
func (*Queries) TeamApprovalsGiven ¶
func (q *Queries) TeamApprovalsGiven(ctx context.Context, arg TeamApprovalsGivenParams) ([]TeamApprovalsGivenRow, error)
func (*Queries) TeamApprovalsRequested ¶
func (q *Queries) TeamApprovalsRequested(ctx context.Context, arg TeamApprovalsRequestedParams) ([]TeamApprovalsRequestedRow, error)
func (*Queries) TeamCountActiveOwners ¶
func (*Queries) TeamCreateInvitation ¶
func (q *Queries) TeamCreateInvitation(ctx context.Context, arg TeamCreateInvitationParams) (TeamCreateInvitationRow, error)
func (*Queries) TeamDeleteMember ¶
func (*Queries) TeamEndTwoFAGrace ¶
"Require 2FA now": the grace period ends immediately for users without a second factor.
func (*Queries) TeamEnforcedSSO ¶
func (q *Queries) TeamEnforcedSSO(ctx context.Context) ([]TeamEnforcedSSORow, error)
func (*Queries) TeamGetInvitation ¶
func (q *Queries) TeamGetInvitation(ctx context.Context, arg TeamGetInvitationParams) (TeamGetInvitationRow, error)
func (*Queries) TeamGetMember ¶
func (q *Queries) TeamGetMember(ctx context.Context, arg TeamGetMemberParams) (TeamGetMemberRow, error)
func (*Queries) TeamIdentities ¶
func (q *Queries) TeamIdentities(ctx context.Context, userIds []uuid.UUID) ([]TeamIdentitiesRow, error)
Social and SSO identities of the given users, with the SSO provider name.
func (*Queries) TeamJITProviders ¶
func (q *Queries) TeamJITProviders(ctx context.Context, workspaceID *uuid.UUID) ([]TeamJITProvidersRow, error)
SSO providers that create accounts on first sign-in for this workspace.
func (*Queries) TeamListInvitations ¶
func (*Queries) TeamListMembers ¶
func (q *Queries) TeamListMembers(ctx context.Context, workspaceID uuid.UUID) ([]TeamListMembersRow, error)
Team: members, invitations, sign-in methods and member detail.
func (*Queries) TeamMarkInvitationSent ¶
func (q *Queries) TeamMarkInvitationSent(ctx context.Context, arg TeamMarkInvitationSentParams) error
func (*Queries) TeamMemberAPIKeys ¶
func (q *Queries) TeamMemberAPIKeys(ctx context.Context, arg TeamMemberAPIKeysParams) ([]TeamMemberAPIKeysRow, error)
func (*Queries) TeamMemberActivity ¶
func (q *Queries) TeamMemberActivity(ctx context.Context, arg TeamMemberActivityParams) ([]TeamMemberActivityRow, error)
func (*Queries) TeamMemberEmails ¶
func (*Queries) TeamPendingInviteEmails ¶
func (*Queries) TeamRevokeInvitation ¶
func (*Queries) TeamRevokeKeysCreatedBy ¶
func (q *Queries) TeamRevokeKeysCreatedBy(ctx context.Context, arg TeamRevokeKeysCreatedByParams) ([]TeamRevokeKeysCreatedByRow, error)
func (*Queries) TeamRevokeUserSessions ¶
func (*Queries) TeamSetMemberRole ¶
func (q *Queries) TeamSetMemberRole(ctx context.Context, arg TeamSetMemberRoleParams) error
func (*Queries) TeamSetMemberStatus ¶
func (q *Queries) TeamSetMemberStatus(ctx context.Context, arg TeamSetMemberStatusParams) error
func (*Queries) TeamSystemProviderName ¶
func (q *Queries) TeamSystemProviderName(ctx context.Context, workspaceID uuid.UUID) (string, error)
The provider of the System stream's default rule (first split), for "Sent on the System stream via Postmark".
func (*Queries) TeamWorkspaceLists ¶
func (*Queries) TeamWorkspaceSenderDomains ¶
func (*Queries) TierRunWorkspaces ¶
func (q *Queries) TierRunWorkspaces(ctx context.Context) ([]TierRunWorkspacesRow, error)
Workspaces with their timezone and the last tier run, for the nightly job.
func (*Queries) TouchAPIKey ¶
func (q *Queries) TouchAPIKey(ctx context.Context, arg TouchAPIKeyParams) error
func (*Queries) TouchAutomationRunNextAt ¶
func (q *Queries) TouchAutomationRunNextAt(ctx context.Context, arg TouchAutomationRunNextAtParams) error
func (*Queries) TouchIdentity ¶
func (*Queries) TouchMemberActive ¶
func (q *Queries) TouchMemberActive(ctx context.Context, arg TouchMemberActiveParams) error
func (*Queries) TouchPasskey ¶
func (q *Queries) TouchPasskey(ctx context.Context, arg TouchPasskeyParams) error
func (*Queries) TouchSession ¶
func (*Queries) TouchUserActive ¶
func (*Queries) TrackingAutomationLinks ¶
func (q *Queries) TrackingAutomationLinks(ctx context.Context, arg TrackingAutomationLinksParams) ([]TrackingAutomationLinksRow, error)
func (*Queries) TrackingBumpAutomationLink ¶
func (q *Queries) TrackingBumpAutomationLink(ctx context.Context, arg TrackingBumpAutomationLinkParams) error
func (*Queries) TrackingBumpCounters ¶
func (q *Queries) TrackingBumpCounters(ctx context.Context, arg TrackingBumpCountersParams) error
func (*Queries) TrackingBumpHourly ¶
func (q *Queries) TrackingBumpHourly(ctx context.Context, arg TrackingBumpHourlyParams) error
func (*Queries) TrackingBumpLink ¶
func (q *Queries) TrackingBumpLink(ctx context.Context, arg TrackingBumpLinkParams) error
func (*Queries) TrackingCampaignLinks ¶
func (*Queries) TrackingContactVars ¶
func (*Queries) TrackingFirstLinkClick ¶
func (*Queries) TrackingInsertEvent ¶
func (q *Queries) TrackingInsertEvent(ctx context.Context, arg TrackingInsertEventParams) error
func (*Queries) TrackingMarkClick ¶
func (q *Queries) TrackingMarkClick(ctx context.Context, arg TrackingMarkClickParams) (TrackingMarkClickRow, error)
A click counts as a human open too.
func (*Queries) TrackingMarkOpen ¶
func (q *Queries) TrackingMarkOpen(ctx context.Context, arg TrackingMarkOpenParams) (TrackingMarkOpenRow, error)
Records an open on a message and says what changed, so counters move once per message: the first open, or the first human open after a machine prefetch (prev_opened_at is when that prefetch was).
func (*Queries) TrackingMessage ¶
Open and click tracking (spec 5.5, 7.6).
func (*Queries) TrackingSourceLabel ¶
func (*Queries) TrackingTouchContactClick ¶
func (q *Queries) TrackingTouchContactClick(ctx context.Context, arg TrackingTouchContactClickParams) error
func (*Queries) TrackingTouchContactOpen ¶
func (q *Queries) TrackingTouchContactOpen(ctx context.Context, arg TrackingTouchContactOpenParams) error
last_open_at counts every open, last_human_open_at only people's (tiers and the sunset policy use it); last_open_machine says what the latest was.
func (*Queries) UpdateAuthPolicy ¶
func (q *Queries) UpdateAuthPolicy(ctx context.Context, arg UpdateAuthPolicyParams) (InstanceSetting, error)
func (*Queries) UpdateAutomationDraftGraph ¶
func (*Queries) UpdateAutomationMeta ¶
func (q *Queries) UpdateAutomationMeta(ctx context.Context, arg UpdateAutomationMetaParams) (Automation, error)
func (*Queries) UpdateAutomationRun ¶
func (q *Queries) UpdateAutomationRun(ctx context.Context, arg UpdateAutomationRunParams) error
func (*Queries) UpdateContactFields ¶
func (*Queries) UpdateCustomField ¶
func (q *Queries) UpdateCustomField(ctx context.Context, arg UpdateCustomFieldParams) (CustomField, error)
func (*Queries) UpdateDeliverabilityCheckRunProgress ¶
func (q *Queries) UpdateDeliverabilityCheckRunProgress(ctx context.Context, arg UpdateDeliverabilityCheckRunProgressParams) error
func (*Queries) UpdateEmailTemplate ¶
func (q *Queries) UpdateEmailTemplate(ctx context.Context, arg UpdateEmailTemplateParams) error
func (*Queries) UpdateHostReputeTokens ¶
func (q *Queries) UpdateHostReputeTokens(ctx context.Context, arg UpdateHostReputeTokensParams) error
func (*Queries) UpdateInstanceBasics ¶
func (q *Queries) UpdateInstanceBasics(ctx context.Context, arg UpdateInstanceBasicsParams) (InstanceSetting, error)
func (*Queries) UpdateList ¶
func (*Queries) UpdateMemberRole ¶
func (q *Queries) UpdateMemberRole(ctx context.Context, arg UpdateMemberRoleParams) (WorkspaceMember, error)
func (*Queries) UpdatePasskeyAfterUse ¶
func (q *Queries) UpdatePasskeyAfterUse(ctx context.Context, arg UpdatePasskeyAfterUseParams) error
func (*Queries) UpdateRole ¶
func (*Queries) UpdateSegment ¶
func (*Queries) UpdateSocialProviders ¶
func (q *Queries) UpdateSocialProviders(ctx context.Context, arg UpdateSocialProvidersParams) (InstanceSetting, error)
func (*Queries) UpdateUserProfile ¶
func (*Queries) UpdateWorkspaceApprovalPolicy ¶
func (*Queries) UpdateWorkspaceGeneral ¶
func (*Queries) UpdateWorkspaceJSON ¶
func (*Queries) UpsertAudienceDaily ¶
func (q *Queries) UpsertAudienceDaily(ctx context.Context, arg UpsertAudienceDailyParams) error
func (*Queries) UpsertAudienceState ¶
func (q *Queries) UpsertAudienceState(ctx context.Context, arg UpsertAudienceStateParams) error
func (*Queries) UpsertAutomationStepSecret ¶
func (q *Queries) UpsertAutomationStepSecret(ctx context.Context, arg UpsertAutomationStepSecretParams) error
func (*Queries) UpsertAvatar ¶
func (q *Queries) UpsertAvatar(ctx context.Context, arg UpsertAvatarParams) error
func (*Queries) UpsertDeliverabilityAssetCheck ¶
func (q *Queries) UpsertDeliverabilityAssetCheck(ctx context.Context, arg UpsertDeliverabilityAssetCheckParams) error
func (*Queries) UpsertDeliverabilityDMARCReport ¶
func (q *Queries) UpsertDeliverabilityDMARCReport(ctx context.Context, arg UpsertDeliverabilityDMARCReportParams) error
func (*Queries) UpsertDeliverabilityPostmasterDay ¶
func (q *Queries) UpsertDeliverabilityPostmasterDay(ctx context.Context, arg UpsertDeliverabilityPostmasterDayParams) error
func (*Queries) UpsertDeliverabilitySNDSDay ¶
func (q *Queries) UpsertDeliverabilitySNDSDay(ctx context.Context, arg UpsertDeliverabilitySNDSDayParams) error
func (*Queries) UpsertHostReputeConnection ¶
func (q *Queries) UpsertHostReputeConnection(ctx context.Context, arg UpsertHostReputeConnectionParams) (HostreputeConnection, error)
Connect or reconnect: new tokens and account details, status back to connected. Monitored assets and alert history survive a reconnect.
func (*Queries) UpsertMembership ¶
func (q *Queries) UpsertMembership(ctx context.Context, arg UpsertMembershipParams) error
func (*Queries) UpsertNotificationPreference ¶
func (q *Queries) UpsertNotificationPreference(ctx context.Context, arg UpsertNotificationPreferenceParams) error
func (*Queries) UpsertNotificationSettings ¶
func (q *Queries) UpsertNotificationSettings(ctx context.Context, arg UpsertNotificationSettingsParams) error
func (*Queries) UseRecoveryCode ¶
func (*Queries) UsersShareWorkspace ¶
func (*Queries) WakeAutomationBranchRuns ¶
Runs waiting at a branch for an open or click: wake them as soon as the email they wait on has one, instead of at the end of the window.
func (*Queries) WarmupActiveForProvider ¶
func (*Queries) WarmupActivePlans ¶
func (q *Queries) WarmupActivePlans(ctx context.Context) ([]WarmupActivePlansRow, error)
Every plan that is still running (daily warm-up job).
func (*Queries) WarmupAddEvent ¶
func (q *Queries) WarmupAddEvent(ctx context.Context, arg WarmupAddEventParams) error
func (*Queries) WarmupDailyStats ¶
func (q *Queries) WarmupDailyStats(ctx context.Context, arg WarmupDailyStatsParams) ([]WarmupDailyStatsRow, error)
func (*Queries) WarmupGetPlan ¶
func (q *Queries) WarmupGetPlan(ctx context.Context, arg WarmupGetPlanParams) (WarmupGetPlanRow, error)
func (*Queries) WarmupInsertPlan ¶
func (q *Queries) WarmupInsertPlan(ctx context.Context, arg WarmupInsertPlanParams) error
func (*Queries) WarmupListPlans ¶
func (q *Queries) WarmupListPlans(ctx context.Context, workspaceID uuid.UUID) ([]WarmupListPlansRow, error)
Warm-up plans for new providers and dedicated IPs. Plans of a workspace's providers, current first.
func (*Queries) WarmupLog ¶
func (q *Queries) WarmupLog(ctx context.Context, arg WarmupLogParams) ([]WarmupEvent, error)
func (*Queries) WarmupPlannedCampaignUse ¶
func (q *Queries) WarmupPlannedCampaignUse(ctx context.Context, arg WarmupPlannedCampaignUseParams) ([]WarmupPlannedCampaignUseRow, error)
Scheduled campaigns with a share on the provider (the plan table shows "Weekly Digest #142 uses 3,160").
func (*Queries) WarmupSetProgress ¶
func (q *Queries) WarmupSetProgress(ctx context.Context, arg WarmupSetProgressParams) error
func (*Queries) WarmupSetStatus ¶
func (q *Queries) WarmupSetStatus(ctx context.Context, arg WarmupSetStatusParams) error
func (*Queries) WarmupUpdateSettings ¶
func (q *Queries) WarmupUpdateSettings(ctx context.Context, arg WarmupUpdateSettingsParams) error
func (*Queries) WorkspaceProviders ¶
func (*Queries) WorkspaceTierHistory ¶
func (q *Queries) WorkspaceTierHistory(ctx context.Context, arg WorkspaceTierHistoryParams) ([]WorkspaceTierHistoryRow, error)
func (*Queries) WsAuditSettings ¶
func (*Queries) WsCancelScheduled ¶
func (*Queries) WsMCPSettings ¶
func (*Queries) WsMemberCounts ¶
func (*Queries) WsProviderNames ¶
func (*Queries) WsPurgeDeleted ¶
func (q *Queries) WsPurgeDeleted(ctx context.Context) ([]WsPurgeDeletedRow, error)
Workspaces past the 7-day restore hold are deleted for good (cascade).
func (*Queries) WsSenderExists ¶
func (*Queries) WsSetMCPSettings ¶
func (q *Queries) WsSetMCPSettings(ctx context.Context, arg WsSetMCPSettingsParams) error
func (*Queries) WsSoftDelete ¶
func (*Queries) WsUpdateGeneral ¶
func (q *Queries) WsUpdateGeneral(ctx context.Context, arg WsUpdateGeneralParams) (WsUpdateGeneralRow, error)
type ReadinessCampaignParams ¶
type ReadinessCampaignRow ¶
type ReadinessCampaignRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Name string `json:"name"`
Status string `json:"status"`
Subject string `json:"subject"`
Preheader string `json:"preheader"`
Audience json.RawMessage `json:"audience"`
AudienceCount *int64 `json:"audienceCount"`
Mjml string `json:"mjml"`
Html string `json:"html"`
Version int32 `json:"version"`
AbTest json.RawMessage `json:"abTest"`
Schedule json.RawMessage `json:"schedule"`
Thresholds json.RawMessage `json:"thresholds"`
RouteOverride json.RawMessage `json:"routeOverride"`
ContentHash string `json:"contentHash"`
ContentSettings json.RawMessage `json:"contentSettings"`
ReplyTo string `json:"replyTo"`
CreatedBy *uuid.UUID `json:"createdBy"`
UpdatedBy *uuid.UUID `json:"updatedBy"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
AutosavedAt *time.Time `json:"autosavedAt"`
ScheduledAt *time.Time `json:"scheduledAt"`
StartedAt *time.Time `json:"startedAt"`
SenderID *uuid.UUID `json:"senderId"`
SenderName string `json:"senderName"`
SenderEmail string `json:"senderEmail"`
SenderDomain string `json:"senderDomain"`
UpdatedByName string `json:"updatedByName"`
}
type ReadinessGetProgressRow ¶
type ReadinessGetProgressRow struct {
CampaignID uuid.UUID `json:"campaignId"`
RunID uuid.UUID `json:"runId"`
Trigger string `json:"trigger"`
StartedBy *uuid.UUID `json:"startedBy"`
StartedAt time.Time `json:"startedAt"`
UpdatedAt time.Time `json:"updatedAt"`
Groups json.RawMessage `json:"groups"`
Done int32 `json:"done"`
Total int32 `json:"total"`
StartedByName string `json:"startedByName"`
}
type ReadinessGetRunParams ¶
type ReadinessGetRunRow ¶
type ReadinessGetRunRow struct {
ID uuid.UUID `json:"id"`
CampaignID uuid.UUID `json:"campaignId"`
Trigger string `json:"trigger"`
Verdict string `json:"verdict"`
Checks json.RawMessage `json:"checks"`
Estimates json.RawMessage `json:"estimates"`
RanAt time.Time `json:"ranAt"`
DurationMs int32 `json:"durationMs"`
RanBy *uuid.UUID `json:"ranBy"`
CampaignVersion int32 `json:"campaignVersion"`
Fingerprint string `json:"fingerprint"`
UnknownAcceptedAt *time.Time `json:"unknownAcceptedAt"`
UnknownAcceptedBy *uuid.UUID `json:"unknownAcceptedBy"`
RanByName string `json:"ranByName"`
AcceptedByName string `json:"acceptedByName"`
}
type ReadinessInsertRunParams ¶
type ReadinessInsertRunParams struct {
ID uuid.UUID `json:"id"`
CampaignID uuid.UUID `json:"campaignId"`
Trigger string `json:"trigger"`
Verdict string `json:"verdict"`
Checks json.RawMessage `json:"checks"`
Estimates json.RawMessage `json:"estimates"`
RanAt time.Time `json:"ranAt"`
DurationMs int32 `json:"durationMs"`
RanBy *uuid.UUID `json:"ranBy"`
CampaignVersion int32 `json:"campaignVersion"`
Fingerprint string `json:"fingerprint"`
}
type ReadinessLatestRunRow ¶
type ReadinessLatestRunRow struct {
ID uuid.UUID `json:"id"`
CampaignID uuid.UUID `json:"campaignId"`
Trigger string `json:"trigger"`
Verdict string `json:"verdict"`
Checks json.RawMessage `json:"checks"`
Estimates json.RawMessage `json:"estimates"`
RanAt time.Time `json:"ranAt"`
DurationMs int32 `json:"durationMs"`
RanBy *uuid.UUID `json:"ranBy"`
CampaignVersion int32 `json:"campaignVersion"`
Fingerprint string `json:"fingerprint"`
UnknownAcceptedAt *time.Time `json:"unknownAcceptedAt"`
UnknownAcceptedBy *uuid.UUID `json:"unknownAcceptedBy"`
RanByName string `json:"ranByName"`
AcceptedByName string `json:"acceptedByName"`
}
type ReadinessListNamesRow ¶
type ReadinessProgress ¶
type ReadinessProgress struct {
CampaignID uuid.UUID `json:"campaignId"`
RunID uuid.UUID `json:"runId"`
Trigger string `json:"trigger"`
StartedBy *uuid.UUID `json:"startedBy"`
StartedAt time.Time `json:"startedAt"`
UpdatedAt time.Time `json:"updatedAt"`
Groups json.RawMessage `json:"groups"`
Done int32 `json:"done"`
Total int32 `json:"total"`
}
type ReadinessRecipientsParams ¶
type ReadinessRecipientsParams struct {
BouncedSince time.Time `json:"bouncedSince"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Lists []uuid.UUID `json:"lists"`
Contacts []uuid.UUID `json:"contacts"`
ExcludeLists []uuid.UUID `json:"excludeLists"`
ExcludeContacts []uuid.UUID `json:"excludeContacts"`
}
type ReadinessRecipientsRow ¶
type ReadinessRecipientsRow struct {
ID uuid.UUID `json:"id"`
Email string `json:"email"`
MailboxProvider string `json:"mailboxProvider"`
Tier string `json:"tier"`
RoleAddress bool `json:"roleAddress"`
BroadcastsStopped bool `json:"broadcastsStopped"`
ListIds []uuid.UUID `json:"listIds"`
Suppressed bool `json:"suppressed"`
Bounced bool `json:"bounced"`
}
type ReadinessRun ¶
type ReadinessRun struct {
ID uuid.UUID `json:"id"`
CampaignID uuid.UUID `json:"campaignId"`
Trigger string `json:"trigger"`
Verdict string `json:"verdict"`
Checks json.RawMessage `json:"checks"`
Estimates json.RawMessage `json:"estimates"`
RanAt time.Time `json:"ranAt"`
DurationMs int32 `json:"durationMs"`
RanBy *uuid.UUID `json:"ranBy"`
CampaignVersion int32 `json:"campaignVersion"`
Fingerprint string `json:"fingerprint"`
UnknownAcceptedAt *time.Time `json:"unknownAcceptedAt"`
UnknownAcceptedBy *uuid.UUID `json:"unknownAcceptedBy"`
}
type ReadinessStartProgressParams ¶
type ReadinessStartProgressParams struct {
CampaignID uuid.UUID `json:"campaignId"`
RunID uuid.UUID `json:"runId"`
Trigger string `json:"trigger"`
StartedBy *uuid.UUID `json:"startedBy"`
Now time.Time `json:"now"`
Groups json.RawMessage `json:"groups"`
Total int32 `json:"total"`
StaleBefore time.Time `json:"staleBefore"`
}
type ReadinessTestSendsRow ¶
type ReadinessTestSendsRow struct {
OccurredAt time.Time `json:"occurredAt"`
ActorName string `json:"actorName"`
After json.RawMessage `json:"after"`
Metadata json.RawMessage `json:"metadata"`
}
type RecentSentCampaignsRow ¶
type RecordSignInFailureRow ¶
type RecoveryCodeStatsRow ¶
type RefreshInvitationParams ¶
type RemoteAdapterGetByKeyRow ¶
type RemoteAdapterGetByKeyRow struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Version string `json:"version"`
Maintainer string `json:"maintainer"`
SourceUrl string `json:"sourceUrl"`
Manifest json.RawMessage `json:"manifest"`
InstalledAt time.Time `json:"installedAt"`
AdapterKey string `json:"adapterKey"`
EndpointUrl string `json:"endpointUrl"`
SecretEnc []byte `json:"secretEnc"`
SecretIssuedAt time.Time `json:"secretIssuedAt"`
PreviousSecretEnc []byte `json:"previousSecretEnc"`
PreviousValidUntil *time.Time `json:"previousValidUntil"`
CheckedAt *time.Time `json:"checkedAt"`
CheckOk *bool `json:"checkOk"`
CheckDetail string `json:"checkDetail"`
RunningVersion string `json:"runningVersion"`
UpdatedAt time.Time `json:"updatedAt"`
}
type RemoteAdapterGetRow ¶
type RemoteAdapterGetRow struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Version string `json:"version"`
Maintainer string `json:"maintainer"`
SourceUrl string `json:"sourceUrl"`
Manifest json.RawMessage `json:"manifest"`
InstalledAt time.Time `json:"installedAt"`
AdapterKey string `json:"adapterKey"`
EndpointUrl string `json:"endpointUrl"`
SecretEnc []byte `json:"secretEnc"`
SecretIssuedAt time.Time `json:"secretIssuedAt"`
PreviousSecretEnc []byte `json:"previousSecretEnc"`
PreviousValidUntil *time.Time `json:"previousValidUntil"`
CheckedAt *time.Time `json:"checkedAt"`
CheckOk *bool `json:"checkOk"`
CheckDetail string `json:"checkDetail"`
RunningVersion string `json:"runningVersion"`
UpdatedAt time.Time `json:"updatedAt"`
}
type RemoteAdapterListRow ¶
type RemoteAdapterListRow struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Version string `json:"version"`
Maintainer string `json:"maintainer"`
SourceUrl string `json:"sourceUrl"`
Manifest json.RawMessage `json:"manifest"`
InstalledAt time.Time `json:"installedAt"`
AdapterKey string `json:"adapterKey"`
EndpointUrl string `json:"endpointUrl"`
SecretEnc []byte `json:"secretEnc"`
SecretIssuedAt time.Time `json:"secretIssuedAt"`
PreviousSecretEnc []byte `json:"previousSecretEnc"`
PreviousValidUntil *time.Time `json:"previousValidUntil"`
CheckedAt *time.Time `json:"checkedAt"`
CheckOk *bool `json:"checkOk"`
CheckDetail string `json:"checkDetail"`
RunningVersion string `json:"runningVersion"`
UpdatedAt time.Time `json:"updatedAt"`
}
type RenamePasskeyParams ¶
type ReportBounceCodesParams ¶
type ReportBounceCodesRow ¶
type ReportBounceCodesRow struct {
BounceClass string `json:"bounceClass"`
Type string `json:"type"`
ProviderID *uuid.UUID `json:"providerId"`
ProviderName string `json:"providerName"`
Adapter string `json:"adapter"`
OriginalType string `json:"originalType"`
OriginalCode string `json:"originalCode"`
N int64 `json:"n"`
Recipients int64 `json:"recipients"`
Suppressed int64 `json:"suppressed"`
}
type ReportCampaignParams ¶
type ReportCampaignRow ¶
type ReportCampaignRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Name string `json:"name"`
Status string `json:"status"`
Subject string `json:"subject"`
Audience json.RawMessage `json:"audience"`
AudienceCount *int64 `json:"audienceCount"`
AbTest json.RawMessage `json:"abTest"`
Schedule json.RawMessage `json:"schedule"`
Html string `json:"html"`
ScheduledAt *time.Time `json:"scheduledAt"`
StartedAt *time.Time `json:"startedAt"`
CompletedAt *time.Time `json:"completedAt"`
Origin string `json:"origin"`
Note string `json:"note"`
}
type ReportCounterCellsRow ¶
type ReportCounterCellsRow struct {
ProviderID uuid.UUID `json:"providerId"`
MailboxProvider string `json:"mailboxProvider"`
Variant string `json:"variant"`
ProviderName string `json:"providerName"`
Adapter string `json:"adapter"`
Sent int64 `json:"sent"`
Delivered int64 `json:"delivered"`
Deferred int64 `json:"deferred"`
HardBounced int64 `json:"hardBounced"`
SoftBounced int64 `json:"softBounced"`
Complained int64 `json:"complained"`
Rejected int64 `json:"rejected"`
OpenedHuman int64 `json:"openedHuman"`
OpenedMachine int64 `json:"openedMachine"`
Clicked int64 `json:"clicked"`
Unsubscribed int64 `json:"unsubscribed"`
}
type ReportHourlyParams ¶
type ReportHourlyRow ¶
type ReportIngestBacklogRow ¶
type ReportLatestSentParams ¶
type ReportLatestSentRow ¶
type ReportLinksRow ¶
type ReportRoutesRow ¶
type ReportShare ¶
type ReportShare struct {
}
type ReportShareByTokenRow ¶
type ReportShareByTokenRow struct {
}
type ReportShareCreateParams ¶
type ReportShareCreateParams struct {
}
type ReportShareGetParams ¶
type ReportShareGetParams struct {
}
type ReportShareListParams ¶
type ReportShareListParams struct {
}
type ReportShareListRow ¶
type ReportShareListRow struct {
}
type ReportShareRevokeParams ¶
type ReportShareRevokeParams struct {
}
type ReportShareTouchParams ¶
type ReportShareTouchParams struct {
}
type ReportWarmupAtRow ¶
type ResumeAutomationParams ¶
type RevokeAPIKeyParams ¶
type RevokeInvitationParams ¶
type RevokeSessionParams ¶
type Role ¶
type Role struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Key string `json:"key"`
Name string `json:"name"`
Description string `json:"description"`
Builtin bool `json:"builtin"`
Permissions []string `json:"permissions"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type RolesCreateParams ¶
type RolesDeleteParams ¶
type RolesGetParams ¶
type RolesGetRow ¶
type RolesGetRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Key string `json:"key"`
Name string `json:"name"`
Description string `json:"description"`
Builtin bool `json:"builtin"`
Permissions []string `json:"permissions"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
CreatedByName string `json:"createdByName"`
}
type RolesKeyTakenParams ¶
type RolesKeysOfMembersRow ¶
type RolesListRow ¶
type RolesListRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Key string `json:"key"`
Name string `json:"name"`
Description string `json:"description"`
Builtin bool `json:"builtin"`
Permissions []string `json:"permissions"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
CreatedByName string `json:"createdByName"`
}
type RolesMembersRow ¶
type RolesMembersRow struct {
MemberID uuid.UUID `json:"memberId"`
RoleID uuid.UUID `json:"roleId"`
Status string `json:"status"`
UserID uuid.UUID `json:"userId"`
Name string `json:"name"`
Email string `json:"email"`
AvatarColor string `json:"avatarColor"`
TotpEnabledAt *time.Time `json:"totpEnabledAt"`
PasskeyCount int64 `json:"passkeyCount"`
SsoIdentities int64 `json:"ssoIdentities"`
}
type RolesNameTakenParams ¶
type RolesPendingInvitesRow ¶
type RolesUpdateParams ¶
type RoutingContactParams ¶
type RoutingContactRow ¶
type RoutingInsertRuleParams ¶
type RoutingInsertRuleParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Stream string `json:"stream"`
Priority int32 `json:"priority"`
Name string `json:"name"`
Conditions json.RawMessage `json:"conditions"`
Splits json.RawMessage `json:"splits"`
FallbackProviderID *uuid.UUID `json:"fallbackProviderId"`
UpdatedBy *uuid.UUID `json:"updatedBy"`
UpdatedAt time.Time `json:"updatedAt"`
}
type RoutingListsRow ¶
type RoutingRule ¶
type RoutingRule struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Stream string `json:"stream"`
Priority int32 `json:"priority"`
Name string `json:"name"`
Conditions json.RawMessage `json:"conditions"`
Splits json.RawMessage `json:"splits"`
FallbackProviderID *uuid.UUID `json:"fallbackProviderId"`
Enabled bool `json:"enabled"`
UpdatedBy *uuid.UUID `json:"updatedBy"`
UpdatedAt time.Time `json:"updatedAt"`
}
type RoutingSavedRow ¶
type RoutingSenderDomainsRow ¶
type RoutingSenderDomainsRow struct {
ID uuid.UUID `json:"id"`
Domain string `json:"domain"`
DnsRecords json.RawMessage `json:"dnsRecords"`
}
type SSOCreateIdentityParams ¶
type SSOCreateIdentityParams struct {
ID uuid.UUID `json:"id"`
UserID uuid.UUID `json:"userId"`
Kind string `json:"kind"`
SsoProviderID *uuid.UUID `json:"ssoProviderId"`
Subject string `json:"subject"`
Email string `json:"email"`
Username string `json:"username"`
Details json.RawMessage `json:"details"`
}
type SSOCreateMemberParams ¶
type SSOCreateProviderParams ¶
type SSOCreateProviderParams struct {
ID uuid.UUID `json:"id"`
Preset string `json:"preset"`
Name string `json:"name"`
IssuerUrl string `json:"issuerUrl"`
Scopes []string `json:"scopes"`
ClaimMap json.RawMessage `json:"claimMap"`
AllowedDomains []string `json:"allowedDomains"`
JitEnabled bool `json:"jitEnabled"`
JitWorkspaceID *uuid.UUID `json:"jitWorkspaceId"`
JitRoleKey *string `json:"jitRoleKey"`
CreatedBy *uuid.UUID `json:"createdBy"`
}
type SSOCreateUserParams ¶
type SSODomainUsersParams ¶
type SSODomainUsersRow ¶
type SSODomainUsersRow struct {
ID uuid.UUID `json:"id"`
Email string `json:"email"`
Name string `json:"name"`
AvatarColor string `json:"avatarColor"`
AvatarUpdatedAt *time.Time `json:"avatarUpdatedAt"`
BreakGlass bool `json:"breakGlass"`
HasPassword bool `json:"hasPassword"`
HasTotp bool `json:"hasTotp"`
Passkeys int64 `json:"passkeys"`
Social []string `json:"social"`
Linked bool `json:"linked"`
}
type SSOGroupMembershipsRow ¶
type SSOGroupMembershipsRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
WorkspaceName string `json:"workspaceName"`
RoleID uuid.UUID `json:"roleId"`
Source string `json:"source"`
RoleKey string `json:"roleKey"`
RoleName string `json:"roleName"`
RoleBuiltin bool `json:"roleBuiltin"`
}
type SSOIdentityUsersRow ¶
type SSOMembershipParams ¶
type SSOMembershipRow ¶
type SSOOwnersRow ¶
type SSOOwnersRow struct {
ID uuid.UUID `json:"id"`
Email string `json:"email"`
Name string `json:"name"`
BreakGlass bool `json:"breakGlass"`
HasPassword bool `json:"hasPassword"`
HasSecondFactor bool `json:"hasSecondFactor"`
WorkspaceName string `json:"workspaceName"`
JoinedAt time.Time `json:"joinedAt"`
}
type SSOPendingInvitationRow ¶
type SSOPendingInvitationRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Email string `json:"email"`
RoleID uuid.UUID `json:"roleId"`
Scope json.RawMessage `json:"scope"`
ExpiresAt time.Time `json:"expiresAt"`
AcceptedAt *time.Time `json:"acceptedAt"`
RevokedAt *time.Time `json:"revokedAt"`
InvitedBy *uuid.UUID `json:"invitedBy"`
WorkspaceSlug string `json:"workspaceSlug"`
WorkspaceName string `json:"workspaceName"`
RoleKey string `json:"roleKey"`
RoleName string `json:"roleName"`
RoleBuiltin bool `json:"roleBuiltin"`
RolePermissions []string `json:"rolePermissions"`
InvitedByStatus string `json:"invitedByStatus"`
}
type SSOSetDiscoveryParams ¶
type SSOSetDiscoveryParams struct {
Discovery json.RawMessage `json:"discovery"`
IssuerUrl string `json:"issuerUrl"`
ID uuid.UUID `json:"id"`
}
type SSOSetEnforcementParams ¶
type SSOSetLastTestParams ¶
type SSOSetLastTestParams struct {
LastTest json.RawMessage `json:"lastTest"`
ID uuid.UUID `json:"id"`
}
type SSOSetMemberRoleParams ¶
type SSOSetPresetParams ¶
type SSOSetStatusParams ¶
type SSOSignInFailuresRow ¶
type SSOTouchIdentityParams ¶
type SSOUpdateProviderParams ¶
type SSOUpdateProviderParams struct {
Name string `json:"name"`
IssuerUrl string `json:"issuerUrl"`
ClientID string `json:"clientId"`
Scopes []string `json:"scopes"`
ClaimMap json.RawMessage `json:"claimMap"`
AllowedDomains []string `json:"allowedDomains"`
JitEnabled bool `json:"jitEnabled"`
JitWorkspaceID *uuid.UUID `json:"jitWorkspaceId"`
JitRoleKey *string `json:"jitRoleKey"`
GroupMappings json.RawMessage `json:"groupMappings"`
TwofaMode *string `json:"twofaMode"`
ID uuid.UUID `json:"id"`
}
type SSOWorkspaceListsRow ¶
type SSOWorkspaceRolesRow ¶
type SSOWorkspaceRolesRow struct {
WorkspaceID uuid.UUID `json:"workspaceId"`
Slug string `json:"slug"`
WorkspaceName string `json:"workspaceName"`
RoleID uuid.UUID `json:"roleId"`
RoleKey string `json:"roleKey"`
RoleName string `json:"roleName"`
Builtin bool `json:"builtin"`
Permissions []string `json:"permissions"`
}
type SaveComposerContentParams ¶
type SaveComposerContentParams struct {
Subject string `json:"subject"`
Preheader string `json:"preheader"`
Mjml string `json:"mjml"`
Html string `json:"html"`
PlainText string `json:"plainText"`
AbTest json.RawMessage `json:"abTest"`
ContentHash string `json:"contentHash"`
Version int32 `json:"version"`
UpdatedBy *uuid.UUID `json:"updatedBy"`
Now time.Time `json:"now"`
WorkspaceID uuid.UUID `json:"workspaceId"`
ID uuid.UUID `json:"id"`
}
type SavedView ¶
type SavedView struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
UserID *uuid.UUID `json:"userId"`
Name string `json:"name"`
Filters json.RawMessage `json:"filters"`
Columns []string `json:"columns"`
Position int32 `json:"position"`
CreatedAt time.Time `json:"createdAt"`
ShowInHealth bool `json:"showInHealth"`
}
type ScopeTotalsSinceParams ¶
type ScopeTotalsSinceRow ¶
type ScopeTotalsSinceRow struct {
Scope string `json:"scope"`
ScopeID uuid.UUID `json:"scopeId"`
Joined int64 `json:"joined"`
Departed int64 `json:"departed"`
Sent int64 `json:"sent"`
Delivered int64 `json:"delivered"`
OpenedHuman int64 `json:"openedHuman"`
Unsubscribed int64 `json:"unsubscribed"`
Complained int64 `json:"complained"`
Bounced int64 `json:"bounced"`
}
type Segment ¶
type Segment struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Name string `json:"name"`
Description string `json:"description"`
Mode string `json:"mode"`
Definition json.RawMessage `json:"definition"`
Sql string `json:"sql"`
CachedCount *int64 `json:"cachedCount"`
CountedAt *time.Time `json:"countedAt"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
Refresh string `json:"refresh"`
CountMs *int32 `json:"countMs"`
TierCounts json.RawMessage `json:"tierCounts"`
UpdatedBy *uuid.UUID `json:"updatedBy"`
}
type SegmentMember ¶
type Sender ¶
type Sender struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
DomainID uuid.UUID `json:"domainId"`
Name string `json:"name"`
Email string `json:"email"`
ReplyTo string `json:"replyTo"`
Verification json.RawMessage `json:"verification"`
CreatedAt time.Time `json:"createdAt"`
Note string `json:"note"`
CreatedBy *uuid.UUID `json:"createdBy"`
UpdatedAt time.Time `json:"updatedAt"`
}
type SenderCreateParams ¶
type SenderCreateParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
DomainID uuid.UUID `json:"domainId"`
Name string `json:"name"`
Email string `json:"email"`
ReplyTo string `json:"replyTo"`
Note string `json:"note"`
Verification json.RawMessage `json:"verification"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
}
type SenderGetByEmailParams ¶
type SenderGetByEmailRow ¶
type SenderGetByEmailRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
DomainID uuid.UUID `json:"domainId"`
Name string `json:"name"`
Email string `json:"email"`
ReplyTo string `json:"replyTo"`
Verification json.RawMessage `json:"verification"`
CreatedAt time.Time `json:"createdAt"`
Note string `json:"note"`
CreatedBy *uuid.UUID `json:"createdBy"`
UpdatedAt time.Time `json:"updatedAt"`
DomainName string `json:"domainName"`
}
type SenderGetParams ¶
type SenderGetRow ¶
type SenderGetRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
DomainID uuid.UUID `json:"domainId"`
Name string `json:"name"`
Email string `json:"email"`
ReplyTo string `json:"replyTo"`
Verification json.RawMessage `json:"verification"`
CreatedAt time.Time `json:"createdAt"`
Note string `json:"note"`
CreatedBy *uuid.UUID `json:"createdBy"`
UpdatedAt time.Time `json:"updatedAt"`
DomainName string `json:"domainName"`
}
type SenderListRow ¶
type SenderListRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
DomainID uuid.UUID `json:"domainId"`
Name string `json:"name"`
Email string `json:"email"`
ReplyTo string `json:"replyTo"`
Verification json.RawMessage `json:"verification"`
CreatedAt time.Time `json:"createdAt"`
Note string `json:"note"`
CreatedBy *uuid.UUID `json:"createdBy"`
UpdatedAt time.Time `json:"updatedAt"`
DomainName string `json:"domainName"`
}
type SenderSetFooterAddressParams ¶
type SenderSetFooterAddressParams struct {
}
type SenderSetVerificationParams ¶
type SenderSetVerificationParams struct {
Verification json.RawMessage `json:"verification"`
ID uuid.UUID `json:"id"`
}
type SenderUpdateParams ¶
type SenderWorkspaceDefaultsRow ¶
type SenderWorkspaceDefaultsRow struct {
DefaultSenderID *uuid.UUID `json:"defaultSenderId"`
DefaultAutomationSenderID *uuid.UUID `json:"defaultAutomationSenderId"`
DefaultSystemSenderID *uuid.UUID `json:"defaultSystemSenderId"`
SendingDefaults json.RawMessage `json:"sendingDefaults"`
SendThresholds json.RawMessage `json:"sendThresholds"`
Branding json.RawMessage `json:"branding"`
}
type SendingABTotalsRow ¶
type SendingActiveSendsRow ¶
type SendingAddPlannedParams ¶
type SendingApprovalRow ¶
type SendingAudiencePageRow ¶
type SendingAudiencePageRow struct {
ID uuid.UUID `json:"id"`
Email string `json:"email"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Attributes json.RawMessage `json:"attributes"`
MailboxProvider string `json:"mailboxProvider"`
Tier string `json:"tier"`
Status string `json:"status"`
Source string `json:"source"`
LastOpenAt *time.Time `json:"lastOpenAt"`
LastHumanOpenAt *time.Time `json:"lastHumanOpenAt"`
Consent string `json:"consent"`
RoleAddress bool `json:"roleAddress"`
SunsetStopped bool `json:"sunsetStopped"`
Suppressed bool `json:"suppressed"`
Paused bool `json:"paused"`
ExcludedList bool `json:"excludedList"`
ExcludedSegment bool `json:"excludedSegment"`
Lists []uuid.UUID `json:"lists"`
Gone bool `json:"gone"`
}
type SendingAutomationEmailRow ¶
type SendingAutomationEmailRow struct {
EmailID uuid.UUID `json:"emailId"`
Version int32 `json:"version"`
Subject string `json:"subject"`
Preheader string `json:"preheader"`
Html string `json:"html"`
PlainText string `json:"plainText"`
Name string `json:"name"`
WorkspaceID uuid.UUID `json:"workspaceId"`
}
type SendingCampaignContextRow ¶
type SendingCampaignContextRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Name string `json:"name"`
Status string `json:"status"`
Subject string `json:"subject"`
Preheader string `json:"preheader"`
SenderID *uuid.UUID `json:"senderId"`
ReplyTo string `json:"replyTo"`
Audience json.RawMessage `json:"audience"`
AudienceCount *int64 `json:"audienceCount"`
Html string `json:"html"`
PlainText string `json:"plainText"`
AbTest json.RawMessage `json:"abTest"`
Schedule json.RawMessage `json:"schedule"`
Thresholds json.RawMessage `json:"thresholds"`
RouteOverride json.RawMessage `json:"routeOverride"`
Tracking json.RawMessage `json:"tracking"`
CreatedBy *uuid.UUID `json:"createdBy"`
UpdatedBy *uuid.UUID `json:"updatedBy"`
ScheduledAt *time.Time `json:"scheduledAt"`
StartedBy *uuid.UUID `json:"startedBy"`
StartedAt *time.Time `json:"startedAt"`
CompletedAt *time.Time `json:"completedAt"`
Version int32 `json:"version"`
SenderEmail string `json:"senderEmail"`
SenderName string `json:"senderName"`
SenderReplyTo string `json:"senderReplyTo"`
WorkspaceSlug string `json:"workspaceSlug"`
WorkspaceTimezone string `json:"workspaceTimezone"`
WorkspaceName string `json:"workspaceName"`
WorkspaceThresholds json.RawMessage `json:"workspaceThresholds"`
}
type SendingClaimParams ¶
type SendingClaimRow ¶
type SendingClaimRow struct {
ID uuid.UUID `json:"id"`
ContactID *uuid.UUID `json:"contactId"`
Email string `json:"email"`
Variant string `json:"variant"`
MailboxProvider string `json:"mailboxProvider"`
Attempts int16 `json:"attempts"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Attributes json.RawMessage `json:"attributes"`
Tier string `json:"tier"`
Source string `json:"source"`
Engaged bool `json:"engaged"`
Gone bool `json:"gone"`
Suppressed bool `json:"suppressed"`
}
type SendingCountersRow ¶
type SendingCountersRow struct {
ProviderID uuid.UUID `json:"providerId"`
MailboxProvider string `json:"mailboxProvider"`
Variant string `json:"variant"`
Sent int64 `json:"sent"`
Delivered int64 `json:"delivered"`
Deferred int64 `json:"deferred"`
HardBounced int64 `json:"hardBounced"`
SoftBounced int64 `json:"softBounced"`
Complained int64 `json:"complained"`
Rejected int64 `json:"rejected"`
OpenedHuman int64 `json:"openedHuman"`
OpenedMachine int64 `json:"openedMachine"`
Clicked int64 `json:"clicked"`
Unsubscribed int64 `json:"unsubscribed"`
}
type SendingDomain ¶
type SendingDomain struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Domain string `json:"domain"`
DnsRecords json.RawMessage `json:"dnsRecords"`
AuthSummary json.RawMessage `json:"authSummary"`
Status string `json:"status"`
LastCheckedAt *time.Time `json:"lastCheckedAt"`
CreatedAt time.Time `json:"createdAt"`
Note string `json:"note"`
TrackingDomain string `json:"trackingDomain"`
TrackingStatus string `json:"trackingStatus"`
DnsHost string `json:"dnsHost"`
Nameservers []string `json:"nameservers"`
AuthDetail json.RawMessage `json:"authDetail"`
CreatedBy *uuid.UUID `json:"createdBy"`
UpdatedAt time.Time `json:"updatedAt"`
}
type SendingFeedParams ¶
type SendingFeedRow ¶
type SendingFeedRow struct {
ID uuid.UUID `json:"id"`
Type string `json:"type"`
OccurredAt time.Time `json:"occurredAt"`
ReceivedAt time.Time `json:"receivedAt"`
Recipient string `json:"recipient"`
ProviderID *uuid.UUID `json:"providerId"`
OriginalCode string `json:"originalCode"`
Diagnostic string `json:"diagnostic"`
Machine bool `json:"machine"`
Url string `json:"url"`
UserAgent string `json:"userAgent"`
MailboxProvider string `json:"mailboxProvider"`
Variant string `json:"variant"`
Suppresses bool `json:"suppresses"`
}
type SendingGroupSizeParams ¶
type SendingGroupSizeRow ¶
type SendingImportOfParams ¶
type SendingImportOfRow ¶
type SendingInsertAutomationMessageParams ¶
type SendingInsertAutomationMessageParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
AutomationID *uuid.UUID `json:"automationId"`
AutomationNode *string `json:"automationNode"`
ContactID *uuid.UUID `json:"contactId"`
Email string `json:"email"`
ProviderID *uuid.UUID `json:"providerId"`
MailboxProvider string `json:"mailboxProvider"`
Status string `json:"status"`
QueuedAt time.Time `json:"queuedAt"`
ContentRef json.RawMessage `json:"contentRef"`
}
type SendingInsertIncidentParams ¶
type SendingInsertIncidentParams struct {
ID uuid.UUID `json:"id"`
CampaignID uuid.UUID `json:"campaignId"`
Kind string `json:"kind"`
Scope string `json:"scope"`
ProviderID *uuid.UUID `json:"providerId"`
MailboxProvider string `json:"mailboxProvider"`
Metric string `json:"metric"`
Value *float64 `json:"value"`
Threshold *float64 `json:"threshold"`
Held int64 `json:"held"`
Detail json.RawMessage `json:"detail"`
TrippedAt time.Time `json:"trippedAt"`
}
type SendingInsertLinkParams ¶
type SendingInsertSendParams ¶
type SendingInsertSendParams struct {
CampaignID uuid.UUID `json:"campaignId"`
WorkspaceID uuid.UUID `json:"workspaceId"`
StartedBy *uuid.UUID `json:"startedBy"`
StartedByName string `json:"startedByName"`
ApprovedBy *uuid.UUID `json:"approvedBy"`
ApprovedAt *time.Time `json:"approvedAt"`
ScheduledBy *uuid.UUID `json:"scheduledBy"`
Throttles json.RawMessage `json:"throttles"`
Thresholds json.RawMessage `json:"thresholds"`
Scenario string `json:"scenario"`
At time.Time `json:"at"`
}
type SendingListNamesRow ¶
type SendingMarkSentParams ¶
type SendingMarkUnsentParams ¶
type SendingOpenWindowParams ¶
type SendingOutboxClaimRow ¶
type SendingOutboxClaimRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
AutomationID *uuid.UUID `json:"automationId"`
AutomationNode *string `json:"automationNode"`
ContactID *uuid.UUID `json:"contactId"`
Email string `json:"email"`
MailboxProvider string `json:"mailboxProvider"`
Attempts int16 `json:"attempts"`
ContentRef json.RawMessage `json:"contentRef"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Attributes json.RawMessage `json:"attributes"`
Tier string `json:"tier"`
Source string `json:"source"`
Engaged bool `json:"engaged"`
Gone bool `json:"gone"`
Suppressed bool `json:"suppressed"`
}
type SendingPriorSendsParams ¶
type SendingQueueStateParams ¶
type SendingQueueStateRow ¶
type SendingRateWindow ¶
type SendingReserveParams ¶
type SendingRetryLaterParams ¶
type SendingRetryNowParams ¶
type SendingRoutesRow ¶
type SendingSegmentNamesRow ¶
type SendingSentSinceParams ¶
type SendingSentSinceRow ¶
type SendingSetABParams ¶
type SendingSetChangesParams ¶
type SendingSetContentParams ¶
type SendingSetHoldsParams ¶
type SendingSetPausedParams ¶
type SendingSetPhaseParams ¶
type SendingSimEvent ¶
type SendingSimEvent struct {
ID int64 `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
CampaignID *uuid.UUID `json:"campaignId"`
MessageID uuid.UUID `json:"messageId"`
ProviderID uuid.UUID `json:"providerId"`
DueAt time.Time `json:"dueAt"`
Kind string `json:"kind"`
Data json.RawMessage `json:"data"`
}
type SendingSimMessagesRow ¶
type SendingSimMessagesRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
CampaignID *uuid.UUID `json:"campaignId"`
AutomationID *uuid.UUID `json:"automationId"`
ContactID *uuid.UUID `json:"contactId"`
Email string `json:"email"`
ProviderID *uuid.UUID `json:"providerId"`
ProviderMessageID *string `json:"providerMessageId"`
MailboxProvider string `json:"mailboxProvider"`
Variant string `json:"variant"`
SentAt *time.Time `json:"sentAt"`
Stream string `json:"stream"`
}
type SendingStageAddParams ¶
type SendingUnscheduleParams ¶
type SendingUnsentCountsRow ¶
type SendingUpdateIncidentDetailParams ¶
type SendingUpdateIncidentDetailParams struct {
Detail json.RawMessage `json:"detail"`
Held int64 `json:"held"`
ID uuid.UUID `json:"id"`
}
type SendingUserNamesRow ¶
type SendingWorkspaceDefaultsRow ¶
type SendingWorkspaceDefaultsRow struct {
SendThresholds json.RawMessage `json:"sendThresholds"`
SendingDefaults json.RawMessage `json:"sendingDefaults"`
}
type Session ¶
type Session struct {
ID uuid.UUID `json:"id"`
UserID uuid.UUID `json:"userId"`
TokenHash []byte `json:"tokenHash"`
AuthMethod string `json:"authMethod"`
MfaVerified bool `json:"mfaVerified"`
Ip *netip.Addr `json:"ip"`
UserAgent string `json:"userAgent"`
Location string `json:"location"`
CreatedAt time.Time `json:"createdAt"`
LastSeenAt time.Time `json:"lastSeenAt"`
ExpiresAt time.Time `json:"expiresAt"`
RevokedAt *time.Time `json:"revokedAt"`
Device string `json:"device"`
Os string `json:"os"`
Browser string `json:"browser"`
PasskeyID *uuid.UUID `json:"passkeyId"`
}
type SessionExtTimingRow ¶
type SetAutomationLiveParams ¶
type SetHostReputeMonitoredParams ¶
type SetHostReputeMonitoredParams struct {
Monitored json.RawMessage `json:"monitored"`
MonitorLimit *int32 `json:"monitorLimit"`
WorkspaceID uuid.UUID `json:"workspaceId"`
}
type SetImportConnectionParams ¶
type SetImportConnectionParams struct {
Connection json.RawMessage `json:"connection"`
CredentialsEnc []byte `json:"credentialsEnc"`
ID uuid.UUID `json:"id"`
}
type SetImportConsentMapParams ¶
type SetImportConsentMapParams struct {
ConsentMap json.RawMessage `json:"consentMap"`
ID uuid.UUID `json:"id"`
}
type SetImportFieldMapParams ¶
type SetImportFieldMapParams struct {
FieldMap json.RawMessage `json:"fieldMap"`
ID uuid.UUID `json:"id"`
}
type SetImportFileParams ¶
type SetImportOptionsParams ¶
type SetImportOptionsParams struct {
Options json.RawMessage `json:"options"`
ID uuid.UUID `json:"id"`
}
type SetImportPreviewParams ¶
type SetImportPreviewParams struct {
Preview json.RawMessage `json:"preview"`
ID uuid.UUID `json:"id"`
}
type SetImportProgressParams ¶
type SetImportProgressParams struct {
Progress json.RawMessage `json:"progress"`
ID uuid.UUID `json:"id"`
}
type SetImportStagedParams ¶
type SetImportStagedParams struct {
Connection json.RawMessage `json:"connection"`
ID uuid.UUID `json:"id"`
}
type SetImportStatusParams ¶
type SetImportStepParams ¶
type SetMemberStatusParams ¶
type SetSegmentCountParams ¶
type SetSessionPasskeyParams ¶
type SetSunsetPolicyParams ¶
type SetSunsetPolicyParams struct {
SunsetPolicy json.RawMessage `json:"sunsetPolicy"`
ID uuid.UUID `json:"id"`
}
type SetUserBreakGlassParams ¶
type SetUserEmailParams ¶
type SetUserPasswordParams ¶
type SetUserStatusParams ¶
type SetUserTOTPLabelParams ¶
type SetUserTOTPParams ¶
type SetUserTwoFAGraceParams ¶
type SetUserWebAuthnIDParams ¶
type SetupCreateParams ¶
type SetupGetParams ¶
type SetupListParams ¶
type SetupOpenParams ¶
type SetupSaveParams ¶
type SignInThrottle ¶
type SignupContactByIDParams ¶
type SignupContactNamesRow ¶
type SignupFillContactParams ¶
type SignupInsertConsentParams ¶
type SignupInsertConsentParams struct {
ID uuid.UUID `json:"id"`
ContactID uuid.UUID `json:"contactId"`
ListID *uuid.UUID `json:"listId"`
Action string `json:"action"`
Source string `json:"source"`
Ip *netip.Addr `json:"ip"`
UserAgent string `json:"userAgent"`
Detail string `json:"detail"`
Note string `json:"note"`
ConsentVersion string `json:"consentVersion"`
ConsentText string `json:"consentText"`
OccurredAt time.Time `json:"occurredAt"`
}
type SignupInsertContactParams ¶
type SignupInsertContactParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Email string `json:"email"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Company string `json:"company"`
MailboxProvider string `json:"mailboxProvider"`
Consent string `json:"consent"`
Source string `json:"source"`
Attributes json.RawMessage `json:"attributes"`
RoleAddress bool `json:"roleAddress"`
At time.Time `json:"at"`
}
type SignupLastConsentParams ¶
type SignupLastConsentRow ¶
type SignupMembershipsRow ¶
type SignupPreferencesRow ¶
type SignupPublicListsRow ¶
type SignupSuppressionParams ¶
type SndsDaily ¶
type SndsDaily struct {
WorkspaceID uuid.UUID `json:"workspaceId"`
Ip string `json:"ip"`
Day time.Time `json:"day"`
FilterResult string `json:"filterResult"`
ComplaintRate *float64 `json:"complaintRate"`
TrapHits int32 `json:"trapHits"`
Messages int64 `json:"messages"`
Via string `json:"via"`
JmrpReports int32 `json:"jmrpReports"`
}
type SoftDeleteListParams ¶
type SsoProvider ¶
type SsoProvider struct {
ID uuid.UUID `json:"id"`
Preset string `json:"preset"`
Name string `json:"name"`
IssuerUrl string `json:"issuerUrl"`
ClientID string `json:"clientId"`
ClientSecretEnc []byte `json:"clientSecretEnc"`
Scopes []string `json:"scopes"`
ClaimMap json.RawMessage `json:"claimMap"`
AllowedDomains []string `json:"allowedDomains"`
JitEnabled bool `json:"jitEnabled"`
JitWorkspaceID *uuid.UUID `json:"jitWorkspaceId"`
JitRoleKey *string `json:"jitRoleKey"`
GroupMappings json.RawMessage `json:"groupMappings"`
EnforceDomains []string `json:"enforceDomains"`
Status string `json:"status"`
LastTest json.RawMessage `json:"lastTest"`
Discovery json.RawMessage `json:"discovery"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
Slug string `json:"slug"`
TwofaMode *string `json:"twofaMode"`
ClientSecretSetAt *time.Time `json:"clientSecretSetAt"`
ClientSecretSetBy *uuid.UUID `json:"clientSecretSetBy"`
ClientSecretExpiresOn *time.Time `json:"clientSecretExpiresOn"`
EnabledAt *time.Time `json:"enabledAt"`
CreatedBy *uuid.UUID `json:"createdBy"`
}
type StartImportParams ¶
type StartImportParams struct {
Progress json.RawMessage `json:"progress"`
ID uuid.UUID `json:"id"`
}
type StreamFailover ¶
type StreamFailover struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Stream string `json:"stream"`
ProviderID uuid.UUID `json:"providerId"`
FallbackProviderID *uuid.UUID `json:"fallbackProviderId"`
Mode string `json:"mode"`
StartedAt time.Time `json:"startedAt"`
EndedAt *time.Time `json:"endedAt"`
EndReason string `json:"endReason"`
Detail json.RawMessage `json:"detail"`
}
type StreamPolicy ¶
type SubscriberToken ¶
type SubscriberToken struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
ContactID uuid.UUID `json:"contactId"`
Kind string `json:"kind"`
TokenHash []byte `json:"tokenHash"`
FormID *uuid.UUID `json:"formId"`
ListIds []uuid.UUID `json:"listIds"`
CreatedAt time.Time `json:"createdAt"`
ExpiresAt time.Time `json:"expiresAt"`
UsedAt *time.Time `json:"usedAt"`
}
type SuppAddedByProviderRow ¶
type SuppImportSourcesRow ¶
type SuppPendingCountParams ¶
type SuppReasonCountsRow ¶
type SuppSyncUpsertParams ¶
type SuppSyncUpsertParams struct {
ProviderID uuid.UUID `json:"providerId"`
Mode string `json:"mode"`
LastPushAt *time.Time `json:"lastPushAt"`
LastPullAt *time.Time `json:"lastPullAt"`
Pushed int64 `json:"pushed"`
Pulled int64 `json:"pulled"`
Pending int64 `json:"pending"`
Status string `json:"status"`
StatusDetail string `json:"statusDetail"`
}
type SuppToPushParams ¶
type SuppToPushRow ¶
type Suppression ¶
type Suppression struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Email string `json:"email"`
Reason string `json:"reason"`
Source string `json:"source"`
SourceProviderID *uuid.UUID `json:"sourceProviderId"`
OriginalCode string `json:"originalCode"`
Detail string `json:"detail"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
Scope string `json:"scope"`
CampaignID *uuid.UUID `json:"campaignId"`
AutomationID *uuid.UUID `json:"automationId"`
AutomationStep string `json:"automationStep"`
Context string `json:"context"`
ImportID *uuid.UUID `json:"importId"`
}
type SuppressionCountsRow ¶
type SuppressionSyncStatesRow ¶
type SuppressionSyncStatesRow struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Adapter string `json:"adapter"`
Label string `json:"label"`
Capabilities json.RawMessage `json:"capabilities"`
LastEventAt *time.Time `json:"lastEventAt"`
Mode string `json:"mode"`
LastPushAt *time.Time `json:"lastPushAt"`
LastPullAt *time.Time `json:"lastPullAt"`
Pushed int64 `json:"pushed"`
Pulled int64 `json:"pulled"`
Pending int64 `json:"pending"`
Status string `json:"status"`
StatusDetail string `json:"statusDetail"`
HasSync bool `json:"hasSync"`
Added int64 `json:"added"`
AddedAt time.Time `json:"addedAt"`
}
type SysmailInsertMessageParams ¶
type SysmailInsertMessageParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Stream string `json:"stream"`
Email string `json:"email"`
ProviderID *uuid.UUID `json:"providerId"`
MailboxProvider string `json:"mailboxProvider"`
QueuedAt time.Time `json:"queuedAt"`
Kind string `json:"kind"`
}
type SysmailMarkSentParams ¶
type TeamApprovalsGivenRow ¶
type TeamCreateInvitationParams ¶
type TeamCreateInvitationParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Email string `json:"email"`
RoleID uuid.UUID `json:"roleId"`
Scope json.RawMessage `json:"scope"`
Message string `json:"message"`
TokenHash []byte `json:"tokenHash"`
TokenEnc []byte `json:"tokenEnc"`
InvitedBy *uuid.UUID `json:"invitedBy"`
SentVia *string `json:"sentVia"`
LastSentAt *time.Time `json:"lastSentAt"`
ExpiresAt time.Time `json:"expiresAt"`
ExpiresDays int32 `json:"expiresDays"`
}
type TeamCreateInvitationRow ¶
type TeamDeleteMemberParams ¶
type TeamEnforcedSSORow ¶
type TeamGetInvitationParams ¶
type TeamGetInvitationRow ¶
type TeamGetInvitationRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Email string `json:"email"`
RoleID uuid.UUID `json:"roleId"`
Scope json.RawMessage `json:"scope"`
Message string `json:"message"`
InvitedBy *uuid.UUID `json:"invitedBy"`
SentVia *string `json:"sentVia"`
LastSentAt *time.Time `json:"lastSentAt"`
CreatedAt time.Time `json:"createdAt"`
ExpiresAt time.Time `json:"expiresAt"`
ExpiresDays int32 `json:"expiresDays"`
TokenEnc []byte `json:"tokenEnc"`
RoleName string `json:"roleName"`
RoleKey string `json:"roleKey"`
RoleBuiltin bool `json:"roleBuiltin"`
RolePermissions []string `json:"rolePermissions"`
InvitedByName string `json:"invitedByName"`
}
type TeamGetMemberParams ¶
type TeamGetMemberRow ¶
type TeamGetMemberRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
UserID uuid.UUID `json:"userId"`
RoleID uuid.UUID `json:"roleId"`
Scope json.RawMessage `json:"scope"`
Source string `json:"source"`
Status string `json:"status"`
JoinedAt time.Time `json:"joinedAt"`
DeactivatedAt *time.Time `json:"deactivatedAt"`
MemberLastActiveAt *time.Time `json:"memberLastActiveAt"`
RoleKey string `json:"roleKey"`
RoleName string `json:"roleName"`
RoleBuiltin bool `json:"roleBuiltin"`
RolePermissions []string `json:"rolePermissions"`
Email string `json:"email"`
UserName string `json:"userName"`
AvatarColor string `json:"avatarColor"`
UserStatus string `json:"userStatus"`
IsInstanceAdmin bool `json:"isInstanceAdmin"`
BreakGlass bool `json:"breakGlass"`
TotpEnabledAt *time.Time `json:"totpEnabledAt"`
TwofaGraceUntil *time.Time `json:"twofaGraceUntil"`
UserLastActiveAt *time.Time `json:"userLastActiveAt"`
HasPassword bool `json:"hasPassword"`
PasskeyCount int64 `json:"passkeyCount"`
}
type TeamIdentitiesRow ¶
type TeamJITProvidersRow ¶
type TeamListInvitationsRow ¶
type TeamListInvitationsRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Email string `json:"email"`
RoleID uuid.UUID `json:"roleId"`
Scope json.RawMessage `json:"scope"`
Message string `json:"message"`
InvitedBy *uuid.UUID `json:"invitedBy"`
SentVia *string `json:"sentVia"`
LastSentAt *time.Time `json:"lastSentAt"`
CreatedAt time.Time `json:"createdAt"`
ExpiresAt time.Time `json:"expiresAt"`
ExpiresDays int32 `json:"expiresDays"`
TokenEnc []byte `json:"tokenEnc"`
RoleName string `json:"roleName"`
RoleKey string `json:"roleKey"`
RoleBuiltin bool `json:"roleBuiltin"`
InvitedByName string `json:"invitedByName"`
}
type TeamListMembersRow ¶
type TeamListMembersRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
UserID uuid.UUID `json:"userId"`
RoleID uuid.UUID `json:"roleId"`
Scope json.RawMessage `json:"scope"`
Source string `json:"source"`
Status string `json:"status"`
JoinedAt time.Time `json:"joinedAt"`
DeactivatedAt *time.Time `json:"deactivatedAt"`
MemberLastActiveAt *time.Time `json:"memberLastActiveAt"`
RoleKey string `json:"roleKey"`
RoleName string `json:"roleName"`
RoleBuiltin bool `json:"roleBuiltin"`
RolePermissions []string `json:"rolePermissions"`
Email string `json:"email"`
UserName string `json:"userName"`
AvatarColor string `json:"avatarColor"`
UserStatus string `json:"userStatus"`
IsInstanceAdmin bool `json:"isInstanceAdmin"`
BreakGlass bool `json:"breakGlass"`
TotpEnabledAt *time.Time `json:"totpEnabledAt"`
TwofaGraceUntil *time.Time `json:"twofaGraceUntil"`
UserLastActiveAt *time.Time `json:"userLastActiveAt"`
HasPassword bool `json:"hasPassword"`
PasskeyCount int64 `json:"passkeyCount"`
}
type TeamMemberAPIKeysParams ¶
type TeamMemberAPIKeysRow ¶
type TeamMemberAPIKeysRow struct {
ID uuid.UUID `json:"id"`
Kind string `json:"kind"`
Name string `json:"name"`
Prefix string `json:"prefix"`
Permissions []string `json:"permissions"`
Scope json.RawMessage `json:"scope"`
CreatedAt time.Time `json:"createdAt"`
ExpiresAt *time.Time `json:"expiresAt"`
RevokedAt *time.Time `json:"revokedAt"`
LastUsedAt *time.Time `json:"lastUsedAt"`
}
type TeamMemberActivityRow ¶
type TeamMemberActivityRow struct {
ID uuid.UUID `json:"id"`
OccurredAt time.Time `json:"occurredAt"`
Action string `json:"action"`
TargetType string `json:"targetType"`
TargetID string `json:"targetId"`
TargetName string `json:"targetName"`
Result string `json:"result"`
Reason string `json:"reason"`
Metadata json.RawMessage `json:"metadata"`
}
type TeamMemberEmailsParams ¶
type TeamSetMemberRoleParams ¶
type TeamWorkspaceListsRow ¶
type Template ¶
type Template struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Kind string `json:"kind"`
Name string `json:"name"`
Description string `json:"description"`
Mjml string `json:"mjml"`
Html string `json:"html"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
Thumb json.RawMessage `json:"thumb"`
SizeBytes int32 `json:"sizeBytes"`
SourceCampaignID *uuid.UUID `json:"sourceCampaignId"`
UpdatedBy *uuid.UUID `json:"updatedBy"`
DeletedAt *time.Time `json:"deletedAt"`
}
type TierRunWorkspacesRow ¶
type TouchAPIKeyParams ¶
type TouchMemberActiveParams ¶
type TouchPasskeyParams ¶
type TrackingBumpCountersParams ¶
type TrackingBumpCountersParams struct {
CampaignID uuid.UUID `json:"campaignId"`
ProviderID uuid.UUID `json:"providerId"`
MailboxProvider string `json:"mailboxProvider"`
Variant string `json:"variant"`
OpenedHuman int64 `json:"openedHuman"`
OpenedMachine int64 `json:"openedMachine"`
Clicked int64 `json:"clicked"`
}
type TrackingBumpLinkParams ¶
type TrackingContactVarsRow ¶
type TrackingContactVarsRow struct {
Email string `json:"email"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Attributes json.RawMessage `json:"attributes"`
}
type TrackingInsertEventParams ¶
type TrackingInsertEventParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
MessageID *uuid.UUID `json:"messageId"`
CampaignID *uuid.UUID `json:"campaignId"`
ContactID *uuid.UUID `json:"contactId"`
ProviderID *uuid.UUID `json:"providerId"`
Type string `json:"type"`
OccurredAt time.Time `json:"occurredAt"`
ReceivedAt time.Time `json:"receivedAt"`
MailboxProvider string `json:"mailboxProvider"`
OriginalType string `json:"originalType"`
Diagnostic string `json:"diagnostic"`
Machine bool `json:"machine"`
Url string `json:"url"`
UserAgent string `json:"userAgent"`
Ip *netip.Addr `json:"ip"`
Recipient string `json:"recipient"`
Source string `json:"source"`
}
type TrackingLinkClick ¶
type TrackingMarkClickParams ¶
type TrackingMarkClickRow ¶
type TrackingMarkOpenParams ¶
type TrackingMarkOpenRow ¶
type TrackingMessageRow ¶
type TrackingMessageRow struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Stream string `json:"stream"`
CampaignID *uuid.UUID `json:"campaignId"`
AutomationID *uuid.UUID `json:"automationId"`
ContactID *uuid.UUID `json:"contactId"`
Email string `json:"email"`
Variant string `json:"variant"`
ProviderID *uuid.UUID `json:"providerId"`
MailboxProvider string `json:"mailboxProvider"`
SentAt *time.Time `json:"sentAt"`
DeliveredAt *time.Time `json:"deliveredAt"`
OpenedAt *time.Time `json:"openedAt"`
HumanOpenedAt *time.Time `json:"humanOpenedAt"`
ClickedAt *time.Time `json:"clickedAt"`
ContentRef json.RawMessage `json:"contentRef"`
CampaignStartedAt *time.Time `json:"campaignStartedAt"`
}
type UnsubscribeFeedback ¶
type UnsubscribeFeedback struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
ContactID *uuid.UUID `json:"contactId"`
CampaignID *uuid.UUID `json:"campaignId"`
Reason string `json:"reason"`
Comment string `json:"comment"`
ChoseFewer bool `json:"choseFewer"`
CreatedAt time.Time `json:"createdAt"`
}
type UpdateAuthPolicyParams ¶
type UpdateAuthPolicyParams struct {
AllowedMethods []string `json:"allowedMethods"`
PasswordMinLength int32 `json:"passwordMinLength"`
BreachedCheck bool `json:"breachedCheck"`
TwofaEnforcement string `json:"twofaEnforcement"`
TwofaGraceDays int32 `json:"twofaGraceDays"`
SessionLifetime time.Duration `json:"sessionLifetime"`
SessionIdle time.Duration `json:"sessionIdle"`
LockoutAttempts int32 `json:"lockoutAttempts"`
LockoutMinutes int32 `json:"lockoutMinutes"`
JitDomainAllowlist []string `json:"jitDomainAllowlist"`
}
type UpdateAutomationDraftGraphParams ¶
type UpdateAutomationDraftGraphParams struct {
Graph json.RawMessage `json:"graph"`
AutomationID uuid.UUID `json:"automationId"`
Version int32 `json:"version"`
}
type UpdateAutomationRunParams ¶
type UpdateAutomationRunParams struct {
Version int32 `json:"version"`
NodeID string `json:"nodeId"`
Status string `json:"status"`
State json.RawMessage `json:"state"`
NodeEnteredAt time.Time `json:"nodeEnteredAt"`
NextAt *time.Time `json:"nextAt"`
FinishedAt *time.Time `json:"finishedAt"`
ExitReason string `json:"exitReason"`
ID uuid.UUID `json:"id"`
}
type UpdateContactFieldsParams ¶
type UpdateContactFieldsParams struct {
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Company string `json:"company"`
Country string `json:"country"`
Timezone string `json:"timezone"`
Language string `json:"language"`
Tags []string `json:"tags"`
Attributes json.RawMessage `json:"attributes"`
WorkspaceID uuid.UUID `json:"workspaceId"`
ID uuid.UUID `json:"id"`
}
type UpdateCustomFieldParams ¶
type UpdateEmailTemplateParams ¶
type UpdateEmailTemplateParams struct {
Name string `json:"name"`
Description string `json:"description"`
Mjml string `json:"mjml"`
Html string `json:"html"`
Thumb json.RawMessage `json:"thumb"`
SizeBytes int32 `json:"sizeBytes"`
UpdatedBy *uuid.UUID `json:"updatedBy"`
Now time.Time `json:"now"`
WorkspaceID uuid.UUID `json:"workspaceId"`
ID uuid.UUID `json:"id"`
}
type UpdateListParams ¶
type UpdateMemberRoleParams ¶
type UpdateRoleParams ¶
type UpdateSegmentParams ¶
type UpdateSegmentParams struct {
Name string `json:"name"`
Description string `json:"description"`
Mode string `json:"mode"`
Refresh string `json:"refresh"`
Definition json.RawMessage `json:"definition"`
Sql string `json:"sql"`
UpdatedBy *uuid.UUID `json:"updatedBy"`
WorkspaceID uuid.UUID `json:"workspaceId"`
ID uuid.UUID `json:"id"`
}
type UpdateSocialProvidersParams ¶
type UpdateSocialProvidersParams struct {
SocialProviders json.RawMessage `json:"socialProviders"`
SocialSecretsEnc []byte `json:"socialSecretsEnc"`
}
type UpdateUserProfileParams ¶
type UpdateWorkspaceApprovalPolicyParams ¶
type UpdateWorkspaceApprovalPolicyParams struct {
ApprovalPolicy json.RawMessage `json:"approvalPolicy"`
ID uuid.UUID `json:"id"`
}
type UpdateWorkspaceJSONParams ¶
type UpdateWorkspaceJSONParams struct {
SunsetPolicy json.RawMessage `json:"sunsetPolicy"`
Branding json.RawMessage `json:"branding"`
SendThresholds json.RawMessage `json:"sendThresholds"`
ID uuid.UUID `json:"id"`
}
type UpsertAudienceDailyParams ¶
type UpsertAudienceDailyParams struct {
WorkspaceID uuid.UUID `json:"workspaceId"`
Scope string `json:"scope"`
ScopeID uuid.UUID `json:"scopeId"`
Day time.Time `json:"day"`
Contacts int64 `json:"contacts"`
Active int64 `json:"active"`
Cooling int64 `json:"cooling"`
AtRisk int64 `json:"atRisk"`
Sunset int64 `json:"sunset"`
Joined int64 `json:"joined"`
Departed int64 `json:"departed"`
Sent int64 `json:"sent"`
Delivered int64 `json:"delivered"`
OpenedHuman int64 `json:"openedHuman"`
Unsubscribed int64 `json:"unsubscribed"`
Complained int64 `json:"complained"`
Bounced int64 `json:"bounced"`
}
type UpsertAvatarParams ¶
type UpsertDeliverabilityDMARCReportParams ¶
type UpsertDeliverabilityDMARCReportParams struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Domain string `json:"domain"`
OrgName string `json:"orgName"`
ReportID string `json:"reportId"`
DateBegin time.Time `json:"dateBegin"`
DateEnd time.Time `json:"dateEnd"`
Policy json.RawMessage `json:"policy"`
Records json.RawMessage `json:"records"`
Via string `json:"via"`
ReceivedAt time.Time `json:"receivedAt"`
}
type UpsertDeliverabilityPostmasterDayParams ¶
type UpsertDeliverabilityPostmasterDayParams struct {
WorkspaceID uuid.UUID `json:"workspaceId"`
Domain string `json:"domain"`
Day time.Time `json:"day"`
Via string `json:"via"`
SpamRate *float64 `json:"spamRate"`
DomainReputation string `json:"domainReputation"`
IpReputation string `json:"ipReputation"`
SpfRate *float64 `json:"spfRate"`
DkimRate *float64 `json:"dkimRate"`
DmarcRate *float64 `json:"dmarcRate"`
TlsRate *float64 `json:"tlsRate"`
DeliveryErrors *float64 `json:"deliveryErrors"`
FblFlagged *int32 `json:"fblFlagged"`
}
type UpsertDeliverabilitySNDSDayParams ¶
type UpsertDeliverabilitySNDSDayParams struct {
WorkspaceID uuid.UUID `json:"workspaceId"`
Ip string `json:"ip"`
Day time.Time `json:"day"`
Via string `json:"via"`
FilterResult string `json:"filterResult"`
ComplaintRate *float64 `json:"complaintRate"`
TrapHits int32 `json:"trapHits"`
Messages int64 `json:"messages"`
JmrpReports int32 `json:"jmrpReports"`
}
type UpsertHostReputeConnectionParams ¶
type UpsertHostReputeConnectionParams struct {
WorkspaceID uuid.UUID `json:"workspaceId"`
Method string `json:"method"`
AccountEmail string `json:"accountEmail"`
TeamName string `json:"teamName"`
Scopes []string `json:"scopes"`
TokenEnc []byte `json:"tokenEnc"`
RefreshEnc []byte `json:"refreshEnc"`
TokenExpiresAt *time.Time `json:"tokenExpiresAt"`
ApiUrl string `json:"apiUrl"`
AccountID string `json:"accountId"`
TeamID string `json:"teamId"`
Plan string `json:"plan"`
MonitorLimit *int32 `json:"monitorLimit"`
Sources int32 `json:"sources"`
CheckIntervalMinutes int32 `json:"checkIntervalMinutes"`
DmarcRua string `json:"dmarcRua"`
ConnectedBy *uuid.UUID `json:"connectedBy"`
ConnectedAt time.Time `json:"connectedAt"`
}
type UpsertMembershipParams ¶
type UseRecoveryCodeParams ¶
type User ¶
type User struct {
ID uuid.UUID `json:"id"`
Email string `json:"email"`
Name string `json:"name"`
AvatarColor string `json:"avatarColor"`
Timezone string `json:"timezone"`
PasswordHash *string `json:"passwordHash"`
PasswordSetAt *time.Time `json:"passwordSetAt"`
MustChangePassword bool `json:"mustChangePassword"`
IsInstanceAdmin bool `json:"isInstanceAdmin"`
BreakGlass bool `json:"breakGlass"`
Status string `json:"status"`
DeactivatedAt *time.Time `json:"deactivatedAt"`
TotpSecretEnc []byte `json:"totpSecretEnc"`
TotpEnabledAt *time.Time `json:"totpEnabledAt"`
TwofaGraceUntil *time.Time `json:"twofaGraceUntil"`
FailedAttempts int32 `json:"failedAttempts"`
LockedUntil *time.Time `json:"lockedUntil"`
LastSignInAt *time.Time `json:"lastSignInAt"`
LastActiveAt *time.Time `json:"lastActiveAt"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
WebauthnID []byte `json:"webauthnId"`
TotpLabel string `json:"totpLabel"`
RecoveryCodesSavedAt *time.Time `json:"recoveryCodesSavedAt"`
AvatarUpdatedAt *time.Time `json:"avatarUpdatedAt"`
}
type UserAvatar ¶
type UserIdentity ¶
type UserIdentity struct {
ID uuid.UUID `json:"id"`
UserID uuid.UUID `json:"userId"`
Kind string `json:"kind"`
SsoProviderID *uuid.UUID `json:"ssoProviderId"`
Subject string `json:"subject"`
Email string `json:"email"`
CreatedAt time.Time `json:"createdAt"`
LastUsedAt *time.Time `json:"lastUsedAt"`
Username string `json:"username"`
Details json.RawMessage `json:"details"`
}
type UserPasskey ¶
type UserPasskey struct {
ID uuid.UUID `json:"id"`
UserID uuid.UUID `json:"userId"`
Name string `json:"name"`
CredentialID []byte `json:"credentialId"`
PublicKey []byte `json:"publicKey"`
AttestationType string `json:"attestationType"`
Aaguid []byte `json:"aaguid"`
SignCount int64 `json:"signCount"`
Transports []string `json:"transports"`
BackupEligible bool `json:"backupEligible"`
BackupState bool `json:"backupState"`
CreatedAt time.Time `json:"createdAt"`
LastUsedAt *time.Time `json:"lastUsedAt"`
Credential json.RawMessage `json:"credential"`
Attachment string `json:"attachment"`
Provider string `json:"provider"`
}
type UserPasswordHistory ¶
type UserRecoveryCode ¶
type UsersShareWorkspaceParams ¶
type UsersShareWorkspaceParams struct {
}
type WarmupActivePlansRow ¶
type WarmupActivePlansRow struct {
ID uuid.UUID `json:"id"`
ProviderID uuid.UUID `json:"providerId"`
Ip string `json:"ip"`
StartDate time.Time `json:"startDate"`
Days int32 `json:"days"`
Schedule json.RawMessage `json:"schedule"`
EngagedFirst bool `json:"engagedFirst"`
SlowdownBounce float64 `json:"slowdownBounce"`
SlowdownComplaint float64 `json:"slowdownComplaint"`
Status string `json:"status"`
StatusDetail string `json:"statusDetail"`
Progress json.RawMessage `json:"progress"`
CreatedAt time.Time `json:"createdAt"`
GuardAction string `json:"guardAction"`
SpreadMailbox bool `json:"spreadMailbox"`
CreatedBy *uuid.UUID `json:"createdBy"`
PausedAt *time.Time `json:"pausedAt"`
UpdatedAt time.Time `json:"updatedAt"`
ProviderName string `json:"providerName"`
Adapter string `json:"adapter"`
WorkspaceID uuid.UUID `json:"workspaceId"`
}
type WarmupAddEventParams ¶
type WarmupDailyStatsParams ¶
type WarmupDailyStatsRow ¶
type WarmupEvent ¶
type WarmupGetPlanParams ¶
type WarmupGetPlanRow ¶
type WarmupGetPlanRow struct {
ID uuid.UUID `json:"id"`
ProviderID uuid.UUID `json:"providerId"`
Ip string `json:"ip"`
StartDate time.Time `json:"startDate"`
Days int32 `json:"days"`
Schedule json.RawMessage `json:"schedule"`
EngagedFirst bool `json:"engagedFirst"`
SlowdownBounce float64 `json:"slowdownBounce"`
SlowdownComplaint float64 `json:"slowdownComplaint"`
Status string `json:"status"`
StatusDetail string `json:"statusDetail"`
Progress json.RawMessage `json:"progress"`
CreatedAt time.Time `json:"createdAt"`
GuardAction string `json:"guardAction"`
SpreadMailbox bool `json:"spreadMailbox"`
CreatedBy *uuid.UUID `json:"createdBy"`
PausedAt *time.Time `json:"pausedAt"`
UpdatedAt time.Time `json:"updatedAt"`
ProviderName string `json:"providerName"`
Adapter string `json:"adapter"`
WorkspaceID uuid.UUID `json:"workspaceId"`
}
type WarmupInsertPlanParams ¶
type WarmupInsertPlanParams struct {
ID uuid.UUID `json:"id"`
ProviderID uuid.UUID `json:"providerId"`
Ip string `json:"ip"`
StartDate time.Time `json:"startDate"`
Days int32 `json:"days"`
Schedule json.RawMessage `json:"schedule"`
EngagedFirst bool `json:"engagedFirst"`
SlowdownBounce float64 `json:"slowdownBounce"`
SlowdownComplaint float64 `json:"slowdownComplaint"`
GuardAction string `json:"guardAction"`
SpreadMailbox bool `json:"spreadMailbox"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
}
type WarmupListPlansRow ¶
type WarmupListPlansRow struct {
ID uuid.UUID `json:"id"`
ProviderID uuid.UUID `json:"providerId"`
Ip string `json:"ip"`
StartDate time.Time `json:"startDate"`
Days int32 `json:"days"`
Schedule json.RawMessage `json:"schedule"`
EngagedFirst bool `json:"engagedFirst"`
SlowdownBounce float64 `json:"slowdownBounce"`
SlowdownComplaint float64 `json:"slowdownComplaint"`
Status string `json:"status"`
StatusDetail string `json:"statusDetail"`
Progress json.RawMessage `json:"progress"`
CreatedAt time.Time `json:"createdAt"`
GuardAction string `json:"guardAction"`
SpreadMailbox bool `json:"spreadMailbox"`
CreatedBy *uuid.UUID `json:"createdBy"`
PausedAt *time.Time `json:"pausedAt"`
UpdatedAt time.Time `json:"updatedAt"`
ProviderName string `json:"providerName"`
Adapter string `json:"adapter"`
WorkspaceID uuid.UUID `json:"workspaceId"`
ProviderIps []string `json:"providerIps"`
ProviderStatus string `json:"providerStatus"`
CreatedByName string `json:"createdByName"`
}
type WarmupLogParams ¶
type WarmupPlan ¶
type WarmupPlan struct {
ID uuid.UUID `json:"id"`
ProviderID uuid.UUID `json:"providerId"`
Ip string `json:"ip"`
StartDate time.Time `json:"startDate"`
Days int32 `json:"days"`
Schedule json.RawMessage `json:"schedule"`
EngagedFirst bool `json:"engagedFirst"`
SlowdownBounce float64 `json:"slowdownBounce"`
SlowdownComplaint float64 `json:"slowdownComplaint"`
Status string `json:"status"`
StatusDetail string `json:"statusDetail"`
Progress json.RawMessage `json:"progress"`
CreatedAt time.Time `json:"createdAt"`
GuardAction string `json:"guardAction"`
SpreadMailbox bool `json:"spreadMailbox"`
CreatedBy *uuid.UUID `json:"createdBy"`
PausedAt *time.Time `json:"pausedAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type WarmupSetProgressParams ¶
type WarmupSetStatusParams ¶
type WarmupUpdateSettingsParams ¶
type WarmupUpdateSettingsParams struct {
Days int32 `json:"days"`
Schedule json.RawMessage `json:"schedule"`
EngagedFirst bool `json:"engagedFirst"`
SlowdownBounce float64 `json:"slowdownBounce"`
SlowdownComplaint float64 `json:"slowdownComplaint"`
GuardAction string `json:"guardAction"`
SpreadMailbox bool `json:"spreadMailbox"`
ID uuid.UUID `json:"id"`
}
type Webhook ¶
type Webhook struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
Name string `json:"name"`
Url string `json:"url"`
Events []string `json:"events"`
SecretEnc []byte `json:"secretEnc"`
Enabled bool `json:"enabled"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
LastStatus *int32 `json:"lastStatus"`
LastDeliveryAt *time.Time `json:"lastDeliveryAt"`
FailingSince *time.Time `json:"failingSince"`
Description string `json:"description"`
SecretRotatedAt *time.Time `json:"secretRotatedAt"`
PausedAt *time.Time `json:"pausedAt"`
UpdatedAt time.Time `json:"updatedAt"`
Demo bool `json:"demo"`
}
type WebhookDelivery ¶
type WebhookDelivery struct {
ID uuid.UUID `json:"id"`
WebhookID uuid.UUID `json:"webhookId"`
Event string `json:"event"`
Payload json.RawMessage `json:"payload"`
Attempt int32 `json:"attempt"`
StatusCode *int32 `json:"statusCode"`
DurationMs *int32 `json:"durationMs"`
Response string `json:"response"`
Error string `json:"error"`
CreatedAt time.Time `json:"createdAt"`
EventID *uuid.UUID `json:"eventId"`
State string `json:"state"`
MaxAttempts int32 `json:"maxAttempts"`
NextAttemptAt *time.Time `json:"nextAttemptAt"`
EnqueuedAt *time.Time `json:"enqueuedAt"`
LastAttemptAt *time.Time `json:"lastAttemptAt"`
DeliveredAt *time.Time `json:"deliveredAt"`
}
type Workspace ¶
type Workspace struct {
ID uuid.UUID `json:"id"`
Slug string `json:"slug"`
Name string `json:"name"`
Timezone string `json:"timezone"`
DefaultSenderID *uuid.UUID `json:"defaultSenderId"`
ApprovalPolicy json.RawMessage `json:"approvalPolicy"`
SunsetPolicy json.RawMessage `json:"sunsetPolicy"`
Branding json.RawMessage `json:"branding"`
SendThresholds json.RawMessage `json:"sendThresholds"`
AuditRetentionDays int32 `json:"auditRetentionDays"`
AuditStreamUrl *string `json:"auditStreamUrl"`
CreatedBy *uuid.UUID `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt"`
McpSettings json.RawMessage `json:"mcpSettings"`
AuditStreamEnabled bool `json:"auditStreamEnabled"`
AuditStreamSecretEnc []byte `json:"auditStreamSecretEnc"`
AuditStreamCursorAt *time.Time `json:"auditStreamCursorAt"`
AuditStreamCursorID *uuid.UUID `json:"auditStreamCursorId"`
AuditStreamStatus json.RawMessage `json:"auditStreamStatus"`
AuditStreamDemo bool `json:"auditStreamDemo"`
DefaultAutomationSenderID *uuid.UUID `json:"defaultAutomationSenderId"`
DefaultSystemSenderID *uuid.UUID `json:"defaultSystemSenderId"`
SendingDefaults json.RawMessage `json:"sendingDefaults"`
}
type WorkspaceMember ¶
type WorkspaceMember struct {
ID uuid.UUID `json:"id"`
WorkspaceID uuid.UUID `json:"workspaceId"`
UserID uuid.UUID `json:"userId"`
RoleID uuid.UUID `json:"roleId"`
Scope json.RawMessage `json:"scope"`
Source string `json:"source"`
Status string `json:"status"`
InvitedBy *uuid.UUID `json:"invitedBy"`
JoinedAt time.Time `json:"joinedAt"`
DeactivatedAt *time.Time `json:"deactivatedAt"`
LastActiveAt *time.Time `json:"lastActiveAt"`
}
type WorkspaceProvidersRow ¶
type WorkspaceTierHistoryRow ¶
type WsAuditSettingsRow ¶
type WsAuditSettingsRow struct {
AuditRetentionDays int32 `json:"auditRetentionDays"`
AuditStreamUrl *string `json:"auditStreamUrl"`
AuditStreamEnabled bool `json:"auditStreamEnabled"`
HasSecret bool `json:"hasSecret"`
AuditStreamStatus json.RawMessage `json:"auditStreamStatus"`
AuditStreamCursorAt *time.Time `json:"auditStreamCursorAt"`
}
type WsCountsRow ¶
type WsCountsRow struct {
Contacts int64 `json:"contacts"`
Lists int64 `json:"lists"`
Segments int64 `json:"segments"`
Campaigns int64 `json:"campaigns"`
Automations int64 `json:"automations"`
Templates int64 `json:"templates"`
Providers int64 `json:"providers"`
Scheduled int64 `json:"scheduled"`
PendingApprovals int64 `json:"pendingApprovals"`
}
type WsMemberCountsRow ¶
type WsProviderNamesRow ¶
type WsPurgeDeletedRow ¶
type WsSenderExistsParams ¶
type WsSendersRow ¶
type WsSetMCPSettingsParams ¶
type WsSetMCPSettingsParams struct {
McpSettings json.RawMessage `json:"mcpSettings"`
ID uuid.UUID `json:"id"`
}
type WsUpdateGeneralParams ¶
Source Files
¶
- accessrequests.sql.go
- accounts.sql.go
- apikeys.sql.go
- approvals.sql.go
- audience.sql.go
- audience_signup.sql.go
- audit.sql.go
- audit_instance.sql.go
- auditlog.sql.go
- automations.sql.go
- campaigns.sql.go
- connect.sql.go
- contentcheck.sql.go
- db.go
- deliverability.sql.go
- domains.sql.go
- forms.sql.go
- hostrepute.sql.go
- imports.sql.go
- ingest.sql.go
- instance.sql.go
- instance_admin.sql.go
- mcpserver.sql.go
- media.sql.go
- models.go
- notify.sql.go
- overview.sql.go
- providers.sql.go
- publicpages.sql.go
- querier.go
- readiness.sql.go
- remote_adapters.sql.go
- reports.sql.go
- roles.sql.go
- routing.sql.go
- segments.sql.go
- sending.sql.go
- sessionext.sql.go
- sessions.sql.go
- sso.sql.go
- suppression_sync.sql.go
- team.sql.go
- templates.sql.go
- throttle.sql.go
- tracking.sql.go
- users.sql.go
- warmup.sql.go
- webhooks.sql.go
- workspace_settings.sql.go
- workspaces.sql.go