// Package api provides primitives to interact with the openapi HTTP API. // // Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.1 DO NOT EDIT. package api import ( "time" openapi_types "github.com/oapi-codegen/runtime/types" ) // Defines values for AdminStatsScope. const ( AdminStatsScopeInstance AdminStatsScope = "instance" AdminStatsScopeOrganization AdminStatsScope = "organization" ) // Valid indicates whether the value is a known member of the AdminStatsScope enum. func (e AdminStatsScope) Valid() bool { switch e { case AdminStatsScopeInstance: return true case AdminStatsScopeOrganization: return true default: return false } } // Defines values for ApiTokenScope. const ( ApiTokenScopeRead ApiTokenScope = "read" ApiTokenScopeWrite ApiTokenScope = "write" ) // Valid indicates whether the value is a known member of the ApiTokenScope enum. func (e ApiTokenScope) Valid() bool { switch e { case ApiTokenScopeRead: return true case ApiTokenScopeWrite: return true default: return false } } // Defines values for DocFilterMatch. const ( All DocFilterMatch = "all" Any DocFilterMatch = "any" ) // Valid indicates whether the value is a known member of the DocFilterMatch enum. func (e DocFilterMatch) Valid() bool { switch e { case All: return true case Any: return true default: return false } } // Defines values for DocRuleOp. const ( DocRuleOpAfter DocRuleOp = "after" DocRuleOpBefore DocRuleOp = "before" DocRuleOpContains DocRuleOp = "contains" DocRuleOpEmpty DocRuleOp = "empty" DocRuleOpGt DocRuleOp = "gt" DocRuleOpIs DocRuleOp = "is" DocRuleOpIsNot DocRuleOp = "isNot" DocRuleOpLt DocRuleOp = "lt" DocRuleOpNotContains DocRuleOp = "notContains" DocRuleOpNotEmpty DocRuleOp = "notEmpty" DocRuleOpWithinDays DocRuleOp = "withinDays" ) // Valid indicates whether the value is a known member of the DocRuleOp enum. func (e DocRuleOp) Valid() bool { switch e { case DocRuleOpAfter: return true case DocRuleOpBefore: return true case DocRuleOpContains: return true case DocRuleOpEmpty: return true case DocRuleOpGt: return true case DocRuleOpIs: return true case DocRuleOpIsNot: return true case DocRuleOpLt: return true case DocRuleOpNotContains: return true case DocRuleOpNotEmpty: return true case DocRuleOpWithinDays: return true default: return false } } // Defines values for InviteStatus. const ( InviteStatusAdded InviteStatus = "added" InviteStatusExpired InviteStatus = "expired" InviteStatusPending InviteStatus = "pending" ) // Valid indicates whether the value is a known member of the InviteStatus enum. func (e InviteStatus) Valid() bool { switch e { case InviteStatusAdded: return true case InviteStatusExpired: return true case InviteStatusPending: return true default: return false } } // Defines values for LabelColor. const ( LabelColorBlue LabelColor = "blue" LabelColorEmpty LabelColor = "" LabelColorGray LabelColor = "gray" LabelColorGreen LabelColor = "green" LabelColorOrange LabelColor = "orange" LabelColorPink LabelColor = "pink" LabelColorPurple LabelColor = "purple" LabelColorRed LabelColor = "red" LabelColorTeal LabelColor = "teal" LabelColorYellow LabelColor = "yellow" ) // Valid indicates whether the value is a known member of the LabelColor enum. func (e LabelColor) Valid() bool { switch e { case LabelColorBlue: return true case LabelColorEmpty: return true case LabelColorGray: return true case LabelColorGreen: return true case LabelColorOrange: return true case LabelColorPink: return true case LabelColorPurple: return true case LabelColorRed: return true case LabelColorTeal: return true case LabelColorYellow: return true default: return false } } // Defines values for NewApiTokenScope. const ( NewApiTokenScopeRead NewApiTokenScope = "read" NewApiTokenScopeWrite NewApiTokenScope = "write" ) // Valid indicates whether the value is a known member of the NewApiTokenScope enum. func (e NewApiTokenScope) Valid() bool { switch e { case NewApiTokenScopeRead: return true case NewApiTokenScopeWrite: return true default: return false } } // Defines values for NotificationSettingsEmail. const ( Digest NotificationSettingsEmail = "digest" Off NotificationSettingsEmail = "off" ) // Valid indicates whether the value is a known member of the NotificationSettingsEmail enum. func (e NotificationSettingsEmail) Valid() bool { switch e { case Digest: return true case Off: return true default: return false } } // Defines values for NotificationType. const ( NotificationTypeComment NotificationType = "comment" NotificationTypeMention NotificationType = "mention" NotificationTypeReminder NotificationType = "reminder" NotificationTypeReply NotificationType = "reply" NotificationTypeResolved NotificationType = "resolved" NotificationTypeShare NotificationType = "share" ) // Valid indicates whether the value is a known member of the NotificationType enum. func (e NotificationType) Valid() bool { switch e { case NotificationTypeComment: return true case NotificationTypeMention: return true case NotificationTypeReminder: return true case NotificationTypeReply: return true case NotificationTypeResolved: return true case NotificationTypeShare: return true default: return false } } // Defines values for OAuthProviderSettingsName. const ( Github OAuthProviderSettingsName = "github" Google OAuthProviderSettingsName = "google" Microsoft OAuthProviderSettingsName = "microsoft" Oidc OAuthProviderSettingsName = "oidc" ) // Valid indicates whether the value is a known member of the OAuthProviderSettingsName enum. func (e OAuthProviderSettingsName) Valid() bool { switch e { case Github: return true case Google: return true case Microsoft: return true case Oidc: return true default: return false } } // Defines values for PageFont. const ( PageFontEmpty PageFont = "" PageFontMono PageFont = "mono" PageFontSerif PageFont = "serif" ) // Valid indicates whether the value is a known member of the PageFont enum. func (e PageFont) Valid() bool { switch e { case PageFontEmpty: return true case PageFontMono: return true case PageFontSerif: return true default: return false } } // Defines values for PageGrantType. const ( PageGrantTypeGroup PageGrantType = "group" PageGrantTypeUser PageGrantType = "user" ) // Valid indicates whether the value is a known member of the PageGrantType enum. func (e PageGrantType) Valid() bool { switch e { case PageGrantTypeGroup: return true case PageGrantTypeUser: return true default: return false } } // Defines values for PageGrantRole. const ( PageGrantRoleCommenter PageGrantRole = "commenter" PageGrantRoleEditor PageGrantRole = "editor" PageGrantRoleViewer PageGrantRole = "viewer" ) // Valid indicates whether the value is a known member of the PageGrantRole enum. func (e PageGrantRole) Valid() bool { switch e { case PageGrantRoleCommenter: return true case PageGrantRoleEditor: return true case PageGrantRoleViewer: return true default: return false } } // Defines values for PropertyType. const ( PropertyTypeCheckbox PropertyType = "checkbox" PropertyTypeDate PropertyType = "date" PropertyTypeLink PropertyType = "link" PropertyTypeMember PropertyType = "member" PropertyTypeMultiSelect PropertyType = "multi_select" PropertyTypeNumber PropertyType = "number" PropertyTypeSelect PropertyType = "select" PropertyTypeText PropertyType = "text" ) // Valid indicates whether the value is a known member of the PropertyType enum. func (e PropertyType) Valid() bool { switch e { case PropertyTypeCheckbox: return true case PropertyTypeDate: return true case PropertyTypeLink: return true case PropertyTypeMember: return true case PropertyTypeMultiSelect: return true case PropertyTypeNumber: return true case PropertyTypeSelect: return true case PropertyTypeText: return true default: return false } } // Defines values for PropertyVisibility. const ( Always PropertyVisibility = "always" HideEmpty PropertyVisibility = "hide_empty" Never PropertyVisibility = "never" ) // Valid indicates whether the value is a known member of the PropertyVisibility enum. func (e PropertyVisibility) Valid() bool { switch e { case Always: return true case HideEmpty: return true case Never: return true default: return false } } // Defines values for Role. const ( RoleAdmin Role = "admin" RoleSuperadmin Role = "superadmin" RoleUser Role = "user" ) // Valid indicates whether the value is a known member of the Role enum. func (e Role) Valid() bool { switch e { case RoleAdmin: return true case RoleSuperadmin: return true case RoleUser: return true default: return false } } // Defines values for SpaceCallerRole. const ( SpaceCallerRoleAdmin SpaceCallerRole = "admin" SpaceCallerRoleCommenter SpaceCallerRole = "commenter" SpaceCallerRoleEditor SpaceCallerRole = "editor" SpaceCallerRoleEmpty SpaceCallerRole = "" SpaceCallerRoleViewer SpaceCallerRole = "viewer" ) // Valid indicates whether the value is a known member of the SpaceCallerRole enum. func (e SpaceCallerRole) Valid() bool { switch e { case SpaceCallerRoleAdmin: return true case SpaceCallerRoleCommenter: return true case SpaceCallerRoleEditor: return true case SpaceCallerRoleEmpty: return true case SpaceCallerRoleViewer: return true default: return false } } // Defines values for SpaceDefaultRole. const ( SpaceDefaultRoleCommenter SpaceDefaultRole = "commenter" SpaceDefaultRoleEditor SpaceDefaultRole = "editor" SpaceDefaultRoleViewer SpaceDefaultRole = "viewer" ) // Valid indicates whether the value is a known member of the SpaceDefaultRole enum. func (e SpaceDefaultRole) Valid() bool { switch e { case SpaceDefaultRoleCommenter: return true case SpaceDefaultRoleEditor: return true case SpaceDefaultRoleViewer: return true default: return false } } // Defines values for SpaceRole. const ( SpaceRoleAdmin SpaceRole = "admin" SpaceRoleCommenter SpaceRole = "commenter" SpaceRoleEditor SpaceRole = "editor" SpaceRoleViewer SpaceRole = "viewer" ) // Valid indicates whether the value is a known member of the SpaceRole enum. func (e SpaceRole) Valid() bool { switch e { case SpaceRoleAdmin: return true case SpaceRoleCommenter: return true case SpaceRoleEditor: return true case SpaceRoleViewer: return true default: return false } } // Defines values for SpaceVisibility. const ( Open SpaceVisibility = "open" Private SpaceVisibility = "private" ) // Valid indicates whether the value is a known member of the SpaceVisibility enum. func (e SpaceVisibility) Valid() bool { switch e { case Open: return true case Private: return true default: return false } } // Defines values for StatusStatus. const ( Ok StatusStatus = "ok" Unavailable StatusStatus = "unavailable" ) // Valid indicates whether the value is a known member of the StatusStatus enum. func (e StatusStatus) Valid() bool { switch e { case Ok: return true case Unavailable: return true default: return false } } // Defines values for UpdateUserRequestStatus. const ( UpdateUserRequestStatusActive UpdateUserRequestStatus = "active" UpdateUserRequestStatusDisabled UpdateUserRequestStatus = "disabled" UpdateUserRequestStatusInvited UpdateUserRequestStatus = "invited" ) // Valid indicates whether the value is a known member of the UpdateUserRequestStatus enum. func (e UpdateUserRequestStatus) Valid() bool { switch e { case UpdateUserRequestStatusActive: return true case UpdateUserRequestStatusDisabled: return true case UpdateUserRequestStatusInvited: return true default: return false } } // Defines values for UserStatus. const ( UserStatusActive UserStatus = "active" UserStatusDisabled UserStatus = "disabled" UserStatusInvited UserStatus = "invited" ) // Valid indicates whether the value is a known member of the UserStatus enum. func (e UserStatus) Valid() bool { switch e { case UserStatusActive: return true case UserStatusDisabled: return true case UserStatusInvited: return true default: return false } } // Defines values for WebhookDeliveryStatus. const ( WebhookDeliveryStatusFailed WebhookDeliveryStatus = "failed" WebhookDeliveryStatusPending WebhookDeliveryStatus = "pending" WebhookDeliveryStatusSuccess WebhookDeliveryStatus = "success" ) // Valid indicates whether the value is a known member of the WebhookDeliveryStatus enum. func (e WebhookDeliveryStatus) Valid() bool { switch e { case WebhookDeliveryStatusFailed: return true case WebhookDeliveryStatusPending: return true case WebhookDeliveryStatusSuccess: return true default: return false } } // Defines values for WebhookEvent. const ( Asterisk WebhookEvent = "*" CommentCreated WebhookEvent = "comment.created" CommentResolved WebhookEvent = "comment.resolved" PageArchived WebhookEvent = "page.archived" PageCreated WebhookEvent = "page.created" PageDeleted WebhookEvent = "page.deleted" PageMoved WebhookEvent = "page.moved" PageRestored WebhookEvent = "page.restored" PageTrashed WebhookEvent = "page.trashed" PageUnarchived WebhookEvent = "page.unarchived" PageUpdated WebhookEvent = "page.updated" SpaceCreated WebhookEvent = "space.created" SpaceDeleted WebhookEvent = "space.deleted" ) // Valid indicates whether the value is a known member of the WebhookEvent enum. func (e WebhookEvent) Valid() bool { switch e { case Asterisk: return true case CommentCreated: return true case CommentResolved: return true case PageArchived: return true case PageCreated: return true case PageDeleted: return true case PageMoved: return true case PageRestored: return true case PageTrashed: return true case PageUnarchived: return true case PageUpdated: return true case SpaceCreated: return true case SpaceDeleted: return true default: return false } } // Defines values for WorkspaceRole. const ( WorkspaceRoleAdmin WorkspaceRole = "admin" WorkspaceRoleGuest WorkspaceRole = "guest" WorkspaceRoleMember WorkspaceRole = "member" WorkspaceRoleOwner WorkspaceRole = "owner" ) // Valid indicates whether the value is a known member of the WorkspaceRole enum. func (e WorkspaceRole) Valid() bool { switch e { case WorkspaceRoleAdmin: return true case WorkspaceRoleGuest: return true case WorkspaceRoleMember: return true case WorkspaceRoleOwner: return true default: return false } } // Defines values for CreateApiTokenJSONBodyScope. const ( CreateApiTokenJSONBodyScopeRead CreateApiTokenJSONBodyScope = "read" CreateApiTokenJSONBodyScopeWrite CreateApiTokenJSONBodyScope = "write" ) // Valid indicates whether the value is a known member of the CreateApiTokenJSONBodyScope enum. func (e CreateApiTokenJSONBodyScope) Valid() bool { switch e { case CreateApiTokenJSONBodyScopeRead: return true case CreateApiTokenJSONBodyScopeWrite: return true default: return false } } // Defines values for ExportPageParamsFormat. const ( ExportPageParamsFormatDocx ExportPageParamsFormat = "docx" ExportPageParamsFormatHtml ExportPageParamsFormat = "html" ExportPageParamsFormatMarkdown ExportPageParamsFormat = "markdown" ExportPageParamsFormatPdf ExportPageParamsFormat = "pdf" ) // Valid indicates whether the value is a known member of the ExportPageParamsFormat enum. func (e ExportPageParamsFormat) Valid() bool { switch e { case ExportPageParamsFormatDocx: return true case ExportPageParamsFormatHtml: return true case ExportPageParamsFormatMarkdown: return true case ExportPageParamsFormatPdf: return true default: return false } } // Defines values for ExportSpaceParamsFormat. const ( ExportSpaceParamsFormatHtml ExportSpaceParamsFormat = "html" ExportSpaceParamsFormatMarkdown ExportSpaceParamsFormat = "markdown" ) // Valid indicates whether the value is a known member of the ExportSpaceParamsFormat enum. func (e ExportSpaceParamsFormat) Valid() bool { switch e { case ExportSpaceParamsFormatHtml: return true case ExportSpaceParamsFormatMarkdown: return true default: return false } } // AdminHealth defines model for AdminHealth. type AdminHealth struct { Database struct { Error *string `json:"error,omitempty"` LatencyMs int `json:"latencyMs"` Ok bool `json:"ok"` } `json:"database"` GoVersion string `json:"goVersion"` Goroutines int `json:"goroutines"` MemoryMb int `json:"memoryMb"` Started time.Time `json:"started"` UptimeSeconds int `json:"uptimeSeconds"` Version string `json:"version"` } // AdminStats defines model for AdminStats. type AdminStats struct { Attachments int `json:"attachments"` // Editors People connected to those pages (instance scope only) Editors int `json:"editors"` // Indexed Pages in the search index (instance scope only) Indexed int `json:"indexed"` Organizations int `json:"organizations"` // Pages Pages outside the trash Pages int `json:"pages"` // Rooms Pages open for editing now (instance scope only) Rooms int `json:"rooms"` Scope AdminStatsScope `json:"scope"` Spaces int `json:"spaces"` // StorageBytes Total size of attachments StorageBytes int `json:"storageBytes"` Users int `json:"users"` Workspaces int `json:"workspaces"` } // AdminStatsScope defines model for AdminStats.Scope. type AdminStatsScope string // ApiToken defines model for ApiToken. type ApiToken struct { Created string `json:"created"` // Expires Empty when it never expires Expires string `json:"expires"` Id string `json:"id"` LastUsed string `json:"lastUsed"` Name string `json:"name"` // Prefix The token's first characters Prefix string `json:"prefix"` Scope ApiTokenScope `json:"scope"` // User In admin listings User *struct { Email string `json:"email"` Id string `json:"id"` Name string `json:"name"` } `json:"user,omitempty"` } // ApiTokenScope defines model for ApiToken.Scope. type ApiTokenScope string // ArchivedPage defines model for ArchivedPage. type ArchivedPage struct { ArchivedAt string `json:"archivedAt"` Icon string `json:"icon"` Id string `json:"id"` Title string `json:"title"` } // Attachment defines model for Attachment. type Attachment struct { Created string `json:"created"` Id string `json:"id"` // Mime Detected from the content Mime string `json:"mime"` Name string `json:"name"` Page string `json:"page"` // Size Bytes Size int `json:"size"` // Url API path, e.g. /api/v1/files/abc Url string `json:"url"` } // AuditEntry defines model for AuditEntry. type AuditEntry struct { // Action A sign-in step ("auth.login", "auth.login.failed") or the route of a change ("PATCH /pages/{id}") Action string `json:"action"` ActorEmail string `json:"actorEmail"` ActorId string `json:"actorId"` Created string `json:"created"` Id string `json:"id"` Ip string `json:"ip"` Meta *map[string]interface{} `json:"meta"` Status int `json:"status"` TargetId string `json:"targetId"` TargetType string `json:"targetType"` UserAgent string `json:"userAgent"` } // AuditPage defines model for AuditPage. type AuditPage struct { Items []AuditEntry `json:"items"` Page int `json:"page"` Total int `json:"total"` } // AuthMethods defines model for AuthMethods. type AuthMethods struct { Mfa bool `json:"mfa"` Oauth2 []string `json:"oauth2"` Otp bool `json:"otp"` Password bool `json:"password"` Providers []struct { DisplayName string `json:"displayName"` Name string `json:"name"` } `json:"providers"` Signup bool `json:"signup"` } // AuthSettings defines model for AuthSettings. type AuthSettings struct { // CallbackUrl Read-only: the address to register with each provider CallbackUrl *string `json:"callbackUrl,omitempty"` // MagicLink Email a one-time sign-in link and code MagicLink bool `json:"magicLink"` // Oauth2 Sign-in providers; saving replaces the list (leave it out to keep it) Oauth2 []OAuthProviderSettings `json:"oauth2"` } // Backup defines model for Backup. type Backup struct { Key string `json:"key"` Modified string `json:"modified"` Size int `json:"size"` } // BrandingSettings defines model for BrandingSettings. type BrandingSettings struct { AccentColor string `json:"accentColor"` AppName string `json:"appName"` // Logo data:image/(png|jpeg|webp|svg+xml);base64,..., at most 256 KB Logo string `json:"logo"` } // Collection defines model for Collection. type Collection struct { CanEdit bool `json:"canEdit"` Creator string `json:"creator"` // Exclude Pages taken out by hand Exclude []string `json:"exclude"` Filter DocFilter `json:"filter"` Icon string `json:"icon"` Id string `json:"id"` // Include Pages added by hand Include []string `json:"include"` Name string `json:"name"` // Shared Seen by everyone in the workspace Shared bool `json:"shared"` Updated string `json:"updated"` Workspace string `json:"workspace"` } // CollectionInput Creating needs name; updating changes the fields that are set type CollectionInput struct { Exclude *[]string `json:"exclude,omitempty"` Filter *DocFilter `json:"filter,omitempty"` Icon *string `json:"icon,omitempty"` Include *[]string `json:"include,omitempty"` Name *string `json:"name,omitempty"` Shared *bool `json:"shared,omitempty"` } // Comment defines model for Comment. type Comment struct { // Anchor As sent when the comment was created; null when there was none Anchor *map[string]interface{} `json:"anchor"` Author MemberUser `json:"author"` Body string `json:"body"` CanDelete bool `json:"canDelete"` CanEdit bool `json:"canEdit"` // CanResolve A thread the caller may resolve or reopen CanResolve bool `json:"canResolve"` Created string `json:"created"` // EditedAt Empty when never edited EditedAt string `json:"editedAt"` Id string `json:"id"` Page string `json:"page"` // Parent The thread's first comment for a reply; empty for a thread Parent string `json:"parent"` Quote string `json:"quote"` // Reactions Most used first Reactions []Reaction `json:"reactions"` // ResolvedAt Empty unless the thread is resolved ResolvedAt string `json:"resolvedAt"` ResolvedBy *MemberUser `json:"resolvedBy"` } // CreateInviteRequest defines model for CreateInviteRequest. type CreateInviteRequest struct { Email openapi_types.Email `json:"email"` // Organization Superadmins only; admins always invite into their own Organization *string `json:"organization,omitempty"` // Role Instance role. admin manages their own organization; superadmin manages everything. Role *Role `json:"role,omitempty"` // Workspace Makes this a workspace invite Workspace *string `json:"workspace,omitempty"` WorkspaceRole *WorkspaceRole `json:"workspaceRole,omitempty"` } // CreateUserRequest defines model for CreateUserRequest. type CreateUserRequest struct { Email openapi_types.Email `json:"email"` Name string `json:"name"` // Organization Superadmins only; admins always create in their own Organization *string `json:"organization,omitempty"` Password string `json:"password"` // Role Instance role. admin manages their own organization; superadmin manages everything. Role *Role `json:"role,omitempty"` } // DocFilter defines model for DocFilter. type DocFilter struct { Match DocFilterMatch `json:"match"` Rules []DocRule `json:"rules"` } // DocFilterMatch defines model for DocFilter.Match. type DocFilterMatch string // DocItem defines model for DocItem. type DocItem struct { Created string `json:"created"` // CreatedBy User id CreatedBy string `json:"createdBy"` FullWidth bool `json:"fullWidth"` Icon string `json:"icon"` Id string `json:"id"` IsTemplate bool `json:"isTemplate"` JournalDate string `json:"journalDate"` // LastEditedBy User id LastEditedBy string `json:"lastEditedBy"` Parent string `json:"parent"` Properties map[string]interface{} `json:"properties"` // Role The caller's role on the page Role SpaceRole `json:"role"` Space string `json:"space"` SpaceName string `json:"spaceName"` Tags []string `json:"tags"` Title string `json:"title"` Updated string `json:"updated"` } // DocList defines model for DocList. type DocList struct { Items []DocItem `json:"items"` // People Names of the people the items mention, by user id People map[string]string `json:"people"` } // DocRule defines model for DocRule. type DocRule struct { // Field title, space, tags, created, updated, createdBy, lastEditedBy, template, journal, or "prop:" followed by a property id Field string `json:"field"` Op DocRuleOp `json:"op"` // Value A string, a list of strings (any of them), a number or a boolean, as the op needs Value interface{} `json:"value,omitempty"` } // DocRuleOp defines model for DocRule.Op. type DocRuleOp string // EmailRequest defines model for EmailRequest. type EmailRequest struct { Email openapi_types.Email `json:"email"` } // Error defines model for Error. type Error struct { // Challenge With totp_required; send it to /api/v1/auth/totp/verify Challenge *string `json:"challenge,omitempty"` // Error invalid_json, validation, invalid_credentials, mfa_required, totp_required (with challenge), invalid_code, unauthorized, forbidden, account_disabled, signup_disabled, domain_not_allowed, invalid_token, invalid, not_found, conflict, internal Error string `json:"error"` Fields *map[string]string `json:"fields,omitempty"` // Message Human-readable explanation Message *string `json:"message,omitempty"` MfaId *string `json:"mfaId,omitempty"` } // Group defines model for Group. type Group struct { Created string `json:"created"` Description string `json:"description"` Id string `json:"id"` Members int `json:"members"` Name string `json:"name"` Workspace string `json:"workspace"` } // GroupRequest defines model for GroupRequest. type GroupRequest struct { Description *string `json:"description,omitempty"` Name *string `json:"name,omitempty"` } // InstanceSettings defines model for InstanceSettings. type InstanceSettings struct { Auth AuthSettings `json:"auth"` Branding BrandingSettings `json:"branding"` Signup SignupSettings `json:"signup"` Smtp SmtpSettings `json:"smtp"` Storage StorageSettings `json:"storage"` } // InstanceSettingsUpdate defines model for InstanceSettingsUpdate. type InstanceSettingsUpdate struct { Auth *AuthSettings `json:"auth,omitempty"` Branding *BrandingSettings `json:"branding,omitempty"` Signup *SignupSettings `json:"signup,omitempty"` Smtp *SmtpSettings `json:"smtp,omitempty"` Storage *StorageSettings `json:"storage,omitempty"` } // Invite defines model for Invite. type Invite struct { Created string `json:"created"` Email string `json:"email"` Expires string `json:"expires"` // Id Empty when status is added Id string `json:"id"` // InvitedBy Inviter's name InvitedBy string `json:"invitedBy"` // Link Only when just created or resent Link *string `json:"link,omitempty"` // Mailed The email was handed to the mail server Mailed bool `json:"mailed"` Organization string `json:"organization"` OrganizationName string `json:"organizationName"` // Role Instance role. admin manages their own organization; superadmin manages everything. Role Role `json:"role"` Status InviteStatus `json:"status"` Workspace string `json:"workspace"` WorkspaceName string `json:"workspaceName"` // WorkspaceRole A workspace role WorkspaceRole string `json:"workspaceRole"` } // InviteStatus defines model for Invite.Status. type InviteStatus string // InviteInfo defines model for InviteInfo. type InviteInfo struct { Email string `json:"email"` Expires string `json:"expires"` // HasAccount Sign in to accept instead of signing up HasAccount bool `json:"hasAccount"` InvitedBy string `json:"invitedBy"` OrganizationName string `json:"organizationName"` WorkspaceName string `json:"workspaceName"` } // Job defines model for Job. type Job struct { Description string `json:"description"` // Every How often it runs on its own (Go duration); empty when only on demand Every string `json:"every"` Failures int `json:"failures"` LastDurationMs int `json:"lastDurationMs"` LastError string `json:"lastError"` // LastStarted RFC 3339; empty before the first run LastStarted string `json:"lastStarted"` Name string `json:"name"` // Runnable Can be started by hand Runnable bool `json:"runnable"` Running bool `json:"running"` // Runs Runs since the server started Runs int `json:"runs"` } // JournalDay defines model for JournalDay. type JournalDay struct { Date openapi_types.Date `json:"date"` Page string `json:"page"` Title string `json:"title"` } // JournalInfo defines model for JournalInfo. type JournalInfo struct { Days []JournalDay `json:"days"` // Space The caller's journal space; empty until the first journal page Space string `json:"space"` // Template The page new journal pages are filled from; empty for none Template string `json:"template"` } // LabelColor A colour of the editor palette, drawn from the theme; empty for none type LabelColor string // LinkPreview defines model for LinkPreview. type LinkPreview struct { Description string `json:"description"` // Image Address of the page's picture on its own site; empty when it has none Image string `json:"image"` Site string `json:"site"` Title string `json:"title"` Url string `json:"url"` } // LoginRequest defines model for LoginRequest. type LoginRequest struct { Email openapi_types.Email `json:"email"` MfaId *string `json:"mfaId,omitempty"` Password string `json:"password"` } // MemberUser defines model for MemberUser. type MemberUser struct { Email string `json:"email"` Id string `json:"id"` Name string `json:"name"` } // NameRequest defines model for NameRequest. type NameRequest struct { Name string `json:"name"` } // NewApiToken defines model for NewApiToken. type NewApiToken struct { Created string `json:"created"` // Expires Empty when it never expires Expires string `json:"expires"` Id string `json:"id"` LastUsed string `json:"lastUsed"` Name string `json:"name"` // Prefix The token's first characters Prefix string `json:"prefix"` Scope NewApiTokenScope `json:"scope"` // Token The token; it is not shown again Token string `json:"token"` // User In admin listings User *struct { Email string `json:"email"` Id string `json:"id"` Name string `json:"name"` } `json:"user,omitempty"` } // NewApiTokenScope defines model for NewApiToken.Scope. type NewApiTokenScope string // Notification defines model for Notification. type Notification struct { Actor *MemberUser `json:"actor"` // Comment The comment it is about Comment string `json:"comment"` Created string `json:"created"` Excerpt string `json:"excerpt"` Id string `json:"id"` // Page Null when the page is gone or the caller lost access to it Page *PageRef `json:"page"` Read bool `json:"read"` Type NotificationType `json:"type"` Workspace string `json:"workspace"` } // NotificationList defines model for NotificationList. type NotificationList struct { Items []Notification `json:"items"` Unread int `json:"unread"` } // NotificationSettings defines model for NotificationSettings. type NotificationSettings struct { // Email Unread notifications by email every few minutes Email NotificationSettingsEmail `json:"email"` // EmailTypes The notification types the email digest includes (the others only reach the inbox). Always sent back; leave it out when saving to keep it as it is. EmailTypes *[]NotificationType `json:"emailTypes,omitempty"` } // NotificationSettingsEmail Unread notifications by email every few minutes type NotificationSettingsEmail string // NotificationType defines model for NotificationType. type NotificationType string // OAuthProviderSettings defines model for OAuthProviderSettings. type OAuthProviderSettings struct { // AuthUrl OpenID Connect only AuthUrl string `json:"authUrl"` ClientId string `json:"clientId"` // ClientSecret Write-only; leave out to keep the stored one ClientSecret *string `json:"clientSecret,omitempty"` DisplayName string `json:"displayName"` Name OAuthProviderSettingsName `json:"name"` // TokenUrl OpenID Connect only TokenUrl string `json:"tokenUrl"` // UserInfoUrl OpenID Connect only UserInfoUrl string `json:"userInfoUrl"` } // OAuthProviderSettingsName defines model for OAuthProviderSettings.Name. type OAuthProviderSettingsName string // OAuthStart defines model for OAuthStart. type OAuthStart struct { State string `json:"state"` Url string `json:"url"` } // Organization defines model for Organization. type Organization struct { Created string `json:"created"` Id string `json:"id"` Members int `json:"members"` Name string `json:"name"` Workspaces int `json:"workspaces"` } // Page defines model for Page. type Page struct { // Ancestors Root first; pages the caller cannot open are left out Ancestors []PageRef `json:"ancestors"` // Archived The page or one of its ancestors is archived (read-only) Archived bool `json:"archived"` // ArchivedAt When the page itself was archived; empty otherwise ArchivedAt string `json:"archivedAt"` Created string `json:"created"` CreatedBy PageUser `json:"createdBy"` // DeletedAt When the page itself was trashed; empty otherwise DeletedAt string `json:"deletedAt"` // Favorite In the caller's favorites Favorite bool `json:"favorite"` // Font The body font for everyone reading the page; empty is the default sans Font PageFont `json:"font"` // FullWidth Shown across the whole window instead of the reading column FullWidth bool `json:"fullWidth"` Icon string `json:"icon"` Id string `json:"id"` // InTrash The page or one of its ancestors is in the trash InTrash bool `json:"inTrash"` // IsTemplate Offered as a template for new pages IsTemplate bool `json:"isTemplate"` // JournalDate The day (YYYY-MM-DD) of a journal page; empty otherwise JournalDate string `json:"journalDate"` LastEditedBy PageUser `json:"lastEditedBy"` Parent string `json:"parent"` // PinnedAt When the page was pinned to its space's home; empty if not PinnedAt string `json:"pinnedAt"` // Properties Custom property values by property id (see Property for their shapes) Properties map[string]interface{} `json:"properties"` // Restricted The page or one of its ancestors is restricted Restricted bool `json:"restricted"` // Role The caller's role on this page Role SpaceRole `json:"role"` Space string `json:"space"` // Tags Tag ids Tags []string `json:"tags"` Title string `json:"title"` Updated string `json:"updated"` Workspace string `json:"workspace"` } // PageAccess defines model for PageAccess. type PageAccess struct { // CanInvite May share with people outside the workspace CanInvite bool `json:"canInvite"` CanManage bool `json:"canManage"` // Grants This page's grants first Grants []PageGrant `json:"grants"` // InheritedFrom The restricted ancestor, when the restriction comes from one InheritedFrom *PageRef `json:"inheritedFrom"` // Invites Pending guest invites for this page (editors only) Invites []PageInvite `json:"invites"` // Restricted The page or an ancestor is restricted; space members then see it only through grants Restricted bool `json:"restricted"` // Role The caller's role on this page Role SpaceRole `json:"role"` } // PageContent defines model for PageContent. type PageContent struct { // Content Tiptap JSON with type "doc"; null for a page that was never edited Content *map[string]interface{} `json:"content"` Updated string `json:"updated"` } // PageFont The body font for everyone reading the page; empty is the default sans type PageFont string // PageGrant defines model for PageGrant. type PageGrant struct { // Email Empty for groups Email string `json:"email"` Id string `json:"id"` // Inherited Granted on an ancestor Inherited bool `json:"inherited"` Name string `json:"name"` // Page Where the grant was made Page PageRef `json:"page"` Role PageGrantRole `json:"role"` Type PageGrantType `json:"type"` } // PageGrantType defines model for PageGrant.Type. type PageGrantType string // PageGrantRole defines model for PageGrantRole. type PageGrantRole string // PageInvite defines model for PageInvite. type PageInvite struct { Email string `json:"email"` Expires string `json:"expires"` Id string `json:"id"` Role PageGrantRole `json:"role"` } // PageItem defines model for PageItem. type PageItem struct { // At When it was favorited At string `json:"at"` Icon string `json:"icon"` Id string `json:"id"` Space string `json:"space"` SpaceName string `json:"spaceName"` Title string `json:"title"` } // PageNode defines model for PageNode. type PageNode struct { Icon string `json:"icon"` Id string `json:"id"` // Parent Parent page id; empty at the top level. In a page tree, a page whose parent the caller cannot open hangs from its nearest visible ancestor. Parent string `json:"parent"` // Position Fractional sort key among siblings Position string `json:"position"` // Restricted This page itself is restricted Restricted bool `json:"restricted"` Title string `json:"title"` Updated string `json:"updated"` } // PageRef defines model for PageRef. type PageRef struct { Icon string `json:"icon"` Id string `json:"id"` Title string `json:"title"` } // PageUser defines model for PageUser. type PageUser struct { Id string `json:"id"` // Name Empty when the account is gone Name string `json:"name"` } // PageVersion defines model for PageVersion. type PageVersion struct { // Author Name (or email) of the last person who edited before it was taken Author string `json:"author"` Created string `json:"created"` Id string `json:"id"` Label string `json:"label"` } // PinnedPage defines model for PinnedPage. type PinnedPage struct { Icon string `json:"icon"` Id string `json:"id"` PinnedAt string `json:"pinnedAt"` Title string `json:"title"` Updated string `json:"updated"` } // Property defines model for Property. type Property struct { Id string `json:"id"` Name string `json:"name"` Options []PropertyOption `json:"options"` Position float32 `json:"position"` // Type What a value looks like: text and link a string, number a number, checkbox a boolean, date "YYYY-MM-DD", select an option id, multi_select a list of option ids, member a list of user ids. Type PropertyType `json:"type"` // Visibility Whether the page's Info panel shows it always, only with a value, or never Visibility PropertyVisibility `json:"visibility"` Workspace string `json:"workspace"` } // PropertyInput Creating needs name and type; updating changes the fields that are set type PropertyInput struct { Name *string `json:"name,omitempty"` Options *[]PropertyOption `json:"options,omitempty"` Position *float32 `json:"position,omitempty"` // Type What a value looks like: text and link a string, number a number, checkbox a boolean, date "YYYY-MM-DD", select an option id, multi_select a list of option ids, member a list of user ids. Type *PropertyType `json:"type,omitempty"` // Visibility Whether the page's Info panel shows it always, only with a value, or never Visibility *PropertyVisibility `json:"visibility,omitempty"` } // PropertyOption defines model for PropertyOption. type PropertyOption struct { // Color A colour of the editor palette, drawn from the theme; empty for none Color LabelColor `json:"color"` // Id Empty when creating; the server picks one Id string `json:"id"` Name string `json:"name"` } // PropertyType What a value looks like: text and link a string, number a number, checkbox a boolean, date "YYYY-MM-DD", select an option id, multi_select a list of option ids, member a list of user ids. type PropertyType string // PropertyVisibility Whether the page's Info panel shows it always, only with a value, or never type PropertyVisibility string // PublicSettings defines model for PublicSettings. type PublicSettings struct { // AccentColor #rrggbb, or empty for the default AccentColor string `json:"accentColor"` AppName string `json:"appName"` // Logo A data URL Logo string `json:"logo"` // MagicLink Sign-in links by email are enabled MagicLink bool `json:"magicLink"` // Signup Self-service signup is open Signup bool `json:"signup"` } // PushDevice defines model for PushDevice. type PushDevice struct { Created string `json:"created"` Id string `json:"id"` Name string `json:"name"` } // Reaction defines model for Reaction. type Reaction struct { Count int `json:"count"` Emoji string `json:"emoji"` Mine bool `json:"mine"` // People Names of the people who reacted People []string `json:"people"` } // Role Instance role. admin manages their own organization; superadmin manages everything. type Role string // SearchHit defines model for SearchHit. type SearchHit struct { // Highlights [start, end) character offsets of matches in snippet Highlights [][]int `json:"highlights"` Icon string `json:"icon"` Id string `json:"id"` // Snippet Plain text around the first match Snippet string `json:"snippet"` Space string `json:"space"` SpaceName string `json:"spaceName"` Title string `json:"title"` Updated string `json:"updated"` } // SearchResult defines model for SearchResult. type SearchResult struct { Items []SearchHit `json:"items"` Total int `json:"total"` } // Session defines model for Session. type Session struct { Token string `json:"token"` User User `json:"user"` } // ShareLink defines model for ShareLink. type ShareLink struct { Created string `json:"created"` IncludeSubpages bool `json:"includeSubpages"` Token string `json:"token"` // Url The link on docwell-web (DOCWELL_WEB_URL/share/) Url string `json:"url"` } // SharePageResult defines model for SharePageResult. type SharePageResult struct { Access PageAccess `json:"access"` // Invite Set when the person was invited as a guest; the grant is made when they accept Invite *Invite `json:"invite"` } // SharedPage defines model for SharedPage. type SharedPage struct { // Content Tiptap JSON; files load from /api/v1/share/{token}/files/{fileId} Content *map[string]interface{} `json:"content"` Icon string `json:"icon"` Id string `json:"id"` // Pages Pages under the shared page Pages []PageNode `json:"pages"` Root PageRef `json:"root"` Title string `json:"title"` Updated string `json:"updated"` } // SignupRequest defines model for SignupRequest. type SignupRequest struct { Email openapi_types.Email `json:"email"` Name string `json:"name"` Password string `json:"password"` } // SignupSettings defines model for SignupSettings. type SignupSettings struct { // Domains Allowed email domains; empty allows all Domains []string `json:"domains"` Enabled bool `json:"enabled"` } // SmtpSettings defines model for SmtpSettings. type SmtpSettings struct { Enabled bool `json:"enabled"` Host string `json:"host"` // Password Leave out to keep the stored password Password *string `json:"password,omitempty"` PasswordSet *bool `json:"passwordSet,omitempty"` Port int `json:"port"` SenderAddress string `json:"senderAddress"` SenderName string `json:"senderName"` Tls bool `json:"tls"` Username string `json:"username"` } // Space defines model for Space. type Space struct { Created string `json:"created"` // DefaultRole Role that workspace members (not guests) get in an open space without an explicit role. DefaultRole SpaceDefaultRole `json:"defaultRole"` Description string `json:"description"` Icon string `json:"icon"` Id string `json:"id"` // Journal A journal space: one person's daily pages, private to them Journal bool `json:"journal"` // Limited The caller cannot open the space itself and sees only pages shared with them Limited bool `json:"limited"` Name string `json:"name"` // Role The caller's space role; empty when they see only pages shared with them Role SpaceCallerRole `json:"role"` Slug string `json:"slug"` // Visibility open - every workspace member gets the default role; private - explicit members only. Visibility SpaceVisibility `json:"visibility"` Workspace string `json:"workspace"` } // SpaceCallerRole The caller's space role; empty when they see only pages shared with them type SpaceCallerRole string // SpaceDefaultRole Role that workspace members (not guests) get in an open space without an explicit role. type SpaceDefaultRole string // SpaceGroup defines model for SpaceGroup. type SpaceGroup struct { Group struct { Id string `json:"id"` Name string `json:"name"` } `json:"group"` Role SpaceRole `json:"role"` } // SpaceMember defines model for SpaceMember. type SpaceMember struct { Role SpaceRole `json:"role"` User struct { Email string `json:"email"` Id string `json:"id"` Name string `json:"name"` } `json:"user"` } // SpaceRole defines model for SpaceRole. type SpaceRole string // SpaceVisibility open - every workspace member gets the default role; private - explicit members only. type SpaceVisibility string // Status defines model for Status. type Status struct { Db *string `json:"db,omitempty"` Status StatusStatus `json:"status"` } // StatusStatus defines model for Status.Status. type StatusStatus string // StorageSettings defines model for StorageSettings. type StorageSettings struct { AccessKey string `json:"accessKey"` Bucket string `json:"bucket"` Endpoint string `json:"endpoint"` ForcePathStyle bool `json:"forcePathStyle"` Region string `json:"region"` // S3 false stores files on docwell-db's disk S3 bool `json:"s3"` // Secret Leave out to keep the stored secret Secret *string `json:"secret,omitempty"` SecretSet *bool `json:"secretSet,omitempty"` } // Tag defines model for Tag. type Tag struct { // Color A colour of the editor palette, drawn from the theme; empty for none Color LabelColor `json:"color"` Id string `json:"id"` Name string `json:"name"` // Pages Live pages with the tag Pages int `json:"pages"` } // TagInput defines model for TagInput. type TagInput struct { // Color A colour of the editor palette, drawn from the theme; empty for none Color *LabelColor `json:"color,omitempty"` Name *string `json:"name,omitempty"` } // Template defines model for Template. type Template struct { Icon string `json:"icon"` Id string `json:"id"` Space string `json:"space"` SpaceName string `json:"spaceName"` Title string `json:"title"` } // TotpSetup defines model for TotpSetup. type TotpSetup struct { // Qr PNG data URL of the QR code Qr string `json:"qr"` // Secret For typing into the app by hand Secret string `json:"secret"` // Url The otpauth:// address Url string `json:"url"` } // TotpStatus defines model for TotpStatus. type TotpStatus struct { Enabled bool `json:"enabled"` RecoveryCodesLeft int `json:"recoveryCodesLeft"` } // TrashedPage defines model for TrashedPage. type TrashedPage struct { DeletedAt string `json:"deletedAt"` Icon string `json:"icon"` Id string `json:"id"` Title string `json:"title"` } // UpdateUserRequest defines model for UpdateUserRequest. type UpdateUserRequest struct { Email *openapi_types.Email `json:"email,omitempty"` Name *string `json:"name,omitempty"` // Organization Superadmins only; empty string detaches Organization *string `json:"organization,omitempty"` Password *string `json:"password,omitempty"` // Role Instance role. admin manages their own organization; superadmin manages everything. Role *Role `json:"role,omitempty"` Status *UpdateUserRequestStatus `json:"status,omitempty"` Verified *bool `json:"verified,omitempty"` } // UpdateUserRequestStatus defines model for UpdateUserRequest.Status. type UpdateUserRequestStatus string // User defines model for User. type User struct { Avatar string `json:"avatar"` Created string `json:"created"` Email openapi_types.Email `json:"email"` Id string `json:"id"` Locale string `json:"locale"` Name string `json:"name"` // Organization Organization id Organization string `json:"organization"` OrganizationName string `json:"organizationName"` // Role Instance role. admin manages their own organization; superadmin manages everything. Role Role `json:"role"` Status UserStatus `json:"status"` Theme string `json:"theme"` // Totp Signs in with an authenticator app too Totp *bool `json:"totp,omitempty"` Verified bool `json:"verified"` } // UserStatus defines model for User.Status. type UserStatus string // UserList defines model for UserList. type UserList struct { Items []User `json:"items"` Page int `json:"page"` PerPage int `json:"perPage"` TotalItems int `json:"totalItems"` } // Version defines model for Version. type Version struct { Name string `json:"name"` Version string `json:"version"` } // WatchState defines model for WatchState. type WatchState struct { Watching bool `json:"watching"` } // Webhook defines model for Webhook. type Webhook struct { Active bool `json:"active"` Created string `json:"created"` Events []WebhookEvent `json:"events"` Id string `json:"id"` Name string `json:"name"` // Secret Only when just created Secret *string `json:"secret,omitempty"` Url string `json:"url"` } // WebhookDelivery defines model for WebhookDelivery. type WebhookDelivery struct { Attempts int `json:"attempts"` Created string `json:"created"` // DeliveryId The payload's id (X-Docwell-Delivery) DeliveryId string `json:"deliveryId"` DurationMs int `json:"durationMs"` Error string `json:"error"` Event string `json:"event"` Id string `json:"id"` ResponseCode int `json:"responseCode"` Status WebhookDeliveryStatus `json:"status"` } // WebhookDeliveryStatus defines model for WebhookDelivery.Status. type WebhookDeliveryStatus string // WebhookEvent defines model for WebhookEvent. type WebhookEvent string // WebhookInput defines model for WebhookInput. type WebhookInput struct { Active *bool `json:"active,omitempty"` // Events Defaults to all ("*") Events *[]WebhookEvent `json:"events,omitempty"` Name *string `json:"name,omitempty"` Url *string `json:"url,omitempty"` } // Workspace defines model for Workspace. type Workspace struct { Created string `json:"created"` Id string `json:"id"` Name string `json:"name"` Organization string `json:"organization"` OrganizationName string `json:"organizationName"` Role WorkspaceRole `json:"role"` Slug string `json:"slug"` } // WorkspaceMember defines model for WorkspaceMember. type WorkspaceMember struct { Role WorkspaceRole `json:"role"` User struct { Email string `json:"email"` Id string `json:"id"` Name string `json:"name"` } `json:"user"` } // WorkspaceRole defines model for WorkspaceRole. type WorkspaceRole string // ListAuditLogParams defines parameters for ListAuditLog. type ListAuditLogParams struct { // Q Matches the action Q *string `form:"q,omitempty" json:"q,omitempty"` Since *string `form:"since,omitempty" json:"since,omitempty"` Until *string `form:"until,omitempty" json:"until,omitempty"` Page *int `form:"page,omitempty" json:"page,omitempty"` PerPage *int `form:"perPage,omitempty" json:"perPage,omitempty"` } // ExportAuditLogParams defines parameters for ExportAuditLog. type ExportAuditLogParams struct { Q *string `form:"q,omitempty" json:"q,omitempty"` Since *string `form:"since,omitempty" json:"since,omitempty"` Until *string `form:"until,omitempty" json:"until,omitempty"` } // SendTestEmailJSONBody defines parameters for SendTestEmail. type SendTestEmailJSONBody struct { To openapi_types.Email `json:"to"` } // AcceptInviteJSONBody defines parameters for AcceptInvite. type AcceptInviteJSONBody struct { Name *string `json:"name,omitempty"` Password *string `json:"password,omitempty"` Token string `json:"token"` } // FinishOAuthJSONBody defines parameters for FinishOAuth. type FinishOAuthJSONBody struct { Code string `json:"code"` State string `json:"state"` } // StartOAuthJSONBody defines parameters for StartOAuth. type StartOAuthJSONBody struct { // Provider A name from AuthMethods.providers Provider string `json:"provider"` // Redirect The web app's /oauth/callback Redirect string `json:"redirect"` } // LoginWithOtpJSONBody defines parameters for LoginWithOtp. type LoginWithOtpJSONBody struct { Code string `json:"code"` MfaId *string `json:"mfaId,omitempty"` OtpId string `json:"otpId"` } // ConfirmPasswordResetJSONBody defines parameters for ConfirmPasswordReset. type ConfirmPasswordResetJSONBody struct { Password string `json:"password"` Token string `json:"token"` } // VerifyTotpJSONBody defines parameters for VerifyTotp. type VerifyTotpJSONBody struct { Challenge string `json:"challenge"` // Code 6 digits from the app Code string `json:"code"` } // ConfirmVerificationJSONBody defines parameters for ConfirmVerification. type ConfirmVerificationJSONBody struct { Token string `json:"token"` } // UpdateCommentJSONBody defines parameters for UpdateComment. type UpdateCommentJSONBody struct { Body string `json:"body"` } // ReactToCommentJSONBody defines parameters for ReactToComment. type ReactToCommentJSONBody struct { Emoji string `json:"emoji"` On bool `json:"on"` } // ResolveCommentJSONBody defines parameters for ResolveComment. type ResolveCommentJSONBody struct { Resolved bool `json:"resolved"` } // DownloadFileParams defines parameters for DownloadFile. type DownloadFileParams struct { Token *string `form:"token,omitempty" json:"token,omitempty"` } // ListInvitesParams defines parameters for ListInvites. type ListInvitesParams struct { Workspace *string `form:"workspace,omitempty" json:"workspace,omitempty"` // Organization Superadmins only Organization *string `form:"organization,omitempty" json:"organization,omitempty"` } // PreviewLinkParams defines parameters for PreviewLink. type PreviewLinkParams struct { Url string `form:"url" json:"url"` } // RegisterDeviceJSONBody defines parameters for RegisterDevice. type RegisterDeviceJSONBody struct { // Auth The app's 16-byte auth secret Auth string `json:"auth"` Endpoint string `json:"endpoint"` // Name e.g. the phone's model Name *string `json:"name,omitempty"` // P256dh The app's P-256 public key P256dh string `json:"p256dh"` } // CreateApiTokenJSONBody defines parameters for CreateApiToken. type CreateApiTokenJSONBody struct { // ExpiresDays 0 never expires ExpiresDays *int `json:"expiresDays,omitempty"` Name string `json:"name"` Scope CreateApiTokenJSONBodyScope `json:"scope"` } // CreateApiTokenJSONBodyScope defines parameters for CreateApiToken. type CreateApiTokenJSONBodyScope string // DisableTotpJSONBody defines parameters for DisableTotp. type DisableTotpJSONBody struct { Code string `json:"code"` } // EnableTotpJSONBody defines parameters for EnableTotp. type EnableTotpJSONBody struct { Code string `json:"code"` } // ListNotificationsParams defines parameters for ListNotifications. type ListNotificationsParams struct { // Unread Only unread ones Unread *bool `form:"unread,omitempty" json:"unread,omitempty"` Limit *int `form:"limit,omitempty" json:"limit,omitempty"` } // MarkNotificationsReadJSONBody defines parameters for MarkNotificationsRead. type MarkNotificationsReadJSONBody struct { All *bool `json:"all,omitempty"` Ids *[]string `json:"ids,omitempty"` } // DeletePageParams defines parameters for DeletePage. type DeletePageParams struct { Permanent *bool `form:"permanent,omitempty" json:"permanent,omitempty"` } // UpdatePageJSONBody defines parameters for UpdatePage. type UpdatePageJSONBody struct { // Font The body font for everyone reading the page; empty is the default sans Font *PageFont `json:"font,omitempty"` // FullWidth Use the whole window instead of the reading column FullWidth *bool `json:"fullWidth,omitempty"` Icon *string `json:"icon,omitempty"` // IsTemplate Offer the page as a template for new pages IsTemplate *bool `json:"isTemplate,omitempty"` // Properties Sets these custom property values by property id; null clears one Properties *map[string]interface{} `json:"properties,omitempty"` // Tags Replaces the page's tags (tag ids) Tags *[]string `json:"tags,omitempty"` Title *string `json:"title,omitempty"` } // SetPageRestrictedJSONBody defines parameters for SetPageRestricted. type SetPageRestrictedJSONBody struct { Restricted bool `json:"restricted"` } // SharePageWithGroupJSONBody defines parameters for SharePageWithGroup. type SharePageWithGroupJSONBody struct { Role PageGrantRole `json:"role"` } // SharePageWithUserJSONBody defines parameters for SharePageWithUser. type SharePageWithUserJSONBody struct { Email openapi_types.Email `json:"email"` Role PageGrantRole `json:"role"` } // ApplyTemplateJSONBody defines parameters for ApplyTemplate. type ApplyTemplateJSONBody struct { // Template A template page of the same workspace Template string `json:"template"` } // UploadAttachmentMultipartBody defines parameters for UploadAttachment. type UploadAttachmentMultipartBody struct { File openapi_types.File `json:"file"` } // CreateCommentJSONBody defines parameters for CreateComment. type CreateCommentJSONBody struct { // Anchor The editor's encoding of the commented range, opaque to the server (threads only) Anchor *map[string]interface{} `json:"anchor,omitempty"` Body string `json:"body"` // Mentions Ids of the people mentioned in body Mentions *[]string `json:"mentions,omitempty"` // Parent The thread to reply to Parent *string `json:"parent,omitempty"` // Quote The commented text (threads only) Quote *string `json:"quote,omitempty"` } // SavePageContentJSONBody defines parameters for SavePageContent. type SavePageContentJSONBody struct { // Content Tiptap JSON with type "doc" Content map[string]interface{} `json:"content"` } // ExportPageParams defines parameters for ExportPage. type ExportPageParams struct { Format *ExportPageParamsFormat `form:"format,omitempty" json:"format,omitempty"` } // ExportPageParamsFormat defines parameters for ExportPage. type ExportPageParamsFormat string // MovePageJSONBody defines parameters for MovePage. type MovePageJSONBody struct { // Index Position among the new parent's other children Index int `json:"index"` // Parent New parent page id; empty for the top level Parent *string `json:"parent,omitempty"` } // SetShareLinkJSONBody defines parameters for SetShareLink. type SetShareLinkJSONBody struct { IncludeSubpages *bool `json:"includeSubpages,omitempty"` } // UpdateSpaceJSONBody defines parameters for UpdateSpace. type UpdateSpaceJSONBody struct { // DefaultRole Role that workspace members (not guests) get in an open space without an explicit role. DefaultRole *SpaceDefaultRole `json:"defaultRole,omitempty"` Description *string `json:"description,omitempty"` Icon *string `json:"icon,omitempty"` Name *string `json:"name,omitempty"` // Visibility open - every workspace member gets the default role; private - explicit members only. Visibility *SpaceVisibility `json:"visibility,omitempty"` } // ExportSpaceParams defines parameters for ExportSpace. type ExportSpaceParams struct { Format *ExportSpaceParamsFormat `form:"format,omitempty" json:"format,omitempty"` } // ExportSpaceParamsFormat defines parameters for ExportSpace. type ExportSpaceParamsFormat string // SetSpaceGroupJSONBody defines parameters for SetSpaceGroup. type SetSpaceGroupJSONBody struct { Group string `json:"group"` Role SpaceRole `json:"role"` } // ImportPagesMultipartBody defines parameters for ImportPages. type ImportPagesMultipartBody struct { File []openapi_types.File `json:"file"` // Parent Parent page id; empty for the top level Parent *string `json:"parent,omitempty"` } // SetSpaceMemberJSONBody defines parameters for SetSpaceMember. type SetSpaceMemberJSONBody struct { Email openapi_types.Email `json:"email"` Role SpaceRole `json:"role"` } // CreatePageJSONBody defines parameters for CreatePage. type CreatePageJSONBody struct { // Index Position among the parent's children; missing appends Index *int `json:"index,omitempty"` // Parent Parent page id; empty or missing for the top level Parent *string `json:"parent,omitempty"` Title *string `json:"title,omitempty"` } // MergeTagJSONBody defines parameters for MergeTag. type MergeTagJSONBody struct { // Into The tag that stays Into string `json:"into"` } // ListUsersParams defines parameters for ListUsers. type ListUsersParams struct { Page *int `form:"page,omitempty" json:"page,omitempty"` PerPage *int `form:"perPage,omitempty" json:"perPage,omitempty"` // Q Search in email and name Q *string `form:"q,omitempty" json:"q,omitempty"` // Organization Superadmin only: an organization id, or 'none' Organization *string `form:"organization,omitempty" json:"organization,omitempty"` } // CreateWorkspaceJSONBody defines parameters for CreateWorkspace. type CreateWorkspaceJSONBody struct { Name string `json:"name"` Organization *string `json:"organization,omitempty"` } // ListDocsParams defines parameters for ListDocs. type ListDocsParams struct { // Space Only pages in this space Space *string `form:"space,omitempty" json:"space,omitempty"` // Tag Only pages with this tag Tag *string `form:"tag,omitempty" json:"tag,omitempty"` // Collection Only the pages of this collection Collection *string `form:"collection,omitempty" json:"collection,omitempty"` // Filter A DocFilter as JSON Filter *string `form:"filter,omitempty" json:"filter,omitempty"` } // GetJournalParams defines parameters for GetJournal. type GetJournalParams struct { From openapi_types.Date `form:"from" json:"from"` To openapi_types.Date `form:"to" json:"to"` } // SetJournalTemplateJSONBody defines parameters for SetJournalTemplate. type SetJournalTemplateJSONBody struct { Template string `json:"template"` } // OpenJournalJSONBody defines parameters for OpenJournal. type OpenJournalJSONBody struct { // Title Title for a new page; the date when empty Title *string `json:"title,omitempty"` } // SetWorkspaceMemberJSONBody defines parameters for SetWorkspaceMember. type SetWorkspaceMemberJSONBody struct { Email openapi_types.Email `json:"email"` Role WorkspaceRole `json:"role"` } // ListPeopleParams defines parameters for ListPeople. type ListPeopleParams struct { Q *string `form:"q,omitempty" json:"q,omitempty"` Limit *int `form:"limit,omitempty" json:"limit,omitempty"` } // ListRecentPagesParams defines parameters for ListRecentPages. type ListRecentPagesParams struct { Limit *int `form:"limit,omitempty" json:"limit,omitempty"` } // SearchPagesParams defines parameters for SearchPages. type SearchPagesParams struct { Q string `form:"q" json:"q"` Limit *int `form:"limit,omitempty" json:"limit,omitempty"` // Space Only pages in this space Space *string `form:"space,omitempty" json:"space,omitempty"` // Tag Only pages with this tag Tag *string `form:"tag,omitempty" json:"tag,omitempty"` // Author Only pages this user created or last edited Author *string `form:"author,omitempty" json:"author,omitempty"` // UpdatedAfter Only pages changed at or after this time (RFC 3339) or day (YYYY-MM-DD) UpdatedAfter *string `form:"updatedAfter,omitempty" json:"updatedAfter,omitempty"` // UpdatedBefore Only pages changed at or before this time (RFC 3339) or the end of this day (YYYY-MM-DD) UpdatedBefore *string `form:"updatedBefore,omitempty" json:"updatedBefore,omitempty"` } // CreateSpaceJSONBody defines parameters for CreateSpace. type CreateSpaceJSONBody struct { Description *string `json:"description,omitempty"` Icon *string `json:"icon,omitempty"` Name string `json:"name"` // Visibility open - every workspace member gets the default role; private - explicit members only. Visibility *SpaceVisibility `json:"visibility,omitempty"` } // UpdateInstanceSettingsJSONRequestBody defines body for UpdateInstanceSettings for application/json ContentType. type UpdateInstanceSettingsJSONRequestBody = InstanceSettingsUpdate // SendTestEmailJSONRequestBody defines body for SendTestEmail for application/json ContentType. type SendTestEmailJSONRequestBody SendTestEmailJSONBody // AcceptInviteJSONRequestBody defines body for AcceptInvite for application/json ContentType. type AcceptInviteJSONRequestBody AcceptInviteJSONBody // LoginJSONRequestBody defines body for Login for application/json ContentType. type LoginJSONRequestBody = LoginRequest // FinishOAuthJSONRequestBody defines body for FinishOAuth for application/json ContentType. type FinishOAuthJSONRequestBody FinishOAuthJSONBody // StartOAuthJSONRequestBody defines body for StartOAuth for application/json ContentType. type StartOAuthJSONRequestBody StartOAuthJSONBody // LoginWithOtpJSONRequestBody defines body for LoginWithOtp for application/json ContentType. type LoginWithOtpJSONRequestBody LoginWithOtpJSONBody // RequestOtpJSONRequestBody defines body for RequestOtp for application/json ContentType. type RequestOtpJSONRequestBody = EmailRequest // ConfirmPasswordResetJSONRequestBody defines body for ConfirmPasswordReset for application/json ContentType. type ConfirmPasswordResetJSONRequestBody ConfirmPasswordResetJSONBody // RequestPasswordResetJSONRequestBody defines body for RequestPasswordReset for application/json ContentType. type RequestPasswordResetJSONRequestBody = EmailRequest // SignupJSONRequestBody defines body for Signup for application/json ContentType. type SignupJSONRequestBody = SignupRequest // VerifyTotpJSONRequestBody defines body for VerifyTotp for application/json ContentType. type VerifyTotpJSONRequestBody VerifyTotpJSONBody // ConfirmVerificationJSONRequestBody defines body for ConfirmVerification for application/json ContentType. type ConfirmVerificationJSONRequestBody ConfirmVerificationJSONBody // RequestVerificationJSONRequestBody defines body for RequestVerification for application/json ContentType. type RequestVerificationJSONRequestBody = EmailRequest // UpdateCollectionJSONRequestBody defines body for UpdateCollection for application/json ContentType. type UpdateCollectionJSONRequestBody = CollectionInput // UpdateCommentJSONRequestBody defines body for UpdateComment for application/json ContentType. type UpdateCommentJSONRequestBody UpdateCommentJSONBody // ReactToCommentJSONRequestBody defines body for ReactToComment for application/json ContentType. type ReactToCommentJSONRequestBody ReactToCommentJSONBody // ResolveCommentJSONRequestBody defines body for ResolveComment for application/json ContentType. type ResolveCommentJSONRequestBody ResolveCommentJSONBody // UpdateGroupJSONRequestBody defines body for UpdateGroup for application/json ContentType. type UpdateGroupJSONRequestBody = GroupRequest // AddGroupMemberJSONRequestBody defines body for AddGroupMember for application/json ContentType. type AddGroupMemberJSONRequestBody = EmailRequest // CreateInviteJSONRequestBody defines body for CreateInvite for application/json ContentType. type CreateInviteJSONRequestBody = CreateInviteRequest // RegisterDeviceJSONRequestBody defines body for RegisterDevice for application/json ContentType. type RegisterDeviceJSONRequestBody RegisterDeviceJSONBody // CreateApiTokenJSONRequestBody defines body for CreateApiToken for application/json ContentType. type CreateApiTokenJSONRequestBody CreateApiTokenJSONBody // DisableTotpJSONRequestBody defines body for DisableTotp for application/json ContentType. type DisableTotpJSONRequestBody DisableTotpJSONBody // EnableTotpJSONRequestBody defines body for EnableTotp for application/json ContentType. type EnableTotpJSONRequestBody EnableTotpJSONBody // MarkNotificationsReadJSONRequestBody defines body for MarkNotificationsRead for application/json ContentType. type MarkNotificationsReadJSONRequestBody MarkNotificationsReadJSONBody // SetNotificationSettingsJSONRequestBody defines body for SetNotificationSettings for application/json ContentType. type SetNotificationSettingsJSONRequestBody = NotificationSettings // CreateOrgJSONRequestBody defines body for CreateOrg for application/json ContentType. type CreateOrgJSONRequestBody = NameRequest // RenameOrgJSONRequestBody defines body for RenameOrg for application/json ContentType. type RenameOrgJSONRequestBody = NameRequest // UpdatePageJSONRequestBody defines body for UpdatePage for application/json ContentType. type UpdatePageJSONRequestBody UpdatePageJSONBody // SetPageRestrictedJSONRequestBody defines body for SetPageRestricted for application/json ContentType. type SetPageRestrictedJSONRequestBody SetPageRestrictedJSONBody // SharePageWithGroupJSONRequestBody defines body for SharePageWithGroup for application/json ContentType. type SharePageWithGroupJSONRequestBody SharePageWithGroupJSONBody // SharePageWithUserJSONRequestBody defines body for SharePageWithUser for application/json ContentType. type SharePageWithUserJSONRequestBody SharePageWithUserJSONBody // ApplyTemplateJSONRequestBody defines body for ApplyTemplate for application/json ContentType. type ApplyTemplateJSONRequestBody ApplyTemplateJSONBody // UploadAttachmentMultipartRequestBody defines body for UploadAttachment for multipart/form-data ContentType. type UploadAttachmentMultipartRequestBody UploadAttachmentMultipartBody // CreateCommentJSONRequestBody defines body for CreateComment for application/json ContentType. type CreateCommentJSONRequestBody CreateCommentJSONBody // SavePageContentJSONRequestBody defines body for SavePageContent for application/json ContentType. type SavePageContentJSONRequestBody SavePageContentJSONBody // MovePageJSONRequestBody defines body for MovePage for application/json ContentType. type MovePageJSONRequestBody MovePageJSONBody // SetShareLinkJSONRequestBody defines body for SetShareLink for application/json ContentType. type SetShareLinkJSONRequestBody SetShareLinkJSONBody // SetPageWatchJSONRequestBody defines body for SetPageWatch for application/json ContentType. type SetPageWatchJSONRequestBody = WatchState // UpdatePropertyJSONRequestBody defines body for UpdateProperty for application/json ContentType. type UpdatePropertyJSONRequestBody = PropertyInput // UpdateSpaceJSONRequestBody defines body for UpdateSpace for application/json ContentType. type UpdateSpaceJSONRequestBody UpdateSpaceJSONBody // SetSpaceGroupJSONRequestBody defines body for SetSpaceGroup for application/json ContentType. type SetSpaceGroupJSONRequestBody SetSpaceGroupJSONBody // ImportPagesMultipartRequestBody defines body for ImportPages for multipart/form-data ContentType. type ImportPagesMultipartRequestBody ImportPagesMultipartBody // SetSpaceMemberJSONRequestBody defines body for SetSpaceMember for application/json ContentType. type SetSpaceMemberJSONRequestBody SetSpaceMemberJSONBody // CreatePageJSONRequestBody defines body for CreatePage for application/json ContentType. type CreatePageJSONRequestBody CreatePageJSONBody // UpdateTagJSONRequestBody defines body for UpdateTag for application/json ContentType. type UpdateTagJSONRequestBody = TagInput // MergeTagJSONRequestBody defines body for MergeTag for application/json ContentType. type MergeTagJSONRequestBody MergeTagJSONBody // CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType. type CreateUserJSONRequestBody = CreateUserRequest // UpdateUserJSONRequestBody defines body for UpdateUser for application/json ContentType. type UpdateUserJSONRequestBody = UpdateUserRequest // UpdateWebhookJSONRequestBody defines body for UpdateWebhook for application/json ContentType. type UpdateWebhookJSONRequestBody = WebhookInput // CreateWorkspaceJSONRequestBody defines body for CreateWorkspace for application/json ContentType. type CreateWorkspaceJSONRequestBody CreateWorkspaceJSONBody // RenameWorkspaceJSONRequestBody defines body for RenameWorkspace for application/json ContentType. type RenameWorkspaceJSONRequestBody = NameRequest // CreateCollectionJSONRequestBody defines body for CreateCollection for application/json ContentType. type CreateCollectionJSONRequestBody = CollectionInput // CreateGroupJSONRequestBody defines body for CreateGroup for application/json ContentType. type CreateGroupJSONRequestBody = GroupRequest // SetJournalTemplateJSONRequestBody defines body for SetJournalTemplate for application/json ContentType. type SetJournalTemplateJSONRequestBody SetJournalTemplateJSONBody // OpenJournalJSONRequestBody defines body for OpenJournal for application/json ContentType. type OpenJournalJSONRequestBody OpenJournalJSONBody // SetWorkspaceMemberJSONRequestBody defines body for SetWorkspaceMember for application/json ContentType. type SetWorkspaceMemberJSONRequestBody SetWorkspaceMemberJSONBody // CreatePropertyJSONRequestBody defines body for CreateProperty for application/json ContentType. type CreatePropertyJSONRequestBody = PropertyInput // CreateSpaceJSONRequestBody defines body for CreateSpace for application/json ContentType. type CreateSpaceJSONRequestBody CreateSpaceJSONBody // CreateTagJSONRequestBody defines body for CreateTag for application/json ContentType. type CreateTagJSONRequestBody = TagInput // CreateWebhookJSONRequestBody defines body for CreateWebhook for application/json ContentType. type CreateWebhookJSONRequestBody = WebhookInput