Versions in this module Expand all Collapse all v1 v1.12.8 Aug 5, 2023 v1.0.0 Aug 5, 2023 Changes in this version + type AndCompoundFilter []Filter + func (f AndCompoundFilter) MarshalJSON() ([]byte, error) + type Annotations struct + Bold bool + Code bool + Color Color + Italic bool + Strikethrough bool + Underline bool + type AppendBlockChildrenRequest struct + After BlockID + Children []Block + type AppendBlockChildrenResponse struct + Object ObjectType + Results []Block + func (r *AppendBlockChildrenResponse) UnmarshalJSON(data []byte) error + type Audio struct + Caption []RichText + External *FileObject + File *FileObject + Type FileType + func (i Audio) GetURL() string + type AudioBlock struct + Audio Audio + type AuthenticationClient struct + func (cc *AuthenticationClient) CreateToken(ctx context.Context, request *TokenCreateRequest) (*TokenCreateResponse, error) + type AuthenticationService interface + CreateToken func(ctx context.Context, request *TokenCreateRequest) (*TokenCreateResponse, error) + type BasicBlock struct + Archived bool + CreatedBy *User + CreatedTime *time.Time + HasChildren bool + ID BlockID + LastEditedBy *User + LastEditedTime *time.Time + Object ObjectType + Type BlockType + func (b BasicBlock) GetArchived() bool + func (b BasicBlock) GetCreatedBy() *User + func (b BasicBlock) GetCreatedTime() *time.Time + func (b BasicBlock) GetHasChildren() bool + func (b BasicBlock) GetID() BlockID + func (b BasicBlock) GetLastEditedBy() *User + func (b BasicBlock) GetLastEditedTime() *time.Time + func (b BasicBlock) GetObject() ObjectType + func (b BasicBlock) GetType() BlockType + type Block interface + GetArchived func() bool + GetCreatedBy func() *User + GetCreatedTime func() *time.Time + GetHasChildren func() bool + GetID func() BlockID + GetLastEditedBy func() *User + GetLastEditedTime func() *time.Time + GetObject func() ObjectType + GetType func() BlockType + type BlockClient struct + func (bc *BlockClient) AppendChildren(ctx context.Context, id BlockID, requestBody *AppendBlockChildrenRequest) (*AppendBlockChildrenResponse, error) + func (bc *BlockClient) Delete(ctx context.Context, id BlockID) (Block, error) + func (bc *BlockClient) Get(ctx context.Context, id BlockID) (Block, error) + func (bc *BlockClient) GetChildren(ctx context.Context, id BlockID, pagination *Pagination) (*GetChildrenResponse, error) + func (bc *BlockClient) Update(ctx context.Context, id BlockID, requestBody *BlockUpdateRequest) (Block, error) + type BlockFile struct + Caption []RichText + External *FileObject + File *FileObject + Type FileType + type BlockID string + func (bID BlockID) String() string + type BlockService interface + AppendChildren func(context.Context, BlockID, *AppendBlockChildrenRequest) (*AppendBlockChildrenResponse, error) + Delete func(context.Context, BlockID) (Block, error) + Get func(context.Context, BlockID) (Block, error) + GetChildren func(context.Context, BlockID, *Pagination) (*GetChildrenResponse, error) + Update func(ctx context.Context, id BlockID, request *BlockUpdateRequest) (Block, error) + type BlockType string + const BlockCallout + const BlockQuote + const BlockTypeBookmark + const BlockTypeBreadcrumb + const BlockTypeBulletedListItem + const BlockTypeChildDatabase + const BlockTypeChildPage + const BlockTypeCode + const BlockTypeColumn + const BlockTypeColumnList + const BlockTypeDivider + const BlockTypeEmbed + const BlockTypeEquation + const BlockTypeFile + const BlockTypeHeading1 + const BlockTypeHeading2 + const BlockTypeHeading3 + const BlockTypeImage + const BlockTypeLinkPreview + const BlockTypeLinkToPage + const BlockTypeNumberedListItem + const BlockTypeParagraph + const BlockTypePdf + const BlockTypeSyncedBlock + const BlockTypeTableBlock + const BlockTypeTableOfContents + const BlockTypeTableRowBlock + const BlockTypeTemplate + const BlockTypeToDo + const BlockTypeToggle + const BlockTypeUnsupported + const BlockTypeVideo + func (bt BlockType) String() string + type BlockUpdateRequest struct + Bookmark *Bookmark + BulletedListItem *ListItem + Callout *Callout + Code *Code + Embed *Embed + Equation *Equation + File *BlockFile + Heading1 *Heading + Heading2 *Heading + Heading3 *Heading + Image *Image + NumberedListItem *ListItem + Paragraph *Paragraph + Pdf *Pdf + Quote *Quote + TableRow *TableRow + Template *Template + ToDo *ToDo + Toggle *Toggle + Video *Video + type Blocks []Block + func (b *Blocks) UnmarshalJSON(data []byte) error + type Bookmark struct + Caption []RichText + URL string + type BookmarkBlock struct + Bookmark Bookmark + type Bot struct + Owner Owner + WorkspaceName string + type Breadcrumb struct + type BreadcrumbBlock struct + Breadcrumb Breadcrumb + type BulletedListItemBlock struct + BulletedListItem ListItem + type Callout struct + Children Blocks + Color string + Icon *Icon + RichText []RichText + type CalloutBlock struct + Callout Callout + type CheckboxFilterCondition struct + DoesNotEqual bool + Equals bool + type CheckboxProperty struct + Checkbox bool + ID ObjectID + Type PropertyType + func (p CheckboxProperty) GetType() PropertyType + type CheckboxPropertyConfig struct + Checkbox struct{} + ID ObjectID + Type PropertyConfigType + func (p CheckboxPropertyConfig) GetType() PropertyConfigType + type ChildDatabaseBlock struct + ChildDatabase struct{ ... } + type ChildPageBlock struct + ChildPage struct{ ... } + type Client struct + Authentication AuthenticationService + Block BlockService + Comment CommentService + Database DatabaseService + Page PageService + Search SearchService + Token Token + User UserService + func NewClient(token Token, opts ...ClientOption) *Client + type ClientOption func(*Client) + func WithHTTPClient(client *http.Client) ClientOption + func WithOAuthAppCredentials(id, secret string) ClientOption + func WithRetry(retries int) ClientOption + func WithVersion(version string) ClientOption + type Code struct + Caption []RichText + Language string + RichText []RichText + type CodeBlock struct + Code Code + type Color string + const ColorBlue + const ColorBlueBackground + const ColorBrown + const ColorBrownBackground + const ColorDefault + const ColorDefaultBackground + const ColorGray + const ColorGrayBackground + const ColorGreen + const ColorGreenBackground + const ColorOrange + const ColorOrangeBackground + const ColorPink + const ColorPinkBackground + const ColorPurple + const ColorPurpleBackground + const ColorRed + const ColorRedBackground + const ColorYellow + const ColorYellowBackground + func (c Color) MarshalText() ([]byte, error) + func (c Color) String() string + type Column struct + Children Blocks + type ColumnBlock struct + Column Column + type ColumnList struct + Children Blocks + type ColumnListBlock struct + ColumnList ColumnList + type Comment struct + CreatedBy User + CreatedTime time.Time + DiscussionID DiscussionID + ID ObjectID + LastEditedTime time.Time + Object ObjectType + Parent Parent + RichText []RichText + type CommentClient struct + func (cc *CommentClient) Create(ctx context.Context, requestBody *CommentCreateRequest) (*Comment, error) + func (cc *CommentClient) Get(ctx context.Context, id BlockID, pagination *Pagination) (*CommentQueryResponse, error) + type CommentCreateRequest struct + DiscussionID DiscussionID + Parent Parent + RichText []RichText + type CommentID string + func (cID CommentID) String() string + type CommentQueryResponse struct + HasMore bool + NextCursor Cursor + Object ObjectType + Results []Comment + type CommentService interface + Create func(ctx context.Context, request *CommentCreateRequest) (*Comment, error) + Get func(context.Context, BlockID, *Pagination) (*CommentQueryResponse, error) + type CompoundFilter map[FilterOperator][]PropertyFilter + type Condition string + const ConditionAfter + const ConditionBefore + const ConditionCheckbox + const ConditionContains + const ConditionDate + const ConditionDoesEndsWith + const ConditionDoesIsEmpty + const ConditionDoesNotContain + const ConditionDoesNotEqual + const ConditionDoesStartsWith + const ConditionEquals + const ConditionGreaterThan + const ConditionGreaterThanOrEqualTo + const ConditionLessThan + const ConditionLessThanOrEqualTo + const ConditionNextMonth + const ConditionNextWeek + const ConditionNextYear + const ConditionNumber + const ConditionOnOrAfter + const ConditionOnOrBefore + const ConditionPastMonth + const ConditionPastWeek + const ConditionPastYear + const ConditionText + type CreatedByProperty struct + CreatedBy User + ID ObjectID + Type PropertyType + func (p CreatedByProperty) GetType() PropertyType + type CreatedByPropertyConfig struct + CreatedBy struct{} + ID ObjectID + Type PropertyConfigType + func (p CreatedByPropertyConfig) GetType() PropertyConfigType + type CreatedTimeProperty struct + CreatedTime time.Time + ID ObjectID + Type PropertyType + func (p CreatedTimeProperty) GetType() PropertyType + type CreatedTimePropertyConfig struct + CreatedTime struct{} + ID ObjectID + Type PropertyConfigType + func (p CreatedTimePropertyConfig) GetType() PropertyConfigType + type Cursor string + func (c Cursor) String() string + type Database struct + Archived bool + Cover *Image + CreatedBy User + CreatedTime time.Time + Description []RichText + ID ObjectID + Icon *Icon + IsInline bool + LastEditedBy User + LastEditedTime time.Time + Object ObjectType + Parent Parent + Properties PropertyConfigs + Title []RichText + URL string + func (db *Database) GetObject() ObjectType + type DatabaseClient struct + func (dc *DatabaseClient) Create(ctx context.Context, requestBody *DatabaseCreateRequest) (*Database, error) + func (dc *DatabaseClient) Get(ctx context.Context, id DatabaseID) (*Database, error) + func (dc *DatabaseClient) Query(ctx context.Context, id DatabaseID, requestBody *DatabaseQueryRequest) (*DatabaseQueryResponse, error) + func (dc *DatabaseClient) Update(ctx context.Context, id DatabaseID, requestBody *DatabaseUpdateRequest) (*Database, error) + type DatabaseCreateRequest struct + IsInline bool + Parent Parent + Properties PropertyConfigs + Title []RichText + type DatabaseID string + func (dID DatabaseID) String() string + type DatabaseMention struct + ID ObjectID + type DatabaseQueryRequest struct + Filter Filter + PageSize int + Sorts []SortObject + StartCursor Cursor + func (qr *DatabaseQueryRequest) MarshalJSON() ([]byte, error) + type DatabaseQueryResponse struct + HasMore bool + NextCursor Cursor + Object ObjectType + Results []Page + type DatabaseService interface + Create func(ctx context.Context, request *DatabaseCreateRequest) (*Database, error) + Get func(context.Context, DatabaseID) (*Database, error) + Query func(context.Context, DatabaseID, *DatabaseQueryRequest) (*DatabaseQueryResponse, error) + Update func(context.Context, DatabaseID, *DatabaseUpdateRequest) (*Database, error) + type DatabaseUpdateRequest struct + Properties PropertyConfigs + Title []RichText + type Date time.Time + func (d *Date) String() string + func (d *Date) UnmarshalText(data []byte) error + func (d Date) MarshalText() ([]byte, error) + type DateFilterCondition struct + After *Date + Before *Date + Equals *Date + IsEmpty bool + IsNotEmpty bool + NextMonth *struct{} + NextWeek *struct{} + NextYear *struct{} + OnOrAfter *Date + OnOrBefore *Date + PastMonth *struct{} + PastWeek *struct{} + PastYear *struct{} + type DateObject struct + End *Date + Start *Date + type DateProperty struct + Date *DateObject + ID ObjectID + Type PropertyType + func (p DateProperty) GetType() PropertyType + type DatePropertyConfig struct + Date struct{} + ID ObjectID + Type PropertyConfigType + func (p DatePropertyConfig) GetType() PropertyConfigType + type DiscussionID string + func (dID DiscussionID) String() string + type Divider struct + type DividerBlock struct + Divider Divider + type DualProperty struct + type EmailProperty struct + Email string + ID PropertyID + Type PropertyType + func (p EmailProperty) GetType() PropertyType + type EmailPropertyConfig struct + Email struct{} + ID PropertyID + Type PropertyConfigType + func (p EmailPropertyConfig) GetType() PropertyConfigType + type Embed struct + Caption []RichText + URL string + type EmbedBlock struct + Embed Embed + type Emoji string + type Equation struct + Expression string + type EquationBlock struct + Equation Equation + type Error struct + Code ErrorCode + Message string + Object ObjectType + Status int + func (e *Error) Error() string + type ErrorCode string + type ExternalAccount struct + Key string + Name string + type File struct + External *FileObject + File *FileObject + Name string + Type FileType + type FileBlock struct + File BlockFile + type FileObject struct + ExpiryTime *time.Time + URL string + type FileType string + const FileTypeExternal + const FileTypeFile + type FilesFilterCondition struct + IsEmpty bool + IsNotEmpty bool + type FilesProperty struct + Files []File + ID ObjectID + Type PropertyType + func (p FilesProperty) GetType() PropertyType + type FilesPropertyConfig struct + Files struct{} + ID ObjectID + Type PropertyConfigType + func (p FilesPropertyConfig) GetType() PropertyConfigType + type Filter interface + type FilterOperator string + const FilterOperatorAND + const FilterOperatorOR + type FormatType string + const FormatArgentinePeso + const FormatBath + const FormatCanadianDollar + const FormatChileanPeso + const FormatColombianPeso + const FormatDanishKrone + const FormatDirham + const FormatDollar + const FormatEuro + const FormatForint + const FormatFranc + const FormatHongKongDollar + const FormatKoruna + const FormatKrona + const FormatLeu + const FormatLira + const FormatMexicanPeso + const FormatNewTaiwanDollar + const FormatNewZealandDollar + const FormatNorwegianKrone + const FormatNumber + const FormatNumberWithCommas + const FormatPercent + const FormatPhilippinePeso + const FormatPound + const FormatRand + const FormatReal + const FormatRinggit + const FormatRiyal + const FormatRuble + const FormatRupee + const FormatRupiah + const FormatShekel + const FormatSingaporeDollar + const FormatUruguayanPeso + const FormatWon + const FormatYen + const FormatYuan + const FormatZloty + func (ft FormatType) String() string + type Formula struct + Boolean bool + Date *DateObject + Number float64 + String string + Type FormulaType + type FormulaConfig struct + Expression string + type FormulaFilterCondition struct + Checkbox *CheckboxFilterCondition + Date *DateFilterCondition + Number *NumberFilterCondition + Text *TextFilterCondition + type FormulaProperty struct + Formula Formula + ID ObjectID + Type PropertyType + func (p FormulaProperty) GetType() PropertyType + type FormulaPropertyConfig struct + Formula FormulaConfig + ID ObjectID + Type PropertyConfigType + func (p FormulaPropertyConfig) GetType() PropertyConfigType + type FormulaType string + const FormulaTypeBoolean + const FormulaTypeDate + const FormulaTypeNumber + const FormulaTypeString + type FunctionType string + const FunctionAverage + const FunctionCountAll + const FunctionCountEmpty + const FunctionCountNotEmpty + const FunctionCountUniqueValues + const FunctionCountValues + const FunctionMax + const FunctionMedian + const FunctionMin + const FunctionPercentEmpty + const FunctionPercentNotEmpty + const FunctionRange + const FunctionSum + func (ft FunctionType) String() string + type GetChildrenResponse struct + HasMore bool + NextCursor string + Object ObjectType + Results Blocks + type Heading struct + Children Blocks + Color string + IsToggleable bool + RichText []RichText + type Heading1Block struct + Heading1 Heading + type Heading2Block struct + Heading2 Heading + type Heading3Block struct + Heading3 Heading + type Icon struct + Emoji *Emoji + External *FileObject + File *FileObject + Type FileType + func (i Icon) GetURL() string + type Image struct + Caption []RichText + External *FileObject + File *FileObject + Type FileType + func (i Image) GetURL() string + type ImageBlock struct + Image Image + type LastEditedByProperty struct + ID ObjectID + LastEditedBy User + Type PropertyType + func (p LastEditedByProperty) GetType() PropertyType + type LastEditedByPropertyConfig struct + ID ObjectID + LastEditedBy struct{} + Type PropertyConfigType + func (p LastEditedByPropertyConfig) GetType() PropertyConfigType + type LastEditedTimeProperty struct + ID ObjectID + LastEditedTime time.Time + Type PropertyType + func (p LastEditedTimeProperty) GetType() PropertyType + type LastEditedTimePropertyConfig struct + ID ObjectID + LastEditedTime struct{} + Type PropertyConfigType + func (p LastEditedTimePropertyConfig) GetType() PropertyConfigType + type Link struct + Url string + type LinkPreview struct + URL string + type LinkPreviewBlock struct + LinkPreview LinkPreview + type LinkToPage struct + DatabaseID DatabaseID + PageID PageID + Type BlockType + type LinkToPageBlock struct + LinkToPage LinkToPage + type ListItem struct + Children Blocks + Color string + RichText []RichText + type Mention struct + Database *DatabaseMention + Date *DateObject + Page *PageMention + TemplateMention *TemplateMention + Type MentionType + User *User + type MentionType string + const MentionTypeDatabase + const MentionTypeDate + const MentionTypePage + const MentionTypeTemplateMention + const MentionTypeUser + func (mType MentionType) String() string + type MultiSelectFilterCondition struct + Contains string + DoesNotContain string + IsEmpty bool + IsNotEmpty bool + type MultiSelectProperty struct + ID ObjectID + MultiSelect []Option + Type PropertyType + func (p MultiSelectProperty) GetType() PropertyType + type MultiSelectPropertyConfig struct + ID ObjectID + MultiSelect Select + Type PropertyConfigType + func (p MultiSelectPropertyConfig) GetType() PropertyConfigType + type NumberFilterCondition struct + DoesNotEqual *float64 + Equals *float64 + GreaterThan *float64 + GreaterThanOrEqualTo *float64 + IsEmpty bool + IsNotEmpty bool + LessThan *float64 + LessThanOrEqualTo *float64 + type NumberFormat struct + Format FormatType + type NumberProperty struct + ID PropertyID + Number float64 + Type PropertyType + func (p NumberProperty) GetNum() float64 + func (p NumberProperty) GetType() PropertyType + type NumberPropertyConfig struct + ID ObjectID + Number NumberFormat + Type PropertyConfigType + func (p NumberPropertyConfig) GetType() PropertyConfigType + type NumberedListItemBlock struct + NumberedListItem ListItem + type Object interface + GetObject func() ObjectType + type ObjectID string + func (oID ObjectID) String() string + type ObjectType string + const ObjectTypeBlock + const ObjectTypeComment + const ObjectTypeDatabase + const ObjectTypeError + const ObjectTypeList + const ObjectTypePage + const ObjectTypeText + const ObjectTypeUser + func (ot ObjectType) String() string + type Option struct + Color Color + ID PropertyID + Name string + type OrCompoundFilter []Filter + func (f OrCompoundFilter) MarshalJSON() ([]byte, error) + type Owner struct + Type string + Workspace bool + type Page struct + Archived bool + Cover *Image + CreatedBy User + CreatedTime time.Time + ID ObjectID + Icon *Icon + LastEditedBy User + LastEditedTime time.Time + Object ObjectType + Parent Parent + Properties Properties + PublicURL string + URL string + func (p *Page) GetObject() ObjectType + type PageClient struct + func (pc *PageClient) Create(ctx context.Context, requestBody *PageCreateRequest) (*Page, error) + func (pc *PageClient) Get(ctx context.Context, id PageID) (*Page, error) + func (pc *PageClient) Update(ctx context.Context, id PageID, request *PageUpdateRequest) (*Page, error) + type PageCreateRequest struct + Children []Block + Cover *Image + Icon *Icon + Parent Parent + Properties Properties + type PageID string + func (pID PageID) String() string + type PageMention struct + ID ObjectID + type PageService interface + Create func(context.Context, *PageCreateRequest) (*Page, error) + Get func(context.Context, PageID) (*Page, error) + Update func(context.Context, PageID, *PageUpdateRequest) (*Page, error) + type PageUpdateRequest struct + Archived bool + Cover *Image + Icon *Icon + Properties Properties + type Pagination struct + PageSize int + StartCursor Cursor + func (p *Pagination) ToQuery() map[string]string + type Paragraph struct + Children Blocks + Color string + RichText []RichText + type ParagraphBlock struct + Paragraph Paragraph + type Parent struct + BlockID BlockID + DatabaseID DatabaseID + PageID PageID + Type ParentType + Workspace bool + type ParentType string + const ParentTypeBlockID + const ParentTypeDatabaseID + const ParentTypePageID + const ParentTypeWorkspace + type Pdf struct + Caption []RichText + External *FileObject + File *FileObject + Type FileType + type PdfBlock struct + Pdf Pdf + type PeopleFilterCondition struct + Contains string + DoesNotContain string + IsEmpty bool + IsNotEmpty bool + type PeopleProperty struct + ID ObjectID + People []User + Type PropertyType + func (p PeopleProperty) GetType() PropertyType + type PeoplePropertyConfig struct + ID ObjectID + People struct{} + Type PropertyConfigType + func (p PeoplePropertyConfig) GetType() PropertyConfigType + type Person struct + Email string + type PhoneNumberProperty struct + ID ObjectID + PhoneNumber string + Type PropertyType + func (p PhoneNumberProperty) GetType() PropertyType + type PhoneNumberPropertyConfig struct + ID ObjectID + PhoneNumber struct{} + Type PropertyConfigType + func (p PhoneNumberPropertyConfig) GetType() PropertyConfigType + type Properties map[string]Property + func (p *Properties) UnmarshalJSON(data []byte) error + type Property interface + GetType func() PropertyType + type PropertyArray []Property + func (arr *PropertyArray) UnmarshalJSON(data []byte) error + type PropertyConfig interface + GetType func() PropertyConfigType + type PropertyConfigType string + const PropertyConfigCreatedBy + const PropertyConfigCreatedTime + const PropertyConfigLastEditedBy + const PropertyConfigLastEditedTime + const PropertyConfigStatus + const PropertyConfigTypeCheckbox + const PropertyConfigTypeDate + const PropertyConfigTypeEmail + const PropertyConfigTypeFiles + const PropertyConfigTypeFormula + const PropertyConfigTypeMultiSelect + const PropertyConfigTypeNumber + const PropertyConfigTypePeople + const PropertyConfigTypePhoneNumber + const PropertyConfigTypeRelation + const PropertyConfigTypeRichText + const PropertyConfigTypeRollup + const PropertyConfigTypeSelect + const PropertyConfigTypeTitle + const PropertyConfigTypeURL + const PropertyConfigUniqueID + type PropertyConfigs map[string]PropertyConfig + func (p *PropertyConfigs) UnmarshalJSON(data []byte) error + type PropertyFilter struct + Checkbox *CheckboxFilterCondition + Date *DateFilterCondition + Files *FilesFilterCondition + Formula *FormulaFilterCondition + MultiSelect *MultiSelectFilterCondition + Number *NumberFilterCondition + People *PeopleFilterCondition + Property string + Relation *RelationFilterCondition + RichText *TextFilterCondition + Rollup *RollupFilterCondition + Select *SelectFilterCondition + Status *StatusFilterCondition + type PropertyID string + func (pID PropertyID) String() string + type PropertyType string + const PropertyTypeCheckbox + const PropertyTypeCreatedBy + const PropertyTypeCreatedTime + const PropertyTypeDate + const PropertyTypeEmail + const PropertyTypeFiles + const PropertyTypeFormula + const PropertyTypeLastEditedBy + const PropertyTypeLastEditedTime + const PropertyTypeMultiSelect + const PropertyTypeNumber + const PropertyTypePeople + const PropertyTypePhoneNumber + const PropertyTypeRelation + const PropertyTypeRichText + const PropertyTypeRollup + const PropertyTypeSelect + const PropertyTypeStatus + const PropertyTypeText + const PropertyTypeTitle + const PropertyTypeURL + const PropertyTypeUniqueID + type Quote struct + Children Blocks + Color string + RichText []RichText + type QuoteBlock struct + Quote Quote + type RateLimitedError struct + Message string + func (e *RateLimitedError) Error() string + type Relation struct + ID PageID + type RelationConfig struct + DatabaseID DatabaseID + DualProperty *DualProperty + SingleProperty *SingleProperty + SyncedPropertyID PropertyID + SyncedPropertyName string + Type RelationConfigType + type RelationConfigType string + const RelationDualProperty + const RelationSingleProperty + func (rp RelationConfigType) String() string + type RelationFilterCondition struct + Contains string + DoesNotContain string + IsEmpty bool + IsNotEmpty bool + type RelationObject struct + Database DatabaseID + SyncedPropertyName string + type RelationProperty struct + ID ObjectID + Relation []Relation + Type PropertyType + func (p RelationProperty) GetType() PropertyType + type RelationPropertyConfig struct + Relation RelationConfig + Type PropertyConfigType + func (p RelationPropertyConfig) GetType() PropertyConfigType + type RichText struct + Annotations *Annotations + Equation *Equation + Href string + Mention *Mention + PlainText string + Text *Text + Type ObjectType + type RichTextProperty struct + ID PropertyID + RichText []RichText + Type PropertyType + func (p RichTextProperty) GetType() PropertyType + type RichTextPropertyConfig struct + ID PropertyID + RichText struct{} + Type PropertyConfigType + func (p RichTextPropertyConfig) GetType() PropertyConfigType + type Rollup struct + Array PropertyArray + Date *DateObject + Number float64 + Type RollupType + type RollupConfig struct + Function FunctionType + RelationPropertyID PropertyID + RelationPropertyName string + RollupPropertyID PropertyID + RollupPropertyName string + type RollupFilterCondition struct + Any *RollupSubfilterCondition + Date *DateFilterCondition + Every *RollupSubfilterCondition + None *RollupSubfilterCondition + Number *NumberFilterCondition + type RollupProperty struct + ID ObjectID + Rollup Rollup + Type PropertyType + func (p RollupProperty) GetType() PropertyType + type RollupPropertyConfig struct + ID ObjectID + Rollup RollupConfig + Type PropertyConfigType + func (p RollupPropertyConfig) GetType() PropertyConfigType + type RollupSubfilterCondition struct + Checkbox *CheckboxFilterCondition + Date *DateFilterCondition + Files *FilesFilterCondition + MultiSelect *MultiSelectFilterCondition + Number *NumberFilterCondition + People *PeopleFilterCondition + Relation *RelationFilterCondition + RichText *TextFilterCondition + Select *SelectFilterCondition + type RollupType string + const RollupTypeArray + const RollupTypeDate + const RollupTypeNumber + type SearchClient struct + func (sc *SearchClient) Do(ctx context.Context, request *SearchRequest) (*SearchResponse, error) + type SearchFilter struct + Property string + Value string + type SearchRequest struct + Filter SearchFilter + PageSize int + Query string + Sort *SortObject + StartCursor Cursor + type SearchResponse struct + HasMore bool + NextCursor Cursor + Object ObjectType + Results []Object + func (sr *SearchResponse) UnmarshalJSON(data []byte) error + type SearchService interface + Do func(context.Context, *SearchRequest) (*SearchResponse, error) + type Select struct + Options []Option + type SelectFilterCondition struct + DoesNotEqual string + Equals string + IsEmpty bool + IsNotEmpty bool + type SelectProperty struct + ID ObjectID + Select Option + Type PropertyType + func (p SelectProperty) GetType() PropertyType + type SelectPropertyConfig struct + ID ObjectID + Select Select + Type PropertyConfigType + func (p SelectPropertyConfig) GetType() PropertyConfigType + type SingleProperty struct + type SortObject struct + Direction SortOrder + Property string + Timestamp TimestampType + type SortOrder string + const SortOrderASC + const SortOrderDESC + type Status = Option + type StatusFilterCondition struct + DoesNotEqual string + Equals string + IsEmpty bool + IsNotEmpty bool + type StatusProperty struct + ID ObjectID + Status Status + Type PropertyType + func (p StatusProperty) GetType() PropertyType + type StatusPropertyConfig struct + func (p StatusPropertyConfig) GetType() PropertyConfigType + type Synced struct + Children Blocks + SyncedFrom *SyncedFrom + type SyncedBlock struct + SyncedBlock Synced + type SyncedFrom struct + BlockID BlockID + type Table struct + Children Blocks + HasColumnHeader bool + HasRowHeader bool + TableWidth int + type TableBlock struct + Table Table + type TableOfContents struct + Color string + type TableOfContentsBlock struct + TableOfContents TableOfContents + type TableRow struct + Cells [][]RichText + type TableRowBlock struct + TableRow TableRow + type Template struct + Children Blocks + RichText []RichText + type TemplateBlock struct + Template Template + type TemplateMention struct + TemplateMentionDate string + TemplateMentionUser string + Type TemplateMentionType + type TemplateMentionType string + const TemplateMentionTypeDate + const TemplateMentionTypeUser + func (tMType TemplateMentionType) String() string + type Text struct + Content string + Link *Link + type TextFilterCondition struct + Contains string + DoesNotContain string + DoesNotEqual string + EndsWith string + Equals string + IsEmpty bool + IsNotEmpty bool + StartsWith string + type TextProperty struct + ID PropertyID + Text []RichText + Type PropertyType + func (p TextProperty) GetType() PropertyType + type TimestampFilter struct + CreatedTime *DateFilterCondition + LastEditedTime *DateFilterCondition + Timestamp TimestampType + type TimestampType string + const TimestampCreated + const TimestampLastEdited + type TitleProperty struct + ID PropertyID + Title []RichText + Type PropertyType + func (p TitleProperty) GetType() PropertyType + type TitlePropertyConfig struct + ID PropertyID + Title struct{} + Type PropertyConfigType + func (p TitlePropertyConfig) GetType() PropertyConfigType + type ToDo struct + Checked bool + Children Blocks + Color string + RichText []RichText + type ToDoBlock struct + ToDo ToDo + type Toggle struct + Children Blocks + Color string + RichText []RichText + type ToggleBlock struct + Toggle Toggle + type Token string + func (it Token) String() string + type TokenCreateRequest struct + Code string + ExternalAccount ExternalAccount + GrantType string + RedirectUri string + type TokenCreateResponse struct + AccessToken string + BotId string + DuplicatedTemplateId string + Owner interface{} + WorkspaceIcon string + WorkspaceId string + WorkspaceName string + type URLProperty struct + ID ObjectID + Type PropertyType + URL string + func (p URLProperty) GetType() PropertyType + type URLPropertyConfig struct + ID ObjectID + Type PropertyConfigType + URL struct{} + func (p URLPropertyConfig) GetType() PropertyConfigType + type UniqueID struct + Number int + Prefix *string + func (uID UniqueID) String() string + type UniqueIDProperty struct + ID ObjectID + Type PropertyType + UniqueID UniqueID + func (p UniqueIDProperty) GetType() PropertyType + type UniqueIDPropertyConfig struct + func (i UniqueIDPropertyConfig) GetType() PropertyConfigType + type UnsupportedBlock struct + type User struct + AvatarURL string + Bot *Bot + ID UserID + Name string + Object ObjectType + Person *Person + Type UserType + type UserClient struct + func (uc *UserClient) Get(ctx context.Context, id UserID) (*User, error) + func (uc *UserClient) List(ctx context.Context, pagination *Pagination) (*UsersListResponse, error) + func (uc *UserClient) Me(ctx context.Context) (*User, error) + type UserID string + func (uID UserID) String() string + type UserService interface + Get func(context.Context, UserID) (*User, error) + List func(context.Context, *Pagination) (*UsersListResponse, error) + Me func(context.Context) (*User, error) + type UserType string + const UserTypeBot + const UserTypePerson + type UsersListResponse struct + HasMore bool + NextCursor Cursor + Object ObjectType + Results []User + type Video struct + Caption []RichText + External *FileObject + File *FileObject + Type FileType + type VideoBlock struct + Video Video