// 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 AiMessageRole. const ( AiMessageRoleAssistant AiMessageRole = "assistant" AiMessageRoleUser AiMessageRole = "user" ) // Valid indicates whether the value is a known member of the AiMessageRole enum. func (e AiMessageRole) Valid() bool { switch e { case AiMessageRoleAssistant: return true case AiMessageRoleUser: return true default: return false } } // Defines values for AiProfileInputEffort. const ( AiProfileInputEffortEmpty AiProfileInputEffort = "" AiProfileInputEffortHigh AiProfileInputEffort = "high" AiProfileInputEffortLow AiProfileInputEffort = "low" AiProfileInputEffortMax AiProfileInputEffort = "max" AiProfileInputEffortMedium AiProfileInputEffort = "medium" AiProfileInputEffortXhigh AiProfileInputEffort = "xhigh" ) // Valid indicates whether the value is a known member of the AiProfileInputEffort enum. func (e AiProfileInputEffort) Valid() bool { switch e { case AiProfileInputEffortEmpty: return true case AiProfileInputEffortHigh: return true case AiProfileInputEffortLow: return true case AiProfileInputEffortMax: return true case AiProfileInputEffortMedium: return true case AiProfileInputEffortXhigh: return true default: return false } } // Defines values for AiProviderKind. const ( Anthropic AiProviderKind = "anthropic" Ollama AiProviderKind = "ollama" Openai AiProviderKind = "openai" ) // Valid indicates whether the value is a known member of the AiProviderKind enum. func (e AiProviderKind) Valid() bool { switch e { case Anthropic: return true case Ollama: return true case Openai: return true default: return false } } // Defines values for AiScope. const ( AiScopePage AiScope = "page" AiScopeSpace AiScope = "space" AiScopeWorkspace AiScope = "workspace" ) // Valid indicates whether the value is a known member of the AiScope enum. func (e AiScope) Valid() bool { switch e { case AiScopePage: return true case AiScopeSpace: return true case AiScopeWorkspace: return true default: return false } } // Defines values for AiWriteAction. const ( Continue AiWriteAction = "continue" Custom AiWriteAction = "custom" Fix AiWriteAction = "fix" Longer AiWriteAction = "longer" Rewrite AiWriteAction = "rewrite" Shorter AiWriteAction = "shorter" Summarize AiWriteAction = "summarize" Translate AiWriteAction = "translate" ) // Valid indicates whether the value is a known member of the AiWriteAction enum. func (e AiWriteAction) Valid() bool { switch e { case Continue: return true case Custom: return true case Fix: return true case Longer: return true case Rewrite: return true case Shorter: return true case Summarize: return true case Translate: 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 CalendarAccountKind. const ( CalendarAccountKindCaldav CalendarAccountKind = "caldav" CalendarAccountKindGoogle CalendarAccountKind = "google" CalendarAccountKindIcs CalendarAccountKind = "ics" ) // Valid indicates whether the value is a known member of the CalendarAccountKind enum. func (e CalendarAccountKind) Valid() bool { switch e { case CalendarAccountKindCaldav: return true case CalendarAccountKindGoogle: return true case CalendarAccountKindIcs: return true default: return false } } // Defines values for CalendarAccountInputKind. const ( CalendarAccountInputKindCaldav CalendarAccountInputKind = "caldav" CalendarAccountInputKindIcs CalendarAccountInputKind = "ics" ) // Valid indicates whether the value is a known member of the CalendarAccountInputKind enum. func (e CalendarAccountInputKind) Valid() bool { switch e { case CalendarAccountInputKindCaldav: return true case CalendarAccountInputKindIcs: 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 InviteLinkRole. const ( InviteLinkRoleGuest InviteLinkRole = "guest" InviteLinkRoleMember InviteLinkRole = "member" ) // Valid indicates whether the value is a known member of the InviteLinkRole enum. func (e InviteLinkRole) Valid() bool { switch e { case InviteLinkRoleGuest: return true case InviteLinkRoleMember: return true default: return false } } // Defines values for JoinInfoRole. const ( JoinInfoRoleGuest JoinInfoRole = "guest" JoinInfoRoleMember JoinInfoRole = "member" ) // Valid indicates whether the value is a known member of the JoinInfoRole enum. func (e JoinInfoRole) Valid() bool { switch e { case JoinInfoRoleGuest: return true case JoinInfoRoleMember: return true default: return false } } // Defines values for JoinInfoStatus. const ( JoinInfoStatusDeclined JoinInfoStatus = "declined" JoinInfoStatusEmpty JoinInfoStatus = "" JoinInfoStatusMember JoinInfoStatus = "member" JoinInfoStatusPending JoinInfoStatus = "pending" ) // Valid indicates whether the value is a known member of the JoinInfoStatus enum. func (e JoinInfoStatus) Valid() bool { switch e { case JoinInfoStatusDeclined: return true case JoinInfoStatusEmpty: return true case JoinInfoStatusMember: return true case JoinInfoStatusPending: return true default: return false } } // Defines values for JoinRequestRole. const ( JoinRequestRoleGuest JoinRequestRole = "guest" JoinRequestRoleMember JoinRequestRole = "member" ) // Valid indicates whether the value is a known member of the JoinRequestRole enum. func (e JoinRequestRole) Valid() bool { switch e { case JoinRequestRoleGuest: return true case JoinRequestRoleMember: return true default: return false } } // Defines values for JoinResultStatus. const ( JoinResultStatusMember JoinResultStatus = "member" JoinResultStatusPending JoinResultStatus = "pending" ) // Valid indicates whether the value is a known member of the JoinResultStatus enum. func (e JoinResultStatus) Valid() bool { switch e { case JoinResultStatusMember: return true case JoinResultStatusPending: 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 LinkPreviewState. const ( LinkPreviewStateCanceled LinkPreviewState = "canceled" LinkPreviewStateClosed LinkPreviewState = "closed" LinkPreviewStateDone LinkPreviewState = "done" LinkPreviewStateDraft LinkPreviewState = "draft" LinkPreviewStateMerged LinkPreviewState = "merged" LinkPreviewStateOpen LinkPreviewState = "open" LinkPreviewStateStarted LinkPreviewState = "started" ) // Valid indicates whether the value is a known member of the LinkPreviewState enum. func (e LinkPreviewState) Valid() bool { switch e { case LinkPreviewStateCanceled: return true case LinkPreviewStateClosed: return true case LinkPreviewStateDone: return true case LinkPreviewStateDraft: return true case LinkPreviewStateMerged: return true case LinkPreviewStateOpen: return true case LinkPreviewStateStarted: 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" NotificationTypeJoinApproved NotificationType = "join_approved" NotificationTypeJoinDeclined NotificationType = "join_declined" NotificationTypeJoinRequest NotificationType = "join_request" NotificationTypeMention NotificationType = "mention" NotificationTypeReminder NotificationType = "reminder" NotificationTypeReply NotificationType = "reply" NotificationTypeResolved NotificationType = "resolved" NotificationTypeShare NotificationType = "share" NotificationTypeVerifyExpired NotificationType = "verify_expired" ) // 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 NotificationTypeJoinApproved: return true case NotificationTypeJoinDeclined: return true case NotificationTypeJoinRequest: return true case NotificationTypeMention: return true case NotificationTypeReminder: return true case NotificationTypeReply: return true case NotificationTypeResolved: return true case NotificationTypeShare: return true case NotificationTypeVerifyExpired: return true default: return false } } // Defines values for OAuthProviderSettingsName. const ( OAuthProviderSettingsNameGithub OAuthProviderSettingsName = "github" OAuthProviderSettingsNameGoogle OAuthProviderSettingsName = "google" OAuthProviderSettingsNameMicrosoft OAuthProviderSettingsName = "microsoft" OAuthProviderSettingsNameOidc OAuthProviderSettingsName = "oidc" ) // Valid indicates whether the value is a known member of the OAuthProviderSettingsName enum. func (e OAuthProviderSettingsName) Valid() bool { switch e { case OAuthProviderSettingsNameGithub: return true case OAuthProviderSettingsNameGoogle: return true case OAuthProviderSettingsNameMicrosoft: return true case OAuthProviderSettingsNameOidc: return true default: return false } } // Defines values for OneNoteJobStatus. const ( OneNoteJobStatusDone OneNoteJobStatus = "done" OneNoteJobStatusFailed OneNoteJobStatus = "failed" OneNoteJobStatusRunning OneNoteJobStatus = "running" ) // Valid indicates whether the value is a known member of the OneNoteJobStatus enum. func (e OneNoteJobStatus) Valid() bool { switch e { case OneNoteJobStatusDone: return true case OneNoteJobStatusFailed: return true case OneNoteJobStatusRunning: 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 PageMode. const ( PageModeEdgeless PageMode = "edgeless" PageModePage PageMode = "page" ) // Valid indicates whether the value is a known member of the PageMode enum. func (e PageMode) Valid() bool { switch e { case PageModeEdgeless: return true case PageModePage: 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 SlackIntegrationInputEvents. const ( SlackIntegrationInputEventsCommentCreated SlackIntegrationInputEvents = "comment.created" SlackIntegrationInputEventsCommentResolved SlackIntegrationInputEvents = "comment.resolved" SlackIntegrationInputEventsPageArchived SlackIntegrationInputEvents = "page.archived" SlackIntegrationInputEventsPageCreated SlackIntegrationInputEvents = "page.created" SlackIntegrationInputEventsPageMoved SlackIntegrationInputEvents = "page.moved" SlackIntegrationInputEventsPageRestored SlackIntegrationInputEvents = "page.restored" SlackIntegrationInputEventsPageUnarchived SlackIntegrationInputEvents = "page.unarchived" SlackIntegrationInputEventsPageUpdated SlackIntegrationInputEvents = "page.updated" ) // Valid indicates whether the value is a known member of the SlackIntegrationInputEvents enum. func (e SlackIntegrationInputEvents) Valid() bool { switch e { case SlackIntegrationInputEventsCommentCreated: return true case SlackIntegrationInputEventsCommentResolved: return true case SlackIntegrationInputEventsPageArchived: return true case SlackIntegrationInputEventsPageCreated: return true case SlackIntegrationInputEventsPageMoved: return true case SlackIntegrationInputEventsPageRestored: return true case SlackIntegrationInputEventsPageUnarchived: return true case SlackIntegrationInputEventsPageUpdated: 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 ( SpaceVisibilityOpen SpaceVisibility = "open" SpaceVisibilityPrivate SpaceVisibility = "private" ) // Valid indicates whether the value is a known member of the SpaceVisibility enum. func (e SpaceVisibility) Valid() bool { switch e { case SpaceVisibilityOpen: return true case SpaceVisibilityPrivate: 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 ( WebhookEventAsterisk WebhookEvent = "*" WebhookEventCommentCreated WebhookEvent = "comment.created" WebhookEventCommentResolved WebhookEvent = "comment.resolved" WebhookEventPageArchived WebhookEvent = "page.archived" WebhookEventPageCreated WebhookEvent = "page.created" WebhookEventPageDeleted WebhookEvent = "page.deleted" WebhookEventPageMoved WebhookEvent = "page.moved" WebhookEventPageRestored WebhookEvent = "page.restored" WebhookEventPageTrashed WebhookEvent = "page.trashed" WebhookEventPageUnarchived WebhookEvent = "page.unarchived" WebhookEventPageUpdated WebhookEvent = "page.updated" WebhookEventSpaceCreated WebhookEvent = "space.created" WebhookEventSpaceDeleted WebhookEvent = "space.deleted" ) // Valid indicates whether the value is a known member of the WebhookEvent enum. func (e WebhookEvent) Valid() bool { switch e { case WebhookEventAsterisk: return true case WebhookEventCommentCreated: return true case WebhookEventCommentResolved: return true case WebhookEventPageArchived: return true case WebhookEventPageCreated: return true case WebhookEventPageDeleted: return true case WebhookEventPageMoved: return true case WebhookEventPageRestored: return true case WebhookEventPageTrashed: return true case WebhookEventPageUnarchived: return true case WebhookEventPageUpdated: return true case WebhookEventSpaceCreated: return true case WebhookEventSpaceDeleted: 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 } } // Defines values for SetInviteLinkJSONBodyRole. const ( SetInviteLinkJSONBodyRoleGuest SetInviteLinkJSONBodyRole = "guest" SetInviteLinkJSONBodyRoleMember SetInviteLinkJSONBodyRole = "member" ) // Valid indicates whether the value is a known member of the SetInviteLinkJSONBodyRole enum. func (e SetInviteLinkJSONBodyRole) Valid() bool { switch e { case SetInviteLinkJSONBodyRoleGuest: return true case SetInviteLinkJSONBodyRoleMember: 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 // AiAvailability defines model for AiAvailability. type AiAvailability struct { // CanManage The caller may change the workspace's AI settings CanManage bool `json:"canManage"` // Chat A profile with a chat model is set up and AI is on Chat bool `json:"chat"` // Embeddings The workspace is indexed for retrieval Embeddings bool `json:"embeddings"` // Transcribe A profile can turn audio attachments into text Transcribe bool `json:"transcribe"` } // AiCitation defines model for AiCitation. type AiCitation struct { // Block The cited block (link with #b-) Block *string `json:"block,omitempty"` // File An extra file instead of a page File *string `json:"file,omitempty"` // N The number the answer cites as [n] N int `json:"n"` Page *string `json:"page,omitempty"` Snippet string `json:"snippet"` Title string `json:"title"` } // AiFile defines model for AiFile. type AiFile struct { Chars int `json:"chars"` Created string `json:"created"` Id string `json:"id"` Indexed bool `json:"indexed"` Name string `json:"name"` Size int `json:"size"` } // AiForkInput defines model for AiForkInput. type AiForkInput struct { // Message The last message to copy; empty copies all Message *string `json:"message,omitempty"` } // AiIndexStatus defines model for AiIndexStatus. type AiIndexStatus struct { Chunks int `json:"chunks"` Enabled bool `json:"enabled"` Files int `json:"files"` Indexed int `json:"indexed"` LastError string `json:"lastError"` LastRun string `json:"lastRun"` Model string `json:"model"` // Pages Pages that can be indexed Pages int `json:"pages"` // Profile The profile vectors come from; empty when none has an embedding model Profile string `json:"profile"` Running bool `json:"running"` } // AiInstanceSettings defines model for AiInstanceSettings. type AiInstanceSettings struct { // WorkspaceTokenLimit Tokens one workspace may use through the server's profiles per month; 0 is no cap WorkspaceTokenLimit int `json:"workspaceTokenLimit"` } // AiMessage defines model for AiMessage. type AiMessage struct { Citations *[]AiCitation `json:"citations,omitempty"` // Content Markdown Content string `json:"content"` Created string `json:"created"` // Error Why the answer stopped Error *string `json:"error,omitempty"` Id string `json:"id"` Role AiMessageRole `json:"role"` } // AiMessageRole defines model for AiMessage.Role. type AiMessageRole string // AiProfile defines model for AiProfile. type AiProfile struct { // BaseUrl Empty for the kind's default address BaseUrl string `json:"baseUrl"` ChatModel string `json:"chatModel"` Created string `json:"created"` // Effort Anthropic effort level Effort string `json:"effort"` // EmbedModel Empty when the profile is not used for embeddings EmbedModel string `json:"embedModel"` Enabled bool `json:"enabled"` Id string `json:"id"` // KeySet An API key is stored (keys are never returned) KeySet bool `json:"keySet"` // Kind openai is any OpenAI-compatible API Kind AiProviderKind `json:"kind"` LastError string `json:"lastError"` LastUsed string `json:"lastUsed"` Name string `json:"name"` Position int `json:"position"` // TranscribeModel Speech-to-text model (OpenAI-compatible); empty when unused TranscribeModel string `json:"transcribeModel"` Usage struct { InputTokens int `json:"inputTokens"` OutputTokens int `json:"outputTokens"` Requests int `json:"requests"` } `json:"usage"` // Workspace Empty for an instance default Workspace string `json:"workspace"` } // AiProfileInput Creating needs name and kind; updating changes the fields that are set type AiProfileInput struct { // ApiKey Write-only; an empty string removes the key ApiKey *string `json:"apiKey,omitempty"` BaseUrl *string `json:"baseUrl,omitempty"` ChatModel *string `json:"chatModel,omitempty"` Effort *AiProfileInputEffort `json:"effort,omitempty"` EmbedModel *string `json:"embedModel,omitempty"` Enabled *bool `json:"enabled,omitempty"` // Kind openai is any OpenAI-compatible API Kind *AiProviderKind `json:"kind,omitempty"` Name *string `json:"name,omitempty"` TranscribeModel *string `json:"transcribeModel,omitempty"` } // AiProfileInputEffort defines model for AiProfileInput.Effort. type AiProfileInputEffort string // AiProviderKind openai is any OpenAI-compatible API type AiProviderKind string // AiScope defines model for AiScope. type AiScope string // AiSession defines model for AiSession. type AiSession struct { Created string `json:"created"` Id string `json:"id"` Messages []AiMessage `json:"messages"` Scope AiScope `json:"scope"` // ScopeId The space or page; empty for the workspace ScopeId string `json:"scopeId"` Title string `json:"title"` Updated string `json:"updated"` Workspace string `json:"workspace"` } // AiSessionInput defines model for AiSessionInput. type AiSessionInput struct { Scope *AiScope `json:"scope,omitempty"` ScopeId *string `json:"scopeId,omitempty"` Title *string `json:"title,omitempty"` } // AiSessionSummary defines model for AiSessionSummary. type AiSessionSummary struct { Created string `json:"created"` Id string `json:"id"` Scope AiScope `json:"scope"` // ScopeId The space or page; empty for the workspace ScopeId string `json:"scopeId"` Title string `json:"title"` Updated string `json:"updated"` } // AiSettings defines model for AiSettings. type AiSettings struct { Enabled bool `json:"enabled"` // Ignored Pages (with their subpages) that are neither indexed nor retrieved Ignored []string `json:"ignored"` // Index Embed pages for retrieval (sends every page to the embedding provider) Index bool `json:"index"` // MonthlyTokenLimit Tokens the workspace may use per month; 0 is no cap MonthlyTokenLimit int `json:"monthlyTokenLimit"` // ReadScans Have a document-reading model write out scanned PDFs attached to pages ReadScans bool `json:"readScans"` // UseInstanceProfiles After its own profiles UseInstanceProfiles bool `json:"useInstanceProfiles"` } // AiTestResult defines model for AiTestResult. type AiTestResult struct { // Chat The model's reply Chat string `json:"chat"` Dimensions int `json:"dimensions"` Embeddings string `json:"embeddings"` Error string `json:"error"` LatencyMs int `json:"latencyMs"` Ok bool `json:"ok"` } // AiTranscript defines model for AiTranscript. type AiTranscript struct { Name string `json:"name"` // Summary Markdown; empty when not asked for or when it failed Summary string `json:"summary"` SummaryError *string `json:"summaryError,omitempty"` Text string `json:"text"` } // AiUsage defines model for AiUsage. type AiUsage struct { InputTokens int `json:"inputTokens"` // InstanceLimit The server's cap on instanceTokens; 0 is none InstanceLimit int `json:"instanceLimit"` // InstanceTokens Tokens used through the server's own profiles InstanceTokens int `json:"instanceTokens"` // Limit The workspace's monthly token cap; 0 is none Limit int `json:"limit"` // Month Calendar month in UTC, e.g. 2026-11 Month string `json:"month"` // Name The workspace's name (admin listing) Name *string `json:"name,omitempty"` OutputTokens int `json:"outputTokens"` Requests int `json:"requests"` Workspace string `json:"workspace"` } // AiWriteAction defines model for AiWriteAction. type AiWriteAction string // AiWriteInput defines model for AiWriteInput. type AiWriteInput struct { Action AiWriteAction `json:"action"` // Before Text in front of the selection (continue) Before *string `json:"before,omitempty"` // Instruction What to do (custom) Instruction *string `json:"instruction,omitempty"` // Language Target language (translate) Language *string `json:"language,omitempty"` // Text The selection Text string `json:"text"` } // AnalyticsDay defines model for AnalyticsDay. type AnalyticsDay struct { // Date YYYY-MM-DD (UTC) Date string `json:"date"` Viewers int `json:"viewers"` Views int `json:"views"` } // 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"` } // CalendarAccount defines model for CalendarAccount. type CalendarAccount struct { // Color A colour of the editor palette, drawn from the theme; empty for none Color LabelColor `json:"color"` Created string `json:"created"` // Enabled Whether its events show on journal pages Enabled bool `json:"enabled"` // Events Events the source held then (repeating ones once) Events int `json:"events"` HasPassword bool `json:"hasPassword"` Id string `json:"id"` // Kind google accounts are connected with /calendars/google/connect Kind CalendarAccountKind `json:"kind"` // LastError Why the last read failed; empty when it worked LastError string `json:"lastError"` // LastSync When the source was last read LastSync string `json:"lastSync"` Name string `json:"name"` Url string `json:"url"` Username string `json:"username"` } // CalendarAccountKind google accounts are connected with /calendars/google/connect type CalendarAccountKind string // CalendarAccountInput defines model for CalendarAccountInput. type CalendarAccountInput struct { ClearPassword *bool `json:"clearPassword,omitempty"` // Color A colour of the editor palette, drawn from the theme; empty for none Color *LabelColor `json:"color,omitempty"` Enabled *bool `json:"enabled,omitempty"` Kind *CalendarAccountInputKind `json:"kind,omitempty"` Name *string `json:"name,omitempty"` // Password Empty keeps the stored one Password *string `json:"password,omitempty"` // Url http, https or webcal address Url *string `json:"url,omitempty"` Username *string `json:"username,omitempty"` } // CalendarAccountInputKind defines model for CalendarAccountInput.Kind. type CalendarAccountInputKind string // CalendarEvent defines model for CalendarEvent. type CalendarEvent struct { AllDay bool `json:"allDay"` // Calendar The calendar account's id Calendar string `json:"calendar"` // Color A colour of the editor palette, drawn from the theme; empty for none Color LabelColor `json:"color"` // End Exclusive; a date for all-day events End string `json:"end"` Id string `json:"id"` Location string `json:"location"` // Start RFC 3339 time, or a date (YYYY-MM-DD) for all-day events Start string `json:"start"` Title string `json:"title"` Url string `json:"url"` } // 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"` } // ConnectURL defines model for ConnectURL. type ConnectURL struct { // Url Where to send the browser Url string `json:"url"` } // 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"` } // IdList defines model for IdList. type IdList struct { Ids []string `json:"ids"` } // 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"` } // IntegrationToken defines model for IntegrationToken. type IntegrationToken struct { // Set A token is stored (it is never sent back) Set bool `json:"set"` } // Integrations defines model for Integrations. type Integrations struct { // Google People can connect Google Calendar Google bool `json:"google"` // Microsoft People can import OneNote notebooks Microsoft bool `json:"microsoft"` Readwise bool `json:"readwise"` } // 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"` } // InviteLink defines model for InviteLink. type InviteLink struct { // Approval Joining needs an admin's approval Approval bool `json:"approval"` Created string `json:"created"` // Expires Empty when the link does not expire Expires string `json:"expires"` // Pending Requests waiting for a decision Pending int `json:"pending"` Role InviteLinkRole `json:"role"` Token string `json:"token"` // Url The link on docwell-web (DOCWELL_WEB_URL/join?token=...) Url string `json:"url"` } // InviteLinkRole defines model for InviteLink.Role. type InviteLinkRole string // 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"` } // JoinInfo defines model for JoinInfo. type JoinInfo struct { Approval bool `json:"approval"` OrganizationName string `json:"organizationName"` Role JoinInfoRole `json:"role"` // Status The caller's standing; empty when signed out or not asked yet Status JoinInfoStatus `json:"status"` Workspace string `json:"workspace"` WorkspaceName string `json:"workspaceName"` } // JoinInfoRole defines model for JoinInfo.Role. type JoinInfoRole string // JoinInfoStatus The caller's standing; empty when signed out or not asked yet type JoinInfoStatus string // JoinRequest defines model for JoinRequest. type JoinRequest struct { Created string `json:"created"` Id string `json:"id"` Role JoinRequestRole `json:"role"` User MemberUser `json:"user"` } // JoinRequestRole defines model for JoinRequest.Role. type JoinRequestRole string // JoinResult defines model for JoinResult. type JoinResult struct { Status JoinResultStatus `json:"status"` Workspace string `json:"workspace"` } // JoinResultStatus defines model for JoinResult.Status. type JoinResultStatus string // 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"` // Kind For links read through a service's API (github.issue, github.pull, github.repo, linear.issue, figma.file) Kind *string `json:"kind,omitempty"` // Meta A line of details (acme/app #12 · alice) Meta *string `json:"meta,omitempty"` Site string `json:"site"` // State The state for its colour State *LinkPreviewState `json:"state,omitempty"` // Status The service's word for the item's state (Open, Merged, In Progress) Status *string `json:"status,omitempty"` Title string `json:"title"` Url string `json:"url"` } // LinkPreviewState The state for its colour type LinkPreviewState string // 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 The join_* types are about a workspace and have no page; verify_expired tells the person who verified a page that it ran out 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 The join_* types are about a workspace and have no page; verify_expired tells the person who verified a page that it ran out 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"` } // OneNoteConnection defines model for OneNoteConnection. type OneNoteConnection struct { // Account The Microsoft account signed in Account string `json:"account"` Notebooks []OneNoteNotebook `json:"notebooks"` } // OneNoteJob defines model for OneNoteJob. type OneNoteJob struct { // Created The pages made at the top Created []Page `json:"created"` Error string `json:"error"` Id string `json:"id"` Notebook string `json:"notebook"` // Pages OneNote pages read so far Pages int `json:"pages"` Status OneNoteJobStatus `json:"status"` } // OneNoteJobStatus defines model for OneNoteJob.Status. type OneNoteJobStatus string // OneNoteNotebook defines model for OneNoteNotebook. type OneNoteNotebook struct { Id string `json:"id"` Modified string `json:"modified"` Name string `json:"name"` } // 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"` // DefaultMode The view a page opens in for everyone, its text or the edgeless canvas; "?mode=" in an address overrides it DefaultMode PageMode `json:"defaultMode"` // 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"` // Verification Whether someone vouched for the page; at is empty when nobody has Verification PageVerification `json:"verification"` 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"` } // PageAnalytics defines model for PageAnalytics. type PageAnalytics struct { // Daily One entry per day (UTC), oldest first Daily []AnalyticsDay `json:"daily"` Days int `json:"days"` // LinkViews Opens through a share link LinkViews int `json:"linkViews"` // Recent Who opened the page, most recent first (at most 20) Recent []PageViewer `json:"recent"` // Viewers Different signed-in people Viewers int `json:"viewers"` // Views Opens in the period (repeat opens within 30 minutes count once) Views int `json:"views"` } // 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"` } // PageMode The view a page opens in for everyone, its text or the edgeless canvas; "?mode=" in an address overrides it type PageMode string // 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"` } // PagePreview defines model for PagePreview. type PagePreview struct { Description string `json:"description"` // Site The workspace's name Site string `json:"site"` Title string `json:"title"` } // 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"` } // PageVerification Whether someone vouched for the page; at is empty when nobody has type PageVerification struct { // At When the page was verified; empty if it is not At string `json:"at"` By PageUser `json:"by"` // Expired The verification ran out (until has passed) Expired bool `json:"expired"` // Until When the verification runs out; empty when it does not Until string `json:"until"` } // 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"` } // PageViewer defines model for PageViewer. type PageViewer struct { LastViewed string `json:"lastViewed"` User MemberUser `json:"user"` Views int `json:"views"` } // 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"` } // ReadwiseConnection defines model for ReadwiseConnection. type ReadwiseConnection struct { Books int `json:"books"` Connected bool `json:"connected"` Enabled bool `json:"enabled"` Highlights int `json:"highlights"` LastError string `json:"lastError"` LastSync string `json:"lastSync"` // Parent The "Readwise" page books go under Parent string `json:"parent"` Space string `json:"space"` Workspace string `json:"workspace"` } // ReadwiseInput defines model for ReadwiseInput. type ReadwiseInput struct { Enabled *bool `json:"enabled,omitempty"` Space *string `json:"space,omitempty"` // Token Empty keeps the stored one Token *string `json:"token,omitempty"` } // Role Instance role. admin manages their own organization; superadmin manages everything. type Role string // SearchHit defines model for SearchHit. type SearchHit struct { // File Set when the match is in a file attached to the page (the text of PDFs, Word, HTML and text files is searchable); snippet is from the file File *struct { // Id The attachment (its address is /api/v1/files/) Id string `json:"id"` Name string `json:"name"` } `json:"file,omitempty"` // Highlights [start, end) character offsets of matches in snippet Highlights [][]int `json:"highlights"` Icon string `json:"icon"` // Id The page (also for a record: the page that holds it) Id string `json:"id"` // Record Set when the hit is a database record; open it with the page link plus "#r--" Record *struct { Database string `json:"database"` Row string `json:"row"` Title string `json:"title"` } `json:"record,omitempty"` // Snippet Plain text around the first match Snippet string `json:"snippet"` Space string `json:"space"` SpaceName string `json:"spaceName"` // Title The page's title 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 (with "surface", the edgeless canvas, when it has one); files load from /api/v1/share/{token}/files/{fileId} Content *map[string]interface{} `json:"content"` Icon string `json:"icon"` Id string `json:"id"` // Mode The view a page opens in for everyone, its text or the edgeless canvas; "?mode=" in an address overrides it Mode PageMode `json:"mode"` // 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"` } // SlackIntegration defines model for SlackIntegration. type SlackIntegration struct { // Channel The channel id posts go to; empty for none Channel string `json:"channel"` ChannelName string `json:"channelName"` // CommandsUrl Request URL for the /docwell slash command CommandsUrl string `json:"commandsUrl"` // Connected A bot token is stored Connected bool `json:"connected"` // Events Events posted to the channel Events []string `json:"events"` // EventsUrl Request URL for the Slack app's Event Subscriptions EventsUrl string `json:"eventsUrl"` HasSigningSecret bool `json:"hasSigningSecret"` // LastError The last post that failed; empty when the last one worked LastError string `json:"lastError"` // Manifest A Slack app manifest (JSON) with those URLs and the scopes Docwell needs Manifest string `json:"manifest"` // Search /docwell searches Docwell Search bool `json:"search"` // Team The Slack workspace id the bot belongs to Team string `json:"team"` TeamName string `json:"teamName"` // Unfurl Docwell links posted in Slack get a preview Unfurl bool `json:"unfurl"` } // SlackIntegrationInput defines model for SlackIntegrationInput. type SlackIntegrationInput struct { // BotToken The app's Bot User OAuth Token (xoxb-…); checked with Slack BotToken *string `json:"botToken,omitempty"` // Channel A public channel id or name (#news); empty for none Channel *string `json:"channel,omitempty"` Events *[]SlackIntegrationInputEvents `json:"events,omitempty"` Search *bool `json:"search,omitempty"` // SigningSecret The app's Signing Secret SigningSecret *string `json:"signingSecret,omitempty"` Unfurl *bool `json:"unfurl,omitempty"` } // SlackIntegrationInputEvents defines model for SlackIntegrationInput.Events. type SlackIntegrationInputEvents string // 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"` } // UnusedFile defines model for UnusedFile. type UnusedFile struct { Created string `json:"created"` Id string `json:"id"` Mime string `json:"mime"` Name string `json:"name"` Page string `json:"page"` // PageTitle The page it was uploaded to; empty when the caller cannot open it PageTitle string `json:"pageTitle"` // Size Bytes Size int `json:"size"` Url string `json:"url"` } // UnusedFiles defines model for UnusedFiles. type UnusedFiles struct { Files []UnusedFile `json:"files"` // Size Total bytes Size int `json:"size"` } // 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"` } // VerifyPage defines model for VerifyPage. type VerifyPage struct { // Days How many days the verification lasts; 0 for one that does not run out Days int `json:"days"` } // 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 { // AllowSharing False when public share links are off for the whole workspace AllowSharing bool `json:"allowSharing"` Created string `json:"created"` // DefaultPageMode The view new pages of the workspace open in DefaultPageMode PageMode `json:"defaultPageMode"` Id string `json:"id"` Name string `json:"name"` Organization string `json:"organization"` OrganizationName string `json:"organizationName"` Role WorkspaceRole `json:"role"` Slug string `json:"slug"` // UrlPreview Chat apps may show private pages' titles in link previews UrlPreview bool `json:"urlPreview"` } // WorkspaceIntegrations defines model for WorkspaceIntegrations. type WorkspaceIntegrations struct { Figma IntegrationToken `json:"figma"` Github IntegrationToken `json:"github"` Linear IntegrationToken `json:"linear"` Slack SlackIntegration `json:"slack"` } // 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"` } // AskAiJSONBody defines parameters for AskAi. type AskAiJSONBody struct { Content string `json:"content"` } // 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"` } // ListCalendarEventsParams defines parameters for ListCalendarEvents. type ListCalendarEventsParams struct { From openapi_types.Date `form:"from" json:"from"` // To Inclusive; at most 92 days after from To openapi_types.Date `form:"to" json:"to"` // Tz IANA time zone the days are in (default UTC) Tz *string `form:"tz,omitempty" json:"tz,omitempty"` } // 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"` } // TranscribeFileJSONBody defines parameters for TranscribeFile. type TranscribeFileJSONBody struct { Summarize *bool `json:"summarize,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"` Workspace *string `form:"workspace,omitempty" json:"workspace,omitempty"` } // 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"` } // OauthCallbackParams defines parameters for OauthCallback. type OauthCallbackParams struct { State *string `form:"state,omitempty" json:"state,omitempty"` Code *string `form:"code,omitempty" json:"code,omitempty"` Error *string `form:"error,omitempty" json:"error,omitempty"` } // ConnectOneNoteParams defines parameters for ConnectOneNote. type ConnectOneNoteParams struct { Space string `form:"space" json:"space"` Parent *string `form:"parent,omitempty" json:"parent,omitempty"` } // ImportOneNoteNotebookJSONBody defines parameters for ImportOneNoteNotebook. type ImportOneNoteNotebookJSONBody struct { Notebook string `json:"notebook"` Parent *string `json:"parent,omitempty"` Space string `json:"space"` } // DeletePageParams defines parameters for DeletePage. type DeletePageParams struct { Permanent *bool `form:"permanent,omitempty" json:"permanent,omitempty"` } // UpdatePageJSONBody defines parameters for UpdatePage. type UpdatePageJSONBody struct { // DefaultMode The view a page opens in for everyone, its text or the edgeless canvas; "?mode=" in an address overrides it DefaultMode *PageMode `json:"defaultMode,omitempty"` // 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"` } // GetPageAnalyticsParams defines parameters for GetPageAnalytics. type GetPageAnalyticsParams struct { Days *int `form:"days,omitempty" json:"days,omitempty"` } // 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"` } // GetSharePreviewParams defines parameters for GetSharePreview. type GetSharePreviewParams struct { // Page A page under the shared one Page *string `form:"page,omitempty" json:"page,omitempty"` } // SlackCommandsFormdataBody defines parameters for SlackCommands. type SlackCommandsFormdataBody struct { } // SlackEventsJSONBody defines parameters for SlackEvents. type SlackEventsJSONBody map[string]interface{} // 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"` } // RestoreWorkspaceSnapshotMultipartBody defines parameters for RestoreWorkspaceSnapshot. type RestoreWorkspaceSnapshotMultipartBody struct { File openapi_types.File `json:"file"` // Name The new workspace's name; empty keeps the snapshot's Name *string `json:"name,omitempty"` // Organization Organization id (required for superadmins) Organization *string `json:"organization,omitempty"` } // UpdateWorkspaceJSONBody defines parameters for UpdateWorkspace. type UpdateWorkspaceJSONBody struct { // AllowSharing Off turns every share link of the workspace off until it is on again AllowSharing *bool `json:"allowSharing,omitempty"` // DefaultPageMode The view a page opens in for everyone, its text or the edgeless canvas; "?mode=" in an address overrides it DefaultPageMode *PageMode `json:"defaultPageMode,omitempty"` Name *string `json:"name,omitempty"` // UrlPreview Let chat apps show private pages' titles in link previews UrlPreview *bool `json:"urlPreview,omitempty"` } // AddAiFileMultipartBody defines parameters for AddAiFile. type AddAiFileMultipartBody struct { File openapi_types.File `json:"file"` } // 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"` } // SetIntegrationTokenJSONBody defines parameters for SetIntegrationToken. type SetIntegrationTokenJSONBody struct { Token string `json:"token"` } // SetInviteLinkJSONBody defines parameters for SetInviteLink. type SetInviteLinkJSONBody struct { // Approval Joining needs an admin's approval Approval *bool `json:"approval,omitempty"` // ExpiresInDays Days from now; 0 means the link does not expire ExpiresInDays *int `json:"expiresInDays,omitempty"` // Reset Make a new URL; the old one stops working Reset *bool `json:"reset,omitempty"` // Role Default member Role *SetInviteLinkJSONBodyRole `json:"role,omitempty"` } // SetInviteLinkJSONBodyRole defines parameters for SetInviteLink. type SetInviteLinkJSONBodyRole string // ApproveJoinRequestJSONBody defines parameters for ApproveJoinRequest. type ApproveJoinRequestJSONBody struct { // Role Overrides the link's role Role *WorkspaceRole `json:"role,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"` } // DeleteUnusedFilesJSONBody defines parameters for DeleteUnusedFiles. type DeleteUnusedFilesJSONBody struct { Ids *[]string `json:"ids,omitempty"` } // McpJSONBody defines parameters for Mcp. type McpJSONBody map[string]interface{} // CreateInstanceAiProfileJSONRequestBody defines body for CreateInstanceAiProfile for application/json ContentType. type CreateInstanceAiProfileJSONRequestBody = AiProfileInput // OrderInstanceAiProfilesJSONRequestBody defines body for OrderInstanceAiProfiles for application/json ContentType. type OrderInstanceAiProfilesJSONRequestBody = IdList // SaveInstanceAiSettingsJSONRequestBody defines body for SaveInstanceAiSettings for application/json ContentType. type SaveInstanceAiSettingsJSONRequestBody = AiInstanceSettings // UpdateInstanceSettingsJSONRequestBody defines body for UpdateInstanceSettings for application/json ContentType. type UpdateInstanceSettingsJSONRequestBody = InstanceSettingsUpdate // SendTestEmailJSONRequestBody defines body for SendTestEmail for application/json ContentType. type SendTestEmailJSONRequestBody SendTestEmailJSONBody // UpdateAiProfileJSONRequestBody defines body for UpdateAiProfile for application/json ContentType. type UpdateAiProfileJSONRequestBody = AiProfileInput // UpdateAiSessionJSONRequestBody defines body for UpdateAiSession for application/json ContentType. type UpdateAiSessionJSONRequestBody = AiSessionInput // ForkAiSessionJSONRequestBody defines body for ForkAiSession for application/json ContentType. type ForkAiSessionJSONRequestBody = AiForkInput // AskAiJSONRequestBody defines body for AskAi for application/json ContentType. type AskAiJSONRequestBody AskAiJSONBody // 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 // CreateCalendarJSONRequestBody defines body for CreateCalendar for application/json ContentType. type CreateCalendarJSONRequestBody = CalendarAccountInput // UpdateCalendarJSONRequestBody defines body for UpdateCalendar for application/json ContentType. type UpdateCalendarJSONRequestBody = CalendarAccountInput // 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 // TranscribeFileJSONRequestBody defines body for TranscribeFile for application/json ContentType. type TranscribeFileJSONRequestBody TranscribeFileJSONBody // 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 // ImportOneNoteNotebookJSONRequestBody defines body for ImportOneNoteNotebook for application/json ContentType. type ImportOneNoteNotebookJSONRequestBody ImportOneNoteNotebookJSONBody // 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 // VerifyPageJSONRequestBody defines body for VerifyPage for application/json ContentType. type VerifyPageJSONRequestBody = VerifyPage // SetPageWatchJSONRequestBody defines body for SetPageWatch for application/json ContentType. type SetPageWatchJSONRequestBody = WatchState // UpdatePropertyJSONRequestBody defines body for UpdateProperty for application/json ContentType. type UpdatePropertyJSONRequestBody = PropertyInput // SaveReadwiseJSONRequestBody defines body for SaveReadwise for application/json ContentType. type SaveReadwiseJSONRequestBody = ReadwiseInput // SlackCommandsFormdataRequestBody defines body for SlackCommands for application/x-www-form-urlencoded ContentType. type SlackCommandsFormdataRequestBody SlackCommandsFormdataBody // SlackEventsJSONRequestBody defines body for SlackEvents for application/json ContentType. type SlackEventsJSONRequestBody SlackEventsJSONBody // 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 // RestoreWorkspaceSnapshotMultipartRequestBody defines body for RestoreWorkspaceSnapshot for multipart/form-data ContentType. type RestoreWorkspaceSnapshotMultipartRequestBody RestoreWorkspaceSnapshotMultipartBody // UpdateWorkspaceJSONRequestBody defines body for UpdateWorkspace for application/json ContentType. type UpdateWorkspaceJSONRequestBody UpdateWorkspaceJSONBody // AddAiFileMultipartRequestBody defines body for AddAiFile for multipart/form-data ContentType. type AddAiFileMultipartRequestBody AddAiFileMultipartBody // CreateAiProfileJSONRequestBody defines body for CreateAiProfile for application/json ContentType. type CreateAiProfileJSONRequestBody = AiProfileInput // OrderAiProfilesJSONRequestBody defines body for OrderAiProfiles for application/json ContentType. type OrderAiProfilesJSONRequestBody = IdList // CreateAiSessionJSONRequestBody defines body for CreateAiSession for application/json ContentType. type CreateAiSessionJSONRequestBody = AiSessionInput // SaveAiSettingsJSONRequestBody defines body for SaveAiSettings for application/json ContentType. type SaveAiSettingsJSONRequestBody = AiSettings // AiWriteJSONRequestBody defines body for AiWrite for application/json ContentType. type AiWriteJSONRequestBody = AiWriteInput // CreateCollectionJSONRequestBody defines body for CreateCollection for application/json ContentType. type CreateCollectionJSONRequestBody = CollectionInput // CreateGroupJSONRequestBody defines body for CreateGroup for application/json ContentType. type CreateGroupJSONRequestBody = GroupRequest // SetSlackIntegrationJSONRequestBody defines body for SetSlackIntegration for application/json ContentType. type SetSlackIntegrationJSONRequestBody = SlackIntegrationInput // SetIntegrationTokenJSONRequestBody defines body for SetIntegrationToken for application/json ContentType. type SetIntegrationTokenJSONRequestBody SetIntegrationTokenJSONBody // SetInviteLinkJSONRequestBody defines body for SetInviteLink for application/json ContentType. type SetInviteLinkJSONRequestBody SetInviteLinkJSONBody // ApproveJoinRequestJSONRequestBody defines body for ApproveJoinRequest for application/json ContentType. type ApproveJoinRequestJSONRequestBody ApproveJoinRequestJSONBody // 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 // DeleteUnusedFilesJSONRequestBody defines body for DeleteUnusedFiles for application/json ContentType. type DeleteUnusedFilesJSONRequestBody DeleteUnusedFilesJSONBody // CreateWebhookJSONRequestBody defines body for CreateWebhook for application/json ContentType. type CreateWebhookJSONRequestBody = WebhookInput // McpJSONRequestBody defines body for Mcp for application/json ContentType. type McpJSONRequestBody McpJSONBody