Documentation
¶
Overview ¶
Package apiclient provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.2 DO NOT EDIT.
Package apiclient is the CLI's client of the API: client.gen.go is generated from docs/swagger.yaml by make openapi, this file keeps the server and the session of tide login.
Index ¶
- Variables
- func Deleted(response *http.Response, body []byte) (bool, error)
- func Deref[T any](value *T) T
- func Fail(response *http.Response, body []byte) error
- func Long(ctx context.Context) (context.Context, context.CancelFunc)
- func NewDeleteApiFoldersIdRequest(server string, id string) (*http.Request, error)
- func NewDeleteApiFoldersRequest(server string, body DeleteApiFoldersJSONRequestBody) (*http.Request, error)
- func NewDeleteApiFoldersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteApiInvitesIdRequest(server string, id string) (*http.Request, error)
- func NewDeleteApiMeDataRequest(server string) (*http.Request, error)
- func NewDeleteApiMeTokensIdRequest(server string, id string) (*http.Request, error)
- func NewDeleteApiNotesIdRequest(server string, id string) (*http.Request, error)
- func NewDeleteApiNotesRequest(server string, body DeleteApiNotesJSONRequestBody) (*http.Request, error)
- func NewDeleteApiNotesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteApiTagsRequest(server string, body DeleteApiTagsJSONRequestBody) (*http.Request, error)
- func NewDeleteApiTagsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteApiTagsValueRequest(server string, value string) (*http.Request, error)
- func NewDeleteApiTrashIdRequest(server string, id string) (*http.Request, error)
- func NewDeleteApiTrashRequest(server string) (*http.Request, error)
- func NewDeleteApiUsersIdRequest(server string, id string) (*http.Request, error)
- func NewGetApiAddUserRequest(server string, params *GetApiAddUserParams) (*http.Request, error)
- func NewGetApiExportRequest(server string, params *GetApiExportParams) (*http.Request, error)
- func NewGetApiFilesIdRequest(server string, id string) (*http.Request, error)
- func NewGetApiFilesRequest(server string) (*http.Request, error)
- func NewGetApiFoldersIdRequest(server string, id string) (*http.Request, error)
- func NewGetApiFoldersRequest(server string) (*http.Request, error)
- func NewGetApiGraphNotesRequest(server string, params *GetApiGraphNotesParams) (*http.Request, error)
- func NewGetApiGraphRequest(server string) (*http.Request, error)
- func NewGetApiInvitesRequest(server string) (*http.Request, error)
- func NewGetApiItemsRequest(server string, params *GetApiItemsParams) (*http.Request, error)
- func NewGetApiLinksBrokenRequest(server string) (*http.Request, error)
- func NewGetApiMeRequest(server string) (*http.Request, error)
- func NewGetApiMeStatsRequest(server string) (*http.Request, error)
- func NewGetApiMeTokensRequest(server string) (*http.Request, error)
- func NewGetApiNotesIdForkRequest(server string, id string) (*http.Request, error)
- func NewGetApiNotesIdGraphRequest(server string, id string) (*http.Request, error)
- func NewGetApiNotesIdNeighborsRequest(server string, id string) (*http.Request, error)
- func NewGetApiNotesIdRequest(server string, id string) (*http.Request, error)
- func NewGetApiNotesIdVersionsRequest(server string, id string) (*http.Request, error)
- func NewGetApiNotesIdVersionsVersionRequest(server string, id string, version string) (*http.Request, error)
- func NewGetApiNotesRequest(server string, params *GetApiNotesParams) (*http.Request, error)
- func NewGetApiPinnedRequest(server string) (*http.Request, error)
- func NewGetApiPlansRequest(server string) (*http.Request, error)
- func NewGetApiRecentRequest(server string) (*http.Request, error)
- func NewGetApiResolveRequest(server string, params *GetApiResolveParams) (*http.Request, error)
- func NewGetApiSearchRequest(server string, params *GetApiSearchParams) (*http.Request, error)
- func NewGetApiSearchesIdRequest(server string, id string, params *GetApiSearchesIdParams) (*http.Request, error)
- func NewGetApiTagsRequest(server string) (*http.Request, error)
- func NewGetApiTagsValueRequest(server string, value string, params *GetApiTagsValueParams) (*http.Request, error)
- func NewGetApiTrashRequest(server string) (*http.Request, error)
- func NewGetApiUsersRequest(server string) (*http.Request, error)
- func NewGetApiVersionRequest(server string) (*http.Request, error)
- func NewPatchApiFoldersIdRequest(server string, id string, body PatchApiFoldersIdJSONRequestBody) (*http.Request, error)
- func NewPatchApiFoldersIdRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewPatchApiMePasswordRequest(server string, body PatchApiMePasswordJSONRequestBody) (*http.Request, error)
- func NewPatchApiMePasswordRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPatchApiMeRequest(server string, body PatchApiMeJSONRequestBody) (*http.Request, error)
- func NewPatchApiMeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPatchApiNotesIdRequest(server string, id string, body PatchApiNotesIdJSONRequestBody) (*http.Request, error)
- func NewPatchApiNotesIdRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewPatchApiNotesTagsRequest(server string, body PatchApiNotesTagsJSONRequestBody) (*http.Request, error)
- func NewPatchApiNotesTagsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPatchApiTagsValueRequest(server string, value string, body PatchApiTagsValueJSONRequestBody) (*http.Request, error)
- func NewPatchApiTagsValueRequestWithBody(server string, value string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiFilesRequest(server string, params *PostApiFilesParams, body PostApiFilesJSONRequestBody) (*http.Request, error)
- func NewPostApiFilesRequestWithBody(server string, params *PostApiFilesParams, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiFoldersRequest(server string, body PostApiFoldersJSONRequestBody) (*http.Request, error)
- func NewPostApiFoldersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiImportRequest(server string, params *PostApiImportParams, body PostApiImportJSONRequestBody) (*http.Request, error)
- func NewPostApiImportRequestWithBody(server string, params *PostApiImportParams, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiInvitesRequest(server string) (*http.Request, error)
- func NewPostApiLoginRequest(server string, body PostApiLoginJSONRequestBody) (*http.Request, error)
- func NewPostApiLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiLogoutRequest(server string) (*http.Request, error)
- func NewPostApiMeTokensRequest(server string, body PostApiMeTokensJSONRequestBody) (*http.Request, error)
- func NewPostApiMeTokensRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiMoveRequest(server string, body PostApiMoveJSONRequestBody) (*http.Request, error)
- func NewPostApiMoveRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiNotesIdForksRequest(server string, id string, body PostApiNotesIdForksJSONRequestBody) (*http.Request, error)
- func NewPostApiNotesIdForksRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiNotesIdMergeRequest(server string, id string, body PostApiNotesIdMergeJSONRequestBody) (*http.Request, error)
- func NewPostApiNotesIdMergeRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiNotesIdRebaseRequest(server string, id string, body PostApiNotesIdRebaseJSONRequestBody) (*http.Request, error)
- func NewPostApiNotesIdRebaseRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiNotesIdUnmergeRequest(server string, id string) (*http.Request, error)
- func NewPostApiNotesIdVersionsRequest(server string, id string, body PostApiNotesIdVersionsJSONRequestBody) (*http.Request, error)
- func NewPostApiNotesIdVersionsRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiNotesReadRequest(server string, body PostApiNotesReadJSONRequestBody) (*http.Request, error)
- func NewPostApiNotesReadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiNotesRequest(server string, body PostApiNotesJSONRequestBody) (*http.Request, error)
- func NewPostApiNotesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiNotesTagsRequest(server string, body PostApiNotesTagsJSONRequestBody) (*http.Request, error)
- func NewPostApiNotesTagsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiReplaceRequest(server string, body PostApiReplaceJSONRequestBody) (*http.Request, error)
- func NewPostApiReplaceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiRestoreRequest(server string, body PostApiRestoreJSONRequestBody) (*http.Request, error)
- func NewPostApiRestoreRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiSearchesRequest(server string, params *PostApiSearchesParams, ...) (*http.Request, error)
- func NewPostApiSearchesRequestWithBody(server string, params *PostApiSearchesParams, contentType string, ...) (*http.Request, error)
- func NewPostApiSignupRequest(server string, body PostApiSignupJSONRequestBody) (*http.Request, error)
- func NewPostApiSignupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiTagsRequest(server string, body PostApiTagsJSONRequestBody) (*http.Request, error)
- func NewPostApiTagsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostApiUsersIdPasswordRequest(server string, id string) (*http.Request, error)
- func NoteTags(ctx context.Context, client *ClientWithResponses, ids []string) (map[string][]string, error)
- func Resolve(ctx context.Context, client *ClientWithResponses, kind DomainKind, ref string) (string, error)
- func SessionFile() (string, error)
- type AddinviteResult
- type AdduserInput
- type Client
- func (c *Client) DeleteApiFolders(ctx context.Context, body DeleteApiFoldersJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteApiFoldersId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteApiFoldersWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteApiInvitesId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteApiMeData(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteApiMeTokensId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteApiNotes(ctx context.Context, body DeleteApiNotesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteApiNotesId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteApiNotesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteApiTags(ctx context.Context, body DeleteApiTagsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteApiTagsValue(ctx context.Context, value string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteApiTagsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteApiTrash(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteApiTrashId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteApiUsersId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiAddUser(ctx context.Context, params *GetApiAddUserParams, ...) (*http.Response, error)
- func (c *Client) GetApiExport(ctx context.Context, params *GetApiExportParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiFiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiFilesId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiFolders(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiFoldersId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiGraph(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiGraphNotes(ctx context.Context, params *GetApiGraphNotesParams, ...) (*http.Response, error)
- func (c *Client) GetApiInvites(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiItems(ctx context.Context, params *GetApiItemsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiLinksBroken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiMe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiMeStats(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiMeTokens(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiNotes(ctx context.Context, params *GetApiNotesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiNotesId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiNotesIdFork(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiNotesIdGraph(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiNotesIdNeighbors(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiNotesIdVersions(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiNotesIdVersionsVersion(ctx context.Context, id string, version string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiPinned(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiPlans(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiRecent(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiResolve(ctx context.Context, params *GetApiResolveParams, ...) (*http.Response, error)
- func (c *Client) GetApiSearch(ctx context.Context, params *GetApiSearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiSearchesId(ctx context.Context, id string, params *GetApiSearchesIdParams, ...) (*http.Response, error)
- func (c *Client) GetApiTags(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiTagsValue(ctx context.Context, value string, params *GetApiTagsValueParams, ...) (*http.Response, error)
- func (c *Client) GetApiTrash(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiUsers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetApiVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PatchApiFoldersId(ctx context.Context, id string, body PatchApiFoldersIdJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PatchApiFoldersIdWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PatchApiMe(ctx context.Context, body PatchApiMeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PatchApiMePassword(ctx context.Context, body PatchApiMePasswordJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PatchApiMePasswordWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PatchApiMeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PatchApiNotesId(ctx context.Context, id string, body PatchApiNotesIdJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PatchApiNotesIdWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PatchApiNotesTags(ctx context.Context, body PatchApiNotesTagsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PatchApiNotesTagsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PatchApiTagsValue(ctx context.Context, value string, body PatchApiTagsValueJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PatchApiTagsValueWithBody(ctx context.Context, value string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiFiles(ctx context.Context, params *PostApiFilesParams, ...) (*http.Response, error)
- func (c *Client) PostApiFilesWithBody(ctx context.Context, params *PostApiFilesParams, contentType string, ...) (*http.Response, error)
- func (c *Client) PostApiFolders(ctx context.Context, body PostApiFoldersJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiFoldersWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiImport(ctx context.Context, params *PostApiImportParams, ...) (*http.Response, error)
- func (c *Client) PostApiImportWithBody(ctx context.Context, params *PostApiImportParams, contentType string, ...) (*http.Response, error)
- func (c *Client) PostApiInvites(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostApiLogin(ctx context.Context, body PostApiLoginJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiLoginWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiLogout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostApiMeTokens(ctx context.Context, body PostApiMeTokensJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiMeTokensWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiMove(ctx context.Context, body PostApiMoveJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiMoveWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiNotes(ctx context.Context, body PostApiNotesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiNotesIdForks(ctx context.Context, id string, body PostApiNotesIdForksJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiNotesIdForksWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiNotesIdMerge(ctx context.Context, id string, body PostApiNotesIdMergeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiNotesIdMergeWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiNotesIdRebase(ctx context.Context, id string, body PostApiNotesIdRebaseJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiNotesIdRebaseWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiNotesIdUnmerge(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostApiNotesIdVersions(ctx context.Context, id string, body PostApiNotesIdVersionsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiNotesIdVersionsWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiNotesRead(ctx context.Context, body PostApiNotesReadJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiNotesReadWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiNotesTags(ctx context.Context, body PostApiNotesTagsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiNotesTagsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiNotesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiReplace(ctx context.Context, body PostApiReplaceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiReplaceWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiRestore(ctx context.Context, body PostApiRestoreJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiRestoreWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiSearches(ctx context.Context, params *PostApiSearchesParams, ...) (*http.Response, error)
- func (c *Client) PostApiSearchesWithBody(ctx context.Context, params *PostApiSearchesParams, contentType string, ...) (*http.Response, error)
- func (c *Client) PostApiSignup(ctx context.Context, body PostApiSignupJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiSignupWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiTags(ctx context.Context, body PostApiTagsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostApiTagsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostApiUsersIdPassword(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeleteApiFoldersIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteApiFoldersIdResponse, error)
- func (c *ClientWithResponses) DeleteApiFoldersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteApiFoldersResponse, error)
- func (c *ClientWithResponses) DeleteApiFoldersWithResponse(ctx context.Context, body DeleteApiFoldersJSONRequestBody, ...) (*DeleteApiFoldersResponse, error)
- func (c *ClientWithResponses) DeleteApiInvitesIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteApiInvitesIdResponse, error)
- func (c *ClientWithResponses) DeleteApiMeDataWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteApiMeDataResponse, error)
- func (c *ClientWithResponses) DeleteApiMeTokensIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteApiMeTokensIdResponse, error)
- func (c *ClientWithResponses) DeleteApiNotesIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteApiNotesIdResponse, error)
- func (c *ClientWithResponses) DeleteApiNotesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteApiNotesResponse, error)
- func (c *ClientWithResponses) DeleteApiNotesWithResponse(ctx context.Context, body DeleteApiNotesJSONRequestBody, ...) (*DeleteApiNotesResponse, error)
- func (c *ClientWithResponses) DeleteApiTagsValueWithResponse(ctx context.Context, value string, reqEditors ...RequestEditorFn) (*DeleteApiTagsValueResponse, error)
- func (c *ClientWithResponses) DeleteApiTagsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteApiTagsResponse, error)
- func (c *ClientWithResponses) DeleteApiTagsWithResponse(ctx context.Context, body DeleteApiTagsJSONRequestBody, ...) (*DeleteApiTagsResponse, error)
- func (c *ClientWithResponses) DeleteApiTrashIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteApiTrashIdResponse, error)
- func (c *ClientWithResponses) DeleteApiTrashWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteApiTrashResponse, error)
- func (c *ClientWithResponses) DeleteApiUsersIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteApiUsersIdResponse, error)
- func (c *ClientWithResponses) GetApiAddUserWithResponse(ctx context.Context, params *GetApiAddUserParams, ...) (*GetApiAddUserResponse, error)
- func (c *ClientWithResponses) GetApiExportWithResponse(ctx context.Context, params *GetApiExportParams, reqEditors ...RequestEditorFn) (*GetApiExportResponse, error)
- func (c *ClientWithResponses) GetApiFilesIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiFilesIdResponse, error)
- func (c *ClientWithResponses) GetApiFilesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiFilesResponse, error)
- func (c *ClientWithResponses) GetApiFoldersIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiFoldersIdResponse, error)
- func (c *ClientWithResponses) GetApiFoldersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiFoldersResponse, error)
- func (c *ClientWithResponses) GetApiGraphNotesWithResponse(ctx context.Context, params *GetApiGraphNotesParams, ...) (*GetApiGraphNotesResponse, error)
- func (c *ClientWithResponses) GetApiGraphWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiGraphResponse, error)
- func (c *ClientWithResponses) GetApiInvitesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiInvitesResponse, error)
- func (c *ClientWithResponses) GetApiItemsWithResponse(ctx context.Context, params *GetApiItemsParams, reqEditors ...RequestEditorFn) (*GetApiItemsResponse, error)
- func (c *ClientWithResponses) GetApiLinksBrokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiLinksBrokenResponse, error)
- func (c *ClientWithResponses) GetApiMeStatsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMeStatsResponse, error)
- func (c *ClientWithResponses) GetApiMeTokensWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMeTokensResponse, error)
- func (c *ClientWithResponses) GetApiMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMeResponse, error)
- func (c *ClientWithResponses) GetApiNotesIdForkWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiNotesIdForkResponse, error)
- func (c *ClientWithResponses) GetApiNotesIdGraphWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiNotesIdGraphResponse, error)
- func (c *ClientWithResponses) GetApiNotesIdNeighborsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiNotesIdNeighborsResponse, error)
- func (c *ClientWithResponses) GetApiNotesIdVersionsVersionWithResponse(ctx context.Context, id string, version string, reqEditors ...RequestEditorFn) (*GetApiNotesIdVersionsVersionResponse, error)
- func (c *ClientWithResponses) GetApiNotesIdVersionsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiNotesIdVersionsResponse, error)
- func (c *ClientWithResponses) GetApiNotesIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiNotesIdResponse, error)
- func (c *ClientWithResponses) GetApiNotesWithResponse(ctx context.Context, params *GetApiNotesParams, reqEditors ...RequestEditorFn) (*GetApiNotesResponse, error)
- func (c *ClientWithResponses) GetApiPinnedWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiPinnedResponse, error)
- func (c *ClientWithResponses) GetApiPlansWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiPlansResponse, error)
- func (c *ClientWithResponses) GetApiRecentWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiRecentResponse, error)
- func (c *ClientWithResponses) GetApiResolveWithResponse(ctx context.Context, params *GetApiResolveParams, ...) (*GetApiResolveResponse, error)
- func (c *ClientWithResponses) GetApiSearchWithResponse(ctx context.Context, params *GetApiSearchParams, reqEditors ...RequestEditorFn) (*GetApiSearchResponse, error)
- func (c *ClientWithResponses) GetApiSearchesIdWithResponse(ctx context.Context, id string, params *GetApiSearchesIdParams, ...) (*GetApiSearchesIdResponse, error)
- func (c *ClientWithResponses) GetApiTagsValueWithResponse(ctx context.Context, value string, params *GetApiTagsValueParams, ...) (*GetApiTagsValueResponse, error)
- func (c *ClientWithResponses) GetApiTagsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiTagsResponse, error)
- func (c *ClientWithResponses) GetApiTrashWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiTrashResponse, error)
- func (c *ClientWithResponses) GetApiUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiUsersResponse, error)
- func (c *ClientWithResponses) GetApiVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiVersionResponse, error)
- func (c *ClientWithResponses) PatchApiFoldersIdWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*PatchApiFoldersIdResponse, error)
- func (c *ClientWithResponses) PatchApiFoldersIdWithResponse(ctx context.Context, id string, body PatchApiFoldersIdJSONRequestBody, ...) (*PatchApiFoldersIdResponse, error)
- func (c *ClientWithResponses) PatchApiMePasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PatchApiMePasswordResponse, error)
- func (c *ClientWithResponses) PatchApiMePasswordWithResponse(ctx context.Context, body PatchApiMePasswordJSONRequestBody, ...) (*PatchApiMePasswordResponse, error)
- func (c *ClientWithResponses) PatchApiMeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PatchApiMeResponse, error)
- func (c *ClientWithResponses) PatchApiMeWithResponse(ctx context.Context, body PatchApiMeJSONRequestBody, ...) (*PatchApiMeResponse, error)
- func (c *ClientWithResponses) PatchApiNotesIdWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*PatchApiNotesIdResponse, error)
- func (c *ClientWithResponses) PatchApiNotesIdWithResponse(ctx context.Context, id string, body PatchApiNotesIdJSONRequestBody, ...) (*PatchApiNotesIdResponse, error)
- func (c *ClientWithResponses) PatchApiNotesTagsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PatchApiNotesTagsResponse, error)
- func (c *ClientWithResponses) PatchApiNotesTagsWithResponse(ctx context.Context, body PatchApiNotesTagsJSONRequestBody, ...) (*PatchApiNotesTagsResponse, error)
- func (c *ClientWithResponses) PatchApiTagsValueWithBodyWithResponse(ctx context.Context, value string, contentType string, body io.Reader, ...) (*PatchApiTagsValueResponse, error)
- func (c *ClientWithResponses) PatchApiTagsValueWithResponse(ctx context.Context, value string, body PatchApiTagsValueJSONRequestBody, ...) (*PatchApiTagsValueResponse, error)
- func (c *ClientWithResponses) PostApiFilesWithBodyWithResponse(ctx context.Context, params *PostApiFilesParams, contentType string, ...) (*PostApiFilesResponse, error)
- func (c *ClientWithResponses) PostApiFilesWithResponse(ctx context.Context, params *PostApiFilesParams, ...) (*PostApiFilesResponse, error)
- func (c *ClientWithResponses) PostApiFoldersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiFoldersResponse, error)
- func (c *ClientWithResponses) PostApiFoldersWithResponse(ctx context.Context, body PostApiFoldersJSONRequestBody, ...) (*PostApiFoldersResponse, error)
- func (c *ClientWithResponses) PostApiImportWithBodyWithResponse(ctx context.Context, params *PostApiImportParams, contentType string, ...) (*PostApiImportResponse, error)
- func (c *ClientWithResponses) PostApiImportWithResponse(ctx context.Context, params *PostApiImportParams, ...) (*PostApiImportResponse, error)
- func (c *ClientWithResponses) PostApiInvitesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostApiInvitesResponse, error)
- func (c *ClientWithResponses) PostApiLoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiLoginResponse, error)
- func (c *ClientWithResponses) PostApiLoginWithResponse(ctx context.Context, body PostApiLoginJSONRequestBody, ...) (*PostApiLoginResponse, error)
- func (c *ClientWithResponses) PostApiLogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostApiLogoutResponse, error)
- func (c *ClientWithResponses) PostApiMeTokensWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiMeTokensResponse, error)
- func (c *ClientWithResponses) PostApiMeTokensWithResponse(ctx context.Context, body PostApiMeTokensJSONRequestBody, ...) (*PostApiMeTokensResponse, error)
- func (c *ClientWithResponses) PostApiMoveWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiMoveResponse, error)
- func (c *ClientWithResponses) PostApiMoveWithResponse(ctx context.Context, body PostApiMoveJSONRequestBody, ...) (*PostApiMoveResponse, error)
- func (c *ClientWithResponses) PostApiNotesIdForksWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*PostApiNotesIdForksResponse, error)
- func (c *ClientWithResponses) PostApiNotesIdForksWithResponse(ctx context.Context, id string, body PostApiNotesIdForksJSONRequestBody, ...) (*PostApiNotesIdForksResponse, error)
- func (c *ClientWithResponses) PostApiNotesIdMergeWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*PostApiNotesIdMergeResponse, error)
- func (c *ClientWithResponses) PostApiNotesIdMergeWithResponse(ctx context.Context, id string, body PostApiNotesIdMergeJSONRequestBody, ...) (*PostApiNotesIdMergeResponse, error)
- func (c *ClientWithResponses) PostApiNotesIdRebaseWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*PostApiNotesIdRebaseResponse, error)
- func (c *ClientWithResponses) PostApiNotesIdRebaseWithResponse(ctx context.Context, id string, body PostApiNotesIdRebaseJSONRequestBody, ...) (*PostApiNotesIdRebaseResponse, error)
- func (c *ClientWithResponses) PostApiNotesIdUnmergeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*PostApiNotesIdUnmergeResponse, error)
- func (c *ClientWithResponses) PostApiNotesIdVersionsWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*PostApiNotesIdVersionsResponse, error)
- func (c *ClientWithResponses) PostApiNotesIdVersionsWithResponse(ctx context.Context, id string, body PostApiNotesIdVersionsJSONRequestBody, ...) (*PostApiNotesIdVersionsResponse, error)
- func (c *ClientWithResponses) PostApiNotesReadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiNotesReadResponse, error)
- func (c *ClientWithResponses) PostApiNotesReadWithResponse(ctx context.Context, body PostApiNotesReadJSONRequestBody, ...) (*PostApiNotesReadResponse, error)
- func (c *ClientWithResponses) PostApiNotesTagsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiNotesTagsResponse, error)
- func (c *ClientWithResponses) PostApiNotesTagsWithResponse(ctx context.Context, body PostApiNotesTagsJSONRequestBody, ...) (*PostApiNotesTagsResponse, error)
- func (c *ClientWithResponses) PostApiNotesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiNotesResponse, error)
- func (c *ClientWithResponses) PostApiNotesWithResponse(ctx context.Context, body PostApiNotesJSONRequestBody, ...) (*PostApiNotesResponse, error)
- func (c *ClientWithResponses) PostApiReplaceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiReplaceResponse, error)
- func (c *ClientWithResponses) PostApiReplaceWithResponse(ctx context.Context, body PostApiReplaceJSONRequestBody, ...) (*PostApiReplaceResponse, error)
- func (c *ClientWithResponses) PostApiRestoreWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiRestoreResponse, error)
- func (c *ClientWithResponses) PostApiRestoreWithResponse(ctx context.Context, body PostApiRestoreJSONRequestBody, ...) (*PostApiRestoreResponse, error)
- func (c *ClientWithResponses) PostApiSearchesWithBodyWithResponse(ctx context.Context, params *PostApiSearchesParams, contentType string, ...) (*PostApiSearchesResponse, error)
- func (c *ClientWithResponses) PostApiSearchesWithResponse(ctx context.Context, params *PostApiSearchesParams, ...) (*PostApiSearchesResponse, error)
- func (c *ClientWithResponses) PostApiSignupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiSignupResponse, error)
- func (c *ClientWithResponses) PostApiSignupWithResponse(ctx context.Context, body PostApiSignupJSONRequestBody, ...) (*PostApiSignupResponse, error)
- func (c *ClientWithResponses) PostApiTagsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostApiTagsResponse, error)
- func (c *ClientWithResponses) PostApiTagsWithResponse(ctx context.Context, body PostApiTagsJSONRequestBody, ...) (*PostApiTagsResponse, error)
- func (c *ClientWithResponses) PostApiUsersIdPasswordWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*PostApiUsersIdPasswordResponse, error)
- type ClientWithResponsesInterface
- type CountnotesStats
- type CounttagsTagCount
- type CreateapitokenInput
- type CreateapitokenInputExpiresIn
- type CreateapitokenResult
- type CreatefolderInput
- type CreatenoteInput
- type CreatesessionInput
- type CreatesessionResult
- type CreatetagBody
- type DeleteApiFoldersIdResponse
- func (r DeleteApiFoldersIdResponse) ContentType() string
- func (r DeleteApiFoldersIdResponse) GetBody() []byte
- func (r DeleteApiFoldersIdResponse) GetJSON200() *[]DomainItem
- func (r DeleteApiFoldersIdResponse) GetJSON404() *RespondFailure
- func (r DeleteApiFoldersIdResponse) GetJSON500() *RespondFailure
- func (r DeleteApiFoldersIdResponse) Status() string
- func (r DeleteApiFoldersIdResponse) StatusCode() int
- type DeleteApiFoldersJSONRequestBody
- type DeleteApiFoldersResponse
- func (r DeleteApiFoldersResponse) ContentType() string
- func (r DeleteApiFoldersResponse) GetBody() []byte
- func (r DeleteApiFoldersResponse) GetJSON200() *[]DomainItem
- func (r DeleteApiFoldersResponse) GetJSON400() *RespondFailure
- func (r DeleteApiFoldersResponse) GetJSON413() *RespondFailure
- func (r DeleteApiFoldersResponse) GetJSON500() *RespondFailure
- func (r DeleteApiFoldersResponse) Status() string
- func (r DeleteApiFoldersResponse) StatusCode() int
- type DeleteApiInvitesIdResponse
- func (r DeleteApiInvitesIdResponse) ContentType() string
- func (r DeleteApiInvitesIdResponse) GetBody() []byte
- func (r DeleteApiInvitesIdResponse) GetJSON401() *RespondFailure
- func (r DeleteApiInvitesIdResponse) GetJSON403() *RespondFailure
- func (r DeleteApiInvitesIdResponse) GetJSON404() *RespondFailure
- func (r DeleteApiInvitesIdResponse) GetJSON500() *RespondFailure
- func (r DeleteApiInvitesIdResponse) Status() string
- func (r DeleteApiInvitesIdResponse) StatusCode() int
- type DeleteApiMeDataResponse
- func (r DeleteApiMeDataResponse) ContentType() string
- func (r DeleteApiMeDataResponse) GetBody() []byte
- func (r DeleteApiMeDataResponse) GetJSON401() *RespondFailure
- func (r DeleteApiMeDataResponse) GetJSON500() *RespondFailure
- func (r DeleteApiMeDataResponse) Status() string
- func (r DeleteApiMeDataResponse) StatusCode() int
- type DeleteApiMeTokensIdResponse
- func (r DeleteApiMeTokensIdResponse) ContentType() string
- func (r DeleteApiMeTokensIdResponse) GetBody() []byte
- func (r DeleteApiMeTokensIdResponse) GetJSON401() *RespondFailure
- func (r DeleteApiMeTokensIdResponse) GetJSON403() *RespondFailure
- func (r DeleteApiMeTokensIdResponse) GetJSON404() *RespondFailure
- func (r DeleteApiMeTokensIdResponse) GetJSON500() *RespondFailure
- func (r DeleteApiMeTokensIdResponse) Status() string
- func (r DeleteApiMeTokensIdResponse) StatusCode() int
- type DeleteApiNotesIdResponse
- func (r DeleteApiNotesIdResponse) ContentType() string
- func (r DeleteApiNotesIdResponse) GetBody() []byte
- func (r DeleteApiNotesIdResponse) GetJSON200() *[]DomainItem
- func (r DeleteApiNotesIdResponse) GetJSON404() *RespondFailure
- func (r DeleteApiNotesIdResponse) GetJSON500() *RespondFailure
- func (r DeleteApiNotesIdResponse) Status() string
- func (r DeleteApiNotesIdResponse) StatusCode() int
- type DeleteApiNotesJSONRequestBody
- type DeleteApiNotesResponse
- func (r DeleteApiNotesResponse) ContentType() string
- func (r DeleteApiNotesResponse) GetBody() []byte
- func (r DeleteApiNotesResponse) GetJSON200() *[]DomainItem
- func (r DeleteApiNotesResponse) GetJSON400() *RespondFailure
- func (r DeleteApiNotesResponse) GetJSON413() *RespondFailure
- func (r DeleteApiNotesResponse) GetJSON500() *RespondFailure
- func (r DeleteApiNotesResponse) Status() string
- func (r DeleteApiNotesResponse) StatusCode() int
- type DeleteApiTagsJSONRequestBody
- type DeleteApiTagsResponse
- func (r DeleteApiTagsResponse) ContentType() string
- func (r DeleteApiTagsResponse) GetBody() []byte
- func (r DeleteApiTagsResponse) GetJSON200() *[]DomainTag
- func (r DeleteApiTagsResponse) GetJSON400() *RespondFailure
- func (r DeleteApiTagsResponse) GetJSON413() *RespondFailure
- func (r DeleteApiTagsResponse) GetJSON500() *RespondFailure
- func (r DeleteApiTagsResponse) Status() string
- func (r DeleteApiTagsResponse) StatusCode() int
- type DeleteApiTagsValueResponse
- func (r DeleteApiTagsValueResponse) ContentType() string
- func (r DeleteApiTagsValueResponse) GetBody() []byte
- func (r DeleteApiTagsValueResponse) GetJSON200() *[]DomainTag
- func (r DeleteApiTagsValueResponse) GetJSON404() *RespondFailure
- func (r DeleteApiTagsValueResponse) GetJSON500() *RespondFailure
- func (r DeleteApiTagsValueResponse) Status() string
- func (r DeleteApiTagsValueResponse) StatusCode() int
- type DeleteApiTrashIdResponse
- func (r DeleteApiTrashIdResponse) ContentType() string
- func (r DeleteApiTrashIdResponse) GetBody() []byte
- func (r DeleteApiTrashIdResponse) GetJSON404() *RespondFailure
- func (r DeleteApiTrashIdResponse) GetJSON500() *RespondFailure
- func (r DeleteApiTrashIdResponse) Status() string
- func (r DeleteApiTrashIdResponse) StatusCode() int
- type DeleteApiTrashResponse
- type DeleteApiUsersIdResponse
- func (r DeleteApiUsersIdResponse) ContentType() string
- func (r DeleteApiUsersIdResponse) GetBody() []byte
- func (r DeleteApiUsersIdResponse) GetJSON400() *RespondFailure
- func (r DeleteApiUsersIdResponse) GetJSON401() *RespondFailure
- func (r DeleteApiUsersIdResponse) GetJSON403() *RespondFailure
- func (r DeleteApiUsersIdResponse) GetJSON404() *RespondFailure
- func (r DeleteApiUsersIdResponse) GetJSON500() *RespondFailure
- func (r DeleteApiUsersIdResponse) Status() string
- func (r DeleteApiUsersIdResponse) StatusCode() int
- type DeleteitemsBody
- type DeletetagBody
- type DomainAPIToken
- type DomainFile
- type DomainInvite
- type DomainItem
- type DomainKind
- type DomainNoteVersion
- type DomainSavedSearch
- type DomainSidebarSection
- type DomainSnippet
- type DomainTag
- type DomainUser
- type EditfolderBody
- type EditnoteBody
- type EditpasswordInput
- type EdittagBody
- type EdituserInput
- type ForcelayoutPoint
- type ForknoteBody
- type ForknoteMergeBody
- type ForknoteRebaseBody
- type GetApiAddUserParams
- type GetApiAddUserResponse
- func (r GetApiAddUserResponse) ContentType() string
- func (r GetApiAddUserResponse) GetBody() []byte
- func (r GetApiAddUserResponse) GetJSON200() *UsersMode
- func (r GetApiAddUserResponse) GetJSON500() *RespondFailure
- func (r GetApiAddUserResponse) Status() string
- func (r GetApiAddUserResponse) StatusCode() int
- type GetApiExportParams
- type GetApiExportResponse
- type GetApiFilesIdResponse
- type GetApiFilesResponse
- func (r GetApiFilesResponse) ContentType() string
- func (r GetApiFilesResponse) GetBody() []byte
- func (r GetApiFilesResponse) GetJSON200() *[]DomainFile
- func (r GetApiFilesResponse) GetJSON403() *RespondFailure
- func (r GetApiFilesResponse) GetJSON500() *RespondFailure
- func (r GetApiFilesResponse) Status() string
- func (r GetApiFilesResponse) StatusCode() int
- type GetApiFoldersIdResponse
- func (r GetApiFoldersIdResponse) ContentType() string
- func (r GetApiFoldersIdResponse) GetBody() []byte
- func (r GetApiFoldersIdResponse) GetJSON200() *ReaditemResult
- func (r GetApiFoldersIdResponse) GetJSON404() *RespondFailure
- func (r GetApiFoldersIdResponse) GetJSON500() *RespondFailure
- func (r GetApiFoldersIdResponse) Status() string
- func (r GetApiFoldersIdResponse) StatusCode() int
- type GetApiFoldersResponse
- func (r GetApiFoldersResponse) ContentType() string
- func (r GetApiFoldersResponse) GetBody() []byte
- func (r GetApiFoldersResponse) GetJSON200() *[]ListfoldersFolder
- func (r GetApiFoldersResponse) GetJSON500() *RespondFailure
- func (r GetApiFoldersResponse) Status() string
- func (r GetApiFoldersResponse) StatusCode() int
- type GetApiGraphNotesParams
- type GetApiGraphNotesResponse
- func (r GetApiGraphNotesResponse) ContentType() string
- func (r GetApiGraphNotesResponse) GetBody() []byte
- func (r GetApiGraphNotesResponse) GetJSON200() *ReadgraphResult
- func (r GetApiGraphNotesResponse) GetJSON500() *RespondFailure
- func (r GetApiGraphNotesResponse) Status() string
- func (r GetApiGraphNotesResponse) StatusCode() int
- type GetApiGraphResponse
- func (r GetApiGraphResponse) ContentType() string
- func (r GetApiGraphResponse) GetBody() []byte
- func (r GetApiGraphResponse) GetJSON200() *[]CounttagsTagCount
- func (r GetApiGraphResponse) GetJSON500() *RespondFailure
- func (r GetApiGraphResponse) Status() string
- func (r GetApiGraphResponse) StatusCode() int
- type GetApiInvitesResponse
- func (r GetApiInvitesResponse) ContentType() string
- func (r GetApiInvitesResponse) GetBody() []byte
- func (r GetApiInvitesResponse) GetJSON200() *[]DomainInvite
- func (r GetApiInvitesResponse) GetJSON401() *RespondFailure
- func (r GetApiInvitesResponse) GetJSON403() *RespondFailure
- func (r GetApiInvitesResponse) GetJSON500() *RespondFailure
- func (r GetApiInvitesResponse) Status() string
- func (r GetApiInvitesResponse) StatusCode() int
- type GetApiItemsParams
- type GetApiItemsResponse
- func (r GetApiItemsResponse) ContentType() string
- func (r GetApiItemsResponse) GetBody() []byte
- func (r GetApiItemsResponse) GetJSON200() *[]DomainItem
- func (r GetApiItemsResponse) GetJSON400() *RespondFailure
- func (r GetApiItemsResponse) GetJSON500() *RespondFailure
- func (r GetApiItemsResponse) Status() string
- func (r GetApiItemsResponse) StatusCode() int
- type GetApiItemsResponse200Headers
- type GetApiLinksBrokenResponse
- func (r GetApiLinksBrokenResponse) ContentType() string
- func (r GetApiLinksBrokenResponse) GetBody() []byte
- func (r GetApiLinksBrokenResponse) GetJSON200() *[]ListbrokenlinksLink
- func (r GetApiLinksBrokenResponse) GetJSON403() *RespondFailure
- func (r GetApiLinksBrokenResponse) GetJSON500() *RespondFailure
- func (r GetApiLinksBrokenResponse) Status() string
- func (r GetApiLinksBrokenResponse) StatusCode() int
- type GetApiMeResponse
- type GetApiMeStatsResponse
- func (r GetApiMeStatsResponse) ContentType() string
- func (r GetApiMeStatsResponse) GetBody() []byte
- func (r GetApiMeStatsResponse) GetJSON200() *CountnotesStats
- func (r GetApiMeStatsResponse) GetJSON401() *RespondFailure
- func (r GetApiMeStatsResponse) GetJSON500() *RespondFailure
- func (r GetApiMeStatsResponse) Status() string
- func (r GetApiMeStatsResponse) StatusCode() int
- type GetApiMeTokensResponse
- func (r GetApiMeTokensResponse) ContentType() string
- func (r GetApiMeTokensResponse) GetBody() []byte
- func (r GetApiMeTokensResponse) GetJSON200() *[]DomainAPIToken
- func (r GetApiMeTokensResponse) GetJSON401() *RespondFailure
- func (r GetApiMeTokensResponse) GetJSON403() *RespondFailure
- func (r GetApiMeTokensResponse) GetJSON500() *RespondFailure
- func (r GetApiMeTokensResponse) Status() string
- func (r GetApiMeTokensResponse) StatusCode() int
- type GetApiNotesIdForkResponse
- func (r GetApiNotesIdForkResponse) ContentType() string
- func (r GetApiNotesIdForkResponse) GetBody() []byte
- func (r GetApiNotesIdForkResponse) GetJSON200() *ReadforkResult
- func (r GetApiNotesIdForkResponse) GetJSON404() *RespondFailure
- func (r GetApiNotesIdForkResponse) GetJSON500() *RespondFailure
- func (r GetApiNotesIdForkResponse) Status() string
- func (r GetApiNotesIdForkResponse) StatusCode() int
- type GetApiNotesIdGraphResponse
- func (r GetApiNotesIdGraphResponse) ContentType() string
- func (r GetApiNotesIdGraphResponse) GetBody() []byte
- func (r GetApiNotesIdGraphResponse) GetJSON200() *ReadgraphResult
- func (r GetApiNotesIdGraphResponse) GetJSON404() *RespondFailure
- func (r GetApiNotesIdGraphResponse) GetJSON500() *RespondFailure
- func (r GetApiNotesIdGraphResponse) Status() string
- func (r GetApiNotesIdGraphResponse) StatusCode() int
- type GetApiNotesIdNeighborsResponse
- func (r GetApiNotesIdNeighborsResponse) ContentType() string
- func (r GetApiNotesIdNeighborsResponse) GetBody() []byte
- func (r GetApiNotesIdNeighborsResponse) GetJSON200() *ReadneighborsResult
- func (r GetApiNotesIdNeighborsResponse) GetJSON404() *RespondFailure
- func (r GetApiNotesIdNeighborsResponse) GetJSON500() *RespondFailure
- func (r GetApiNotesIdNeighborsResponse) Status() string
- func (r GetApiNotesIdNeighborsResponse) StatusCode() int
- type GetApiNotesIdResponse
- func (r GetApiNotesIdResponse) ContentType() string
- func (r GetApiNotesIdResponse) GetBody() []byte
- func (r GetApiNotesIdResponse) GetJSON200() *ReaditemResult
- func (r GetApiNotesIdResponse) GetJSON404() *RespondFailure
- func (r GetApiNotesIdResponse) GetJSON500() *RespondFailure
- func (r GetApiNotesIdResponse) Status() string
- func (r GetApiNotesIdResponse) StatusCode() int
- type GetApiNotesIdVersionsResponse
- func (r GetApiNotesIdVersionsResponse) ContentType() string
- func (r GetApiNotesIdVersionsResponse) GetBody() []byte
- func (r GetApiNotesIdVersionsResponse) GetJSON200() *[]DomainNoteVersion
- func (r GetApiNotesIdVersionsResponse) GetJSON403() *RespondFailure
- func (r GetApiNotesIdVersionsResponse) GetJSON404() *RespondFailure
- func (r GetApiNotesIdVersionsResponse) GetJSON500() *RespondFailure
- func (r GetApiNotesIdVersionsResponse) Status() string
- func (r GetApiNotesIdVersionsResponse) StatusCode() int
- type GetApiNotesIdVersionsVersionResponse
- func (r GetApiNotesIdVersionsVersionResponse) ContentType() string
- func (r GetApiNotesIdVersionsVersionResponse) GetBody() []byte
- func (r GetApiNotesIdVersionsVersionResponse) GetJSON200() *DomainNoteVersion
- func (r GetApiNotesIdVersionsVersionResponse) GetJSON400() *RespondFailure
- func (r GetApiNotesIdVersionsVersionResponse) GetJSON403() *RespondFailure
- func (r GetApiNotesIdVersionsVersionResponse) GetJSON404() *RespondFailure
- func (r GetApiNotesIdVersionsVersionResponse) GetJSON500() *RespondFailure
- func (r GetApiNotesIdVersionsVersionResponse) Status() string
- func (r GetApiNotesIdVersionsVersionResponse) StatusCode() int
- type GetApiNotesParams
- type GetApiNotesResponse
- func (r GetApiNotesResponse) ContentType() string
- func (r GetApiNotesResponse) GetBody() []byte
- func (r GetApiNotesResponse) GetJSON200() *[]ReadgraphNote
- func (r GetApiNotesResponse) GetJSON500() *RespondFailure
- func (r GetApiNotesResponse) Status() string
- func (r GetApiNotesResponse) StatusCode() int
- type GetApiPinnedResponse
- func (r GetApiPinnedResponse) ContentType() string
- func (r GetApiPinnedResponse) GetBody() []byte
- func (r GetApiPinnedResponse) GetJSON200() *[]ListpinnedPinned
- func (r GetApiPinnedResponse) GetJSON500() *RespondFailure
- func (r GetApiPinnedResponse) Status() string
- func (r GetApiPinnedResponse) StatusCode() int
- type GetApiPlansResponse
- func (r GetApiPlansResponse) ContentType() string
- func (r GetApiPlansResponse) GetBody() []byte
- func (r GetApiPlansResponse) GetJSON200() *[]ReadplansPlan
- func (r GetApiPlansResponse) GetJSON401() *RespondFailure
- func (r GetApiPlansResponse) Status() string
- func (r GetApiPlansResponse) StatusCode() int
- type GetApiRecentResponse
- func (r GetApiRecentResponse) ContentType() string
- func (r GetApiRecentResponse) GetBody() []byte
- func (r GetApiRecentResponse) GetJSON200() *[]ListrecentRecent
- func (r GetApiRecentResponse) GetJSON500() *RespondFailure
- func (r GetApiRecentResponse) Status() string
- func (r GetApiRecentResponse) StatusCode() int
- type GetApiResolveParams
- type GetApiResolveResponse
- func (r GetApiResolveResponse) ContentType() string
- func (r GetApiResolveResponse) GetBody() []byte
- func (r GetApiResolveResponse) GetJSON200() *ReadpathResolved
- func (r GetApiResolveResponse) GetJSON404() *RespondFailure
- func (r GetApiResolveResponse) GetJSON409() *RespondFailure
- func (r GetApiResolveResponse) GetJSON500() *RespondFailure
- func (r GetApiResolveResponse) Status() string
- func (r GetApiResolveResponse) StatusCode() int
- type GetApiSearchParams
- type GetApiSearchResponse
- func (r GetApiSearchResponse) ContentType() string
- func (r GetApiSearchResponse) GetBody() []byte
- func (r GetApiSearchResponse) GetJSON200() *[]SearchnotesMatch
- func (r GetApiSearchResponse) GetJSON400() *RespondFailure
- func (r GetApiSearchResponse) GetJSON500() *RespondFailure
- func (r GetApiSearchResponse) Status() string
- func (r GetApiSearchResponse) StatusCode() int
- type GetApiSearchResponse200Headers
- type GetApiSearchesIdParams
- type GetApiSearchesIdResponse
- func (r GetApiSearchesIdResponse) ContentType() string
- func (r GetApiSearchesIdResponse) GetBody() []byte
- func (r GetApiSearchesIdResponse) GetJSON200() *[]RunsavedsearchMatch
- func (r GetApiSearchesIdResponse) GetJSON403() *RespondFailure
- func (r GetApiSearchesIdResponse) GetJSON404() *RespondFailure
- func (r GetApiSearchesIdResponse) GetJSON500() *RespondFailure
- func (r GetApiSearchesIdResponse) Status() string
- func (r GetApiSearchesIdResponse) StatusCode() int
- type GetApiSearchesIdResponse200Headers
- type GetApiTagsResponse
- type GetApiTagsValueParams
- type GetApiTagsValueResponse
- func (r GetApiTagsValueResponse) ContentType() string
- func (r GetApiTagsValueResponse) GetBody() []byte
- func (r GetApiTagsValueResponse) GetJSON200() *ReadtagResult
- func (r GetApiTagsValueResponse) GetJSON404() *RespondFailure
- func (r GetApiTagsValueResponse) GetJSON500() *RespondFailure
- func (r GetApiTagsValueResponse) Status() string
- func (r GetApiTagsValueResponse) StatusCode() int
- type GetApiTagsValueResponse200Headers
- type GetApiTrashResponse
- func (r GetApiTrashResponse) ContentType() string
- func (r GetApiTrashResponse) GetBody() []byte
- func (r GetApiTrashResponse) GetJSON200() *[]ListtrashTrashed
- func (r GetApiTrashResponse) GetJSON500() *RespondFailure
- func (r GetApiTrashResponse) Status() string
- func (r GetApiTrashResponse) StatusCode() int
- type GetApiUsersResponse
- func (r GetApiUsersResponse) ContentType() string
- func (r GetApiUsersResponse) GetBody() []byte
- func (r GetApiUsersResponse) GetJSON200() *[]UsersAccount
- func (r GetApiUsersResponse) GetJSON401() *RespondFailure
- func (r GetApiUsersResponse) GetJSON403() *RespondFailure
- func (r GetApiUsersResponse) GetJSON500() *RespondFailure
- func (r GetApiUsersResponse) Status() string
- func (r GetApiUsersResponse) StatusCode() int
- type GetApiVersionResponse
- func (r GetApiVersionResponse) ContentType() string
- func (r GetApiVersionResponse) GetBody() []byte
- func (r GetApiVersionResponse) GetJSON200() *UsersVersion
- func (r GetApiVersionResponse) GetJSON401() *RespondFailure
- func (r GetApiVersionResponse) GetJSON403() *RespondFailure
- func (r GetApiVersionResponse) GetJSON500() *RespondFailure
- func (r GetApiVersionResponse) Status() string
- func (r GetApiVersionResponse) StatusCode() int
- type HttpRequestDoer
- type ImportnotesResult
- type ListbrokenlinksLink
- type ListbrokenlinksLinkKind
- type ListfoldersFolder
- type ListpinnedPinned
- type ListrecentRecent
- type ListtrashTrashed
- type MoveitemsInput
- type PatchApiFoldersIdJSONRequestBody
- type PatchApiFoldersIdResponse
- func (r PatchApiFoldersIdResponse) ContentType() string
- func (r PatchApiFoldersIdResponse) GetBody() []byte
- func (r PatchApiFoldersIdResponse) GetJSON200() *DomainItem
- func (r PatchApiFoldersIdResponse) GetJSON400() *RespondFailure
- func (r PatchApiFoldersIdResponse) GetJSON404() *RespondFailure
- func (r PatchApiFoldersIdResponse) GetJSON409() *RespondFailure
- func (r PatchApiFoldersIdResponse) GetJSON413() *RespondFailure
- func (r PatchApiFoldersIdResponse) GetJSON500() *RespondFailure
- func (r PatchApiFoldersIdResponse) Status() string
- func (r PatchApiFoldersIdResponse) StatusCode() int
- type PatchApiMeJSONRequestBody
- type PatchApiMePasswordJSONRequestBody
- type PatchApiMePasswordResponse
- func (r PatchApiMePasswordResponse) ContentType() string
- func (r PatchApiMePasswordResponse) GetBody() []byte
- func (r PatchApiMePasswordResponse) GetJSON400() *RespondFailure
- func (r PatchApiMePasswordResponse) GetJSON401() *RespondFailure
- func (r PatchApiMePasswordResponse) GetJSON429() *RespondFailure
- func (r PatchApiMePasswordResponse) GetJSON500() *RespondFailure
- func (r PatchApiMePasswordResponse) Status() string
- func (r PatchApiMePasswordResponse) StatusCode() int
- type PatchApiMeResponse
- func (r PatchApiMeResponse) ContentType() string
- func (r PatchApiMeResponse) GetBody() []byte
- func (r PatchApiMeResponse) GetJSON200() *DomainUser
- func (r PatchApiMeResponse) GetJSON400() *RespondFailure
- func (r PatchApiMeResponse) GetJSON401() *RespondFailure
- func (r PatchApiMeResponse) GetJSON403() *RespondFailure
- func (r PatchApiMeResponse) GetJSON409() *RespondFailure
- func (r PatchApiMeResponse) GetJSON413() *RespondFailure
- func (r PatchApiMeResponse) GetJSON500() *RespondFailure
- func (r PatchApiMeResponse) Status() string
- func (r PatchApiMeResponse) StatusCode() int
- type PatchApiNotesIdJSONRequestBody
- type PatchApiNotesIdResponse
- func (r PatchApiNotesIdResponse) ContentType() string
- func (r PatchApiNotesIdResponse) GetBody() []byte
- func (r PatchApiNotesIdResponse) GetJSON200() *ReaditemResult
- func (r PatchApiNotesIdResponse) GetJSON400() *RespondFailure
- func (r PatchApiNotesIdResponse) GetJSON404() *RespondFailure
- func (r PatchApiNotesIdResponse) GetJSON409() *RespondFailure
- func (r PatchApiNotesIdResponse) GetJSON413() *RespondFailure
- func (r PatchApiNotesIdResponse) GetJSON500() *RespondFailure
- func (r PatchApiNotesIdResponse) Status() string
- func (r PatchApiNotesIdResponse) StatusCode() int
- type PatchApiNotesTagsJSONRequestBody
- type PatchApiNotesTagsResponse
- func (r PatchApiNotesTagsResponse) ContentType() string
- func (r PatchApiNotesTagsResponse) GetBody() []byte
- func (r PatchApiNotesTagsResponse) GetJSON200() *[]TagnotesTagged
- func (r PatchApiNotesTagsResponse) GetJSON400() *RespondFailure
- func (r PatchApiNotesTagsResponse) GetJSON500() *RespondFailure
- func (r PatchApiNotesTagsResponse) Status() string
- func (r PatchApiNotesTagsResponse) StatusCode() int
- type PatchApiTagsValueJSONRequestBody
- type PatchApiTagsValueResponse
- func (r PatchApiTagsValueResponse) ContentType() string
- func (r PatchApiTagsValueResponse) GetBody() []byte
- func (r PatchApiTagsValueResponse) GetJSON200() *DomainTag
- func (r PatchApiTagsValueResponse) GetJSON400() *RespondFailure
- func (r PatchApiTagsValueResponse) GetJSON404() *RespondFailure
- func (r PatchApiTagsValueResponse) GetJSON409() *RespondFailure
- func (r PatchApiTagsValueResponse) GetJSON413() *RespondFailure
- func (r PatchApiTagsValueResponse) GetJSON500() *RespondFailure
- func (r PatchApiTagsValueResponse) Status() string
- func (r PatchApiTagsValueResponse) StatusCode() int
- type PostApiFilesJSONBody
- type PostApiFilesJSONRequestBody
- type PostApiFilesParams
- type PostApiFilesResponse
- func (r PostApiFilesResponse) ContentType() string
- func (r PostApiFilesResponse) GetBody() []byte
- func (r PostApiFilesResponse) GetJSON201() *DomainFile
- func (r PostApiFilesResponse) GetJSON400() *RespondFailure
- func (r PostApiFilesResponse) GetJSON413() *RespondFailure
- func (r PostApiFilesResponse) GetJSON415() *RespondFailure
- func (r PostApiFilesResponse) GetJSON500() *RespondFailure
- func (r PostApiFilesResponse) Status() string
- func (r PostApiFilesResponse) StatusCode() int
- type PostApiFoldersJSONRequestBody
- type PostApiFoldersResponse
- func (r PostApiFoldersResponse) ContentType() string
- func (r PostApiFoldersResponse) GetBody() []byte
- func (r PostApiFoldersResponse) GetJSON201() *DomainItem
- func (r PostApiFoldersResponse) GetJSON400() *RespondFailure
- func (r PostApiFoldersResponse) GetJSON409() *RespondFailure
- func (r PostApiFoldersResponse) GetJSON413() *RespondFailure
- func (r PostApiFoldersResponse) GetJSON500() *RespondFailure
- func (r PostApiFoldersResponse) Status() string
- func (r PostApiFoldersResponse) StatusCode() int
- type PostApiImportJSONBody
- type PostApiImportJSONRequestBody
- type PostApiImportMultipartBody
- type PostApiImportMultipartRequestBody
- type PostApiImportParams
- type PostApiImportResponse
- func (r PostApiImportResponse) ContentType() string
- func (r PostApiImportResponse) GetBody() []byte
- func (r PostApiImportResponse) GetJSON200() *ImportnotesResult
- func (r PostApiImportResponse) GetJSON400() *RespondFailure
- func (r PostApiImportResponse) GetJSON409() *RespondFailure
- func (r PostApiImportResponse) GetJSON413() *RespondFailure
- func (r PostApiImportResponse) GetJSON500() *RespondFailure
- func (r PostApiImportResponse) Status() string
- func (r PostApiImportResponse) StatusCode() int
- type PostApiInvitesResponse
- func (r PostApiInvitesResponse) ContentType() string
- func (r PostApiInvitesResponse) GetBody() []byte
- func (r PostApiInvitesResponse) GetJSON201() *AddinviteResult
- func (r PostApiInvitesResponse) GetJSON401() *RespondFailure
- func (r PostApiInvitesResponse) GetJSON403() *RespondFailure
- func (r PostApiInvitesResponse) GetJSON500() *RespondFailure
- func (r PostApiInvitesResponse) Status() string
- func (r PostApiInvitesResponse) StatusCode() int
- type PostApiLoginJSONRequestBody
- type PostApiLoginResponse
- func (r PostApiLoginResponse) ContentType() string
- func (r PostApiLoginResponse) GetBody() []byte
- func (r PostApiLoginResponse) GetJSON200() *CreatesessionResult
- func (r PostApiLoginResponse) GetJSON400() *RespondFailure
- func (r PostApiLoginResponse) GetJSON401() *RespondFailure
- func (r PostApiLoginResponse) GetJSON429() *RespondFailure
- func (r PostApiLoginResponse) GetJSON500() *RespondFailure
- func (r PostApiLoginResponse) Status() string
- func (r PostApiLoginResponse) StatusCode() int
- type PostApiLogoutResponse
- func (r PostApiLogoutResponse) ContentType() string
- func (r PostApiLogoutResponse) GetBody() []byte
- func (r PostApiLogoutResponse) GetJSON401() *RespondFailure
- func (r PostApiLogoutResponse) GetJSON500() *RespondFailure
- func (r PostApiLogoutResponse) Status() string
- func (r PostApiLogoutResponse) StatusCode() int
- type PostApiMeTokensJSONRequestBody
- type PostApiMeTokensResponse
- func (r PostApiMeTokensResponse) ContentType() string
- func (r PostApiMeTokensResponse) GetBody() []byte
- func (r PostApiMeTokensResponse) GetJSON201() *CreateapitokenResult
- func (r PostApiMeTokensResponse) GetJSON400() *RespondFailure
- func (r PostApiMeTokensResponse) GetJSON401() *RespondFailure
- func (r PostApiMeTokensResponse) GetJSON403() *RespondFailure
- func (r PostApiMeTokensResponse) GetJSON500() *RespondFailure
- func (r PostApiMeTokensResponse) Status() string
- func (r PostApiMeTokensResponse) StatusCode() int
- type PostApiMoveJSONRequestBody
- type PostApiMoveResponse
- func (r PostApiMoveResponse) ContentType() string
- func (r PostApiMoveResponse) GetBody() []byte
- func (r PostApiMoveResponse) GetJSON200() *[]DomainItem
- func (r PostApiMoveResponse) GetJSON400() *RespondFailure
- func (r PostApiMoveResponse) GetJSON409() *RespondFailure
- func (r PostApiMoveResponse) GetJSON413() *RespondFailure
- func (r PostApiMoveResponse) GetJSON500() *RespondFailure
- func (r PostApiMoveResponse) Status() string
- func (r PostApiMoveResponse) StatusCode() int
- type PostApiNotesIdForksJSONRequestBody
- type PostApiNotesIdForksResponse
- func (r PostApiNotesIdForksResponse) ContentType() string
- func (r PostApiNotesIdForksResponse) GetBody() []byte
- func (r PostApiNotesIdForksResponse) GetJSON201() *DomainItem
- func (r PostApiNotesIdForksResponse) GetJSON400() *RespondFailure
- func (r PostApiNotesIdForksResponse) GetJSON404() *RespondFailure
- func (r PostApiNotesIdForksResponse) GetJSON413() *RespondFailure
- func (r PostApiNotesIdForksResponse) GetJSON500() *RespondFailure
- func (r PostApiNotesIdForksResponse) Status() string
- func (r PostApiNotesIdForksResponse) StatusCode() int
- type PostApiNotesIdMergeJSONRequestBody
- type PostApiNotesIdMergeResponse
- func (r PostApiNotesIdMergeResponse) ContentType() string
- func (r PostApiNotesIdMergeResponse) GetBody() []byte
- func (r PostApiNotesIdMergeResponse) GetJSON200() *ReaditemResult
- func (r PostApiNotesIdMergeResponse) GetJSON400() *RespondFailure
- func (r PostApiNotesIdMergeResponse) GetJSON404() *RespondFailure
- func (r PostApiNotesIdMergeResponse) GetJSON409() *RespondFailure
- func (r PostApiNotesIdMergeResponse) GetJSON413() *RespondFailure
- func (r PostApiNotesIdMergeResponse) GetJSON500() *RespondFailure
- func (r PostApiNotesIdMergeResponse) Status() string
- func (r PostApiNotesIdMergeResponse) StatusCode() int
- type PostApiNotesIdRebaseJSONRequestBody
- type PostApiNotesIdRebaseResponse
- func (r PostApiNotesIdRebaseResponse) ContentType() string
- func (r PostApiNotesIdRebaseResponse) GetBody() []byte
- func (r PostApiNotesIdRebaseResponse) GetJSON200() *ReaditemResult
- func (r PostApiNotesIdRebaseResponse) GetJSON400() *RespondFailure
- func (r PostApiNotesIdRebaseResponse) GetJSON404() *RespondFailure
- func (r PostApiNotesIdRebaseResponse) GetJSON409() *RespondFailure
- func (r PostApiNotesIdRebaseResponse) GetJSON413() *RespondFailure
- func (r PostApiNotesIdRebaseResponse) GetJSON500() *RespondFailure
- func (r PostApiNotesIdRebaseResponse) Status() string
- func (r PostApiNotesIdRebaseResponse) StatusCode() int
- type PostApiNotesIdUnmergeResponse
- func (r PostApiNotesIdUnmergeResponse) ContentType() string
- func (r PostApiNotesIdUnmergeResponse) GetBody() []byte
- func (r PostApiNotesIdUnmergeResponse) GetJSON200() *ReaditemResult
- func (r PostApiNotesIdUnmergeResponse) GetJSON404() *RespondFailure
- func (r PostApiNotesIdUnmergeResponse) GetJSON409() *RespondFailure
- func (r PostApiNotesIdUnmergeResponse) GetJSON500() *RespondFailure
- func (r PostApiNotesIdUnmergeResponse) Status() string
- func (r PostApiNotesIdUnmergeResponse) StatusCode() int
- type PostApiNotesIdVersionsJSONRequestBody
- type PostApiNotesIdVersionsResponse
- func (r PostApiNotesIdVersionsResponse) ContentType() string
- func (r PostApiNotesIdVersionsResponse) GetBody() []byte
- func (r PostApiNotesIdVersionsResponse) GetJSON201() *DomainNoteVersion
- func (r PostApiNotesIdVersionsResponse) GetJSON400() *RespondFailure
- func (r PostApiNotesIdVersionsResponse) GetJSON404() *RespondFailure
- func (r PostApiNotesIdVersionsResponse) GetJSON413() *RespondFailure
- func (r PostApiNotesIdVersionsResponse) GetJSON500() *RespondFailure
- func (r PostApiNotesIdVersionsResponse) Status() string
- func (r PostApiNotesIdVersionsResponse) StatusCode() int
- type PostApiNotesJSONRequestBody
- type PostApiNotesReadJSONRequestBody
- type PostApiNotesReadResponse
- func (r PostApiNotesReadResponse) ContentType() string
- func (r PostApiNotesReadResponse) GetBody() []byte
- func (r PostApiNotesReadResponse) GetJSON200() *[]ReadnotesNote
- func (r PostApiNotesReadResponse) GetJSON400() *RespondFailure
- func (r PostApiNotesReadResponse) GetJSON404() *RespondFailure
- func (r PostApiNotesReadResponse) GetJSON409() *RespondFailure
- func (r PostApiNotesReadResponse) GetJSON500() *RespondFailure
- func (r PostApiNotesReadResponse) Status() string
- func (r PostApiNotesReadResponse) StatusCode() int
- type PostApiNotesResponse
- func (r PostApiNotesResponse) ContentType() string
- func (r PostApiNotesResponse) GetBody() []byte
- func (r PostApiNotesResponse) GetJSON201() *DomainItem
- func (r PostApiNotesResponse) GetJSON400() *RespondFailure
- func (r PostApiNotesResponse) GetJSON413() *RespondFailure
- func (r PostApiNotesResponse) GetJSON500() *RespondFailure
- func (r PostApiNotesResponse) Status() string
- func (r PostApiNotesResponse) StatusCode() int
- type PostApiNotesTagsJSONRequestBody
- type PostApiNotesTagsResponse
- func (r PostApiNotesTagsResponse) ContentType() string
- func (r PostApiNotesTagsResponse) GetBody() []byte
- func (r PostApiNotesTagsResponse) GetJSON200() *map[string][]string
- func (r PostApiNotesTagsResponse) GetJSON400() *RespondFailure
- func (r PostApiNotesTagsResponse) GetJSON413() *RespondFailure
- func (r PostApiNotesTagsResponse) GetJSON500() *RespondFailure
- func (r PostApiNotesTagsResponse) Status() string
- func (r PostApiNotesTagsResponse) StatusCode() int
- type PostApiReplaceJSONRequestBody
- type PostApiReplaceResponse
- func (r PostApiReplaceResponse) ContentType() string
- func (r PostApiReplaceResponse) GetBody() []byte
- func (r PostApiReplaceResponse) GetJSON200() *ReplacenotesResult
- func (r PostApiReplaceResponse) GetJSON400() *RespondFailure
- func (r PostApiReplaceResponse) GetJSON403() *RespondFailure
- func (r PostApiReplaceResponse) GetJSON413() *RespondFailure
- func (r PostApiReplaceResponse) GetJSON500() *RespondFailure
- func (r PostApiReplaceResponse) Status() string
- func (r PostApiReplaceResponse) StatusCode() int
- type PostApiRestoreJSONRequestBody
- type PostApiRestoreResponse
- func (r PostApiRestoreResponse) ContentType() string
- func (r PostApiRestoreResponse) GetBody() []byte
- func (r PostApiRestoreResponse) GetJSON200() *[]DomainItem
- func (r PostApiRestoreResponse) GetJSON400() *RespondFailure
- func (r PostApiRestoreResponse) GetJSON409() *RespondFailure
- func (r PostApiRestoreResponse) GetJSON413() *RespondFailure
- func (r PostApiRestoreResponse) GetJSON500() *RespondFailure
- func (r PostApiRestoreResponse) Status() string
- func (r PostApiRestoreResponse) StatusCode() int
- type PostApiSearchesJSONRequestBody
- type PostApiSearchesParams
- type PostApiSearchesResponse
- func (r PostApiSearchesResponse) ContentType() string
- func (r PostApiSearchesResponse) GetBody() []byte
- func (r PostApiSearchesResponse) GetJSON200() *[]RunsavedsearchMatch
- func (r PostApiSearchesResponse) GetJSON400() *RespondFailure
- func (r PostApiSearchesResponse) GetJSON403() *RespondFailure
- func (r PostApiSearchesResponse) GetJSON500() *RespondFailure
- func (r PostApiSearchesResponse) Status() string
- func (r PostApiSearchesResponse) StatusCode() int
- type PostApiSearchesResponse200Headers
- type PostApiSignupJSONRequestBody
- type PostApiSignupResponse
- func (r PostApiSignupResponse) ContentType() string
- func (r PostApiSignupResponse) GetBody() []byte
- func (r PostApiSignupResponse) GetJSON200() *CreatesessionResult
- func (r PostApiSignupResponse) GetJSON400() *RespondFailure
- func (r PostApiSignupResponse) GetJSON403() *RespondFailure
- func (r PostApiSignupResponse) GetJSON409() *RespondFailure
- func (r PostApiSignupResponse) GetJSON429() *RespondFailure
- func (r PostApiSignupResponse) GetJSON500() *RespondFailure
- func (r PostApiSignupResponse) Status() string
- func (r PostApiSignupResponse) StatusCode() int
- type PostApiTagsJSONRequestBody
- type PostApiTagsResponse
- func (r PostApiTagsResponse) ContentType() string
- func (r PostApiTagsResponse) GetBody() []byte
- func (r PostApiTagsResponse) GetJSON201() *[]DomainTag
- func (r PostApiTagsResponse) GetJSON400() *RespondFailure
- func (r PostApiTagsResponse) GetJSON413() *RespondFailure
- func (r PostApiTagsResponse) GetJSON500() *RespondFailure
- func (r PostApiTagsResponse) Status() string
- func (r PostApiTagsResponse) StatusCode() int
- type PostApiUsersIdPasswordResponse
- func (r PostApiUsersIdPasswordResponse) ContentType() string
- func (r PostApiUsersIdPasswordResponse) GetBody() []byte
- func (r PostApiUsersIdPasswordResponse) GetJSON200() *UsersReset
- func (r PostApiUsersIdPasswordResponse) GetJSON400() *RespondFailure
- func (r PostApiUsersIdPasswordResponse) GetJSON401() *RespondFailure
- func (r PostApiUsersIdPasswordResponse) GetJSON403() *RespondFailure
- func (r PostApiUsersIdPasswordResponse) GetJSON404() *RespondFailure
- func (r PostApiUsersIdPasswordResponse) GetJSON500() *RespondFailure
- func (r PostApiUsersIdPasswordResponse) Status() string
- func (r PostApiUsersIdPasswordResponse) StatusCode() int
- type ReadforkResult
- type ReadgraphLink
- type ReadgraphNote
- type ReadgraphResult
- type ReaditemResult
- type ReadneighborsLinked
- type ReadneighborsNeighbor
- type ReadneighborsResult
- type ReadnotesBody
- type ReadnotesNote
- type ReadnotetagsBody
- type ReadpathResolved
- type ReadplansPlan
- type ReadtagNote
- type ReadtagResult
- type ReadversionsBody
- type ReplacenotesInput
- type ReplacenotesResult
- type RequestEditorFn
- type RespondFailure
- type RestoreBody
- type RunsavedsearchMatch
- type SearchnotesMatch
- type Session
- type TagnotesInput
- type TagnotesTagged
- type UsersAccount
- type UsersMode
- type UsersReset
- type UsersVersion
Constants ¶
This section is empty.
Variables ¶
var ( ErrNoSession = errors.New("not logged in: run " + config.Current.Name + " login <url>") ErrTimeout = errors.New("the server did not answer in time") )
var Timeout, Transfer = 60 * time.Second, 10 * time.Minute
Timeout bounds a call to the API, so a server that goes silent does not freeze a command or the MCP; Transfer is the longer limit Long gives an import, an export or a file.
Functions ¶
func Deleted ¶
Deleted reads the answer of a DELETE: true when deleted, false when there was nothing to delete, which the batch commands skip. A server older than the CLI answers 204 instead of what it deleted.
func Deref ¶
func Deref[T any](value *T) T
Deref is the zero value for an optional field the API left out.
func Fail ¶
Fail is the error of an answer the caller did not expect: the API's message, else the HTTP status.
func NewDeleteApiFoldersIdRequest ¶
NewDeleteApiFoldersIdRequest constructs an http.Request for the DeleteApiFoldersId method
func NewDeleteApiFoldersRequest ¶
func NewDeleteApiFoldersRequest(server string, body DeleteApiFoldersJSONRequestBody) (*http.Request, error)
NewDeleteApiFoldersRequest calls the generic DeleteApiFolders builder with application/json body
func NewDeleteApiFoldersRequestWithBody ¶
func NewDeleteApiFoldersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteApiFoldersRequestWithBody constructs an http.Request for the DeleteApiFolders method, with any body, and a specified content type
func NewDeleteApiInvitesIdRequest ¶
NewDeleteApiInvitesIdRequest constructs an http.Request for the DeleteApiInvitesId method
func NewDeleteApiMeDataRequest ¶
NewDeleteApiMeDataRequest constructs an http.Request for the DeleteApiMeData method
func NewDeleteApiMeTokensIdRequest ¶
NewDeleteApiMeTokensIdRequest constructs an http.Request for the DeleteApiMeTokensId method
func NewDeleteApiNotesIdRequest ¶
NewDeleteApiNotesIdRequest constructs an http.Request for the DeleteApiNotesId method
func NewDeleteApiNotesRequest ¶
func NewDeleteApiNotesRequest(server string, body DeleteApiNotesJSONRequestBody) (*http.Request, error)
NewDeleteApiNotesRequest calls the generic DeleteApiNotes builder with application/json body
func NewDeleteApiNotesRequestWithBody ¶
func NewDeleteApiNotesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteApiNotesRequestWithBody constructs an http.Request for the DeleteApiNotes method, with any body, and a specified content type
func NewDeleteApiTagsRequest ¶
func NewDeleteApiTagsRequest(server string, body DeleteApiTagsJSONRequestBody) (*http.Request, error)
NewDeleteApiTagsRequest calls the generic DeleteApiTags builder with application/json body
func NewDeleteApiTagsRequestWithBody ¶
func NewDeleteApiTagsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteApiTagsRequestWithBody constructs an http.Request for the DeleteApiTags method, with any body, and a specified content type
func NewDeleteApiTagsValueRequest ¶
NewDeleteApiTagsValueRequest constructs an http.Request for the DeleteApiTagsValue method
func NewDeleteApiTrashIdRequest ¶
NewDeleteApiTrashIdRequest constructs an http.Request for the DeleteApiTrashId method
func NewDeleteApiTrashRequest ¶
NewDeleteApiTrashRequest constructs an http.Request for the DeleteApiTrash method
func NewDeleteApiUsersIdRequest ¶
NewDeleteApiUsersIdRequest constructs an http.Request for the DeleteApiUsersId method
func NewGetApiAddUserRequest ¶
func NewGetApiAddUserRequest(server string, params *GetApiAddUserParams) (*http.Request, error)
NewGetApiAddUserRequest constructs an http.Request for the GetApiAddUser method
func NewGetApiExportRequest ¶
func NewGetApiExportRequest(server string, params *GetApiExportParams) (*http.Request, error)
NewGetApiExportRequest constructs an http.Request for the GetApiExport method
func NewGetApiFilesIdRequest ¶
NewGetApiFilesIdRequest constructs an http.Request for the GetApiFilesId method
func NewGetApiFilesRequest ¶
NewGetApiFilesRequest constructs an http.Request for the GetApiFiles method
func NewGetApiFoldersIdRequest ¶
NewGetApiFoldersIdRequest constructs an http.Request for the GetApiFoldersId method
func NewGetApiFoldersRequest ¶
NewGetApiFoldersRequest constructs an http.Request for the GetApiFolders method
func NewGetApiGraphNotesRequest ¶
func NewGetApiGraphNotesRequest(server string, params *GetApiGraphNotesParams) (*http.Request, error)
NewGetApiGraphNotesRequest constructs an http.Request for the GetApiGraphNotes method
func NewGetApiGraphRequest ¶
NewGetApiGraphRequest constructs an http.Request for the GetApiGraph method
func NewGetApiInvitesRequest ¶
NewGetApiInvitesRequest constructs an http.Request for the GetApiInvites method
func NewGetApiItemsRequest ¶
func NewGetApiItemsRequest(server string, params *GetApiItemsParams) (*http.Request, error)
NewGetApiItemsRequest constructs an http.Request for the GetApiItems method
func NewGetApiLinksBrokenRequest ¶
NewGetApiLinksBrokenRequest constructs an http.Request for the GetApiLinksBroken method
func NewGetApiMeRequest ¶
NewGetApiMeRequest constructs an http.Request for the GetApiMe method
func NewGetApiMeStatsRequest ¶
NewGetApiMeStatsRequest constructs an http.Request for the GetApiMeStats method
func NewGetApiMeTokensRequest ¶
NewGetApiMeTokensRequest constructs an http.Request for the GetApiMeTokens method
func NewGetApiNotesIdForkRequest ¶
NewGetApiNotesIdForkRequest constructs an http.Request for the GetApiNotesIdFork method
func NewGetApiNotesIdGraphRequest ¶
NewGetApiNotesIdGraphRequest constructs an http.Request for the GetApiNotesIdGraph method
func NewGetApiNotesIdNeighborsRequest ¶
NewGetApiNotesIdNeighborsRequest constructs an http.Request for the GetApiNotesIdNeighbors method
func NewGetApiNotesIdRequest ¶
NewGetApiNotesIdRequest constructs an http.Request for the GetApiNotesId method
func NewGetApiNotesIdVersionsRequest ¶
NewGetApiNotesIdVersionsRequest constructs an http.Request for the GetApiNotesIdVersions method
func NewGetApiNotesIdVersionsVersionRequest ¶
func NewGetApiNotesIdVersionsVersionRequest(server string, id string, version string) (*http.Request, error)
NewGetApiNotesIdVersionsVersionRequest constructs an http.Request for the GetApiNotesIdVersionsVersion method
func NewGetApiNotesRequest ¶
func NewGetApiNotesRequest(server string, params *GetApiNotesParams) (*http.Request, error)
NewGetApiNotesRequest constructs an http.Request for the GetApiNotes method
func NewGetApiPinnedRequest ¶
NewGetApiPinnedRequest constructs an http.Request for the GetApiPinned method
func NewGetApiPlansRequest ¶
NewGetApiPlansRequest constructs an http.Request for the GetApiPlans method
func NewGetApiRecentRequest ¶
NewGetApiRecentRequest constructs an http.Request for the GetApiRecent method
func NewGetApiResolveRequest ¶
func NewGetApiResolveRequest(server string, params *GetApiResolveParams) (*http.Request, error)
NewGetApiResolveRequest constructs an http.Request for the GetApiResolve method
func NewGetApiSearchRequest ¶
func NewGetApiSearchRequest(server string, params *GetApiSearchParams) (*http.Request, error)
NewGetApiSearchRequest constructs an http.Request for the GetApiSearch method
func NewGetApiSearchesIdRequest ¶
func NewGetApiSearchesIdRequest(server string, id string, params *GetApiSearchesIdParams) (*http.Request, error)
NewGetApiSearchesIdRequest constructs an http.Request for the GetApiSearchesId method
func NewGetApiTagsRequest ¶
NewGetApiTagsRequest constructs an http.Request for the GetApiTags method
func NewGetApiTagsValueRequest ¶
func NewGetApiTagsValueRequest(server string, value string, params *GetApiTagsValueParams) (*http.Request, error)
NewGetApiTagsValueRequest constructs an http.Request for the GetApiTagsValue method
func NewGetApiTrashRequest ¶
NewGetApiTrashRequest constructs an http.Request for the GetApiTrash method
func NewGetApiUsersRequest ¶
NewGetApiUsersRequest constructs an http.Request for the GetApiUsers method
func NewGetApiVersionRequest ¶
NewGetApiVersionRequest constructs an http.Request for the GetApiVersion method
func NewPatchApiFoldersIdRequest ¶
func NewPatchApiFoldersIdRequest(server string, id string, body PatchApiFoldersIdJSONRequestBody) (*http.Request, error)
NewPatchApiFoldersIdRequest calls the generic PatchApiFoldersId builder with application/json body
func NewPatchApiFoldersIdRequestWithBody ¶
func NewPatchApiFoldersIdRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewPatchApiFoldersIdRequestWithBody constructs an http.Request for the PatchApiFoldersId method, with any body, and a specified content type
func NewPatchApiMePasswordRequest ¶
func NewPatchApiMePasswordRequest(server string, body PatchApiMePasswordJSONRequestBody) (*http.Request, error)
NewPatchApiMePasswordRequest calls the generic PatchApiMePassword builder with application/json body
func NewPatchApiMePasswordRequestWithBody ¶
func NewPatchApiMePasswordRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPatchApiMePasswordRequestWithBody constructs an http.Request for the PatchApiMePassword method, with any body, and a specified content type
func NewPatchApiMeRequest ¶
func NewPatchApiMeRequest(server string, body PatchApiMeJSONRequestBody) (*http.Request, error)
NewPatchApiMeRequest calls the generic PatchApiMe builder with application/json body
func NewPatchApiMeRequestWithBody ¶
func NewPatchApiMeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPatchApiMeRequestWithBody constructs an http.Request for the PatchApiMe method, with any body, and a specified content type
func NewPatchApiNotesIdRequest ¶
func NewPatchApiNotesIdRequest(server string, id string, body PatchApiNotesIdJSONRequestBody) (*http.Request, error)
NewPatchApiNotesIdRequest calls the generic PatchApiNotesId builder with application/json body
func NewPatchApiNotesIdRequestWithBody ¶
func NewPatchApiNotesIdRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewPatchApiNotesIdRequestWithBody constructs an http.Request for the PatchApiNotesId method, with any body, and a specified content type
func NewPatchApiNotesTagsRequest ¶ added in v1.3.13
func NewPatchApiNotesTagsRequest(server string, body PatchApiNotesTagsJSONRequestBody) (*http.Request, error)
NewPatchApiNotesTagsRequest calls the generic PatchApiNotesTags builder with application/json body
func NewPatchApiNotesTagsRequestWithBody ¶ added in v1.3.13
func NewPatchApiNotesTagsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPatchApiNotesTagsRequestWithBody constructs an http.Request for the PatchApiNotesTags method, with any body, and a specified content type
func NewPatchApiTagsValueRequest ¶
func NewPatchApiTagsValueRequest(server string, value string, body PatchApiTagsValueJSONRequestBody) (*http.Request, error)
NewPatchApiTagsValueRequest calls the generic PatchApiTagsValue builder with application/json body
func NewPatchApiTagsValueRequestWithBody ¶
func NewPatchApiTagsValueRequestWithBody(server string, value string, contentType string, body io.Reader) (*http.Request, error)
NewPatchApiTagsValueRequestWithBody constructs an http.Request for the PatchApiTagsValue method, with any body, and a specified content type
func NewPostApiFilesRequest ¶
func NewPostApiFilesRequest(server string, params *PostApiFilesParams, body PostApiFilesJSONRequestBody) (*http.Request, error)
NewPostApiFilesRequest calls the generic PostApiFiles builder with application/json body
func NewPostApiFilesRequestWithBody ¶
func NewPostApiFilesRequestWithBody(server string, params *PostApiFilesParams, contentType string, body io.Reader) (*http.Request, error)
NewPostApiFilesRequestWithBody constructs an http.Request for the PostApiFiles method, with any body, and a specified content type
func NewPostApiFoldersRequest ¶
func NewPostApiFoldersRequest(server string, body PostApiFoldersJSONRequestBody) (*http.Request, error)
NewPostApiFoldersRequest calls the generic PostApiFolders builder with application/json body
func NewPostApiFoldersRequestWithBody ¶
func NewPostApiFoldersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiFoldersRequestWithBody constructs an http.Request for the PostApiFolders method, with any body, and a specified content type
func NewPostApiImportRequest ¶
func NewPostApiImportRequest(server string, params *PostApiImportParams, body PostApiImportJSONRequestBody) (*http.Request, error)
NewPostApiImportRequest calls the generic PostApiImport builder with application/json body
func NewPostApiImportRequestWithBody ¶
func NewPostApiImportRequestWithBody(server string, params *PostApiImportParams, contentType string, body io.Reader) (*http.Request, error)
NewPostApiImportRequestWithBody constructs an http.Request for the PostApiImport method, with any body, and a specified content type
func NewPostApiInvitesRequest ¶
NewPostApiInvitesRequest constructs an http.Request for the PostApiInvites method
func NewPostApiLoginRequest ¶
func NewPostApiLoginRequest(server string, body PostApiLoginJSONRequestBody) (*http.Request, error)
NewPostApiLoginRequest calls the generic PostApiLogin builder with application/json body
func NewPostApiLoginRequestWithBody ¶
func NewPostApiLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiLoginRequestWithBody constructs an http.Request for the PostApiLogin method, with any body, and a specified content type
func NewPostApiLogoutRequest ¶
NewPostApiLogoutRequest constructs an http.Request for the PostApiLogout method
func NewPostApiMeTokensRequest ¶
func NewPostApiMeTokensRequest(server string, body PostApiMeTokensJSONRequestBody) (*http.Request, error)
NewPostApiMeTokensRequest calls the generic PostApiMeTokens builder with application/json body
func NewPostApiMeTokensRequestWithBody ¶
func NewPostApiMeTokensRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiMeTokensRequestWithBody constructs an http.Request for the PostApiMeTokens method, with any body, and a specified content type
func NewPostApiMoveRequest ¶
func NewPostApiMoveRequest(server string, body PostApiMoveJSONRequestBody) (*http.Request, error)
NewPostApiMoveRequest calls the generic PostApiMove builder with application/json body
func NewPostApiMoveRequestWithBody ¶
func NewPostApiMoveRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiMoveRequestWithBody constructs an http.Request for the PostApiMove method, with any body, and a specified content type
func NewPostApiNotesIdForksRequest ¶
func NewPostApiNotesIdForksRequest(server string, id string, body PostApiNotesIdForksJSONRequestBody) (*http.Request, error)
NewPostApiNotesIdForksRequest calls the generic PostApiNotesIdForks builder with application/json body
func NewPostApiNotesIdForksRequestWithBody ¶
func NewPostApiNotesIdForksRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiNotesIdForksRequestWithBody constructs an http.Request for the PostApiNotesIdForks method, with any body, and a specified content type
func NewPostApiNotesIdMergeRequest ¶
func NewPostApiNotesIdMergeRequest(server string, id string, body PostApiNotesIdMergeJSONRequestBody) (*http.Request, error)
NewPostApiNotesIdMergeRequest calls the generic PostApiNotesIdMerge builder with application/json body
func NewPostApiNotesIdMergeRequestWithBody ¶
func NewPostApiNotesIdMergeRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiNotesIdMergeRequestWithBody constructs an http.Request for the PostApiNotesIdMerge method, with any body, and a specified content type
func NewPostApiNotesIdRebaseRequest ¶
func NewPostApiNotesIdRebaseRequest(server string, id string, body PostApiNotesIdRebaseJSONRequestBody) (*http.Request, error)
NewPostApiNotesIdRebaseRequest calls the generic PostApiNotesIdRebase builder with application/json body
func NewPostApiNotesIdRebaseRequestWithBody ¶
func NewPostApiNotesIdRebaseRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiNotesIdRebaseRequestWithBody constructs an http.Request for the PostApiNotesIdRebase method, with any body, and a specified content type
func NewPostApiNotesIdUnmergeRequest ¶
NewPostApiNotesIdUnmergeRequest constructs an http.Request for the PostApiNotesIdUnmerge method
func NewPostApiNotesIdVersionsRequest ¶
func NewPostApiNotesIdVersionsRequest(server string, id string, body PostApiNotesIdVersionsJSONRequestBody) (*http.Request, error)
NewPostApiNotesIdVersionsRequest calls the generic PostApiNotesIdVersions builder with application/json body
func NewPostApiNotesIdVersionsRequestWithBody ¶
func NewPostApiNotesIdVersionsRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiNotesIdVersionsRequestWithBody constructs an http.Request for the PostApiNotesIdVersions method, with any body, and a specified content type
func NewPostApiNotesReadRequest ¶ added in v1.3.11
func NewPostApiNotesReadRequest(server string, body PostApiNotesReadJSONRequestBody) (*http.Request, error)
NewPostApiNotesReadRequest calls the generic PostApiNotesRead builder with application/json body
func NewPostApiNotesReadRequestWithBody ¶ added in v1.3.11
func NewPostApiNotesReadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiNotesReadRequestWithBody constructs an http.Request for the PostApiNotesRead method, with any body, and a specified content type
func NewPostApiNotesRequest ¶
func NewPostApiNotesRequest(server string, body PostApiNotesJSONRequestBody) (*http.Request, error)
NewPostApiNotesRequest calls the generic PostApiNotes builder with application/json body
func NewPostApiNotesRequestWithBody ¶
func NewPostApiNotesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiNotesRequestWithBody constructs an http.Request for the PostApiNotes method, with any body, and a specified content type
func NewPostApiNotesTagsRequest ¶
func NewPostApiNotesTagsRequest(server string, body PostApiNotesTagsJSONRequestBody) (*http.Request, error)
NewPostApiNotesTagsRequest calls the generic PostApiNotesTags builder with application/json body
func NewPostApiNotesTagsRequestWithBody ¶
func NewPostApiNotesTagsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiNotesTagsRequestWithBody constructs an http.Request for the PostApiNotesTags method, with any body, and a specified content type
func NewPostApiReplaceRequest ¶
func NewPostApiReplaceRequest(server string, body PostApiReplaceJSONRequestBody) (*http.Request, error)
NewPostApiReplaceRequest calls the generic PostApiReplace builder with application/json body
func NewPostApiReplaceRequestWithBody ¶
func NewPostApiReplaceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiReplaceRequestWithBody constructs an http.Request for the PostApiReplace method, with any body, and a specified content type
func NewPostApiRestoreRequest ¶
func NewPostApiRestoreRequest(server string, body PostApiRestoreJSONRequestBody) (*http.Request, error)
NewPostApiRestoreRequest calls the generic PostApiRestore builder with application/json body
func NewPostApiRestoreRequestWithBody ¶
func NewPostApiRestoreRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiRestoreRequestWithBody constructs an http.Request for the PostApiRestore method, with any body, and a specified content type
func NewPostApiSearchesRequest ¶
func NewPostApiSearchesRequest(server string, params *PostApiSearchesParams, body PostApiSearchesJSONRequestBody) (*http.Request, error)
NewPostApiSearchesRequest calls the generic PostApiSearches builder with application/json body
func NewPostApiSearchesRequestWithBody ¶
func NewPostApiSearchesRequestWithBody(server string, params *PostApiSearchesParams, contentType string, body io.Reader) (*http.Request, error)
NewPostApiSearchesRequestWithBody constructs an http.Request for the PostApiSearches method, with any body, and a specified content type
func NewPostApiSignupRequest ¶
func NewPostApiSignupRequest(server string, body PostApiSignupJSONRequestBody) (*http.Request, error)
NewPostApiSignupRequest calls the generic PostApiSignup builder with application/json body
func NewPostApiSignupRequestWithBody ¶
func NewPostApiSignupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiSignupRequestWithBody constructs an http.Request for the PostApiSignup method, with any body, and a specified content type
func NewPostApiTagsRequest ¶
func NewPostApiTagsRequest(server string, body PostApiTagsJSONRequestBody) (*http.Request, error)
NewPostApiTagsRequest calls the generic PostApiTags builder with application/json body
func NewPostApiTagsRequestWithBody ¶
func NewPostApiTagsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostApiTagsRequestWithBody constructs an http.Request for the PostApiTags method, with any body, and a specified content type
func NewPostApiUsersIdPasswordRequest ¶
NewPostApiUsersIdPasswordRequest constructs an http.Request for the PostApiUsersIdPassword method
func NoteTags ¶
func NoteTags(ctx context.Context, client *ClientWithResponses, ids []string) (map[string][]string, error)
NoteTags is the tags of each note of ids by id, through POST /api/notes/tags; a note without tags is missing.
func Resolve ¶
func Resolve(ctx context.Context, client *ClientWithResponses, kind DomainKind, ref string) (string, error)
Resolve turns a path (/Projects/Ideas) into the uuid of the item of this kind there; anything else is taken as a uuid, as the commands take <uuid|path>.
func SessionFile ¶
SessionFile keeps the session, readable by the user only: the token opens the whole account. Read and logout take the one of config.File, which may be the old ~/.config/notes.
Types ¶
type AddinviteResult ¶
type AddinviteResult struct {
Invite DomainInvite `json:"invite"`
Token string `json:"token"`
}
AddinviteResult defines model for addinvite.Result.
type AdduserInput ¶
type AdduserInput struct {
// Invite The token of an invitation to consume, none when empty: the CLI, an admin, or the first account of a base.
Invite *string `json:"invite,omitempty"`
Name string `json:"name"`
Password string `json:"password"`
}
AdduserInput defines model for adduser.Input.
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) DeleteApiFolders ¶
func (c *Client) DeleteApiFolders(ctx context.Context, body DeleteApiFoldersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteApiFolders Move notes or folders to the trash, a folder with its content
Takes a body of the `application/json` content type.
Corresponds with DELETE /api/folders (the `DeleteApiFolders` operationId).
func (*Client) DeleteApiFoldersId ¶
func (c *Client) DeleteApiFoldersId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteApiFoldersId Move a folder and its content to the trash
Corresponds with DELETE /api/folders/{id} (the `DeleteApiFoldersId` operationId).
func (*Client) DeleteApiFoldersWithBody ¶
func (c *Client) DeleteApiFoldersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteApiFoldersWithBody Move notes or folders to the trash, a folder with its content
Takes any type of body and a specified content type.
Corresponds with DELETE /api/folders (the `DeleteApiFolders` operationId).
func (*Client) DeleteApiInvitesId ¶
func (c *Client) DeleteApiInvitesId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteApiInvitesId Revoke an invitation
Corresponds with DELETE /api/invites/{id} (the `DeleteApiInvitesId` operationId).
func (*Client) DeleteApiMeData ¶
func (c *Client) DeleteApiMeData(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteApiMeData Delete every note, folder, tag and image of the account logged in
Corresponds with DELETE /api/me/data (the `DeleteApiMeData` operationId).
func (*Client) DeleteApiMeTokensId ¶
func (c *Client) DeleteApiMeTokensId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteApiMeTokensId Revoke an API token of the account logged in
Corresponds with DELETE /api/me/tokens/{id} (the `DeleteApiMeTokensId` operationId).
func (*Client) DeleteApiNotes ¶
func (c *Client) DeleteApiNotes(ctx context.Context, body DeleteApiNotesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteApiNotes Move notes or folders to the trash, a folder with its content
Takes a body of the `application/json` content type.
Corresponds with DELETE /api/notes (the `DeleteApiNotes` operationId).
func (*Client) DeleteApiNotesId ¶
func (c *Client) DeleteApiNotesId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteApiNotesId Move a note to the trash
Corresponds with DELETE /api/notes/{id} (the `DeleteApiNotesId` operationId).
func (*Client) DeleteApiNotesWithBody ¶
func (c *Client) DeleteApiNotesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteApiNotesWithBody Move notes or folders to the trash, a folder with its content
Takes any type of body and a specified content type.
Corresponds with DELETE /api/notes (the `DeleteApiNotes` operationId).
func (*Client) DeleteApiTags ¶
func (c *Client) DeleteApiTags(ctx context.Context, body DeleteApiTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteApiTags Delete tags and erase them from the text of their notes
Takes a body of the `application/json` content type.
Corresponds with DELETE /api/tags (the `DeleteApiTags` operationId).
func (*Client) DeleteApiTagsValue ¶
func (c *Client) DeleteApiTagsValue(ctx context.Context, value string, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteApiTagsValue Delete a tag and erase it from the text of its notes
Corresponds with DELETE /api/tags/{value} (the `DeleteApiTagsValue` operationId).
func (*Client) DeleteApiTagsWithBody ¶
func (c *Client) DeleteApiTagsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteApiTagsWithBody Delete tags and erase them from the text of their notes
Takes any type of body and a specified content type.
Corresponds with DELETE /api/tags (the `DeleteApiTags` operationId).
func (*Client) DeleteApiTrash ¶
func (c *Client) DeleteApiTrash(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteApiTrash Empty the trash for good
Corresponds with DELETE /api/trash (the `DeleteApiTrash` operationId).
func (*Client) DeleteApiTrashId ¶
func (c *Client) DeleteApiTrashId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteApiTrashId Delete one removal of the trash for good
Corresponds with DELETE /api/trash/{id} (the `DeleteApiTrashId` operationId).
func (*Client) DeleteApiUsersId ¶
func (c *Client) DeleteApiUsersId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteApiUsersId Delete an account and all its data
Corresponds with DELETE /api/users/{id} (the `DeleteApiUsersId` operationId).
func (*Client) GetApiAddUser ¶
func (c *Client) GetApiAddUser(ctx context.Context, params *GetApiAddUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiAddUser Whether an account can be created
Corresponds with GET /api/add-user (the `GetApiAddUser` operationId).
func (*Client) GetApiExport ¶
func (c *Client) GetApiExport(ctx context.Context, params *GetApiExportParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiExport Export the notes as markdown files
Corresponds with GET /api/export (the `GetApiExport` operationId).
func (*Client) GetApiFiles ¶
func (c *Client) GetApiFiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiFiles List the files kept on the server
Corresponds with GET /api/files (the `GetApiFiles` operationId).
func (*Client) GetApiFilesId ¶
func (c *Client) GetApiFilesId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiFilesId Read an image
Corresponds with GET /api/files/{id} (the `GetApiFilesId` operationId).
func (*Client) GetApiFolders ¶
func (c *Client) GetApiFolders(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiFolders List every folder with its path
Corresponds with GET /api/folders (the `GetApiFolders` operationId).
func (*Client) GetApiFoldersId ¶
func (c *Client) GetApiFoldersId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiFoldersId Read a folder
Corresponds with GET /api/folders/{id} (the `GetApiFoldersId` operationId).
func (*Client) GetApiGraph ¶
func (c *Client) GetApiGraph(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiGraph Count the notes of every tag, most used first
Corresponds with GET /api/graph (the `GetApiGraph` operationId).
func (*Client) GetApiGraphNotes ¶
func (c *Client) GetApiGraphNotes(ctx context.Context, params *GetApiGraphNotesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiGraphNotes Read every note with its tags, and the links between them, laid out
Corresponds with GET /api/graph/notes (the `GetApiGraphNotes` operationId).
func (*Client) GetApiInvites ¶
func (c *Client) GetApiInvites(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiInvites The invitations still usable
Corresponds with GET /api/invites (the `GetApiInvites` operationId).
func (*Client) GetApiItems ¶
func (c *Client) GetApiItems(ctx context.Context, params *GetApiItemsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiItems List the direct children of a folder, or of the root
Corresponds with GET /api/items (the `GetApiItems` operationId).
func (*Client) GetApiLinksBroken ¶
func (c *Client) GetApiLinksBroken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiLinksBroken List the broken and ambiguous links, and the missing files
Corresponds with GET /api/links/broken (the `GetApiLinksBroken` operationId).
func (*Client) GetApiMe ¶
func (c *Client) GetApiMe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiMe The account logged in
Corresponds with GET /api/me (the `GetApiMe` operationId).
func (*Client) GetApiMeStats ¶
func (c *Client) GetApiMeStats(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiMeStats Count the notes of the account logged in and their size in the base
Corresponds with GET /api/me/stats (the `GetApiMeStats` operationId).
func (*Client) GetApiMeTokens ¶
func (c *Client) GetApiMeTokens(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiMeTokens List the API tokens of the account logged in
Corresponds with GET /api/me/tokens (the `GetApiMeTokens` operationId).
func (*Client) GetApiNotes ¶
func (c *Client) GetApiNotes(ctx context.Context, params *GetApiNotesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiNotes Find the notes by title or path
Corresponds with GET /api/notes (the `GetApiNotes` operationId).
func (*Client) GetApiNotesId ¶
func (c *Client) GetApiNotesId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiNotesId Read a note
Corresponds with GET /api/notes/{id} (the `GetApiNotesId` operationId).
func (*Client) GetApiNotesIdFork ¶
func (c *Client) GetApiNotesIdFork(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiNotesIdFork Read the origin of a fork
Corresponds with GET /api/notes/{id}/fork (the `GetApiNotesIdFork` operationId).
func (*Client) GetApiNotesIdGraph ¶
func (c *Client) GetApiNotesIdGraph(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiNotesIdGraph Read the graph around a note, laid out
Corresponds with GET /api/notes/{id}/graph (the `GetApiNotesIdGraph` operationId).
func (*Client) GetApiNotesIdNeighbors ¶
func (c *Client) GetApiNotesIdNeighbors(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiNotesIdNeighbors Read a note and the notes sharing its tags
Corresponds with GET /api/notes/{id}/neighbors (the `GetApiNotesIdNeighbors` operationId).
func (*Client) GetApiNotesIdVersions ¶
func (c *Client) GetApiNotesIdVersions(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiNotesIdVersions List the versions of a note
Corresponds with GET /api/notes/{id}/versions (the `GetApiNotesIdVersions` operationId).
func (*Client) GetApiNotesIdVersionsVersion ¶
func (c *Client) GetApiNotesIdVersionsVersion(ctx context.Context, id string, version string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiNotesIdVersionsVersion Read a version of a note
Corresponds with GET /api/notes/{id}/versions/{version} (the `GetApiNotesIdVersionsVersion` operationId).
func (*Client) GetApiPinned ¶
func (c *Client) GetApiPinned(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiPinned List the pinned notes
Corresponds with GET /api/pinned (the `GetApiPinned` operationId).
func (*Client) GetApiPlans ¶
func (c *Client) GetApiPlans(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiPlans The plans in order, each with its features
Corresponds with GET /api/plans (the `GetApiPlans` operationId).
func (*Client) GetApiRecent ¶
func (c *Client) GetApiRecent(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiRecent List the last changed notes
Corresponds with GET /api/recent (the `GetApiRecent` operationId).
func (*Client) GetApiResolve ¶
func (c *Client) GetApiResolve(ctx context.Context, params *GetApiResolveParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiResolve Find the item at a path
Corresponds with GET /api/resolve (the `GetApiResolve` operationId).
func (*Client) GetApiSearch ¶
func (c *Client) GetApiSearch(ctx context.Context, params *GetApiSearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiSearch Find notes by title or content
The text in the title first, then in a heading, then the notes with the most backlinks, the latest edited, by path.
Corresponds with GET /api/search (the `GetApiSearch` operationId).
func (*Client) GetApiSearchesId ¶
func (c *Client) GetApiSearchesId(ctx context.Context, id string, params *GetApiSearchesIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiSearchesId Run a saved search
Corresponds with GET /api/searches/{id} (the `GetApiSearchesId` operationId).
func (*Client) GetApiTags ¶
func (c *Client) GetApiTags(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiTags List every tag
Corresponds with GET /api/tags (the `GetApiTags` operationId).
func (*Client) GetApiTagsValue ¶
func (c *Client) GetApiTagsValue(ctx context.Context, value string, params *GetApiTagsValueParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiTagsValue Read a tag and the notes carrying it
Corresponds with GET /api/tags/{value} (the `GetApiTagsValue` operationId).
func (*Client) GetApiTrash ¶
func (c *Client) GetApiTrash(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiTrash List what was removed
Corresponds with GET /api/trash (the `GetApiTrash` operationId).
func (*Client) GetApiUsers ¶
func (c *Client) GetApiUsers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiUsers Every account
Corresponds with GET /api/users (the `GetApiUsers` operationId).
func (*Client) GetApiVersion ¶
func (c *Client) GetApiVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiVersion The server's build version
Corresponds with GET /api/version (the `GetApiVersion` operationId).
func (*Client) PatchApiFoldersId ¶
func (c *Client) PatchApiFoldersId(ctx context.Context, id string, body PatchApiFoldersIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchApiFoldersId Rename a folder, or make it a favorite
Takes a body of the `application/json` content type.
Corresponds with PATCH /api/folders/{id} (the `PatchApiFoldersId` operationId).
func (*Client) PatchApiFoldersIdWithBody ¶
func (c *Client) PatchApiFoldersIdWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchApiFoldersIdWithBody Rename a folder, or make it a favorite
Takes any type of body and a specified content type.
Corresponds with PATCH /api/folders/{id} (the `PatchApiFoldersId` operationId).
func (*Client) PatchApiMe ¶
func (c *Client) PatchApiMe(ctx context.Context, body PatchApiMeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchApiMe Change the settings of the account logged in
Takes a body of the `application/json` content type.
Corresponds with PATCH /api/me (the `PatchApiMe` operationId).
func (*Client) PatchApiMePassword ¶
func (c *Client) PatchApiMePassword(ctx context.Context, body PatchApiMePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchApiMePassword Change the password of the account logged in
Takes a body of the `application/json` content type.
Corresponds with PATCH /api/me/password (the `PatchApiMePassword` operationId).
func (*Client) PatchApiMePasswordWithBody ¶
func (c *Client) PatchApiMePasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchApiMePasswordWithBody Change the password of the account logged in
Takes any type of body and a specified content type.
Corresponds with PATCH /api/me/password (the `PatchApiMePassword` operationId).
func (*Client) PatchApiMeWithBody ¶
func (c *Client) PatchApiMeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchApiMeWithBody Change the settings of the account logged in
Takes any type of body and a specified content type.
Corresponds with PATCH /api/me (the `PatchApiMe` operationId).
func (*Client) PatchApiNotesId ¶
func (c *Client) PatchApiNotesId(ctx context.Context, id string, body PatchApiNotesIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchApiNotesId Change the fields given
Takes a body of the `application/json` content type.
Corresponds with PATCH /api/notes/{id} (the `PatchApiNotesId` operationId).
func (*Client) PatchApiNotesIdWithBody ¶
func (c *Client) PatchApiNotesIdWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchApiNotesIdWithBody Change the fields given
Takes any type of body and a specified content type.
Corresponds with PATCH /api/notes/{id} (the `PatchApiNotesId` operationId).
func (*Client) PatchApiNotesTags ¶ added in v1.3.13
func (c *Client) PatchApiNotesTags(ctx context.Context, body PatchApiNotesTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchApiNotesTags Tag several notes
Takes a body of the `application/json` content type.
Corresponds with PATCH /api/notes/tags (the `PatchApiNotesTags` operationId).
func (*Client) PatchApiNotesTagsWithBody ¶ added in v1.3.13
func (c *Client) PatchApiNotesTagsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchApiNotesTagsWithBody Tag several notes
Takes any type of body and a specified content type.
Corresponds with PATCH /api/notes/tags (the `PatchApiNotesTags` operationId).
func (*Client) PatchApiTagsValue ¶
func (c *Client) PatchApiTagsValue(ctx context.Context, value string, body PatchApiTagsValueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchApiTagsValue Rename a tag, in the text of its notes too, or merge it into another with merge
Takes a body of the `application/json` content type.
Corresponds with PATCH /api/tags/{value} (the `PatchApiTagsValue` operationId).
func (*Client) PatchApiTagsValueWithBody ¶
func (c *Client) PatchApiTagsValueWithBody(ctx context.Context, value string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchApiTagsValueWithBody Rename a tag, in the text of its notes too, or merge it into another with merge
Takes any type of body and a specified content type.
Corresponds with PATCH /api/tags/{value} (the `PatchApiTagsValue` operationId).
func (*Client) PostApiFiles ¶
func (c *Client) PostApiFiles(ctx context.Context, params *PostApiFilesParams, body PostApiFilesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiFiles Upload an image or an attachment
Takes a body of the `application/json` content type.
Corresponds with POST /api/files (the `PostApiFiles` operationId).
func (*Client) PostApiFilesWithBody ¶
func (c *Client) PostApiFilesWithBody(ctx context.Context, params *PostApiFilesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiFilesWithBody Upload an image or an attachment
Takes any type of body and a specified content type.
Corresponds with POST /api/files (the `PostApiFiles` operationId).
func (*Client) PostApiFolders ¶
func (c *Client) PostApiFolders(ctx context.Context, body PostApiFoldersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiFolders Create a folder
Takes a body of the `application/json` content type.
Corresponds with POST /api/folders (the `PostApiFolders` operationId).
func (*Client) PostApiFoldersWithBody ¶
func (c *Client) PostApiFoldersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiFoldersWithBody Create a folder
Takes any type of body and a specified content type.
Corresponds with POST /api/folders (the `PostApiFolders` operationId).
func (*Client) PostApiImport ¶
func (c *Client) PostApiImport(ctx context.Context, params *PostApiImportParams, body PostApiImportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiImport Import markdown files from a zip or a form of files
Takes a body of the `application/json` content type.
Corresponds with POST /api/import (the `PostApiImport` operationId).
func (*Client) PostApiImportWithBody ¶
func (c *Client) PostApiImportWithBody(ctx context.Context, params *PostApiImportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiImportWithBody Import markdown files from a zip or a form of files
Takes any type of body and a specified content type.
Corresponds with POST /api/import (the `PostApiImport` operationId).
func (*Client) PostApiInvites ¶
func (c *Client) PostApiInvites(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiInvites Create an invitation
Corresponds with POST /api/invites (the `PostApiInvites` operationId).
func (*Client) PostApiLogin ¶
func (c *Client) PostApiLogin(ctx context.Context, body PostApiLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiLogin Log in
Takes a body of the `application/json` content type.
Corresponds with POST /api/login (the `PostApiLogin` operationId).
func (*Client) PostApiLoginWithBody ¶
func (c *Client) PostApiLoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiLoginWithBody Log in
Takes any type of body and a specified content type.
Corresponds with POST /api/login (the `PostApiLogin` operationId).
func (*Client) PostApiLogout ¶
func (c *Client) PostApiLogout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiLogout Log out
Corresponds with POST /api/logout (the `PostApiLogout` operationId).
func (*Client) PostApiMeTokens ¶
func (c *Client) PostApiMeTokens(ctx context.Context, body PostApiMeTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiMeTokens Create an API token for the account logged in
Takes a body of the `application/json` content type.
Corresponds with POST /api/me/tokens (the `PostApiMeTokens` operationId).
func (*Client) PostApiMeTokensWithBody ¶
func (c *Client) PostApiMeTokensWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiMeTokensWithBody Create an API token for the account logged in
Takes any type of body and a specified content type.
Corresponds with POST /api/me/tokens (the `PostApiMeTokens` operationId).
func (*Client) PostApiMove ¶
func (c *Client) PostApiMove(ctx context.Context, body PostApiMoveJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiMove Move items into a folder, or to the root without parent_id
Takes a body of the `application/json` content type.
Corresponds with POST /api/move (the `PostApiMove` operationId).
func (*Client) PostApiMoveWithBody ¶
func (c *Client) PostApiMoveWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiMoveWithBody Move items into a folder, or to the root without parent_id
Takes any type of body and a specified content type.
Corresponds with POST /api/move (the `PostApiMove` operationId).
func (*Client) PostApiNotes ¶
func (c *Client) PostApiNotes(ctx context.Context, body PostApiNotesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiNotes Create a note
Takes a body of the `application/json` content type.
Corresponds with POST /api/notes (the `PostApiNotes` operationId).
func (*Client) PostApiNotesIdForks ¶
func (c *Client) PostApiNotesIdForks(ctx context.Context, id string, body PostApiNotesIdForksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiNotesIdForks Fork a note
Takes a body of the `application/json` content type.
Corresponds with POST /api/notes/{id}/forks (the `PostApiNotesIdForks` operationId).
func (*Client) PostApiNotesIdForksWithBody ¶
func (c *Client) PostApiNotesIdForksWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiNotesIdForksWithBody Fork a note
Takes any type of body and a specified content type.
Corresponds with POST /api/notes/{id}/forks (the `PostApiNotesIdForks` operationId).
func (*Client) PostApiNotesIdMerge ¶
func (c *Client) PostApiNotesIdMerge(ctx context.Context, id string, body PostApiNotesIdMergeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiNotesIdMerge Merge a fork into its original
Takes a body of the `application/json` content type.
Corresponds with POST /api/notes/{id}/merge (the `PostApiNotesIdMerge` operationId).
func (*Client) PostApiNotesIdMergeWithBody ¶
func (c *Client) PostApiNotesIdMergeWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiNotesIdMergeWithBody Merge a fork into its original
Takes any type of body and a specified content type.
Corresponds with POST /api/notes/{id}/merge (the `PostApiNotesIdMerge` operationId).
func (*Client) PostApiNotesIdRebase ¶
func (c *Client) PostApiNotesIdRebase(ctx context.Context, id string, body PostApiNotesIdRebaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiNotesIdRebase Rebase a fork on its original
Takes a body of the `application/json` content type.
Corresponds with POST /api/notes/{id}/rebase (the `PostApiNotesIdRebase` operationId).
func (*Client) PostApiNotesIdRebaseWithBody ¶
func (c *Client) PostApiNotesIdRebaseWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiNotesIdRebaseWithBody Rebase a fork on its original
Takes any type of body and a specified content type.
Corresponds with POST /api/notes/{id}/rebase (the `PostApiNotesIdRebase` operationId).
func (*Client) PostApiNotesIdUnmerge ¶
func (c *Client) PostApiNotesIdUnmerge(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiNotesIdUnmerge Undo the last merge of a fork
Corresponds with POST /api/notes/{id}/unmerge (the `PostApiNotesIdUnmerge` operationId).
func (*Client) PostApiNotesIdVersions ¶
func (c *Client) PostApiNotesIdVersions(ctx context.Context, id string, body PostApiNotesIdVersionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiNotesIdVersions Keep a text refused by a conflict as a version
Takes a body of the `application/json` content type.
Corresponds with POST /api/notes/{id}/versions (the `PostApiNotesIdVersions` operationId).
func (*Client) PostApiNotesIdVersionsWithBody ¶
func (c *Client) PostApiNotesIdVersionsWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiNotesIdVersionsWithBody Keep a text refused by a conflict as a version
Takes any type of body and a specified content type.
Corresponds with POST /api/notes/{id}/versions (the `PostApiNotesIdVersions` operationId).
func (*Client) PostApiNotesRead ¶ added in v1.3.11
func (c *Client) PostApiNotesRead(ctx context.Context, body PostApiNotesReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiNotesRead Read several notes
Takes a body of the `application/json` content type.
Corresponds with POST /api/notes/read (the `PostApiNotesRead` operationId).
func (*Client) PostApiNotesReadWithBody ¶ added in v1.3.11
func (c *Client) PostApiNotesReadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiNotesReadWithBody Read several notes
Takes any type of body and a specified content type.
Corresponds with POST /api/notes/read (the `PostApiNotesRead` operationId).
func (*Client) PostApiNotesTags ¶
func (c *Client) PostApiNotesTags(ctx context.Context, body PostApiNotesTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiNotesTags Read the tags of notes
Takes a body of the `application/json` content type.
Corresponds with POST /api/notes/tags (the `PostApiNotesTags` operationId).
func (*Client) PostApiNotesTagsWithBody ¶
func (c *Client) PostApiNotesTagsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiNotesTagsWithBody Read the tags of notes
Takes any type of body and a specified content type.
Corresponds with POST /api/notes/tags (the `PostApiNotesTags` operationId).
func (*Client) PostApiNotesWithBody ¶
func (c *Client) PostApiNotesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiNotesWithBody Create a note
Takes any type of body and a specified content type.
Corresponds with POST /api/notes (the `PostApiNotes` operationId).
func (*Client) PostApiReplace ¶
func (c *Client) PostApiReplace(ctx context.Context, body PostApiReplaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiReplace Replace a text in every note, or count it with dry_run
Takes a body of the `application/json` content type.
Corresponds with POST /api/replace (the `PostApiReplace` operationId).
func (*Client) PostApiReplaceWithBody ¶
func (c *Client) PostApiReplaceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiReplaceWithBody Replace a text in every note, or count it with dry_run
Takes any type of body and a specified content type.
Corresponds with POST /api/replace (the `PostApiReplace` operationId).
func (*Client) PostApiRestore ¶
func (c *Client) PostApiRestore(ctx context.Context, body PostApiRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiRestore Take items out of the trash
Takes a body of the `application/json` content type.
Corresponds with POST /api/restore (the `PostApiRestore` operationId).
func (*Client) PostApiRestoreWithBody ¶
func (c *Client) PostApiRestoreWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiRestoreWithBody Take items out of the trash
Takes any type of body and a specified content type.
Corresponds with POST /api/restore (the `PostApiRestore` operationId).
func (*Client) PostApiSearches ¶
func (c *Client) PostApiSearches(ctx context.Context, params *PostApiSearchesParams, body PostApiSearchesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiSearches Run criteria not saved yet
Takes a body of the `application/json` content type.
Corresponds with POST /api/searches (the `PostApiSearches` operationId).
func (*Client) PostApiSearchesWithBody ¶
func (c *Client) PostApiSearchesWithBody(ctx context.Context, params *PostApiSearchesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiSearchesWithBody Run criteria not saved yet
Takes any type of body and a specified content type.
Corresponds with POST /api/searches (the `PostApiSearches` operationId).
func (*Client) PostApiSignup ¶
func (c *Client) PostApiSignup(ctx context.Context, body PostApiSignupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiSignup Create an account and log it in
Takes a body of the `application/json` content type.
Corresponds with POST /api/signup (the `PostApiSignup` operationId).
func (*Client) PostApiSignupWithBody ¶
func (c *Client) PostApiSignupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiSignupWithBody Create an account and log it in
Takes any type of body and a specified content type.
Corresponds with POST /api/signup (the `PostApiSignup` operationId).
func (*Client) PostApiTags ¶
func (c *Client) PostApiTags(ctx context.Context, body PostApiTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiTags Create tags, skipping existing ones
Takes a body of the `application/json` content type.
Corresponds with POST /api/tags (the `PostApiTags` operationId).
func (*Client) PostApiTagsWithBody ¶
func (c *Client) PostApiTagsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiTagsWithBody Create tags, skipping existing ones
Takes any type of body and a specified content type.
Corresponds with POST /api/tags (the `PostApiTags` operationId).
func (*Client) PostApiUsersIdPassword ¶
func (c *Client) PostApiUsersIdPassword(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
PostApiUsersIdPassword Reset the password of an account
Corresponds with POST /api/users/{id}/password (the `PostApiUsersIdPassword` operationId).
type ClientInterface ¶
type ClientInterface interface {
// GetApiAddUser Whether an account can be created
//
// Corresponds with GET /api/add-user (the `GetApiAddUser` operationId).
GetApiAddUser(ctx context.Context, params *GetApiAddUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiExport Export the notes as markdown files
//
// Corresponds with GET /api/export (the `GetApiExport` operationId).
GetApiExport(ctx context.Context, params *GetApiExportParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiFiles List the files kept on the server
//
// Corresponds with GET /api/files (the `GetApiFiles` operationId).
GetApiFiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiFilesWithBody Upload an image or an attachment
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/files (the `PostApiFiles` operationId).
PostApiFilesWithBody(ctx context.Context, params *PostApiFilesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiFiles Upload an image or an attachment
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/files (the `PostApiFiles` operationId).
PostApiFiles(ctx context.Context, params *PostApiFilesParams, body PostApiFilesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiFilesId Read an image
//
// Corresponds with GET /api/files/{id} (the `GetApiFilesId` operationId).
GetApiFilesId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiFoldersWithBody Move notes or folders to the trash, a folder with its content
//
// Takes any type of body and a specified content type.
//
// Corresponds with DELETE /api/folders (the `DeleteApiFolders` operationId).
DeleteApiFoldersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiFolders Move notes or folders to the trash, a folder with its content
//
// Takes a body of the `application/json` content type.
//
// Corresponds with DELETE /api/folders (the `DeleteApiFolders` operationId).
DeleteApiFolders(ctx context.Context, body DeleteApiFoldersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiFolders List every folder with its path
//
// Corresponds with GET /api/folders (the `GetApiFolders` operationId).
GetApiFolders(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiFoldersWithBody Create a folder
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/folders (the `PostApiFolders` operationId).
PostApiFoldersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiFolders Create a folder
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/folders (the `PostApiFolders` operationId).
PostApiFolders(ctx context.Context, body PostApiFoldersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiFoldersId Move a folder and its content to the trash
//
// Corresponds with DELETE /api/folders/{id} (the `DeleteApiFoldersId` operationId).
DeleteApiFoldersId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiFoldersId Read a folder
//
// Corresponds with GET /api/folders/{id} (the `GetApiFoldersId` operationId).
GetApiFoldersId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchApiFoldersIdWithBody Rename a folder, or make it a favorite
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /api/folders/{id} (the `PatchApiFoldersId` operationId).
PatchApiFoldersIdWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchApiFoldersId Rename a folder, or make it a favorite
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /api/folders/{id} (the `PatchApiFoldersId` operationId).
PatchApiFoldersId(ctx context.Context, id string, body PatchApiFoldersIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiGraph Count the notes of every tag, most used first
//
// Corresponds with GET /api/graph (the `GetApiGraph` operationId).
GetApiGraph(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiGraphNotes Read every note with its tags, and the links between them, laid out
//
// Corresponds with GET /api/graph/notes (the `GetApiGraphNotes` operationId).
GetApiGraphNotes(ctx context.Context, params *GetApiGraphNotesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiImportWithBody Import markdown files from a zip or a form of files
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/import (the `PostApiImport` operationId).
PostApiImportWithBody(ctx context.Context, params *PostApiImportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiImport Import markdown files from a zip or a form of files
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/import (the `PostApiImport` operationId).
PostApiImport(ctx context.Context, params *PostApiImportParams, body PostApiImportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiInvites The invitations still usable
//
// Corresponds with GET /api/invites (the `GetApiInvites` operationId).
GetApiInvites(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiInvites Create an invitation
//
// Corresponds with POST /api/invites (the `PostApiInvites` operationId).
PostApiInvites(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiInvitesId Revoke an invitation
//
// Corresponds with DELETE /api/invites/{id} (the `DeleteApiInvitesId` operationId).
DeleteApiInvitesId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiItems List the direct children of a folder, or of the root
//
// Corresponds with GET /api/items (the `GetApiItems` operationId).
GetApiItems(ctx context.Context, params *GetApiItemsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiLinksBroken List the broken and ambiguous links, and the missing files
//
// Corresponds with GET /api/links/broken (the `GetApiLinksBroken` operationId).
GetApiLinksBroken(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiLoginWithBody Log in
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/login (the `PostApiLogin` operationId).
PostApiLoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiLogin Log in
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/login (the `PostApiLogin` operationId).
PostApiLogin(ctx context.Context, body PostApiLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiLogout Log out
//
// Corresponds with POST /api/logout (the `PostApiLogout` operationId).
PostApiLogout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiMe The account logged in
//
// Corresponds with GET /api/me (the `GetApiMe` operationId).
GetApiMe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchApiMeWithBody Change the settings of the account logged in
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /api/me (the `PatchApiMe` operationId).
PatchApiMeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchApiMe Change the settings of the account logged in
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /api/me (the `PatchApiMe` operationId).
PatchApiMe(ctx context.Context, body PatchApiMeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiMeData Delete every note, folder, tag and image of the account logged in
//
// Corresponds with DELETE /api/me/data (the `DeleteApiMeData` operationId).
DeleteApiMeData(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchApiMePasswordWithBody Change the password of the account logged in
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /api/me/password (the `PatchApiMePassword` operationId).
PatchApiMePasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchApiMePassword Change the password of the account logged in
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /api/me/password (the `PatchApiMePassword` operationId).
PatchApiMePassword(ctx context.Context, body PatchApiMePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiMeStats Count the notes of the account logged in and their size in the base
//
// Corresponds with GET /api/me/stats (the `GetApiMeStats` operationId).
GetApiMeStats(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiMeTokens List the API tokens of the account logged in
//
// Corresponds with GET /api/me/tokens (the `GetApiMeTokens` operationId).
GetApiMeTokens(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiMeTokensWithBody Create an API token for the account logged in
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/me/tokens (the `PostApiMeTokens` operationId).
PostApiMeTokensWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiMeTokens Create an API token for the account logged in
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/me/tokens (the `PostApiMeTokens` operationId).
PostApiMeTokens(ctx context.Context, body PostApiMeTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiMeTokensId Revoke an API token of the account logged in
//
// Corresponds with DELETE /api/me/tokens/{id} (the `DeleteApiMeTokensId` operationId).
DeleteApiMeTokensId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiMoveWithBody Move items into a folder, or to the root without parent_id
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/move (the `PostApiMove` operationId).
PostApiMoveWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiMove Move items into a folder, or to the root without parent_id
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/move (the `PostApiMove` operationId).
PostApiMove(ctx context.Context, body PostApiMoveJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiNotesWithBody Move notes or folders to the trash, a folder with its content
//
// Takes any type of body and a specified content type.
//
// Corresponds with DELETE /api/notes (the `DeleteApiNotes` operationId).
DeleteApiNotesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiNotes Move notes or folders to the trash, a folder with its content
//
// Takes a body of the `application/json` content type.
//
// Corresponds with DELETE /api/notes (the `DeleteApiNotes` operationId).
DeleteApiNotes(ctx context.Context, body DeleteApiNotesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiNotes Find the notes by title or path
//
// Corresponds with GET /api/notes (the `GetApiNotes` operationId).
GetApiNotes(ctx context.Context, params *GetApiNotesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiNotesWithBody Create a note
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/notes (the `PostApiNotes` operationId).
PostApiNotesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiNotes Create a note
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/notes (the `PostApiNotes` operationId).
PostApiNotes(ctx context.Context, body PostApiNotesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiNotesReadWithBody Read several notes
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/notes/read (the `PostApiNotesRead` operationId).
PostApiNotesReadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiNotesRead Read several notes
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/notes/read (the `PostApiNotesRead` operationId).
PostApiNotesRead(ctx context.Context, body PostApiNotesReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchApiNotesTagsWithBody Tag several notes
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /api/notes/tags (the `PatchApiNotesTags` operationId).
PatchApiNotesTagsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchApiNotesTags Tag several notes
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /api/notes/tags (the `PatchApiNotesTags` operationId).
PatchApiNotesTags(ctx context.Context, body PatchApiNotesTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiNotesTagsWithBody Read the tags of notes
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/notes/tags (the `PostApiNotesTags` operationId).
PostApiNotesTagsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiNotesTags Read the tags of notes
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/notes/tags (the `PostApiNotesTags` operationId).
PostApiNotesTags(ctx context.Context, body PostApiNotesTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiNotesId Move a note to the trash
//
// Corresponds with DELETE /api/notes/{id} (the `DeleteApiNotesId` operationId).
DeleteApiNotesId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiNotesId Read a note
//
// Corresponds with GET /api/notes/{id} (the `GetApiNotesId` operationId).
GetApiNotesId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchApiNotesIdWithBody Change the fields given
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /api/notes/{id} (the `PatchApiNotesId` operationId).
PatchApiNotesIdWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchApiNotesId Change the fields given
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /api/notes/{id} (the `PatchApiNotesId` operationId).
PatchApiNotesId(ctx context.Context, id string, body PatchApiNotesIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiNotesIdFork Read the origin of a fork
//
// Corresponds with GET /api/notes/{id}/fork (the `GetApiNotesIdFork` operationId).
GetApiNotesIdFork(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiNotesIdForksWithBody Fork a note
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/notes/{id}/forks (the `PostApiNotesIdForks` operationId).
PostApiNotesIdForksWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiNotesIdForks Fork a note
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/notes/{id}/forks (the `PostApiNotesIdForks` operationId).
PostApiNotesIdForks(ctx context.Context, id string, body PostApiNotesIdForksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiNotesIdGraph Read the graph around a note, laid out
//
// Corresponds with GET /api/notes/{id}/graph (the `GetApiNotesIdGraph` operationId).
GetApiNotesIdGraph(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiNotesIdMergeWithBody Merge a fork into its original
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/notes/{id}/merge (the `PostApiNotesIdMerge` operationId).
PostApiNotesIdMergeWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiNotesIdMerge Merge a fork into its original
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/notes/{id}/merge (the `PostApiNotesIdMerge` operationId).
PostApiNotesIdMerge(ctx context.Context, id string, body PostApiNotesIdMergeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiNotesIdNeighbors Read a note and the notes sharing its tags
//
// Corresponds with GET /api/notes/{id}/neighbors (the `GetApiNotesIdNeighbors` operationId).
GetApiNotesIdNeighbors(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiNotesIdRebaseWithBody Rebase a fork on its original
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/notes/{id}/rebase (the `PostApiNotesIdRebase` operationId).
PostApiNotesIdRebaseWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiNotesIdRebase Rebase a fork on its original
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/notes/{id}/rebase (the `PostApiNotesIdRebase` operationId).
PostApiNotesIdRebase(ctx context.Context, id string, body PostApiNotesIdRebaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiNotesIdUnmerge Undo the last merge of a fork
//
// Corresponds with POST /api/notes/{id}/unmerge (the `PostApiNotesIdUnmerge` operationId).
PostApiNotesIdUnmerge(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiNotesIdVersions List the versions of a note
//
// Corresponds with GET /api/notes/{id}/versions (the `GetApiNotesIdVersions` operationId).
GetApiNotesIdVersions(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiNotesIdVersionsWithBody Keep a text refused by a conflict as a version
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/notes/{id}/versions (the `PostApiNotesIdVersions` operationId).
PostApiNotesIdVersionsWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiNotesIdVersions Keep a text refused by a conflict as a version
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/notes/{id}/versions (the `PostApiNotesIdVersions` operationId).
PostApiNotesIdVersions(ctx context.Context, id string, body PostApiNotesIdVersionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiNotesIdVersionsVersion Read a version of a note
//
// Corresponds with GET /api/notes/{id}/versions/{version} (the `GetApiNotesIdVersionsVersion` operationId).
GetApiNotesIdVersionsVersion(ctx context.Context, id string, version string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiPinned List the pinned notes
//
// Corresponds with GET /api/pinned (the `GetApiPinned` operationId).
GetApiPinned(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiPlans The plans in order, each with its features
//
// Corresponds with GET /api/plans (the `GetApiPlans` operationId).
GetApiPlans(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiRecent List the last changed notes
//
// Corresponds with GET /api/recent (the `GetApiRecent` operationId).
GetApiRecent(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiReplaceWithBody Replace a text in every note, or count it with dry_run
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/replace (the `PostApiReplace` operationId).
PostApiReplaceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiReplace Replace a text in every note, or count it with dry_run
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/replace (the `PostApiReplace` operationId).
PostApiReplace(ctx context.Context, body PostApiReplaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiResolve Find the item at a path
//
// Corresponds with GET /api/resolve (the `GetApiResolve` operationId).
GetApiResolve(ctx context.Context, params *GetApiResolveParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiRestoreWithBody Take items out of the trash
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/restore (the `PostApiRestore` operationId).
PostApiRestoreWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiRestore Take items out of the trash
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/restore (the `PostApiRestore` operationId).
PostApiRestore(ctx context.Context, body PostApiRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiSearch Find notes by title or content
//
// The text in the title first, then in a heading, then the notes with the most backlinks, the latest edited, by path.
//
// Corresponds with GET /api/search (the `GetApiSearch` operationId).
GetApiSearch(ctx context.Context, params *GetApiSearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSearchesWithBody Run criteria not saved yet
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/searches (the `PostApiSearches` operationId).
PostApiSearchesWithBody(ctx context.Context, params *PostApiSearchesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSearches Run criteria not saved yet
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/searches (the `PostApiSearches` operationId).
PostApiSearches(ctx context.Context, params *PostApiSearchesParams, body PostApiSearchesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiSearchesId Run a saved search
//
// Corresponds with GET /api/searches/{id} (the `GetApiSearchesId` operationId).
GetApiSearchesId(ctx context.Context, id string, params *GetApiSearchesIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSignupWithBody Create an account and log it in
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/signup (the `PostApiSignup` operationId).
PostApiSignupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiSignup Create an account and log it in
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/signup (the `PostApiSignup` operationId).
PostApiSignup(ctx context.Context, body PostApiSignupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiTagsWithBody Delete tags and erase them from the text of their notes
//
// Takes any type of body and a specified content type.
//
// Corresponds with DELETE /api/tags (the `DeleteApiTags` operationId).
DeleteApiTagsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiTags Delete tags and erase them from the text of their notes
//
// Takes a body of the `application/json` content type.
//
// Corresponds with DELETE /api/tags (the `DeleteApiTags` operationId).
DeleteApiTags(ctx context.Context, body DeleteApiTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiTags List every tag
//
// Corresponds with GET /api/tags (the `GetApiTags` operationId).
GetApiTags(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiTagsWithBody Create tags, skipping existing ones
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/tags (the `PostApiTags` operationId).
PostApiTagsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiTags Create tags, skipping existing ones
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/tags (the `PostApiTags` operationId).
PostApiTags(ctx context.Context, body PostApiTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiTagsValue Delete a tag and erase it from the text of its notes
//
// Corresponds with DELETE /api/tags/{value} (the `DeleteApiTagsValue` operationId).
DeleteApiTagsValue(ctx context.Context, value string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiTagsValue Read a tag and the notes carrying it
//
// Corresponds with GET /api/tags/{value} (the `GetApiTagsValue` operationId).
GetApiTagsValue(ctx context.Context, value string, params *GetApiTagsValueParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchApiTagsValueWithBody Rename a tag, in the text of its notes too, or merge it into another with merge
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /api/tags/{value} (the `PatchApiTagsValue` operationId).
PatchApiTagsValueWithBody(ctx context.Context, value string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchApiTagsValue Rename a tag, in the text of its notes too, or merge it into another with merge
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /api/tags/{value} (the `PatchApiTagsValue` operationId).
PatchApiTagsValue(ctx context.Context, value string, body PatchApiTagsValueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiTrash Empty the trash for good
//
// Corresponds with DELETE /api/trash (the `DeleteApiTrash` operationId).
DeleteApiTrash(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiTrash List what was removed
//
// Corresponds with GET /api/trash (the `GetApiTrash` operationId).
GetApiTrash(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiTrashId Delete one removal of the trash for good
//
// Corresponds with DELETE /api/trash/{id} (the `DeleteApiTrashId` operationId).
DeleteApiTrashId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiUsers Every account
//
// Corresponds with GET /api/users (the `GetApiUsers` operationId).
GetApiUsers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiUsersId Delete an account and all its data
//
// Corresponds with DELETE /api/users/{id} (the `DeleteApiUsersId` operationId).
DeleteApiUsersId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostApiUsersIdPassword Reset the password of an account
//
// Corresponds with POST /api/users/{id}/password (the `PostApiUsersIdPassword` operationId).
PostApiUsersIdPassword(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiVersion The server's build version
//
// Corresponds with GET /api/version (the `GetApiVersion` operationId).
GetApiVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func New ¶ added in v1.3.1
func New(server string, opts ...ClientOption) (*ClientWithResponses, error)
New is the API client of every command: a call ends after Timeout, or at the deadline its ctx already has.
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) DeleteApiFoldersIdWithResponse ¶
func (c *ClientWithResponses) DeleteApiFoldersIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteApiFoldersIdResponse, error)
DeleteApiFoldersIdWithResponse Move a folder and its content to the trash
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/folders/{id} (the `DeleteApiFoldersId` operationId).
func (*ClientWithResponses) DeleteApiFoldersWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteApiFoldersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteApiFoldersResponse, error)
DeleteApiFoldersWithBodyWithResponse Move notes or folders to the trash, a folder with its content
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/folders (the `DeleteApiFolders` operationId).
func (*ClientWithResponses) DeleteApiFoldersWithResponse ¶
func (c *ClientWithResponses) DeleteApiFoldersWithResponse(ctx context.Context, body DeleteApiFoldersJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteApiFoldersResponse, error)
DeleteApiFoldersWithResponse Move notes or folders to the trash, a folder with its content
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/folders (the `DeleteApiFolders` operationId).
func (*ClientWithResponses) DeleteApiInvitesIdWithResponse ¶
func (c *ClientWithResponses) DeleteApiInvitesIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteApiInvitesIdResponse, error)
DeleteApiInvitesIdWithResponse Revoke an invitation
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/invites/{id} (the `DeleteApiInvitesId` operationId).
func (*ClientWithResponses) DeleteApiMeDataWithResponse ¶
func (c *ClientWithResponses) DeleteApiMeDataWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteApiMeDataResponse, error)
DeleteApiMeDataWithResponse Delete every note, folder, tag and image of the account logged in
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/me/data (the `DeleteApiMeData` operationId).
func (*ClientWithResponses) DeleteApiMeTokensIdWithResponse ¶
func (c *ClientWithResponses) DeleteApiMeTokensIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteApiMeTokensIdResponse, error)
DeleteApiMeTokensIdWithResponse Revoke an API token of the account logged in
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/me/tokens/{id} (the `DeleteApiMeTokensId` operationId).
func (*ClientWithResponses) DeleteApiNotesIdWithResponse ¶
func (c *ClientWithResponses) DeleteApiNotesIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteApiNotesIdResponse, error)
DeleteApiNotesIdWithResponse Move a note to the trash
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/notes/{id} (the `DeleteApiNotesId` operationId).
func (*ClientWithResponses) DeleteApiNotesWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteApiNotesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteApiNotesResponse, error)
DeleteApiNotesWithBodyWithResponse Move notes or folders to the trash, a folder with its content
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/notes (the `DeleteApiNotes` operationId).
func (*ClientWithResponses) DeleteApiNotesWithResponse ¶
func (c *ClientWithResponses) DeleteApiNotesWithResponse(ctx context.Context, body DeleteApiNotesJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteApiNotesResponse, error)
DeleteApiNotesWithResponse Move notes or folders to the trash, a folder with its content
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/notes (the `DeleteApiNotes` operationId).
func (*ClientWithResponses) DeleteApiTagsValueWithResponse ¶
func (c *ClientWithResponses) DeleteApiTagsValueWithResponse(ctx context.Context, value string, reqEditors ...RequestEditorFn) (*DeleteApiTagsValueResponse, error)
DeleteApiTagsValueWithResponse Delete a tag and erase it from the text of its notes
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/tags/{value} (the `DeleteApiTagsValue` operationId).
func (*ClientWithResponses) DeleteApiTagsWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteApiTagsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteApiTagsResponse, error)
DeleteApiTagsWithBodyWithResponse Delete tags and erase them from the text of their notes
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/tags (the `DeleteApiTags` operationId).
func (*ClientWithResponses) DeleteApiTagsWithResponse ¶
func (c *ClientWithResponses) DeleteApiTagsWithResponse(ctx context.Context, body DeleteApiTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteApiTagsResponse, error)
DeleteApiTagsWithResponse Delete tags and erase them from the text of their notes
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/tags (the `DeleteApiTags` operationId).
func (*ClientWithResponses) DeleteApiTrashIdWithResponse ¶
func (c *ClientWithResponses) DeleteApiTrashIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteApiTrashIdResponse, error)
DeleteApiTrashIdWithResponse Delete one removal of the trash for good
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/trash/{id} (the `DeleteApiTrashId` operationId).
func (*ClientWithResponses) DeleteApiTrashWithResponse ¶
func (c *ClientWithResponses) DeleteApiTrashWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteApiTrashResponse, error)
DeleteApiTrashWithResponse Empty the trash for good
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/trash (the `DeleteApiTrash` operationId).
func (*ClientWithResponses) DeleteApiUsersIdWithResponse ¶
func (c *ClientWithResponses) DeleteApiUsersIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteApiUsersIdResponse, error)
DeleteApiUsersIdWithResponse Delete an account and all its data
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/users/{id} (the `DeleteApiUsersId` operationId).
func (*ClientWithResponses) GetApiAddUserWithResponse ¶
func (c *ClientWithResponses) GetApiAddUserWithResponse(ctx context.Context, params *GetApiAddUserParams, reqEditors ...RequestEditorFn) (*GetApiAddUserResponse, error)
GetApiAddUserWithResponse Whether an account can be created
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/add-user (the `GetApiAddUser` operationId).
func (*ClientWithResponses) GetApiExportWithResponse ¶
func (c *ClientWithResponses) GetApiExportWithResponse(ctx context.Context, params *GetApiExportParams, reqEditors ...RequestEditorFn) (*GetApiExportResponse, error)
GetApiExportWithResponse Export the notes as markdown files
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/export (the `GetApiExport` operationId).
func (*ClientWithResponses) GetApiFilesIdWithResponse ¶
func (c *ClientWithResponses) GetApiFilesIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiFilesIdResponse, error)
GetApiFilesIdWithResponse Read an image
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/files/{id} (the `GetApiFilesId` operationId).
func (*ClientWithResponses) GetApiFilesWithResponse ¶
func (c *ClientWithResponses) GetApiFilesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiFilesResponse, error)
GetApiFilesWithResponse List the files kept on the server
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/files (the `GetApiFiles` operationId).
func (*ClientWithResponses) GetApiFoldersIdWithResponse ¶
func (c *ClientWithResponses) GetApiFoldersIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiFoldersIdResponse, error)
GetApiFoldersIdWithResponse Read a folder
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/folders/{id} (the `GetApiFoldersId` operationId).
func (*ClientWithResponses) GetApiFoldersWithResponse ¶
func (c *ClientWithResponses) GetApiFoldersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiFoldersResponse, error)
GetApiFoldersWithResponse List every folder with its path
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/folders (the `GetApiFolders` operationId).
func (*ClientWithResponses) GetApiGraphNotesWithResponse ¶
func (c *ClientWithResponses) GetApiGraphNotesWithResponse(ctx context.Context, params *GetApiGraphNotesParams, reqEditors ...RequestEditorFn) (*GetApiGraphNotesResponse, error)
GetApiGraphNotesWithResponse Read every note with its tags, and the links between them, laid out
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/graph/notes (the `GetApiGraphNotes` operationId).
func (*ClientWithResponses) GetApiGraphWithResponse ¶
func (c *ClientWithResponses) GetApiGraphWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiGraphResponse, error)
GetApiGraphWithResponse Count the notes of every tag, most used first
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/graph (the `GetApiGraph` operationId).
func (*ClientWithResponses) GetApiInvitesWithResponse ¶
func (c *ClientWithResponses) GetApiInvitesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiInvitesResponse, error)
GetApiInvitesWithResponse The invitations still usable
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/invites (the `GetApiInvites` operationId).
func (*ClientWithResponses) GetApiItemsWithResponse ¶
func (c *ClientWithResponses) GetApiItemsWithResponse(ctx context.Context, params *GetApiItemsParams, reqEditors ...RequestEditorFn) (*GetApiItemsResponse, error)
GetApiItemsWithResponse List the direct children of a folder, or of the root
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/items (the `GetApiItems` operationId).
func (*ClientWithResponses) GetApiLinksBrokenWithResponse ¶
func (c *ClientWithResponses) GetApiLinksBrokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiLinksBrokenResponse, error)
GetApiLinksBrokenWithResponse List the broken and ambiguous links, and the missing files
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/links/broken (the `GetApiLinksBroken` operationId).
func (*ClientWithResponses) GetApiMeStatsWithResponse ¶
func (c *ClientWithResponses) GetApiMeStatsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMeStatsResponse, error)
GetApiMeStatsWithResponse Count the notes of the account logged in and their size in the base
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/me/stats (the `GetApiMeStats` operationId).
func (*ClientWithResponses) GetApiMeTokensWithResponse ¶
func (c *ClientWithResponses) GetApiMeTokensWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMeTokensResponse, error)
GetApiMeTokensWithResponse List the API tokens of the account logged in
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/me/tokens (the `GetApiMeTokens` operationId).
func (*ClientWithResponses) GetApiMeWithResponse ¶
func (c *ClientWithResponses) GetApiMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMeResponse, error)
GetApiMeWithResponse The account logged in
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/me (the `GetApiMe` operationId).
func (*ClientWithResponses) GetApiNotesIdForkWithResponse ¶
func (c *ClientWithResponses) GetApiNotesIdForkWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiNotesIdForkResponse, error)
GetApiNotesIdForkWithResponse Read the origin of a fork
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/notes/{id}/fork (the `GetApiNotesIdFork` operationId).
func (*ClientWithResponses) GetApiNotesIdGraphWithResponse ¶
func (c *ClientWithResponses) GetApiNotesIdGraphWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiNotesIdGraphResponse, error)
GetApiNotesIdGraphWithResponse Read the graph around a note, laid out
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/notes/{id}/graph (the `GetApiNotesIdGraph` operationId).
func (*ClientWithResponses) GetApiNotesIdNeighborsWithResponse ¶
func (c *ClientWithResponses) GetApiNotesIdNeighborsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiNotesIdNeighborsResponse, error)
GetApiNotesIdNeighborsWithResponse Read a note and the notes sharing its tags
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/notes/{id}/neighbors (the `GetApiNotesIdNeighbors` operationId).
func (*ClientWithResponses) GetApiNotesIdVersionsVersionWithResponse ¶
func (c *ClientWithResponses) GetApiNotesIdVersionsVersionWithResponse(ctx context.Context, id string, version string, reqEditors ...RequestEditorFn) (*GetApiNotesIdVersionsVersionResponse, error)
GetApiNotesIdVersionsVersionWithResponse Read a version of a note
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/notes/{id}/versions/{version} (the `GetApiNotesIdVersionsVersion` operationId).
func (*ClientWithResponses) GetApiNotesIdVersionsWithResponse ¶
func (c *ClientWithResponses) GetApiNotesIdVersionsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiNotesIdVersionsResponse, error)
GetApiNotesIdVersionsWithResponse List the versions of a note
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/notes/{id}/versions (the `GetApiNotesIdVersions` operationId).
func (*ClientWithResponses) GetApiNotesIdWithResponse ¶
func (c *ClientWithResponses) GetApiNotesIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiNotesIdResponse, error)
GetApiNotesIdWithResponse Read a note
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/notes/{id} (the `GetApiNotesId` operationId).
func (*ClientWithResponses) GetApiNotesWithResponse ¶
func (c *ClientWithResponses) GetApiNotesWithResponse(ctx context.Context, params *GetApiNotesParams, reqEditors ...RequestEditorFn) (*GetApiNotesResponse, error)
GetApiNotesWithResponse Find the notes by title or path
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/notes (the `GetApiNotes` operationId).
func (*ClientWithResponses) GetApiPinnedWithResponse ¶
func (c *ClientWithResponses) GetApiPinnedWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiPinnedResponse, error)
GetApiPinnedWithResponse List the pinned notes
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/pinned (the `GetApiPinned` operationId).
func (*ClientWithResponses) GetApiPlansWithResponse ¶
func (c *ClientWithResponses) GetApiPlansWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiPlansResponse, error)
GetApiPlansWithResponse The plans in order, each with its features
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/plans (the `GetApiPlans` operationId).
func (*ClientWithResponses) GetApiRecentWithResponse ¶
func (c *ClientWithResponses) GetApiRecentWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiRecentResponse, error)
GetApiRecentWithResponse List the last changed notes
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/recent (the `GetApiRecent` operationId).
func (*ClientWithResponses) GetApiResolveWithResponse ¶
func (c *ClientWithResponses) GetApiResolveWithResponse(ctx context.Context, params *GetApiResolveParams, reqEditors ...RequestEditorFn) (*GetApiResolveResponse, error)
GetApiResolveWithResponse Find the item at a path
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/resolve (the `GetApiResolve` operationId).
func (*ClientWithResponses) GetApiSearchWithResponse ¶
func (c *ClientWithResponses) GetApiSearchWithResponse(ctx context.Context, params *GetApiSearchParams, reqEditors ...RequestEditorFn) (*GetApiSearchResponse, error)
GetApiSearchWithResponse Find notes by title or content
The text in the title first, then in a heading, then the notes with the most backlinks, the latest edited, by path.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/search (the `GetApiSearch` operationId).
func (*ClientWithResponses) GetApiSearchesIdWithResponse ¶
func (c *ClientWithResponses) GetApiSearchesIdWithResponse(ctx context.Context, id string, params *GetApiSearchesIdParams, reqEditors ...RequestEditorFn) (*GetApiSearchesIdResponse, error)
GetApiSearchesIdWithResponse Run a saved search
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/searches/{id} (the `GetApiSearchesId` operationId).
func (*ClientWithResponses) GetApiTagsValueWithResponse ¶
func (c *ClientWithResponses) GetApiTagsValueWithResponse(ctx context.Context, value string, params *GetApiTagsValueParams, reqEditors ...RequestEditorFn) (*GetApiTagsValueResponse, error)
GetApiTagsValueWithResponse Read a tag and the notes carrying it
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/tags/{value} (the `GetApiTagsValue` operationId).
func (*ClientWithResponses) GetApiTagsWithResponse ¶
func (c *ClientWithResponses) GetApiTagsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiTagsResponse, error)
GetApiTagsWithResponse List every tag
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/tags (the `GetApiTags` operationId).
func (*ClientWithResponses) GetApiTrashWithResponse ¶
func (c *ClientWithResponses) GetApiTrashWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiTrashResponse, error)
GetApiTrashWithResponse List what was removed
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/trash (the `GetApiTrash` operationId).
func (*ClientWithResponses) GetApiUsersWithResponse ¶
func (c *ClientWithResponses) GetApiUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiUsersResponse, error)
GetApiUsersWithResponse Every account
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/users (the `GetApiUsers` operationId).
func (*ClientWithResponses) GetApiVersionWithResponse ¶
func (c *ClientWithResponses) GetApiVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiVersionResponse, error)
GetApiVersionWithResponse The server's build version
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/version (the `GetApiVersion` operationId).
func (*ClientWithResponses) PatchApiFoldersIdWithBodyWithResponse ¶
func (c *ClientWithResponses) PatchApiFoldersIdWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchApiFoldersIdResponse, error)
PatchApiFoldersIdWithBodyWithResponse Rename a folder, or make it a favorite
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/folders/{id} (the `PatchApiFoldersId` operationId).
func (*ClientWithResponses) PatchApiFoldersIdWithResponse ¶
func (c *ClientWithResponses) PatchApiFoldersIdWithResponse(ctx context.Context, id string, body PatchApiFoldersIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchApiFoldersIdResponse, error)
PatchApiFoldersIdWithResponse Rename a folder, or make it a favorite
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/folders/{id} (the `PatchApiFoldersId` operationId).
func (*ClientWithResponses) PatchApiMePasswordWithBodyWithResponse ¶
func (c *ClientWithResponses) PatchApiMePasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchApiMePasswordResponse, error)
PatchApiMePasswordWithBodyWithResponse Change the password of the account logged in
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/me/password (the `PatchApiMePassword` operationId).
func (*ClientWithResponses) PatchApiMePasswordWithResponse ¶
func (c *ClientWithResponses) PatchApiMePasswordWithResponse(ctx context.Context, body PatchApiMePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchApiMePasswordResponse, error)
PatchApiMePasswordWithResponse Change the password of the account logged in
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/me/password (the `PatchApiMePassword` operationId).
func (*ClientWithResponses) PatchApiMeWithBodyWithResponse ¶
func (c *ClientWithResponses) PatchApiMeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchApiMeResponse, error)
PatchApiMeWithBodyWithResponse Change the settings of the account logged in
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/me (the `PatchApiMe` operationId).
func (*ClientWithResponses) PatchApiMeWithResponse ¶
func (c *ClientWithResponses) PatchApiMeWithResponse(ctx context.Context, body PatchApiMeJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchApiMeResponse, error)
PatchApiMeWithResponse Change the settings of the account logged in
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/me (the `PatchApiMe` operationId).
func (*ClientWithResponses) PatchApiNotesIdWithBodyWithResponse ¶
func (c *ClientWithResponses) PatchApiNotesIdWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchApiNotesIdResponse, error)
PatchApiNotesIdWithBodyWithResponse Change the fields given
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/notes/{id} (the `PatchApiNotesId` operationId).
func (*ClientWithResponses) PatchApiNotesIdWithResponse ¶
func (c *ClientWithResponses) PatchApiNotesIdWithResponse(ctx context.Context, id string, body PatchApiNotesIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchApiNotesIdResponse, error)
PatchApiNotesIdWithResponse Change the fields given
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/notes/{id} (the `PatchApiNotesId` operationId).
func (*ClientWithResponses) PatchApiNotesTagsWithBodyWithResponse ¶ added in v1.3.13
func (c *ClientWithResponses) PatchApiNotesTagsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchApiNotesTagsResponse, error)
PatchApiNotesTagsWithBodyWithResponse Tag several notes
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/notes/tags (the `PatchApiNotesTags` operationId).
func (*ClientWithResponses) PatchApiNotesTagsWithResponse ¶ added in v1.3.13
func (c *ClientWithResponses) PatchApiNotesTagsWithResponse(ctx context.Context, body PatchApiNotesTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchApiNotesTagsResponse, error)
PatchApiNotesTagsWithResponse Tag several notes
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/notes/tags (the `PatchApiNotesTags` operationId).
func (*ClientWithResponses) PatchApiTagsValueWithBodyWithResponse ¶
func (c *ClientWithResponses) PatchApiTagsValueWithBodyWithResponse(ctx context.Context, value string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchApiTagsValueResponse, error)
PatchApiTagsValueWithBodyWithResponse Rename a tag, in the text of its notes too, or merge it into another with merge
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/tags/{value} (the `PatchApiTagsValue` operationId).
func (*ClientWithResponses) PatchApiTagsValueWithResponse ¶
func (c *ClientWithResponses) PatchApiTagsValueWithResponse(ctx context.Context, value string, body PatchApiTagsValueJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchApiTagsValueResponse, error)
PatchApiTagsValueWithResponse Rename a tag, in the text of its notes too, or merge it into another with merge
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/tags/{value} (the `PatchApiTagsValue` operationId).
func (*ClientWithResponses) PostApiFilesWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiFilesWithBodyWithResponse(ctx context.Context, params *PostApiFilesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiFilesResponse, error)
PostApiFilesWithBodyWithResponse Upload an image or an attachment
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/files (the `PostApiFiles` operationId).
func (*ClientWithResponses) PostApiFilesWithResponse ¶
func (c *ClientWithResponses) PostApiFilesWithResponse(ctx context.Context, params *PostApiFilesParams, body PostApiFilesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiFilesResponse, error)
PostApiFilesWithResponse Upload an image or an attachment
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/files (the `PostApiFiles` operationId).
func (*ClientWithResponses) PostApiFoldersWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiFoldersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiFoldersResponse, error)
PostApiFoldersWithBodyWithResponse Create a folder
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/folders (the `PostApiFolders` operationId).
func (*ClientWithResponses) PostApiFoldersWithResponse ¶
func (c *ClientWithResponses) PostApiFoldersWithResponse(ctx context.Context, body PostApiFoldersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiFoldersResponse, error)
PostApiFoldersWithResponse Create a folder
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/folders (the `PostApiFolders` operationId).
func (*ClientWithResponses) PostApiImportWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiImportWithBodyWithResponse(ctx context.Context, params *PostApiImportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiImportResponse, error)
PostApiImportWithBodyWithResponse Import markdown files from a zip or a form of files
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/import (the `PostApiImport` operationId).
func (*ClientWithResponses) PostApiImportWithResponse ¶
func (c *ClientWithResponses) PostApiImportWithResponse(ctx context.Context, params *PostApiImportParams, body PostApiImportJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiImportResponse, error)
PostApiImportWithResponse Import markdown files from a zip or a form of files
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/import (the `PostApiImport` operationId).
func (*ClientWithResponses) PostApiInvitesWithResponse ¶
func (c *ClientWithResponses) PostApiInvitesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostApiInvitesResponse, error)
PostApiInvitesWithResponse Create an invitation
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/invites (the `PostApiInvites` operationId).
func (*ClientWithResponses) PostApiLoginWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiLoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiLoginResponse, error)
PostApiLoginWithBodyWithResponse Log in
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/login (the `PostApiLogin` operationId).
func (*ClientWithResponses) PostApiLoginWithResponse ¶
func (c *ClientWithResponses) PostApiLoginWithResponse(ctx context.Context, body PostApiLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiLoginResponse, error)
PostApiLoginWithResponse Log in
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/login (the `PostApiLogin` operationId).
func (*ClientWithResponses) PostApiLogoutWithResponse ¶
func (c *ClientWithResponses) PostApiLogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostApiLogoutResponse, error)
PostApiLogoutWithResponse Log out
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/logout (the `PostApiLogout` operationId).
func (*ClientWithResponses) PostApiMeTokensWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiMeTokensWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiMeTokensResponse, error)
PostApiMeTokensWithBodyWithResponse Create an API token for the account logged in
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/me/tokens (the `PostApiMeTokens` operationId).
func (*ClientWithResponses) PostApiMeTokensWithResponse ¶
func (c *ClientWithResponses) PostApiMeTokensWithResponse(ctx context.Context, body PostApiMeTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiMeTokensResponse, error)
PostApiMeTokensWithResponse Create an API token for the account logged in
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/me/tokens (the `PostApiMeTokens` operationId).
func (*ClientWithResponses) PostApiMoveWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiMoveWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiMoveResponse, error)
PostApiMoveWithBodyWithResponse Move items into a folder, or to the root without parent_id
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/move (the `PostApiMove` operationId).
func (*ClientWithResponses) PostApiMoveWithResponse ¶
func (c *ClientWithResponses) PostApiMoveWithResponse(ctx context.Context, body PostApiMoveJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiMoveResponse, error)
PostApiMoveWithResponse Move items into a folder, or to the root without parent_id
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/move (the `PostApiMove` operationId).
func (*ClientWithResponses) PostApiNotesIdForksWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiNotesIdForksWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiNotesIdForksResponse, error)
PostApiNotesIdForksWithBodyWithResponse Fork a note
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/notes/{id}/forks (the `PostApiNotesIdForks` operationId).
func (*ClientWithResponses) PostApiNotesIdForksWithResponse ¶
func (c *ClientWithResponses) PostApiNotesIdForksWithResponse(ctx context.Context, id string, body PostApiNotesIdForksJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiNotesIdForksResponse, error)
PostApiNotesIdForksWithResponse Fork a note
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/notes/{id}/forks (the `PostApiNotesIdForks` operationId).
func (*ClientWithResponses) PostApiNotesIdMergeWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiNotesIdMergeWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiNotesIdMergeResponse, error)
PostApiNotesIdMergeWithBodyWithResponse Merge a fork into its original
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/notes/{id}/merge (the `PostApiNotesIdMerge` operationId).
func (*ClientWithResponses) PostApiNotesIdMergeWithResponse ¶
func (c *ClientWithResponses) PostApiNotesIdMergeWithResponse(ctx context.Context, id string, body PostApiNotesIdMergeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiNotesIdMergeResponse, error)
PostApiNotesIdMergeWithResponse Merge a fork into its original
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/notes/{id}/merge (the `PostApiNotesIdMerge` operationId).
func (*ClientWithResponses) PostApiNotesIdRebaseWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiNotesIdRebaseWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiNotesIdRebaseResponse, error)
PostApiNotesIdRebaseWithBodyWithResponse Rebase a fork on its original
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/notes/{id}/rebase (the `PostApiNotesIdRebase` operationId).
func (*ClientWithResponses) PostApiNotesIdRebaseWithResponse ¶
func (c *ClientWithResponses) PostApiNotesIdRebaseWithResponse(ctx context.Context, id string, body PostApiNotesIdRebaseJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiNotesIdRebaseResponse, error)
PostApiNotesIdRebaseWithResponse Rebase a fork on its original
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/notes/{id}/rebase (the `PostApiNotesIdRebase` operationId).
func (*ClientWithResponses) PostApiNotesIdUnmergeWithResponse ¶
func (c *ClientWithResponses) PostApiNotesIdUnmergeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*PostApiNotesIdUnmergeResponse, error)
PostApiNotesIdUnmergeWithResponse Undo the last merge of a fork
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/notes/{id}/unmerge (the `PostApiNotesIdUnmerge` operationId).
func (*ClientWithResponses) PostApiNotesIdVersionsWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiNotesIdVersionsWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiNotesIdVersionsResponse, error)
PostApiNotesIdVersionsWithBodyWithResponse Keep a text refused by a conflict as a version
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/notes/{id}/versions (the `PostApiNotesIdVersions` operationId).
func (*ClientWithResponses) PostApiNotesIdVersionsWithResponse ¶
func (c *ClientWithResponses) PostApiNotesIdVersionsWithResponse(ctx context.Context, id string, body PostApiNotesIdVersionsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiNotesIdVersionsResponse, error)
PostApiNotesIdVersionsWithResponse Keep a text refused by a conflict as a version
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/notes/{id}/versions (the `PostApiNotesIdVersions` operationId).
func (*ClientWithResponses) PostApiNotesReadWithBodyWithResponse ¶ added in v1.3.11
func (c *ClientWithResponses) PostApiNotesReadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiNotesReadResponse, error)
PostApiNotesReadWithBodyWithResponse Read several notes
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/notes/read (the `PostApiNotesRead` operationId).
func (*ClientWithResponses) PostApiNotesReadWithResponse ¶ added in v1.3.11
func (c *ClientWithResponses) PostApiNotesReadWithResponse(ctx context.Context, body PostApiNotesReadJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiNotesReadResponse, error)
PostApiNotesReadWithResponse Read several notes
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/notes/read (the `PostApiNotesRead` operationId).
func (*ClientWithResponses) PostApiNotesTagsWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiNotesTagsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiNotesTagsResponse, error)
PostApiNotesTagsWithBodyWithResponse Read the tags of notes
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/notes/tags (the `PostApiNotesTags` operationId).
func (*ClientWithResponses) PostApiNotesTagsWithResponse ¶
func (c *ClientWithResponses) PostApiNotesTagsWithResponse(ctx context.Context, body PostApiNotesTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiNotesTagsResponse, error)
PostApiNotesTagsWithResponse Read the tags of notes
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/notes/tags (the `PostApiNotesTags` operationId).
func (*ClientWithResponses) PostApiNotesWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiNotesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiNotesResponse, error)
PostApiNotesWithBodyWithResponse Create a note
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/notes (the `PostApiNotes` operationId).
func (*ClientWithResponses) PostApiNotesWithResponse ¶
func (c *ClientWithResponses) PostApiNotesWithResponse(ctx context.Context, body PostApiNotesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiNotesResponse, error)
PostApiNotesWithResponse Create a note
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/notes (the `PostApiNotes` operationId).
func (*ClientWithResponses) PostApiReplaceWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiReplaceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiReplaceResponse, error)
PostApiReplaceWithBodyWithResponse Replace a text in every note, or count it with dry_run
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/replace (the `PostApiReplace` operationId).
func (*ClientWithResponses) PostApiReplaceWithResponse ¶
func (c *ClientWithResponses) PostApiReplaceWithResponse(ctx context.Context, body PostApiReplaceJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiReplaceResponse, error)
PostApiReplaceWithResponse Replace a text in every note, or count it with dry_run
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/replace (the `PostApiReplace` operationId).
func (*ClientWithResponses) PostApiRestoreWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiRestoreWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiRestoreResponse, error)
PostApiRestoreWithBodyWithResponse Take items out of the trash
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/restore (the `PostApiRestore` operationId).
func (*ClientWithResponses) PostApiRestoreWithResponse ¶
func (c *ClientWithResponses) PostApiRestoreWithResponse(ctx context.Context, body PostApiRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiRestoreResponse, error)
PostApiRestoreWithResponse Take items out of the trash
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/restore (the `PostApiRestore` operationId).
func (*ClientWithResponses) PostApiSearchesWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiSearchesWithBodyWithResponse(ctx context.Context, params *PostApiSearchesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSearchesResponse, error)
PostApiSearchesWithBodyWithResponse Run criteria not saved yet
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/searches (the `PostApiSearches` operationId).
func (*ClientWithResponses) PostApiSearchesWithResponse ¶
func (c *ClientWithResponses) PostApiSearchesWithResponse(ctx context.Context, params *PostApiSearchesParams, body PostApiSearchesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSearchesResponse, error)
PostApiSearchesWithResponse Run criteria not saved yet
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/searches (the `PostApiSearches` operationId).
func (*ClientWithResponses) PostApiSignupWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiSignupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSignupResponse, error)
PostApiSignupWithBodyWithResponse Create an account and log it in
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/signup (the `PostApiSignup` operationId).
func (*ClientWithResponses) PostApiSignupWithResponse ¶
func (c *ClientWithResponses) PostApiSignupWithResponse(ctx context.Context, body PostApiSignupJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSignupResponse, error)
PostApiSignupWithResponse Create an account and log it in
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/signup (the `PostApiSignup` operationId).
func (*ClientWithResponses) PostApiTagsWithBodyWithResponse ¶
func (c *ClientWithResponses) PostApiTagsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiTagsResponse, error)
PostApiTagsWithBodyWithResponse Create tags, skipping existing ones
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/tags (the `PostApiTags` operationId).
func (*ClientWithResponses) PostApiTagsWithResponse ¶
func (c *ClientWithResponses) PostApiTagsWithResponse(ctx context.Context, body PostApiTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiTagsResponse, error)
PostApiTagsWithResponse Create tags, skipping existing ones
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/tags (the `PostApiTags` operationId).
func (*ClientWithResponses) PostApiUsersIdPasswordWithResponse ¶
func (c *ClientWithResponses) PostApiUsersIdPasswordWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*PostApiUsersIdPasswordResponse, error)
PostApiUsersIdPasswordWithResponse Reset the password of an account
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/users/{id}/password (the `PostApiUsersIdPassword` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetApiAddUserWithResponse Whether an account can be created
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/add-user (the `GetApiAddUser` operationId).
GetApiAddUserWithResponse(ctx context.Context, params *GetApiAddUserParams, reqEditors ...RequestEditorFn) (*GetApiAddUserResponse, error)
// GetApiExportWithResponse Export the notes as markdown files
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/export (the `GetApiExport` operationId).
GetApiExportWithResponse(ctx context.Context, params *GetApiExportParams, reqEditors ...RequestEditorFn) (*GetApiExportResponse, error)
// GetApiFilesWithResponse List the files kept on the server
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/files (the `GetApiFiles` operationId).
GetApiFilesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiFilesResponse, error)
// PostApiFilesWithBodyWithResponse Upload an image or an attachment
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/files (the `PostApiFiles` operationId).
PostApiFilesWithBodyWithResponse(ctx context.Context, params *PostApiFilesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiFilesResponse, error)
// PostApiFilesWithResponse Upload an image or an attachment
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/files (the `PostApiFiles` operationId).
PostApiFilesWithResponse(ctx context.Context, params *PostApiFilesParams, body PostApiFilesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiFilesResponse, error)
// GetApiFilesIdWithResponse Read an image
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/files/{id} (the `GetApiFilesId` operationId).
GetApiFilesIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiFilesIdResponse, error)
// DeleteApiFoldersWithBodyWithResponse Move notes or folders to the trash, a folder with its content
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/folders (the `DeleteApiFolders` operationId).
DeleteApiFoldersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteApiFoldersResponse, error)
// DeleteApiFoldersWithResponse Move notes or folders to the trash, a folder with its content
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/folders (the `DeleteApiFolders` operationId).
DeleteApiFoldersWithResponse(ctx context.Context, body DeleteApiFoldersJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteApiFoldersResponse, error)
// GetApiFoldersWithResponse List every folder with its path
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/folders (the `GetApiFolders` operationId).
GetApiFoldersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiFoldersResponse, error)
// PostApiFoldersWithBodyWithResponse Create a folder
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/folders (the `PostApiFolders` operationId).
PostApiFoldersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiFoldersResponse, error)
// PostApiFoldersWithResponse Create a folder
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/folders (the `PostApiFolders` operationId).
PostApiFoldersWithResponse(ctx context.Context, body PostApiFoldersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiFoldersResponse, error)
// DeleteApiFoldersIdWithResponse Move a folder and its content to the trash
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/folders/{id} (the `DeleteApiFoldersId` operationId).
DeleteApiFoldersIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteApiFoldersIdResponse, error)
// GetApiFoldersIdWithResponse Read a folder
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/folders/{id} (the `GetApiFoldersId` operationId).
GetApiFoldersIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiFoldersIdResponse, error)
// PatchApiFoldersIdWithBodyWithResponse Rename a folder, or make it a favorite
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/folders/{id} (the `PatchApiFoldersId` operationId).
PatchApiFoldersIdWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchApiFoldersIdResponse, error)
// PatchApiFoldersIdWithResponse Rename a folder, or make it a favorite
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/folders/{id} (the `PatchApiFoldersId` operationId).
PatchApiFoldersIdWithResponse(ctx context.Context, id string, body PatchApiFoldersIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchApiFoldersIdResponse, error)
// GetApiGraphWithResponse Count the notes of every tag, most used first
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/graph (the `GetApiGraph` operationId).
GetApiGraphWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiGraphResponse, error)
// GetApiGraphNotesWithResponse Read every note with its tags, and the links between them, laid out
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/graph/notes (the `GetApiGraphNotes` operationId).
GetApiGraphNotesWithResponse(ctx context.Context, params *GetApiGraphNotesParams, reqEditors ...RequestEditorFn) (*GetApiGraphNotesResponse, error)
// PostApiImportWithBodyWithResponse Import markdown files from a zip or a form of files
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/import (the `PostApiImport` operationId).
PostApiImportWithBodyWithResponse(ctx context.Context, params *PostApiImportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiImportResponse, error)
// PostApiImportWithResponse Import markdown files from a zip or a form of files
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/import (the `PostApiImport` operationId).
PostApiImportWithResponse(ctx context.Context, params *PostApiImportParams, body PostApiImportJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiImportResponse, error)
// GetApiInvitesWithResponse The invitations still usable
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/invites (the `GetApiInvites` operationId).
GetApiInvitesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiInvitesResponse, error)
// PostApiInvitesWithResponse Create an invitation
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/invites (the `PostApiInvites` operationId).
PostApiInvitesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostApiInvitesResponse, error)
// DeleteApiInvitesIdWithResponse Revoke an invitation
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/invites/{id} (the `DeleteApiInvitesId` operationId).
DeleteApiInvitesIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteApiInvitesIdResponse, error)
// GetApiItemsWithResponse List the direct children of a folder, or of the root
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/items (the `GetApiItems` operationId).
GetApiItemsWithResponse(ctx context.Context, params *GetApiItemsParams, reqEditors ...RequestEditorFn) (*GetApiItemsResponse, error)
// GetApiLinksBrokenWithResponse List the broken and ambiguous links, and the missing files
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/links/broken (the `GetApiLinksBroken` operationId).
GetApiLinksBrokenWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiLinksBrokenResponse, error)
// PostApiLoginWithBodyWithResponse Log in
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/login (the `PostApiLogin` operationId).
PostApiLoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiLoginResponse, error)
// PostApiLoginWithResponse Log in
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/login (the `PostApiLogin` operationId).
PostApiLoginWithResponse(ctx context.Context, body PostApiLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiLoginResponse, error)
// PostApiLogoutWithResponse Log out
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/logout (the `PostApiLogout` operationId).
PostApiLogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostApiLogoutResponse, error)
// GetApiMeWithResponse The account logged in
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/me (the `GetApiMe` operationId).
GetApiMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMeResponse, error)
// PatchApiMeWithBodyWithResponse Change the settings of the account logged in
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/me (the `PatchApiMe` operationId).
PatchApiMeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchApiMeResponse, error)
// PatchApiMeWithResponse Change the settings of the account logged in
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/me (the `PatchApiMe` operationId).
PatchApiMeWithResponse(ctx context.Context, body PatchApiMeJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchApiMeResponse, error)
// DeleteApiMeDataWithResponse Delete every note, folder, tag and image of the account logged in
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/me/data (the `DeleteApiMeData` operationId).
DeleteApiMeDataWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteApiMeDataResponse, error)
// PatchApiMePasswordWithBodyWithResponse Change the password of the account logged in
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/me/password (the `PatchApiMePassword` operationId).
PatchApiMePasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchApiMePasswordResponse, error)
// PatchApiMePasswordWithResponse Change the password of the account logged in
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/me/password (the `PatchApiMePassword` operationId).
PatchApiMePasswordWithResponse(ctx context.Context, body PatchApiMePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchApiMePasswordResponse, error)
// GetApiMeStatsWithResponse Count the notes of the account logged in and their size in the base
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/me/stats (the `GetApiMeStats` operationId).
GetApiMeStatsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMeStatsResponse, error)
// GetApiMeTokensWithResponse List the API tokens of the account logged in
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/me/tokens (the `GetApiMeTokens` operationId).
GetApiMeTokensWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiMeTokensResponse, error)
// PostApiMeTokensWithBodyWithResponse Create an API token for the account logged in
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/me/tokens (the `PostApiMeTokens` operationId).
PostApiMeTokensWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiMeTokensResponse, error)
// PostApiMeTokensWithResponse Create an API token for the account logged in
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/me/tokens (the `PostApiMeTokens` operationId).
PostApiMeTokensWithResponse(ctx context.Context, body PostApiMeTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiMeTokensResponse, error)
// DeleteApiMeTokensIdWithResponse Revoke an API token of the account logged in
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/me/tokens/{id} (the `DeleteApiMeTokensId` operationId).
DeleteApiMeTokensIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteApiMeTokensIdResponse, error)
// PostApiMoveWithBodyWithResponse Move items into a folder, or to the root without parent_id
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/move (the `PostApiMove` operationId).
PostApiMoveWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiMoveResponse, error)
// PostApiMoveWithResponse Move items into a folder, or to the root without parent_id
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/move (the `PostApiMove` operationId).
PostApiMoveWithResponse(ctx context.Context, body PostApiMoveJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiMoveResponse, error)
// DeleteApiNotesWithBodyWithResponse Move notes or folders to the trash, a folder with its content
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/notes (the `DeleteApiNotes` operationId).
DeleteApiNotesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteApiNotesResponse, error)
// DeleteApiNotesWithResponse Move notes or folders to the trash, a folder with its content
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/notes (the `DeleteApiNotes` operationId).
DeleteApiNotesWithResponse(ctx context.Context, body DeleteApiNotesJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteApiNotesResponse, error)
// GetApiNotesWithResponse Find the notes by title or path
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/notes (the `GetApiNotes` operationId).
GetApiNotesWithResponse(ctx context.Context, params *GetApiNotesParams, reqEditors ...RequestEditorFn) (*GetApiNotesResponse, error)
// PostApiNotesWithBodyWithResponse Create a note
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/notes (the `PostApiNotes` operationId).
PostApiNotesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiNotesResponse, error)
// PostApiNotesWithResponse Create a note
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/notes (the `PostApiNotes` operationId).
PostApiNotesWithResponse(ctx context.Context, body PostApiNotesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiNotesResponse, error)
// PostApiNotesReadWithBodyWithResponse Read several notes
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/notes/read (the `PostApiNotesRead` operationId).
PostApiNotesReadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiNotesReadResponse, error)
// PostApiNotesReadWithResponse Read several notes
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/notes/read (the `PostApiNotesRead` operationId).
PostApiNotesReadWithResponse(ctx context.Context, body PostApiNotesReadJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiNotesReadResponse, error)
// PatchApiNotesTagsWithBodyWithResponse Tag several notes
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/notes/tags (the `PatchApiNotesTags` operationId).
PatchApiNotesTagsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchApiNotesTagsResponse, error)
// PatchApiNotesTagsWithResponse Tag several notes
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/notes/tags (the `PatchApiNotesTags` operationId).
PatchApiNotesTagsWithResponse(ctx context.Context, body PatchApiNotesTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchApiNotesTagsResponse, error)
// PostApiNotesTagsWithBodyWithResponse Read the tags of notes
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/notes/tags (the `PostApiNotesTags` operationId).
PostApiNotesTagsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiNotesTagsResponse, error)
// PostApiNotesTagsWithResponse Read the tags of notes
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/notes/tags (the `PostApiNotesTags` operationId).
PostApiNotesTagsWithResponse(ctx context.Context, body PostApiNotesTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiNotesTagsResponse, error)
// DeleteApiNotesIdWithResponse Move a note to the trash
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/notes/{id} (the `DeleteApiNotesId` operationId).
DeleteApiNotesIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteApiNotesIdResponse, error)
// GetApiNotesIdWithResponse Read a note
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/notes/{id} (the `GetApiNotesId` operationId).
GetApiNotesIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiNotesIdResponse, error)
// PatchApiNotesIdWithBodyWithResponse Change the fields given
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/notes/{id} (the `PatchApiNotesId` operationId).
PatchApiNotesIdWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchApiNotesIdResponse, error)
// PatchApiNotesIdWithResponse Change the fields given
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/notes/{id} (the `PatchApiNotesId` operationId).
PatchApiNotesIdWithResponse(ctx context.Context, id string, body PatchApiNotesIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchApiNotesIdResponse, error)
// GetApiNotesIdForkWithResponse Read the origin of a fork
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/notes/{id}/fork (the `GetApiNotesIdFork` operationId).
GetApiNotesIdForkWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiNotesIdForkResponse, error)
// PostApiNotesIdForksWithBodyWithResponse Fork a note
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/notes/{id}/forks (the `PostApiNotesIdForks` operationId).
PostApiNotesIdForksWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiNotesIdForksResponse, error)
// PostApiNotesIdForksWithResponse Fork a note
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/notes/{id}/forks (the `PostApiNotesIdForks` operationId).
PostApiNotesIdForksWithResponse(ctx context.Context, id string, body PostApiNotesIdForksJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiNotesIdForksResponse, error)
// GetApiNotesIdGraphWithResponse Read the graph around a note, laid out
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/notes/{id}/graph (the `GetApiNotesIdGraph` operationId).
GetApiNotesIdGraphWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiNotesIdGraphResponse, error)
// PostApiNotesIdMergeWithBodyWithResponse Merge a fork into its original
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/notes/{id}/merge (the `PostApiNotesIdMerge` operationId).
PostApiNotesIdMergeWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiNotesIdMergeResponse, error)
// PostApiNotesIdMergeWithResponse Merge a fork into its original
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/notes/{id}/merge (the `PostApiNotesIdMerge` operationId).
PostApiNotesIdMergeWithResponse(ctx context.Context, id string, body PostApiNotesIdMergeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiNotesIdMergeResponse, error)
// GetApiNotesIdNeighborsWithResponse Read a note and the notes sharing its tags
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/notes/{id}/neighbors (the `GetApiNotesIdNeighbors` operationId).
GetApiNotesIdNeighborsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiNotesIdNeighborsResponse, error)
// PostApiNotesIdRebaseWithBodyWithResponse Rebase a fork on its original
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/notes/{id}/rebase (the `PostApiNotesIdRebase` operationId).
PostApiNotesIdRebaseWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiNotesIdRebaseResponse, error)
// PostApiNotesIdRebaseWithResponse Rebase a fork on its original
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/notes/{id}/rebase (the `PostApiNotesIdRebase` operationId).
PostApiNotesIdRebaseWithResponse(ctx context.Context, id string, body PostApiNotesIdRebaseJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiNotesIdRebaseResponse, error)
// PostApiNotesIdUnmergeWithResponse Undo the last merge of a fork
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/notes/{id}/unmerge (the `PostApiNotesIdUnmerge` operationId).
PostApiNotesIdUnmergeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*PostApiNotesIdUnmergeResponse, error)
// GetApiNotesIdVersionsWithResponse List the versions of a note
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/notes/{id}/versions (the `GetApiNotesIdVersions` operationId).
GetApiNotesIdVersionsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetApiNotesIdVersionsResponse, error)
// PostApiNotesIdVersionsWithBodyWithResponse Keep a text refused by a conflict as a version
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/notes/{id}/versions (the `PostApiNotesIdVersions` operationId).
PostApiNotesIdVersionsWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiNotesIdVersionsResponse, error)
// PostApiNotesIdVersionsWithResponse Keep a text refused by a conflict as a version
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/notes/{id}/versions (the `PostApiNotesIdVersions` operationId).
PostApiNotesIdVersionsWithResponse(ctx context.Context, id string, body PostApiNotesIdVersionsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiNotesIdVersionsResponse, error)
// GetApiNotesIdVersionsVersionWithResponse Read a version of a note
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/notes/{id}/versions/{version} (the `GetApiNotesIdVersionsVersion` operationId).
GetApiNotesIdVersionsVersionWithResponse(ctx context.Context, id string, version string, reqEditors ...RequestEditorFn) (*GetApiNotesIdVersionsVersionResponse, error)
// GetApiPinnedWithResponse List the pinned notes
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/pinned (the `GetApiPinned` operationId).
GetApiPinnedWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiPinnedResponse, error)
// GetApiPlansWithResponse The plans in order, each with its features
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/plans (the `GetApiPlans` operationId).
GetApiPlansWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiPlansResponse, error)
// GetApiRecentWithResponse List the last changed notes
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/recent (the `GetApiRecent` operationId).
GetApiRecentWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiRecentResponse, error)
// PostApiReplaceWithBodyWithResponse Replace a text in every note, or count it with dry_run
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/replace (the `PostApiReplace` operationId).
PostApiReplaceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiReplaceResponse, error)
// PostApiReplaceWithResponse Replace a text in every note, or count it with dry_run
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/replace (the `PostApiReplace` operationId).
PostApiReplaceWithResponse(ctx context.Context, body PostApiReplaceJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiReplaceResponse, error)
// GetApiResolveWithResponse Find the item at a path
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/resolve (the `GetApiResolve` operationId).
GetApiResolveWithResponse(ctx context.Context, params *GetApiResolveParams, reqEditors ...RequestEditorFn) (*GetApiResolveResponse, error)
// PostApiRestoreWithBodyWithResponse Take items out of the trash
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/restore (the `PostApiRestore` operationId).
PostApiRestoreWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiRestoreResponse, error)
// PostApiRestoreWithResponse Take items out of the trash
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/restore (the `PostApiRestore` operationId).
PostApiRestoreWithResponse(ctx context.Context, body PostApiRestoreJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiRestoreResponse, error)
// GetApiSearchWithResponse Find notes by title or content
//
// The text in the title first, then in a heading, then the notes with the most backlinks, the latest edited, by path.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/search (the `GetApiSearch` operationId).
GetApiSearchWithResponse(ctx context.Context, params *GetApiSearchParams, reqEditors ...RequestEditorFn) (*GetApiSearchResponse, error)
// PostApiSearchesWithBodyWithResponse Run criteria not saved yet
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/searches (the `PostApiSearches` operationId).
PostApiSearchesWithBodyWithResponse(ctx context.Context, params *PostApiSearchesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSearchesResponse, error)
// PostApiSearchesWithResponse Run criteria not saved yet
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/searches (the `PostApiSearches` operationId).
PostApiSearchesWithResponse(ctx context.Context, params *PostApiSearchesParams, body PostApiSearchesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSearchesResponse, error)
// GetApiSearchesIdWithResponse Run a saved search
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/searches/{id} (the `GetApiSearchesId` operationId).
GetApiSearchesIdWithResponse(ctx context.Context, id string, params *GetApiSearchesIdParams, reqEditors ...RequestEditorFn) (*GetApiSearchesIdResponse, error)
// PostApiSignupWithBodyWithResponse Create an account and log it in
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/signup (the `PostApiSignup` operationId).
PostApiSignupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiSignupResponse, error)
// PostApiSignupWithResponse Create an account and log it in
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/signup (the `PostApiSignup` operationId).
PostApiSignupWithResponse(ctx context.Context, body PostApiSignupJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiSignupResponse, error)
// DeleteApiTagsWithBodyWithResponse Delete tags and erase them from the text of their notes
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/tags (the `DeleteApiTags` operationId).
DeleteApiTagsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteApiTagsResponse, error)
// DeleteApiTagsWithResponse Delete tags and erase them from the text of their notes
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/tags (the `DeleteApiTags` operationId).
DeleteApiTagsWithResponse(ctx context.Context, body DeleteApiTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteApiTagsResponse, error)
// GetApiTagsWithResponse List every tag
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/tags (the `GetApiTags` operationId).
GetApiTagsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiTagsResponse, error)
// PostApiTagsWithBodyWithResponse Create tags, skipping existing ones
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/tags (the `PostApiTags` operationId).
PostApiTagsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiTagsResponse, error)
// PostApiTagsWithResponse Create tags, skipping existing ones
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/tags (the `PostApiTags` operationId).
PostApiTagsWithResponse(ctx context.Context, body PostApiTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiTagsResponse, error)
// DeleteApiTagsValueWithResponse Delete a tag and erase it from the text of its notes
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/tags/{value} (the `DeleteApiTagsValue` operationId).
DeleteApiTagsValueWithResponse(ctx context.Context, value string, reqEditors ...RequestEditorFn) (*DeleteApiTagsValueResponse, error)
// GetApiTagsValueWithResponse Read a tag and the notes carrying it
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/tags/{value} (the `GetApiTagsValue` operationId).
GetApiTagsValueWithResponse(ctx context.Context, value string, params *GetApiTagsValueParams, reqEditors ...RequestEditorFn) (*GetApiTagsValueResponse, error)
// PatchApiTagsValueWithBodyWithResponse Rename a tag, in the text of its notes too, or merge it into another with merge
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/tags/{value} (the `PatchApiTagsValue` operationId).
PatchApiTagsValueWithBodyWithResponse(ctx context.Context, value string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchApiTagsValueResponse, error)
// PatchApiTagsValueWithResponse Rename a tag, in the text of its notes too, or merge it into another with merge
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/tags/{value} (the `PatchApiTagsValue` operationId).
PatchApiTagsValueWithResponse(ctx context.Context, value string, body PatchApiTagsValueJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchApiTagsValueResponse, error)
// DeleteApiTrashWithResponse Empty the trash for good
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/trash (the `DeleteApiTrash` operationId).
DeleteApiTrashWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteApiTrashResponse, error)
// GetApiTrashWithResponse List what was removed
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/trash (the `GetApiTrash` operationId).
GetApiTrashWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiTrashResponse, error)
// DeleteApiTrashIdWithResponse Delete one removal of the trash for good
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/trash/{id} (the `DeleteApiTrashId` operationId).
DeleteApiTrashIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteApiTrashIdResponse, error)
// GetApiUsersWithResponse Every account
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/users (the `GetApiUsers` operationId).
GetApiUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiUsersResponse, error)
// DeleteApiUsersIdWithResponse Delete an account and all its data
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/users/{id} (the `DeleteApiUsersId` operationId).
DeleteApiUsersIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteApiUsersIdResponse, error)
// PostApiUsersIdPasswordWithResponse Reset the password of an account
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/users/{id}/password (the `PostApiUsersIdPassword` operationId).
PostApiUsersIdPasswordWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*PostApiUsersIdPasswordResponse, error)
// GetApiVersionWithResponse The server's build version
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/version (the `GetApiVersion` operationId).
GetApiVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetApiVersionResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CountnotesStats ¶
type CountnotesStats struct {
Notes int `json:"notes"`
// Size items, texts and versions, the trash included: what the base keeps
Size int `json:"size"`
}
CountnotesStats defines model for countnotes.Stats.
type CounttagsTagCount ¶
type CounttagsTagCount struct {
}
CounttagsTagCount defines model for counttags.TagCount.
type CreateapitokenInput ¶
type CreateapitokenInput struct {
// ExpiresIn ExpiresIn is how long the token works, 90d when left out.
ExpiresIn *CreateapitokenInputExpiresIn `json:"expires_in,omitempty"`
Name string `json:"name"`
// ReadOnly ReadOnly makes a token that reads the notes and changes nothing.
ReadOnly *bool `json:"read_only,omitempty"`
}
CreateapitokenInput defines model for createapitoken.Input.
type CreateapitokenInputExpiresIn ¶
type CreateapitokenInputExpiresIn string
CreateapitokenInputExpiresIn ExpiresIn is how long the token works, 90d when left out.
const ( N1y CreateapitokenInputExpiresIn = "1y" N30d CreateapitokenInputExpiresIn = "30d" N7d CreateapitokenInputExpiresIn = "7d" N90d CreateapitokenInputExpiresIn = "90d" Never CreateapitokenInputExpiresIn = "never" )
Defines values for CreateapitokenInputExpiresIn.
func (CreateapitokenInputExpiresIn) Valid ¶
func (e CreateapitokenInputExpiresIn) Valid() bool
Valid indicates whether the value is a known member of the CreateapitokenInputExpiresIn enum.
type CreateapitokenResult ¶
type CreateapitokenResult struct {
ApiToken DomainAPIToken `json:"api_token"`
Token string `json:"token"`
}
CreateapitokenResult defines model for createapitoken.Result.
type CreatefolderInput ¶
type CreatefolderInput struct {
ParentId *string `json:"parent_id,omitempty"`
Title string `json:"title"`
}
CreatefolderInput defines model for createfolder.Input.
type CreatenoteInput ¶
type CreatenoteInput struct {
Content string `json:"content"`
ParentId *string `json:"parent_id,omitempty"`
Tags *[]string `json:"tags,omitempty"`
}
CreatenoteInput defines model for createnote.Input.
type CreatesessionInput ¶
type CreatesessionInput struct {
Name string `json:"name"`
Password string `json:"password"`
// Token Token asks the token in the answer too, for a client without cookies (the CLI): the web keeps it HttpOnly.
Token *bool `json:"token,omitempty"`
}
CreatesessionInput defines model for createsession.Input.
type CreatesessionResult ¶
type CreatesessionResult struct {
ExpiresAt string `json:"expires_at"`
Token *string `json:"token,omitempty"`
User DomainUser `json:"user"`
}
CreatesessionResult defines model for createsession.Result.
type CreatetagBody ¶
type CreatetagBody struct {
Values []string `json:"values"`
}
CreatetagBody defines model for createtag.Body.
type DeleteApiFoldersIdResponse ¶
type DeleteApiFoldersIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]DomainItem
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseDeleteApiFoldersIdResponse ¶
func ParseDeleteApiFoldersIdResponse(rsp *http.Response) (*DeleteApiFoldersIdResponse, error)
ParseDeleteApiFoldersIdResponse parses an HTTP response from a DeleteApiFoldersIdWithResponse call
func (DeleteApiFoldersIdResponse) ContentType ¶
func (r DeleteApiFoldersIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiFoldersIdResponse) GetBody ¶
func (r DeleteApiFoldersIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiFoldersIdResponse) GetJSON200 ¶
func (r DeleteApiFoldersIdResponse) GetJSON200() *[]DomainItem
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DeleteApiFoldersIdResponse) GetJSON404 ¶
func (r DeleteApiFoldersIdResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DeleteApiFoldersIdResponse) GetJSON500 ¶
func (r DeleteApiFoldersIdResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (DeleteApiFoldersIdResponse) Status ¶
func (r DeleteApiFoldersIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiFoldersIdResponse) StatusCode ¶
func (r DeleteApiFoldersIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiFoldersJSONRequestBody ¶
type DeleteApiFoldersJSONRequestBody = DeleteitemsBody
DeleteApiFoldersJSONRequestBody defines body for DeleteApiFolders for application/json ContentType.
type DeleteApiFoldersResponse ¶
type DeleteApiFoldersResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]DomainItem
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseDeleteApiFoldersResponse ¶
func ParseDeleteApiFoldersResponse(rsp *http.Response) (*DeleteApiFoldersResponse, error)
ParseDeleteApiFoldersResponse parses an HTTP response from a DeleteApiFoldersWithResponse call
func (DeleteApiFoldersResponse) ContentType ¶
func (r DeleteApiFoldersResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiFoldersResponse) GetBody ¶
func (r DeleteApiFoldersResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiFoldersResponse) GetJSON200 ¶
func (r DeleteApiFoldersResponse) GetJSON200() *[]DomainItem
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DeleteApiFoldersResponse) GetJSON400 ¶
func (r DeleteApiFoldersResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (DeleteApiFoldersResponse) GetJSON413 ¶
func (r DeleteApiFoldersResponse) GetJSON413() *RespondFailure
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (DeleteApiFoldersResponse) GetJSON500 ¶
func (r DeleteApiFoldersResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (DeleteApiFoldersResponse) Status ¶
func (r DeleteApiFoldersResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiFoldersResponse) StatusCode ¶
func (r DeleteApiFoldersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiInvitesIdResponse ¶
type DeleteApiInvitesIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *RespondFailure
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *RespondFailure
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseDeleteApiInvitesIdResponse ¶
func ParseDeleteApiInvitesIdResponse(rsp *http.Response) (*DeleteApiInvitesIdResponse, error)
ParseDeleteApiInvitesIdResponse parses an HTTP response from a DeleteApiInvitesIdWithResponse call
func (DeleteApiInvitesIdResponse) ContentType ¶
func (r DeleteApiInvitesIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiInvitesIdResponse) GetBody ¶
func (r DeleteApiInvitesIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiInvitesIdResponse) GetJSON401 ¶
func (r DeleteApiInvitesIdResponse) GetJSON401() *RespondFailure
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (DeleteApiInvitesIdResponse) GetJSON403 ¶
func (r DeleteApiInvitesIdResponse) GetJSON403() *RespondFailure
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DeleteApiInvitesIdResponse) GetJSON404 ¶
func (r DeleteApiInvitesIdResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DeleteApiInvitesIdResponse) GetJSON500 ¶
func (r DeleteApiInvitesIdResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (DeleteApiInvitesIdResponse) Status ¶
func (r DeleteApiInvitesIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiInvitesIdResponse) StatusCode ¶
func (r DeleteApiInvitesIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiMeDataResponse ¶
type DeleteApiMeDataResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseDeleteApiMeDataResponse ¶
func ParseDeleteApiMeDataResponse(rsp *http.Response) (*DeleteApiMeDataResponse, error)
ParseDeleteApiMeDataResponse parses an HTTP response from a DeleteApiMeDataWithResponse call
func (DeleteApiMeDataResponse) ContentType ¶
func (r DeleteApiMeDataResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiMeDataResponse) GetBody ¶
func (r DeleteApiMeDataResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiMeDataResponse) GetJSON401 ¶
func (r DeleteApiMeDataResponse) GetJSON401() *RespondFailure
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (DeleteApiMeDataResponse) GetJSON500 ¶
func (r DeleteApiMeDataResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (DeleteApiMeDataResponse) Status ¶
func (r DeleteApiMeDataResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiMeDataResponse) StatusCode ¶
func (r DeleteApiMeDataResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiMeTokensIdResponse ¶
type DeleteApiMeTokensIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *RespondFailure
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *RespondFailure
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseDeleteApiMeTokensIdResponse ¶
func ParseDeleteApiMeTokensIdResponse(rsp *http.Response) (*DeleteApiMeTokensIdResponse, error)
ParseDeleteApiMeTokensIdResponse parses an HTTP response from a DeleteApiMeTokensIdWithResponse call
func (DeleteApiMeTokensIdResponse) ContentType ¶
func (r DeleteApiMeTokensIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiMeTokensIdResponse) GetBody ¶
func (r DeleteApiMeTokensIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiMeTokensIdResponse) GetJSON401 ¶
func (r DeleteApiMeTokensIdResponse) GetJSON401() *RespondFailure
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (DeleteApiMeTokensIdResponse) GetJSON403 ¶
func (r DeleteApiMeTokensIdResponse) GetJSON403() *RespondFailure
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DeleteApiMeTokensIdResponse) GetJSON404 ¶
func (r DeleteApiMeTokensIdResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DeleteApiMeTokensIdResponse) GetJSON500 ¶
func (r DeleteApiMeTokensIdResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (DeleteApiMeTokensIdResponse) Status ¶
func (r DeleteApiMeTokensIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiMeTokensIdResponse) StatusCode ¶
func (r DeleteApiMeTokensIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiNotesIdResponse ¶
type DeleteApiNotesIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]DomainItem
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseDeleteApiNotesIdResponse ¶
func ParseDeleteApiNotesIdResponse(rsp *http.Response) (*DeleteApiNotesIdResponse, error)
ParseDeleteApiNotesIdResponse parses an HTTP response from a DeleteApiNotesIdWithResponse call
func (DeleteApiNotesIdResponse) ContentType ¶
func (r DeleteApiNotesIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiNotesIdResponse) GetBody ¶
func (r DeleteApiNotesIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiNotesIdResponse) GetJSON200 ¶
func (r DeleteApiNotesIdResponse) GetJSON200() *[]DomainItem
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DeleteApiNotesIdResponse) GetJSON404 ¶
func (r DeleteApiNotesIdResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DeleteApiNotesIdResponse) GetJSON500 ¶
func (r DeleteApiNotesIdResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (DeleteApiNotesIdResponse) Status ¶
func (r DeleteApiNotesIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiNotesIdResponse) StatusCode ¶
func (r DeleteApiNotesIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiNotesJSONRequestBody ¶
type DeleteApiNotesJSONRequestBody = DeleteitemsBody
DeleteApiNotesJSONRequestBody defines body for DeleteApiNotes for application/json ContentType.
type DeleteApiNotesResponse ¶
type DeleteApiNotesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]DomainItem
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseDeleteApiNotesResponse ¶
func ParseDeleteApiNotesResponse(rsp *http.Response) (*DeleteApiNotesResponse, error)
ParseDeleteApiNotesResponse parses an HTTP response from a DeleteApiNotesWithResponse call
func (DeleteApiNotesResponse) ContentType ¶
func (r DeleteApiNotesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiNotesResponse) GetBody ¶
func (r DeleteApiNotesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiNotesResponse) GetJSON200 ¶
func (r DeleteApiNotesResponse) GetJSON200() *[]DomainItem
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DeleteApiNotesResponse) GetJSON400 ¶
func (r DeleteApiNotesResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (DeleteApiNotesResponse) GetJSON413 ¶
func (r DeleteApiNotesResponse) GetJSON413() *RespondFailure
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (DeleteApiNotesResponse) GetJSON500 ¶
func (r DeleteApiNotesResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (DeleteApiNotesResponse) Status ¶
func (r DeleteApiNotesResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiNotesResponse) StatusCode ¶
func (r DeleteApiNotesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiTagsJSONRequestBody ¶
type DeleteApiTagsJSONRequestBody = DeletetagBody
DeleteApiTagsJSONRequestBody defines body for DeleteApiTags for application/json ContentType.
type DeleteApiTagsResponse ¶
type DeleteApiTagsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]DomainTag
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseDeleteApiTagsResponse ¶
func ParseDeleteApiTagsResponse(rsp *http.Response) (*DeleteApiTagsResponse, error)
ParseDeleteApiTagsResponse parses an HTTP response from a DeleteApiTagsWithResponse call
func (DeleteApiTagsResponse) ContentType ¶
func (r DeleteApiTagsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiTagsResponse) GetBody ¶
func (r DeleteApiTagsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiTagsResponse) GetJSON200 ¶
func (r DeleteApiTagsResponse) GetJSON200() *[]DomainTag
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DeleteApiTagsResponse) GetJSON400 ¶
func (r DeleteApiTagsResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (DeleteApiTagsResponse) GetJSON413 ¶
func (r DeleteApiTagsResponse) GetJSON413() *RespondFailure
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (DeleteApiTagsResponse) GetJSON500 ¶
func (r DeleteApiTagsResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (DeleteApiTagsResponse) Status ¶
func (r DeleteApiTagsResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiTagsResponse) StatusCode ¶
func (r DeleteApiTagsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiTagsValueResponse ¶
type DeleteApiTagsValueResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]DomainTag
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseDeleteApiTagsValueResponse ¶
func ParseDeleteApiTagsValueResponse(rsp *http.Response) (*DeleteApiTagsValueResponse, error)
ParseDeleteApiTagsValueResponse parses an HTTP response from a DeleteApiTagsValueWithResponse call
func (DeleteApiTagsValueResponse) ContentType ¶
func (r DeleteApiTagsValueResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiTagsValueResponse) GetBody ¶
func (r DeleteApiTagsValueResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiTagsValueResponse) GetJSON200 ¶
func (r DeleteApiTagsValueResponse) GetJSON200() *[]DomainTag
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DeleteApiTagsValueResponse) GetJSON404 ¶
func (r DeleteApiTagsValueResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DeleteApiTagsValueResponse) GetJSON500 ¶
func (r DeleteApiTagsValueResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (DeleteApiTagsValueResponse) Status ¶
func (r DeleteApiTagsValueResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiTagsValueResponse) StatusCode ¶
func (r DeleteApiTagsValueResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiTrashIdResponse ¶
type DeleteApiTrashIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseDeleteApiTrashIdResponse ¶
func ParseDeleteApiTrashIdResponse(rsp *http.Response) (*DeleteApiTrashIdResponse, error)
ParseDeleteApiTrashIdResponse parses an HTTP response from a DeleteApiTrashIdWithResponse call
func (DeleteApiTrashIdResponse) ContentType ¶
func (r DeleteApiTrashIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiTrashIdResponse) GetBody ¶
func (r DeleteApiTrashIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiTrashIdResponse) GetJSON404 ¶
func (r DeleteApiTrashIdResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DeleteApiTrashIdResponse) GetJSON500 ¶
func (r DeleteApiTrashIdResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (DeleteApiTrashIdResponse) Status ¶
func (r DeleteApiTrashIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiTrashIdResponse) StatusCode ¶
func (r DeleteApiTrashIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiTrashResponse ¶
type DeleteApiTrashResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseDeleteApiTrashResponse ¶
func ParseDeleteApiTrashResponse(rsp *http.Response) (*DeleteApiTrashResponse, error)
ParseDeleteApiTrashResponse parses an HTTP response from a DeleteApiTrashWithResponse call
func (DeleteApiTrashResponse) ContentType ¶
func (r DeleteApiTrashResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiTrashResponse) GetBody ¶
func (r DeleteApiTrashResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiTrashResponse) GetJSON500 ¶
func (r DeleteApiTrashResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (DeleteApiTrashResponse) Status ¶
func (r DeleteApiTrashResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiTrashResponse) StatusCode ¶
func (r DeleteApiTrashResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApiUsersIdResponse ¶
type DeleteApiUsersIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *RespondFailure
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *RespondFailure
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseDeleteApiUsersIdResponse ¶
func ParseDeleteApiUsersIdResponse(rsp *http.Response) (*DeleteApiUsersIdResponse, error)
ParseDeleteApiUsersIdResponse parses an HTTP response from a DeleteApiUsersIdWithResponse call
func (DeleteApiUsersIdResponse) ContentType ¶
func (r DeleteApiUsersIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiUsersIdResponse) GetBody ¶
func (r DeleteApiUsersIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiUsersIdResponse) GetJSON400 ¶
func (r DeleteApiUsersIdResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (DeleteApiUsersIdResponse) GetJSON401 ¶
func (r DeleteApiUsersIdResponse) GetJSON401() *RespondFailure
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (DeleteApiUsersIdResponse) GetJSON403 ¶
func (r DeleteApiUsersIdResponse) GetJSON403() *RespondFailure
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DeleteApiUsersIdResponse) GetJSON404 ¶
func (r DeleteApiUsersIdResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DeleteApiUsersIdResponse) GetJSON500 ¶
func (r DeleteApiUsersIdResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (DeleteApiUsersIdResponse) Status ¶
func (r DeleteApiUsersIdResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiUsersIdResponse) StatusCode ¶
func (r DeleteApiUsersIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteitemsBody ¶
type DeleteitemsBody struct {
Ids []string `json:"ids"`
}
DeleteitemsBody defines model for deleteitems.Body.
type DeletetagBody ¶
type DeletetagBody struct {
Values []string `json:"values"`
}
DeletetagBody defines model for deletetag.Body.
type DomainAPIToken ¶
type DomainAPIToken struct {
CreatedAt string `json:"created_at"`
// ExpiresAt no limit when absent
ExpiresAt *string `json:"expires_at,omitempty"`
Id string `json:"id"`
// LastUsedAt never used when absent
LastUsedAt *string `json:"last_used_at,omitempty"`
// Name sealed: a stolen base does not tell what the tokens are for
Name string `json:"name"`
// Oauth OAuth marks the connection of an OAuth client (the MCP over HTTP): Name is the client's, ExpiresAt the end of its
// refresh token, 90 days after its last use. TokenHash is then its access token, valid until AccessExpiresAt only.
Oauth bool `json:"oauth"`
// ReadOnly ReadOnly refuses the token every request that changes something (auth), and the MCP its writing tools.
ReadOnly bool `json:"read_only"`
}
DomainAPIToken defines model for domain.APIToken.
type DomainFile ¶
type DomainFile struct {
ContentType string `json:"content_type"`
CreatedAt string `json:"created_at"`
Id string `json:"id"`
// Name "" (NULL) for the images uploaded before names were sealed
Name string `json:"name"`
Size int `json:"size"`
}
DomainFile defines model for domain.File.
type DomainInvite ¶
type DomainInvite struct {
CreatedAt string `json:"created_at"`
// CreatedBy the admin who made it
CreatedBy string `json:"created_by"`
ExpiresAt string `json:"expires_at"`
Id string `json:"id"`
// Token The token itself, sealed with the key of the admin who made it, so the admin panel shows the link again:
// "" (NULL) for the invitations made before it was kept. The sign-up still finds an invitation by TokenHash.
Token string `json:"token"`
}
DomainInvite defines model for domain.Invite.
type DomainItem ¶
type DomainItem struct {
CreatedAt string `json:"created_at"`
// HasFolders a folder with subfolders, read by listitems
HasFolders *bool `json:"has_folders,omitempty"`
Id string `json:"id"`
Kind DomainKind `json:"kind"`
ParentId *string `json:"parent_id,omitempty"`
// Readonly a locked note, read by listitems from metadata_notes
Readonly *bool `json:"readonly,omitempty"`
// Title NULL = untitled note (--no-title)
Title string `json:"title"`
UpdatedAt *string `json:"updated_at,omitempty"`
}
DomainItem defines model for domain.Item.
type DomainKind ¶
type DomainKind string
DomainKind defines model for domain.Kind.
const ( FOLDER DomainKind = "folder" NOTE DomainKind = "note" )
Defines values for DomainKind.
func (DomainKind) Valid ¶
func (e DomainKind) Valid() bool
Valid indicates whether the value is a known member of the DomainKind enum.
type DomainNoteVersion ¶
type DomainNoteVersion struct {
// Conflict a text refused by a 409, kept so it is not lost (#78)
Conflict bool `json:"conflict"`
// Content left out of a list
Content *string `json:"content,omitempty"`
CreatedAt string `json:"created_at"`
Id string `json:"id"`
}
DomainNoteVersion defines model for domain.NoteVersion.
type DomainSavedSearch ¶
type DomainSavedSearch struct {
CreatedFrom *string `json:"created_from,omitempty"`
CreatedTo *string `json:"created_to,omitempty"`
EditedFrom *string `json:"edited_from,omitempty"`
EditedTo *string `json:"edited_to,omitempty"`
FolderIds *[]string `json:"folder_ids,omitempty"`
// FolderMode "include" or "exclude", one of FolderModes
FolderMode *string `json:"folder_mode,omitempty"`
Id string `json:"id"`
Name string `json:"name"`
TagIds *[]string `json:"tag_ids,omitempty"`
// TagMode "any" (default) or "all", one of TagModes
TagMode *string `json:"tag_mode,omitempty"`
Text *string `json:"text,omitempty"`
}
DomainSavedSearch defines model for domain.SavedSearch.
type DomainSidebarSection ¶
DomainSidebarSection defines model for domain.SidebarSection.
type DomainSnippet ¶
DomainSnippet defines model for domain.Snippet.
type DomainUser ¶
type DomainUser struct {
// Admin may create, invite and delete accounts; the first account of the base gets it
Admin bool `json:"admin"`
// AfterMerge what a merge does with the fork, one of AfterMerges
AfterMerge string `json:"after_merge"`
// Avatar the id of a File of the account, purgefiles keeps it
Avatar string `json:"avatar"`
// ColorMode light or dark, one of ColorModes
ColorMode string `json:"color_mode"`
CreatedAt string `json:"created_at"`
// Features The features of its plan, what the web app shows: not stored, filled from Plan at every read.
Features []string `json:"features"`
Id string `json:"id"`
// Locale the language of the web app, one of Locales
Locale string `json:"locale"`
// Name unique case-insensitive, see createschema
Name string `json:"name"`
// NeighborsLimit The most notes sharing a tag that a note shows around it, one of NeighborsLimits, 0 for all of them.
// An insert of 0 gets the default: only an update sets it.
NeighborsLimit int `json:"neighbors_limit"`
// Plan the features of the web app, one of Plans
Plan string `json:"plan"`
SavedSearches []DomainSavedSearch `json:"saved_searches"`
// SidebarSections The order of the sidebar lists and which ones show, [] for the app's default.
SidebarSections []DomainSidebarSection `json:"sidebar_sections"`
Snippets []DomainSnippet `json:"snippets"`
// Theme the colors of the web app, one of Themes
Theme string `json:"theme"`
// TrashRetentionDays Days before the trash is purged, 0 to never purge. An insert of 0 gets the default: only an update sets it.
TrashRetentionDays int `json:"trash_retention_days"`
// UpdatedAt The version of the settings, bumped by every PATCH /api/me: sent back there, it refuses a write made over an older read.
UpdatedAt string `json:"updated_at"`
// View how the web app lists items, one of Views
View string `json:"view"`
}
DomainUser defines model for domain.User.
type EditfolderBody ¶
type EditfolderBody struct {
Pinned *bool `json:"pinned,omitempty"`
Title *string `json:"title,omitempty"`
}
EditfolderBody defines model for editfolder.Body.
type EditnoteBody ¶
type EditnoteBody struct {
Content *string `json:"content,omitempty"`
Pinned *bool `json:"pinned,omitempty"`
Readonly *bool `json:"readonly,omitempty"`
// Restore Restore says the content is a version restored: the text it replaces is kept in the history.
Restore *bool `json:"restore,omitempty"`
Tags *[]string `json:"tags,omitempty"`
// UpdatedAt UpdatedAt is updated_at as read, or created_at for a note never edited: a 409 if the note changed since.
UpdatedAt *string `json:"updated_at,omitempty"`
}
EditnoteBody defines model for editnote.Body.
type EditpasswordInput ¶
EditpasswordInput defines model for editpassword.Input.
type EdittagBody ¶
type EdittagBody struct {
// Merge Merge folds the tag into value when value is another tag already, instead of a 409.
Merge *bool `json:"merge,omitempty"`
Value string `json:"value"`
}
EdittagBody defines model for edittag.Body.
type EdituserInput ¶
type EdituserInput struct {
// AfterMerge one of domain.AfterMerges
AfterMerge *string `json:"after_merge,omitempty"`
// Avatar the id of an image of the account, "" for none
Avatar *string `json:"avatar,omitempty"`
ColorMode *string `json:"color_mode,omitempty"`
Locale *string `json:"locale,omitempty"`
Name *string `json:"name,omitempty"`
// NeighborsLimit one of domain.NeighborsLimits
NeighborsLimit *int `json:"neighbors_limit,omitempty"`
Plan *string `json:"plan,omitempty"`
// SavedSearches the whole list, it replaces the saved one
SavedSearches *[]DomainSavedSearch `json:"saved_searches,omitempty"`
// SidebarSections the whole list, in order
SidebarSections *[]DomainSidebarSection `json:"sidebar_sections,omitempty"`
// Snippets the whole list, it replaces the saved one
Snippets *[]DomainSnippet `json:"snippets,omitempty"`
Theme *string `json:"theme,omitempty"`
TrashRetentionDays *int `json:"trash_retention_days,omitempty"`
// UpdatedAt UpdatedAt is the updated_at of the account as read: a 409 if its settings changed since, nothing written.
UpdatedAt *string `json:"updated_at,omitempty"`
View *string `json:"view,omitempty"`
}
EdituserInput defines model for edituser.Input.
type ForcelayoutPoint ¶
ForcelayoutPoint defines model for forcelayout.Point.
type ForknoteBody ¶
type ForknoteBody struct {
Content string `json:"content"`
}
ForknoteBody defines model for forknote.Body.
type ForknoteMergeBody ¶
type ForknoteMergeBody struct {
// Base Base is the fork's text the merge started from, the base of the next merge.
Base string `json:"base"`
// Content Content is the merged text, saved into the original.
Content string `json:"content"`
// Trash Trash moves the fork to the trash with the merge.
Trash *bool `json:"trash,omitempty"`
// UpdatedAt UpdatedAt is updated_at of the original as read, or its created_at: a 409 if it changed since.
UpdatedAt *string `json:"updated_at,omitempty"`
}
ForknoteMergeBody defines model for forknote.MergeBody.
type ForknoteRebaseBody ¶
type ForknoteRebaseBody struct {
// Base Base is the original's text the rebase started from, the base of the next merge.
Base string `json:"base"`
// Content Content is the rebased text, saved into the fork.
Content string `json:"content"`
// UpdatedAt UpdatedAt is updated_at of the fork as read, or its created_at: a 409 if it changed since.
UpdatedAt *string `json:"updated_at,omitempty"`
}
ForknoteRebaseBody defines model for forknote.RebaseBody.
type GetApiAddUserParams ¶
type GetApiAddUserParams struct {
// Invite token of an invitation
Invite *string `form:"invite,omitempty" json:"invite,omitempty"`
}
GetApiAddUserParams defines parameters for GetApiAddUser.
type GetApiAddUserResponse ¶
type GetApiAddUserResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *UsersMode
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiAddUserResponse ¶
func ParseGetApiAddUserResponse(rsp *http.Response) (*GetApiAddUserResponse, error)
ParseGetApiAddUserResponse parses an HTTP response from a GetApiAddUserWithResponse call
func (GetApiAddUserResponse) ContentType ¶
func (r GetApiAddUserResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiAddUserResponse) GetBody ¶
func (r GetApiAddUserResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiAddUserResponse) GetJSON200 ¶
func (r GetApiAddUserResponse) GetJSON200() *UsersMode
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiAddUserResponse) GetJSON500 ¶
func (r GetApiAddUserResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiAddUserResponse) Status ¶
func (r GetApiAddUserResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiAddUserResponse) StatusCode ¶
func (r GetApiAddUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiExportParams ¶
type GetApiExportParams struct {
// Id items to export with what they hold, every note when left out
Id *[]string `form:"id,omitempty" json:"id,omitempty"`
// Parent folder whose content to export, without the folder itself
Parent *string `form:"parent,omitempty" json:"parent,omitempty"`
// Files false: the images in _files are empty, only named
Files *bool `form:"files,omitempty" json:"files,omitempty"`
}
GetApiExportParams defines parameters for GetApiExport.
type GetApiExportResponse ¶
func ParseGetApiExportResponse ¶
func ParseGetApiExportResponse(rsp *http.Response) (*GetApiExportResponse, error)
ParseGetApiExportResponse parses an HTTP response from a GetApiExportWithResponse call
func (GetApiExportResponse) ContentType ¶
func (r GetApiExportResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiExportResponse) GetBody ¶
func (r GetApiExportResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiExportResponse) Status ¶
func (r GetApiExportResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiExportResponse) StatusCode ¶
func (r GetApiExportResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiFilesIdResponse ¶
func ParseGetApiFilesIdResponse ¶
func ParseGetApiFilesIdResponse(rsp *http.Response) (*GetApiFilesIdResponse, error)
ParseGetApiFilesIdResponse parses an HTTP response from a GetApiFilesIdWithResponse call
func (GetApiFilesIdResponse) ContentType ¶
func (r GetApiFilesIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiFilesIdResponse) GetBody ¶
func (r GetApiFilesIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiFilesIdResponse) Status ¶
func (r GetApiFilesIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiFilesIdResponse) StatusCode ¶
func (r GetApiFilesIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiFilesResponse ¶
type GetApiFilesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]DomainFile
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiFilesResponse ¶
func ParseGetApiFilesResponse(rsp *http.Response) (*GetApiFilesResponse, error)
ParseGetApiFilesResponse parses an HTTP response from a GetApiFilesWithResponse call
func (GetApiFilesResponse) ContentType ¶
func (r GetApiFilesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiFilesResponse) GetBody ¶
func (r GetApiFilesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiFilesResponse) GetJSON200 ¶
func (r GetApiFilesResponse) GetJSON200() *[]DomainFile
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiFilesResponse) GetJSON403 ¶
func (r GetApiFilesResponse) GetJSON403() *RespondFailure
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetApiFilesResponse) GetJSON500 ¶
func (r GetApiFilesResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiFilesResponse) Status ¶
func (r GetApiFilesResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiFilesResponse) StatusCode ¶
func (r GetApiFilesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiFoldersIdResponse ¶
type GetApiFoldersIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ReaditemResult
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiFoldersIdResponse ¶
func ParseGetApiFoldersIdResponse(rsp *http.Response) (*GetApiFoldersIdResponse, error)
ParseGetApiFoldersIdResponse parses an HTTP response from a GetApiFoldersIdWithResponse call
func (GetApiFoldersIdResponse) ContentType ¶
func (r GetApiFoldersIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiFoldersIdResponse) GetBody ¶
func (r GetApiFoldersIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiFoldersIdResponse) GetJSON200 ¶
func (r GetApiFoldersIdResponse) GetJSON200() *ReaditemResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiFoldersIdResponse) GetJSON404 ¶
func (r GetApiFoldersIdResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetApiFoldersIdResponse) GetJSON500 ¶
func (r GetApiFoldersIdResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiFoldersIdResponse) Status ¶
func (r GetApiFoldersIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiFoldersIdResponse) StatusCode ¶
func (r GetApiFoldersIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiFoldersResponse ¶
type GetApiFoldersResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]ListfoldersFolder
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiFoldersResponse ¶
func ParseGetApiFoldersResponse(rsp *http.Response) (*GetApiFoldersResponse, error)
ParseGetApiFoldersResponse parses an HTTP response from a GetApiFoldersWithResponse call
func (GetApiFoldersResponse) ContentType ¶
func (r GetApiFoldersResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiFoldersResponse) GetBody ¶
func (r GetApiFoldersResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiFoldersResponse) GetJSON200 ¶
func (r GetApiFoldersResponse) GetJSON200() *[]ListfoldersFolder
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiFoldersResponse) GetJSON500 ¶
func (r GetApiFoldersResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiFoldersResponse) Status ¶
func (r GetApiFoldersResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiFoldersResponse) StatusCode ¶
func (r GetApiFoldersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiGraphNotesParams ¶
type GetApiGraphNotesParams struct {
// Layout false: no layout, the notes without x and y, sorted by id
Layout *bool `form:"layout,omitempty" json:"layout,omitempty"`
}
GetApiGraphNotesParams defines parameters for GetApiGraphNotes.
type GetApiGraphNotesResponse ¶
type GetApiGraphNotesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ReadgraphResult
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiGraphNotesResponse ¶
func ParseGetApiGraphNotesResponse(rsp *http.Response) (*GetApiGraphNotesResponse, error)
ParseGetApiGraphNotesResponse parses an HTTP response from a GetApiGraphNotesWithResponse call
func (GetApiGraphNotesResponse) ContentType ¶
func (r GetApiGraphNotesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiGraphNotesResponse) GetBody ¶
func (r GetApiGraphNotesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiGraphNotesResponse) GetJSON200 ¶
func (r GetApiGraphNotesResponse) GetJSON200() *ReadgraphResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiGraphNotesResponse) GetJSON500 ¶
func (r GetApiGraphNotesResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiGraphNotesResponse) Status ¶
func (r GetApiGraphNotesResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiGraphNotesResponse) StatusCode ¶
func (r GetApiGraphNotesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiGraphResponse ¶
type GetApiGraphResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]CounttagsTagCount
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiGraphResponse ¶
func ParseGetApiGraphResponse(rsp *http.Response) (*GetApiGraphResponse, error)
ParseGetApiGraphResponse parses an HTTP response from a GetApiGraphWithResponse call
func (GetApiGraphResponse) ContentType ¶
func (r GetApiGraphResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiGraphResponse) GetBody ¶
func (r GetApiGraphResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiGraphResponse) GetJSON200 ¶
func (r GetApiGraphResponse) GetJSON200() *[]CounttagsTagCount
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiGraphResponse) GetJSON500 ¶
func (r GetApiGraphResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiGraphResponse) Status ¶
func (r GetApiGraphResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiGraphResponse) StatusCode ¶
func (r GetApiGraphResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiInvitesResponse ¶
type GetApiInvitesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]DomainInvite
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *RespondFailure
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiInvitesResponse ¶
func ParseGetApiInvitesResponse(rsp *http.Response) (*GetApiInvitesResponse, error)
ParseGetApiInvitesResponse parses an HTTP response from a GetApiInvitesWithResponse call
func (GetApiInvitesResponse) ContentType ¶
func (r GetApiInvitesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiInvitesResponse) GetBody ¶
func (r GetApiInvitesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiInvitesResponse) GetJSON200 ¶
func (r GetApiInvitesResponse) GetJSON200() *[]DomainInvite
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiInvitesResponse) GetJSON401 ¶
func (r GetApiInvitesResponse) GetJSON401() *RespondFailure
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetApiInvitesResponse) GetJSON403 ¶
func (r GetApiInvitesResponse) GetJSON403() *RespondFailure
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetApiInvitesResponse) GetJSON500 ¶
func (r GetApiInvitesResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiInvitesResponse) Status ¶
func (r GetApiInvitesResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiInvitesResponse) StatusCode ¶
func (r GetApiInvitesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiItemsParams ¶
type GetApiItemsParams struct {
// Parent folder uuid, the root when left out
Parent *string `form:"parent,omitempty" json:"parent,omitempty"`
// Kind folder or note, both when left out
Kind *string `form:"kind,omitempty" json:"kind,omitempty"`
// Limit children in the page, all when left out or 0
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// Offset children skipped before the page, folders first then by title
Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}
GetApiItemsParams defines parameters for GetApiItems.
type GetApiItemsResponse ¶
type GetApiItemsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]DomainItem
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetApiItemsResponse200Headers
}
func ParseGetApiItemsResponse ¶
func ParseGetApiItemsResponse(rsp *http.Response) (*GetApiItemsResponse, error)
ParseGetApiItemsResponse parses an HTTP response from a GetApiItemsWithResponse call
func (GetApiItemsResponse) ContentType ¶
func (r GetApiItemsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiItemsResponse) GetBody ¶
func (r GetApiItemsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiItemsResponse) GetJSON200 ¶
func (r GetApiItemsResponse) GetJSON200() *[]DomainItem
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiItemsResponse) GetJSON400 ¶
func (r GetApiItemsResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetApiItemsResponse) GetJSON500 ¶
func (r GetApiItemsResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiItemsResponse) Status ¶
func (r GetApiItemsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiItemsResponse) StatusCode ¶
func (r GetApiItemsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiItemsResponse200Headers ¶
type GetApiItemsResponse200Headers struct {
XTotalCount *int
}
GetApiItemsResponse200Headers the declared response headers of an HTTP 200 response for GetApiItems
type GetApiLinksBrokenResponse ¶
type GetApiLinksBrokenResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]ListbrokenlinksLink
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiLinksBrokenResponse ¶
func ParseGetApiLinksBrokenResponse(rsp *http.Response) (*GetApiLinksBrokenResponse, error)
ParseGetApiLinksBrokenResponse parses an HTTP response from a GetApiLinksBrokenWithResponse call
func (GetApiLinksBrokenResponse) ContentType ¶
func (r GetApiLinksBrokenResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiLinksBrokenResponse) GetBody ¶
func (r GetApiLinksBrokenResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiLinksBrokenResponse) GetJSON200 ¶
func (r GetApiLinksBrokenResponse) GetJSON200() *[]ListbrokenlinksLink
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiLinksBrokenResponse) GetJSON403 ¶
func (r GetApiLinksBrokenResponse) GetJSON403() *RespondFailure
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetApiLinksBrokenResponse) GetJSON500 ¶
func (r GetApiLinksBrokenResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiLinksBrokenResponse) Status ¶
func (r GetApiLinksBrokenResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiLinksBrokenResponse) StatusCode ¶
func (r GetApiLinksBrokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiMeResponse ¶
type GetApiMeResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DomainUser
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *RespondFailure
}
func ParseGetApiMeResponse ¶
func ParseGetApiMeResponse(rsp *http.Response) (*GetApiMeResponse, error)
ParseGetApiMeResponse parses an HTTP response from a GetApiMeWithResponse call
func (GetApiMeResponse) ContentType ¶
func (r GetApiMeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiMeResponse) GetBody ¶
func (r GetApiMeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiMeResponse) GetJSON200 ¶
func (r GetApiMeResponse) GetJSON200() *DomainUser
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiMeResponse) GetJSON401 ¶
func (r GetApiMeResponse) GetJSON401() *RespondFailure
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetApiMeResponse) Status ¶
func (r GetApiMeResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiMeResponse) StatusCode ¶
func (r GetApiMeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiMeStatsResponse ¶
type GetApiMeStatsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CountnotesStats
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiMeStatsResponse ¶
func ParseGetApiMeStatsResponse(rsp *http.Response) (*GetApiMeStatsResponse, error)
ParseGetApiMeStatsResponse parses an HTTP response from a GetApiMeStatsWithResponse call
func (GetApiMeStatsResponse) ContentType ¶
func (r GetApiMeStatsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiMeStatsResponse) GetBody ¶
func (r GetApiMeStatsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiMeStatsResponse) GetJSON200 ¶
func (r GetApiMeStatsResponse) GetJSON200() *CountnotesStats
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiMeStatsResponse) GetJSON401 ¶
func (r GetApiMeStatsResponse) GetJSON401() *RespondFailure
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetApiMeStatsResponse) GetJSON500 ¶
func (r GetApiMeStatsResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiMeStatsResponse) Status ¶
func (r GetApiMeStatsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiMeStatsResponse) StatusCode ¶
func (r GetApiMeStatsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiMeTokensResponse ¶
type GetApiMeTokensResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]DomainAPIToken
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *RespondFailure
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiMeTokensResponse ¶
func ParseGetApiMeTokensResponse(rsp *http.Response) (*GetApiMeTokensResponse, error)
ParseGetApiMeTokensResponse parses an HTTP response from a GetApiMeTokensWithResponse call
func (GetApiMeTokensResponse) ContentType ¶
func (r GetApiMeTokensResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiMeTokensResponse) GetBody ¶
func (r GetApiMeTokensResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiMeTokensResponse) GetJSON200 ¶
func (r GetApiMeTokensResponse) GetJSON200() *[]DomainAPIToken
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiMeTokensResponse) GetJSON401 ¶
func (r GetApiMeTokensResponse) GetJSON401() *RespondFailure
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetApiMeTokensResponse) GetJSON403 ¶
func (r GetApiMeTokensResponse) GetJSON403() *RespondFailure
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetApiMeTokensResponse) GetJSON500 ¶
func (r GetApiMeTokensResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiMeTokensResponse) Status ¶
func (r GetApiMeTokensResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiMeTokensResponse) StatusCode ¶
func (r GetApiMeTokensResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiNotesIdForkResponse ¶
type GetApiNotesIdForkResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ReadforkResult
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiNotesIdForkResponse ¶
func ParseGetApiNotesIdForkResponse(rsp *http.Response) (*GetApiNotesIdForkResponse, error)
ParseGetApiNotesIdForkResponse parses an HTTP response from a GetApiNotesIdForkWithResponse call
func (GetApiNotesIdForkResponse) ContentType ¶
func (r GetApiNotesIdForkResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiNotesIdForkResponse) GetBody ¶
func (r GetApiNotesIdForkResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiNotesIdForkResponse) GetJSON200 ¶
func (r GetApiNotesIdForkResponse) GetJSON200() *ReadforkResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiNotesIdForkResponse) GetJSON404 ¶
func (r GetApiNotesIdForkResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetApiNotesIdForkResponse) GetJSON500 ¶
func (r GetApiNotesIdForkResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiNotesIdForkResponse) Status ¶
func (r GetApiNotesIdForkResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiNotesIdForkResponse) StatusCode ¶
func (r GetApiNotesIdForkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiNotesIdGraphResponse ¶
type GetApiNotesIdGraphResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ReadgraphResult
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiNotesIdGraphResponse ¶
func ParseGetApiNotesIdGraphResponse(rsp *http.Response) (*GetApiNotesIdGraphResponse, error)
ParseGetApiNotesIdGraphResponse parses an HTTP response from a GetApiNotesIdGraphWithResponse call
func (GetApiNotesIdGraphResponse) ContentType ¶
func (r GetApiNotesIdGraphResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiNotesIdGraphResponse) GetBody ¶
func (r GetApiNotesIdGraphResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiNotesIdGraphResponse) GetJSON200 ¶
func (r GetApiNotesIdGraphResponse) GetJSON200() *ReadgraphResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiNotesIdGraphResponse) GetJSON404 ¶
func (r GetApiNotesIdGraphResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetApiNotesIdGraphResponse) GetJSON500 ¶
func (r GetApiNotesIdGraphResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiNotesIdGraphResponse) Status ¶
func (r GetApiNotesIdGraphResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiNotesIdGraphResponse) StatusCode ¶
func (r GetApiNotesIdGraphResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiNotesIdNeighborsResponse ¶
type GetApiNotesIdNeighborsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ReadneighborsResult
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiNotesIdNeighborsResponse ¶
func ParseGetApiNotesIdNeighborsResponse(rsp *http.Response) (*GetApiNotesIdNeighborsResponse, error)
ParseGetApiNotesIdNeighborsResponse parses an HTTP response from a GetApiNotesIdNeighborsWithResponse call
func (GetApiNotesIdNeighborsResponse) ContentType ¶
func (r GetApiNotesIdNeighborsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiNotesIdNeighborsResponse) GetBody ¶
func (r GetApiNotesIdNeighborsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiNotesIdNeighborsResponse) GetJSON200 ¶
func (r GetApiNotesIdNeighborsResponse) GetJSON200() *ReadneighborsResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiNotesIdNeighborsResponse) GetJSON404 ¶
func (r GetApiNotesIdNeighborsResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetApiNotesIdNeighborsResponse) GetJSON500 ¶
func (r GetApiNotesIdNeighborsResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiNotesIdNeighborsResponse) Status ¶
func (r GetApiNotesIdNeighborsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiNotesIdNeighborsResponse) StatusCode ¶
func (r GetApiNotesIdNeighborsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiNotesIdResponse ¶
type GetApiNotesIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ReaditemResult
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiNotesIdResponse ¶
func ParseGetApiNotesIdResponse(rsp *http.Response) (*GetApiNotesIdResponse, error)
ParseGetApiNotesIdResponse parses an HTTP response from a GetApiNotesIdWithResponse call
func (GetApiNotesIdResponse) ContentType ¶
func (r GetApiNotesIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiNotesIdResponse) GetBody ¶
func (r GetApiNotesIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiNotesIdResponse) GetJSON200 ¶
func (r GetApiNotesIdResponse) GetJSON200() *ReaditemResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiNotesIdResponse) GetJSON404 ¶
func (r GetApiNotesIdResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetApiNotesIdResponse) GetJSON500 ¶
func (r GetApiNotesIdResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiNotesIdResponse) Status ¶
func (r GetApiNotesIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiNotesIdResponse) StatusCode ¶
func (r GetApiNotesIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiNotesIdVersionsResponse ¶
type GetApiNotesIdVersionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]DomainNoteVersion
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *RespondFailure
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiNotesIdVersionsResponse ¶
func ParseGetApiNotesIdVersionsResponse(rsp *http.Response) (*GetApiNotesIdVersionsResponse, error)
ParseGetApiNotesIdVersionsResponse parses an HTTP response from a GetApiNotesIdVersionsWithResponse call
func (GetApiNotesIdVersionsResponse) ContentType ¶
func (r GetApiNotesIdVersionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiNotesIdVersionsResponse) GetBody ¶
func (r GetApiNotesIdVersionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiNotesIdVersionsResponse) GetJSON200 ¶
func (r GetApiNotesIdVersionsResponse) GetJSON200() *[]DomainNoteVersion
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiNotesIdVersionsResponse) GetJSON403 ¶
func (r GetApiNotesIdVersionsResponse) GetJSON403() *RespondFailure
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetApiNotesIdVersionsResponse) GetJSON404 ¶
func (r GetApiNotesIdVersionsResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetApiNotesIdVersionsResponse) GetJSON500 ¶
func (r GetApiNotesIdVersionsResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiNotesIdVersionsResponse) Status ¶
func (r GetApiNotesIdVersionsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiNotesIdVersionsResponse) StatusCode ¶
func (r GetApiNotesIdVersionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiNotesIdVersionsVersionResponse ¶
type GetApiNotesIdVersionsVersionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DomainNoteVersion
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *RespondFailure
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiNotesIdVersionsVersionResponse ¶
func ParseGetApiNotesIdVersionsVersionResponse(rsp *http.Response) (*GetApiNotesIdVersionsVersionResponse, error)
ParseGetApiNotesIdVersionsVersionResponse parses an HTTP response from a GetApiNotesIdVersionsVersionWithResponse call
func (GetApiNotesIdVersionsVersionResponse) ContentType ¶
func (r GetApiNotesIdVersionsVersionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiNotesIdVersionsVersionResponse) GetBody ¶
func (r GetApiNotesIdVersionsVersionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiNotesIdVersionsVersionResponse) GetJSON200 ¶
func (r GetApiNotesIdVersionsVersionResponse) GetJSON200() *DomainNoteVersion
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiNotesIdVersionsVersionResponse) GetJSON400 ¶
func (r GetApiNotesIdVersionsVersionResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetApiNotesIdVersionsVersionResponse) GetJSON403 ¶
func (r GetApiNotesIdVersionsVersionResponse) GetJSON403() *RespondFailure
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetApiNotesIdVersionsVersionResponse) GetJSON404 ¶
func (r GetApiNotesIdVersionsVersionResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetApiNotesIdVersionsVersionResponse) GetJSON500 ¶
func (r GetApiNotesIdVersionsVersionResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiNotesIdVersionsVersionResponse) Status ¶
func (r GetApiNotesIdVersionsVersionResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiNotesIdVersionsVersionResponse) StatusCode ¶
func (r GetApiNotesIdVersionsVersionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiNotesParams ¶
type GetApiNotesParams struct {
// Q text of the title or the path
Q *string `form:"q,omitempty" json:"q,omitempty"`
}
GetApiNotesParams defines parameters for GetApiNotes.
type GetApiNotesResponse ¶
type GetApiNotesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]ReadgraphNote
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiNotesResponse ¶
func ParseGetApiNotesResponse(rsp *http.Response) (*GetApiNotesResponse, error)
ParseGetApiNotesResponse parses an HTTP response from a GetApiNotesWithResponse call
func (GetApiNotesResponse) ContentType ¶
func (r GetApiNotesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiNotesResponse) GetBody ¶
func (r GetApiNotesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiNotesResponse) GetJSON200 ¶
func (r GetApiNotesResponse) GetJSON200() *[]ReadgraphNote
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiNotesResponse) GetJSON500 ¶
func (r GetApiNotesResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiNotesResponse) Status ¶
func (r GetApiNotesResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiNotesResponse) StatusCode ¶
func (r GetApiNotesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiPinnedResponse ¶
type GetApiPinnedResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]ListpinnedPinned
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiPinnedResponse ¶
func ParseGetApiPinnedResponse(rsp *http.Response) (*GetApiPinnedResponse, error)
ParseGetApiPinnedResponse parses an HTTP response from a GetApiPinnedWithResponse call
func (GetApiPinnedResponse) ContentType ¶
func (r GetApiPinnedResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiPinnedResponse) GetBody ¶
func (r GetApiPinnedResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiPinnedResponse) GetJSON200 ¶
func (r GetApiPinnedResponse) GetJSON200() *[]ListpinnedPinned
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiPinnedResponse) GetJSON500 ¶
func (r GetApiPinnedResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiPinnedResponse) Status ¶
func (r GetApiPinnedResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiPinnedResponse) StatusCode ¶
func (r GetApiPinnedResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiPlansResponse ¶
type GetApiPlansResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]ReadplansPlan
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *RespondFailure
}
func ParseGetApiPlansResponse ¶
func ParseGetApiPlansResponse(rsp *http.Response) (*GetApiPlansResponse, error)
ParseGetApiPlansResponse parses an HTTP response from a GetApiPlansWithResponse call
func (GetApiPlansResponse) ContentType ¶
func (r GetApiPlansResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiPlansResponse) GetBody ¶
func (r GetApiPlansResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiPlansResponse) GetJSON200 ¶
func (r GetApiPlansResponse) GetJSON200() *[]ReadplansPlan
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiPlansResponse) GetJSON401 ¶
func (r GetApiPlansResponse) GetJSON401() *RespondFailure
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetApiPlansResponse) Status ¶
func (r GetApiPlansResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiPlansResponse) StatusCode ¶
func (r GetApiPlansResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiRecentResponse ¶
type GetApiRecentResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]ListrecentRecent
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiRecentResponse ¶
func ParseGetApiRecentResponse(rsp *http.Response) (*GetApiRecentResponse, error)
ParseGetApiRecentResponse parses an HTTP response from a GetApiRecentWithResponse call
func (GetApiRecentResponse) ContentType ¶
func (r GetApiRecentResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiRecentResponse) GetBody ¶
func (r GetApiRecentResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiRecentResponse) GetJSON200 ¶
func (r GetApiRecentResponse) GetJSON200() *[]ListrecentRecent
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiRecentResponse) GetJSON500 ¶
func (r GetApiRecentResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiRecentResponse) Status ¶
func (r GetApiRecentResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiRecentResponse) StatusCode ¶
func (r GetApiRecentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiResolveParams ¶
type GetApiResolveParams struct {
// Path path from the root, /Projects/Ideas
Path string `form:"path" json:"path"`
// Kind folder or note, both when left out
Kind *string `form:"kind,omitempty" json:"kind,omitempty"`
}
GetApiResolveParams defines parameters for GetApiResolve.
type GetApiResolveResponse ¶
type GetApiResolveResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ReadpathResolved
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiResolveResponse ¶
func ParseGetApiResolveResponse(rsp *http.Response) (*GetApiResolveResponse, error)
ParseGetApiResolveResponse parses an HTTP response from a GetApiResolveWithResponse call
func (GetApiResolveResponse) ContentType ¶
func (r GetApiResolveResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiResolveResponse) GetBody ¶
func (r GetApiResolveResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiResolveResponse) GetJSON200 ¶
func (r GetApiResolveResponse) GetJSON200() *ReadpathResolved
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiResolveResponse) GetJSON404 ¶
func (r GetApiResolveResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetApiResolveResponse) GetJSON409 ¶
func (r GetApiResolveResponse) GetJSON409() *RespondFailure
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (GetApiResolveResponse) GetJSON500 ¶
func (r GetApiResolveResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiResolveResponse) Status ¶
func (r GetApiResolveResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiResolveResponse) StatusCode ¶
func (r GetApiResolveResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiSearchParams ¶
type GetApiSearchParams struct {
// Q text to find, may be left out with max_length, untagged or updated_before
Q *string `form:"q,omitempty" json:"q,omitempty"`
// MaxLength only the notes whose content (title line included) has at most that many characters
MaxLength *int `form:"max_length,omitempty" json:"max_length,omitempty"`
// Untagged only the notes with no tag
Untagged *bool `form:"untagged,omitempty" json:"untagged,omitempty"`
// UpdatedBefore only the notes last changed before this day (2026-01-31) or RFC 3339 instant, the oldest first without q
UpdatedBefore *string `form:"updated_before,omitempty" json:"updated_before,omitempty"`
// Limit matches in the page, all when left out or 0
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// Offset matches skipped before the page
Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}
GetApiSearchParams defines parameters for GetApiSearch.
type GetApiSearchResponse ¶
type GetApiSearchResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]SearchnotesMatch
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetApiSearchResponse200Headers
}
func ParseGetApiSearchResponse ¶
func ParseGetApiSearchResponse(rsp *http.Response) (*GetApiSearchResponse, error)
ParseGetApiSearchResponse parses an HTTP response from a GetApiSearchWithResponse call
func (GetApiSearchResponse) ContentType ¶
func (r GetApiSearchResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiSearchResponse) GetBody ¶
func (r GetApiSearchResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiSearchResponse) GetJSON200 ¶
func (r GetApiSearchResponse) GetJSON200() *[]SearchnotesMatch
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiSearchResponse) GetJSON400 ¶
func (r GetApiSearchResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetApiSearchResponse) GetJSON500 ¶
func (r GetApiSearchResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiSearchResponse) Status ¶
func (r GetApiSearchResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiSearchResponse) StatusCode ¶
func (r GetApiSearchResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiSearchResponse200Headers ¶
type GetApiSearchResponse200Headers struct {
XTotalCount *int
}
GetApiSearchResponse200Headers the declared response headers of an HTTP 200 response for GetApiSearch
type GetApiSearchesIdParams ¶
type GetApiSearchesIdParams struct {
// Limit matches in the page, all when left out or 0
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// Offset matches skipped before the page
Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}
GetApiSearchesIdParams defines parameters for GetApiSearchesId.
type GetApiSearchesIdResponse ¶
type GetApiSearchesIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]RunsavedsearchMatch
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *RespondFailure
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetApiSearchesIdResponse200Headers
}
func ParseGetApiSearchesIdResponse ¶
func ParseGetApiSearchesIdResponse(rsp *http.Response) (*GetApiSearchesIdResponse, error)
ParseGetApiSearchesIdResponse parses an HTTP response from a GetApiSearchesIdWithResponse call
func (GetApiSearchesIdResponse) ContentType ¶
func (r GetApiSearchesIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiSearchesIdResponse) GetBody ¶
func (r GetApiSearchesIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiSearchesIdResponse) GetJSON200 ¶
func (r GetApiSearchesIdResponse) GetJSON200() *[]RunsavedsearchMatch
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiSearchesIdResponse) GetJSON403 ¶
func (r GetApiSearchesIdResponse) GetJSON403() *RespondFailure
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetApiSearchesIdResponse) GetJSON404 ¶
func (r GetApiSearchesIdResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetApiSearchesIdResponse) GetJSON500 ¶
func (r GetApiSearchesIdResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiSearchesIdResponse) Status ¶
func (r GetApiSearchesIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiSearchesIdResponse) StatusCode ¶
func (r GetApiSearchesIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiSearchesIdResponse200Headers ¶
type GetApiSearchesIdResponse200Headers struct {
XTotalCount *int
}
GetApiSearchesIdResponse200Headers the declared response headers of an HTTP 200 response for GetApiSearchesId
type GetApiTagsResponse ¶
type GetApiTagsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]DomainTag
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiTagsResponse ¶
func ParseGetApiTagsResponse(rsp *http.Response) (*GetApiTagsResponse, error)
ParseGetApiTagsResponse parses an HTTP response from a GetApiTagsWithResponse call
func (GetApiTagsResponse) ContentType ¶
func (r GetApiTagsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiTagsResponse) GetBody ¶
func (r GetApiTagsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiTagsResponse) GetJSON200 ¶
func (r GetApiTagsResponse) GetJSON200() *[]DomainTag
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiTagsResponse) GetJSON500 ¶
func (r GetApiTagsResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiTagsResponse) Status ¶
func (r GetApiTagsResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiTagsResponse) StatusCode ¶
func (r GetApiTagsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiTagsValueParams ¶
type GetApiTagsValueParams struct {
// Limit notes in the page, all when left out or 0
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// Offset notes skipped before the page
Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}
GetApiTagsValueParams defines parameters for GetApiTagsValue.
type GetApiTagsValueResponse ¶
type GetApiTagsValueResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ReadtagResult
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetApiTagsValueResponse200Headers
}
func ParseGetApiTagsValueResponse ¶
func ParseGetApiTagsValueResponse(rsp *http.Response) (*GetApiTagsValueResponse, error)
ParseGetApiTagsValueResponse parses an HTTP response from a GetApiTagsValueWithResponse call
func (GetApiTagsValueResponse) ContentType ¶
func (r GetApiTagsValueResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiTagsValueResponse) GetBody ¶
func (r GetApiTagsValueResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiTagsValueResponse) GetJSON200 ¶
func (r GetApiTagsValueResponse) GetJSON200() *ReadtagResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiTagsValueResponse) GetJSON404 ¶
func (r GetApiTagsValueResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetApiTagsValueResponse) GetJSON500 ¶
func (r GetApiTagsValueResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiTagsValueResponse) Status ¶
func (r GetApiTagsValueResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiTagsValueResponse) StatusCode ¶
func (r GetApiTagsValueResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiTagsValueResponse200Headers ¶
type GetApiTagsValueResponse200Headers struct {
XTotalCount *int
}
GetApiTagsValueResponse200Headers the declared response headers of an HTTP 200 response for GetApiTagsValue
type GetApiTrashResponse ¶
type GetApiTrashResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]ListtrashTrashed
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiTrashResponse ¶
func ParseGetApiTrashResponse(rsp *http.Response) (*GetApiTrashResponse, error)
ParseGetApiTrashResponse parses an HTTP response from a GetApiTrashWithResponse call
func (GetApiTrashResponse) ContentType ¶
func (r GetApiTrashResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiTrashResponse) GetBody ¶
func (r GetApiTrashResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiTrashResponse) GetJSON200 ¶
func (r GetApiTrashResponse) GetJSON200() *[]ListtrashTrashed
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiTrashResponse) GetJSON500 ¶
func (r GetApiTrashResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiTrashResponse) Status ¶
func (r GetApiTrashResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiTrashResponse) StatusCode ¶
func (r GetApiTrashResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiUsersResponse ¶
type GetApiUsersResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]UsersAccount
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *RespondFailure
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiUsersResponse ¶
func ParseGetApiUsersResponse(rsp *http.Response) (*GetApiUsersResponse, error)
ParseGetApiUsersResponse parses an HTTP response from a GetApiUsersWithResponse call
func (GetApiUsersResponse) ContentType ¶
func (r GetApiUsersResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiUsersResponse) GetBody ¶
func (r GetApiUsersResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiUsersResponse) GetJSON200 ¶
func (r GetApiUsersResponse) GetJSON200() *[]UsersAccount
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiUsersResponse) GetJSON401 ¶
func (r GetApiUsersResponse) GetJSON401() *RespondFailure
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetApiUsersResponse) GetJSON403 ¶
func (r GetApiUsersResponse) GetJSON403() *RespondFailure
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetApiUsersResponse) GetJSON500 ¶
func (r GetApiUsersResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiUsersResponse) Status ¶
func (r GetApiUsersResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiUsersResponse) StatusCode ¶
func (r GetApiUsersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiVersionResponse ¶
type GetApiVersionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *UsersVersion
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *RespondFailure
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParseGetApiVersionResponse ¶
func ParseGetApiVersionResponse(rsp *http.Response) (*GetApiVersionResponse, error)
ParseGetApiVersionResponse parses an HTTP response from a GetApiVersionWithResponse call
func (GetApiVersionResponse) ContentType ¶
func (r GetApiVersionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiVersionResponse) GetBody ¶
func (r GetApiVersionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiVersionResponse) GetJSON200 ¶
func (r GetApiVersionResponse) GetJSON200() *UsersVersion
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiVersionResponse) GetJSON401 ¶
func (r GetApiVersionResponse) GetJSON401() *RespondFailure
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetApiVersionResponse) GetJSON403 ¶
func (r GetApiVersionResponse) GetJSON403() *RespondFailure
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetApiVersionResponse) GetJSON500 ¶
func (r GetApiVersionResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetApiVersionResponse) Status ¶
func (r GetApiVersionResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiVersionResponse) StatusCode ¶
func (r GetApiVersionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ImportnotesResult ¶
ImportnotesResult defines model for importnotes.Result.
type ListbrokenlinksLink ¶
type ListbrokenlinksLink struct {
Kind ListbrokenlinksLinkKind `json:"kind"`
NoteId string `json:"note_id"`
NotePath string `json:"note_path"`
NoteTitle string `json:"note_title"`
Target string `json:"target"`
}
ListbrokenlinksLink defines model for listbrokenlinks.Link.
type ListbrokenlinksLinkKind ¶
type ListbrokenlinksLinkKind string
ListbrokenlinksLinkKind defines model for ListbrokenlinksLink.Kind.
const ( Ambiguous ListbrokenlinksLinkKind = "ambiguous" File ListbrokenlinksLinkKind = "file" Missing ListbrokenlinksLinkKind = "missing" Unresolved ListbrokenlinksLinkKind = "unresolved" )
Defines values for ListbrokenlinksLinkKind.
func (ListbrokenlinksLinkKind) Valid ¶
func (e ListbrokenlinksLinkKind) Valid() bool
Valid indicates whether the value is a known member of the ListbrokenlinksLinkKind enum.
type ListfoldersFolder ¶
ListfoldersFolder defines model for listfolders.Folder.
func Folders ¶
func Folders(ctx context.Context, client *ClientWithResponses) ([]ListfoldersFolder, error)
Folders is every folder with its path, through GET /api/folders, in the type huhform.PickFolder takes.
type ListpinnedPinned ¶
type ListpinnedPinned struct {
Id string `json:"id"`
Kind DomainKind `json:"kind"`
Path string `json:"path"`
Readonly *bool `json:"readonly,omitempty"`
Title string `json:"title"`
}
ListpinnedPinned defines model for listpinned.Pinned.
type ListrecentRecent ¶
type ListrecentRecent struct {
Id string `json:"id"`
Path string `json:"path"`
Readonly *bool `json:"readonly,omitempty"`
Title string `json:"title"`
UpdatedAt string `json:"updated_at"`
}
ListrecentRecent defines model for listrecent.Recent.
type ListtrashTrashed ¶
type ListtrashTrashed struct {
DeletedAt string `json:"deleted_at"`
Id string `json:"id"`
Inside int `json:"inside"`
Kind DomainKind `json:"kind"`
Title string `json:"title"`
}
ListtrashTrashed defines model for listtrash.Trashed.
type MoveitemsInput ¶
type MoveitemsInput struct {
Ids []string `json:"ids"`
ParentId *string `json:"parent_id,omitempty"`
}
MoveitemsInput defines model for moveitems.Input.
type PatchApiFoldersIdJSONRequestBody ¶
type PatchApiFoldersIdJSONRequestBody = EditfolderBody
PatchApiFoldersIdJSONRequestBody defines body for PatchApiFoldersId for application/json ContentType.
type PatchApiFoldersIdResponse ¶
type PatchApiFoldersIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DomainItem
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *RespondFailure
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePatchApiFoldersIdResponse ¶
func ParsePatchApiFoldersIdResponse(rsp *http.Response) (*PatchApiFoldersIdResponse, error)
ParsePatchApiFoldersIdResponse parses an HTTP response from a PatchApiFoldersIdWithResponse call
func (PatchApiFoldersIdResponse) ContentType ¶
func (r PatchApiFoldersIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PatchApiFoldersIdResponse) GetBody ¶
func (r PatchApiFoldersIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PatchApiFoldersIdResponse) GetJSON200 ¶
func (r PatchApiFoldersIdResponse) GetJSON200() *DomainItem
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PatchApiFoldersIdResponse) GetJSON400 ¶
func (r PatchApiFoldersIdResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PatchApiFoldersIdResponse) GetJSON404 ¶
func (r PatchApiFoldersIdResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (PatchApiFoldersIdResponse) GetJSON409 ¶
func (r PatchApiFoldersIdResponse) GetJSON409() *RespondFailure
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PatchApiFoldersIdResponse) GetJSON413 ¶
func (r PatchApiFoldersIdResponse) GetJSON413() *RespondFailure
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (PatchApiFoldersIdResponse) GetJSON500 ¶
func (r PatchApiFoldersIdResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PatchApiFoldersIdResponse) Status ¶
func (r PatchApiFoldersIdResponse) Status() string
Status returns HTTPResponse.Status
func (PatchApiFoldersIdResponse) StatusCode ¶
func (r PatchApiFoldersIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PatchApiMeJSONRequestBody ¶
type PatchApiMeJSONRequestBody = EdituserInput
PatchApiMeJSONRequestBody defines body for PatchApiMe for application/json ContentType.
type PatchApiMePasswordJSONRequestBody ¶
type PatchApiMePasswordJSONRequestBody = EditpasswordInput
PatchApiMePasswordJSONRequestBody defines body for PatchApiMePassword for application/json ContentType.
type PatchApiMePasswordResponse ¶
type PatchApiMePasswordResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *RespondFailure
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePatchApiMePasswordResponse ¶
func ParsePatchApiMePasswordResponse(rsp *http.Response) (*PatchApiMePasswordResponse, error)
ParsePatchApiMePasswordResponse parses an HTTP response from a PatchApiMePasswordWithResponse call
func (PatchApiMePasswordResponse) ContentType ¶
func (r PatchApiMePasswordResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PatchApiMePasswordResponse) GetBody ¶
func (r PatchApiMePasswordResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PatchApiMePasswordResponse) GetJSON400 ¶
func (r PatchApiMePasswordResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PatchApiMePasswordResponse) GetJSON401 ¶
func (r PatchApiMePasswordResponse) GetJSON401() *RespondFailure
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PatchApiMePasswordResponse) GetJSON429 ¶
func (r PatchApiMePasswordResponse) GetJSON429() *RespondFailure
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (PatchApiMePasswordResponse) GetJSON500 ¶
func (r PatchApiMePasswordResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PatchApiMePasswordResponse) Status ¶
func (r PatchApiMePasswordResponse) Status() string
Status returns HTTPResponse.Status
func (PatchApiMePasswordResponse) StatusCode ¶
func (r PatchApiMePasswordResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PatchApiMeResponse ¶
type PatchApiMeResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DomainUser
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *RespondFailure
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *RespondFailure
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *RespondFailure
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePatchApiMeResponse ¶
func ParsePatchApiMeResponse(rsp *http.Response) (*PatchApiMeResponse, error)
ParsePatchApiMeResponse parses an HTTP response from a PatchApiMeWithResponse call
func (PatchApiMeResponse) ContentType ¶
func (r PatchApiMeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PatchApiMeResponse) GetBody ¶
func (r PatchApiMeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PatchApiMeResponse) GetJSON200 ¶
func (r PatchApiMeResponse) GetJSON200() *DomainUser
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PatchApiMeResponse) GetJSON400 ¶
func (r PatchApiMeResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PatchApiMeResponse) GetJSON401 ¶
func (r PatchApiMeResponse) GetJSON401() *RespondFailure
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PatchApiMeResponse) GetJSON403 ¶ added in v1.3.0
func (r PatchApiMeResponse) GetJSON403() *RespondFailure
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PatchApiMeResponse) GetJSON409 ¶ added in v1.3.0
func (r PatchApiMeResponse) GetJSON409() *RespondFailure
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PatchApiMeResponse) GetJSON413 ¶
func (r PatchApiMeResponse) GetJSON413() *RespondFailure
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (PatchApiMeResponse) GetJSON500 ¶
func (r PatchApiMeResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PatchApiMeResponse) Status ¶
func (r PatchApiMeResponse) Status() string
Status returns HTTPResponse.Status
func (PatchApiMeResponse) StatusCode ¶
func (r PatchApiMeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PatchApiNotesIdJSONRequestBody ¶
type PatchApiNotesIdJSONRequestBody = EditnoteBody
PatchApiNotesIdJSONRequestBody defines body for PatchApiNotesId for application/json ContentType.
type PatchApiNotesIdResponse ¶
type PatchApiNotesIdResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ReaditemResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *RespondFailure
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePatchApiNotesIdResponse ¶
func ParsePatchApiNotesIdResponse(rsp *http.Response) (*PatchApiNotesIdResponse, error)
ParsePatchApiNotesIdResponse parses an HTTP response from a PatchApiNotesIdWithResponse call
func (PatchApiNotesIdResponse) ContentType ¶
func (r PatchApiNotesIdResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PatchApiNotesIdResponse) GetBody ¶
func (r PatchApiNotesIdResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PatchApiNotesIdResponse) GetJSON200 ¶
func (r PatchApiNotesIdResponse) GetJSON200() *ReaditemResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PatchApiNotesIdResponse) GetJSON400 ¶
func (r PatchApiNotesIdResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PatchApiNotesIdResponse) GetJSON404 ¶
func (r PatchApiNotesIdResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (PatchApiNotesIdResponse) GetJSON409 ¶
func (r PatchApiNotesIdResponse) GetJSON409() *RespondFailure
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PatchApiNotesIdResponse) GetJSON413 ¶
func (r PatchApiNotesIdResponse) GetJSON413() *RespondFailure
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (PatchApiNotesIdResponse) GetJSON500 ¶
func (r PatchApiNotesIdResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PatchApiNotesIdResponse) Status ¶
func (r PatchApiNotesIdResponse) Status() string
Status returns HTTPResponse.Status
func (PatchApiNotesIdResponse) StatusCode ¶
func (r PatchApiNotesIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PatchApiNotesTagsJSONRequestBody ¶ added in v1.3.13
type PatchApiNotesTagsJSONRequestBody = TagnotesInput
PatchApiNotesTagsJSONRequestBody defines body for PatchApiNotesTags for application/json ContentType.
type PatchApiNotesTagsResponse ¶ added in v1.3.13
type PatchApiNotesTagsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]TagnotesTagged
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePatchApiNotesTagsResponse ¶ added in v1.3.13
func ParsePatchApiNotesTagsResponse(rsp *http.Response) (*PatchApiNotesTagsResponse, error)
ParsePatchApiNotesTagsResponse parses an HTTP response from a PatchApiNotesTagsWithResponse call
func (PatchApiNotesTagsResponse) ContentType ¶ added in v1.3.13
func (r PatchApiNotesTagsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PatchApiNotesTagsResponse) GetBody ¶ added in v1.3.13
func (r PatchApiNotesTagsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PatchApiNotesTagsResponse) GetJSON200 ¶ added in v1.3.13
func (r PatchApiNotesTagsResponse) GetJSON200() *[]TagnotesTagged
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PatchApiNotesTagsResponse) GetJSON400 ¶ added in v1.3.13
func (r PatchApiNotesTagsResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PatchApiNotesTagsResponse) GetJSON500 ¶ added in v1.3.13
func (r PatchApiNotesTagsResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PatchApiNotesTagsResponse) Status ¶ added in v1.3.13
func (r PatchApiNotesTagsResponse) Status() string
Status returns HTTPResponse.Status
func (PatchApiNotesTagsResponse) StatusCode ¶ added in v1.3.13
func (r PatchApiNotesTagsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PatchApiTagsValueJSONRequestBody ¶
type PatchApiTagsValueJSONRequestBody = EdittagBody
PatchApiTagsValueJSONRequestBody defines body for PatchApiTagsValue for application/json ContentType.
type PatchApiTagsValueResponse ¶
type PatchApiTagsValueResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DomainTag
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *RespondFailure
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePatchApiTagsValueResponse ¶
func ParsePatchApiTagsValueResponse(rsp *http.Response) (*PatchApiTagsValueResponse, error)
ParsePatchApiTagsValueResponse parses an HTTP response from a PatchApiTagsValueWithResponse call
func (PatchApiTagsValueResponse) ContentType ¶
func (r PatchApiTagsValueResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PatchApiTagsValueResponse) GetBody ¶
func (r PatchApiTagsValueResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PatchApiTagsValueResponse) GetJSON200 ¶
func (r PatchApiTagsValueResponse) GetJSON200() *DomainTag
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PatchApiTagsValueResponse) GetJSON400 ¶
func (r PatchApiTagsValueResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PatchApiTagsValueResponse) GetJSON404 ¶
func (r PatchApiTagsValueResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (PatchApiTagsValueResponse) GetJSON409 ¶
func (r PatchApiTagsValueResponse) GetJSON409() *RespondFailure
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PatchApiTagsValueResponse) GetJSON413 ¶
func (r PatchApiTagsValueResponse) GetJSON413() *RespondFailure
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (PatchApiTagsValueResponse) GetJSON500 ¶
func (r PatchApiTagsValueResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PatchApiTagsValueResponse) Status ¶
func (r PatchApiTagsValueResponse) Status() string
Status returns HTTPResponse.Status
func (PatchApiTagsValueResponse) StatusCode ¶
func (r PatchApiTagsValueResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiFilesJSONBody ¶
type PostApiFilesJSONBody = []int
PostApiFilesJSONBody defines parameters for PostApiFiles.
type PostApiFilesJSONRequestBody ¶
type PostApiFilesJSONRequestBody = PostApiFilesJSONBody
PostApiFilesJSONRequestBody defines body for PostApiFiles for application/json ContentType.
type PostApiFilesParams ¶
type PostApiFilesParams struct {
// Name file name
Name *string `form:"name,omitempty" json:"name,omitempty"`
}
PostApiFilesParams defines parameters for PostApiFiles.
type PostApiFilesResponse ¶
type PostApiFilesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *DomainFile
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *RespondFailure
// JSON415 the response for an HTTP 415 `application/json` response
JSON415 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePostApiFilesResponse ¶
func ParsePostApiFilesResponse(rsp *http.Response) (*PostApiFilesResponse, error)
ParsePostApiFilesResponse parses an HTTP response from a PostApiFilesWithResponse call
func (PostApiFilesResponse) ContentType ¶
func (r PostApiFilesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiFilesResponse) GetBody ¶
func (r PostApiFilesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiFilesResponse) GetJSON201 ¶
func (r PostApiFilesResponse) GetJSON201() *DomainFile
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (PostApiFilesResponse) GetJSON400 ¶
func (r PostApiFilesResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiFilesResponse) GetJSON413 ¶
func (r PostApiFilesResponse) GetJSON413() *RespondFailure
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (PostApiFilesResponse) GetJSON415 ¶
func (r PostApiFilesResponse) GetJSON415() *RespondFailure
GetJSON415 returns the response for an HTTP 415 `application/json` response
func (PostApiFilesResponse) GetJSON500 ¶
func (r PostApiFilesResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostApiFilesResponse) Status ¶
func (r PostApiFilesResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiFilesResponse) StatusCode ¶
func (r PostApiFilesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiFoldersJSONRequestBody ¶
type PostApiFoldersJSONRequestBody = CreatefolderInput
PostApiFoldersJSONRequestBody defines body for PostApiFolders for application/json ContentType.
type PostApiFoldersResponse ¶
type PostApiFoldersResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *DomainItem
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *RespondFailure
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePostApiFoldersResponse ¶
func ParsePostApiFoldersResponse(rsp *http.Response) (*PostApiFoldersResponse, error)
ParsePostApiFoldersResponse parses an HTTP response from a PostApiFoldersWithResponse call
func (PostApiFoldersResponse) ContentType ¶
func (r PostApiFoldersResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiFoldersResponse) GetBody ¶
func (r PostApiFoldersResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiFoldersResponse) GetJSON201 ¶
func (r PostApiFoldersResponse) GetJSON201() *DomainItem
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (PostApiFoldersResponse) GetJSON400 ¶
func (r PostApiFoldersResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiFoldersResponse) GetJSON409 ¶
func (r PostApiFoldersResponse) GetJSON409() *RespondFailure
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PostApiFoldersResponse) GetJSON413 ¶
func (r PostApiFoldersResponse) GetJSON413() *RespondFailure
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (PostApiFoldersResponse) GetJSON500 ¶
func (r PostApiFoldersResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostApiFoldersResponse) Status ¶
func (r PostApiFoldersResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiFoldersResponse) StatusCode ¶
func (r PostApiFoldersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiImportJSONBody ¶
type PostApiImportJSONBody = []int
PostApiImportJSONBody defines parameters for PostApiImport.
type PostApiImportJSONRequestBody ¶
type PostApiImportJSONRequestBody = PostApiImportJSONBody
PostApiImportJSONRequestBody defines body for PostApiImport for application/json ContentType.
type PostApiImportMultipartBody ¶
type PostApiImportMultipartBody = map[string]interface{}
PostApiImportMultipartBody defines parameters for PostApiImport.
type PostApiImportMultipartRequestBody ¶
type PostApiImportMultipartRequestBody = PostApiImportMultipartBody
PostApiImportMultipartRequestBody defines body for PostApiImport for multipart/form-data ContentType.
type PostApiImportParams ¶
type PostApiImportParams struct {
// Parent folder uuid, the root when left out
Parent *string `form:"parent,omitempty" json:"parent,omitempty"`
}
PostApiImportParams defines parameters for PostApiImport.
type PostApiImportResponse ¶
type PostApiImportResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ImportnotesResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *RespondFailure
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePostApiImportResponse ¶
func ParsePostApiImportResponse(rsp *http.Response) (*PostApiImportResponse, error)
ParsePostApiImportResponse parses an HTTP response from a PostApiImportWithResponse call
func (PostApiImportResponse) ContentType ¶
func (r PostApiImportResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiImportResponse) GetBody ¶
func (r PostApiImportResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiImportResponse) GetJSON200 ¶
func (r PostApiImportResponse) GetJSON200() *ImportnotesResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiImportResponse) GetJSON400 ¶
func (r PostApiImportResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiImportResponse) GetJSON409 ¶
func (r PostApiImportResponse) GetJSON409() *RespondFailure
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PostApiImportResponse) GetJSON413 ¶
func (r PostApiImportResponse) GetJSON413() *RespondFailure
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (PostApiImportResponse) GetJSON500 ¶
func (r PostApiImportResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostApiImportResponse) Status ¶
func (r PostApiImportResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiImportResponse) StatusCode ¶
func (r PostApiImportResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiInvitesResponse ¶
type PostApiInvitesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *AddinviteResult
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *RespondFailure
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePostApiInvitesResponse ¶
func ParsePostApiInvitesResponse(rsp *http.Response) (*PostApiInvitesResponse, error)
ParsePostApiInvitesResponse parses an HTTP response from a PostApiInvitesWithResponse call
func (PostApiInvitesResponse) ContentType ¶
func (r PostApiInvitesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiInvitesResponse) GetBody ¶
func (r PostApiInvitesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiInvitesResponse) GetJSON201 ¶
func (r PostApiInvitesResponse) GetJSON201() *AddinviteResult
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (PostApiInvitesResponse) GetJSON401 ¶
func (r PostApiInvitesResponse) GetJSON401() *RespondFailure
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PostApiInvitesResponse) GetJSON403 ¶
func (r PostApiInvitesResponse) GetJSON403() *RespondFailure
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostApiInvitesResponse) GetJSON500 ¶
func (r PostApiInvitesResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostApiInvitesResponse) Status ¶
func (r PostApiInvitesResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiInvitesResponse) StatusCode ¶
func (r PostApiInvitesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiLoginJSONRequestBody ¶
type PostApiLoginJSONRequestBody = CreatesessionInput
PostApiLoginJSONRequestBody defines body for PostApiLogin for application/json ContentType.
type PostApiLoginResponse ¶
type PostApiLoginResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CreatesessionResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *RespondFailure
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePostApiLoginResponse ¶
func ParsePostApiLoginResponse(rsp *http.Response) (*PostApiLoginResponse, error)
ParsePostApiLoginResponse parses an HTTP response from a PostApiLoginWithResponse call
func (PostApiLoginResponse) ContentType ¶
func (r PostApiLoginResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiLoginResponse) GetBody ¶
func (r PostApiLoginResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiLoginResponse) GetJSON200 ¶
func (r PostApiLoginResponse) GetJSON200() *CreatesessionResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiLoginResponse) GetJSON400 ¶
func (r PostApiLoginResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiLoginResponse) GetJSON401 ¶
func (r PostApiLoginResponse) GetJSON401() *RespondFailure
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PostApiLoginResponse) GetJSON429 ¶
func (r PostApiLoginResponse) GetJSON429() *RespondFailure
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (PostApiLoginResponse) GetJSON500 ¶
func (r PostApiLoginResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostApiLoginResponse) Status ¶
func (r PostApiLoginResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiLoginResponse) StatusCode ¶
func (r PostApiLoginResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiLogoutResponse ¶
type PostApiLogoutResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePostApiLogoutResponse ¶
func ParsePostApiLogoutResponse(rsp *http.Response) (*PostApiLogoutResponse, error)
ParsePostApiLogoutResponse parses an HTTP response from a PostApiLogoutWithResponse call
func (PostApiLogoutResponse) ContentType ¶
func (r PostApiLogoutResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiLogoutResponse) GetBody ¶
func (r PostApiLogoutResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiLogoutResponse) GetJSON401 ¶
func (r PostApiLogoutResponse) GetJSON401() *RespondFailure
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PostApiLogoutResponse) GetJSON500 ¶
func (r PostApiLogoutResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostApiLogoutResponse) Status ¶
func (r PostApiLogoutResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiLogoutResponse) StatusCode ¶
func (r PostApiLogoutResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiMeTokensJSONRequestBody ¶
type PostApiMeTokensJSONRequestBody = CreateapitokenInput
PostApiMeTokensJSONRequestBody defines body for PostApiMeTokens for application/json ContentType.
type PostApiMeTokensResponse ¶
type PostApiMeTokensResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *CreateapitokenResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *RespondFailure
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePostApiMeTokensResponse ¶
func ParsePostApiMeTokensResponse(rsp *http.Response) (*PostApiMeTokensResponse, error)
ParsePostApiMeTokensResponse parses an HTTP response from a PostApiMeTokensWithResponse call
func (PostApiMeTokensResponse) ContentType ¶
func (r PostApiMeTokensResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiMeTokensResponse) GetBody ¶
func (r PostApiMeTokensResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiMeTokensResponse) GetJSON201 ¶
func (r PostApiMeTokensResponse) GetJSON201() *CreateapitokenResult
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (PostApiMeTokensResponse) GetJSON400 ¶
func (r PostApiMeTokensResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiMeTokensResponse) GetJSON401 ¶
func (r PostApiMeTokensResponse) GetJSON401() *RespondFailure
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PostApiMeTokensResponse) GetJSON403 ¶
func (r PostApiMeTokensResponse) GetJSON403() *RespondFailure
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostApiMeTokensResponse) GetJSON500 ¶
func (r PostApiMeTokensResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostApiMeTokensResponse) Status ¶
func (r PostApiMeTokensResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiMeTokensResponse) StatusCode ¶
func (r PostApiMeTokensResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiMoveJSONRequestBody ¶
type PostApiMoveJSONRequestBody = MoveitemsInput
PostApiMoveJSONRequestBody defines body for PostApiMove for application/json ContentType.
type PostApiMoveResponse ¶
type PostApiMoveResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]DomainItem
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *RespondFailure
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePostApiMoveResponse ¶
func ParsePostApiMoveResponse(rsp *http.Response) (*PostApiMoveResponse, error)
ParsePostApiMoveResponse parses an HTTP response from a PostApiMoveWithResponse call
func (PostApiMoveResponse) ContentType ¶
func (r PostApiMoveResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiMoveResponse) GetBody ¶
func (r PostApiMoveResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiMoveResponse) GetJSON200 ¶
func (r PostApiMoveResponse) GetJSON200() *[]DomainItem
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiMoveResponse) GetJSON400 ¶
func (r PostApiMoveResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiMoveResponse) GetJSON409 ¶
func (r PostApiMoveResponse) GetJSON409() *RespondFailure
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PostApiMoveResponse) GetJSON413 ¶
func (r PostApiMoveResponse) GetJSON413() *RespondFailure
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (PostApiMoveResponse) GetJSON500 ¶
func (r PostApiMoveResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostApiMoveResponse) Status ¶
func (r PostApiMoveResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiMoveResponse) StatusCode ¶
func (r PostApiMoveResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiNotesIdForksJSONRequestBody ¶
type PostApiNotesIdForksJSONRequestBody = ForknoteBody
PostApiNotesIdForksJSONRequestBody defines body for PostApiNotesIdForks for application/json ContentType.
type PostApiNotesIdForksResponse ¶
type PostApiNotesIdForksResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *DomainItem
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePostApiNotesIdForksResponse ¶
func ParsePostApiNotesIdForksResponse(rsp *http.Response) (*PostApiNotesIdForksResponse, error)
ParsePostApiNotesIdForksResponse parses an HTTP response from a PostApiNotesIdForksWithResponse call
func (PostApiNotesIdForksResponse) ContentType ¶
func (r PostApiNotesIdForksResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiNotesIdForksResponse) GetBody ¶
func (r PostApiNotesIdForksResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiNotesIdForksResponse) GetJSON201 ¶
func (r PostApiNotesIdForksResponse) GetJSON201() *DomainItem
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (PostApiNotesIdForksResponse) GetJSON400 ¶
func (r PostApiNotesIdForksResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiNotesIdForksResponse) GetJSON404 ¶
func (r PostApiNotesIdForksResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (PostApiNotesIdForksResponse) GetJSON413 ¶
func (r PostApiNotesIdForksResponse) GetJSON413() *RespondFailure
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (PostApiNotesIdForksResponse) GetJSON500 ¶
func (r PostApiNotesIdForksResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostApiNotesIdForksResponse) Status ¶
func (r PostApiNotesIdForksResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiNotesIdForksResponse) StatusCode ¶
func (r PostApiNotesIdForksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiNotesIdMergeJSONRequestBody ¶
type PostApiNotesIdMergeJSONRequestBody = ForknoteMergeBody
PostApiNotesIdMergeJSONRequestBody defines body for PostApiNotesIdMerge for application/json ContentType.
type PostApiNotesIdMergeResponse ¶
type PostApiNotesIdMergeResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ReaditemResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *RespondFailure
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePostApiNotesIdMergeResponse ¶
func ParsePostApiNotesIdMergeResponse(rsp *http.Response) (*PostApiNotesIdMergeResponse, error)
ParsePostApiNotesIdMergeResponse parses an HTTP response from a PostApiNotesIdMergeWithResponse call
func (PostApiNotesIdMergeResponse) ContentType ¶
func (r PostApiNotesIdMergeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiNotesIdMergeResponse) GetBody ¶
func (r PostApiNotesIdMergeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiNotesIdMergeResponse) GetJSON200 ¶
func (r PostApiNotesIdMergeResponse) GetJSON200() *ReaditemResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiNotesIdMergeResponse) GetJSON400 ¶
func (r PostApiNotesIdMergeResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiNotesIdMergeResponse) GetJSON404 ¶
func (r PostApiNotesIdMergeResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (PostApiNotesIdMergeResponse) GetJSON409 ¶
func (r PostApiNotesIdMergeResponse) GetJSON409() *RespondFailure
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PostApiNotesIdMergeResponse) GetJSON413 ¶
func (r PostApiNotesIdMergeResponse) GetJSON413() *RespondFailure
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (PostApiNotesIdMergeResponse) GetJSON500 ¶
func (r PostApiNotesIdMergeResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostApiNotesIdMergeResponse) Status ¶
func (r PostApiNotesIdMergeResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiNotesIdMergeResponse) StatusCode ¶
func (r PostApiNotesIdMergeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiNotesIdRebaseJSONRequestBody ¶
type PostApiNotesIdRebaseJSONRequestBody = ForknoteRebaseBody
PostApiNotesIdRebaseJSONRequestBody defines body for PostApiNotesIdRebase for application/json ContentType.
type PostApiNotesIdRebaseResponse ¶
type PostApiNotesIdRebaseResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ReaditemResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *RespondFailure
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePostApiNotesIdRebaseResponse ¶
func ParsePostApiNotesIdRebaseResponse(rsp *http.Response) (*PostApiNotesIdRebaseResponse, error)
ParsePostApiNotesIdRebaseResponse parses an HTTP response from a PostApiNotesIdRebaseWithResponse call
func (PostApiNotesIdRebaseResponse) ContentType ¶
func (r PostApiNotesIdRebaseResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiNotesIdRebaseResponse) GetBody ¶
func (r PostApiNotesIdRebaseResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiNotesIdRebaseResponse) GetJSON200 ¶
func (r PostApiNotesIdRebaseResponse) GetJSON200() *ReaditemResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiNotesIdRebaseResponse) GetJSON400 ¶
func (r PostApiNotesIdRebaseResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiNotesIdRebaseResponse) GetJSON404 ¶
func (r PostApiNotesIdRebaseResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (PostApiNotesIdRebaseResponse) GetJSON409 ¶
func (r PostApiNotesIdRebaseResponse) GetJSON409() *RespondFailure
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PostApiNotesIdRebaseResponse) GetJSON413 ¶
func (r PostApiNotesIdRebaseResponse) GetJSON413() *RespondFailure
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (PostApiNotesIdRebaseResponse) GetJSON500 ¶
func (r PostApiNotesIdRebaseResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostApiNotesIdRebaseResponse) Status ¶
func (r PostApiNotesIdRebaseResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiNotesIdRebaseResponse) StatusCode ¶
func (r PostApiNotesIdRebaseResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiNotesIdUnmergeResponse ¶
type PostApiNotesIdUnmergeResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ReaditemResult
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePostApiNotesIdUnmergeResponse ¶
func ParsePostApiNotesIdUnmergeResponse(rsp *http.Response) (*PostApiNotesIdUnmergeResponse, error)
ParsePostApiNotesIdUnmergeResponse parses an HTTP response from a PostApiNotesIdUnmergeWithResponse call
func (PostApiNotesIdUnmergeResponse) ContentType ¶
func (r PostApiNotesIdUnmergeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiNotesIdUnmergeResponse) GetBody ¶
func (r PostApiNotesIdUnmergeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiNotesIdUnmergeResponse) GetJSON200 ¶
func (r PostApiNotesIdUnmergeResponse) GetJSON200() *ReaditemResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiNotesIdUnmergeResponse) GetJSON404 ¶
func (r PostApiNotesIdUnmergeResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (PostApiNotesIdUnmergeResponse) GetJSON409 ¶
func (r PostApiNotesIdUnmergeResponse) GetJSON409() *RespondFailure
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PostApiNotesIdUnmergeResponse) GetJSON500 ¶
func (r PostApiNotesIdUnmergeResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostApiNotesIdUnmergeResponse) Status ¶
func (r PostApiNotesIdUnmergeResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiNotesIdUnmergeResponse) StatusCode ¶
func (r PostApiNotesIdUnmergeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiNotesIdVersionsJSONRequestBody ¶
type PostApiNotesIdVersionsJSONRequestBody = ReadversionsBody
PostApiNotesIdVersionsJSONRequestBody defines body for PostApiNotesIdVersions for application/json ContentType.
type PostApiNotesIdVersionsResponse ¶
type PostApiNotesIdVersionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *DomainNoteVersion
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePostApiNotesIdVersionsResponse ¶
func ParsePostApiNotesIdVersionsResponse(rsp *http.Response) (*PostApiNotesIdVersionsResponse, error)
ParsePostApiNotesIdVersionsResponse parses an HTTP response from a PostApiNotesIdVersionsWithResponse call
func (PostApiNotesIdVersionsResponse) ContentType ¶
func (r PostApiNotesIdVersionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiNotesIdVersionsResponse) GetBody ¶
func (r PostApiNotesIdVersionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiNotesIdVersionsResponse) GetJSON201 ¶
func (r PostApiNotesIdVersionsResponse) GetJSON201() *DomainNoteVersion
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (PostApiNotesIdVersionsResponse) GetJSON400 ¶
func (r PostApiNotesIdVersionsResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiNotesIdVersionsResponse) GetJSON404 ¶
func (r PostApiNotesIdVersionsResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (PostApiNotesIdVersionsResponse) GetJSON413 ¶
func (r PostApiNotesIdVersionsResponse) GetJSON413() *RespondFailure
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (PostApiNotesIdVersionsResponse) GetJSON500 ¶
func (r PostApiNotesIdVersionsResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostApiNotesIdVersionsResponse) Status ¶
func (r PostApiNotesIdVersionsResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiNotesIdVersionsResponse) StatusCode ¶
func (r PostApiNotesIdVersionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiNotesJSONRequestBody ¶
type PostApiNotesJSONRequestBody = CreatenoteInput
PostApiNotesJSONRequestBody defines body for PostApiNotes for application/json ContentType.
type PostApiNotesReadJSONRequestBody ¶ added in v1.3.11
type PostApiNotesReadJSONRequestBody = ReadnotesBody
PostApiNotesReadJSONRequestBody defines body for PostApiNotesRead for application/json ContentType.
type PostApiNotesReadResponse ¶ added in v1.3.11
type PostApiNotesReadResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]ReadnotesNote
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePostApiNotesReadResponse ¶ added in v1.3.11
func ParsePostApiNotesReadResponse(rsp *http.Response) (*PostApiNotesReadResponse, error)
ParsePostApiNotesReadResponse parses an HTTP response from a PostApiNotesReadWithResponse call
func (PostApiNotesReadResponse) ContentType ¶ added in v1.3.11
func (r PostApiNotesReadResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiNotesReadResponse) GetBody ¶ added in v1.3.11
func (r PostApiNotesReadResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiNotesReadResponse) GetJSON200 ¶ added in v1.3.11
func (r PostApiNotesReadResponse) GetJSON200() *[]ReadnotesNote
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiNotesReadResponse) GetJSON400 ¶ added in v1.3.11
func (r PostApiNotesReadResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiNotesReadResponse) GetJSON404 ¶ added in v1.3.11
func (r PostApiNotesReadResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (PostApiNotesReadResponse) GetJSON409 ¶ added in v1.3.11
func (r PostApiNotesReadResponse) GetJSON409() *RespondFailure
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PostApiNotesReadResponse) GetJSON500 ¶ added in v1.3.11
func (r PostApiNotesReadResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostApiNotesReadResponse) Status ¶ added in v1.3.11
func (r PostApiNotesReadResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiNotesReadResponse) StatusCode ¶ added in v1.3.11
func (r PostApiNotesReadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiNotesResponse ¶
type PostApiNotesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *DomainItem
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePostApiNotesResponse ¶
func ParsePostApiNotesResponse(rsp *http.Response) (*PostApiNotesResponse, error)
ParsePostApiNotesResponse parses an HTTP response from a PostApiNotesWithResponse call
func (PostApiNotesResponse) ContentType ¶
func (r PostApiNotesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiNotesResponse) GetBody ¶
func (r PostApiNotesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiNotesResponse) GetJSON201 ¶
func (r PostApiNotesResponse) GetJSON201() *DomainItem
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (PostApiNotesResponse) GetJSON400 ¶
func (r PostApiNotesResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiNotesResponse) GetJSON413 ¶
func (r PostApiNotesResponse) GetJSON413() *RespondFailure
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (PostApiNotesResponse) GetJSON500 ¶
func (r PostApiNotesResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostApiNotesResponse) Status ¶
func (r PostApiNotesResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiNotesResponse) StatusCode ¶
func (r PostApiNotesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiNotesTagsJSONRequestBody ¶
type PostApiNotesTagsJSONRequestBody = ReadnotetagsBody
PostApiNotesTagsJSONRequestBody defines body for PostApiNotesTags for application/json ContentType.
type PostApiNotesTagsResponse ¶
type PostApiNotesTagsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *map[string][]string
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePostApiNotesTagsResponse ¶
func ParsePostApiNotesTagsResponse(rsp *http.Response) (*PostApiNotesTagsResponse, error)
ParsePostApiNotesTagsResponse parses an HTTP response from a PostApiNotesTagsWithResponse call
func (PostApiNotesTagsResponse) ContentType ¶
func (r PostApiNotesTagsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiNotesTagsResponse) GetBody ¶
func (r PostApiNotesTagsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiNotesTagsResponse) GetJSON200 ¶
func (r PostApiNotesTagsResponse) GetJSON200() *map[string][]string
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiNotesTagsResponse) GetJSON400 ¶
func (r PostApiNotesTagsResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiNotesTagsResponse) GetJSON413 ¶
func (r PostApiNotesTagsResponse) GetJSON413() *RespondFailure
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (PostApiNotesTagsResponse) GetJSON500 ¶
func (r PostApiNotesTagsResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostApiNotesTagsResponse) Status ¶
func (r PostApiNotesTagsResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiNotesTagsResponse) StatusCode ¶
func (r PostApiNotesTagsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiReplaceJSONRequestBody ¶
type PostApiReplaceJSONRequestBody = ReplacenotesInput
PostApiReplaceJSONRequestBody defines body for PostApiReplace for application/json ContentType.
type PostApiReplaceResponse ¶
type PostApiReplaceResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ReplacenotesResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *RespondFailure
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePostApiReplaceResponse ¶
func ParsePostApiReplaceResponse(rsp *http.Response) (*PostApiReplaceResponse, error)
ParsePostApiReplaceResponse parses an HTTP response from a PostApiReplaceWithResponse call
func (PostApiReplaceResponse) ContentType ¶
func (r PostApiReplaceResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiReplaceResponse) GetBody ¶
func (r PostApiReplaceResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiReplaceResponse) GetJSON200 ¶
func (r PostApiReplaceResponse) GetJSON200() *ReplacenotesResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiReplaceResponse) GetJSON400 ¶
func (r PostApiReplaceResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiReplaceResponse) GetJSON403 ¶
func (r PostApiReplaceResponse) GetJSON403() *RespondFailure
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostApiReplaceResponse) GetJSON413 ¶
func (r PostApiReplaceResponse) GetJSON413() *RespondFailure
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (PostApiReplaceResponse) GetJSON500 ¶
func (r PostApiReplaceResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostApiReplaceResponse) Status ¶
func (r PostApiReplaceResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiReplaceResponse) StatusCode ¶
func (r PostApiReplaceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiRestoreJSONRequestBody ¶
type PostApiRestoreJSONRequestBody = RestoreBody
PostApiRestoreJSONRequestBody defines body for PostApiRestore for application/json ContentType.
type PostApiRestoreResponse ¶
type PostApiRestoreResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]DomainItem
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *RespondFailure
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePostApiRestoreResponse ¶
func ParsePostApiRestoreResponse(rsp *http.Response) (*PostApiRestoreResponse, error)
ParsePostApiRestoreResponse parses an HTTP response from a PostApiRestoreWithResponse call
func (PostApiRestoreResponse) ContentType ¶
func (r PostApiRestoreResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiRestoreResponse) GetBody ¶
func (r PostApiRestoreResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiRestoreResponse) GetJSON200 ¶
func (r PostApiRestoreResponse) GetJSON200() *[]DomainItem
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiRestoreResponse) GetJSON400 ¶
func (r PostApiRestoreResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiRestoreResponse) GetJSON409 ¶
func (r PostApiRestoreResponse) GetJSON409() *RespondFailure
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PostApiRestoreResponse) GetJSON413 ¶
func (r PostApiRestoreResponse) GetJSON413() *RespondFailure
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (PostApiRestoreResponse) GetJSON500 ¶
func (r PostApiRestoreResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostApiRestoreResponse) Status ¶
func (r PostApiRestoreResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiRestoreResponse) StatusCode ¶
func (r PostApiRestoreResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiSearchesJSONRequestBody ¶
type PostApiSearchesJSONRequestBody = DomainSavedSearch
PostApiSearchesJSONRequestBody defines body for PostApiSearches for application/json ContentType.
type PostApiSearchesParams ¶
type PostApiSearchesParams struct {
// Limit matches in the page, all when left out or 0
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// Offset matches skipped before the page
Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}
PostApiSearchesParams defines parameters for PostApiSearches.
type PostApiSearchesResponse ¶
type PostApiSearchesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]RunsavedsearchMatch
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *PostApiSearchesResponse200Headers
}
func ParsePostApiSearchesResponse ¶
func ParsePostApiSearchesResponse(rsp *http.Response) (*PostApiSearchesResponse, error)
ParsePostApiSearchesResponse parses an HTTP response from a PostApiSearchesWithResponse call
func (PostApiSearchesResponse) ContentType ¶
func (r PostApiSearchesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiSearchesResponse) GetBody ¶
func (r PostApiSearchesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiSearchesResponse) GetJSON200 ¶
func (r PostApiSearchesResponse) GetJSON200() *[]RunsavedsearchMatch
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiSearchesResponse) GetJSON400 ¶
func (r PostApiSearchesResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiSearchesResponse) GetJSON403 ¶
func (r PostApiSearchesResponse) GetJSON403() *RespondFailure
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostApiSearchesResponse) GetJSON500 ¶
func (r PostApiSearchesResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostApiSearchesResponse) Status ¶
func (r PostApiSearchesResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiSearchesResponse) StatusCode ¶
func (r PostApiSearchesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiSearchesResponse200Headers ¶
type PostApiSearchesResponse200Headers struct {
XTotalCount *int
}
PostApiSearchesResponse200Headers the declared response headers of an HTTP 200 response for PostApiSearches
type PostApiSignupJSONRequestBody ¶
type PostApiSignupJSONRequestBody = AdduserInput
PostApiSignupJSONRequestBody defines body for PostApiSignup for application/json ContentType.
type PostApiSignupResponse ¶
type PostApiSignupResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CreatesessionResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *RespondFailure
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *RespondFailure
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePostApiSignupResponse ¶
func ParsePostApiSignupResponse(rsp *http.Response) (*PostApiSignupResponse, error)
ParsePostApiSignupResponse parses an HTTP response from a PostApiSignupWithResponse call
func (PostApiSignupResponse) ContentType ¶
func (r PostApiSignupResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiSignupResponse) GetBody ¶
func (r PostApiSignupResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiSignupResponse) GetJSON200 ¶
func (r PostApiSignupResponse) GetJSON200() *CreatesessionResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiSignupResponse) GetJSON400 ¶
func (r PostApiSignupResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiSignupResponse) GetJSON403 ¶
func (r PostApiSignupResponse) GetJSON403() *RespondFailure
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostApiSignupResponse) GetJSON409 ¶
func (r PostApiSignupResponse) GetJSON409() *RespondFailure
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PostApiSignupResponse) GetJSON429 ¶
func (r PostApiSignupResponse) GetJSON429() *RespondFailure
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (PostApiSignupResponse) GetJSON500 ¶
func (r PostApiSignupResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostApiSignupResponse) Status ¶
func (r PostApiSignupResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiSignupResponse) StatusCode ¶
func (r PostApiSignupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiTagsJSONRequestBody ¶
type PostApiTagsJSONRequestBody = CreatetagBody
PostApiTagsJSONRequestBody defines body for PostApiTags for application/json ContentType.
type PostApiTagsResponse ¶
type PostApiTagsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *[]DomainTag
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON413 the response for an HTTP 413 `application/json` response
JSON413 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePostApiTagsResponse ¶
func ParsePostApiTagsResponse(rsp *http.Response) (*PostApiTagsResponse, error)
ParsePostApiTagsResponse parses an HTTP response from a PostApiTagsWithResponse call
func (PostApiTagsResponse) ContentType ¶
func (r PostApiTagsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiTagsResponse) GetBody ¶
func (r PostApiTagsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiTagsResponse) GetJSON201 ¶
func (r PostApiTagsResponse) GetJSON201() *[]DomainTag
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (PostApiTagsResponse) GetJSON400 ¶
func (r PostApiTagsResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiTagsResponse) GetJSON413 ¶
func (r PostApiTagsResponse) GetJSON413() *RespondFailure
GetJSON413 returns the response for an HTTP 413 `application/json` response
func (PostApiTagsResponse) GetJSON500 ¶
func (r PostApiTagsResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostApiTagsResponse) Status ¶
func (r PostApiTagsResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiTagsResponse) StatusCode ¶
func (r PostApiTagsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostApiUsersIdPasswordResponse ¶
type PostApiUsersIdPasswordResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *UsersReset
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *RespondFailure
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *RespondFailure
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *RespondFailure
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *RespondFailure
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *RespondFailure
}
func ParsePostApiUsersIdPasswordResponse ¶
func ParsePostApiUsersIdPasswordResponse(rsp *http.Response) (*PostApiUsersIdPasswordResponse, error)
ParsePostApiUsersIdPasswordResponse parses an HTTP response from a PostApiUsersIdPasswordWithResponse call
func (PostApiUsersIdPasswordResponse) ContentType ¶
func (r PostApiUsersIdPasswordResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostApiUsersIdPasswordResponse) GetBody ¶
func (r PostApiUsersIdPasswordResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostApiUsersIdPasswordResponse) GetJSON200 ¶
func (r PostApiUsersIdPasswordResponse) GetJSON200() *UsersReset
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PostApiUsersIdPasswordResponse) GetJSON400 ¶
func (r PostApiUsersIdPasswordResponse) GetJSON400() *RespondFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PostApiUsersIdPasswordResponse) GetJSON401 ¶
func (r PostApiUsersIdPasswordResponse) GetJSON401() *RespondFailure
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PostApiUsersIdPasswordResponse) GetJSON403 ¶
func (r PostApiUsersIdPasswordResponse) GetJSON403() *RespondFailure
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PostApiUsersIdPasswordResponse) GetJSON404 ¶
func (r PostApiUsersIdPasswordResponse) GetJSON404() *RespondFailure
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (PostApiUsersIdPasswordResponse) GetJSON500 ¶
func (r PostApiUsersIdPasswordResponse) GetJSON500() *RespondFailure
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PostApiUsersIdPasswordResponse) Status ¶
func (r PostApiUsersIdPasswordResponse) Status() string
Status returns HTTPResponse.Status
func (PostApiUsersIdPasswordResponse) StatusCode ¶
func (r PostApiUsersIdPasswordResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReadforkResult ¶
type ReadforkResult struct {
Base string `json:"base"`
ForkOf string `json:"fork_of"`
// MergedAt MergedAt is the version of the original the last merge saved, until that merge is undone: unmergefork's 409.
MergedAt *string `json:"merged_at,omitempty"`
}
ReadforkResult defines model for readfork.Result.
type ReadgraphLink ¶
type ReadgraphLink struct {
Source string `json:"source"`
Strength *float32 `json:"strength,omitempty"`
Target string `json:"target"`
}
ReadgraphLink defines model for readgraph.Link.
type ReadgraphNote ¶
type ReadgraphNote struct {
Id string `json:"id"`
Path string `json:"path"`
Tags *[]string `json:"tags,omitempty"`
Title string `json:"title"`
X *float32 `json:"x,omitempty"`
Y *float32 `json:"y,omitempty"`
}
ReadgraphNote defines model for readgraph.Note.
type ReadgraphResult ¶
type ReadgraphResult struct {
Links []ReadgraphLink `json:"links"`
Notes []ReadgraphNote `json:"notes"`
TagPositions *map[string]ForcelayoutPoint `json:"tag_positions,omitempty"`
TagWeights *map[string]float32 `json:"tag_weights,omitempty"`
}
ReadgraphResult defines model for readgraph.Result.
type ReaditemResult ¶
type ReaditemResult struct {
Children *[]DomainItem `json:"children,omitempty"`
Content *string `json:"content,omitempty"`
// ForkOf a fork: the note it merges back into
ForkOf *string `json:"fork_of,omitempty"`
Item DomainItem `json:"item"`
Path string `json:"path"`
Pinned *bool `json:"pinned,omitempty"`
// Readonly locked: PATCH refuses its content and tags
Readonly *bool `json:"readonly,omitempty"`
Tags *[]string `json:"tags,omitempty"`
}
ReaditemResult defines model for readitem.Result.
type ReadneighborsLinked ¶
type ReadneighborsLinked struct {
Id string `json:"id"`
Path string `json:"path"`
Snippet *string `json:"snippet,omitempty"`
Title string `json:"title"`
}
ReadneighborsLinked defines model for readneighbors.Linked.
type ReadneighborsNeighbor ¶
type ReadneighborsNeighbor struct {
Id string `json:"id"`
Path string `json:"path"`
// Tags read as ids, shown as values
Tags []string `json:"tags"`
Title string `json:"title"`
}
ReadneighborsNeighbor defines model for readneighbors.Neighbor.
type ReadneighborsResult ¶
type ReadneighborsResult struct {
Backlinks []ReadneighborsLinked `json:"backlinks"`
Forks []ReadneighborsLinked `json:"forks"`
Links []ReadneighborsLinked `json:"links"`
// Mentions Mentions are the notes citing the title as a whole word without a [[link]] to the note, the latest edited first.
Mentions []ReadneighborsLinked `json:"mentions"`
// Merged Merged is the fork whose last merge into the note can still be undone (the note unchanged since), live or in the trash the merge put it in.
Merged *string `json:"merged,omitempty"`
Neighbors []ReadneighborsNeighbor `json:"neighbors"`
NeighborsTotal int `json:"neighbors_total"`
Note ReaditemResult `json:"note"`
// Original a fork: the live note it merges back into, else empty
Original []ReadneighborsLinked `json:"original"`
}
ReadneighborsResult defines model for readneighbors.Result.
type ReadnotesBody ¶ added in v1.3.11
type ReadnotesBody struct {
// MaxChars only the start of each content, with its length and truncated
MaxChars *int `json:"max_chars,omitempty"`
// Notes uuids, or paths from the root (/Folder/Note); 50 at most
Notes []string `json:"notes"`
}
ReadnotesBody defines model for readnotes.Body.
type ReadnotesNote ¶ added in v1.3.11
type ReadnotesNote struct {
Children *[]DomainItem `json:"children,omitempty"`
Content *string `json:"content,omitempty"`
// ForkOf a fork: the note it merges back into
ForkOf *string `json:"fork_of,omitempty"`
Item DomainItem `json:"item"`
// Length the whole content's characters, given with max_chars
Length *int `json:"length,omitempty"`
Path string `json:"path"`
Pinned *bool `json:"pinned,omitempty"`
// Readonly locked: PATCH refuses its content and tags
Readonly *bool `json:"readonly,omitempty"`
Tags *[]string `json:"tags,omitempty"`
Truncated *bool `json:"truncated,omitempty"`
}
ReadnotesNote defines model for readnotes.Note.
type ReadnotetagsBody ¶
type ReadnotetagsBody struct {
}
ReadnotetagsBody defines model for readnotetags.Body.
type ReadpathResolved ¶
type ReadpathResolved struct {
Id string `json:"id"`
}
ReadpathResolved defines model for readpath.Resolved.
type ReadplansPlan ¶
ReadplansPlan defines model for readplans.Plan.
type ReadtagNote ¶
type ReadtagNote struct {
CreatedAt string `json:"created_at"`
Id string `json:"id"`
Path string `json:"path"`
Readonly *bool `json:"readonly,omitempty"`
Title string `json:"title"`
UpdatedAt *string `json:"updated_at,omitempty"`
}
ReadtagNote defines model for readtag.Note.
type ReadtagResult ¶
type ReadtagResult struct {
Notes []ReadtagNote `json:"notes"`
Tag DomainTag `json:"tag"`
}
ReadtagResult defines model for readtag.Result.
type ReadversionsBody ¶
type ReadversionsBody struct {
Content string `json:"content"`
}
ReadversionsBody defines model for readversions.Body.
type ReplacenotesInput ¶
type ReplacenotesInput struct {
DryRun *bool `json:"dry_run,omitempty"`
Find string `json:"find"`
// Folder a folder id: only its notes, its subfolders included
Folder *string `json:"folder,omitempty"`
Replace string `json:"replace"`
}
ReplacenotesInput defines model for replacenotes.Input.
type ReplacenotesResult ¶
type ReplacenotesResult struct {
Locked int `json:"locked"`
Notes int `json:"notes"`
Occurrences int `json:"occurrences"`
}
ReplacenotesResult defines model for replacenotes.Result.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RespondFailure ¶
type RespondFailure struct {
Error string `json:"error"`
}
RespondFailure defines model for respond.Failure.
type RestoreBody ¶
type RestoreBody struct {
Ids []string `json:"ids"`
}
RestoreBody defines model for restore.Body.
type RunsavedsearchMatch ¶
type RunsavedsearchMatch struct {
Id string `json:"id"`
Path string `json:"path"`
Readonly *bool `json:"readonly,omitempty"`
Snippet string `json:"snippet"`
Title string `json:"title"`
}
RunsavedsearchMatch defines model for runsavedsearch.Match.
type SearchnotesMatch ¶
type SearchnotesMatch struct {
Id string `json:"id"`
Path string `json:"path"`
Readonly *bool `json:"readonly,omitempty"`
Snippet string `json:"snippet"`
Title string `json:"title"`
}
SearchnotesMatch defines model for searchnotes.Match.
type Session ¶
Session is the server and the session token of tide login, or of TIDE_URL and TIDE_SESSION.
func Read ¶
func Read() Session
Read takes TIDE_URL and TIDE_SESSION first, each on its own, for an agent that cannot run tide login where it runs, then the file; what is missing stays empty.
func (Session) Client ¶
func (s Session) Client() (*ClientWithResponses, error)
Client talks to the session's server as its account.
type TagnotesInput ¶ added in v1.3.13
type TagnotesInput struct {
Add *[]string `json:"add,omitempty"`
Notes []string `json:"notes"`
Remove *[]string `json:"remove,omitempty"`
}
TagnotesInput defines model for tagnotes.Input.
type TagnotesTagged ¶ added in v1.3.13
type TagnotesTagged struct {
Error *string `json:"error,omitempty"`
Id *string `json:"id,omitempty"`
// Note the uuid or path asked
Note string `json:"note"`
Path *string `json:"path,omitempty"`
Tags *[]string `json:"tags,omitempty"`
Title *string `json:"title,omitempty"`
}
TagnotesTagged defines model for tagnotes.Tagged.
type UsersAccount ¶
type UsersAccount struct {
Admin bool `json:"admin"`
CreatedAt string `json:"created_at"`
Id string `json:"id"`
Name string `json:"name"`
}
UsersAccount defines model for users.Account.
type UsersMode ¶
type UsersMode struct {
// Allowed Whether the sign-up page may create an account right now: the mode is public, the base has no account yet
// (it is waiting for its host), or the invitation given is good.
Allowed bool `json:"allowed"`
// Mode one of domain.AddUserModes
Mode string `json:"mode"`
}
UsersMode defines model for users.Mode.
type UsersReset ¶
type UsersReset struct {
Password string `json:"password"`
}
UsersReset defines model for users.Reset.
type UsersVersion ¶
type UsersVersion struct {
Version string `json:"version"`
}
UsersVersion defines model for users.Version.