Documentation
¶
Overview ¶
Package client is the hand-written wrapper around the generated transport. It owns auth, base URL, and — crucially — error decoding into Problem, which is where the CLI's discoverability value lives. The generated client is treated strictly as a transport layer; wrappers go through Do/DoRaw so the 2xx-check, ProblemDetail decode and `*/*`-quirk are solved in exactly one place.
Index ¶
- Variables
- type APIError
- type AuditFilters
- type Client
- func (c *Client) ActivateGroup(ctx context.Context, id int64) ([]byte, *APIError)
- func (c *Client) AddAccess(ctx context.Context, pageID int64, f api.PageRestrictionAccessForm) ([]byte, *APIError)
- func (c *Client) AddGroupAccess(ctx context.Context, pageID int64, f api.PageRestrictionGroupAccessForm) ([]byte, *APIError)
- func (c *Client) AddGroupMember(ctx context.Context, id int64, f api.AddMemberForm) ([]byte, *APIError)
- func (c *Client) AddWorkItemTransition(ctx context.Context, typeSlug string, f api.WorkItemTransitionCreateForm) ([]byte, *APIError)
- func (c *Client) ArchivePage(ctx context.Context, id int64, f api.ArchivePageForm) ([]byte, *APIError)
- func (c *Client) CascadeArchivePage(ctx context.Context, id int64, f api.CascadeArchiveForm) ([]byte, *APIError)
- func (c *Client) CascadePermanentDeleteFromTrash(ctx context.Context, pageID int64) ([]byte, *APIError)
- func (c *Client) CascadeRestoreFromTrash(ctx context.Context, pageID int64, f api.CascadeRestoreForm) ([]byte, *APIError)
- func (c *Client) CascadeTrashPage(ctx context.Context, id int64, f api.CascadeTrashForm) ([]byte, *APIError)
- func (c *Client) CascadeUnarchivePage(ctx context.Context, pageID int64, f api.CascadeSubtreeForm) ([]byte, *APIError)
- func (c *Client) CommentWorkItem(ctx context.Context, pageID, workItemID int64, f api.WorkItemCommentForm) ([]byte, *APIError)
- func (c *Client) CreateDomainEnum(ctx context.Context, f api.DomainEnumForm) ([]byte, *APIError)
- func (c *Client) CreateExternalUser(ctx context.Context, f api.ExternalUserForm) ([]byte, *APIError)
- func (c *Client) CreateGroup(ctx context.Context, f api.UserGroupForm) ([]byte, *APIError)
- func (c *Client) CreatePage(ctx context.Context, name string, pageTypeID int64, parentID *int64, ...) ([]byte, *APIError)
- func (c *Client) CreatePageForm(ctx context.Context, form api.PageCreateForm) ([]byte, *APIError)
- func (c *Client) CreatePageType(ctx context.Context, f api.PageTypeForm) ([]byte, *APIError)
- func (c *Client) CreatePropertyDescriptor(ctx context.Context, pageTypeID int64, f api.PropertyDescriptorForm) ([]byte, *APIError)
- func (c *Client) CreateRestriction(ctx context.Context, pageID int64) ([]byte, *APIError)
- func (c *Client) CreateWorkItem(ctx context.Context, pageID int64, f api.WorkItemCreateForm) ([]byte, *APIError)
- func (c *Client) CreateWorkItemType(ctx context.Context, f api.WorkItemTypeCreateForm) ([]byte, *APIError)
- func (c *Client) DeactivateGroup(ctx context.Context, id int64) ([]byte, *APIError)
- func (c *Client) DeleteArchivedPage(ctx context.Context, pageID int64) ([]byte, *APIError)
- func (c *Client) DeleteDomainEnum(ctx context.Context, id int64) ([]byte, *APIError)
- func (c *Client) DeleteFileAttachment(ctx context.Context, id int64) ([]byte, *APIError)
- func (c *Client) DeleteImage(ctx context.Context, id int64) ([]byte, *APIError)
- func (c *Client) DeletePage(ctx context.Context, id int64) ([]byte, *APIError)
- func (c *Client) DeletePageType(ctx context.Context, id int64) ([]byte, *APIError)
- func (c *Client) DeletePropertyDescriptor(ctx context.Context, id int64) ([]byte, *APIError)
- func (c *Client) DeleteUser(ctx context.Context, id int64) ([]byte, *APIError)
- func (c *Client) DeleteWorkItem(ctx context.Context, pageID, workItemID int64) ([]byte, *APIError)
- func (c *Client) DeleteWorkItemType(ctx context.Context, slug string) ([]byte, *APIError)
- func (c *Client) DiscardWorkingRevision(ctx context.Context, id int64) ([]byte, *APIError)
- func (c *Client) DoConditional(call LowLevel) (body []byte, notModified bool, apiErr *APIError)
- func (c *Client) DoDownload(call LowLevel) (body io.ReadCloser, notModified bool, apiErr *APIError)
- func (c *Client) DoRaw(call LowLevel) ([]byte, *APIError)
- func (c *Client) DownloadAttachment(ctx context.Context, id int64, ifNoneMatch string) (io.ReadCloser, bool, *APIError)
- func (c *Client) DownloadImage(ctx context.Context, id int64, ifNoneMatch string) (io.ReadCloser, bool, *APIError)
- func (c *Client) EditWorkItem(ctx context.Context, pageID, workItemID int64, f api.WorkItemEditForm) ([]byte, *APIError)
- func (c *Client) GetArchivedPage(ctx context.Context, pageID int64) ([]byte, *APIError)
- func (c *Client) GetAvailablePropertyDescriptors(ctx context.Context, pageTypeID int64) ([]byte, *APIError)
- func (c *Client) GetChainLinkOptions(ctx context.Context, pageTypeID, pageID int64) ([]byte, *APIError)
- func (c *Client) GetContentMacroDocs(ctx context.Context) ([]byte, *APIError)
- func (c *Client) GetContentMacroDocsByName(ctx context.Context, name string) ([]byte, *APIError)
- func (c *Client) GetDomainEnum(ctx context.Context, id int64) ([]byte, *APIError)
- func (c *Client) GetDomainEnumUsages(ctx context.Context, id int64) ([]byte, *APIError)
- func (c *Client) GetGroup(ctx context.Context, id int64) ([]byte, *APIError)
- func (c *Client) GetLandingSettings(ctx context.Context) ([]byte, *APIError)
- func (c *Client) GetPage(ctx context.Context, id int64, expand []string) ([]byte, *APIError)
- func (c *Client) GetPageType(ctx context.Context, id int64, expand []string) ([]byte, *APIError)
- func (c *Client) GetPagesTree(ctx context.Context, ifNoneMatch string) (body []byte, notModified bool, err *APIError)
- func (c *Client) GetPropertyDescriptor(ctx context.Context, id int64) ([]byte, *APIError)
- func (c *Client) GetPublicApiSpec(ctx context.Context) ([]byte, *APIError)
- func (c *Client) GetReleaseNoteByVersion(ctx context.Context, version string) ([]byte, *APIError)
- func (c *Client) GetRevisionSnapshot(ctx context.Context, id int64) ([]byte, *APIError)
- func (c *Client) GetTrashedPage(ctx context.Context, pageID int64) ([]byte, *APIError)
- func (c *Client) GetUser(ctx context.Context, id int64, expand []string) ([]byte, *APIError)
- func (c *Client) GetWorkItem(ctx context.Context, pageID, workItemID int64) ([]byte, *APIError)
- func (c *Client) GetWorkItemTransitions(ctx context.Context, pageID, workItemID int64) ([]byte, *APIError)
- func (c *Client) GetWorkItemType(ctx context.Context, slug string) ([]byte, *APIError)
- func (c *Client) GetWorkflowRoles(ctx context.Context, include string) ([]byte, *APIError)
- func (c *Client) ListArchive(ctx context.Context, page, size int, sort []string) ([]byte, *APIError)
- func (c *Client) ListContentMacros(ctx context.Context, context string) ([]byte, *APIError)
- func (c *Client) ListDomainEnums(ctx context.Context, expand []string) ([]byte, *APIError)
- func (c *Client) ListDraftsQueue(ctx context.Context, page, size int, sort []string) ([]byte, *APIError)
- func (c *Client) ListGroups(ctx context.Context, status string, page, size int, sort []string) ([]byte, *APIError)
- func (c *Client) ListPageImages(ctx context.Context, pageID int64) ([]byte, *APIError)
- func (c *Client) ListPagePropertyValues(ctx context.Context, ids []int64) ([]byte, *APIError)
- func (c *Client) ListPageTypes(ctx context.Context) ([]byte, *APIError)
- func (c *Client) ListPages(ctx context.Context, page, size int, sort []string, pageTypeID *int64) (*api.PagePageListResult, *APIError)
- func (c *Client) ListPublishQueue(ctx context.Context, page, size int, sort []string) ([]byte, *APIError)
- func (c *Client) ListReleaseNotes(ctx context.Context, page, size int) ([]byte, *APIError)
- func (c *Client) ListReviewQueue(ctx context.Context, page, size int, sort []string) ([]byte, *APIError)
- func (c *Client) ListRevisions(ctx context.Context, id int64, compare string) ([]byte, *APIError)
- func (c *Client) ListTrash(ctx context.Context, page, size int, sort []string) ([]byte, *APIError)
- func (c *Client) ListUsers(ctx context.Context, status string, page, size int, sort []string) ([]byte, *APIError)
- func (c *Client) ListWorkItemTypes(ctx context.Context, page, size int, sort []string) ([]byte, *APIError)
- func (c *Client) ListWorkItems(ctx context.Context, pageID int64, typ string) ([]byte, *APIError)
- func (c *Client) Me(ctx context.Context) ([]byte, *APIError)
- func (c *Client) MovePage(ctx context.Context, id int64, f api.PageMoveForm) ([]byte, *APIError)
- func (c *Client) MovePageType(ctx context.Context, id int64, f api.PageTypeMoveForm) ([]byte, *APIError)
- func (c *Client) PatchPage(ctx context.Context, id int64, f api.PagePatchForm) ([]byte, *APIError)
- func (c *Client) PerformTransition(ctx context.Context, id int64, f api.TransitionForm) ([]byte, *APIError)
- func (c *Client) PermanentDeleteUser(ctx context.Context, id int64, f api.PermanentDeleteForm) ([]byte, *APIError)
- func (c *Client) PreviewAdminArchiveCascadeImpact(ctx context.Context, pageID int64, operation string, includeSubtree *bool) ([]byte, *APIError)
- func (c *Client) PreviewAdminTrashCascadeImpact(ctx context.Context, pageID int64, operation string, includeSubtree *bool) ([]byte, *APIError)
- func (c *Client) PreviewMovePageType(ctx context.Context, id int64, f api.PageTypeMovePreviewRequest) ([]byte, *APIError)
- func (c *Client) PreviewPageCascadeImpact(ctx context.Context, id int64, operation string) ([]byte, *APIError)
- func (c *Client) PurgeFromTrash(ctx context.Context, pageID int64) ([]byte, *APIError)
- func (c *Client) ReactivateUser(ctx context.Context, id int64) ([]byte, *APIError)
- func (c *Client) RemoveAccess(ctx context.Context, pageID, accessID int64) ([]byte, *APIError)
- func (c *Client) RemoveGroupAccess(ctx context.Context, pageID, accessID int64) ([]byte, *APIError)
- func (c *Client) RemoveGroupMember(ctx context.Context, id, userID int64) ([]byte, *APIError)
- func (c *Client) RemoveRestriction(ctx context.Context, pageID int64) ([]byte, *APIError)
- func (c *Client) RemoveWorkItemTransition(ctx context.Context, typeSlug string, transitionID int64) ([]byte, *APIError)
- func (c *Client) RestoreFromTrash(ctx context.Context, pageID int64, reason string) ([]byte, *APIError)
- func (c *Client) RestoreVersion(ctx context.Context, id int64, revisionNumber int32) ([]byte, *APIError)
- func (c *Client) ScanMacroUsage(ctx context.Context, macroName string) ([]byte, *APIError)
- func (c *Client) SearchAuditLog(ctx context.Context, f AuditFilters, page, size int, sort []string) ([]byte, *APIError)
- func (c *Client) SearchGroups(ctx context.Context, query string, page, size int, sort []string) ([]byte, *APIError)
- func (c *Client) SearchPages(ctx context.Context, query string, page, size int, allowedPageTypeID *int64) ([]byte, *APIError)
- func (c *Client) SearchUsers(ctx context.Context, query string, page, size int, sort []string) ([]byte, *APIError)
- func (c *Client) SetGroupWorkflowRole(ctx context.Context, groupID int64, f api.WorkflowRoleForm) ([]byte, *APIError)
- func (c *Client) SetUserWorkflowRole(ctx context.Context, userID int64, f api.WorkflowRoleForm) ([]byte, *APIError)
- func (c *Client) SortChildren(ctx context.Context, parentID int64, childIDs []int64) ([]byte, *APIError)
- func (c *Client) SortDisplayColumns(ctx context.Context, descriptorID int64, ids []int64) ([]byte, *APIError)
- func (c *Client) SortPropertyDescriptors(ctx context.Context, pageTypeID int64, ids []int64) ([]byte, *APIError)
- func (c *Client) StartRevision(ctx context.Context, id int64) ([]byte, *APIError)
- func (c *Client) SwapPropertyDescriptors(ctx context.Context, fromID, toID int64) ([]byte, *APIError)
- func (c *Client) TransitionWorkItem(ctx context.Context, pageID, workItemID int64, f api.WorkItemTransitionForm) ([]byte, *APIError)
- func (c *Client) UnarchivePage(ctx context.Context, pageID int64) ([]byte, *APIError)
- func (c *Client) UpdateAccess(ctx context.Context, pageID, accessID int64, f api.PageRestrictionAccessForm) ([]byte, *APIError)
- func (c *Client) UpdateDomainEnum(ctx context.Context, id int64, f api.DomainEnumForm) ([]byte, *APIError)
- func (c *Client) UpdateGroup(ctx context.Context, id int64, f api.UserGroupForm) ([]byte, *APIError)
- func (c *Client) UpdateGroupAccess(ctx context.Context, pageID, accessID int64, ...) ([]byte, *APIError)
- func (c *Client) UpdateLandingSettings(ctx context.Context, f api.LandingSettingsForm) ([]byte, *APIError)
- func (c *Client) UpdatePage(ctx context.Context, id int64, f api.PageEditForm) ([]byte, *APIError)
- func (c *Client) UpdatePageType(ctx context.Context, id int64, f api.PageTypeForm) ([]byte, *APIError)
- func (c *Client) UpdatePropertyDescriptor(ctx context.Context, id int64, f api.PropertyDescriptorForm) ([]byte, *APIError)
- func (c *Client) UpdateUser(ctx context.Context, id int64, f api.UserForm) ([]byte, *APIError)
- func (c *Client) UpdateWorkItemTransition(ctx context.Context, typeSlug string, transitionID int64, ...) ([]byte, *APIError)
- func (c *Client) UpdateWorkItemType(ctx context.Context, slug string, f api.WorkItemTypeUpdateForm) ([]byte, *APIError)
- func (c *Client) UploadAttachment(ctx context.Context, pageID int64, filePath string) ([]byte, *APIError)
- func (c *Client) UploadPageImage(ctx context.Context, pageID int64, filePath string) ([]byte, *APIError)
- func (c *Client) ValidateContent(ctx context.Context, f api.PublicContentValidationForm) ([]byte, *APIError)
- type LowLevel
- type ResponseTooLargeError
Constants ¶
This section is empty.
Variables ¶
var ErrResponseTooLarge = errors.New("response too large")
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type APIError struct {
Problem *problem.Problem
TooLarge *ResponseTooLargeError
Status int
Body []byte
Malformed bool // true when the body was not a recognizable ProblemDetail
Transport error
}
APIError carries either a decoded Problem or a malformed-response marker.
func APIErrorFromRead ¶
APIErrorFromRead converts a typed streaming read failure into the same APIError shape used for Content-Length and buffered-response limit failures.
type AuditFilters ¶
type AuditFilters struct {
Search, ActionType, Actor, EntityType, From, To string
EntityID int64
Include []string
}
AuditFilters holds the audit-search filters; empty fields are omitted.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ActivateGroup ¶
func (*Client) AddGroupAccess ¶
func (*Client) AddGroupMember ¶
func (*Client) AddWorkItemTransition ¶
func (*Client) ArchivePage ¶
func (*Client) CascadeArchivePage ¶ added in v1.0.0
func (*Client) CascadePermanentDeleteFromTrash ¶ added in v1.0.0
func (*Client) CascadeRestoreFromTrash ¶ added in v1.0.0
func (*Client) CascadeTrashPage ¶ added in v1.0.0
func (*Client) CascadeUnarchivePage ¶ added in v1.0.0
func (*Client) CommentWorkItem ¶
func (*Client) CreateDomainEnum ¶
func (*Client) CreateExternalUser ¶
func (*Client) CreateGroup ¶
func (*Client) CreatePage ¶
func (c *Client) CreatePage(ctx context.Context, name string, pageTypeID int64, parentID *int64, content *string) ([]byte, *APIError)
CreatePage — POST /public/v1/pages. Minimal flag-driven form (name + pageTypeId, optional parent/content). For the full form incl. propertyValues use the -f form.json route via CreatePageForm.
func (*Client) CreatePageForm ¶
CreatePageForm — POST /public/v1/pages with a full PageCreateForm (the -f form.json route). propertyValues[] are sent verbatim; the server validates dataType↔value. No client-side semantic validation.
func (*Client) CreatePageType ¶
func (*Client) CreatePropertyDescriptor ¶
func (*Client) CreateRestriction ¶
func (*Client) CreateWorkItem ¶
func (*Client) CreateWorkItemType ¶
func (*Client) DeactivateGroup ¶
func (*Client) DeleteArchivedPage ¶
DeleteArchivedPage — DELETE /public/v1/pages/admin/archive/{pageId}: moves an archived page to trash (admin). CLI command: `archive delete`.
func (*Client) DeleteDomainEnum ¶
func (*Client) DeleteFileAttachment ¶
func (*Client) DeleteImage ¶
func (*Client) DeletePage ¶
func (*Client) DeletePageType ¶
func (*Client) DeletePropertyDescriptor ¶
func (*Client) DeleteUser ¶
func (*Client) DeleteWorkItem ¶
func (*Client) DeleteWorkItemType ¶
func (*Client) DiscardWorkingRevision ¶
func (*Client) DoConditional ¶
DoConditional is for ETag/If-None-Match GETs: a 304 is returned as notModified=true (NOT an error), 2xx as the body, other non-2xx as APIError.
func (*Client) DoDownload ¶
DoDownload is the streaming counterpart of DoConditional. On a successful 2xx response the caller owns and must close body. Every other path closes the response body before returning.
func (*Client) DoRaw ¶
DoRaw executes a low-level call and returns the raw 2xx body. It centralises the two API-wide invariants: non-2xx → ProblemDetail/APIError via decodeError, and the `*/*` content-type quirk → the body is always read raw here (the generated client gives no typed JSON200 for `*/*`). NOTE: 3xx (incl. 304) is treated as an error; ETag/If-None-Match GETs must use DoConditional.
func (*Client) DownloadAttachment ¶
func (*Client) DownloadImage ¶
func (*Client) EditWorkItem ¶
func (*Client) GetArchivedPage ¶
GetArchivedPage — GET /public/v1/pages/admin/archive/{pageId}: admin read view of a single archived page (ArchivedPageViewResult with nested page detail).
func (*Client) GetAvailablePropertyDescriptors ¶
func (*Client) GetChainLinkOptions ¶
func (*Client) GetContentMacroDocs ¶
GetContentMacroDocs — GET /public/v1/content-macros/docs: the full macro knowledge base (preamble + shared filter syntax + per-macro documentation).
func (*Client) GetContentMacroDocsByName ¶
GetContentMacroDocsByName — GET /public/v1/content-macros/{name}/docs: one macro's documentation (directiveName as key; 404 CONTENT_MACRO_NOT_FOUND).
func (*Client) GetDomainEnum ¶
func (*Client) GetDomainEnumUsages ¶
func (*Client) GetLandingSettings ¶
func (*Client) GetPageType ¶
func (*Client) GetPagesTree ¶
func (*Client) GetPropertyDescriptor ¶
func (*Client) GetPublicApiSpec ¶ added in v1.0.0
GetPublicApiSpec — GET /api/v3/api-docs/public-api. This is a SpringDoc document, not a /public/v1 resource, so it is not on the generated client.
func (*Client) GetReleaseNoteByVersion ¶
GetReleaseNoteByVersion — GET /public/v1/release-notes/{version}: one release note's detail (version + date + markdown body; 404 RELEASE_NOTE_NOT_FOUND).
func (*Client) GetRevisionSnapshot ¶
func (*Client) GetTrashedPage ¶ added in v1.0.0
GetTrashedPage — GET /public/v1/pages/admin/trash/{pageId}: admin read view of a single trashed page (TrashedPageViewResult with nested page detail).
func (*Client) GetWorkItem ¶
func (*Client) GetWorkItemTransitions ¶
func (*Client) GetWorkItemType ¶
func (*Client) GetWorkflowRoles ¶
func (*Client) ListArchive ¶
func (c *Client) ListArchive(ctx context.Context, page, size int, sort []string) ([]byte, *APIError)
ListArchive — GET /public/v1/admin/archive: the archived-pages overview (admin). Paged exactly like ListTrash; every row carries the archive reason.
func (*Client) ListContentMacros ¶
func (*Client) ListDomainEnums ¶
func (*Client) ListDraftsQueue ¶
func (*Client) ListGroups ¶
func (*Client) ListPageImages ¶
func (*Client) ListPagePropertyValues ¶ added in v1.0.0
ListPagePropertyValues — GET /public/v1/pages/property-values?pageIds=. Raw body (verbatim JSON array). pageIds is sent as one comma-separated value.
func (*Client) ListPageTypes ¶
func (*Client) ListPages ¶
func (c *Client) ListPages(ctx context.Context, page, size int, sort []string, pageTypeID *int64) (*api.PagePageListResult, *APIError)
ListPages — GET /public/v1/pages (paginated). Empty Pageable + pageableEditor avoids the broken object-styling; the */* body is read raw by Do.
func (*Client) ListPublishQueue ¶
func (*Client) ListReleaseNotes ¶
ListReleaseNotes — GET /public/v1/release-notes: paged release-note summaries (version + date). The server enforces a fixed semver-desc order and rejects a sort param (400 INVALID_SORT), so this exposes only page/size — never sort.
func (*Client) ListReviewQueue ¶
func (*Client) ListRevisions ¶
func (*Client) ListWorkItemTypes ¶
func (*Client) ListWorkItems ¶
func (*Client) MovePageType ¶
func (*Client) PerformTransition ¶
func (*Client) PermanentDeleteUser ¶
func (*Client) PreviewAdminArchiveCascadeImpact ¶ added in v1.0.0
func (*Client) PreviewAdminTrashCascadeImpact ¶ added in v1.0.0
func (*Client) PreviewMovePageType ¶ added in v1.0.0
func (*Client) PreviewPageCascadeImpact ¶ added in v1.0.0
func (*Client) PurgeFromTrash ¶
func (*Client) ReactivateUser ¶
func (*Client) RemoveAccess ¶
func (*Client) RemoveGroupAccess ¶
func (*Client) RemoveGroupMember ¶
func (*Client) RemoveRestriction ¶
func (*Client) RemoveWorkItemTransition ¶
func (*Client) RestoreFromTrash ¶
func (*Client) RestoreVersion ¶
func (*Client) ScanMacroUsage ¶
ScanMacroUsage — GET /public/v1/content-macros/{macroName}/scan: pages that use a macro (access-aware; requires an admin API key). Returns a MacroScanResult.
func (*Client) SearchAuditLog ¶
func (*Client) SearchGroups ¶
func (*Client) SearchPages ¶
func (c *Client) SearchPages(ctx context.Context, query string, page, size int, allowedPageTypeID *int64) ([]byte, *APIError)
SearchPages — GET /public/v1/pages/search?query=. Raw body. allowedPageTypeID, when non-nil, scopes the candidates to a page type (used by --property PAGE_OUTGOING name resolution).
func (*Client) SearchUsers ¶
func (*Client) SetGroupWorkflowRole ¶
func (*Client) SetUserWorkflowRole ¶
func (*Client) SortChildren ¶
func (*Client) SortDisplayColumns ¶
func (*Client) SortPropertyDescriptors ¶
func (*Client) StartRevision ¶
func (*Client) SwapPropertyDescriptors ¶
func (*Client) TransitionWorkItem ¶
func (*Client) UnarchivePage ¶
UnarchivePage — POST /public/v1/pages/admin/archive/{pageId}/unarchive: the server-side name of what the CLI exposes as `archive restore`.
func (*Client) UpdateAccess ¶
func (*Client) UpdateDomainEnum ¶
func (*Client) UpdateGroup ¶
func (*Client) UpdateGroupAccess ¶
func (*Client) UpdateLandingSettings ¶
func (*Client) UpdatePage ¶
func (*Client) UpdatePageType ¶
func (*Client) UpdatePropertyDescriptor ¶
func (*Client) UpdateUser ¶
func (*Client) UpdateWorkItemTransition ¶
func (*Client) UpdateWorkItemType ¶
func (*Client) UploadAttachment ¶
func (c *Client) UploadAttachment(ctx context.Context, pageID int64, filePath string) ([]byte, *APIError)
UploadAttachment uploads a file as a page attachment (multipart/form-data, part name "file") — POST /public/v1/pages/{pageId}/file-attachments.
func (*Client) UploadPageImage ¶
func (c *Client) UploadPageImage(ctx context.Context, pageID int64, filePath string) ([]byte, *APIError)
UploadPageImage uploads a file as a page image — POST /public/v1/pages/{pageId}/images.
func (*Client) ValidateContent ¶
type LowLevel ¶
LowLevel is a thunk that performs exactly one generated low-level oapi call. The wrapper method closes over ctx, path params, body and request-editors, so Do/DoRaw stay completely generic and never see resource-specific shapes.
type ResponseTooLargeError ¶
func (*ResponseTooLargeError) Error ¶
func (e *ResponseTooLargeError) Error() string
func (*ResponseTooLargeError) Unwrap ¶
func (e *ResponseTooLargeError) Unwrap() error