Versions in this module Expand all Collapse all v0 v0.0.14 Jan 4, 2026 v0.0.13 Jan 3, 2026 v0.0.12 Jan 3, 2026 v0.0.11 Jan 3, 2026 v0.0.10 Jan 3, 2026 v0.0.9 Jan 3, 2026 v0.0.8 Dec 31, 2025 v0.0.7 Dec 29, 2025 v0.0.6 Dec 17, 2025 Changes in this version type ContentTypeSettingsDTO + PreviewField string v0.0.5 Dec 12, 2025 v0.0.4 Dec 8, 2025 v0.0.3 Dec 8, 2025 Changes in this version + const ErrCodeAccessDenied + const ErrCodeAppContextMissing + const ErrCodeCircularComponentRef + const ErrCodeCircularRelation + const ErrCodeComponentSchemaExists + const ErrCodeComponentSchemaInUse + const ErrCodeComponentSchemaNotFound + const ErrCodeContentTypeExists + const ErrCodeContentTypeHasEntries + const ErrCodeContentTypeNotFound + const ErrCodeEntryAlreadyPublished + const ErrCodeEntryLimitReached + const ErrCodeEntryNotFound + const ErrCodeEntryNotPublished + const ErrCodeEntryValidationFailed + const ErrCodeEnvContextMissing + const ErrCodeFieldExists + const ErrCodeFieldNotFound + const ErrCodeFieldRequired + const ErrCodeInvalidComponentSchemaSlug + const ErrCodeInvalidContentTypeSlug + const ErrCodeInvalidFieldSlug + const ErrCodeInvalidFieldType + const ErrCodeInvalidFilter + const ErrCodeInvalidOperator + const ErrCodeInvalidQuery + const ErrCodeInvalidRelation + const ErrCodeInvalidRequest + const ErrCodeInvalidSort + const ErrCodeRelationConstraint + const ErrCodeRelationNotFound + const ErrCodeRevisionNotFound + const ErrCodeRollbackFailed + const ErrCodeUniqueConstraint + func ErrAccessDenied(reason string) error + func ErrAppContextMissing() error + func ErrCircularComponentRef(path string) error + func ErrCircularRelation(path string) error + func ErrComponentSchemaExists(slug string) error + func ErrComponentSchemaInUse(slug string, usageCount int) error + func ErrComponentSchemaNotFound(identifier string) error + func ErrContentTypeExists(slug string) error + func ErrContentTypeHasEntries(slug string, entryCount int) error + func ErrContentTypeNotFound(identifier string) error + func ErrDatabaseError(message string, cause error) error + func ErrEntryAlreadyPublished() error + func ErrEntryLimitReached(contentType string, limit int) error + func ErrEntryNotFound(identifier string) error + func ErrEntryNotPublished() error + func ErrEntryValidationFailed(errors map[string]string) error + func ErrEntryValidationFailedSingle(field, reason string) error + func ErrEnvContextMissing() error + func ErrFieldExists(slug string) error + func ErrFieldNotFound(identifier string) error + func ErrFieldRequired(fieldName string) error + func ErrInternalError(message string, cause error) error + func ErrInvalidComponentSchemaSlug(slug, reason string) error + func ErrInvalidContentTypeSlug(slug, reason string) error + func ErrInvalidFieldSlug(slug, reason string) error + func ErrInvalidFieldType(fieldType string) error + func ErrInvalidFilter(filter, reason string) error + func ErrInvalidOperator(operator string) error + func ErrInvalidQuery(reason string) error + func ErrInvalidRelation(reason string) error + func ErrInvalidRequest(reason string) error + func ErrInvalidSort(sort, reason string) error + func ErrRelationConstraint(reason string) error + func ErrRelationNotFound(identifier string) error + func ErrRevisionNotFound(entryID string, version int) error + func ErrRevisionsNotEnabled() error + func ErrRollbackFailed(reason string, cause error) error + func ErrTypeRelationNotFound(identifier string) error + func ErrUniqueConstraint(field, value string) error + func GetFieldTypesByCategory() map[string][]FieldTypeInfo + func InternalError(message string, cause error) error + type CMSStatsDTO struct + EntriesByStatus map[string]int + EntriesByType map[string]int + RecentlyUpdated int + ScheduledEntries int + TotalContentTypes int + TotalEntries int + TotalRevisions int + type ChoiceDTO struct + Color string + Disabled bool + Icon string + Label string + Value string + type ComponentSchemaDTO struct + AppID string + CreatedAt time.Time + CreatedBy string + Description string + EnvironmentID string + Fields []NestedFieldDefDTO + ID string + Icon string + Name string + Title string + UpdatedAt time.Time + UpdatedBy string + UsageCount int + type ComponentSchemaSummaryDTO struct + CreatedAt time.Time + Description string + FieldCount int + ID string + Icon string + Name string + Title string + UpdatedAt time.Time + UsageCount int + type ContentEntryDTO struct + AppID string + ContentType *ContentTypeSummaryDTO + ContentTypeID string + CreatedAt time.Time + CreatedBy string + Data map[string]any + EnvironmentID string + ID string + PublishedAt *time.Time + Relations map[string][]string + ScheduledAt *time.Time + Status string + UpdatedAt time.Time + UpdatedBy string + Version int + type ContentEntrySummaryDTO struct + CreatedAt time.Time + Description string + ID string + PublishedAt *time.Time + Status string + Title string + UpdatedAt time.Time + Version int + type ContentFieldDTO struct + ContentTypeID string + CreatedAt time.Time + DefaultValue any + Description string + Hidden bool + ID string + Indexed bool + Localized bool + Name string + Options FieldOptionsDTO + Order int + ReadOnly bool + Required bool + Title string + Type string + Unique bool + UpdatedAt time.Time + type ContentRevisionDTO struct + ChangeReason string + ChangedBy string + CreatedAt time.Time + Data map[string]any + EntryID string + ID string + Status string + Version int + type ContentTypeDTO struct + AppID string + CreatedAt time.Time + CreatedBy string + Description string + EntryCount int + EnvironmentID string + Fields []*ContentFieldDTO + ID string + Icon string + Name string + Settings ContentTypeSettingsDTO + Title string + UpdatedAt time.Time + UpdatedBy string + type ContentTypeSettingsDTO struct + DefaultPermissions []string + DescriptionField string + EnableDrafts bool + EnableRevisions bool + EnableScheduling bool + EnableSearch bool + EnableSoftDelete bool + MaxEntries int + TitleField string + type ContentTypeStatsDTO struct + ArchivedEntries int + ContentTypeID string + DraftEntries int + EntriesByStatus map[string]int + LastEntryAt *time.Time + PublishedEntries int + TotalEntries int + type ContentTypeSummaryDTO struct + CreatedAt time.Time + Description string + EntryCount int + FieldCount int + ID string + Icon string + Name string + Title string + UpdatedAt time.Time + type CreateComponentSchemaRequest struct + Description string + Fields []NestedFieldDefDTO + Icon string + Name string + Title string + type CreateContentTypeRequest struct + Description string + Icon string + Name string + Settings *ContentTypeSettingsDTO + Title string + type CreateEntryRequest struct + Data map[string]any + ScheduledAt *time.Time + Status string + type CreateFieldRequest struct + DefaultValue any + Description string + Hidden bool + Indexed bool + Localized bool + Name string + Options *FieldOptionsDTO + Order int + ReadOnly bool + Required bool + Title string + Type string + Unique bool + type CreateTypeRelationRequest struct + OnDelete string + RelationType string + SourceContentTypeID xid.ID + SourceFieldName string + TargetContentTypeID xid.ID + TargetFieldName string + type DiffType string + const DiffTypeAdded + const DiffTypeModified + const DiffTypeRemoved + type EntryStatus string + const EntryStatusArchived + const EntryStatusDraft + const EntryStatusPublished + const EntryStatusScheduled + func ParseEntryStatus(s string) (EntryStatus, bool) + func (s EntryStatus) IsValid() bool + func (s EntryStatus) String() string + type FieldConditionDTO struct + Field string + Operator string + Value any + type FieldDifference struct + Field string + NewValue any + OldValue any + Type DiffType + type FieldOptionsDTO struct + AllowHTML bool + AllowedMimeTypes []string + Choices []ChoiceDTO + ClearOnDiscriminatorChange bool + ClearWhenHidden bool + Collapsible bool + ComponentRef string + DateFormat string + DefaultExpanded bool + DiscriminatorField string + HideWhen *FieldConditionDTO + Integer bool + InverseField string + Max *float64 + MaxDate *time.Time + MaxFileSize int64 + MaxItems *int + MaxLength int + MaxWords int + Min *float64 + MinDate *time.Time + MinItems *int + MinLength int + NestedFields []NestedFieldDefDTO + OnDelete string + Pattern string + RelatedType string + RelationType string + Schema string + Schemas map[string]OneOfSchemaOptionDTO + ShowWhen *FieldConditionDTO + SourceField string + Step *float64 + type FieldOrderItem struct + FieldID string + Order int + type FieldType string + const FieldTypeArray + const FieldTypeBigInteger + const FieldTypeBoolean + const FieldTypeColor + const FieldTypeDate + const FieldTypeDateTime + const FieldTypeDecimal + const FieldTypeEmail + const FieldTypeEnumeration + const FieldTypeFloat + const FieldTypeInteger + const FieldTypeJSON + const FieldTypeMarkdown + const FieldTypeMedia + const FieldTypeMultiSelect + const FieldTypeNumber + const FieldTypeObject + const FieldTypeOneOf + const FieldTypePassword + const FieldTypePhone + const FieldTypeRelation + const FieldTypeRichText + const FieldTypeSelect + const FieldTypeSlug + const FieldTypeText + const FieldTypeTextarea + const FieldTypeTime + const FieldTypeURL + const FieldTypeUUID + func ParseFieldType(s string) (FieldType, bool) + func (t FieldType) IsArray() bool + func (t FieldType) IsDate() bool + func (t FieldType) IsNested() bool + func (t FieldType) IsNumeric() bool + func (t FieldType) IsObject() bool + func (t FieldType) IsOneOf() bool + func (t FieldType) IsSelectable() bool + func (t FieldType) IsText() bool + func (t FieldType) IsValid() bool + func (t FieldType) RequiresOptions() bool + func (t FieldType) String() string + func (t FieldType) SupportsIndex() bool + func (t FieldType) SupportsSearch() bool + func (t FieldType) SupportsUnique() bool + type FieldTypeInfo struct + Category string + Description string + Icon string + Name string + RequiresOptions bool + SupportsIndex bool + SupportsSearch bool + SupportsUnique bool + Type FieldType + func GetAllFieldTypes() []FieldTypeInfo + func GetFieldTypeInfo(t FieldType) *FieldTypeInfo + type FieldValidator struct + FieldName string + FieldType FieldType + Options *FieldOptionsDTO + Required bool + Unique bool + func NewFieldValidator(name string, fieldType FieldType, required, unique bool, ...) *FieldValidator + func (v *FieldValidator) Validate(value interface{}) *ValidationResult + type ListComponentSchemasQuery struct + Page int + PageSize int + Search string + SortBy string + SortOrder string + type ListComponentSchemasResponse struct + Components []*ComponentSchemaSummaryDTO + Page int + PageSize int + TotalItems int + TotalPages int + type ListContentTypesQuery struct + Page int + PageSize int + Search string + SortBy string + SortOrder string + type ListContentTypesResponse struct + ContentTypes []*ContentTypeSummaryDTO + Page int + PageSize int + TotalItems int + TotalPages int + type ListEntriesQuery struct + Filters map[string]any + Page int + PageSize int + Populate []string + Search string + Select []string + SortBy string + SortOrder string + Status string + type ListEntriesResponse struct + Entries []*ContentEntryDTO + Page int + PageSize int + TotalItems int + TotalPages int + type ListRevisionsQuery struct + Page int + PageSize int + type ListRevisionsResponse struct + Page int + PageSize int + Revisions []*ContentRevisionDTO + TotalItems int + TotalPages int + type NestedFieldDefDTO struct + Description string + Name string + Options *FieldOptionsDTO + Required bool + Title string + Type string + type OnDeleteAction string + const OnDeleteCascade + const OnDeleteNoAction + const OnDeleteRestrict + const OnDeleteSetNull + func (a OnDeleteAction) IsValid() bool + type OneOfSchemaOptionDTO struct + ComponentRef string + Label string + NestedFields []NestedFieldDefDTO + type PaginatedResponse struct + Items []T + Page int + PageSize int + Total int + TotalPages int + type PublishEntryRequest struct + ScheduledAt *time.Time + type RelatedEntryDTO struct + Entry *ContentEntrySummaryDTO + ID string + Order int + type RelationType string + const RelationTypeManyToMany + const RelationTypeManyToOne + const RelationTypeOneToMany + const RelationTypeOneToOne + func (r RelationType) IsValid() bool + func (r RelationType) String() string + type ReorderFieldsRequest struct + FieldOrders []FieldOrderItem + type ReorderRelationsRequest struct + OrderedTargetIDs []xid.ID + type RevisionCompareDTO struct + Differences []FieldDifference + From *RevisionDTO + To *RevisionDTO + type RevisionDTO struct + ChangedBy string + CreatedAt time.Time + Data map[string]any + EntryID string + ID string + Reason string + Version int + type RollbackEntryRequest struct + Reason string + TargetVersion int + type SetRelationRequest struct + TargetID xid.ID + type SetRelationsRequest struct + TargetIDs []xid.ID + type TypeRelationDTO struct + CreatedAt time.Time + ID string + OnDelete string + RelationType string + SourceContentTypeID string + SourceContentTypeName string + SourceContentTypeTitle string + SourceFieldName string + TargetContentTypeID string + TargetContentTypeName string + TargetContentTypeTitle string + TargetFieldName string + type UpdateComponentSchemaRequest struct + Description string + Fields []NestedFieldDefDTO + Icon string + Title string + type UpdateContentTypeRequest struct + Description string + Icon string + Settings *ContentTypeSettingsDTO + Title string + type UpdateEntryRequest struct + ChangeReason string + Data map[string]any + ScheduledAt *time.Time + Status string + type UpdateFieldRequest struct + DefaultValue any + Description string + Hidden *bool + Indexed *bool + Localized *bool + Options *FieldOptionsDTO + Order *int + ReadOnly *bool + Required *bool + Title string + Unique *bool + type UpdateTypeRelationRequest struct + OnDelete *string + TargetFieldName *string + type ValidationError struct + Code string + Field string + Message string + type ValidationResult struct + Errors []ValidationError + Valid bool + func ValidateArrayData(items []map[string]interface{}, fields []NestedFieldDefDTO, ...) *ValidationResult + func ValidateNestedData(data map[string]interface{}, fields []NestedFieldDefDTO) *ValidationResult + func ValidateOneOfWithDiscriminator(data map[string]interface{}, discriminatorValue string, ...) *ValidationResult