Documentation
¶
Index ¶
- Constants
- Variables
- func HasDefaultAdminCredentials(ctx context.Context, queries *Queries) (bool, error)
- func IsMissingAPIKeySourceStateTableError(err error) bool
- func IsSQLiteBusy(err error) bool
- func Migrate(db *sql.DB) error
- func NewDB(path string) (*sql.DB, error)
- func NewDBWithConfig(path string, cfg DBConfig) (*sql.DB, error)
- func RotateDefaultAdminPassword(ctx context.Context, db *sql.DB) (string, error)
- func RotateDemoAdminPassword(ctx context.Context, db *sql.DB) (string, error)
- func RunMigrationCommand(ctx context.Context, db *sql.DB, command string, args ...string) error
- func Seed(ctx context.Context, db *sql.DB, doSeed bool) error
- func SeedDemo(ctx context.Context, db *sql.DB) error
- func SeedDemoInformerSettings(db *sql.DB) error
- func SeedWithAdminPassword(ctx context.Context, db *sql.DB, doSeed bool, adminPassword string) error
- type APIKeySourceState
- type AddCategoryToPageParams
- type AddTagToPageParams
- type AdvancePageRevisionParams
- type AdvanceUserTOTPStepParams
- type AliasExistsExcludingPageParams
- type ApiKey
- type ApiKeySourceCidr
- type ApiKeySourceState
- type BumpUserSessionVersionParams
- type CanExchangeCodeForDCRClientParams
- type Category
- type CategorySlugExistsExcludingForLanguageParams
- type CategorySlugExistsExcludingParams
- type CategorySlugExistsForLanguageParams
- type CheckClaimParams
- type ClaimsCheck
- type CleanupStaleLoginProtectionParams
- type ClearPageFeaturedImageParams
- type ClearPageScheduledAtParams
- type CompactPrunedRevisionReplaysParams
- type Config
- type ConfigTranslation
- type ConsumeOAuthCodeParams
- type ConsumeOAuthRefreshParams
- type ContentProvenance
- type ConvertMenuItemToURLParams
- type CountActivePreviewLinksParams
- type CountDeliveriesByStatusParams
- type CountEventsByLevelAndCategoryParams
- type CountExpiredEventsParams
- type CountIssuedPreviewLinksParams
- type CountOwnAIDraftsParams
- type CountPagesByLanguageAndStatusParams
- type CountPagesEmbeddingMediaUUIDParams
- type CountPagesInLanguageParams
- type CountPagesUsingMediaParams
- type CountPublishedPagesByCategoryAndLanguageParams
- type CountPublishedPagesForTagAndLanguageParams
- type CountRecentDraftMutationsParams
- type CountSearchMediaParams
- type CountSearchPagesByLanguageParams
- type CountSearchPagesByStatusParams
- type CountSearchPagesParams
- type CountTranslationsForEntityParams
- type CreateAPIKeyParams
- type CreateCategoryParams
- type CreateCompletePageVersionParams
- type CreateContentProvenanceParams
- type CreateEventParams
- type CreateFormFieldParams
- type CreateFormParams
- type CreateFormSubmissionParams
- type CreateIdempotencyKeyParams
- type CreateLanguageParams
- type CreateMediaFolderParams
- type CreateMediaParams
- type CreateMediaVariantParams
- type CreateMenuItemParams
- type CreateMenuParams
- type CreateOAuthCodeParams
- type CreateOAuthGrantParams
- type CreateOAuthTokenParams
- type CreatePageAliasParams
- type CreatePageParams
- type CreatePageVersionParams
- type CreatePreviewLinkParams
- type CreateRecoveryCodeParams
- type CreateRedirectParams
- type CreateScheduledTaskParams
- type CreateScheduledTaskRunParams
- type CreateTagParams
- type CreateTranslationParams
- type CreateUserParams
- type CreateWebhookDeliveryParams
- type CreateWebhookParams
- type CreateWidgetParams
- type DBConfig
- type DBTX
- type DeactivateAPIKeyParams
- type DeleteConfigTranslationParams
- type DeleteEditorialPresetOverrideParams
- type DeleteExpiredEventsParams
- type DeleteMediaTranslationParams
- type DeleteOldTaskRunsParams
- type DeletePrunedContentProvenanceParams
- type DeleteRetainedOAuthClientsParams
- type DeleteRetainedOAuthCodesParams
- type DeleteRetiredOAuthGrantsParams
- type DeleteRetiredOAuthPreviewsParams
- type DeleteRetiredOAuthTokensParams
- type DeleteSchedulerOverrideParams
- type DeleteTranslationsForEntityAndLanguageParams
- type DeleteTranslationsForEntityParams
- type DeleteTranslationsRelatedToEntityParams
- type DeleteUnredeemedOAuthGrantsParams
- type EarliestRecentDraftMutationParams
- type EditorialPreset
- type EditorialStyleGuide
- type Event
- type EvictOAuthDCRClientParams
- type ExtendDCROAuthClientParams
- type Form
- type FormField
- type FormSlugExistsExcludingForLanguageParams
- type FormSlugExistsForLanguageParams
- type FormSubmission
- type GetAllTranslationsOfEntityParams
- type GetAllTranslationsOfEntityRow
- type GetAllWidgetsByThemeAndLanguageParams
- type GetCategoryAvailableTranslationsRow
- type GetCategoryNamesForAllPagesRow
- type GetCategoryNamesForPublishedPagesRow
- type GetCategoryPathRow
- type GetCategoryUsageCountsByLanguageRow
- type GetCategoryUsageCountsRow
- type GetConfigTranslationByKeyAndLangCodeParams
- type GetConfigTranslationByKeyAndLangCodeRow
- type GetConfigTranslationParams
- type GetConfigTranslationRow
- type GetContentProvenanceParams
- type GetDeliveryStatsLast24hParams
- type GetDeliveryStatsLast24hRow
- type GetDeliveryStatsRow
- type GetFormAvailableTranslationsRow
- type GetFormBySlugAndLanguageParams
- type GetFormSubmissionsParams
- type GetFormSubmissionsSortedParams
- type GetIdempotencyKeyParams
- type GetLatestAuthoringProvenanceParams
- type GetLatestTranslationProvenanceParams
- type GetMaxMenuItemPositionParams
- type GetMaxWidgetPositionParams
- type GetMediaTranslationAltParams
- type GetMediaTranslationCaptionParams
- type GetMediaTranslationParams
- type GetMediaTranslationsRow
- type GetMediaVariantParams
- type GetMenuBySlugAndLanguageParams
- type GetMenuForLanguageOrDefaultParams
- type GetOAuthAccountRefreshBudgetParams
- type GetOAuthDCRRegistrationBudgetParams
- type GetOAuthDCRRegistrationBudgetRow
- type GetOAuthGrantRefreshBudgetParams
- type GetPageAuthorRow
- type GetPageAvailableTranslationsRow
- type GetPageByLanguageFromTranslationParams
- type GetPageReviewStateRow
- type GetPageTranslationBySlugParams
- type GetPageTranslationLinksRow
- type GetPageVersionByRevisionParams
- type GetPageVersionWithUserRow
- type GetPageWithLanguageRow
- type GetPagesForTagParams
- type GetPendingDeliveriesParams
- type GetPreviewIssuanceCutoffParams
- type GetPreviewLinkByHashParams
- type GetPreviousPageVersionParams
- type GetPublishedCategoryUsageCountsRow
- type GetPublishedPageBySlugAndLanguageParams
- type GetPublishedPageWithLanguageBySlugRow
- type GetPublishedTagUsageCountsParams
- type GetPublishedTagUsageCountsRow
- type GetRecentFailedDeliveriesWithWebhookRow
- type GetRecentSubmissionsWithFormRow
- type GetRelatedTranslationsParams
- type GetRelatedTranslationsRow
- type GetSchedulerOverrideParams
- type GetTagAvailableTranslationsRow
- type GetTagNamesForAllPagesRow
- type GetTagNamesForPublishedPagesRow
- type GetTagUsageCountsByLanguageParams
- type GetTagUsageCountsByLanguageRow
- type GetTagUsageCountsParams
- type GetTagUsageCountsRow
- type GetTagUsageCountsSortedParams
- type GetTranslatedEntityIDParams
- type GetTranslationComponentEntityByLanguageParams
- type GetTranslationCountsBatchRow
- type GetTranslationCoverageRow
- type GetTranslationParams
- type GetTranslationStatsRow
- type GetTranslationsForEntityParams
- type GetTranslationsForEntityRow
- type GetTranslationsForPagesBatchRow
- type GetWebhookHealthSummaryRow
- type GetWidgetsByThemeAndAreaParams
- type IdempotencyKey
- type IsModuleMigrationAppliedParams
- type Language
- type LanguageCodeExistsExcludingParams
- type ListAPIKeysByUserParams
- type ListAPIKeysParams
- type ListAPIKeysSortedParams
- type ListActiveAgentPreviewLinksRow
- type ListAllConfigTranslationsRow
- type ListCategoriesForSitemapRow
- type ListClaimChecksRow
- type ListConfigTranslationsRow
- type ListConnectedAPIKeysParams
- type ListConnectedAPIKeysRow
- type ListConnectedOAuthGrantsParams
- type ListConnectedOAuthGrantsRow
- type ListEventsByCategoryParams
- type ListEventsByLevelAndCategoryParams
- type ListEventsByLevelParams
- type ListEventsParams
- type ListEventsWithUserByCategoryParams
- type ListEventsWithUserByCategoryRow
- type ListEventsWithUserByLevelAndCategoryParams
- type ListEventsWithUserByLevelAndCategoryRow
- type ListEventsWithUserByLevelParams
- type ListEventsWithUserByLevelRow
- type ListEventsWithUserParams
- type ListEventsWithUserRow
- type ListFeedPostsParams
- type ListFeedPostsRow
- type ListFormsByLanguageParams
- type ListFormsParams
- type ListGroundingCategoriesParams
- type ListGroundingImagesParams
- type ListGroundingLanguagesParams
- type ListGroundingPagesParams
- type ListGroundingTagsParams
- type ListMediaByTypeParams
- type ListMediaInFolderParams
- type ListMediaInRootFolderParams
- type ListMediaParams
- type ListMediaSortedParams
- type ListMenuItemsWithPageRow
- type ListMenuItemsWithPublishedPageRow
- type ListOAuthGrantsForUserParams
- type ListOAuthGrantsForUserRow
- type ListOwnAIDraftsParams
- type ListPageIDsForMediaParams
- type ListPagePreviewLinksParams
- type ListPagePreviewLinksRow
- type ListPageVersionsParams
- type ListPageVersionsWithUserParams
- type ListPageVersionsWithUserRow
- type ListPagesByCategoryParams
- type ListPagesByLanguageAndStatusParams
- type ListPagesByLanguageParams
- type ListPagesByStatusParams
- type ListPagesInLanguageParams
- type ListPagesParams
- type ListPagesSortedParams
- type ListPrunableAIDraftRevisionsParams
- type ListPrunableAIDraftRevisionsRow
- type ListPublishedPagesByCategoryAndLanguageParams
- type ListPublishedPagesByCategoryParams
- type ListPublishedPagesByLanguageParams
- type ListPublishedPagesForSitemapRow
- type ListPublishedPagesForTagAndLanguageParams
- type ListPublishedPagesForTagParams
- type ListPublishedPagesParams
- type ListPublishedPostsByLanguageParams
- type ListPublishedPostsParams
- type ListRedirectsPaginatedParams
- type ListScheduledPagesParams
- type ListScheduledTaskRunsParams
- type ListTagsForSitemapRow
- type ListTagsParams
- type ListTranslationComponentMembersParams
- type ListTranslationComponentMembersRow
- type ListUsersParams
- type ListUsersSortedParams
- type ListWebhookDeliveriesParams
- type ListWebhooksPaginatedParams
- type LoginProtection
- type MediaFolder
- type MediaTranslation
- type MediaVariant
- type Medium
- type Menu
- type MenuItem
- type MenuSlugExistsExcludingParams
- type MenuSlugExistsForLanguageExcludingParams
- type MenuSlugExistsForLanguageParams
- type Module
- type ModuleMigration
- type MoveMediaToFolderParams
- type OauthClient
- type OauthCode
- type OauthDcrPending
- type OauthDcrRegistration
- type OauthGrant
- type OauthGrantRefreshActivity
- type OauthToken
- type Page
- type PageAiAccess
- type PageAlias
- type PageCategory
- type PageSearch
- type PageSearchQueue
- type PageTag
- type PageVersion
- type PagesFt
- type PreviewLink
- type PublishPageParams
- type PublishScheduledPageParams
- type PublishUnpublishedPageParams
- type Queries
- func (q *Queries) AddCategoryToPage(ctx context.Context, arg AddCategoryToPageParams) error
- func (q *Queries) AddTagToPage(ctx context.Context, arg AddTagToPageParams) error
- func (q *Queries) AdvancePageRevision(ctx context.Context, arg AdvancePageRevisionParams) (Page, error)
- func (q *Queries) AdvanceUserTOTPStep(ctx context.Context, arg AdvanceUserTOTPStepParams) (int64, error)
- func (q *Queries) AliasExists(ctx context.Context, alias string) (int64, error)
- func (q *Queries) AliasExistsExcludingPage(ctx context.Context, arg AliasExistsExcludingPageParams) (int64, error)
- func (q *Queries) BumpUserSessionVersion(ctx context.Context, arg BumpUserSessionVersionParams) (int64, error)
- func (q *Queries) CanExchangeCodeForDCRClient(ctx context.Context, arg CanExchangeCodeForDCRClientParams) (bool, error)
- func (q *Queries) CategorySlugExists(ctx context.Context, slug string) (int64, error)
- func (q *Queries) CategorySlugExistsExcluding(ctx context.Context, arg CategorySlugExistsExcludingParams) (int64, error)
- func (q *Queries) CategorySlugExistsExcludingForLanguage(ctx context.Context, arg CategorySlugExistsExcludingForLanguageParams) (int64, error)
- func (q *Queries) CategorySlugExistsForLanguage(ctx context.Context, arg CategorySlugExistsForLanguageParams) (int64, error)
- func (q *Queries) CheckClaim(ctx context.Context, arg CheckClaimParams) error
- func (q *Queries) CleanupStaleLoginProtection(ctx context.Context, arg CleanupStaleLoginProtectionParams) error
- func (q *Queries) ClearDefaultLanguage(ctx context.Context) error
- func (q *Queries) ClearPageAliases(ctx context.Context, pageID int64) error
- func (q *Queries) ClearPageCategories(ctx context.Context, pageID int64) error
- func (q *Queries) ClearPageFeaturedImage(ctx context.Context, arg ClearPageFeaturedImageParams) error
- func (q *Queries) ClearPageScheduledAt(ctx context.Context, arg ClearPageScheduledAtParams) error
- func (q *Queries) ClearPageTags(ctx context.Context, pageID int64) error
- func (q *Queries) CompactIdempotencyKeys(ctx context.Context, createdAt time.Time) error
- func (q *Queries) CompactPageIdempotencyKeys(ctx context.Context, entityID int64) error
- func (q *Queries) CompactPrunedRevisionReplays(ctx context.Context, arg CompactPrunedRevisionReplaysParams) (int64, error)
- func (q *Queries) ConsumeOAuthCode(ctx context.Context, arg ConsumeOAuthCodeParams) (int64, error)
- func (q *Queries) ConsumeOAuthRefresh(ctx context.Context, arg ConsumeOAuthRefreshParams) (int64, error)
- func (q *Queries) ConvertMenuItemToURL(ctx context.Context, arg ConvertMenuItemToURLParams) error
- func (q *Queries) CountAPIKeys(ctx context.Context) (int64, error)
- func (q *Queries) CountActiveAPIKeys(ctx context.Context) (int64, error)
- func (q *Queries) CountActiveLanguages(ctx context.Context) (int64, error)
- func (q *Queries) CountActivePreviewLinks(ctx context.Context, arg CountActivePreviewLinksParams) (int64, error)
- func (q *Queries) CountActiveWebhooks(ctx context.Context) (int64, error)
- func (q *Queries) CountAllUnreadSubmissions(ctx context.Context) (int64, error)
- func (q *Queries) CountCategories(ctx context.Context) (int64, error)
- func (q *Queries) CountConfig(ctx context.Context) (int64, error)
- func (q *Queries) CountContentReferencingMediaPath(ctx context.Context, mediaPath string) (int64, error)
- func (q *Queries) CountDeliveriesByStatus(ctx context.Context, arg CountDeliveriesByStatusParams) (int64, error)
- func (q *Queries) CountEvents(ctx context.Context) (int64, error)
- func (q *Queries) CountEventsByCategory(ctx context.Context, category string) (int64, error)
- func (q *Queries) CountEventsByLevel(ctx context.Context, level string) (int64, error)
- func (q *Queries) CountEventsByLevelAndCategory(ctx context.Context, arg CountEventsByLevelAndCategoryParams) (int64, error)
- func (q *Queries) CountExpiredEvents(ctx context.Context, arg CountExpiredEventsParams) (int64, error)
- func (q *Queries) CountFormSubmissions(ctx context.Context, formID int64) (int64, error)
- func (q *Queries) CountForms(ctx context.Context) (int64, error)
- func (q *Queries) CountFormsByLanguage(ctx context.Context, languageCode string) (int64, error)
- func (q *Queries) CountIssuedPreviewLinks(ctx context.Context, arg CountIssuedPreviewLinksParams) (int64, error)
- func (q *Queries) CountLanguages(ctx context.Context) (int64, error)
- func (q *Queries) CountMedia(ctx context.Context) (int64, error)
- func (q *Queries) CountMediaByType(ctx context.Context, mimeType string) (int64, error)
- func (q *Queries) CountMediaFolders(ctx context.Context) (int64, error)
- func (q *Queries) CountMediaInFolder(ctx context.Context, folderID sql.NullInt64) (int64, error)
- func (q *Queries) CountMediaInRootFolder(ctx context.Context) (int64, error)
- func (q *Queries) CountMenuItems(ctx context.Context, menuID int64) (int64, error)
- func (q *Queries) CountMenus(ctx context.Context) (int64, error)
- func (q *Queries) CountOAuthClients(ctx context.Context) (int64, error)
- func (q *Queries) CountOAuthClientsBySource(ctx context.Context, source string) (int64, error)
- func (q *Queries) CountOwnAIDrafts(ctx context.Context, arg CountOwnAIDraftsParams) (int64, error)
- func (q *Queries) CountPageVersions(ctx context.Context, pageID int64) (int64, error)
- func (q *Queries) CountPages(ctx context.Context) (int64, error)
- func (q *Queries) CountPagesByCategory(ctx context.Context, categoryID int64) (int64, error)
- func (q *Queries) CountPagesByLanguage(ctx context.Context, languageCode string) (int64, error)
- func (q *Queries) CountPagesByLanguageAndStatus(ctx context.Context, arg CountPagesByLanguageAndStatusParams) (int64, error)
- func (q *Queries) CountPagesByLanguageCode(ctx context.Context, languageCode string) (int64, error)
- func (q *Queries) CountPagesByStatus(ctx context.Context, status string) (int64, error)
- func (q *Queries) CountPagesEmbeddingMediaUUID(ctx context.Context, arg CountPagesEmbeddingMediaUUIDParams) (int64, error)
- func (q *Queries) CountPagesForTag(ctx context.Context, tagID int64) (int64, error)
- func (q *Queries) CountPagesInLanguage(ctx context.Context, arg CountPagesInLanguageParams) (int64, error)
- func (q *Queries) CountPagesSorted(ctx context.Context, arg ListPagesSortedParams) (int64, error)
- func (q *Queries) CountPagesUsingMedia(ctx context.Context, arg CountPagesUsingMediaParams) (int64, error)
- func (q *Queries) CountPublishedPages(ctx context.Context) (int64, error)
- func (q *Queries) CountPublishedPagesByCategory(ctx context.Context, categoryID int64) (int64, error)
- func (q *Queries) CountPublishedPagesByCategoryAndLanguage(ctx context.Context, arg CountPublishedPagesByCategoryAndLanguageParams) (int64, error)
- func (q *Queries) CountPublishedPagesByLanguage(ctx context.Context, languageCode string) (int64, error)
- func (q *Queries) CountPublishedPagesForTag(ctx context.Context, tagID int64) (int64, error)
- func (q *Queries) CountPublishedPagesForTagAndLanguage(ctx context.Context, arg CountPublishedPagesForTagAndLanguageParams) (int64, error)
- func (q *Queries) CountPublishedPosts(ctx context.Context) (int64, error)
- func (q *Queries) CountPublishedPostsByLanguage(ctx context.Context, languageCode string) (int64, error)
- func (q *Queries) CountRecentDraftMutations(ctx context.Context, arg CountRecentDraftMutationsParams) (int64, error)
- func (q *Queries) CountRedirects(ctx context.Context) (int64, error)
- func (q *Queries) CountScheduledPages(ctx context.Context) (int64, error)
- func (q *Queries) CountScheduledTaskRuns(ctx context.Context, taskID int64) (int64, error)
- func (q *Queries) CountSearchMedia(ctx context.Context, arg CountSearchMediaParams) (int64, error)
- func (q *Queries) CountSearchPages(ctx context.Context, arg CountSearchPagesParams) (int64, error)
- func (q *Queries) CountSearchPagesByLanguage(ctx context.Context, arg CountSearchPagesByLanguageParams) (int64, error)
- func (q *Queries) CountSearchPagesByStatus(ctx context.Context, arg CountSearchPagesByStatusParams) (int64, error)
- func (q *Queries) CountTags(ctx context.Context) (int64, error)
- func (q *Queries) CountTagsFiltered(ctx context.Context, searchPattern, languageCode sql.NullString) (int64, error)
- func (q *Queries) CountTranslationsForEntity(ctx context.Context, arg CountTranslationsForEntityParams) (int64, error)
- func (q *Queries) CountUnreadSubmissions(ctx context.Context, formID int64) (int64, error)
- func (q *Queries) CountUnusedRecoveryCodes(ctx context.Context, userID int64) (int64, error)
- func (q *Queries) CountUserOwnedContent(ctx context.Context, userID int64) (int64, error)
- func (q *Queries) CountUsers(ctx context.Context) (int64, error)
- func (q *Queries) CountUsersByRole(ctx context.Context, role string) (int64, error)
- func (q *Queries) CountWebhookDeliveries(ctx context.Context, webhookID int64) (int64, error)
- func (q *Queries) CountWebhooks(ctx context.Context) (int64, error)
- func (q *Queries) CreateAPIKey(ctx context.Context, arg CreateAPIKeyParams) (ApiKey, error)
- func (q *Queries) CreateCategory(ctx context.Context, arg CreateCategoryParams) (Category, error)
- func (q *Queries) CreateCompletePageVersion(ctx context.Context, arg CreateCompletePageVersionParams) (PageVersion, error)
- func (q *Queries) CreateContentProvenance(ctx context.Context, arg CreateContentProvenanceParams) error
- func (q *Queries) CreateEvent(ctx context.Context, arg CreateEventParams) (Event, error)
- func (q *Queries) CreateForm(ctx context.Context, arg CreateFormParams) (Form, error)
- func (q *Queries) CreateFormField(ctx context.Context, arg CreateFormFieldParams) (FormField, error)
- func (q *Queries) CreateFormSubmission(ctx context.Context, arg CreateFormSubmissionParams) (FormSubmission, error)
- func (q *Queries) CreateIdempotencyKey(ctx context.Context, arg CreateIdempotencyKeyParams) error
- func (q *Queries) CreateLanguage(ctx context.Context, arg CreateLanguageParams) (Language, error)
- func (q *Queries) CreateMedia(ctx context.Context, arg CreateMediaParams) (Medium, error)
- func (q *Queries) CreateMediaFolder(ctx context.Context, arg CreateMediaFolderParams) (MediaFolder, error)
- func (q *Queries) CreateMediaVariant(ctx context.Context, arg CreateMediaVariantParams) (MediaVariant, error)
- func (q *Queries) CreateMenu(ctx context.Context, arg CreateMenuParams) (Menu, error)
- func (q *Queries) CreateMenuItem(ctx context.Context, arg CreateMenuItemParams) (MenuItem, error)
- func (q *Queries) CreateOAuthCode(ctx context.Context, arg CreateOAuthCodeParams) error
- func (q *Queries) CreateOAuthGrant(ctx context.Context, arg CreateOAuthGrantParams) (OauthGrant, error)
- func (q *Queries) CreateOAuthToken(ctx context.Context, arg CreateOAuthTokenParams) error
- func (q *Queries) CreatePage(ctx context.Context, arg CreatePageParams) (Page, error)
- func (q *Queries) CreatePageAlias(ctx context.Context, arg CreatePageAliasParams) (PageAlias, error)
- func (q *Queries) CreatePageVersion(ctx context.Context, arg CreatePageVersionParams) (PageVersion, error)
- func (q *Queries) CreatePreviewLink(ctx context.Context, arg CreatePreviewLinkParams) (PreviewLink, error)
- func (q *Queries) CreateRecoveryCode(ctx context.Context, arg CreateRecoveryCodeParams) error
- func (q *Queries) CreateRedirect(ctx context.Context, arg CreateRedirectParams) (Redirect, error)
- func (q *Queries) CreateScheduledTask(ctx context.Context, arg CreateScheduledTaskParams) (ScheduledTask, error)
- func (q *Queries) CreateScheduledTaskRun(ctx context.Context, arg CreateScheduledTaskRunParams) (ScheduledTaskRun, error)
- func (q *Queries) CreateTag(ctx context.Context, arg CreateTagParams) (Tag, error)
- func (q *Queries) CreateTranslation(ctx context.Context, arg CreateTranslationParams) (Translation, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) CreateWebhook(ctx context.Context, arg CreateWebhookParams) (Webhook, error)
- func (q *Queries) CreateWebhookDelivery(ctx context.Context, arg CreateWebhookDeliveryParams) (WebhookDelivery, error)
- func (q *Queries) CreateWidget(ctx context.Context, arg CreateWidgetParams) (Widget, error)
- func (q *Queries) DBHandle() DBTX
- func (q *Queries) DeactivateAPIKey(ctx context.Context, arg DeactivateAPIKeyParams) error
- func (q *Queries) DeleteAPIKey(ctx context.Context, id int64) error
- func (q *Queries) DeleteAllMediaTranslations(ctx context.Context, mediaID int64) error
- func (q *Queries) DeleteAllOldTaskRuns(ctx context.Context, startedAt time.Time) error
- func (q *Queries) DeleteCategory(ctx context.Context, id int64) error
- func (q *Queries) DeleteConfig(ctx context.Context, key string) error
- func (q *Queries) DeleteConfigTranslation(ctx context.Context, arg DeleteConfigTranslationParams) error
- func (q *Queries) DeleteConfigTranslationsForKey(ctx context.Context, configKey string) error
- func (q *Queries) DeleteEditorialGuide(ctx context.Context, languageCode string) error
- func (q *Queries) DeleteEditorialPresetOverride(ctx context.Context, arg DeleteEditorialPresetOverrideParams) error
- func (q *Queries) DeleteExpiredEvents(ctx context.Context, arg DeleteExpiredEventsParams) (int64, error)
- func (q *Queries) DeleteExpiredUnusedOAuthClients(ctx context.Context, expiresAt int64) error
- func (q *Queries) DeleteForm(ctx context.Context, id int64) error
- func (q *Queries) DeleteFormField(ctx context.Context, id int64) error
- func (q *Queries) DeleteFormFields(ctx context.Context, formID int64) error
- func (q *Queries) DeleteFormSubmission(ctx context.Context, id int64) error
- func (q *Queries) DeleteLanguage(ctx context.Context, id int64) error
- func (q *Queries) DeleteLoginProtection(ctx context.Context, email string) error
- func (q *Queries) DeleteMedia(ctx context.Context, id int64) error
- func (q *Queries) DeleteMediaFolder(ctx context.Context, id int64) error
- func (q *Queries) DeleteMediaTranslation(ctx context.Context, arg DeleteMediaTranslationParams) error
- func (q *Queries) DeleteMediaVariants(ctx context.Context, mediaID int64) error
- func (q *Queries) DeleteMenu(ctx context.Context, id int64) error
- func (q *Queries) DeleteMenuItem(ctx context.Context, id int64) error
- func (q *Queries) DeleteMenuItems(ctx context.Context, menuID int64) error
- func (q *Queries) DeleteOldDeliveries(ctx context.Context, createdAt time.Time) error
- func (q *Queries) DeleteOldOAuthDCRRegistrations(ctx context.Context, cutoff int64) error
- func (q *Queries) DeleteOldTaskRuns(ctx context.Context, arg DeleteOldTaskRunsParams) error
- func (q *Queries) DeletePage(ctx context.Context, id int64) error
- func (q *Queries) DeletePageAlias(ctx context.Context, id int64) error
- func (q *Queries) DeletePageVersions(ctx context.Context, pageID int64) error
- func (q *Queries) DeletePrunedContentProvenance(ctx context.Context, arg DeletePrunedContentProvenanceParams) (int64, error)
- func (q *Queries) DeletePrunedPageVersion(ctx context.Context, id int64) (int64, error)
- func (q *Queries) DeleteRecoveryCodes(ctx context.Context, userID int64) error
- func (q *Queries) DeleteRedirect(ctx context.Context, id int64) error
- func (q *Queries) DeleteRetainedOAuthClients(ctx context.Context, arg DeleteRetainedOAuthClientsParams) (int64, error)
- func (q *Queries) DeleteRetainedOAuthCodes(ctx context.Context, arg DeleteRetainedOAuthCodesParams) (int64, error)
- func (q *Queries) DeleteRetiredOAuthGrants(ctx context.Context, arg DeleteRetiredOAuthGrantsParams) (int64, error)
- func (q *Queries) DeleteRetiredOAuthPreviews(ctx context.Context, arg DeleteRetiredOAuthPreviewsParams) (int64, error)
- func (q *Queries) DeleteRetiredOAuthTokens(ctx context.Context, arg DeleteRetiredOAuthTokensParams) (int64, error)
- func (q *Queries) DeleteScheduledTask(ctx context.Context, id int64) error
- func (q *Queries) DeleteSchedulerOverride(ctx context.Context, arg DeleteSchedulerOverrideParams) error
- func (q *Queries) DeleteStaleAPIKeySourceState(ctx context.Context, before time.Time) error
- func (q *Queries) DeleteTag(ctx context.Context, id int64) error
- func (q *Queries) DeleteTranslation(ctx context.Context, id int64) error
- func (q *Queries) DeleteTranslationsForEntity(ctx context.Context, arg DeleteTranslationsForEntityParams) error
- func (q *Queries) DeleteTranslationsForEntityAndLanguage(ctx context.Context, arg DeleteTranslationsForEntityAndLanguageParams) error
- func (q *Queries) DeleteTranslationsRelatedToEntity(ctx context.Context, arg DeleteTranslationsRelatedToEntityParams) error
- func (q *Queries) DeleteUnredeemedOAuthGrants(ctx context.Context, arg DeleteUnredeemedOAuthGrantsParams) (int64, error)
- func (q *Queries) DeleteUser(ctx context.Context, id int64) error
- func (q *Queries) DeleteUserTOTP(ctx context.Context, userID int64) error
- func (q *Queries) DeleteWebhook(ctx context.Context, id int64) error
- func (q *Queries) DeleteWidget(ctx context.Context, id int64) error
- func (q *Queries) DeleteWidgetsByTheme(ctx context.Context, theme string) error
- func (q *Queries) EarliestRecentDraftMutation(ctx context.Context, arg EarliestRecentDraftMutationParams) (time.Time, error)
- func (q *Queries) EvictOAuthDCRClient(ctx context.Context, arg EvictOAuthDCRClientParams) (int64, error)
- func (q *Queries) ExtendDCROAuthClient(ctx context.Context, arg ExtendDCROAuthClientParams) error
- func (q *Queries) FormSlugExists(ctx context.Context, slug string) (int64, error)
- func (q *Queries) FormSlugExistsExcludingForLanguage(ctx context.Context, arg FormSlugExistsExcludingForLanguageParams) (int64, error)
- func (q *Queries) FormSlugExistsForLanguage(ctx context.Context, arg FormSlugExistsForLanguageParams) (int64, error)
- func (q *Queries) GetAPIKeyByHash(ctx context.Context, keyHash string) (ApiKey, error)
- func (q *Queries) GetAPIKeyByID(ctx context.Context, id int64) (ApiKey, error)
- func (q *Queries) GetAPIKeyByLookup(ctx context.Context, keyLookup sql.NullString) (ApiKey, error)
- func (q *Queries) GetAPIKeyByPrefix(ctx context.Context, keyPrefix string) (ApiKey, error)
- func (q *Queries) GetAPIKeySourceState(ctx context.Context, apiKeyID int64) (APIKeySourceState, error)
- func (q *Queries) GetAPIKeysByPrefix(ctx context.Context, keyPrefix string) ([]ApiKey, error)
- func (q *Queries) GetAliasesForPage(ctx context.Context, pageID int64) ([]PageAlias, error)
- func (q *Queries) GetAllTranslationsOfEntity(ctx context.Context, arg GetAllTranslationsOfEntityParams) ([]GetAllTranslationsOfEntityRow, error)
- func (q *Queries) GetAllWidgets(ctx context.Context) ([]Widget, error)
- func (q *Queries) GetAllWidgetsByTheme(ctx context.Context, theme string) ([]Widget, error)
- func (q *Queries) GetAllWidgetsByThemeAndLanguage(ctx context.Context, arg GetAllWidgetsByThemeAndLanguageParams) ([]Widget, error)
- func (q *Queries) GetCategoriesForPage(ctx context.Context, pageID int64) ([]Category, error)
- func (q *Queries) GetCategoryAvailableTranslations(ctx context.Context, entityID int64) ([]GetCategoryAvailableTranslationsRow, error)
- func (q *Queries) GetCategoryByID(ctx context.Context, id int64) (Category, error)
- func (q *Queries) GetCategoryBySlug(ctx context.Context, slug string) (Category, error)
- func (q *Queries) GetCategoryNamesForAllPages(ctx context.Context) ([]GetCategoryNamesForAllPagesRow, error)
- func (q *Queries) GetCategoryNamesForPublishedPages(ctx context.Context) ([]GetCategoryNamesForPublishedPagesRow, error)
- func (q *Queries) GetCategoryPath(ctx context.Context, id int64) ([]GetCategoryPathRow, error)
- func (q *Queries) GetCategoryUsageCounts(ctx context.Context) ([]GetCategoryUsageCountsRow, error)
- func (q *Queries) GetCategoryUsageCountsByLanguage(ctx context.Context, languageCode string) ([]GetCategoryUsageCountsByLanguageRow, error)
- func (q *Queries) GetConfig(ctx context.Context, key string) (Config, error)
- func (q *Queries) GetConfigByKey(ctx context.Context, key string) (Config, error)
- func (q *Queries) GetConfigTranslation(ctx context.Context, arg GetConfigTranslationParams) (GetConfigTranslationRow, error)
- func (q *Queries) GetConfigTranslationByKeyAndLangCode(ctx context.Context, arg GetConfigTranslationByKeyAndLangCodeParams) (GetConfigTranslationByKeyAndLangCodeRow, error)
- func (q *Queries) GetContentProvenance(ctx context.Context, arg GetContentProvenanceParams) (ContentProvenance, error)
- func (q *Queries) GetDefaultLanguage(ctx context.Context) (Language, error)
- func (q *Queries) GetDeliveryStats(ctx context.Context, webhookID int64) (GetDeliveryStatsRow, error)
- func (q *Queries) GetDeliveryStatsLast24h(ctx context.Context, arg GetDeliveryStatsLast24hParams) (GetDeliveryStatsLast24hRow, error)
- func (q *Queries) GetDescendantIDs(ctx context.Context, parentID sql.NullInt64) ([]int64, error)
- func (q *Queries) GetEditorialGuide(ctx context.Context, languageCode string) (EditorialStyleGuide, error)
- func (q *Queries) GetEvent(ctx context.Context, id int64) (Event, error)
- func (q *Queries) GetFeaturedImageForPage(ctx context.Context, id int64) (Medium, error)
- func (q *Queries) GetFormAvailableTranslations(ctx context.Context, entityID int64) ([]GetFormAvailableTranslationsRow, error)
- func (q *Queries) GetFormByID(ctx context.Context, id int64) (Form, error)
- func (q *Queries) GetFormBySlug(ctx context.Context, slug string) (Form, error)
- func (q *Queries) GetFormBySlugAndLanguage(ctx context.Context, arg GetFormBySlugAndLanguageParams) (Form, error)
- func (q *Queries) GetFormFieldByID(ctx context.Context, id int64) (FormField, error)
- func (q *Queries) GetFormFields(ctx context.Context, formID int64) ([]FormField, error)
- func (q *Queries) GetFormSubmissionByID(ctx context.Context, id int64) (FormSubmission, error)
- func (q *Queries) GetFormSubmissions(ctx context.Context, arg GetFormSubmissionsParams) ([]FormSubmission, error)
- func (q *Queries) GetFormSubmissionsSorted(ctx context.Context, arg GetFormSubmissionsSortedParams) ([]FormSubmission, error)
- func (q *Queries) GetIdempotencyKey(ctx context.Context, arg GetIdempotencyKeyParams) (IdempotencyKey, error)
- func (q *Queries) GetLanguageByCode(ctx context.Context, code string) (Language, error)
- func (q *Queries) GetLanguageByID(ctx context.Context, id int64) (Language, error)
- func (q *Queries) GetLastSuccessfulDelivery(ctx context.Context, webhookID int64) (WebhookDelivery, error)
- func (q *Queries) GetLatestAuthoringProvenance(ctx context.Context, arg GetLatestAuthoringProvenanceParams) (ContentProvenance, error)
- func (q *Queries) GetLatestPageVersion(ctx context.Context, pageID int64) (PageVersion, error)
- func (q *Queries) GetLatestTranslationProvenance(ctx context.Context, arg GetLatestTranslationProvenanceParams) (ContentProvenance, error)
- func (q *Queries) GetLoginProtection(ctx context.Context, email string) (LoginProtection, error)
- func (q *Queries) GetMaxLanguagePosition(ctx context.Context) (interface{}, error)
- func (q *Queries) GetMaxMenuItemPosition(ctx context.Context, arg GetMaxMenuItemPositionParams) (interface{}, error)
- func (q *Queries) GetMaxWidgetPosition(ctx context.Context, arg GetMaxWidgetPositionParams) (interface{}, error)
- func (q *Queries) GetMediaByID(ctx context.Context, id int64) (Medium, error)
- func (q *Queries) GetMediaByUUID(ctx context.Context, uuid string) (Medium, error)
- func (q *Queries) GetMediaFolderByID(ctx context.Context, id int64) (MediaFolder, error)
- func (q *Queries) GetMediaTranslation(ctx context.Context, arg GetMediaTranslationParams) (MediaTranslation, error)
- func (q *Queries) GetMediaTranslationAlt(ctx context.Context, arg GetMediaTranslationAltParams) (string, error)
- func (q *Queries) GetMediaTranslationCaption(ctx context.Context, arg GetMediaTranslationCaptionParams) (string, error)
- func (q *Queries) GetMediaTranslations(ctx context.Context, mediaID int64) ([]GetMediaTranslationsRow, error)
- func (q *Queries) GetMediaVariant(ctx context.Context, arg GetMediaVariantParams) (MediaVariant, error)
- func (q *Queries) GetMediaVariants(ctx context.Context, mediaID int64) ([]MediaVariant, error)
- func (q *Queries) GetMenuByID(ctx context.Context, id int64) (Menu, error)
- func (q *Queries) GetMenuBySlug(ctx context.Context, slug string) (Menu, error)
- func (q *Queries) GetMenuBySlugAndLanguage(ctx context.Context, arg GetMenuBySlugAndLanguageParams) (Menu, error)
- func (q *Queries) GetMenuForLanguageOrDefault(ctx context.Context, arg GetMenuForLanguageOrDefaultParams) (Menu, error)
- func (q *Queries) GetMenuItemByID(ctx context.Context, id int64) (MenuItem, error)
- func (q *Queries) GetModule(ctx context.Context, name string) (Module, error)
- func (q *Queries) GetOAuthAccountRefreshBudget(ctx context.Context, arg GetOAuthAccountRefreshBudgetParams) (int64, error)
- func (q *Queries) GetOAuthClient(ctx context.Context, id string) (OauthClient, error)
- func (q *Queries) GetOAuthCode(ctx context.Context, codeHash string) (OauthCode, error)
- func (q *Queries) GetOAuthDCRRegistrationBudget(ctx context.Context, arg GetOAuthDCRRegistrationBudgetParams) (GetOAuthDCRRegistrationBudgetRow, error)
- func (q *Queries) GetOAuthGrant(ctx context.Context, id string) (OauthGrant, error)
- func (q *Queries) GetOAuthGrantRefreshBudget(ctx context.Context, arg GetOAuthGrantRefreshBudgetParams) (int64, error)
- func (q *Queries) GetOAuthTokenByAccess(ctx context.Context, accessHash string) (OauthToken, error)
- func (q *Queries) GetOAuthTokenByID(ctx context.Context, id string) (OauthToken, error)
- func (q *Queries) GetOAuthTokenByRefresh(ctx context.Context, refreshHash string) (OauthToken, error)
- func (q *Queries) GetOGImageForPage(ctx context.Context, id int64) (Medium, error)
- func (q *Queries) GetPageAIAccess(ctx context.Context, pageID int64) (PageAiAccess, error)
- func (q *Queries) GetPageAliasByID(ctx context.Context, id int64) (PageAlias, error)
- func (q *Queries) GetPageAuthor(ctx context.Context, id int64) (GetPageAuthorRow, error)
- func (q *Queries) GetPageAvailableTranslations(ctx context.Context, entityID int64) ([]GetPageAvailableTranslationsRow, error)
- func (q *Queries) GetPageByAlias(ctx context.Context, alias string) (Page, error)
- func (q *Queries) GetPageByID(ctx context.Context, id int64) (Page, error)
- func (q *Queries) GetPageByLanguageFromTranslation(ctx context.Context, arg GetPageByLanguageFromTranslationParams) (Page, error)
- func (q *Queries) GetPageBySlug(ctx context.Context, slug string) (Page, error)
- func (q *Queries) GetPageReviewState(ctx context.Context, id int64) (GetPageReviewStateRow, error)
- func (q *Queries) GetPageSnapshot(ctx context.Context, pageID int64) (string, error)
- func (q *Queries) GetPageTranslationBySlug(ctx context.Context, arg GetPageTranslationBySlugParams) (Page, error)
- func (q *Queries) GetPageTranslationLinks(ctx context.Context, entityID int64) ([]GetPageTranslationLinksRow, error)
- func (q *Queries) GetPageVersion(ctx context.Context, id int64) (PageVersion, error)
- func (q *Queries) GetPageVersionByRevision(ctx context.Context, arg GetPageVersionByRevisionParams) (PageVersion, error)
- func (q *Queries) GetPageVersionWithUser(ctx context.Context, id int64) (GetPageVersionWithUserRow, error)
- func (q *Queries) GetPageWithLanguage(ctx context.Context, id int64) (GetPageWithLanguageRow, error)
- func (q *Queries) GetPagesForTag(ctx context.Context, arg GetPagesForTagParams) ([]Page, error)
- func (q *Queries) GetPendingDeliveries(ctx context.Context, arg GetPendingDeliveriesParams) ([]WebhookDelivery, error)
- func (q *Queries) GetPreviewIssuanceCutoff(ctx context.Context, arg GetPreviewIssuanceCutoffParams) (int64, error)
- func (q *Queries) GetPreviewLinkByHash(ctx context.Context, arg GetPreviewLinkByHashParams) (PreviewLink, error)
- func (q *Queries) GetPreviousPageVersion(ctx context.Context, arg GetPreviousPageVersionParams) (PageVersion, error)
- func (q *Queries) GetPublishedCategoryUsageCounts(ctx context.Context) ([]GetPublishedCategoryUsageCountsRow, error)
- func (q *Queries) GetPublishedPageByAlias(ctx context.Context, alias string) (Page, error)
- func (q *Queries) GetPublishedPageByID(ctx context.Context, id int64) (Page, error)
- func (q *Queries) GetPublishedPageBySlug(ctx context.Context, slug string) (Page, error)
- func (q *Queries) GetPublishedPageBySlugAndLanguage(ctx context.Context, arg GetPublishedPageBySlugAndLanguageParams) (Page, error)
- func (q *Queries) GetPublishedPageWithLanguageBySlug(ctx context.Context, slug string) (GetPublishedPageWithLanguageBySlugRow, error)
- func (q *Queries) GetPublishedTagUsageCounts(ctx context.Context, arg GetPublishedTagUsageCountsParams) ([]GetPublishedTagUsageCountsRow, error)
- func (q *Queries) GetRecentDeliveries(ctx context.Context, limit int64) ([]WebhookDelivery, error)
- func (q *Queries) GetRecentFailedDeliveries(ctx context.Context, limit int64) ([]WebhookDelivery, error)
- func (q *Queries) GetRecentFailedDeliveriesWithWebhook(ctx context.Context, limit int64) ([]GetRecentFailedDeliveriesWithWebhookRow, error)
- func (q *Queries) GetRecentMedia(ctx context.Context, limit int64) ([]Medium, error)
- func (q *Queries) GetRecentSubmissionsWithForm(ctx context.Context, limit int64) ([]GetRecentSubmissionsWithFormRow, error)
- func (q *Queries) GetRedirectByID(ctx context.Context, id int64) (Redirect, error)
- func (q *Queries) GetRedirectBySourcePath(ctx context.Context, sourcePath string) (Redirect, error)
- func (q *Queries) GetRelatedTranslations(ctx context.Context, arg GetRelatedTranslationsParams) ([]GetRelatedTranslationsRow, error)
- func (q *Queries) GetScheduledPagesForPublishing(ctx context.Context, scheduledAt sql.NullTime) ([]Page, error)
- func (q *Queries) GetScheduledTask(ctx context.Context, id int64) (ScheduledTask, error)
- func (q *Queries) GetSchedulerOverride(ctx context.Context, arg GetSchedulerOverrideParams) (string, error)
- func (q *Queries) GetTagAvailableTranslations(ctx context.Context, entityID int64) ([]GetTagAvailableTranslationsRow, error)
- func (q *Queries) GetTagByID(ctx context.Context, id int64) (Tag, error)
- func (q *Queries) GetTagBySlug(ctx context.Context, slug string) (Tag, error)
- func (q *Queries) GetTagNamesForAllPages(ctx context.Context) ([]GetTagNamesForAllPagesRow, error)
- func (q *Queries) GetTagNamesForPublishedPages(ctx context.Context) ([]GetTagNamesForPublishedPagesRow, error)
- func (q *Queries) GetTagUsageCounts(ctx context.Context, arg GetTagUsageCountsParams) ([]GetTagUsageCountsRow, error)
- func (q *Queries) GetTagUsageCountsByLanguage(ctx context.Context, arg GetTagUsageCountsByLanguageParams) ([]GetTagUsageCountsByLanguageRow, error)
- func (q *Queries) GetTagUsageCountsSorted(ctx context.Context, arg GetTagUsageCountsSortedParams) ([]GetTagUsageCountsRow, error)
- func (q *Queries) GetTagsForPage(ctx context.Context, pageID int64) ([]Tag, error)
- func (q *Queries) GetTranslatedEntityID(ctx context.Context, arg GetTranslatedEntityIDParams) (int64, error)
- func (q *Queries) GetTranslation(ctx context.Context, arg GetTranslationParams) (Translation, error)
- func (q *Queries) GetTranslationByID(ctx context.Context, id int64) (Translation, error)
- func (q *Queries) GetTranslationComponentEntityByLanguage(ctx context.Context, arg GetTranslationComponentEntityByLanguageParams) (int64, error)
- func (q *Queries) GetTranslationCountsBatch(ctx context.Context, entityType string) ([]GetTranslationCountsBatchRow, error)
- func (q *Queries) GetTranslationCoverage(ctx context.Context) ([]GetTranslationCoverageRow, error)
- func (q *Queries) GetTranslationStats(ctx context.Context) (GetTranslationStatsRow, error)
- func (q *Queries) GetTranslationsForEntity(ctx context.Context, arg GetTranslationsForEntityParams) ([]GetTranslationsForEntityRow, error)
- func (q *Queries) GetTranslationsForPagesBatch(ctx context.Context) ([]GetTranslationsForPagesBatchRow, error)
- func (q *Queries) GetUserByEmail(ctx context.Context, email string) (User, error)
- func (q *Queries) GetUserByID(ctx context.Context, id int64) (User, error)
- func (q *Queries) GetUserTOTP(ctx context.Context, userID int64) (UserTotp, error)
- func (q *Queries) GetWebhookByID(ctx context.Context, id int64) (Webhook, error)
- func (q *Queries) GetWebhookDelivery(ctx context.Context, id int64) (WebhookDelivery, error)
- func (q *Queries) GetWebhookHealthSummary(ctx context.Context, createdAt time.Time) ([]GetWebhookHealthSummaryRow, error)
- func (q *Queries) GetWidget(ctx context.Context, id int64) (Widget, error)
- func (q *Queries) GetWidgetsByThemeAndArea(ctx context.Context, arg GetWidgetsByThemeAndAreaParams) ([]Widget, error)
- func (q *Queries) IsModuleActive(ctx context.Context, name string) (bool, error)
- func (q *Queries) IsModuleMigrationApplied(ctx context.Context, arg IsModuleMigrationAppliedParams) (int64, error)
- func (q *Queries) LanguageCodeExists(ctx context.Context, code string) (int64, error)
- func (q *Queries) LanguageCodeExistsExcluding(ctx context.Context, arg LanguageCodeExistsExcludingParams) (int64, error)
- func (q *Queries) ListAPIKeySourceCIDRs(ctx context.Context, apiKeyID int64) ([]string, error)
- func (q *Queries) ListAPIKeys(ctx context.Context, arg ListAPIKeysParams) ([]ApiKey, error)
- func (q *Queries) ListAPIKeysByUser(ctx context.Context, arg ListAPIKeysByUserParams) ([]ApiKey, error)
- func (q *Queries) ListAPIKeysSorted(ctx context.Context, arg ListAPIKeysSortedParams) ([]ApiKey, error)
- func (q *Queries) ListActiveAgentPreviewLinks(ctx context.Context, expiresAt int64) ([]ListActiveAgentPreviewLinksRow, error)
- func (q *Queries) ListActiveLanguages(ctx context.Context) ([]Language, error)
- func (q *Queries) ListActiveModules(ctx context.Context) ([]string, error)
- func (q *Queries) ListActiveScheduledTasks(ctx context.Context) ([]ScheduledTask, error)
- func (q *Queries) ListActiveWebhooks(ctx context.Context) ([]Webhook, error)
- func (q *Queries) ListAllConfigTranslations(ctx context.Context) ([]ListAllConfigTranslationsRow, error)
- func (q *Queries) ListAllTags(ctx context.Context) ([]Tag, error)
- func (q *Queries) ListCategories(ctx context.Context) ([]Category, error)
- func (q *Queries) ListCategoriesByLanguage(ctx context.Context, languageCode string) ([]Category, error)
- func (q *Queries) ListCategoriesForSitemap(ctx context.Context) ([]ListCategoriesForSitemapRow, error)
- func (q *Queries) ListChildCategories(ctx context.Context, parentID sql.NullInt64) ([]Category, error)
- func (q *Queries) ListChildMediaFolders(ctx context.Context, parentID sql.NullInt64) ([]MediaFolder, error)
- func (q *Queries) ListChildMenuItemIDs(ctx context.Context, parentID sql.NullInt64) ([]int64, error)
- func (q *Queries) ListChildMenuItems(ctx context.Context, parentID sql.NullInt64) ([]MenuItem, error)
- func (q *Queries) ListClaimChecks(ctx context.Context, provenanceID int64) ([]ListClaimChecksRow, error)
- func (q *Queries) ListConfig(ctx context.Context) ([]Config, error)
- func (q *Queries) ListConfigTranslations(ctx context.Context, configKey string) ([]ListConfigTranslationsRow, error)
- func (q *Queries) ListConnectedAPIKeys(ctx context.Context, arg ListConnectedAPIKeysParams) ([]ListConnectedAPIKeysRow, error)
- func (q *Queries) ListConnectedOAuthGrants(ctx context.Context, arg ListConnectedOAuthGrantsParams) ([]ListConnectedOAuthGrantsRow, error)
- func (q *Queries) ListEditorialPresets(ctx context.Context, languageCode string) ([]EditorialPreset, error)
- func (q *Queries) ListEnabledRedirects(ctx context.Context) ([]Redirect, error)
- func (q *Queries) ListEvents(ctx context.Context, arg ListEventsParams) ([]Event, error)
- func (q *Queries) ListEventsByCategory(ctx context.Context, arg ListEventsByCategoryParams) ([]Event, error)
- func (q *Queries) ListEventsByLevel(ctx context.Context, arg ListEventsByLevelParams) ([]Event, error)
- func (q *Queries) ListEventsByLevelAndCategory(ctx context.Context, arg ListEventsByLevelAndCategoryParams) ([]Event, error)
- func (q *Queries) ListEventsWithUser(ctx context.Context, arg ListEventsWithUserParams) ([]ListEventsWithUserRow, error)
- func (q *Queries) ListEventsWithUserByCategory(ctx context.Context, arg ListEventsWithUserByCategoryParams) ([]ListEventsWithUserByCategoryRow, error)
- func (q *Queries) ListEventsWithUserByLevel(ctx context.Context, arg ListEventsWithUserByLevelParams) ([]ListEventsWithUserByLevelRow, error)
- func (q *Queries) ListEventsWithUserByLevelAndCategory(ctx context.Context, arg ListEventsWithUserByLevelAndCategoryParams) ([]ListEventsWithUserByLevelAndCategoryRow, error)
- func (q *Queries) ListFeedPosts(ctx context.Context, arg ListFeedPostsParams) ([]ListFeedPostsRow, error)
- func (q *Queries) ListForms(ctx context.Context, arg ListFormsParams) ([]Form, error)
- func (q *Queries) ListFormsByLanguage(ctx context.Context, arg ListFormsByLanguageParams) ([]Form, error)
- func (q *Queries) ListGroundingCategories(ctx context.Context, arg ListGroundingCategoriesParams) ([]Category, error)
- func (q *Queries) ListGroundingImages(ctx context.Context, arg ListGroundingImagesParams) ([]Medium, error)
- func (q *Queries) ListGroundingLanguages(ctx context.Context, arg ListGroundingLanguagesParams) ([]Language, error)
- func (q *Queries) ListGroundingPages(ctx context.Context, arg ListGroundingPagesParams) ([]Page, error)
- func (q *Queries) ListGroundingTags(ctx context.Context, arg ListGroundingTagsParams) ([]Tag, error)
- func (q *Queries) ListLanguages(ctx context.Context) ([]Language, error)
- func (q *Queries) ListMedia(ctx context.Context, arg ListMediaParams) ([]Medium, error)
- func (q *Queries) ListMediaByType(ctx context.Context, arg ListMediaByTypeParams) ([]Medium, error)
- func (q *Queries) ListMediaFolders(ctx context.Context) ([]MediaFolder, error)
- func (q *Queries) ListMediaInFolder(ctx context.Context, arg ListMediaInFolderParams) ([]Medium, error)
- func (q *Queries) ListMediaInRootFolder(ctx context.Context, arg ListMediaInRootFolderParams) ([]Medium, error)
- func (q *Queries) ListMediaSorted(ctx context.Context, arg ListMediaSortedParams) ([]Medium, error)
- func (q *Queries) ListMenuItemIDsForPage(ctx context.Context, pageID sql.NullInt64) ([]int64, error)
- func (q *Queries) ListMenuItems(ctx context.Context, menuID int64) ([]MenuItem, error)
- func (q *Queries) ListMenuItemsWithPage(ctx context.Context, menuID int64) ([]ListMenuItemsWithPageRow, error)
- func (q *Queries) ListMenuItemsWithPublishedPage(ctx context.Context, menuID int64) ([]ListMenuItemsWithPublishedPageRow, error)
- func (q *Queries) ListMenus(ctx context.Context) ([]Menu, error)
- func (q *Queries) ListMenusByLanguage(ctx context.Context, languageCode string) ([]Menu, error)
- func (q *Queries) ListModules(ctx context.Context) ([]Module, error)
- func (q *Queries) ListOAuthGrantsForUser(ctx context.Context, arg ListOAuthGrantsForUserParams) ([]ListOAuthGrantsForUserRow, error)
- func (q *Queries) ListOwnAIDrafts(ctx context.Context, arg ListOwnAIDraftsParams) ([]Page, error)
- func (q *Queries) ListPageIDsByLanguage(ctx context.Context, languageCode string) ([]int64, error)
- func (q *Queries) ListPageIDsForCategory(ctx context.Context, categoryID int64) ([]int64, error)
- func (q *Queries) ListPageIDsForMedia(ctx context.Context, arg ListPageIDsForMediaParams) ([]int64, error)
- func (q *Queries) ListPageIDsForTag(ctx context.Context, tagID int64) ([]int64, error)
- func (q *Queries) ListPagePreviewLinks(ctx context.Context, arg ListPagePreviewLinksParams) ([]ListPagePreviewLinksRow, error)
- func (q *Queries) ListPageVersions(ctx context.Context, arg ListPageVersionsParams) ([]PageVersion, error)
- func (q *Queries) ListPageVersionsWithUser(ctx context.Context, arg ListPageVersionsWithUserParams) ([]ListPageVersionsWithUserRow, error)
- func (q *Queries) ListPages(ctx context.Context, arg ListPagesParams) ([]Page, error)
- func (q *Queries) ListPagesByCategory(ctx context.Context, arg ListPagesByCategoryParams) ([]Page, error)
- func (q *Queries) ListPagesByLanguage(ctx context.Context, arg ListPagesByLanguageParams) ([]Page, error)
- func (q *Queries) ListPagesByLanguageAndStatus(ctx context.Context, arg ListPagesByLanguageAndStatusParams) ([]Page, error)
- func (q *Queries) ListPagesByStatus(ctx context.Context, arg ListPagesByStatusParams) ([]Page, error)
- func (q *Queries) ListPagesInLanguage(ctx context.Context, arg ListPagesInLanguageParams) ([]Page, error)
- func (q *Queries) ListPagesSorted(ctx context.Context, arg ListPagesSortedParams) ([]Page, error)
- func (q *Queries) ListPrunableAIDraftRevisions(ctx context.Context, arg ListPrunableAIDraftRevisionsParams) ([]ListPrunableAIDraftRevisionsRow, error)
- func (q *Queries) ListPublishedPages(ctx context.Context, arg ListPublishedPagesParams) ([]Page, error)
- func (q *Queries) ListPublishedPagesByCategory(ctx context.Context, arg ListPublishedPagesByCategoryParams) ([]Page, error)
- func (q *Queries) ListPublishedPagesByCategoryAndLanguage(ctx context.Context, arg ListPublishedPagesByCategoryAndLanguageParams) ([]Page, error)
- func (q *Queries) ListPublishedPagesByLanguage(ctx context.Context, arg ListPublishedPagesByLanguageParams) ([]Page, error)
- func (q *Queries) ListPublishedPagesForSitemap(ctx context.Context) ([]ListPublishedPagesForSitemapRow, error)
- func (q *Queries) ListPublishedPagesForTag(ctx context.Context, arg ListPublishedPagesForTagParams) ([]Page, error)
- func (q *Queries) ListPublishedPagesForTagAndLanguage(ctx context.Context, arg ListPublishedPagesForTagAndLanguageParams) ([]Page, error)
- func (q *Queries) ListPublishedPosts(ctx context.Context, arg ListPublishedPostsParams) ([]Page, error)
- func (q *Queries) ListPublishedPostsByLanguage(ctx context.Context, arg ListPublishedPostsByLanguageParams) ([]Page, error)
- func (q *Queries) ListRedirects(ctx context.Context) ([]Redirect, error)
- func (q *Queries) ListRedirectsPaginated(ctx context.Context, arg ListRedirectsPaginatedParams) ([]Redirect, error)
- func (q *Queries) ListRootCategories(ctx context.Context) ([]Category, error)
- func (q *Queries) ListRootMediaFolders(ctx context.Context) ([]MediaFolder, error)
- func (q *Queries) ListScheduledPages(ctx context.Context, arg ListScheduledPagesParams) ([]Page, error)
- func (q *Queries) ListScheduledTaskRuns(ctx context.Context, arg ListScheduledTaskRunsParams) ([]ScheduledTaskRun, error)
- func (q *Queries) ListScheduledTasks(ctx context.Context) ([]ScheduledTask, error)
- func (q *Queries) ListSidebarModules(ctx context.Context) ([]Module, error)
- func (q *Queries) ListTags(ctx context.Context, arg ListTagsParams) ([]Tag, error)
- func (q *Queries) ListTagsByLanguage(ctx context.Context, languageCode string) ([]Tag, error)
- func (q *Queries) ListTagsForSitemap(ctx context.Context) ([]ListTagsForSitemapRow, error)
- func (q *Queries) ListTopLevelMenuItems(ctx context.Context, menuID int64) ([]MenuItem, error)
- func (q *Queries) ListTranslationComponentMembers(ctx context.Context, arg ListTranslationComponentMembersParams) ([]ListTranslationComponentMembersRow, error)
- func (q *Queries) ListUsers(ctx context.Context, arg ListUsersParams) ([]User, error)
- func (q *Queries) ListUsersSorted(ctx context.Context, arg ListUsersSortedParams) ([]User, error)
- func (q *Queries) ListWebhookDeliveries(ctx context.Context, arg ListWebhookDeliveriesParams) ([]WebhookDelivery, error)
- func (q *Queries) ListWebhooks(ctx context.Context) ([]Webhook, error)
- func (q *Queries) ListWebhooksForEvent(ctx context.Context, dollar_1 sql.NullString) ([]Webhook, error)
- func (q *Queries) ListWebhooksPaginated(ctx context.Context, arg ListWebhooksPaginatedParams) ([]Webhook, error)
- func (q *Queries) MarkSubmissionRead(ctx context.Context, id int64) error
- func (q *Queries) MenuSlugExists(ctx context.Context, slug string) (int64, error)
- func (q *Queries) MenuSlugExistsExcluding(ctx context.Context, arg MenuSlugExistsExcludingParams) (int64, error)
- func (q *Queries) MenuSlugExistsForLanguage(ctx context.Context, arg MenuSlugExistsForLanguageParams) (int64, error)
- func (q *Queries) MenuSlugExistsForLanguageExcluding(ctx context.Context, arg MenuSlugExistsForLanguageExcludingParams) (int64, error)
- func (q *Queries) MoveMediaToFolder(ctx context.Context, arg MoveMediaToFolderParams) error
- func (q *Queries) PageRouteExistsUnderPrefix(ctx context.Context, prefix string) (int64, error)
- func (q *Queries) PublishPage(ctx context.Context, arg PublishPageParams) (Page, error)
- func (q *Queries) PublishScheduledPage(ctx context.Context, arg PublishScheduledPageParams) (Page, error)
- func (q *Queries) PublishUnpublishedPage(ctx context.Context, arg PublishUnpublishedPageParams) (Page, error)
- func (q *Queries) RecordModuleMigration(ctx context.Context, arg RecordModuleMigrationParams) error
- func (q *Queries) RecordOAuthDCRRegistration(ctx context.Context, arg RecordOAuthDCRRegistrationParams) error
- func (q *Queries) RedirectSourcePathExists(ctx context.Context, sourcePath string) (int64, error)
- func (q *Queries) RedirectSourcePathExistsExcluding(ctx context.Context, arg RedirectSourcePathExistsExcludingParams) (int64, error)
- func (q *Queries) RemoveCategoryFromPage(ctx context.Context, arg RemoveCategoryFromPageParams) error
- func (q *Queries) RemoveTagFromPage(ctx context.Context, arg RemoveTagFromPageParams) error
- func (q *Queries) ReparentMenuItemChildren(ctx context.Context, arg ReparentMenuItemChildrenParams) error
- func (q *Queries) ReplaceAPIKeySourceCIDRs(ctx context.Context, apiKeyID int64, cidrs []string) error
- func (q *Queries) ResetDeliveryForRetry(ctx context.Context, arg ResetDeliveryForRetryParams) error
- func (q *Queries) RevokeAgentPreviewLink(ctx context.Context, arg RevokeAgentPreviewLinkParams) (int64, error)
- func (q *Queries) RevokeConnectedAPIKey(ctx context.Context, arg RevokeConnectedAPIKeyParams) (int64, error)
- func (q *Queries) RevokeConnectedOAuthGrant(ctx context.Context, arg RevokeConnectedOAuthGrantParams) (int64, error)
- func (q *Queries) RevokeOAuthGrant(ctx context.Context, arg RevokeOAuthGrantParams) error
- func (q *Queries) RevokeOAuthGrantByAccess(ctx context.Context, arg RevokeOAuthGrantByAccessParams) (int64, error)
- func (q *Queries) RevokeOwnedOAuthGrant(ctx context.Context, arg RevokeOwnedOAuthGrantParams) (int64, error)
- func (q *Queries) RevokePagePreviewLink(ctx context.Context, arg RevokePagePreviewLinkParams) (int64, error)
- func (q *Queries) SearchCategories(ctx context.Context, dollar_1 sql.NullString) ([]Category, error)
- func (q *Queries) SearchMedia(ctx context.Context, arg SearchMediaParams) ([]Medium, error)
- func (q *Queries) SearchPages(ctx context.Context, arg SearchPagesParams) ([]Page, error)
- func (q *Queries) SearchPagesByLanguage(ctx context.Context, arg SearchPagesByLanguageParams) ([]Page, error)
- func (q *Queries) SearchPagesByStatus(ctx context.Context, arg SearchPagesByStatusParams) ([]Page, error)
- func (q *Queries) SearchTags(ctx context.Context, arg SearchTagsParams) ([]Tag, error)
- func (q *Queries) SetAPIKeyLookup(ctx context.Context, arg SetAPIKeyLookupParams) error
- func (q *Queries) SetDefaultLanguage(ctx context.Context, arg SetDefaultLanguageParams) error
- func (q *Queries) SetModuleShowInSidebar(ctx context.Context, arg SetModuleShowInSidebarParams) (Module, error)
- func (q *Queries) SetPageAIAccess(ctx context.Context, arg SetPageAIAccessParams) error
- func (q *Queries) SlugExists(ctx context.Context, slug string) (int64, error)
- func (q *Queries) SlugExistsExcluding(ctx context.Context, arg SlugExistsExcludingParams) (int64, error)
- func (q *Queries) SlugOrAliasExists(ctx context.Context, arg SlugOrAliasExistsParams) (int64, error)
- func (q *Queries) SlugOrAliasExistsExcluding(ctx context.Context, arg SlugOrAliasExistsExcludingParams) (int64, error)
- func (q *Queries) TagSlugExists(ctx context.Context, slug string) (int64, error)
- func (q *Queries) TagSlugExistsExcluding(ctx context.Context, arg TagSlugExistsExcludingParams) (int64, error)
- func (q *Queries) TagSlugExistsExcludingForLanguage(ctx context.Context, arg TagSlugExistsExcludingForLanguageParams) (int64, error)
- func (q *Queries) TagSlugExistsForLanguage(ctx context.Context, arg TagSlugExistsForLanguageParams) (int64, error)
- func (q *Queries) ToggleRedirectEnabled(ctx context.Context, arg ToggleRedirectEnabledParams) error
- func (q *Queries) ToggleScheduledTask(ctx context.Context, arg ToggleScheduledTaskParams) (ScheduledTask, error)
- func (q *Queries) TouchOAuthGrant(ctx context.Context, arg TouchOAuthGrantParams) error
- func (q *Queries) TouchOAuthGrantIfDue(ctx context.Context, arg TouchOAuthGrantIfDueParams) error
- func (q *Queries) TranslationExists(ctx context.Context, arg TranslationExistsParams) (int64, error)
- func (q *Queries) UncheckClaim(ctx context.Context, arg UncheckClaimParams) error
- func (q *Queries) UnpublishPage(ctx context.Context, arg UnpublishPageParams) (Page, error)
- func (q *Queries) UpdateAPIKey(ctx context.Context, arg UpdateAPIKeyParams) (ApiKey, error)
- func (q *Queries) UpdateAPIKeyLastUsed(ctx context.Context, arg UpdateAPIKeyLastUsedParams) error
- func (q *Queries) UpdateCategory(ctx context.Context, arg UpdateCategoryParams) (Category, error)
- func (q *Queries) UpdateCategoryLanguage(ctx context.Context, arg UpdateCategoryLanguageParams) error
- func (q *Queries) UpdateCategoryPosition(ctx context.Context, arg UpdateCategoryPositionParams) error
- func (q *Queries) UpdateConfigValue(ctx context.Context, arg UpdateConfigValueParams) (Config, error)
- func (q *Queries) UpdateDeliveryDead(ctx context.Context, arg UpdateDeliveryDeadParams) error
- func (q *Queries) UpdateDeliveryRetry(ctx context.Context, arg UpdateDeliveryRetryParams) error
- func (q *Queries) UpdateDeliverySuccess(ctx context.Context, arg UpdateDeliverySuccessParams) error
- func (q *Queries) UpdateForm(ctx context.Context, arg UpdateFormParams) (Form, error)
- func (q *Queries) UpdateFormField(ctx context.Context, arg UpdateFormFieldParams) (FormField, error)
- func (q *Queries) UpdateLanguage(ctx context.Context, arg UpdateLanguageParams) (Language, error)
- func (q *Queries) UpdateLanguagePosition(ctx context.Context, arg UpdateLanguagePositionParams) error
- func (q *Queries) UpdateMedia(ctx context.Context, arg UpdateMediaParams) (Medium, error)
- func (q *Queries) UpdateMediaFolder(ctx context.Context, arg UpdateMediaFolderParams) (MediaFolder, error)
- func (q *Queries) UpdateMediaForImport(ctx context.Context, arg UpdateMediaForImportParams) (Medium, error)
- func (q *Queries) UpdateMenu(ctx context.Context, arg UpdateMenuParams) (Menu, error)
- func (q *Queries) UpdateMenuItem(ctx context.Context, arg UpdateMenuItemParams) (MenuItem, error)
- func (q *Queries) UpdateMenuItemPosition(ctx context.Context, arg UpdateMenuItemPositionParams) error
- func (q *Queries) UpdatePage(ctx context.Context, arg UpdatePageParams) (Page, error)
- func (q *Queries) UpdatePageCreatedAt(ctx context.Context, arg UpdatePageCreatedAtParams) error
- func (q *Queries) UpdatePageFeaturedImage(ctx context.Context, arg UpdatePageFeaturedImageParams) error
- func (q *Queries) UpdatePageLanguage(ctx context.Context, arg UpdatePageLanguageParams) error
- func (q *Queries) UpdateRedirect(ctx context.Context, arg UpdateRedirectParams) (Redirect, error)
- func (q *Queries) UpdateScheduledTask(ctx context.Context, arg UpdateScheduledTaskParams) (ScheduledTask, error)
- func (q *Queries) UpdateScheduledTaskRunFailed(ctx context.Context, arg UpdateScheduledTaskRunFailedParams) error
- func (q *Queries) UpdateScheduledTaskRunSuccess(ctx context.Context, arg UpdateScheduledTaskRunSuccessParams) error
- func (q *Queries) UpdateTag(ctx context.Context, arg UpdateTagParams) (Tag, error)
- func (q *Queries) UpdateTagLanguage(ctx context.Context, arg UpdateTagLanguageParams) error
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) (User, error)
- func (q *Queries) UpdateUserLastLogin(ctx context.Context, arg UpdateUserLastLoginParams) error
- func (q *Queries) UpdateUserPassword(ctx context.Context, arg UpdateUserPasswordParams) error
- func (q *Queries) UpdateUserPasswordHash(ctx context.Context, arg UpdateUserPasswordHashParams) error
- func (q *Queries) UpdateWebhook(ctx context.Context, arg UpdateWebhookParams) (Webhook, error)
- func (q *Queries) UpdateWidget(ctx context.Context, arg UpdateWidgetParams) (Widget, error)
- func (q *Queries) UpdateWidgetPosition(ctx context.Context, arg UpdateWidgetPositionParams) error
- func (q *Queries) UpsertAPIKeySourceState(ctx context.Context, apiKeyID int64, ip string, seenAt time.Time) error
- func (q *Queries) UpsertConfig(ctx context.Context, arg UpsertConfigParams) (Config, error)
- func (q *Queries) UpsertConfigTranslation(ctx context.Context, arg UpsertConfigTranslationParams) (ConfigTranslation, error)
- func (q *Queries) UpsertEditorialGuide(ctx context.Context, arg UpsertEditorialGuideParams) error
- func (q *Queries) UpsertEditorialPreset(ctx context.Context, arg UpsertEditorialPresetParams) error
- func (q *Queries) UpsertLoginProtection(ctx context.Context, arg UpsertLoginProtectionParams) error
- func (q *Queries) UpsertMediaTranslation(ctx context.Context, arg UpsertMediaTranslationParams) (MediaTranslation, error)
- func (q *Queries) UpsertModule(ctx context.Context, arg UpsertModuleParams) (Module, error)
- func (q *Queries) UpsertOAuthClient(ctx context.Context, arg UpsertOAuthClientParams) error
- func (q *Queries) UpsertSchedulerOverride(ctx context.Context, arg UpsertSchedulerOverrideParams) error
- func (q *Queries) UpsertUserTOTP(ctx context.Context, arg UpsertUserTOTPParams) error
- func (q *Queries) UseRecoveryCode(ctx context.Context, arg UseRecoveryCodeParams) (int64, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type RecordModuleMigrationParams
- type RecordOAuthDCRRegistrationParams
- type Redirect
- type RedirectSourcePathExistsExcludingParams
- type RemoveCategoryFromPageParams
- type RemoveTagFromPageParams
- type ReparentMenuItemChildrenParams
- type ResetDeliveryForRetryParams
- type RevokeAgentPreviewLinkParams
- type RevokeConnectedAPIKeyParams
- type RevokeConnectedOAuthGrantParams
- type RevokeOAuthGrantByAccessParams
- type RevokeOAuthGrantParams
- type RevokeOwnedOAuthGrantParams
- type RevokePagePreviewLinkParams
- type ScheduledTask
- type ScheduledTaskRun
- type SchedulerOverride
- type SearchMediaParams
- type SearchPagesByLanguageParams
- type SearchPagesByStatusParams
- type SearchPagesParams
- type SearchTagsParams
- type Session
- type SetAPIKeyLookupParams
- type SetDefaultLanguageParams
- type SetModuleShowInSidebarParams
- type SetPageAIAccessParams
- type SlugExistsExcludingParams
- type SlugOrAliasExistsExcludingParams
- type SlugOrAliasExistsParams
- type Tag
- type TagSlugExistsExcludingForLanguageParams
- type TagSlugExistsExcludingParams
- type TagSlugExistsForLanguageParams
- type ToggleRedirectEnabledParams
- type ToggleScheduledTaskParams
- type TouchOAuthGrantIfDueParams
- type TouchOAuthGrantParams
- type Translation
- type TranslationExistsParams
- type UncheckClaimParams
- type UnpublishPageParams
- type UpdateAPIKeyLastUsedParams
- type UpdateAPIKeyParams
- type UpdateCategoryLanguageParams
- type UpdateCategoryParams
- type UpdateCategoryPositionParams
- type UpdateConfigValueParams
- type UpdateDeliveryDeadParams
- type UpdateDeliveryRetryParams
- type UpdateDeliverySuccessParams
- type UpdateFormFieldParams
- type UpdateFormParams
- type UpdateLanguageParams
- type UpdateLanguagePositionParams
- type UpdateMediaFolderParams
- type UpdateMediaForImportParams
- type UpdateMediaParams
- type UpdateMenuItemParams
- type UpdateMenuItemPositionParams
- type UpdateMenuParams
- type UpdatePageCreatedAtParams
- type UpdatePageFeaturedImageParams
- type UpdatePageLanguageParams
- type UpdatePageParams
- type UpdateRedirectParams
- type UpdateScheduledTaskParams
- type UpdateScheduledTaskRunFailedParams
- type UpdateScheduledTaskRunSuccessParams
- type UpdateTagLanguageParams
- type UpdateTagParams
- type UpdateUserLastLoginParams
- type UpdateUserParams
- type UpdateUserPasswordHashParams
- type UpdateUserPasswordParams
- type UpdateWebhookParams
- type UpdateWidgetParams
- type UpdateWidgetPositionParams
- type UpsertConfigParams
- type UpsertConfigTranslationParams
- type UpsertEditorialGuideParams
- type UpsertEditorialPresetParams
- type UpsertLoginProtectionParams
- type UpsertMediaTranslationParams
- type UpsertModuleParams
- type UpsertOAuthClientParams
- type UpsertSchedulerOverrideParams
- type UpsertUserTOTPParams
- type UseRecoveryCodeParams
- type User
- type UserRecoveryCode
- type UserTotp
- type Webhook
- type WebhookDelivery
- type Widget
Constants ¶
const ( DefaultAdminEmail = "admin@example.com" DefaultAdminPassword = "changeme1234" // Must be at least 12 characters DefaultAdminName = "Administrator" )
Default admin credentials
const ( DemoAdminEmail = "demo@example.com" DemoAdminPassword = "demo1234demo" DemoAdminName = "Demo Admin" DemoEditorEmail = "editor@example.com" DemoEditorPassword = "demo1234demo" DemoEditorName = "Demo Editor" )
Demo mode credentials
Variables ¶
var DefaultConfig = []struct { Key string Value string Type string Description string }{ {Key: model.ConfigKeySiteName, Value: "Opossum CMS", Type: model.ConfigTypeString, Description: "The name of your site"}, {Key: model.ConfigKeySiteDescription, Value: "", Type: model.ConfigTypeString, Description: "A short description of your site"}, {Key: model.ConfigKeyAdminEmail, Value: "admin@example.com", Type: model.ConfigTypeString, Description: "Administrator email address"}, {Key: model.ConfigKeyPostsPerPage, Value: "10", Type: model.ConfigTypeInt, Description: "Number of posts to display per page"}, {Key: model.ConfigKeyPoweredBy, Value: "Powered by oCMS", Type: model.ConfigTypeString, Description: "Footer powered by text"}, {Key: model.ConfigKeyCopyright, Value: "", Type: model.ConfigTypeString, Description: "Footer copyright text (leave empty for automatic)"}, }
DefaultConfig holds default configuration values.
var DefaultMenus = []struct { Name string Slug string }{ {Name: "Main Menu", Slug: model.MenuMain}, {Name: "Footer Menu", Slug: model.MenuFooter}, }
DefaultMenus holds default menu definitions.
Functions ¶
func HasDefaultAdminCredentials ¶ added in v0.9.0
HasDefaultAdminCredentials returns true when the seeded default admin credentials are still valid for the default admin account.
func IsMissingAPIKeySourceStateTableError ¶ added in v0.9.0
IsMissingAPIKeySourceStateTableError reports whether err indicates the api_key_source_state table is missing in the database.
func IsSQLiteBusy ¶ added in v0.32.0
IsSQLiteBusy matches SQLite BUSY and LOCKED, including extended codes.
func NewDBWithConfig ¶
NewDBWithConfig opens a SQLite database connection with custom configuration.
func RotateDefaultAdminPassword ¶ added in v0.21.0
RotateDefaultAdminPassword rotates the seeded default admin password and returns the new password. Rotation only occurs when OCMS_DEMO_MODE=true, the default admin account exists, and its stored hash still authenticates DefaultAdminPassword — so an operator who has rotated the account to a real credential is never silently overwritten on restart.
The production startup audit refuses to boot when default admin credentials are still active; demo deploys seed those credentials on every boot, so this rotation runs ahead of the audit to clear them in place. The returned password is intentionally not logged — the demo's public credentials are DemoAdminEmail / DemoEditorEmail.
func RotateDemoAdminPassword ¶ added in v0.18.1
RotateDemoAdminPassword rotates the demo admin password and returns the new password. Rotation only occurs when OCMS_DEMO_MODE=true and the demo admin account exists.
func RunMigrationCommand ¶ added in v0.29.0
RunMigrationCommand runs a goose command (up, down, status, version) over the embedded SQL migrations and the Go migrations registered by this package, which goose's own CLI does not know.
func Seed ¶
Seed creates initial data in the database if doSeed is true, with the documented default admin password. When doSeed is false, seeding is skipped to prevent automatic recreation of deleted data (e.g., default admin user) on application restart.
func SeedDemo ¶ added in v0.6.0
SeedDemo creates demo content for showcasing oCMS functionality. This is called after the regular Seed() when OCMS_DEMO_MODE=true.
func SeedDemoInformerSettings ¶ added in v0.7.0
SeedDemoInformerSettings enables the informer bar with demo credentials. Must be called after module initialization (informer module creates the table).
The password is NOT baked into the banner HTML. The banner's JS fetches the current password from /api/informer/demo-credentials at page-view time so it always matches the live DB hash, even after cold-start rotations.
Types ¶
type APIKeySourceState ¶ added in v0.9.0
type APIKeySourceState struct {
APIKeyID int64
LastIP string
LastSeenAt time.Time
UpdatedAt time.Time
}
APIKeySourceState stores persisted API key source observation state.
type AddCategoryToPageParams ¶
type AddTagToPageParams ¶
type AdvancePageRevisionParams ¶ added in v0.32.0
type AdvanceUserTOTPStepParams ¶ added in v0.30.0
type ApiKey ¶
type ApiKey struct {
ID int64 `json:"id"`
Name string `json:"name"`
KeyHash string `json:"key_hash"`
KeyPrefix string `json:"key_prefix"`
Permissions string `json:"permissions"`
LastUsedAt sql.NullTime `json:"last_used_at"`
ExpiresAt sql.NullTime `json:"expires_at"`
IsActive bool `json:"is_active"`
CreatedBy int64 `json:"created_by"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
KeyLookup sql.NullString `json:"key_lookup"`
}
type ApiKeySourceCidr ¶ added in v0.11.0
type ApiKeySourceState ¶ added in v0.11.0
type BumpUserSessionVersionParams ¶ added in v0.30.0
type CanExchangeCodeForDCRClientParams ¶ added in v0.32.0
type Category ¶
type Category struct {
ID int64 `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
Description sql.NullString `json:"description"`
ParentID sql.NullInt64 `json:"parent_id"`
Position int64 `json:"position"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
LanguageCode string `json:"language_code"`
}
type CheckClaimParams ¶ added in v0.32.0
type ClaimsCheck ¶ added in v0.32.0
type CleanupStaleLoginProtectionParams ¶ added in v0.20.0
type CompactPrunedRevisionReplaysParams ¶ added in v0.32.0
type ConfigTranslation ¶
type ConsumeOAuthCodeParams ¶ added in v0.32.0
type ConsumeOAuthRefreshParams ¶ added in v0.32.0
type ContentProvenance ¶ added in v0.32.0
type ContentProvenance struct {
ID int64 `json:"id"`
PageID int64 `json:"page_id"`
Revision int64 `json:"revision"`
UserID sql.NullInt64 `json:"user_id"`
Source string `json:"source"`
ApiKeyID sql.NullInt64 `json:"api_key_id"`
OauthGrantID string `json:"oauth_grant_id"`
OauthClientID string `json:"oauth_client_id"`
Transport string `json:"transport"`
ValidatedJson string `json:"validated_json"`
ReportedJson string `json:"reported_json"`
CreatedAt time.Time `json:"created_at"`
}
type ConvertMenuItemToURLParams ¶ added in v0.23.0
type ConvertMenuItemToURLParams struct {
Url sql.NullString `json:"url"`
UpdatedAt time.Time `json:"updated_at"`
ID int64 `json:"id"`
}
type CountActivePreviewLinksParams ¶ added in v0.32.0
type CountExpiredEventsParams ¶ added in v0.32.0
type CountIssuedPreviewLinksParams ¶ added in v0.32.0
type CountOwnAIDraftsParams ¶ added in v0.32.0
type CountOwnAIDraftsParams struct {
UserID int64 `json:"user_id"`
LanguageCode interface{} `json:"language_code"`
}
type CountPagesEmbeddingMediaUUIDParams ¶ added in v0.23.0
type CountPagesEmbeddingMediaUUIDParams struct {
StorageDir sql.NullString `json:"storage_dir"`
MediaUuid sql.NullString `json:"media_uuid"`
}
type CountPagesInLanguageParams ¶ added in v0.32.0
type CountPagesInLanguageParams struct {
LanguageCode string `json:"language_code"`
Status interface{} `json:"status"`
CategoryID interface{} `json:"category_id"`
TagID interface{} `json:"tag_id"`
}
type CountPagesUsingMediaParams ¶ added in v0.23.0
type CountRecentDraftMutationsParams ¶ added in v0.32.0
type CountSearchMediaParams ¶ added in v0.25.0
type CountSearchMediaParams struct {
Filename string `json:"filename"`
Alt sql.NullString `json:"alt"`
}
type CountSearchPagesParams ¶
type CreateAPIKeyParams ¶
type CreateAPIKeyParams struct {
Name string `json:"name"`
KeyHash string `json:"key_hash"`
KeyPrefix string `json:"key_prefix"`
KeyLookup sql.NullString `json:"key_lookup"`
Permissions string `json:"permissions"`
ExpiresAt sql.NullTime `json:"expires_at"`
IsActive bool `json:"is_active"`
CreatedBy int64 `json:"created_by"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type CreateCategoryParams ¶
type CreateCategoryParams struct {
Name string `json:"name"`
Slug string `json:"slug"`
Description sql.NullString `json:"description"`
ParentID sql.NullInt64 `json:"parent_id"`
Position int64 `json:"position"`
LanguageCode string `json:"language_code"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type CreateCompletePageVersionParams ¶ added in v0.32.0
type CreateContentProvenanceParams ¶ added in v0.32.0
type CreateContentProvenanceParams struct {
PageID int64 `json:"page_id"`
Revision int64 `json:"revision"`
UserID sql.NullInt64 `json:"user_id"`
Source string `json:"source"`
ApiKeyID sql.NullInt64 `json:"api_key_id"`
OauthGrantID string `json:"oauth_grant_id"`
OauthClientID string `json:"oauth_client_id"`
Transport string `json:"transport"`
ValidatedJson string `json:"validated_json"`
ReportedJson string `json:"reported_json"`
CreatedAt time.Time `json:"created_at"`
}
type CreateEventParams ¶
type CreateEventParams struct {
Level string `json:"level"`
Category string `json:"category"`
Message string `json:"message"`
UserID sql.NullInt64 `json:"user_id"`
Metadata string `json:"metadata"`
IpAddress string `json:"ip_address"`
RequestUrl string `json:"request_url"`
CreatedAt time.Time `json:"created_at"`
}
type CreateFormFieldParams ¶
type CreateFormFieldParams struct {
FormID int64 `json:"form_id"`
Type string `json:"type"`
Name string `json:"name"`
Label string `json:"label"`
Placeholder sql.NullString `json:"placeholder"`
HelpText sql.NullString `json:"help_text"`
Options sql.NullString `json:"options"`
Validation sql.NullString `json:"validation"`
IsRequired bool `json:"is_required"`
Position int64 `json:"position"`
LanguageCode string `json:"language_code"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type CreateFormParams ¶
type CreateFormParams struct {
Name string `json:"name"`
Slug string `json:"slug"`
Title string `json:"title"`
Description sql.NullString `json:"description"`
SuccessMessage sql.NullString `json:"success_message"`
EmailTo sql.NullString `json:"email_to"`
IsActive bool `json:"is_active"`
LanguageCode string `json:"language_code"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type CreateFormSubmissionParams ¶
type CreateFormSubmissionParams struct {
FormID int64 `json:"form_id"`
Data string `json:"data"`
IpAddress sql.NullString `json:"ip_address"`
UserAgent sql.NullString `json:"user_agent"`
IsRead bool `json:"is_read"`
LanguageCode string `json:"language_code"`
CreatedAt time.Time `json:"created_at"`
}
type CreateIdempotencyKeyParams ¶ added in v0.32.0
type CreateIdempotencyKeyParams struct {
UserID int64 `json:"user_id"`
Tool string `json:"tool"`
RequestID string `json:"request_id"`
RequestHash string `json:"request_hash"`
ResultJson sql.NullString `json:"result_json"`
EntityType string `json:"entity_type"`
EntityID int64 `json:"entity_id"`
EntityRevision int64 `json:"entity_revision"`
CreatedAt time.Time `json:"created_at"`
}
type CreateLanguageParams ¶
type CreateLanguageParams struct {
Code string `json:"code"`
Name string `json:"name"`
NativeName string `json:"native_name"`
IsDefault bool `json:"is_default"`
IsActive bool `json:"is_active"`
Direction string `json:"direction"`
Position int64 `json:"position"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type CreateMediaFolderParams ¶
type CreateMediaParams ¶
type CreateMediaParams struct {
Uuid string `json:"uuid"`
Filename string `json:"filename"`
MimeType string `json:"mime_type"`
Size int64 `json:"size"`
Width sql.NullInt64 `json:"width"`
Height sql.NullInt64 `json:"height"`
Alt sql.NullString `json:"alt"`
Caption sql.NullString `json:"caption"`
FolderID sql.NullInt64 `json:"folder_id"`
UploadedBy int64 `json:"uploaded_by"`
LanguageCode string `json:"language_code"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type CreateMenuItemParams ¶
type CreateMenuItemParams struct {
MenuID int64 `json:"menu_id"`
ParentID sql.NullInt64 `json:"parent_id"`
Title string `json:"title"`
Url sql.NullString `json:"url"`
Target sql.NullString `json:"target"`
PageID sql.NullInt64 `json:"page_id"`
Position int64 `json:"position"`
CssClass sql.NullString `json:"css_class"`
IsActive bool `json:"is_active"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type CreateMenuParams ¶
type CreateOAuthCodeParams ¶ added in v0.32.0
type CreateOAuthGrantParams ¶ added in v0.32.0
type CreateOAuthGrantParams struct {
ID string `json:"id"`
UserID int64 `json:"user_id"`
ClientID string `json:"client_id"`
Scopes string `json:"scopes"`
Resource string `json:"resource"`
SessionVersion int64 `json:"session_version"`
CreatedAt int64 `json:"created_at"`
ExpiresAt int64 `json:"expires_at"`
}
type CreateOAuthTokenParams ¶ added in v0.32.0
type CreatePageAliasParams ¶
type CreatePageParams ¶
type CreatePageParams struct {
Title string `json:"title"`
Slug string `json:"slug"`
Body string `json:"body"`
Summary string `json:"summary"`
Status string `json:"status"`
AuthorID int64 `json:"author_id"`
FeaturedImageID sql.NullInt64 `json:"featured_image_id"`
MetaTitle string `json:"meta_title"`
MetaDescription string `json:"meta_description"`
MetaKeywords string `json:"meta_keywords"`
OgImageID sql.NullInt64 `json:"og_image_id"`
NoIndex int64 `json:"no_index"`
NoFollow int64 `json:"no_follow"`
CanonicalUrl string `json:"canonical_url"`
ScheduledAt sql.NullTime `json:"scheduled_at"`
LanguageCode string `json:"language_code"`
HideFeaturedImage int64 `json:"hide_featured_image"`
PageType string `json:"page_type"`
ExcludeFromLists int64 `json:"exclude_from_lists"`
PublishedAt sql.NullTime `json:"published_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
VideoUrl string `json:"video_url"`
VideoTitle string `json:"video_title"`
}
type CreatePageVersionParams ¶
type CreatePreviewLinkParams ¶ added in v0.32.0
type CreatePreviewLinkParams struct {
TokenHash string `json:"token_hash"`
PageID int64 `json:"page_id"`
Revision int64 `json:"revision"`
CreatedBy int64 `json:"created_by"`
SessionVersion int64 `json:"session_version"`
IssuingGrantID sql.NullString `json:"issuing_grant_id"`
IssuingKeyID sql.NullInt64 `json:"issuing_key_id"`
CreatedAt int64 `json:"created_at"`
ExpiresAt int64 `json:"expires_at"`
}
type CreateRecoveryCodeParams ¶ added in v0.30.0
type CreateRedirectParams ¶ added in v0.5.0
type CreateRedirectParams struct {
SourcePath string `json:"source_path"`
TargetUrl string `json:"target_url"`
StatusCode int64 `json:"status_code"`
IsWildcard bool `json:"is_wildcard"`
TargetType string `json:"target_type"`
Enabled bool `json:"enabled"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type CreateScheduledTaskParams ¶ added in v0.8.0
type CreateScheduledTaskParams struct {
Name string `json:"name"`
Url string `json:"url"`
Schedule string `json:"schedule"`
IsActive int64 `json:"is_active"`
TimeoutSeconds int64 `json:"timeout_seconds"`
CreatedBy sql.NullInt64 `json:"created_by"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type CreateScheduledTaskRunParams ¶ added in v0.8.0
type CreateTagParams ¶
type CreateTranslationParams ¶
type CreateUserParams ¶
type CreateUserParams struct {
Email string `json:"email"`
PasswordHash string `json:"password_hash"`
Role string `json:"role"`
Name string `json:"name"`
Avatar string `json:"avatar"`
Bio string `json:"bio"`
WebsiteUrl string `json:"website_url"`
LinkedinUrl string `json:"linkedin_url"`
GithubUrl string `json:"github_url"`
TelegramUrl string `json:"telegram_url"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type CreateWebhookParams ¶
type CreateWebhookParams struct {
Name string `json:"name"`
Url string `json:"url"`
Secret string `json:"secret"`
Events string `json:"events"`
IsActive bool `json:"is_active"`
Headers string `json:"headers"`
CreatedBy int64 `json:"created_by"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type CreateWidgetParams ¶
type CreateWidgetParams struct {
Theme string `json:"theme"`
Area string `json:"area"`
WidgetType string `json:"widget_type"`
Title sql.NullString `json:"title"`
Content sql.NullString `json:"content"`
Settings sql.NullString `json:"settings"`
Position int64 `json:"position"`
IsActive int64 `json:"is_active"`
LanguageCode string `json:"language_code"`
}
type DBConfig ¶
type DBConfig struct {
// MaxOpenConns is the maximum number of open connections to the database.
// For SQLite, this is typically 1 for writes but can be higher for reads with WAL mode.
MaxOpenConns int
// MaxIdleConns is the maximum number of connections in the idle connection pool.
MaxIdleConns int
// ConnMaxLifetime is the maximum amount of time a connection may be reused.
ConnMaxLifetime time.Duration
// ConnMaxIdleTime is the maximum amount of time a connection may be idle.
ConnMaxIdleTime time.Duration
}
DBConfig holds database configuration options.
func DefaultDBConfig ¶
func DefaultDBConfig() DBConfig
DefaultDBConfig returns sensible defaults for SQLite.
type DeactivateAPIKeyParams ¶
type DeleteEditorialPresetOverrideParams ¶ added in v0.32.0
type DeleteExpiredEventsParams ¶ added in v0.32.0
type DeleteOldTaskRunsParams ¶ added in v0.8.0
type DeletePrunedContentProvenanceParams ¶ added in v0.32.0
type DeleteRetainedOAuthClientsParams ¶ added in v0.32.0
type DeleteRetainedOAuthCodesParams ¶ added in v0.32.0
type DeleteRetiredOAuthGrantsParams ¶ added in v0.32.0
type DeleteRetiredOAuthPreviewsParams ¶ added in v0.32.0
type DeleteRetiredOAuthTokensParams ¶ added in v0.32.0
type DeleteSchedulerOverrideParams ¶ added in v0.9.0
type DeleteTranslationsRelatedToEntityParams ¶ added in v0.23.0
type DeleteUnredeemedOAuthGrantsParams ¶ added in v0.32.0
type EarliestRecentDraftMutationParams ¶ added in v0.32.0
type EditorialPreset ¶ added in v0.32.0
type EditorialStyleGuide ¶ added in v0.32.0
type Event ¶
type Event struct {
ID int64 `json:"id"`
Level string `json:"level"`
Category string `json:"category"`
Message string `json:"message"`
UserID sql.NullInt64 `json:"user_id"`
Metadata string `json:"metadata"`
CreatedAt time.Time `json:"created_at"`
IpAddress string `json:"ip_address"`
RequestUrl string `json:"request_url"`
}
type EvictOAuthDCRClientParams ¶ added in v0.32.0
type ExtendDCROAuthClientParams ¶ added in v0.32.0
type Form ¶
type Form struct {
ID int64 `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
Title string `json:"title"`
Description sql.NullString `json:"description"`
SuccessMessage sql.NullString `json:"success_message"`
EmailTo sql.NullString `json:"email_to"`
IsActive bool `json:"is_active"`
LanguageCode string `json:"language_code"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type FormField ¶
type FormField struct {
ID int64 `json:"id"`
FormID int64 `json:"form_id"`
Type string `json:"type"`
Name string `json:"name"`
Label string `json:"label"`
Placeholder sql.NullString `json:"placeholder"`
HelpText sql.NullString `json:"help_text"`
Options sql.NullString `json:"options"`
Validation sql.NullString `json:"validation"`
IsRequired bool `json:"is_required"`
Position int64 `json:"position"`
LanguageCode string `json:"language_code"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type FormSubmission ¶
type FormSubmission struct {
ID int64 `json:"id"`
FormID int64 `json:"form_id"`
Data string `json:"data"`
IpAddress sql.NullString `json:"ip_address"`
UserAgent sql.NullString `json:"user_agent"`
IsRead bool `json:"is_read"`
LanguageCode string `json:"language_code"`
CreatedAt time.Time `json:"created_at"`
}
type GetAllTranslationsOfEntityRow ¶
type GetAllTranslationsOfEntityRow struct {
ID int64 `json:"id"`
EntityType string `json:"entity_type"`
EntityID int64 `json:"entity_id"`
LanguageID int64 `json:"language_id"`
TranslationID int64 `json:"translation_id"`
CreatedAt time.Time `json:"created_at"`
LanguageCode string `json:"language_code"`
LanguageName string `json:"language_name"`
LanguageNativeName string `json:"language_native_name"`
}
type GetCategoryAvailableTranslationsRow ¶
type GetCategoryAvailableTranslationsRow struct {
LanguageID int64 `json:"language_id"`
LanguageCode string `json:"language_code"`
LanguageName string `json:"language_name"`
LanguageNativeName string `json:"language_native_name"`
LanguageDirection string `json:"language_direction"`
IsDefault bool `json:"is_default"`
CategoryID int64 `json:"category_id"`
CategorySlug string `json:"category_slug"`
CategoryName string `json:"category_name"`
}
type GetCategoryNamesForAllPagesRow ¶ added in v0.15.0
type GetCategoryNamesForPublishedPagesRow ¶ added in v0.16.0
type GetCategoryPathRow ¶
type GetCategoryUsageCountsByLanguageRow ¶
type GetCategoryUsageCountsByLanguageRow struct {
ID int64 `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
Description sql.NullString `json:"description"`
ParentID sql.NullInt64 `json:"parent_id"`
Position int64 `json:"position"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
LanguageCode string `json:"language_code"`
UsageCount int64 `json:"usage_count"`
}
type GetCategoryUsageCountsRow ¶
type GetCategoryUsageCountsRow struct {
ID int64 `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
Description sql.NullString `json:"description"`
ParentID sql.NullInt64 `json:"parent_id"`
Position int64 `json:"position"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
LanguageCode string `json:"language_code"`
UsageCount int64 `json:"usage_count"`
}
type GetConfigTranslationByKeyAndLangCodeRow ¶
type GetConfigTranslationByKeyAndLangCodeRow struct {
ID int64 `json:"id"`
ConfigKey string `json:"config_key"`
LanguageID int64 `json:"language_id"`
Value string `json:"value"`
UpdatedAt time.Time `json:"updated_at"`
UpdatedBy sql.NullInt64 `json:"updated_by"`
LanguageCode string `json:"language_code"`
LanguageName string `json:"language_name"`
}
type GetConfigTranslationRow ¶
type GetConfigTranslationRow struct {
ID int64 `json:"id"`
ConfigKey string `json:"config_key"`
LanguageID int64 `json:"language_id"`
Value string `json:"value"`
UpdatedAt time.Time `json:"updated_at"`
UpdatedBy sql.NullInt64 `json:"updated_by"`
LanguageCode string `json:"language_code"`
LanguageName string `json:"language_name"`
}
type GetContentProvenanceParams ¶ added in v0.32.0
type GetDeliveryStatsLast24hRow ¶
type GetDeliveryStatsLast24hRow struct {
Total int64 `json:"total"`
Delivered sql.NullFloat64 `json:"delivered"`
Pending sql.NullFloat64 `json:"pending"`
Dead sql.NullFloat64 `json:"dead"`
}
type GetDeliveryStatsRow ¶
type GetDeliveryStatsRow struct {
Total int64 `json:"total"`
Delivered sql.NullFloat64 `json:"delivered"`
Pending sql.NullFloat64 `json:"pending"`
Dead sql.NullFloat64 `json:"dead"`
}
type GetFormAvailableTranslationsRow ¶ added in v0.1.0
type GetFormAvailableTranslationsRow struct {
LanguageID int64 `json:"language_id"`
LanguageCode string `json:"language_code"`
LanguageName string `json:"language_name"`
LanguageNativeName string `json:"language_native_name"`
LanguageDirection string `json:"language_direction"`
IsDefault bool `json:"is_default"`
FormID int64 `json:"form_id"`
FormSlug string `json:"form_slug"`
FormName string `json:"form_name"`
}
type GetFormSubmissionsSortedParams ¶ added in v0.10.0
type GetIdempotencyKeyParams ¶ added in v0.32.0
type GetLatestAuthoringProvenanceParams ¶ added in v0.32.0
type GetLatestTranslationProvenanceParams ¶ added in v0.32.0
type GetMediaTranslationAltParams ¶ added in v0.9.0
type GetMediaTranslationCaptionParams ¶ added in v0.9.0
type GetMediaTranslationsRow ¶
type GetMediaTranslationsRow struct {
ID int64 `json:"id"`
MediaID int64 `json:"media_id"`
LanguageID int64 `json:"language_id"`
Alt string `json:"alt"`
Caption string `json:"caption"`
CreatedAt sql.NullTime `json:"created_at"`
UpdatedAt sql.NullTime `json:"updated_at"`
LanguageCode string `json:"language_code"`
LanguageName string `json:"language_name"`
}
type GetMediaVariantParams ¶
type GetOAuthAccountRefreshBudgetParams ¶ added in v0.32.0
type GetOAuthDCRRegistrationBudgetParams ¶ added in v0.32.0
type GetOAuthDCRRegistrationBudgetParams struct {
GlobalCutoff int64 `json:"global_cutoff"`
SourceKey string `json:"source_key"`
SourceCutoff int64 `json:"source_cutoff"`
NetworkMin string `json:"network_min"`
NetworkEnd string `json:"network_end"`
ZeroSubnet string `json:"zero_subnet"`
NetworkOffset int64 `json:"network_offset"`
}
type GetOAuthDCRRegistrationBudgetRow ¶ added in v0.32.0
type GetOAuthGrantRefreshBudgetParams ¶ added in v0.32.0
type GetPageAuthorRow ¶
type GetPageAuthorRow struct {
ID int64 `json:"id"`
Name string `json:"name"`
Email string `json:"email"`
Avatar string `json:"avatar"`
Bio string `json:"bio"`
WebsiteUrl string `json:"website_url"`
LinkedinUrl string `json:"linkedin_url"`
GithubUrl string `json:"github_url"`
TelegramUrl string `json:"telegram_url"`
}
type GetPageAvailableTranslationsRow ¶
type GetPageAvailableTranslationsRow struct {
LanguageID int64 `json:"language_id"`
LanguageCode string `json:"language_code"`
LanguageName string `json:"language_name"`
LanguageNativeName string `json:"language_native_name"`
LanguageDirection string `json:"language_direction"`
IsDefault bool `json:"is_default"`
PageID int64 `json:"page_id"`
PageSlug string `json:"page_slug"`
PageTitle string `json:"page_title"`
}
type GetPageReviewStateRow ¶ added in v0.32.0
type GetPageVersionByRevisionParams ¶ added in v0.32.0
type GetPageVersionWithUserRow ¶
type GetPageVersionWithUserRow struct {
ID int64 `json:"id"`
PageID int64 `json:"page_id"`
Title string `json:"title"`
Body string `json:"body"`
Revision sql.NullInt64 `json:"revision"`
Legacy bool `json:"legacy"`
ChangedBy int64 `json:"changed_by"`
CreatedAt time.Time `json:"created_at"`
ChangedByName string `json:"changed_by_name"`
ChangedByEmail string `json:"changed_by_email"`
}
type GetPageWithLanguageRow ¶
type GetPageWithLanguageRow struct {
ID int64 `json:"id"`
Title string `json:"title"`
Slug string `json:"slug"`
Body string `json:"body"`
Status string `json:"status"`
AuthorID int64 `json:"author_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
PublishedAt sql.NullTime `json:"published_at"`
FeaturedImageID sql.NullInt64 `json:"featured_image_id"`
MetaTitle string `json:"meta_title"`
MetaDescription string `json:"meta_description"`
MetaKeywords string `json:"meta_keywords"`
OgImageID sql.NullInt64 `json:"og_image_id"`
NoIndex int64 `json:"no_index"`
NoFollow int64 `json:"no_follow"`
CanonicalUrl string `json:"canonical_url"`
ScheduledAt sql.NullTime `json:"scheduled_at"`
LanguageCode string `json:"language_code"`
HideFeaturedImage int64 `json:"hide_featured_image"`
PageType string `json:"page_type"`
ExcludeFromLists int64 `json:"exclude_from_lists"`
Summary string `json:"summary"`
VideoUrl string `json:"video_url"`
VideoTitle string `json:"video_title"`
Revision int64 `json:"revision"`
LanguageName string `json:"language_name"`
LanguageNativeName string `json:"language_native_name"`
LanguageDirection string `json:"language_direction"`
}
type GetPagesForTagParams ¶
type GetPreviewIssuanceCutoffParams ¶ added in v0.32.0
type GetPreviewLinkByHashParams ¶ added in v0.32.0
type GetPreviousPageVersionParams ¶ added in v0.32.0
type GetPublishedCategoryUsageCountsRow ¶ added in v0.16.0
type GetPublishedCategoryUsageCountsRow struct {
ID int64 `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
Description sql.NullString `json:"description"`
ParentID sql.NullInt64 `json:"parent_id"`
Position int64 `json:"position"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
LanguageCode string `json:"language_code"`
UsageCount int64 `json:"usage_count"`
}
type GetPublishedPageWithLanguageBySlugRow ¶
type GetPublishedPageWithLanguageBySlugRow struct {
ID int64 `json:"id"`
Title string `json:"title"`
Slug string `json:"slug"`
Body string `json:"body"`
Status string `json:"status"`
AuthorID int64 `json:"author_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
PublishedAt sql.NullTime `json:"published_at"`
FeaturedImageID sql.NullInt64 `json:"featured_image_id"`
MetaTitle string `json:"meta_title"`
MetaDescription string `json:"meta_description"`
MetaKeywords string `json:"meta_keywords"`
OgImageID sql.NullInt64 `json:"og_image_id"`
NoIndex int64 `json:"no_index"`
NoFollow int64 `json:"no_follow"`
CanonicalUrl string `json:"canonical_url"`
ScheduledAt sql.NullTime `json:"scheduled_at"`
LanguageCode string `json:"language_code"`
HideFeaturedImage int64 `json:"hide_featured_image"`
PageType string `json:"page_type"`
ExcludeFromLists int64 `json:"exclude_from_lists"`
Summary string `json:"summary"`
VideoUrl string `json:"video_url"`
VideoTitle string `json:"video_title"`
Revision int64 `json:"revision"`
LanguageName string `json:"language_name"`
LanguageNativeName string `json:"language_native_name"`
LanguageDirection string `json:"language_direction"`
LanguageIsDefault bool `json:"language_is_default"`
}
type GetPublishedTagUsageCountsParams ¶ added in v0.16.0
type GetPublishedTagUsageCountsRow ¶ added in v0.16.0
type GetRecentFailedDeliveriesWithWebhookRow ¶
type GetRecentFailedDeliveriesWithWebhookRow struct {
ID int64 `json:"id"`
WebhookID int64 `json:"webhook_id"`
Event string `json:"event"`
Payload string `json:"payload"`
ResponseCode sql.NullInt64 `json:"response_code"`
ResponseBody sql.NullString `json:"response_body"`
Attempts int64 `json:"attempts"`
NextRetryAt sql.NullTime `json:"next_retry_at"`
DeliveredAt sql.NullTime `json:"delivered_at"`
Status string `json:"status"`
ErrorMessage sql.NullString `json:"error_message"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
WebhookName string `json:"webhook_name"`
}
type GetRecentSubmissionsWithFormRow ¶
type GetRecentSubmissionsWithFormRow struct {
ID int64 `json:"id"`
FormID int64 `json:"form_id"`
Data string `json:"data"`
IpAddress sql.NullString `json:"ip_address"`
UserAgent sql.NullString `json:"user_agent"`
IsRead bool `json:"is_read"`
LanguageCode string `json:"language_code"`
CreatedAt time.Time `json:"created_at"`
FormName string `json:"form_name"`
FormSlug string `json:"form_slug"`
}
type GetRelatedTranslationsRow ¶
type GetRelatedTranslationsRow struct {
ID int64 `json:"id"`
EntityType string `json:"entity_type"`
EntityID int64 `json:"entity_id"`
LanguageID int64 `json:"language_id"`
TranslationID int64 `json:"translation_id"`
CreatedAt time.Time `json:"created_at"`
LanguageCode string `json:"language_code"`
LanguageName string `json:"language_name"`
LanguageNativeName string `json:"language_native_name"`
}
type GetSchedulerOverrideParams ¶ added in v0.9.0
type GetTagAvailableTranslationsRow ¶
type GetTagAvailableTranslationsRow struct {
LanguageID int64 `json:"language_id"`
LanguageCode string `json:"language_code"`
LanguageName string `json:"language_name"`
LanguageNativeName string `json:"language_native_name"`
LanguageDirection string `json:"language_direction"`
IsDefault bool `json:"is_default"`
TagID int64 `json:"tag_id"`
TagSlug string `json:"tag_slug"`
TagName string `json:"tag_name"`
}
type GetTagNamesForAllPagesRow ¶ added in v0.15.0
type GetTagNamesForPublishedPagesRow ¶ added in v0.16.0
type GetTagUsageCountsParams ¶
type GetTagUsageCountsRow ¶
type GetTagUsageCountsSortedParams ¶ added in v0.10.0
type GetTagUsageCountsSortedParams struct {
Limit int64 `json:"limit"`
Offset int64 `json:"offset"`
SortField string `json:"sort_field"`
SortDir string `json:"sort_dir"`
SearchPattern sql.NullString `json:"search_pattern"`
LanguageCode sql.NullString `json:"language_code"`
}
type GetTranslationComponentEntityByLanguageParams ¶ added in v0.23.0
type GetTranslationParams ¶
type GetTranslationStatsRow ¶
type GetTranslationsForEntityRow ¶
type GetTranslationsForEntityRow struct {
ID int64 `json:"id"`
EntityType string `json:"entity_type"`
EntityID int64 `json:"entity_id"`
LanguageID int64 `json:"language_id"`
TranslationID int64 `json:"translation_id"`
CreatedAt time.Time `json:"created_at"`
LanguageCode string `json:"language_code"`
LanguageName string `json:"language_name"`
LanguageNativeName string `json:"language_native_name"`
}
type GetWebhookHealthSummaryRow ¶
type GetWebhookHealthSummaryRow struct {
ID int64 `json:"id"`
Name string `json:"name"`
IsActive bool `json:"is_active"`
TotalDeliveries int64 `json:"total_deliveries"`
DeliveredCount sql.NullFloat64 `json:"delivered_count"`
PendingCount sql.NullFloat64 `json:"pending_count"`
DeadCount sql.NullFloat64 `json:"dead_count"`
}
type IdempotencyKey ¶ added in v0.32.0
type IdempotencyKey struct {
UserID int64 `json:"user_id"`
Tool string `json:"tool"`
RequestID string `json:"request_id"`
RequestHash string `json:"request_hash"`
ResultJson sql.NullString `json:"result_json"`
EntityType string `json:"entity_type"`
EntityID int64 `json:"entity_id"`
EntityRevision int64 `json:"entity_revision"`
CreatedAt time.Time `json:"created_at"`
}
type IsModuleMigrationAppliedParams ¶ added in v0.9.0
type Language ¶
type Language struct {
ID int64 `json:"id"`
Code string `json:"code"`
Name string `json:"name"`
NativeName string `json:"native_name"`
IsDefault bool `json:"is_default"`
IsActive bool `json:"is_active"`
Direction string `json:"direction"`
Position int64 `json:"position"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type ListAPIKeysByUserParams ¶
type ListAPIKeysParams ¶
type ListAPIKeysSortedParams ¶ added in v0.10.0
type ListActiveAgentPreviewLinksRow ¶ added in v0.32.0
type ListActiveAgentPreviewLinksRow struct {
ID int64 `json:"id"`
PageID int64 `json:"page_id"`
Revision int64 `json:"revision"`
CreatedAt int64 `json:"created_at"`
ExpiresAt int64 `json:"expires_at"`
ViaOauth int64 `json:"via_oauth"`
PageTitle string `json:"page_title"`
CreatorName string `json:"creator_name"`
CreatorEmail string `json:"creator_email"`
}
type ListAllConfigTranslationsRow ¶
type ListAllConfigTranslationsRow struct {
ID int64 `json:"id"`
ConfigKey string `json:"config_key"`
LanguageID int64 `json:"language_id"`
Value string `json:"value"`
UpdatedAt time.Time `json:"updated_at"`
UpdatedBy sql.NullInt64 `json:"updated_by"`
LanguageCode string `json:"language_code"`
LanguageName string `json:"language_name"`
}
type ListClaimChecksRow ¶ added in v0.32.0
type ListConfigTranslationsRow ¶
type ListConfigTranslationsRow struct {
ID int64 `json:"id"`
ConfigKey string `json:"config_key"`
LanguageID int64 `json:"language_id"`
Value string `json:"value"`
UpdatedAt time.Time `json:"updated_at"`
UpdatedBy sql.NullInt64 `json:"updated_by"`
LanguageCode string `json:"language_code"`
LanguageName string `json:"language_name"`
}
type ListConnectedAPIKeysParams ¶ added in v0.32.0
type ListConnectedAPIKeysRow ¶ added in v0.32.0
type ListConnectedAPIKeysRow struct {
ID int64 `json:"id"`
Name string `json:"name"`
Permissions string `json:"permissions"`
LastUsedAt sql.NullTime `json:"last_used_at"`
ExpiresAt sql.NullTime `json:"expires_at"`
IsActive bool `json:"is_active"`
CreatedBy int64 `json:"created_by"`
CreatedAt time.Time `json:"created_at"`
OwnerName string `json:"owner_name"`
OwnerRole string `json:"owner_role"`
}
type ListConnectedOAuthGrantsParams ¶ added in v0.32.0
type ListConnectedOAuthGrantsRow ¶ added in v0.32.0
type ListConnectedOAuthGrantsRow struct {
ID string `json:"id"`
UserID int64 `json:"user_id"`
OwnerName string `json:"owner_name"`
OwnerRole string `json:"owner_role"`
OwnerSessionVersion int64 `json:"owner_session_version"`
ClientName string `json:"client_name"`
ClientID string `json:"client_id"`
Scopes string `json:"scopes"`
SessionVersion int64 `json:"session_version"`
CreatedAt int64 `json:"created_at"`
ExpiresAt int64 `json:"expires_at"`
RevokedAt int64 `json:"revoked_at"`
LastUsedAt int64 `json:"last_used_at"`
}
type ListEventsByLevelParams ¶
type ListEventsParams ¶
type ListEventsWithUserByCategoryRow ¶
type ListEventsWithUserByCategoryRow struct {
ID int64 `json:"id"`
Level string `json:"level"`
Category string `json:"category"`
Message string `json:"message"`
UserID sql.NullInt64 `json:"user_id"`
Metadata string `json:"metadata"`
IpAddress string `json:"ip_address"`
RequestUrl string `json:"request_url"`
CreatedAt time.Time `json:"created_at"`
UserName sql.NullString `json:"user_name"`
UserEmail sql.NullString `json:"user_email"`
}
type ListEventsWithUserByLevelAndCategoryRow ¶
type ListEventsWithUserByLevelAndCategoryRow struct {
ID int64 `json:"id"`
Level string `json:"level"`
Category string `json:"category"`
Message string `json:"message"`
UserID sql.NullInt64 `json:"user_id"`
Metadata string `json:"metadata"`
IpAddress string `json:"ip_address"`
RequestUrl string `json:"request_url"`
CreatedAt time.Time `json:"created_at"`
UserName sql.NullString `json:"user_name"`
UserEmail sql.NullString `json:"user_email"`
}
type ListEventsWithUserByLevelRow ¶
type ListEventsWithUserByLevelRow struct {
ID int64 `json:"id"`
Level string `json:"level"`
Category string `json:"category"`
Message string `json:"message"`
UserID sql.NullInt64 `json:"user_id"`
Metadata string `json:"metadata"`
IpAddress string `json:"ip_address"`
RequestUrl string `json:"request_url"`
CreatedAt time.Time `json:"created_at"`
UserName sql.NullString `json:"user_name"`
UserEmail sql.NullString `json:"user_email"`
}
type ListEventsWithUserRow ¶
type ListEventsWithUserRow struct {
ID int64 `json:"id"`
Level string `json:"level"`
Category string `json:"category"`
Message string `json:"message"`
UserID sql.NullInt64 `json:"user_id"`
Metadata string `json:"metadata"`
IpAddress string `json:"ip_address"`
RequestUrl string `json:"request_url"`
CreatedAt time.Time `json:"created_at"`
UserName sql.NullString `json:"user_name"`
UserEmail sql.NullString `json:"user_email"`
}
type ListFeedPostsParams ¶ added in v0.26.0
type ListFeedPostsRow ¶ added in v0.26.0
type ListFeedPostsRow struct {
ID int64 `json:"id"`
Title string `json:"title"`
Slug string `json:"slug"`
Body string `json:"body"`
Summary string `json:"summary"`
PublishedAt sql.NullTime `json:"published_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
AuthorName string `json:"author_name"`
}
type ListFormsParams ¶
type ListGroundingCategoriesParams ¶ added in v0.32.0
type ListGroundingImagesParams ¶ added in v0.32.0
type ListGroundingLanguagesParams ¶ added in v0.32.0
type ListGroundingPagesParams ¶ added in v0.32.0
type ListGroundingTagsParams ¶ added in v0.32.0
type ListMediaByTypeParams ¶
type ListMediaInFolderParams ¶
type ListMediaParams ¶
type ListMediaSortedParams ¶ added in v0.10.0
type ListMediaSortedParams struct {
SearchPattern sql.NullString `json:"search_pattern"`
MimeType sql.NullString `json:"mime_type"`
FolderID sql.NullInt64 `json:"folder_id"`
Limit int64 `json:"limit"`
Offset int64 `json:"offset"`
SortField string `json:"sort_field"`
SortDir string `json:"sort_dir"`
}
type ListMenuItemsWithPageRow ¶
type ListMenuItemsWithPageRow struct {
ID int64 `json:"id"`
MenuID int64 `json:"menu_id"`
ParentID sql.NullInt64 `json:"parent_id"`
Title string `json:"title"`
Url sql.NullString `json:"url"`
Target sql.NullString `json:"target"`
PageID sql.NullInt64 `json:"page_id"`
Position int64 `json:"position"`
CssClass sql.NullString `json:"css_class"`
IsActive bool `json:"is_active"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
PageTitle sql.NullString `json:"page_title"`
PageSlug sql.NullString `json:"page_slug"`
PageLanguageCode sql.NullString `json:"page_language_code"`
PageLanguageIsActive sql.NullBool `json:"page_language_is_active"`
PageLanguageIsDefault sql.NullBool `json:"page_language_is_default"`
}
type ListMenuItemsWithPublishedPageRow ¶ added in v0.16.0
type ListMenuItemsWithPublishedPageRow struct {
ID int64 `json:"id"`
MenuID int64 `json:"menu_id"`
ParentID sql.NullInt64 `json:"parent_id"`
Title string `json:"title"`
Url sql.NullString `json:"url"`
Target sql.NullString `json:"target"`
PageID sql.NullInt64 `json:"page_id"`
Position int64 `json:"position"`
CssClass sql.NullString `json:"css_class"`
IsActive bool `json:"is_active"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
PageTitle sql.NullString `json:"page_title"`
PageSlug sql.NullString `json:"page_slug"`
PageLanguageCode sql.NullString `json:"page_language_code"`
}
type ListOAuthGrantsForUserParams ¶ added in v0.32.0
type ListOAuthGrantsForUserRow ¶ added in v0.32.0
type ListOAuthGrantsForUserRow struct {
ID string `json:"id"`
UserID int64 `json:"user_id"`
ClientID string `json:"client_id"`
Scopes string `json:"scopes"`
Resource string `json:"resource"`
SessionVersion int64 `json:"session_version"`
CreatedAt int64 `json:"created_at"`
ExpiresAt int64 `json:"expires_at"`
RevokedAt int64 `json:"revoked_at"`
LastUsedAt int64 `json:"last_used_at"`
ClientName string `json:"client_name"`
}
type ListOwnAIDraftsParams ¶ added in v0.32.0
type ListPageIDsForMediaParams ¶ added in v0.32.0
type ListPagePreviewLinksParams ¶ added in v0.32.0
type ListPagePreviewLinksRow ¶ added in v0.32.0
type ListPageVersionsParams ¶
type ListPageVersionsWithUserRow ¶
type ListPageVersionsWithUserRow struct {
ID int64 `json:"id"`
PageID int64 `json:"page_id"`
Title string `json:"title"`
Body string `json:"body"`
Revision sql.NullInt64 `json:"revision"`
Legacy bool `json:"legacy"`
ChangedBy int64 `json:"changed_by"`
CreatedAt time.Time `json:"created_at"`
ChangedByName string `json:"changed_by_name"`
ChangedByEmail string `json:"changed_by_email"`
}
type ListPagesByStatusParams ¶
type ListPagesInLanguageParams ¶ added in v0.32.0
type ListPagesParams ¶
type ListPagesSortedParams ¶ added in v0.10.0
type ListPagesSortedParams struct {
AIReview bool `json:"ai_review"`
Status sql.NullString `json:"status"`
PageType sql.NullString `json:"page_type"`
LanguageCode sql.NullString `json:"language_code"`
CategoryID sql.NullInt64 `json:"category_id"`
SearchPattern sql.NullString `json:"search_pattern"`
ScheduledOnly bool `json:"scheduled_only"`
Limit int64 `json:"limit"`
Offset int64 `json:"offset"`
SortField string `json:"sort_field"`
SortDir string `json:"sort_dir"`
}
type ListPrunableAIDraftRevisionsParams ¶ added in v0.32.0
type ListPrunableAIDraftRevisionsRow ¶ added in v0.32.0
type ListPublishedPostsByLanguageParams ¶ added in v0.3.0
type ListPublishedPostsParams ¶ added in v0.3.0
type ListRedirectsPaginatedParams ¶ added in v0.5.0
type ListScheduledTaskRunsParams ¶ added in v0.8.0
type ListTagsForSitemapRow ¶
type ListTagsParams ¶
type ListTranslationComponentMembersParams ¶ added in v0.23.0
type ListTranslationComponentMembersRow ¶ added in v0.23.0
type ListUsersParams ¶
type ListUsersSortedParams ¶ added in v0.10.0
type LoginProtection ¶ added in v0.20.0
type MediaFolder ¶
type MediaTranslation ¶
type MediaVariant ¶
type Medium ¶
type Medium struct {
ID int64 `json:"id"`
Uuid string `json:"uuid"`
Filename string `json:"filename"`
MimeType string `json:"mime_type"`
Size int64 `json:"size"`
Width sql.NullInt64 `json:"width"`
Height sql.NullInt64 `json:"height"`
Alt sql.NullString `json:"alt"`
Caption sql.NullString `json:"caption"`
FolderID sql.NullInt64 `json:"folder_id"`
UploadedBy int64 `json:"uploaded_by"`
LanguageCode string `json:"language_code"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type MenuItem ¶
type MenuItem struct {
ID int64 `json:"id"`
MenuID int64 `json:"menu_id"`
ParentID sql.NullInt64 `json:"parent_id"`
Title string `json:"title"`
Url sql.NullString `json:"url"`
Target sql.NullString `json:"target"`
PageID sql.NullInt64 `json:"page_id"`
Position int64 `json:"position"`
CssClass sql.NullString `json:"css_class"`
IsActive bool `json:"is_active"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type ModuleMigration ¶ added in v0.9.0
type MoveMediaToFolderParams ¶
type OauthClient ¶ added in v0.32.0
type OauthDcrPending ¶ added in v0.32.0
type OauthDcrRegistration ¶ added in v0.32.0
type OauthGrant ¶ added in v0.32.0
type OauthGrant struct {
ID string `json:"id"`
UserID int64 `json:"user_id"`
ClientID string `json:"client_id"`
Scopes string `json:"scopes"`
Resource string `json:"resource"`
SessionVersion int64 `json:"session_version"`
CreatedAt int64 `json:"created_at"`
ExpiresAt int64 `json:"expires_at"`
RevokedAt int64 `json:"revoked_at"`
LastUsedAt int64 `json:"last_used_at"`
}
type OauthGrantRefreshActivity ¶ added in v0.32.0
type OauthToken ¶ added in v0.32.0
type OauthToken struct {
ID string `json:"id"`
GrantID string `json:"grant_id"`
AccessHash string `json:"access_hash"`
RefreshHash string `json:"refresh_hash"`
Scopes string `json:"scopes"`
CreatedAt int64 `json:"created_at"`
AccessExpiresAt int64 `json:"access_expires_at"`
RefreshUsedAt int64 `json:"refresh_used_at"`
AccessRevokedAt int64 `json:"access_revoked_at"`
}
type Page ¶
type Page struct {
ID int64 `json:"id"`
Title string `json:"title"`
Slug string `json:"slug"`
Body string `json:"body"`
Status string `json:"status"`
AuthorID int64 `json:"author_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
PublishedAt sql.NullTime `json:"published_at"`
FeaturedImageID sql.NullInt64 `json:"featured_image_id"`
MetaTitle string `json:"meta_title"`
MetaDescription string `json:"meta_description"`
MetaKeywords string `json:"meta_keywords"`
OgImageID sql.NullInt64 `json:"og_image_id"`
NoIndex int64 `json:"no_index"`
NoFollow int64 `json:"no_follow"`
CanonicalUrl string `json:"canonical_url"`
ScheduledAt sql.NullTime `json:"scheduled_at"`
LanguageCode string `json:"language_code"`
HideFeaturedImage int64 `json:"hide_featured_image"`
PageType string `json:"page_type"`
ExcludeFromLists int64 `json:"exclude_from_lists"`
Summary string `json:"summary"`
VideoUrl string `json:"video_url"`
VideoTitle string `json:"video_title"`
Revision int64 `json:"revision"`
}
type PageAiAccess ¶ added in v0.32.0
type PageCategory ¶
type PageSearch ¶ added in v0.31.0
type PageSearchQueue ¶ added in v0.31.0
type PageSearchQueue struct {
PageID int64 `json:"page_id"`
}
type PageVersion ¶
type PageVersion struct {
ID int64 `json:"id"`
PageID int64 `json:"page_id"`
Title string `json:"title"`
Body string `json:"body"`
ChangedBy int64 `json:"changed_by"`
CreatedAt time.Time `json:"created_at"`
Revision sql.NullInt64 `json:"revision"`
SnapshotJson sql.NullString `json:"snapshot_json"`
Legacy bool `json:"legacy"`
}
type PreviewLink ¶ added in v0.32.0
type PreviewLink struct {
ID int64 `json:"id"`
TokenHash string `json:"token_hash"`
PageID int64 `json:"page_id"`
Revision int64 `json:"revision"`
CreatedBy int64 `json:"created_by"`
SessionVersion int64 `json:"session_version"`
IssuingGrantID sql.NullString `json:"issuing_grant_id"`
IssuingKeyID sql.NullInt64 `json:"issuing_key_id"`
CreatedAt int64 `json:"created_at"`
ExpiresAt int64 `json:"expires_at"`
RevokedAt int64 `json:"revoked_at"`
}
type PublishPageParams ¶
type PublishUnpublishedPageParams ¶ added in v0.29.0
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddCategoryToPage ¶
func (q *Queries) AddCategoryToPage(ctx context.Context, arg AddCategoryToPageParams) error
func (*Queries) AddTagToPage ¶
func (q *Queries) AddTagToPage(ctx context.Context, arg AddTagToPageParams) error
Page-Tag association queries
func (*Queries) AdvancePageRevision ¶ added in v0.32.0
func (*Queries) AdvanceUserTOTPStep ¶ added in v0.30.0
func (q *Queries) AdvanceUserTOTPStep(ctx context.Context, arg AdvanceUserTOTPStepParams) (int64, error)
Records an accepted time step. The guard makes a code single-use even when two requests verify it at once: only the first moves last_step past it.
func (*Queries) AliasExists ¶
func (*Queries) AliasExistsExcludingPage ¶
func (*Queries) BumpUserSessionVersion ¶ added in v0.30.0
func (q *Queries) BumpUserSessionVersion(ctx context.Context, arg BumpUserSessionVersionParams) (int64, error)
Invalidates every existing session for the user. Use it when the user's second factor changes, the way UpdateUserPassword does for the password.
func (*Queries) CanExchangeCodeForDCRClient ¶ added in v0.32.0
func (q *Queries) CanExchangeCodeForDCRClient(ctx context.Context, arg CanExchangeCodeForDCRClientParams) (bool, error)
Check both states together so concurrent redemption cannot hide a replay.
func (*Queries) CategorySlugExists ¶
func (*Queries) CategorySlugExistsExcluding ¶
func (*Queries) CategorySlugExistsExcludingForLanguage ¶
func (*Queries) CategorySlugExistsForLanguage ¶
func (*Queries) CheckClaim ¶ added in v0.32.0
func (q *Queries) CheckClaim(ctx context.Context, arg CheckClaimParams) error
func (*Queries) CleanupStaleLoginProtection ¶ added in v0.20.0
func (q *Queries) CleanupStaleLoginProtection(ctx context.Context, arg CleanupStaleLoginProtectionParams) error
Remove rows whose lockout has expired (or was never set) and whose attempt window has also passed. Called periodically by the cleanup goroutine.
func (*Queries) ClearDefaultLanguage ¶
func (*Queries) ClearPageAliases ¶
func (*Queries) ClearPageCategories ¶
func (*Queries) ClearPageFeaturedImage ¶
func (q *Queries) ClearPageFeaturedImage(ctx context.Context, arg ClearPageFeaturedImageParams) error
func (*Queries) ClearPageScheduledAt ¶
func (q *Queries) ClearPageScheduledAt(ctx context.Context, arg ClearPageScheduledAtParams) error
func (*Queries) ClearPageTags ¶
func (*Queries) CompactIdempotencyKeys ¶ added in v0.32.0
func (*Queries) CompactPageIdempotencyKeys ¶ added in v0.32.0
func (*Queries) CompactPrunedRevisionReplays ¶ added in v0.32.0
func (q *Queries) CompactPrunedRevisionReplays(ctx context.Context, arg CompactPrunedRevisionReplaysParams) (int64, error)
A retained replay receipt of a pruned revision becomes a tombstone, as when its seven days pass: the key, hash and entity stay, so the request is never re-executed and still counts toward the hourly quota.
func (*Queries) ConsumeOAuthCode ¶ added in v0.32.0
func (*Queries) ConsumeOAuthRefresh ¶ added in v0.32.0
func (*Queries) ConvertMenuItemToURL ¶ added in v0.23.0
func (q *Queries) ConvertMenuItemToURL(ctx context.Context, arg ConvertMenuItemToURLParams) error
func (*Queries) CountActiveAPIKeys ¶
func (*Queries) CountActiveLanguages ¶
func (*Queries) CountActivePreviewLinks ¶ added in v0.32.0
func (*Queries) CountActiveWebhooks ¶
func (*Queries) CountAllUnreadSubmissions ¶
func (*Queries) CountCategories ¶
func (*Queries) CountContentReferencingMediaPath ¶ added in v0.23.0
func (q *Queries) CountContentReferencingMediaPath(ctx context.Context, mediaPath string) (int64, error)
Counts every content record still pointing at a media storage path.
Media URLs are plain text with no foreign key, so nothing in the schema stops a file being deleted while a menu item, category description, form, widget or config value still links to it. Public form submissions are not trusted references because unauthenticated visitors control their data. The caller passes the full '/uploads/<dir>/<uuid>/' prefix; matching the prefix rather than a whole URL keeps filenames, variants and query strings out of the comparison.
func (*Queries) CountDeliveriesByStatus ¶
func (*Queries) CountEventsByCategory ¶
func (*Queries) CountEventsByLevel ¶
func (*Queries) CountEventsByLevelAndCategory ¶
func (*Queries) CountExpiredEvents ¶ added in v0.32.0
func (*Queries) CountFormSubmissions ¶
func (*Queries) CountFormsByLanguage ¶
func (*Queries) CountIssuedPreviewLinks ¶ added in v0.32.0
func (*Queries) CountLanguages ¶
func (*Queries) CountMediaByType ¶
func (*Queries) CountMediaFolders ¶
func (*Queries) CountMediaInFolder ¶
func (*Queries) CountMediaInRootFolder ¶
func (*Queries) CountMenuItems ¶
func (*Queries) CountOAuthClients ¶ added in v0.32.0
func (*Queries) CountOAuthClientsBySource ¶ added in v0.32.0
func (*Queries) CountOwnAIDrafts ¶ added in v0.32.0
func (*Queries) CountPageVersions ¶
func (*Queries) CountPagesByCategory ¶
func (*Queries) CountPagesByLanguage ¶
Count pages for a specific language
func (*Queries) CountPagesByLanguageAndStatus ¶
func (*Queries) CountPagesByLanguageCode ¶
func (*Queries) CountPagesByStatus ¶
func (*Queries) CountPagesEmbeddingMediaUUID ¶ added in v0.23.0
func (*Queries) CountPagesForTag ¶
func (*Queries) CountPagesInLanguage ¶ added in v0.32.0
func (*Queries) CountPagesSorted ¶ added in v0.16.0
CountPagesSorted counts pages with the same filter logic as ListPagesSorted.
func (*Queries) CountPagesUsingMedia ¶ added in v0.23.0
func (*Queries) CountPublishedPages ¶
func (*Queries) CountPublishedPagesByCategory ¶
func (*Queries) CountPublishedPagesByCategoryAndLanguage ¶
func (*Queries) CountPublishedPagesByLanguage ¶
func (q *Queries) CountPublishedPagesByLanguage(ctx context.Context, languageCode string) (int64, error)
Count published pages for a specific language
func (*Queries) CountPublishedPagesForTag ¶
func (*Queries) CountPublishedPagesForTagAndLanguage ¶
func (*Queries) CountPublishedPosts ¶ added in v0.3.0
func (*Queries) CountPublishedPostsByLanguage ¶ added in v0.3.0
func (q *Queries) CountPublishedPostsByLanguage(ctx context.Context, languageCode string) (int64, error)
Count published posts for a specific language
func (*Queries) CountRecentDraftMutations ¶ added in v0.32.0
func (*Queries) CountRedirects ¶ added in v0.5.0
func (*Queries) CountScheduledPages ¶
func (*Queries) CountScheduledTaskRuns ¶ added in v0.8.0
func (*Queries) CountSearchMedia ¶ added in v0.25.0
func (*Queries) CountSearchPages ¶
func (*Queries) CountSearchPagesByLanguage ¶
func (*Queries) CountSearchPagesByStatus ¶
func (*Queries) CountTagsFiltered ¶ added in v0.10.0
func (q *Queries) CountTagsFiltered(ctx context.Context, searchPattern, languageCode sql.NullString) (int64, error)
CountTagsFiltered counts tags with optional search and language filters.
func (*Queries) CountTranslationsForEntity ¶
func (q *Queries) CountTranslationsForEntity(ctx context.Context, arg CountTranslationsForEntityParams) (int64, error)
Count translations for an entity
func (*Queries) CountUnreadSubmissions ¶
func (*Queries) CountUnusedRecoveryCodes ¶ added in v0.30.0
func (*Queries) CountUserOwnedContent ¶ added in v0.23.0
Everything that blocks or would be silently re-attributed by deleting a user. pages.author_id and page_versions.changed_by are ON DELETE RESTRICT, and media.uploaded_by has no action clause, which enforces the same way. page_ai_access.set_by is ON DELETE RESTRICT too: the user who last changed a page's AI access cannot be deleted while that row names them. One named parameter serves every count, so a count added here needs no change from callers; TestEveryRestrictingUserForeignKeyIsCountedAsOwnedContent lists the columns that must appear.
func (*Queries) CountUsersByRole ¶
func (*Queries) CountWebhookDeliveries ¶
func (*Queries) CreateAPIKey ¶
func (*Queries) CreateCategory ¶
func (*Queries) CreateCompletePageVersion ¶ added in v0.32.0
func (q *Queries) CreateCompletePageVersion(ctx context.Context, arg CreateCompletePageVersionParams) (PageVersion, error)
func (*Queries) CreateContentProvenance ¶ added in v0.32.0
func (q *Queries) CreateContentProvenance(ctx context.Context, arg CreateContentProvenanceParams) error
func (*Queries) CreateEvent ¶
func (*Queries) CreateForm ¶
func (*Queries) CreateFormField ¶
func (*Queries) CreateFormSubmission ¶
func (q *Queries) CreateFormSubmission(ctx context.Context, arg CreateFormSubmissionParams) (FormSubmission, error)
func (*Queries) CreateIdempotencyKey ¶ added in v0.32.0
func (q *Queries) CreateIdempotencyKey(ctx context.Context, arg CreateIdempotencyKeyParams) error
func (*Queries) CreateLanguage ¶
func (*Queries) CreateMedia ¶
func (*Queries) CreateMediaFolder ¶
func (q *Queries) CreateMediaFolder(ctx context.Context, arg CreateMediaFolderParams) (MediaFolder, error)
func (*Queries) CreateMediaVariant ¶
func (q *Queries) CreateMediaVariant(ctx context.Context, arg CreateMediaVariantParams) (MediaVariant, error)
func (*Queries) CreateMenu ¶
func (*Queries) CreateMenuItem ¶
Menu Item queries
func (*Queries) CreateOAuthCode ¶ added in v0.32.0
func (q *Queries) CreateOAuthCode(ctx context.Context, arg CreateOAuthCodeParams) error
func (*Queries) CreateOAuthGrant ¶ added in v0.32.0
func (q *Queries) CreateOAuthGrant(ctx context.Context, arg CreateOAuthGrantParams) (OauthGrant, error)
func (*Queries) CreateOAuthToken ¶ added in v0.32.0
func (q *Queries) CreateOAuthToken(ctx context.Context, arg CreateOAuthTokenParams) error
func (*Queries) CreatePage ¶
func (*Queries) CreatePageAlias ¶
func (q *Queries) CreatePageAlias(ctx context.Context, arg CreatePageAliasParams) (PageAlias, error)
Page Alias queries
func (*Queries) CreatePageVersion ¶
func (q *Queries) CreatePageVersion(ctx context.Context, arg CreatePageVersionParams) (PageVersion, error)
Page Version queries
func (*Queries) CreatePreviewLink ¶ added in v0.32.0
func (q *Queries) CreatePreviewLink(ctx context.Context, arg CreatePreviewLinkParams) (PreviewLink, error)
func (*Queries) CreateRecoveryCode ¶ added in v0.30.0
func (q *Queries) CreateRecoveryCode(ctx context.Context, arg CreateRecoveryCodeParams) error
func (*Queries) CreateRedirect ¶ added in v0.5.0
func (*Queries) CreateScheduledTask ¶ added in v0.8.0
func (q *Queries) CreateScheduledTask(ctx context.Context, arg CreateScheduledTaskParams) (ScheduledTask, error)
Scheduled Tasks
func (*Queries) CreateScheduledTaskRun ¶ added in v0.8.0
func (q *Queries) CreateScheduledTaskRun(ctx context.Context, arg CreateScheduledTaskRunParams) (ScheduledTaskRun, error)
Scheduled Task Runs
func (*Queries) CreateTranslation ¶
func (q *Queries) CreateTranslation(ctx context.Context, arg CreateTranslationParams) (Translation, error)
func (*Queries) CreateUser ¶
func (*Queries) CreateWebhook ¶
func (*Queries) CreateWebhookDelivery ¶
func (q *Queries) CreateWebhookDelivery(ctx context.Context, arg CreateWebhookDeliveryParams) (WebhookDelivery, error)
Webhook Deliveries
func (*Queries) CreateWidget ¶
func (*Queries) DBHandle ¶ added in v0.32.0
DBHandle exposes the existing database/transaction to the shared page-write boundary. Callers continue to execute statements through generated queries.
func (*Queries) DeactivateAPIKey ¶
func (q *Queries) DeactivateAPIKey(ctx context.Context, arg DeactivateAPIKeyParams) error
func (*Queries) DeleteAllMediaTranslations ¶
func (*Queries) DeleteAllOldTaskRuns ¶ added in v0.8.0
func (*Queries) DeleteCategory ¶
func (*Queries) DeleteConfig ¶
func (*Queries) DeleteConfigTranslation ¶
func (q *Queries) DeleteConfigTranslation(ctx context.Context, arg DeleteConfigTranslationParams) error
func (*Queries) DeleteConfigTranslationsForKey ¶
func (*Queries) DeleteEditorialGuide ¶ added in v0.32.0
func (*Queries) DeleteEditorialPresetOverride ¶ added in v0.32.0
func (q *Queries) DeleteEditorialPresetOverride(ctx context.Context, arg DeleteEditorialPresetOverrideParams) error
func (*Queries) DeleteExpiredEvents ¶ added in v0.32.0
func (*Queries) DeleteExpiredUnusedOAuthClients ¶ added in v0.32.0
func (*Queries) DeleteFormField ¶
func (*Queries) DeleteFormFields ¶
func (*Queries) DeleteFormSubmission ¶
func (*Queries) DeleteLanguage ¶
func (*Queries) DeleteLoginProtection ¶ added in v0.20.0
func (*Queries) DeleteMediaFolder ¶
func (*Queries) DeleteMediaTranslation ¶
func (q *Queries) DeleteMediaTranslation(ctx context.Context, arg DeleteMediaTranslationParams) error
func (*Queries) DeleteMediaVariants ¶
func (*Queries) DeleteMenuItem ¶
func (*Queries) DeleteMenuItems ¶
func (*Queries) DeleteOldDeliveries ¶
func (*Queries) DeleteOldOAuthDCRRegistrations ¶ added in v0.32.0
func (*Queries) DeleteOldTaskRuns ¶ added in v0.8.0
func (q *Queries) DeleteOldTaskRuns(ctx context.Context, arg DeleteOldTaskRunsParams) error
func (*Queries) DeletePageAlias ¶ added in v0.23.0
func (*Queries) DeletePageVersions ¶
func (*Queries) DeletePrunedContentProvenance ¶ added in v0.32.0
func (q *Queries) DeletePrunedContentProvenance(ctx context.Context, arg DeletePrunedContentProvenanceParams) (int64, error)
Claim acknowledgments of the revision go with it (claims_checks cascades).
func (*Queries) DeletePrunedPageVersion ¶ added in v0.32.0
func (*Queries) DeleteRecoveryCodes ¶ added in v0.30.0
func (*Queries) DeleteRedirect ¶ added in v0.5.0
func (*Queries) DeleteRetainedOAuthClients ¶ added in v0.32.0
func (*Queries) DeleteRetainedOAuthCodes ¶ added in v0.32.0
func (*Queries) DeleteRetiredOAuthGrants ¶ added in v0.32.0
func (*Queries) DeleteRetiredOAuthPreviews ¶ added in v0.32.0
func (q *Queries) DeleteRetiredOAuthPreviews(ctx context.Context, arg DeleteRetiredOAuthPreviewsParams) (int64, error)
Drain dependent previews explicitly so family deletion cannot cascade through an unbounded number of historical share records.
func (*Queries) DeleteRetiredOAuthTokens ¶ added in v0.32.0
func (q *Queries) DeleteRetiredOAuthTokens(ctx context.Context, arg DeleteRetiredOAuthTokensParams) (int64, error)
Never prune a token from an active family, even if its access has expired or its refresh was spent: that hash is still required for replay detection.
func (*Queries) DeleteScheduledTask ¶ added in v0.8.0
func (*Queries) DeleteSchedulerOverride ¶ added in v0.9.0
func (q *Queries) DeleteSchedulerOverride(ctx context.Context, arg DeleteSchedulerOverrideParams) error
func (*Queries) DeleteStaleAPIKeySourceState ¶ added in v0.9.0
DeleteStaleAPIKeySourceState removes stale source observation rows.
func (*Queries) DeleteTranslation ¶
func (*Queries) DeleteTranslationsForEntity ¶
func (q *Queries) DeleteTranslationsForEntity(ctx context.Context, arg DeleteTranslationsForEntityParams) error
func (*Queries) DeleteTranslationsForEntityAndLanguage ¶
func (q *Queries) DeleteTranslationsForEntityAndLanguage(ctx context.Context, arg DeleteTranslationsForEntityAndLanguageParams) error
func (*Queries) DeleteTranslationsRelatedToEntity ¶ added in v0.23.0
func (q *Queries) DeleteTranslationsRelatedToEntity(ctx context.Context, arg DeleteTranslationsRelatedToEntityParams) error
func (*Queries) DeleteUnredeemedOAuthGrants ¶ added in v0.32.0
func (q *Queries) DeleteUnredeemedOAuthGrants(ctx context.Context, arg DeleteUnredeemedOAuthGrantsParams) (int64, error)
A grant is created at consent, before any token exists. One that never issued a token and is older than the cutoff will never be redeemed (its code lived 60 seconds), so it goes. Its single code row follows by cascade, which is why the batch limit still bounds the work. A grant with a token, or one that issued a preview link, is never touched here.
func (*Queries) DeleteUserTOTP ¶ added in v0.30.0
func (*Queries) DeleteWebhook ¶
func (*Queries) DeleteWidgetsByTheme ¶
func (*Queries) EarliestRecentDraftMutation ¶ added in v0.32.0
func (*Queries) EvictOAuthDCRClient ¶ added in v0.32.0
func (q *Queries) EvictOAuthDCRClient(ctx context.Context, arg EvictOAuthDCRClientParams) (int64, error)
Prefer the oldest provisional client from a source holding more slots than the requester. Give a source's only provisional client the normal grace period, with a shorter minimum age at capacity for a source with no recent successful registration. The pending view excludes clients with grants.
func (*Queries) ExtendDCROAuthClient ¶ added in v0.32.0
func (q *Queries) ExtendDCROAuthClient(ctx context.Context, arg ExtendDCROAuthClientParams) error
Successful authorization-code exchange gives a DCR client the full lifetime. Consent alone leaves the registration short-lived.
func (*Queries) FormSlugExists ¶ added in v0.1.0
func (*Queries) FormSlugExistsExcludingForLanguage ¶
func (*Queries) FormSlugExistsForLanguage ¶
func (*Queries) GetAPIKeyByHash ¶
func (*Queries) GetAPIKeyByID ¶
func (*Queries) GetAPIKeyByLookup ¶ added in v0.28.0
func (*Queries) GetAPIKeyByPrefix ¶
func (*Queries) GetAPIKeySourceState ¶ added in v0.9.0
func (q *Queries) GetAPIKeySourceState(ctx context.Context, apiKeyID int64) (APIKeySourceState, error)
GetAPIKeySourceState returns persisted source observation state for a key.
func (*Queries) GetAPIKeysByPrefix ¶ added in v0.1.0
func (*Queries) GetAliasesForPage ¶
func (*Queries) GetAllTranslationsOfEntity ¶
func (q *Queries) GetAllTranslationsOfEntity(ctx context.Context, arg GetAllTranslationsOfEntityParams) ([]GetAllTranslationsOfEntityRow, error)
func (*Queries) GetAllWidgets ¶
func (*Queries) GetAllWidgetsByTheme ¶
func (*Queries) GetAllWidgetsByThemeAndLanguage ¶
func (*Queries) GetCategoriesForPage ¶
func (*Queries) GetCategoryAvailableTranslations ¶
func (q *Queries) GetCategoryAvailableTranslations(ctx context.Context, entityID int64) ([]GetCategoryAvailableTranslationsRow, error)
Get all available translations for a category (for language switcher) Translation edges are traversed as an undirected connected component so a sibling remains visible even when it is more than one hop from this category.
func (*Queries) GetCategoryByID ¶
func (*Queries) GetCategoryBySlug ¶
func (*Queries) GetCategoryNamesForAllPages ¶ added in v0.15.0
func (q *Queries) GetCategoryNamesForAllPages(ctx context.Context) ([]GetCategoryNamesForAllPagesRow, error)
func (*Queries) GetCategoryNamesForPublishedPages ¶ added in v0.16.0
func (q *Queries) GetCategoryNamesForPublishedPages(ctx context.Context) ([]GetCategoryNamesForPublishedPagesRow, error)
func (*Queries) GetCategoryPath ¶
func (*Queries) GetCategoryUsageCounts ¶
func (q *Queries) GetCategoryUsageCounts(ctx context.Context) ([]GetCategoryUsageCountsRow, error)
func (*Queries) GetCategoryUsageCountsByLanguage ¶
func (q *Queries) GetCategoryUsageCountsByLanguage(ctx context.Context, languageCode string) ([]GetCategoryUsageCountsByLanguageRow, error)
Category usage counts filtered by both page and category language (for frontend sidebar)
func (*Queries) GetConfigByKey ¶
func (*Queries) GetConfigTranslation ¶
func (q *Queries) GetConfigTranslation(ctx context.Context, arg GetConfigTranslationParams) (GetConfigTranslationRow, error)
Config Translations (uses language_id as FK to languages table)
func (*Queries) GetConfigTranslationByKeyAndLangCode ¶
func (q *Queries) GetConfigTranslationByKeyAndLangCode(ctx context.Context, arg GetConfigTranslationByKeyAndLangCodeParams) (GetConfigTranslationByKeyAndLangCodeRow, error)
func (*Queries) GetContentProvenance ¶ added in v0.32.0
func (q *Queries) GetContentProvenance(ctx context.Context, arg GetContentProvenanceParams) (ContentProvenance, error)
func (*Queries) GetDefaultLanguage ¶
func (*Queries) GetDeliveryStats ¶
func (*Queries) GetDeliveryStatsLast24h ¶
func (q *Queries) GetDeliveryStatsLast24h(ctx context.Context, arg GetDeliveryStatsLast24hParams) (GetDeliveryStatsLast24hRow, error)
func (*Queries) GetDescendantIDs ¶
func (*Queries) GetEditorialGuide ¶ added in v0.32.0
func (*Queries) GetFeaturedImageForPage ¶
Featured image queries
func (*Queries) GetFormAvailableTranslations ¶ added in v0.1.0
func (q *Queries) GetFormAvailableTranslations(ctx context.Context, entityID int64) ([]GetFormAvailableTranslationsRow, error)
Get all available translations for a form (for language switcher) Translation edges are traversed as an undirected connected component so a sibling remains visible even when it is more than one hop from this form.
func (*Queries) GetFormByID ¶
func (*Queries) GetFormBySlug ¶
func (*Queries) GetFormBySlugAndLanguage ¶
func (*Queries) GetFormFieldByID ¶
func (*Queries) GetFormFields ¶
func (*Queries) GetFormSubmissionByID ¶
func (*Queries) GetFormSubmissions ¶
func (q *Queries) GetFormSubmissions(ctx context.Context, arg GetFormSubmissionsParams) ([]FormSubmission, error)
func (*Queries) GetFormSubmissionsSorted ¶ added in v0.10.0
func (q *Queries) GetFormSubmissionsSorted(ctx context.Context, arg GetFormSubmissionsSortedParams) ([]FormSubmission, error)
GetFormSubmissionsSorted lists form submissions with safe whitelist sorting.
func (*Queries) GetIdempotencyKey ¶ added in v0.32.0
func (q *Queries) GetIdempotencyKey(ctx context.Context, arg GetIdempotencyKeyParams) (IdempotencyKey, error)
func (*Queries) GetLanguageByCode ¶
func (*Queries) GetLanguageByID ¶
func (*Queries) GetLastSuccessfulDelivery ¶
func (*Queries) GetLatestAuthoringProvenance ¶ added in v0.32.0
func (q *Queries) GetLatestAuthoringProvenance(ctx context.Context, arg GetLatestAuthoringProvenanceParams) (ContentProvenance, error)
func (*Queries) GetLatestPageVersion ¶
func (*Queries) GetLatestTranslationProvenance ¶ added in v0.32.0
func (q *Queries) GetLatestTranslationProvenance(ctx context.Context, arg GetLatestTranslationProvenanceParams) (ContentProvenance, error)
func (*Queries) GetLoginProtection ¶ added in v0.20.0
func (*Queries) GetMaxLanguagePosition ¶
func (*Queries) GetMaxMenuItemPosition ¶
func (q *Queries) GetMaxMenuItemPosition(ctx context.Context, arg GetMaxMenuItemPositionParams) (interface{}, error)
func (*Queries) GetMaxWidgetPosition ¶
func (q *Queries) GetMaxWidgetPosition(ctx context.Context, arg GetMaxWidgetPositionParams) (interface{}, error)
func (*Queries) GetMediaByID ¶
func (*Queries) GetMediaByUUID ¶
func (*Queries) GetMediaFolderByID ¶
func (*Queries) GetMediaTranslation ¶
func (q *Queries) GetMediaTranslation(ctx context.Context, arg GetMediaTranslationParams) (MediaTranslation, error)
Media Translations (uses language_id as FK to languages table)
func (*Queries) GetMediaTranslationAlt ¶ added in v0.9.0
func (*Queries) GetMediaTranslationCaption ¶ added in v0.9.0
func (*Queries) GetMediaTranslations ¶
func (*Queries) GetMediaVariant ¶
func (q *Queries) GetMediaVariant(ctx context.Context, arg GetMediaVariantParams) (MediaVariant, error)
func (*Queries) GetMediaVariants ¶
func (*Queries) GetMenuByID ¶
func (*Queries) GetMenuBySlug ¶
func (*Queries) GetMenuBySlugAndLanguage ¶
func (*Queries) GetMenuForLanguageOrDefault ¶
func (q *Queries) GetMenuForLanguageOrDefault(ctx context.Context, arg GetMenuForLanguageOrDefaultParams) (Menu, error)
Get menu by slug, preferring specified language, falling back to default
func (*Queries) GetMenuItemByID ¶
func (*Queries) GetOAuthAccountRefreshBudget ¶ added in v0.32.0
func (q *Queries) GetOAuthAccountRefreshBudget(ctx context.Context, arg GetOAuthAccountRefreshBudgetParams) (int64, error)
Include recent rotations from all grants of the account, even revoked ones.
func (*Queries) GetOAuthClient ¶ added in v0.32.0
func (*Queries) GetOAuthCode ¶ added in v0.32.0
func (*Queries) GetOAuthDCRRegistrationBudget ¶ added in v0.32.0
func (q *Queries) GetOAuthDCRRegistrationBudget(ctx context.Context, arg GetOAuthDCRRegistrationBudgetParams) (GetOAuthDCRRegistrationBudgetRow, error)
Read all budgets in one snapshot. The /48 check reads the limit-th newest row so legacy entries above the limit yield the actual recovery time.
func (*Queries) GetOAuthGrant ¶ added in v0.32.0
func (*Queries) GetOAuthGrantRefreshBudget ¶ added in v0.32.0
func (q *Queries) GetOAuthGrantRefreshBudget(ctx context.Context, arg GetOAuthGrantRefreshBudgetParams) (int64, error)
The limit-th newest successful rotation determines when the budget frees a slot, including when an existing family was already above the limit.
func (*Queries) GetOAuthTokenByAccess ¶ added in v0.32.0
func (*Queries) GetOAuthTokenByID ¶ added in v0.32.0
func (*Queries) GetOAuthTokenByRefresh ¶ added in v0.32.0
func (*Queries) GetOGImageForPage ¶
SEO OG image query
func (*Queries) GetPageAIAccess ¶ added in v0.32.0
func (*Queries) GetPageAliasByID ¶ added in v0.32.0
func (*Queries) GetPageAuthor ¶
func (*Queries) GetPageAvailableTranslations ¶
func (q *Queries) GetPageAvailableTranslations(ctx context.Context, entityID int64) ([]GetPageAvailableTranslationsRow, error)
Get all available translations for a page (for language switcher) Returns every published page in the current translation component. Translation rows form an undirected graph: an entity may be the source or target of an edge, and siblings can be more than one hop away from the current page.
func (*Queries) GetPageByAlias ¶ added in v0.23.0
func (*Queries) GetPageByID ¶
func (*Queries) GetPageByLanguageFromTranslation ¶
func (q *Queries) GetPageByLanguageFromTranslation(ctx context.Context, arg GetPageByLanguageFromTranslationParams) (Page, error)
Page-specific translation queries
func (*Queries) GetPageBySlug ¶
func (*Queries) GetPageReviewState ¶ added in v0.32.0
func (*Queries) GetPageSnapshot ¶ added in v0.32.0
func (*Queries) GetPageTranslationBySlug ¶
func (q *Queries) GetPageTranslationBySlug(ctx context.Context, arg GetPageTranslationBySlugParams) (Page, error)
Get the translation of a page in a specific language (by slug for frontend)
func (*Queries) GetPageTranslationLinks ¶
func (q *Queries) GetPageTranslationLinks(ctx context.Context, entityID int64) ([]GetPageTranslationLinksRow, error)
Get all translation links for a page (for language switcher)
func (*Queries) GetPageVersion ¶
func (*Queries) GetPageVersionByRevision ¶ added in v0.32.0
func (q *Queries) GetPageVersionByRevision(ctx context.Context, arg GetPageVersionByRevisionParams) (PageVersion, error)
func (*Queries) GetPageVersionWithUser ¶
func (*Queries) GetPageWithLanguage ¶
func (q *Queries) GetPageWithLanguage(ctx context.Context, id int64) (GetPageWithLanguageRow, error)
Get page with its language information (no JOIN needed - language_code is on pages)
func (*Queries) GetPagesForTag ¶
func (*Queries) GetPendingDeliveries ¶
func (q *Queries) GetPendingDeliveries(ctx context.Context, arg GetPendingDeliveriesParams) ([]WebhookDelivery, error)
func (*Queries) GetPreviewIssuanceCutoff ¶ added in v0.32.0
func (*Queries) GetPreviewLinkByHash ¶ added in v0.32.0
func (q *Queries) GetPreviewLinkByHash(ctx context.Context, arg GetPreviewLinkByHashParams) (PreviewLink, error)
func (*Queries) GetPreviousPageVersion ¶ added in v0.32.0
func (q *Queries) GetPreviousPageVersion(ctx context.Context, arg GetPreviousPageVersionParams) (PageVersion, error)
func (*Queries) GetPublishedCategoryUsageCounts ¶ added in v0.16.0
func (q *Queries) GetPublishedCategoryUsageCounts(ctx context.Context) ([]GetPublishedCategoryUsageCountsRow, error)
func (*Queries) GetPublishedPageByAlias ¶
func (*Queries) GetPublishedPageByID ¶
func (*Queries) GetPublishedPageBySlug ¶
func (*Queries) GetPublishedPageBySlugAndLanguage ¶
func (*Queries) GetPublishedPageWithLanguageBySlug ¶
func (q *Queries) GetPublishedPageWithLanguageBySlug(ctx context.Context, slug string) (GetPublishedPageWithLanguageBySlugRow, error)
Get page with language info by slug (no JOIN needed - language_code is on pages)
func (*Queries) GetPublishedTagUsageCounts ¶ added in v0.16.0
func (q *Queries) GetPublishedTagUsageCounts(ctx context.Context, arg GetPublishedTagUsageCountsParams) ([]GetPublishedTagUsageCountsRow, error)
func (*Queries) GetRecentDeliveries ¶
func (*Queries) GetRecentFailedDeliveries ¶
func (*Queries) GetRecentFailedDeliveriesWithWebhook ¶
func (*Queries) GetRecentMedia ¶
func (*Queries) GetRecentSubmissionsWithForm ¶
func (*Queries) GetRedirectByID ¶ added in v0.5.0
func (*Queries) GetRedirectBySourcePath ¶ added in v0.5.0
func (*Queries) GetRelatedTranslations ¶
func (q *Queries) GetRelatedTranslations(ctx context.Context, arg GetRelatedTranslationsParams) ([]GetRelatedTranslationsRow, error)
Get all translations related to an entity (where entity is either source or target)
func (*Queries) GetScheduledPagesForPublishing ¶
func (q *Queries) GetScheduledPagesForPublishing(ctx context.Context, scheduledAt sql.NullTime) ([]Page, error)
Scheduled publishing queries
func (*Queries) GetScheduledTask ¶ added in v0.8.0
func (*Queries) GetSchedulerOverride ¶ added in v0.9.0
func (*Queries) GetTagAvailableTranslations ¶
func (q *Queries) GetTagAvailableTranslations(ctx context.Context, entityID int64) ([]GetTagAvailableTranslationsRow, error)
Get all available translations for a tag (for language switcher) Translation edges are traversed as an undirected connected component so a sibling remains visible even when it is more than one hop from this tag.
func (*Queries) GetTagByID ¶
func (*Queries) GetTagBySlug ¶
func (*Queries) GetTagNamesForAllPages ¶ added in v0.15.0
func (q *Queries) GetTagNamesForAllPages(ctx context.Context) ([]GetTagNamesForAllPagesRow, error)
func (*Queries) GetTagNamesForPublishedPages ¶ added in v0.16.0
func (q *Queries) GetTagNamesForPublishedPages(ctx context.Context) ([]GetTagNamesForPublishedPagesRow, error)
func (*Queries) GetTagUsageCounts ¶
func (q *Queries) GetTagUsageCounts(ctx context.Context, arg GetTagUsageCountsParams) ([]GetTagUsageCountsRow, error)
func (*Queries) GetTagUsageCountsByLanguage ¶
func (q *Queries) GetTagUsageCountsByLanguage(ctx context.Context, arg GetTagUsageCountsByLanguageParams) ([]GetTagUsageCountsByLanguageRow, error)
Tag usage counts filtered by both page and tag language (for frontend sidebar)
func (*Queries) GetTagUsageCountsSorted ¶ added in v0.10.0
func (q *Queries) GetTagUsageCountsSorted(ctx context.Context, arg GetTagUsageCountsSortedParams) ([]GetTagUsageCountsRow, error)
GetTagUsageCountsSorted lists tags with usage counts, optional filters, and safe whitelist sorting.
func (*Queries) GetTagsForPage ¶
func (*Queries) GetTranslatedEntityID ¶
func (q *Queries) GetTranslatedEntityID(ctx context.Context, arg GetTranslatedEntityIDParams) (int64, error)
Get the translated entity ID for a given entity and target language
func (*Queries) GetTranslation ¶
func (q *Queries) GetTranslation(ctx context.Context, arg GetTranslationParams) (Translation, error)
func (*Queries) GetTranslationByID ¶
func (*Queries) GetTranslationComponentEntityByLanguage ¶ added in v0.23.0
func (q *Queries) GetTranslationComponentEntityByLanguage(ctx context.Context, arg GetTranslationComponentEntityByLanguageParams) (int64, error)
Return an entity in the same translation component that already owns the requested language. This keeps Translate actions from creating a second entity for a language when the existing entity is connected through a sibling rather than a direct outgoing edge.
func (*Queries) GetTranslationCountsBatch ¶
func (q *Queries) GetTranslationCountsBatch(ctx context.Context, entityType string) ([]GetTranslationCountsBatchRow, error)
Batch get translation counts for multiple entities (for page lists) Returns translation count per entity
func (*Queries) GetTranslationCoverage ¶
func (q *Queries) GetTranslationCoverage(ctx context.Context) ([]GetTranslationCoverageRow, error)
Get page count per active language for translation coverage dashboard widget
func (*Queries) GetTranslationStats ¶
func (q *Queries) GetTranslationStats(ctx context.Context) (GetTranslationStatsRow, error)
Get total translation statistics
func (*Queries) GetTranslationsForEntity ¶
func (q *Queries) GetTranslationsForEntity(ctx context.Context, arg GetTranslationsForEntityParams) ([]GetTranslationsForEntityRow, error)
func (*Queries) GetTranslationsForPagesBatch ¶
func (q *Queries) GetTranslationsForPagesBatch(ctx context.Context) ([]GetTranslationsForPagesBatchRow, error)
Batch get translations for multiple page IDs (for page list with translations indicator)
func (*Queries) GetUserByEmail ¶
func (*Queries) GetUserByID ¶
func (*Queries) GetUserTOTP ¶ added in v0.30.0
func (*Queries) GetWebhookByID ¶
func (*Queries) GetWebhookDelivery ¶
func (*Queries) GetWebhookHealthSummary ¶
func (*Queries) GetWidgetsByThemeAndArea ¶
func (*Queries) IsModuleActive ¶
func (*Queries) IsModuleMigrationApplied ¶ added in v0.9.0
func (*Queries) LanguageCodeExists ¶
func (*Queries) LanguageCodeExistsExcluding ¶
func (*Queries) ListAPIKeySourceCIDRs ¶ added in v0.9.0
ListAPIKeySourceCIDRs returns all CIDR/IP allowlist entries for an API key.
func (*Queries) ListAPIKeys ¶
func (*Queries) ListAPIKeysByUser ¶
func (*Queries) ListAPIKeysSorted ¶ added in v0.10.0
func (q *Queries) ListAPIKeysSorted(ctx context.Context, arg ListAPIKeysSortedParams) ([]ApiKey, error)
ListAPIKeysSorted lists API keys with safe whitelist sorting.
func (*Queries) ListActiveAgentPreviewLinks ¶ added in v0.32.0
func (q *Queries) ListActiveAgentPreviewLinks(ctx context.Context, expiresAt int64) ([]ListActiveAgentPreviewLinksRow, error)
Share links an AI client issued (through an OAuth grant or API key) that are still usable, for the MCP admin page.
func (*Queries) ListActiveLanguages ¶
func (*Queries) ListActiveModules ¶
func (*Queries) ListActiveScheduledTasks ¶ added in v0.8.0
func (q *Queries) ListActiveScheduledTasks(ctx context.Context) ([]ScheduledTask, error)
func (*Queries) ListActiveWebhooks ¶
func (*Queries) ListAllConfigTranslations ¶
func (q *Queries) ListAllConfigTranslations(ctx context.Context) ([]ListAllConfigTranslationsRow, error)
func (*Queries) ListCategories ¶
func (*Queries) ListCategoriesByLanguage ¶
func (q *Queries) ListCategoriesByLanguage(ctx context.Context, languageCode string) ([]Category, error)
Language-specific category queries (no JOINs needed - language_code is directly on the table)
func (*Queries) ListCategoriesForSitemap ¶
func (q *Queries) ListCategoriesForSitemap(ctx context.Context) ([]ListCategoriesForSitemapRow, error)
func (*Queries) ListChildCategories ¶
func (*Queries) ListChildMediaFolders ¶
func (*Queries) ListChildMenuItemIDs ¶ added in v0.23.0
func (*Queries) ListChildMenuItems ¶
func (*Queries) ListClaimChecks ¶ added in v0.32.0
func (*Queries) ListConfigTranslations ¶
func (*Queries) ListConnectedAPIKeys ¶ added in v0.32.0
func (q *Queries) ListConnectedAPIKeys(ctx context.Context, arg ListConnectedAPIKeysParams) ([]ListConnectedAPIKeysRow, error)
func (*Queries) ListConnectedOAuthGrants ¶ added in v0.32.0
func (q *Queries) ListConnectedOAuthGrants(ctx context.Context, arg ListConnectedOAuthGrantsParams) ([]ListConnectedOAuthGrantsRow, error)
These projections deliberately omit credential hashes, lookups and prefixes. all_users is set only after checking the current actor's admin role. A grant exists from consent, before any token does. One that never issued a token is not a connection yet (it may never become one), so it is not listed; revocation by ID still reaches it, and the retention job removes it.
func (*Queries) ListEditorialPresets ¶ added in v0.32.0
func (*Queries) ListEnabledRedirects ¶ added in v0.5.0
func (*Queries) ListEvents ¶
func (*Queries) ListEventsByCategory ¶
func (*Queries) ListEventsByLevel ¶
func (*Queries) ListEventsByLevelAndCategory ¶
func (*Queries) ListEventsWithUser ¶
func (q *Queries) ListEventsWithUser(ctx context.Context, arg ListEventsWithUserParams) ([]ListEventsWithUserRow, error)
func (*Queries) ListEventsWithUserByCategory ¶
func (q *Queries) ListEventsWithUserByCategory(ctx context.Context, arg ListEventsWithUserByCategoryParams) ([]ListEventsWithUserByCategoryRow, error)
func (*Queries) ListEventsWithUserByLevel ¶
func (q *Queries) ListEventsWithUserByLevel(ctx context.Context, arg ListEventsWithUserByLevelParams) ([]ListEventsWithUserByLevelRow, error)
func (*Queries) ListEventsWithUserByLevelAndCategory ¶
func (q *Queries) ListEventsWithUserByLevelAndCategory(ctx context.Context, arg ListEventsWithUserByLevelAndCategoryParams) ([]ListEventsWithUserByLevelAndCategoryRow, error)
func (*Queries) ListFeedPosts ¶ added in v0.26.0
func (q *Queries) ListFeedPosts(ctx context.Context, arg ListFeedPostsParams) ([]ListFeedPostsRow, error)
Apply all visibility and taxonomy filters before the fixed feed limit. Compare seconds and fractions separately; SQLite dates round to milliseconds.
func (*Queries) ListFormsByLanguage ¶
func (*Queries) ListGroundingCategories ¶ added in v0.32.0
func (*Queries) ListGroundingImages ¶ added in v0.32.0
func (*Queries) ListGroundingLanguages ¶ added in v0.32.0
func (*Queries) ListGroundingPages ¶ added in v0.32.0
func (*Queries) ListGroundingTags ¶ added in v0.32.0
func (*Queries) ListLanguages ¶
func (*Queries) ListMediaByType ¶
func (*Queries) ListMediaFolders ¶
func (q *Queries) ListMediaFolders(ctx context.Context) ([]MediaFolder, error)
func (*Queries) ListMediaInFolder ¶
func (*Queries) ListMediaInRootFolder ¶
func (*Queries) ListMediaSorted ¶ added in v0.10.0
ListMediaSorted lists media with optional filters and safe whitelist sorting.
func (*Queries) ListMenuItemIDsForPage ¶ added in v0.23.0
func (*Queries) ListMenuItems ¶
func (*Queries) ListMenuItemsWithPage ¶
func (q *Queries) ListMenuItemsWithPage(ctx context.Context, menuID int64) ([]ListMenuItemsWithPageRow, error)
Menu item with page info
func (*Queries) ListMenuItemsWithPublishedPage ¶ added in v0.16.0
func (*Queries) ListMenusByLanguage ¶
Language-specific menu queries (no JOINs needed for most - language_code is directly on the table)
func (*Queries) ListOAuthGrantsForUser ¶ added in v0.32.0
func (q *Queries) ListOAuthGrantsForUser(ctx context.Context, arg ListOAuthGrantsForUserParams) ([]ListOAuthGrantsForUserRow, error)
func (*Queries) ListOwnAIDrafts ¶ added in v0.32.0
func (*Queries) ListPageIDsByLanguage ¶ added in v0.32.0
func (*Queries) ListPageIDsForCategory ¶ added in v0.32.0
func (*Queries) ListPageIDsForMedia ¶ added in v0.32.0
func (*Queries) ListPageIDsForTag ¶ added in v0.32.0
func (*Queries) ListPagePreviewLinks ¶ added in v0.32.0
func (q *Queries) ListPagePreviewLinks(ctx context.Context, arg ListPagePreviewLinksParams) ([]ListPagePreviewLinksRow, error)
func (*Queries) ListPageVersions ¶
func (q *Queries) ListPageVersions(ctx context.Context, arg ListPageVersionsParams) ([]PageVersion, error)
func (*Queries) ListPageVersionsWithUser ¶
func (q *Queries) ListPageVersionsWithUser(ctx context.Context, arg ListPageVersionsWithUserParams) ([]ListPageVersionsWithUserRow, error)
func (*Queries) ListPagesByCategory ¶
func (*Queries) ListPagesByLanguage ¶
func (q *Queries) ListPagesByLanguage(ctx context.Context, arg ListPagesByLanguageParams) ([]Page, error)
List all pages for a specific language
func (*Queries) ListPagesByLanguageAndStatus ¶
func (q *Queries) ListPagesByLanguageAndStatus(ctx context.Context, arg ListPagesByLanguageAndStatusParams) ([]Page, error)
Language-related page queries (no JOINs needed - language_code is directly on the table)
func (*Queries) ListPagesByStatus ¶
func (*Queries) ListPagesInLanguage ¶ added in v0.32.0
func (*Queries) ListPagesSorted ¶ added in v0.10.0
ListPagesSorted lists pages with optional filters and safe whitelist sorting.
func (*Queries) ListPrunableAIDraftRevisions ¶ added in v0.32.0
func (q *Queries) ListPrunableAIDraftRevisions(ctx context.Context, arg ListPrunableAIDraftRevisionsParams) ([]ListPrunableAIDraftRevisionsRow, error)
Revision retention for AI drafts. An AI draft is exactly what ListOwnAIDrafts selects, for any owner: AI access on, status draft, not scheduled. Published, scheduled and non-AI pages are never listed here.
Eligible: complete revisions older than the newest `keep` revision numbers, except revisions that something still reads:
- the current revision (covered by the age rule; the join keeps it explicit);
- a revision pinned by an unrevoked, unexpired preview link;
- the newest revision whose evidence carries a prompt contract version, or a translation basis: the lookups behind publication validation and the translation status read "the latest such revision at or before current";
- a revision recorded as a reference by the current evidence of an AI draft, because inheriting references re-reads that revision's body.
Legacy title/body rows have no revision number and are never selected. Only revisions an agent or API key wrote (provenance source api or oauth) are removed: an editor's saves and system revisions (a scheduled or manual publication, a translation link) are history the site owns, also on a page whose AI access was switched on later or that went back to draft.
func (*Queries) ListPublishedPages ¶
func (q *Queries) ListPublishedPages(ctx context.Context, arg ListPublishedPagesParams) ([]Page, error)
Frontend queries for public pages
func (*Queries) ListPublishedPagesByCategory ¶
func (*Queries) ListPublishedPagesByCategoryAndLanguage ¶
func (q *Queries) ListPublishedPagesByCategoryAndLanguage(ctx context.Context, arg ListPublishedPagesByCategoryAndLanguageParams) ([]Page, error)
Frontend queries filtered by language (for showing pages in current language only)
func (*Queries) ListPublishedPagesByLanguage ¶
func (q *Queries) ListPublishedPagesByLanguage(ctx context.Context, arg ListPublishedPagesByLanguageParams) ([]Page, error)
List published pages for a specific language
func (*Queries) ListPublishedPagesForSitemap ¶
func (q *Queries) ListPublishedPagesForSitemap(ctx context.Context) ([]ListPublishedPagesForSitemapRow, error)
func (*Queries) ListPublishedPagesForTag ¶
func (*Queries) ListPublishedPagesForTagAndLanguage ¶
func (*Queries) ListPublishedPosts ¶ added in v0.3.0
func (q *Queries) ListPublishedPosts(ctx context.Context, arg ListPublishedPostsParams) ([]Page, error)
Posts only (for recent posts, blog feeds - excludes static pages)
func (*Queries) ListPublishedPostsByLanguage ¶ added in v0.3.0
func (q *Queries) ListPublishedPostsByLanguage(ctx context.Context, arg ListPublishedPostsByLanguageParams) ([]Page, error)
Posts only for a specific language (for recent posts, blog feeds - excludes static pages)
func (*Queries) ListRedirects ¶ added in v0.5.0
func (*Queries) ListRedirectsPaginated ¶ added in v0.5.0
func (*Queries) ListRootCategories ¶
func (*Queries) ListRootMediaFolders ¶
func (q *Queries) ListRootMediaFolders(ctx context.Context) ([]MediaFolder, error)
func (*Queries) ListScheduledPages ¶
func (*Queries) ListScheduledTaskRuns ¶ added in v0.8.0
func (q *Queries) ListScheduledTaskRuns(ctx context.Context, arg ListScheduledTaskRunsParams) ([]ScheduledTaskRun, error)
func (*Queries) ListScheduledTasks ¶ added in v0.8.0
func (q *Queries) ListScheduledTasks(ctx context.Context) ([]ScheduledTask, error)
func (*Queries) ListSidebarModules ¶
func (*Queries) ListTagsByLanguage ¶
Language-specific tag queries (no JOINs needed - language_code is directly on the table)
func (*Queries) ListTagsForSitemap ¶
func (q *Queries) ListTagsForSitemap(ctx context.Context) ([]ListTagsForSitemapRow, error)
func (*Queries) ListTopLevelMenuItems ¶
func (*Queries) ListTranslationComponentMembers ¶ added in v0.23.0
func (q *Queries) ListTranslationComponentMembers(ctx context.Context, arg ListTranslationComponentMembersParams) ([]ListTranslationComponentMembersRow, error)
List every other entity in the same undirected translation component with its actual language. Admin editors use this to show complete translation state even when the current entity is a translated child of a star graph.
func (*Queries) ListUsersSorted ¶ added in v0.10.0
ListUsersSorted lists users with safe whitelist sorting.
func (*Queries) ListWebhookDeliveries ¶
func (q *Queries) ListWebhookDeliveries(ctx context.Context, arg ListWebhookDeliveriesParams) ([]WebhookDelivery, error)
func (*Queries) ListWebhooks ¶
func (*Queries) ListWebhooksForEvent ¶
func (*Queries) ListWebhooksPaginated ¶
func (*Queries) MarkSubmissionRead ¶
func (*Queries) MenuSlugExists ¶
func (*Queries) MenuSlugExistsExcluding ¶
func (*Queries) MenuSlugExistsForLanguage ¶
func (*Queries) MenuSlugExistsForLanguageExcluding ¶
func (*Queries) MoveMediaToFolder ¶
func (q *Queries) MoveMediaToFolder(ctx context.Context, arg MoveMediaToFolderParams) error
func (*Queries) PageRouteExistsUnderPrefix ¶ added in v0.23.0
Reports whether any page route lives at a first path segment, either as a page slug, as an alias, or as an alias nested under it. A language whose code equals that segment would swallow all three: the language middleware strips the segment before the frontend router ever sees it. The LIKE pattern needs no escaping because language codes are restricted to lowercase letters, digits and hyphens, none of which are LIKE wildcards.
func (*Queries) PublishPage ¶
func (*Queries) PublishScheduledPage ¶
func (q *Queries) PublishScheduledPage(ctx context.Context, arg PublishScheduledPageParams) (Page, error)
Publishes the page only while it is still a draft scheduled by the given time, so a page published, unscheduled or rescheduled to a later time after the scheduler listed it is left alone.
func (*Queries) PublishUnpublishedPage ¶ added in v0.29.0
func (q *Queries) PublishUnpublishedPage(ctx context.Context, arg PublishUnpublishedPageParams) (Page, error)
Publishes the page only while it is not published, so a request that read it as a draft cannot publish it a second time after the scheduler did.
func (*Queries) RecordModuleMigration ¶ added in v0.9.0
func (q *Queries) RecordModuleMigration(ctx context.Context, arg RecordModuleMigrationParams) error
func (*Queries) RecordOAuthDCRRegistration ¶ added in v0.32.0
func (q *Queries) RecordOAuthDCRRegistration(ctx context.Context, arg RecordOAuthDCRRegistrationParams) error
func (*Queries) RedirectSourcePathExists ¶ added in v0.5.0
func (*Queries) RedirectSourcePathExistsExcluding ¶ added in v0.5.0
func (*Queries) RemoveCategoryFromPage ¶
func (q *Queries) RemoveCategoryFromPage(ctx context.Context, arg RemoveCategoryFromPageParams) error
func (*Queries) RemoveTagFromPage ¶
func (q *Queries) RemoveTagFromPage(ctx context.Context, arg RemoveTagFromPageParams) error
func (*Queries) ReparentMenuItemChildren ¶ added in v0.23.0
func (q *Queries) ReparentMenuItemChildren(ctx context.Context, arg ReparentMenuItemChildrenParams) error
func (*Queries) ReplaceAPIKeySourceCIDRs ¶ added in v0.9.0
func (q *Queries) ReplaceAPIKeySourceCIDRs(ctx context.Context, apiKeyID int64, cidrs []string) error
ReplaceAPIKeySourceCIDRs replaces source CIDR allowlist entries for an API key.
func (*Queries) ResetDeliveryForRetry ¶
func (q *Queries) ResetDeliveryForRetry(ctx context.Context, arg ResetDeliveryForRetryParams) error
func (*Queries) RevokeAgentPreviewLink ¶ added in v0.32.0
func (*Queries) RevokeConnectedAPIKey ¶ added in v0.32.0
func (*Queries) RevokeConnectedOAuthGrant ¶ added in v0.32.0
func (*Queries) RevokeOAuthGrant ¶ added in v0.32.0
func (q *Queries) RevokeOAuthGrant(ctx context.Context, arg RevokeOAuthGrantParams) error
func (*Queries) RevokeOAuthGrantByAccess ¶ added in v0.32.0
func (*Queries) RevokeOwnedOAuthGrant ¶ added in v0.32.0
func (*Queries) RevokePagePreviewLink ¶ added in v0.32.0
func (*Queries) SearchCategories ¶
func (*Queries) SearchMedia ¶
func (*Queries) SearchPages ¶
Admin search queries (using LIKE for searching all pages regardless of status)
func (*Queries) SearchPagesByLanguage ¶
func (*Queries) SearchPagesByStatus ¶
func (*Queries) SearchTags ¶
func (*Queries) SetAPIKeyLookup ¶ added in v0.28.0
func (q *Queries) SetAPIKeyLookup(ctx context.Context, arg SetAPIKeyLookupParams) error
func (*Queries) SetDefaultLanguage ¶
func (q *Queries) SetDefaultLanguage(ctx context.Context, arg SetDefaultLanguageParams) error
func (*Queries) SetModuleShowInSidebar ¶
func (*Queries) SetPageAIAccess ¶ added in v0.32.0
func (q *Queries) SetPageAIAccess(ctx context.Context, arg SetPageAIAccessParams) error
func (*Queries) SlugExists ¶
func (*Queries) SlugExistsExcluding ¶
func (*Queries) SlugOrAliasExists ¶
func (q *Queries) SlugOrAliasExists(ctx context.Context, arg SlugOrAliasExistsParams) (int64, error)
Cross-table uniqueness checks (slug vs page_aliases)
func (*Queries) SlugOrAliasExistsExcluding ¶
func (*Queries) TagSlugExists ¶
func (*Queries) TagSlugExistsExcluding ¶
func (*Queries) TagSlugExistsExcludingForLanguage ¶
func (*Queries) TagSlugExistsForLanguage ¶
func (*Queries) ToggleRedirectEnabled ¶ added in v0.5.0
func (q *Queries) ToggleRedirectEnabled(ctx context.Context, arg ToggleRedirectEnabledParams) error
func (*Queries) ToggleScheduledTask ¶ added in v0.8.0
func (q *Queries) ToggleScheduledTask(ctx context.Context, arg ToggleScheduledTaskParams) (ScheduledTask, error)
func (*Queries) TouchOAuthGrant ¶ added in v0.32.0
func (q *Queries) TouchOAuthGrant(ctx context.Context, arg TouchOAuthGrantParams) error
func (*Queries) TouchOAuthGrantIfDue ¶ added in v0.32.0
func (q *Queries) TouchOAuthGrantIfDue(ctx context.Context, arg TouchOAuthGrantIfDueParams) error
func (*Queries) TranslationExists ¶
func (q *Queries) TranslationExists(ctx context.Context, arg TranslationExistsParams) (int64, error)
Check if translation exists
func (*Queries) UncheckClaim ¶ added in v0.32.0
func (q *Queries) UncheckClaim(ctx context.Context, arg UncheckClaimParams) error
func (*Queries) UnpublishPage ¶
Unpublishes the page only while it is published.
func (*Queries) UpdateAPIKey ¶
func (*Queries) UpdateAPIKeyLastUsed ¶
func (q *Queries) UpdateAPIKeyLastUsed(ctx context.Context, arg UpdateAPIKeyLastUsedParams) error
func (*Queries) UpdateCategory ¶
func (*Queries) UpdateCategoryLanguage ¶
func (q *Queries) UpdateCategoryLanguage(ctx context.Context, arg UpdateCategoryLanguageParams) error
func (*Queries) UpdateCategoryPosition ¶
func (q *Queries) UpdateCategoryPosition(ctx context.Context, arg UpdateCategoryPositionParams) error
func (*Queries) UpdateConfigValue ¶
func (*Queries) UpdateDeliveryDead ¶
func (q *Queries) UpdateDeliveryDead(ctx context.Context, arg UpdateDeliveryDeadParams) error
func (*Queries) UpdateDeliveryRetry ¶
func (q *Queries) UpdateDeliveryRetry(ctx context.Context, arg UpdateDeliveryRetryParams) error
func (*Queries) UpdateDeliverySuccess ¶
func (q *Queries) UpdateDeliverySuccess(ctx context.Context, arg UpdateDeliverySuccessParams) error
func (*Queries) UpdateForm ¶
func (*Queries) UpdateFormField ¶
func (*Queries) UpdateLanguage ¶
func (*Queries) UpdateLanguagePosition ¶
func (q *Queries) UpdateLanguagePosition(ctx context.Context, arg UpdateLanguagePositionParams) error
func (*Queries) UpdateMedia ¶
func (*Queries) UpdateMediaFolder ¶
func (q *Queries) UpdateMediaFolder(ctx context.Context, arg UpdateMediaFolderParams) (MediaFolder, error)
func (*Queries) UpdateMediaForImport ¶ added in v0.23.0
func (*Queries) UpdateMenu ¶
func (*Queries) UpdateMenuItem ¶
func (*Queries) UpdateMenuItemPosition ¶
func (q *Queries) UpdateMenuItemPosition(ctx context.Context, arg UpdateMenuItemPositionParams) error
func (*Queries) UpdatePage ¶
func (*Queries) UpdatePageCreatedAt ¶ added in v0.16.0
func (q *Queries) UpdatePageCreatedAt(ctx context.Context, arg UpdatePageCreatedAtParams) error
func (*Queries) UpdatePageFeaturedImage ¶
func (q *Queries) UpdatePageFeaturedImage(ctx context.Context, arg UpdatePageFeaturedImageParams) error
func (*Queries) UpdatePageLanguage ¶
func (q *Queries) UpdatePageLanguage(ctx context.Context, arg UpdatePageLanguageParams) error
Update page language
func (*Queries) UpdateRedirect ¶ added in v0.5.0
func (*Queries) UpdateScheduledTask ¶ added in v0.8.0
func (q *Queries) UpdateScheduledTask(ctx context.Context, arg UpdateScheduledTaskParams) (ScheduledTask, error)
func (*Queries) UpdateScheduledTaskRunFailed ¶ added in v0.8.0
func (q *Queries) UpdateScheduledTaskRunFailed(ctx context.Context, arg UpdateScheduledTaskRunFailedParams) error
func (*Queries) UpdateScheduledTaskRunSuccess ¶ added in v0.8.0
func (q *Queries) UpdateScheduledTaskRunSuccess(ctx context.Context, arg UpdateScheduledTaskRunSuccessParams) error
func (*Queries) UpdateTagLanguage ¶
func (q *Queries) UpdateTagLanguage(ctx context.Context, arg UpdateTagLanguageParams) error
func (*Queries) UpdateUser ¶
func (*Queries) UpdateUserLastLogin ¶
func (q *Queries) UpdateUserLastLogin(ctx context.Context, arg UpdateUserLastLoginParams) error
func (*Queries) UpdateUserPassword ¶
func (q *Queries) UpdateUserPassword(ctx context.Context, arg UpdateUserPasswordParams) error
Updates the user's password hash and bumps session_version, invalidating every existing session for this user. Use this for any actual credential change. For rehash-on-login (parameter migration of an unchanged password) use UpdateUserPasswordHash instead so the user is not logged out by their own login.
func (*Queries) UpdateUserPasswordHash ¶ added in v0.21.0
func (q *Queries) UpdateUserPasswordHash(ctx context.Context, arg UpdateUserPasswordHashParams) error
Updates only the password hash representation (e.g., re-hashing with updated Argon2 parameters when the user logs in with their existing password). Does not bump session_version because the credential itself has not changed.
func (*Queries) UpdateWebhook ¶
func (*Queries) UpdateWidget ¶
func (*Queries) UpdateWidgetPosition ¶
func (q *Queries) UpdateWidgetPosition(ctx context.Context, arg UpdateWidgetPositionParams) error
func (*Queries) UpsertAPIKeySourceState ¶ added in v0.9.0
func (q *Queries) UpsertAPIKeySourceState(ctx context.Context, apiKeyID int64, ip string, seenAt time.Time) error
UpsertAPIKeySourceState persists source observation state for a key.
func (*Queries) UpsertConfig ¶
func (*Queries) UpsertConfigTranslation ¶
func (q *Queries) UpsertConfigTranslation(ctx context.Context, arg UpsertConfigTranslationParams) (ConfigTranslation, error)
func (*Queries) UpsertEditorialGuide ¶ added in v0.32.0
func (q *Queries) UpsertEditorialGuide(ctx context.Context, arg UpsertEditorialGuideParams) error
func (*Queries) UpsertEditorialPreset ¶ added in v0.32.0
func (q *Queries) UpsertEditorialPreset(ctx context.Context, arg UpsertEditorialPresetParams) error
func (*Queries) UpsertLoginProtection ¶ added in v0.20.0
func (q *Queries) UpsertLoginProtection(ctx context.Context, arg UpsertLoginProtectionParams) error
func (*Queries) UpsertMediaTranslation ¶
func (q *Queries) UpsertMediaTranslation(ctx context.Context, arg UpsertMediaTranslationParams) (MediaTranslation, error)
func (*Queries) UpsertModule ¶
func (*Queries) UpsertOAuthClient ¶ added in v0.32.0
func (q *Queries) UpsertOAuthClient(ctx context.Context, arg UpsertOAuthClientParams) error
func (*Queries) UpsertSchedulerOverride ¶ added in v0.9.0
func (q *Queries) UpsertSchedulerOverride(ctx context.Context, arg UpsertSchedulerOverrideParams) error
func (*Queries) UpsertUserTOTP ¶ added in v0.30.0
func (q *Queries) UpsertUserTOTP(ctx context.Context, arg UpsertUserTOTPParams) error
func (*Queries) UseRecoveryCode ¶ added in v0.30.0
type RecordModuleMigrationParams ¶ added in v0.9.0
type RecordOAuthDCRRegistrationParams ¶ added in v0.32.0
type Redirect ¶ added in v0.5.0
type Redirect struct {
ID int64 `json:"id"`
SourcePath string `json:"source_path"`
TargetUrl string `json:"target_url"`
StatusCode int64 `json:"status_code"`
IsWildcard bool `json:"is_wildcard"`
TargetType string `json:"target_type"`
Enabled bool `json:"enabled"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type RedirectSourcePathExistsExcludingParams ¶ added in v0.5.0
type RemoveTagFromPageParams ¶
type ReparentMenuItemChildrenParams ¶ added in v0.23.0
type RevokeAgentPreviewLinkParams ¶ added in v0.32.0
type RevokeConnectedAPIKeyParams ¶ added in v0.32.0
type RevokeConnectedOAuthGrantParams ¶ added in v0.32.0
type RevokeOAuthGrantByAccessParams ¶ added in v0.32.0
type RevokeOAuthGrantParams ¶ added in v0.32.0
type RevokeOwnedOAuthGrantParams ¶ added in v0.32.0
type RevokePagePreviewLinkParams ¶ added in v0.32.0
type ScheduledTask ¶ added in v0.8.0
type ScheduledTask struct {
ID int64 `json:"id"`
Name string `json:"name"`
Url string `json:"url"`
Schedule string `json:"schedule"`
IsActive int64 `json:"is_active"`
TimeoutSeconds int64 `json:"timeout_seconds"`
CreatedBy sql.NullInt64 `json:"created_by"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type ScheduledTaskRun ¶ added in v0.8.0
type ScheduledTaskRun struct {
ID int64 `json:"id"`
TaskID int64 `json:"task_id"`
Status string `json:"status"`
StatusCode sql.NullInt64 `json:"status_code"`
ResponseBody sql.NullString `json:"response_body"`
ErrorMessage sql.NullString `json:"error_message"`
DurationMs sql.NullInt64 `json:"duration_ms"`
StartedAt time.Time `json:"started_at"`
CompletedAt sql.NullTime `json:"completed_at"`
}
type SchedulerOverride ¶ added in v0.9.0
type SearchMediaParams ¶
type SearchMediaParams struct {
Filename string `json:"filename"`
Alt sql.NullString `json:"alt"`
Limit int64 `json:"limit"`
Offset int64 `json:"offset"`
}
type SearchPagesParams ¶
type SearchTagsParams ¶
type SetAPIKeyLookupParams ¶ added in v0.28.0
type SetAPIKeyLookupParams struct {
KeyLookup sql.NullString `json:"key_lookup"`
ID int64 `json:"id"`
}
type SetPageAIAccessParams ¶ added in v0.32.0
type SlugOrAliasExistsParams ¶
type ToggleRedirectEnabledParams ¶ added in v0.5.0
type ToggleScheduledTaskParams ¶ added in v0.8.0
type TouchOAuthGrantIfDueParams ¶ added in v0.32.0
type TouchOAuthGrantParams ¶ added in v0.32.0
type Translation ¶
type TranslationExistsParams ¶
type UncheckClaimParams ¶ added in v0.32.0
type UnpublishPageParams ¶
type UpdateAPIKeyParams ¶
type UpdateCategoryParams ¶
type UpdateCategoryParams struct {
Name string `json:"name"`
Slug string `json:"slug"`
Description sql.NullString `json:"description"`
ParentID sql.NullInt64 `json:"parent_id"`
Position int64 `json:"position"`
LanguageCode string `json:"language_code"`
UpdatedAt time.Time `json:"updated_at"`
ID int64 `json:"id"`
}
type UpdateConfigValueParams ¶
type UpdateDeliveryDeadParams ¶
type UpdateDeliveryDeadParams struct {
ErrorMessage sql.NullString `json:"error_message"`
UpdatedAt time.Time `json:"updated_at"`
ID int64 `json:"id"`
}
type UpdateDeliveryRetryParams ¶
type UpdateDeliveryRetryParams struct {
ResponseCode sql.NullInt64 `json:"response_code"`
ResponseBody sql.NullString `json:"response_body"`
ErrorMessage sql.NullString `json:"error_message"`
NextRetryAt sql.NullTime `json:"next_retry_at"`
UpdatedAt time.Time `json:"updated_at"`
ID int64 `json:"id"`
}
type UpdateFormFieldParams ¶
type UpdateFormFieldParams struct {
Type string `json:"type"`
Name string `json:"name"`
Label string `json:"label"`
Placeholder sql.NullString `json:"placeholder"`
HelpText sql.NullString `json:"help_text"`
Options sql.NullString `json:"options"`
Validation sql.NullString `json:"validation"`
IsRequired bool `json:"is_required"`
Position int64 `json:"position"`
LanguageCode string `json:"language_code"`
UpdatedAt time.Time `json:"updated_at"`
ID int64 `json:"id"`
}
type UpdateFormParams ¶
type UpdateFormParams struct {
Name string `json:"name"`
Slug string `json:"slug"`
Title string `json:"title"`
Description sql.NullString `json:"description"`
SuccessMessage sql.NullString `json:"success_message"`
EmailTo sql.NullString `json:"email_to"`
IsActive bool `json:"is_active"`
LanguageCode string `json:"language_code"`
UpdatedAt time.Time `json:"updated_at"`
ID int64 `json:"id"`
}
type UpdateLanguageParams ¶
type UpdateLanguageParams struct {
Code string `json:"code"`
Name string `json:"name"`
NativeName string `json:"native_name"`
IsDefault bool `json:"is_default"`
IsActive bool `json:"is_active"`
Direction string `json:"direction"`
Position int64 `json:"position"`
UpdatedAt time.Time `json:"updated_at"`
ID int64 `json:"id"`
}
type UpdateMediaFolderParams ¶
type UpdateMediaForImportParams ¶ added in v0.23.0
type UpdateMediaForImportParams struct {
Filename string `json:"filename"`
MimeType string `json:"mime_type"`
Size int64 `json:"size"`
Width sql.NullInt64 `json:"width"`
Height sql.NullInt64 `json:"height"`
Alt sql.NullString `json:"alt"`
Caption sql.NullString `json:"caption"`
FolderID sql.NullInt64 `json:"folder_id"`
UploadedBy int64 `json:"uploaded_by"`
LanguageCode string `json:"language_code"`
UpdatedAt time.Time `json:"updated_at"`
ID int64 `json:"id"`
}
type UpdateMediaParams ¶
type UpdateMenuItemParams ¶
type UpdateMenuItemParams struct {
ParentID sql.NullInt64 `json:"parent_id"`
Title string `json:"title"`
Url sql.NullString `json:"url"`
Target sql.NullString `json:"target"`
PageID sql.NullInt64 `json:"page_id"`
Position int64 `json:"position"`
CssClass sql.NullString `json:"css_class"`
IsActive bool `json:"is_active"`
UpdatedAt time.Time `json:"updated_at"`
ID int64 `json:"id"`
}
type UpdateMenuParams ¶
type UpdatePageCreatedAtParams ¶ added in v0.16.0
type UpdatePageParams ¶
type UpdatePageParams struct {
Title string `json:"title"`
Slug string `json:"slug"`
Body string `json:"body"`
Summary string `json:"summary"`
Status string `json:"status"`
FeaturedImageID sql.NullInt64 `json:"featured_image_id"`
MetaTitle string `json:"meta_title"`
MetaDescription string `json:"meta_description"`
MetaKeywords string `json:"meta_keywords"`
OgImageID sql.NullInt64 `json:"og_image_id"`
NoIndex int64 `json:"no_index"`
NoFollow int64 `json:"no_follow"`
CanonicalUrl string `json:"canonical_url"`
ScheduledAt sql.NullTime `json:"scheduled_at"`
LanguageCode string `json:"language_code"`
HideFeaturedImage int64 `json:"hide_featured_image"`
PageType string `json:"page_type"`
ExcludeFromLists int64 `json:"exclude_from_lists"`
PublishedAt sql.NullTime `json:"published_at"`
UpdatedAt time.Time `json:"updated_at"`
VideoUrl string `json:"video_url"`
VideoTitle string `json:"video_title"`
ID int64 `json:"id"`
}
type UpdateRedirectParams ¶ added in v0.5.0
type UpdateRedirectParams struct {
SourcePath string `json:"source_path"`
TargetUrl string `json:"target_url"`
StatusCode int64 `json:"status_code"`
IsWildcard bool `json:"is_wildcard"`
TargetType string `json:"target_type"`
Enabled bool `json:"enabled"`
UpdatedAt time.Time `json:"updated_at"`
ID int64 `json:"id"`
}
type UpdateScheduledTaskParams ¶ added in v0.8.0
type UpdateScheduledTaskRunFailedParams ¶ added in v0.8.0
type UpdateScheduledTaskRunSuccessParams ¶ added in v0.8.0
type UpdateTagLanguageParams ¶
type UpdateTagParams ¶
type UpdateUserParams ¶
type UpdateUserParams struct {
Email string `json:"email"`
Role string `json:"role"`
Name string `json:"name"`
Avatar string `json:"avatar"`
Bio string `json:"bio"`
WebsiteUrl string `json:"website_url"`
LinkedinUrl string `json:"linkedin_url"`
GithubUrl string `json:"github_url"`
TelegramUrl string `json:"telegram_url"`
UpdatedAt time.Time `json:"updated_at"`
ID int64 `json:"id"`
}
type UpdateUserPasswordHashParams ¶ added in v0.21.0
type UpdateWebhookParams ¶
type UpdateWidgetParams ¶
type UpdateWidgetParams struct {
WidgetType string `json:"widget_type"`
Title sql.NullString `json:"title"`
Content sql.NullString `json:"content"`
Settings sql.NullString `json:"settings"`
Position int64 `json:"position"`
IsActive int64 `json:"is_active"`
LanguageCode string `json:"language_code"`
ID int64 `json:"id"`
}
type UpsertConfigParams ¶
type UpsertEditorialGuideParams ¶ added in v0.32.0
type UpsertEditorialPresetParams ¶ added in v0.32.0
type UpsertLoginProtectionParams ¶ added in v0.20.0
type UpsertModuleParams ¶
type UpsertOAuthClientParams ¶ added in v0.32.0
type UpsertSchedulerOverrideParams ¶ added in v0.9.0
type UpsertUserTOTPParams ¶ added in v0.30.0
type UseRecoveryCodeParams ¶ added in v0.30.0
type User ¶
type User struct {
ID int64 `json:"id"`
Email string `json:"email"`
PasswordHash string `json:"password_hash"`
Role string `json:"role"`
Name string `json:"name"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
LastLoginAt sql.NullTime `json:"last_login_at"`
Avatar string `json:"avatar"`
Bio string `json:"bio"`
WebsiteUrl string `json:"website_url"`
LinkedinUrl string `json:"linkedin_url"`
GithubUrl string `json:"github_url"`
TelegramUrl string `json:"telegram_url"`
SessionVersion int64 `json:"session_version"`
}
type UserRecoveryCode ¶ added in v0.30.0
type Webhook ¶
type Webhook struct {
ID int64 `json:"id"`
Name string `json:"name"`
Url string `json:"url"`
Secret string `json:"secret"`
Events string `json:"events"`
IsActive bool `json:"is_active"`
Headers string `json:"headers"`
CreatedBy int64 `json:"created_by"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type WebhookDelivery ¶
type WebhookDelivery struct {
ID int64 `json:"id"`
WebhookID int64 `json:"webhook_id"`
Event string `json:"event"`
Payload string `json:"payload"`
ResponseCode sql.NullInt64 `json:"response_code"`
ResponseBody sql.NullString `json:"response_body"`
Attempts int64 `json:"attempts"`
NextRetryAt sql.NullTime `json:"next_retry_at"`
DeliveredAt sql.NullTime `json:"delivered_at"`
Status string `json:"status"`
ErrorMessage sql.NullString `json:"error_message"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type Widget ¶
type Widget struct {
ID int64 `json:"id"`
Theme string `json:"theme"`
Area string `json:"area"`
WidgetType string `json:"widget_type"`
Title sql.NullString `json:"title"`
Content sql.NullString `json:"content"`
Settings sql.NullString `json:"settings"`
Position int64 `json:"position"`
IsActive int64 `json:"is_active"`
LanguageCode string `json:"language_code"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
Source Files
¶
- admin_pager_sort.go
- agent_share_links.sql.go
- api_key_source_cidrs.go
- api_key_source_state.go
- api_keys.sql.go
- authoring.sql.go
- categories.sql.go
- config.sql.go
- connected_apps.sql.go
- database.go
- db.go
- editorial.sql.go
- events.sql.go
- feeds.sql.go
- forms.sql.go
- grounding.sql.go
- languages.sql.go
- login_protection.sql.go
- media.sql.go
- menus.sql.go
- mfa.sql.go
- models.go
- module_migrations.sql.go
- modules.sql.go
- oauth.sql.go
- oauth_dcr.sql.go
- oauth_retention.sql.go
- page_aliases.sql.go
- pages.sql.go
- pagewrite.sql.go
- query_handle.go
- redirects.sql.go
- review.sql.go
- revision_retention.sql.go
- scheduled_tasks.sql.go
- scheduler_overrides.sql.go
- seed.go
- seed_demo.go
- tags.sql.go
- time_migration.go
- translations.sql.go
- users.sql.go
- webhooks.sql.go
- widgets.sql.go