karakeep

package module
v0.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 9 Imported by: 0

README

go-karakeep

Go Version Latest tag Go Reference License

Go client library for Karakeep.

The go-karakeep client is auto-generated using the oapi-codegen tool, which allows convert Karakeep OpenAPI specification to Go code.

Requirements

Installation

To install go-karakeep, use go get:

go get github.com/Madh93/go-karakeep

Usage

Here is a basic example of how to use the go-karakeep library:

package main

import (
    "context"
    "fmt"
    "log"
    "net/http"

    "github.com/Madh93/go-karakeep"
)

func main() {
    // Basic configuration
    apiUrl := "https://<YOUR_KARAKEEP_HOSTNAME>/api/v1" // Replace this with your API URL
    apiKey := "<YOUR_KARAKEEP_API_KEY>"                 // Replace this with your actual token

    // Set up Bearer authentication
    auth := func(ctx context.Context, req *http.Request) error {
        req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", apiKey))
        return nil
    }

    // Create the Karakeep client
    client, err := karakeep.NewClient(apiUrl, karakeep.WithRequestEditorFn(auth))
    if err != nil {
        log.Fatalf("Error creating client: %v", err)
    }

    log.Printf("Hello world from %s", client.Server)
}

For more code examples, check out the examples directory.

Documentation

For detailed usage and API documentation, refer to the GoDoc.

Additionally, it's recommended to check out the latest Karakeep API documentation for more information.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any bug fixes or enhancements.

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Commit your changes (git commit -am 'Add new feature').
  4. Push to the branch (git push origin feature-branch).
  5. Open a Pull Request.

License

This project is licensed under the MIT license.

Documentation

Overview

Package karakeep provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.

Package karakeep provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.

Index

Constants

View Source
const (
	BearerAuthScopes = "bearerAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewDeleteBackupsBackupIdRequest added in v0.29.0

func NewDeleteBackupsBackupIdRequest(server string, backupId BackupId) (*http.Request, error)

NewDeleteBackupsBackupIdRequest generates requests for DeleteBackupsBackupId

func NewDeleteBookmarksBookmarkIdAssetsAssetIdRequest

func NewDeleteBookmarksBookmarkIdAssetsAssetIdRequest(server string, bookmarkId BookmarkId, assetId AssetId) (*http.Request, error)

NewDeleteBookmarksBookmarkIdAssetsAssetIdRequest generates requests for DeleteBookmarksBookmarkIdAssetsAssetId

func NewDeleteBookmarksBookmarkIdRequest

func NewDeleteBookmarksBookmarkIdRequest(server string, bookmarkId BookmarkId) (*http.Request, error)

NewDeleteBookmarksBookmarkIdRequest generates requests for DeleteBookmarksBookmarkId

func NewDeleteBookmarksBookmarkIdTagsRequest

func NewDeleteBookmarksBookmarkIdTagsRequest(server string, bookmarkId BookmarkId, body DeleteBookmarksBookmarkIdTagsJSONRequestBody) (*http.Request, error)

NewDeleteBookmarksBookmarkIdTagsRequest calls the generic DeleteBookmarksBookmarkIdTags builder with application/json body

func NewDeleteBookmarksBookmarkIdTagsRequestWithBody

func NewDeleteBookmarksBookmarkIdTagsRequestWithBody(server string, bookmarkId BookmarkId, contentType string, body io.Reader) (*http.Request, error)

NewDeleteBookmarksBookmarkIdTagsRequestWithBody generates requests for DeleteBookmarksBookmarkIdTags with any type of body

func NewDeleteHighlightsHighlightIdRequest

func NewDeleteHighlightsHighlightIdRequest(server string, highlightId HighlightId) (*http.Request, error)

NewDeleteHighlightsHighlightIdRequest generates requests for DeleteHighlightsHighlightId

func NewDeleteListsListIdBookmarksBookmarkIdRequest

func NewDeleteListsListIdBookmarksBookmarkIdRequest(server string, listId ListId, bookmarkId BookmarkId) (*http.Request, error)

NewDeleteListsListIdBookmarksBookmarkIdRequest generates requests for DeleteListsListIdBookmarksBookmarkId

func NewDeleteListsListIdRequest

func NewDeleteListsListIdRequest(server string, listId ListId) (*http.Request, error)

NewDeleteListsListIdRequest generates requests for DeleteListsListId

func NewDeleteTagsTagIdRequest

func NewDeleteTagsTagIdRequest(server string, tagId TagId) (*http.Request, error)

NewDeleteTagsTagIdRequest generates requests for DeleteTagsTagId

func NewGetAssetsAssetIdRequest added in v0.25.0

func NewGetAssetsAssetIdRequest(server string, assetId AssetId) (*http.Request, error)

NewGetAssetsAssetIdRequest generates requests for GetAssetsAssetId

func NewGetBackupsBackupIdDownloadRequest added in v0.29.0

func NewGetBackupsBackupIdDownloadRequest(server string, backupId BackupId) (*http.Request, error)

NewGetBackupsBackupIdDownloadRequest generates requests for GetBackupsBackupIdDownload

func NewGetBackupsBackupIdRequest added in v0.29.0

func NewGetBackupsBackupIdRequest(server string, backupId BackupId) (*http.Request, error)

NewGetBackupsBackupIdRequest generates requests for GetBackupsBackupId

func NewGetBackupsRequest added in v0.29.0

func NewGetBackupsRequest(server string) (*http.Request, error)

NewGetBackupsRequest generates requests for GetBackups

func NewGetBookmarksBookmarkIdHighlightsRequest

func NewGetBookmarksBookmarkIdHighlightsRequest(server string, bookmarkId BookmarkId) (*http.Request, error)

NewGetBookmarksBookmarkIdHighlightsRequest generates requests for GetBookmarksBookmarkIdHighlights

func NewGetBookmarksBookmarkIdListsRequest added in v0.28.0

func NewGetBookmarksBookmarkIdListsRequest(server string, bookmarkId BookmarkId) (*http.Request, error)

NewGetBookmarksBookmarkIdListsRequest generates requests for GetBookmarksBookmarkIdLists

func NewGetBookmarksBookmarkIdRequest

func NewGetBookmarksBookmarkIdRequest(server string, bookmarkId BookmarkId, params *GetBookmarksBookmarkIdParams) (*http.Request, error)

NewGetBookmarksBookmarkIdRequest generates requests for GetBookmarksBookmarkId

func NewGetBookmarksCheckUrlRequest added in v0.31.0

func NewGetBookmarksCheckUrlRequest(server string, params *GetBookmarksCheckUrlParams) (*http.Request, error)

NewGetBookmarksCheckUrlRequest generates requests for GetBookmarksCheckUrl

func NewGetBookmarksRequest

func NewGetBookmarksRequest(server string, params *GetBookmarksParams) (*http.Request, error)

NewGetBookmarksRequest generates requests for GetBookmarks

func NewGetBookmarksSearchRequest

func NewGetBookmarksSearchRequest(server string, params *GetBookmarksSearchParams) (*http.Request, error)

NewGetBookmarksSearchRequest generates requests for GetBookmarksSearch

func NewGetHighlightsHighlightIdRequest

func NewGetHighlightsHighlightIdRequest(server string, highlightId HighlightId) (*http.Request, error)

NewGetHighlightsHighlightIdRequest generates requests for GetHighlightsHighlightId

func NewGetHighlightsRequest

func NewGetHighlightsRequest(server string, params *GetHighlightsParams) (*http.Request, error)

NewGetHighlightsRequest generates requests for GetHighlights

func NewGetListsListIdBookmarksRequest

func NewGetListsListIdBookmarksRequest(server string, listId ListId, params *GetListsListIdBookmarksParams) (*http.Request, error)

NewGetListsListIdBookmarksRequest generates requests for GetListsListIdBookmarks

func NewGetListsListIdRequest

func NewGetListsListIdRequest(server string, listId ListId) (*http.Request, error)

NewGetListsListIdRequest generates requests for GetListsListId

func NewGetListsRequest

func NewGetListsRequest(server string) (*http.Request, error)

NewGetListsRequest generates requests for GetLists

func NewGetTagsRequest

func NewGetTagsRequest(server string, params *GetTagsParams) (*http.Request, error)

NewGetTagsRequest generates requests for GetTags

func NewGetTagsTagIdBookmarksRequest

func NewGetTagsTagIdBookmarksRequest(server string, tagId TagId, params *GetTagsTagIdBookmarksParams) (*http.Request, error)

NewGetTagsTagIdBookmarksRequest generates requests for GetTagsTagIdBookmarks

func NewGetTagsTagIdRequest

func NewGetTagsTagIdRequest(server string, tagId TagId) (*http.Request, error)

NewGetTagsTagIdRequest generates requests for GetTagsTagId

func NewGetUsersMeRequest

func NewGetUsersMeRequest(server string) (*http.Request, error)

NewGetUsersMeRequest generates requests for GetUsersMe

func NewGetUsersMeStatsRequest

func NewGetUsersMeStatsRequest(server string) (*http.Request, error)

NewGetUsersMeStatsRequest generates requests for GetUsersMeStats

func NewPatchBookmarksBookmarkIdRequest

func NewPatchBookmarksBookmarkIdRequest(server string, bookmarkId BookmarkId, body PatchBookmarksBookmarkIdJSONRequestBody) (*http.Request, error)

NewPatchBookmarksBookmarkIdRequest calls the generic PatchBookmarksBookmarkId builder with application/json body

func NewPatchBookmarksBookmarkIdRequestWithBody

func NewPatchBookmarksBookmarkIdRequestWithBody(server string, bookmarkId BookmarkId, contentType string, body io.Reader) (*http.Request, error)

NewPatchBookmarksBookmarkIdRequestWithBody generates requests for PatchBookmarksBookmarkId with any type of body

func NewPatchHighlightsHighlightIdRequest

func NewPatchHighlightsHighlightIdRequest(server string, highlightId HighlightId, body PatchHighlightsHighlightIdJSONRequestBody) (*http.Request, error)

NewPatchHighlightsHighlightIdRequest calls the generic PatchHighlightsHighlightId builder with application/json body

func NewPatchHighlightsHighlightIdRequestWithBody

func NewPatchHighlightsHighlightIdRequestWithBody(server string, highlightId HighlightId, contentType string, body io.Reader) (*http.Request, error)

NewPatchHighlightsHighlightIdRequestWithBody generates requests for PatchHighlightsHighlightId with any type of body

func NewPatchListsListIdRequest

func NewPatchListsListIdRequest(server string, listId ListId, body PatchListsListIdJSONRequestBody) (*http.Request, error)

NewPatchListsListIdRequest calls the generic PatchListsListId builder with application/json body

func NewPatchListsListIdRequestWithBody

func NewPatchListsListIdRequestWithBody(server string, listId ListId, contentType string, body io.Reader) (*http.Request, error)

NewPatchListsListIdRequestWithBody generates requests for PatchListsListId with any type of body

func NewPatchTagsTagIdRequest

func NewPatchTagsTagIdRequest(server string, tagId TagId, body PatchTagsTagIdJSONRequestBody) (*http.Request, error)

NewPatchTagsTagIdRequest calls the generic PatchTagsTagId builder with application/json body

func NewPatchTagsTagIdRequestWithBody

func NewPatchTagsTagIdRequestWithBody(server string, tagId TagId, contentType string, body io.Reader) (*http.Request, error)

NewPatchTagsTagIdRequestWithBody generates requests for PatchTagsTagId with any type of body

func NewPostAssetsRequestWithBody added in v0.25.0

func NewPostAssetsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostAssetsRequestWithBody generates requests for PostAssets with any type of body

func NewPostBackupsRequest added in v0.29.0

func NewPostBackupsRequest(server string) (*http.Request, error)

NewPostBackupsRequest generates requests for PostBackups

func NewPostBookmarksBookmarkIdAssetsRequest

func NewPostBookmarksBookmarkIdAssetsRequest(server string, bookmarkId BookmarkId, body PostBookmarksBookmarkIdAssetsJSONRequestBody) (*http.Request, error)

NewPostBookmarksBookmarkIdAssetsRequest calls the generic PostBookmarksBookmarkIdAssets builder with application/json body

func NewPostBookmarksBookmarkIdAssetsRequestWithBody

func NewPostBookmarksBookmarkIdAssetsRequestWithBody(server string, bookmarkId BookmarkId, contentType string, body io.Reader) (*http.Request, error)

NewPostBookmarksBookmarkIdAssetsRequestWithBody generates requests for PostBookmarksBookmarkIdAssets with any type of body

func NewPostBookmarksBookmarkIdSummarizeRequest

func NewPostBookmarksBookmarkIdSummarizeRequest(server string, bookmarkId BookmarkId) (*http.Request, error)

NewPostBookmarksBookmarkIdSummarizeRequest generates requests for PostBookmarksBookmarkIdSummarize

func NewPostBookmarksBookmarkIdTagsRequest

func NewPostBookmarksBookmarkIdTagsRequest(server string, bookmarkId BookmarkId, body PostBookmarksBookmarkIdTagsJSONRequestBody) (*http.Request, error)

NewPostBookmarksBookmarkIdTagsRequest calls the generic PostBookmarksBookmarkIdTags builder with application/json body

func NewPostBookmarksBookmarkIdTagsRequestWithBody

func NewPostBookmarksBookmarkIdTagsRequestWithBody(server string, bookmarkId BookmarkId, contentType string, body io.Reader) (*http.Request, error)

NewPostBookmarksBookmarkIdTagsRequestWithBody generates requests for PostBookmarksBookmarkIdTags with any type of body

func NewPostBookmarksRequest

func NewPostBookmarksRequest(server string, body PostBookmarksJSONRequestBody) (*http.Request, error)

NewPostBookmarksRequest calls the generic PostBookmarks builder with application/json body

func NewPostBookmarksRequestWithBody

func NewPostBookmarksRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostBookmarksRequestWithBody generates requests for PostBookmarks with any type of body

func NewPostHighlightsRequest

func NewPostHighlightsRequest(server string, body PostHighlightsJSONRequestBody) (*http.Request, error)

NewPostHighlightsRequest calls the generic PostHighlights builder with application/json body

func NewPostHighlightsRequestWithBody

func NewPostHighlightsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostHighlightsRequestWithBody generates requests for PostHighlights with any type of body

func NewPostListsRequest

func NewPostListsRequest(server string, body PostListsJSONRequestBody) (*http.Request, error)

NewPostListsRequest calls the generic PostLists builder with application/json body

func NewPostListsRequestWithBody

func NewPostListsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostListsRequestWithBody generates requests for PostLists with any type of body

func NewPostTagsRequest added in v0.25.0

func NewPostTagsRequest(server string, body PostTagsJSONRequestBody) (*http.Request, error)

NewPostTagsRequest calls the generic PostTags builder with application/json body

func NewPostTagsRequestWithBody added in v0.25.0

func NewPostTagsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostTagsRequestWithBody generates requests for PostTags with any type of body

func NewPutAdminUsersUserIdRequest added in v0.26.0

func NewPutAdminUsersUserIdRequest(server string, userId string, body PutAdminUsersUserIdJSONRequestBody) (*http.Request, error)

NewPutAdminUsersUserIdRequest calls the generic PutAdminUsersUserId builder with application/json body

func NewPutAdminUsersUserIdRequestWithBody added in v0.26.0

func NewPutAdminUsersUserIdRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error)

NewPutAdminUsersUserIdRequestWithBody generates requests for PutAdminUsersUserId with any type of body

func NewPutBookmarksBookmarkIdAssetsAssetIdRequest

func NewPutBookmarksBookmarkIdAssetsAssetIdRequest(server string, bookmarkId BookmarkId, assetId AssetId, body PutBookmarksBookmarkIdAssetsAssetIdJSONRequestBody) (*http.Request, error)

NewPutBookmarksBookmarkIdAssetsAssetIdRequest calls the generic PutBookmarksBookmarkIdAssetsAssetId builder with application/json body

func NewPutBookmarksBookmarkIdAssetsAssetIdRequestWithBody

func NewPutBookmarksBookmarkIdAssetsAssetIdRequestWithBody(server string, bookmarkId BookmarkId, assetId AssetId, contentType string, body io.Reader) (*http.Request, error)

NewPutBookmarksBookmarkIdAssetsAssetIdRequestWithBody generates requests for PutBookmarksBookmarkIdAssetsAssetId with any type of body

func NewPutListsListIdBookmarksBookmarkIdRequest

func NewPutListsListIdBookmarksBookmarkIdRequest(server string, listId ListId, bookmarkId BookmarkId) (*http.Request, error)

NewPutListsListIdBookmarksBookmarkIdRequest generates requests for PutListsListIdBookmarksBookmarkId

Types

type Asset added in v0.25.0

type Asset struct {
	AssetId     string  `json:"assetId"`
	ContentType string  `json:"contentType"`
	FileName    string  `json:"fileName"`
	Size        float32 `json:"size"`
}

Asset defines model for Asset.

type AssetId

type AssetId = string

AssetId defines model for AssetId.

type BackupId added in v0.29.0

type BackupId = string

BackupId defines model for BackupId.

type Bookmark

type Bookmark struct {
	Archived bool `json:"archived"`
	Assets   []struct {
		AssetType BookmarkAssetsAssetType `json:"assetType"`
		FileName  *string                 `json:"fileName"`
		Id        string                  `json:"id"`
	} `json:"assets"`
	Content             Bookmark_Content             `json:"content"`
	CreatedAt           string                       `json:"createdAt"`
	Favourited          bool                         `json:"favourited"`
	Id                  string                       `json:"id"`
	ModifiedAt          *string                      `json:"modifiedAt"`
	Note                *string                      `json:"note"`
	Source              *BookmarkSource              `json:"source"`
	SummarizationStatus *BookmarkSummarizationStatus `json:"summarizationStatus"`
	Summary             *string                      `json:"summary"`
	TaggingStatus       *BookmarkTaggingStatus       `json:"taggingStatus"`
	Tags                []struct {
		AttachedBy BookmarkTagsAttachedBy `json:"attachedBy"`
		Id         string                 `json:"id"`
		Name       string                 `json:"name"`
	} `json:"tags"`
	Title  *string `json:"title"`
	UserId string  `json:"userId"`
}

Bookmark defines model for Bookmark.

type BookmarkAssetsAssetType

type BookmarkAssetsAssetType string

BookmarkAssetsAssetType defines model for Bookmark.Assets.AssetType.

const (
	BookmarkAssetsAssetTypeAssetScreenshot   BookmarkAssetsAssetType = "assetScreenshot"
	BookmarkAssetsAssetTypeAvatar            BookmarkAssetsAssetType = "avatar"
	BookmarkAssetsAssetTypeBannerImage       BookmarkAssetsAssetType = "bannerImage"
	BookmarkAssetsAssetTypeBookmarkAsset     BookmarkAssetsAssetType = "bookmarkAsset"
	BookmarkAssetsAssetTypeFullPageArchive   BookmarkAssetsAssetType = "fullPageArchive"
	BookmarkAssetsAssetTypeLinkHtmlContent   BookmarkAssetsAssetType = "linkHtmlContent"
	BookmarkAssetsAssetTypePdf               BookmarkAssetsAssetType = "pdf"
	BookmarkAssetsAssetTypePrecrawledArchive BookmarkAssetsAssetType = "precrawledArchive"
	BookmarkAssetsAssetTypeScreenshot        BookmarkAssetsAssetType = "screenshot"
	BookmarkAssetsAssetTypeUnknown           BookmarkAssetsAssetType = "unknown"
	BookmarkAssetsAssetTypeUserUploaded      BookmarkAssetsAssetType = "userUploaded"
	BookmarkAssetsAssetTypeVideo             BookmarkAssetsAssetType = "video"
)

Defines values for BookmarkAssetsAssetType.

type BookmarkContent0

type BookmarkContent0 struct {
	Author                   *string                      `json:"author"`
	ContentAssetId           *string                      `json:"contentAssetId"`
	CrawlStatus              *BookmarkContent0CrawlStatus `json:"crawlStatus"`
	CrawledAt                *string                      `json:"crawledAt"`
	DateModified             *string                      `json:"dateModified"`
	DatePublished            *string                      `json:"datePublished"`
	Description              *string                      `json:"description"`
	Favicon                  *string                      `json:"favicon"`
	FullPageArchiveAssetId   *string                      `json:"fullPageArchiveAssetId"`
	HtmlContent              *string                      `json:"htmlContent"`
	ImageAssetId             *string                      `json:"imageAssetId"`
	ImageUrl                 *string                      `json:"imageUrl"`
	PdfAssetId               *string                      `json:"pdfAssetId"`
	PrecrawledArchiveAssetId *string                      `json:"precrawledArchiveAssetId"`
	Publisher                *string                      `json:"publisher"`
	ScreenshotAssetId        *string                      `json:"screenshotAssetId"`
	Title                    *string                      `json:"title"`
	Type                     BookmarkContent0Type         `json:"type"`
	Url                      string                       `json:"url"`
	VideoAssetId             *string                      `json:"videoAssetId"`
}

BookmarkContent0 defines model for .

type BookmarkContent0CrawlStatus added in v0.30.0

type BookmarkContent0CrawlStatus string

BookmarkContent0CrawlStatus defines model for Bookmark.Content.0.CrawlStatus.

const (
	BookmarkContent0CrawlStatusFailure BookmarkContent0CrawlStatus = "failure"
	BookmarkContent0CrawlStatusPending BookmarkContent0CrawlStatus = "pending"
	BookmarkContent0CrawlStatusSuccess BookmarkContent0CrawlStatus = "success"
)

Defines values for BookmarkContent0CrawlStatus.

type BookmarkContent0Type

type BookmarkContent0Type string

BookmarkContent0Type defines model for Bookmark.Content.0.Type.

const (
	BookmarkContent0TypeLink BookmarkContent0Type = "link"
)

Defines values for BookmarkContent0Type.

type BookmarkContent1

type BookmarkContent1 struct {
	SourceUrl *string              `json:"sourceUrl"`
	Text      string               `json:"text"`
	Type      BookmarkContent1Type `json:"type"`
}

BookmarkContent1 defines model for .

type BookmarkContent1Type

type BookmarkContent1Type string

BookmarkContent1Type defines model for Bookmark.Content.1.Type.

const (
	BookmarkContent1TypeText BookmarkContent1Type = "text"
)

Defines values for BookmarkContent1Type.

type BookmarkContent2

type BookmarkContent2 struct {
	AssetId   string                    `json:"assetId"`
	AssetType BookmarkContent2AssetType `json:"assetType"`
	Content   *string                   `json:"content"`
	FileName  *string                   `json:"fileName"`
	Size      *float32                  `json:"size"`
	SourceUrl *string                   `json:"sourceUrl"`
	Type      BookmarkContent2Type      `json:"type"`
}

BookmarkContent2 defines model for .

type BookmarkContent2AssetType

type BookmarkContent2AssetType string

BookmarkContent2AssetType defines model for Bookmark.Content.2.AssetType.

const (
	BookmarkContent2AssetTypeImage BookmarkContent2AssetType = "image"
	BookmarkContent2AssetTypePdf   BookmarkContent2AssetType = "pdf"
)

Defines values for BookmarkContent2AssetType.

type BookmarkContent2Type

type BookmarkContent2Type string

BookmarkContent2Type defines model for Bookmark.Content.2.Type.

const (
	BookmarkContent2TypeAsset BookmarkContent2Type = "asset"
)

Defines values for BookmarkContent2Type.

type BookmarkContent3

type BookmarkContent3 struct {
	Type BookmarkContent3Type `json:"type"`
}

BookmarkContent3 defines model for .

type BookmarkContent3Type

type BookmarkContent3Type string

BookmarkContent3Type defines model for Bookmark.Content.3.Type.

const (
	BookmarkContent3TypeUnknown BookmarkContent3Type = "unknown"
)

Defines values for BookmarkContent3Type.

type BookmarkId

type BookmarkId = string

BookmarkId defines model for BookmarkId.

type BookmarkSource added in v0.28.0

type BookmarkSource string

BookmarkSource defines model for Bookmark.Source.

const (
	BookmarkSourceApi        BookmarkSource = "api"
	BookmarkSourceCli        BookmarkSource = "cli"
	BookmarkSourceExtension  BookmarkSource = "extension"
	BookmarkSourceImport     BookmarkSource = "import"
	BookmarkSourceMobile     BookmarkSource = "mobile"
	BookmarkSourceRss        BookmarkSource = "rss"
	BookmarkSourceSinglefile BookmarkSource = "singlefile"
	BookmarkSourceWeb        BookmarkSource = "web"
)

Defines values for BookmarkSource.

type BookmarkSummarizationStatus added in v0.25.0

type BookmarkSummarizationStatus string

BookmarkSummarizationStatus defines model for Bookmark.SummarizationStatus.

const (
	BookmarkSummarizationStatusFailure BookmarkSummarizationStatus = "failure"
	BookmarkSummarizationStatusPending BookmarkSummarizationStatus = "pending"
	BookmarkSummarizationStatusSuccess BookmarkSummarizationStatus = "success"
)

Defines values for BookmarkSummarizationStatus.

type BookmarkTaggingStatus

type BookmarkTaggingStatus string

BookmarkTaggingStatus defines model for Bookmark.TaggingStatus.

const (
	Failure BookmarkTaggingStatus = "failure"
	Pending BookmarkTaggingStatus = "pending"
	Success BookmarkTaggingStatus = "success"
)

Defines values for BookmarkTaggingStatus.

type BookmarkTagsAttachedBy

type BookmarkTagsAttachedBy string

BookmarkTagsAttachedBy defines model for Bookmark.Tags.AttachedBy.

const (
	BookmarkTagsAttachedByAi    BookmarkTagsAttachedBy = "ai"
	BookmarkTagsAttachedByHuman BookmarkTagsAttachedBy = "human"
)

Defines values for BookmarkTagsAttachedBy.

type Bookmark_Content

type Bookmark_Content struct {
	// contains filtered or unexported fields
}

Bookmark_Content defines model for Bookmark.Content.

func (Bookmark_Content) AsBookmarkContent0

func (t Bookmark_Content) AsBookmarkContent0() (BookmarkContent0, error)

AsBookmarkContent0 returns the union data inside the Bookmark_Content as a BookmarkContent0

func (Bookmark_Content) AsBookmarkContent1

func (t Bookmark_Content) AsBookmarkContent1() (BookmarkContent1, error)

AsBookmarkContent1 returns the union data inside the Bookmark_Content as a BookmarkContent1

func (Bookmark_Content) AsBookmarkContent2

func (t Bookmark_Content) AsBookmarkContent2() (BookmarkContent2, error)

AsBookmarkContent2 returns the union data inside the Bookmark_Content as a BookmarkContent2

func (Bookmark_Content) AsBookmarkContent3

func (t Bookmark_Content) AsBookmarkContent3() (BookmarkContent3, error)

AsBookmarkContent3 returns the union data inside the Bookmark_Content as a BookmarkContent3

func (*Bookmark_Content) FromBookmarkContent0

func (t *Bookmark_Content) FromBookmarkContent0(v BookmarkContent0) error

FromBookmarkContent0 overwrites any union data inside the Bookmark_Content as the provided BookmarkContent0

func (*Bookmark_Content) FromBookmarkContent1

func (t *Bookmark_Content) FromBookmarkContent1(v BookmarkContent1) error

FromBookmarkContent1 overwrites any union data inside the Bookmark_Content as the provided BookmarkContent1

func (*Bookmark_Content) FromBookmarkContent2

func (t *Bookmark_Content) FromBookmarkContent2(v BookmarkContent2) error

FromBookmarkContent2 overwrites any union data inside the Bookmark_Content as the provided BookmarkContent2

func (*Bookmark_Content) FromBookmarkContent3

func (t *Bookmark_Content) FromBookmarkContent3(v BookmarkContent3) error

FromBookmarkContent3 overwrites any union data inside the Bookmark_Content as the provided BookmarkContent3

func (Bookmark_Content) MarshalJSON

func (t Bookmark_Content) MarshalJSON() ([]byte, error)

func (*Bookmark_Content) MergeBookmarkContent0

func (t *Bookmark_Content) MergeBookmarkContent0(v BookmarkContent0) error

MergeBookmarkContent0 performs a merge with any union data inside the Bookmark_Content, using the provided BookmarkContent0

func (*Bookmark_Content) MergeBookmarkContent1

func (t *Bookmark_Content) MergeBookmarkContent1(v BookmarkContent1) error

MergeBookmarkContent1 performs a merge with any union data inside the Bookmark_Content, using the provided BookmarkContent1

func (*Bookmark_Content) MergeBookmarkContent2

func (t *Bookmark_Content) MergeBookmarkContent2(v BookmarkContent2) error

MergeBookmarkContent2 performs a merge with any union data inside the Bookmark_Content, using the provided BookmarkContent2

func (*Bookmark_Content) MergeBookmarkContent3

func (t *Bookmark_Content) MergeBookmarkContent3(v BookmarkContent3) error

MergeBookmarkContent3 performs a merge with any union data inside the Bookmark_Content, using the provided BookmarkContent3

func (*Bookmark_Content) UnmarshalJSON

func (t *Bookmark_Content) UnmarshalJSON(b []byte) error

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) DeleteBackupsBackupId added in v0.29.0

func (c *Client) DeleteBackupsBackupId(ctx context.Context, backupId BackupId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteBookmarksBookmarkId

func (c *Client) DeleteBookmarksBookmarkId(ctx context.Context, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteBookmarksBookmarkIdAssetsAssetId

func (c *Client) DeleteBookmarksBookmarkIdAssetsAssetId(ctx context.Context, bookmarkId BookmarkId, assetId AssetId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteBookmarksBookmarkIdTags

func (c *Client) DeleteBookmarksBookmarkIdTags(ctx context.Context, bookmarkId BookmarkId, body DeleteBookmarksBookmarkIdTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteBookmarksBookmarkIdTagsWithBody

func (c *Client) DeleteBookmarksBookmarkIdTagsWithBody(ctx context.Context, bookmarkId BookmarkId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteHighlightsHighlightId

func (c *Client) DeleteHighlightsHighlightId(ctx context.Context, highlightId HighlightId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteListsListId

func (c *Client) DeleteListsListId(ctx context.Context, listId ListId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteListsListIdBookmarksBookmarkId

func (c *Client) DeleteListsListIdBookmarksBookmarkId(ctx context.Context, listId ListId, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteTagsTagId

func (c *Client) DeleteTagsTagId(ctx context.Context, tagId TagId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAssetsAssetId added in v0.25.0

func (c *Client) GetAssetsAssetId(ctx context.Context, assetId AssetId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBackups added in v0.29.0

func (c *Client) GetBackups(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBackupsBackupId added in v0.29.0

func (c *Client) GetBackupsBackupId(ctx context.Context, backupId BackupId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBackupsBackupIdDownload added in v0.29.0

func (c *Client) GetBackupsBackupIdDownload(ctx context.Context, backupId BackupId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBookmarks

func (c *Client) GetBookmarks(ctx context.Context, params *GetBookmarksParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBookmarksBookmarkId

func (c *Client) GetBookmarksBookmarkId(ctx context.Context, bookmarkId BookmarkId, params *GetBookmarksBookmarkIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBookmarksBookmarkIdHighlights

func (c *Client) GetBookmarksBookmarkIdHighlights(ctx context.Context, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBookmarksBookmarkIdLists added in v0.28.0

func (c *Client) GetBookmarksBookmarkIdLists(ctx context.Context, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBookmarksCheckUrl added in v0.31.0

func (c *Client) GetBookmarksCheckUrl(ctx context.Context, params *GetBookmarksCheckUrlParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBookmarksSearch

func (c *Client) GetBookmarksSearch(ctx context.Context, params *GetBookmarksSearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetHighlights

func (c *Client) GetHighlights(ctx context.Context, params *GetHighlightsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetHighlightsHighlightId

func (c *Client) GetHighlightsHighlightId(ctx context.Context, highlightId HighlightId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLists

func (c *Client) GetLists(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetListsListId

func (c *Client) GetListsListId(ctx context.Context, listId ListId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetListsListIdBookmarks

func (c *Client) GetListsListIdBookmarks(ctx context.Context, listId ListId, params *GetListsListIdBookmarksParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTags

func (c *Client) GetTags(ctx context.Context, params *GetTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTagsTagId

func (c *Client) GetTagsTagId(ctx context.Context, tagId TagId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTagsTagIdBookmarks

func (c *Client) GetTagsTagIdBookmarks(ctx context.Context, tagId TagId, params *GetTagsTagIdBookmarksParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetUsersMe

func (c *Client) GetUsersMe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetUsersMeStats

func (c *Client) GetUsersMeStats(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PatchBookmarksBookmarkId

func (c *Client) PatchBookmarksBookmarkId(ctx context.Context, bookmarkId BookmarkId, body PatchBookmarksBookmarkIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PatchBookmarksBookmarkIdWithBody

func (c *Client) PatchBookmarksBookmarkIdWithBody(ctx context.Context, bookmarkId BookmarkId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PatchHighlightsHighlightId

func (c *Client) PatchHighlightsHighlightId(ctx context.Context, highlightId HighlightId, body PatchHighlightsHighlightIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PatchHighlightsHighlightIdWithBody

func (c *Client) PatchHighlightsHighlightIdWithBody(ctx context.Context, highlightId HighlightId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PatchListsListId

func (c *Client) PatchListsListId(ctx context.Context, listId ListId, body PatchListsListIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PatchListsListIdWithBody

func (c *Client) PatchListsListIdWithBody(ctx context.Context, listId ListId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PatchTagsTagId

func (c *Client) PatchTagsTagId(ctx context.Context, tagId TagId, body PatchTagsTagIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PatchTagsTagIdWithBody

func (c *Client) PatchTagsTagIdWithBody(ctx context.Context, tagId TagId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostAssetsWithBody added in v0.25.0

func (c *Client) PostAssetsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostBackups added in v0.29.0

func (c *Client) PostBackups(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostBookmarks

func (c *Client) PostBookmarks(ctx context.Context, body PostBookmarksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostBookmarksBookmarkIdAssets

func (c *Client) PostBookmarksBookmarkIdAssets(ctx context.Context, bookmarkId BookmarkId, body PostBookmarksBookmarkIdAssetsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostBookmarksBookmarkIdAssetsWithBody

func (c *Client) PostBookmarksBookmarkIdAssetsWithBody(ctx context.Context, bookmarkId BookmarkId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostBookmarksBookmarkIdSummarize

func (c *Client) PostBookmarksBookmarkIdSummarize(ctx context.Context, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostBookmarksBookmarkIdTags

func (c *Client) PostBookmarksBookmarkIdTags(ctx context.Context, bookmarkId BookmarkId, body PostBookmarksBookmarkIdTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostBookmarksBookmarkIdTagsWithBody

func (c *Client) PostBookmarksBookmarkIdTagsWithBody(ctx context.Context, bookmarkId BookmarkId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostBookmarksWithBody

func (c *Client) PostBookmarksWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostHighlights

func (c *Client) PostHighlights(ctx context.Context, body PostHighlightsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostHighlightsWithBody

func (c *Client) PostHighlightsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostLists

func (c *Client) PostLists(ctx context.Context, body PostListsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostListsWithBody

func (c *Client) PostListsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostTags added in v0.25.0

func (c *Client) PostTags(ctx context.Context, body PostTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostTagsWithBody added in v0.25.0

func (c *Client) PostTagsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutAdminUsersUserId added in v0.26.0

func (c *Client) PutAdminUsersUserId(ctx context.Context, userId string, body PutAdminUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutAdminUsersUserIdWithBody added in v0.26.0

func (c *Client) PutAdminUsersUserIdWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutBookmarksBookmarkIdAssetsAssetId

func (c *Client) PutBookmarksBookmarkIdAssetsAssetId(ctx context.Context, bookmarkId BookmarkId, assetId AssetId, body PutBookmarksBookmarkIdAssetsAssetIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutBookmarksBookmarkIdAssetsAssetIdWithBody

func (c *Client) PutBookmarksBookmarkIdAssetsAssetIdWithBody(ctx context.Context, bookmarkId BookmarkId, assetId AssetId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutListsListIdBookmarksBookmarkId

func (c *Client) PutListsListIdBookmarksBookmarkId(ctx context.Context, listId ListId, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// PutAdminUsersUserIdWithBody request with any body
	PutAdminUsersUserIdWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PutAdminUsersUserId(ctx context.Context, userId string, body PutAdminUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostAssetsWithBody request with any body
	PostAssetsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAssetsAssetId request
	GetAssetsAssetId(ctx context.Context, assetId AssetId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBackups request
	GetBackups(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostBackups request
	PostBackups(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteBackupsBackupId request
	DeleteBackupsBackupId(ctx context.Context, backupId BackupId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBackupsBackupId request
	GetBackupsBackupId(ctx context.Context, backupId BackupId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBackupsBackupIdDownload request
	GetBackupsBackupIdDownload(ctx context.Context, backupId BackupId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBookmarks request
	GetBookmarks(ctx context.Context, params *GetBookmarksParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostBookmarksWithBody request with any body
	PostBookmarksWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostBookmarks(ctx context.Context, body PostBookmarksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBookmarksCheckUrl request
	GetBookmarksCheckUrl(ctx context.Context, params *GetBookmarksCheckUrlParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBookmarksSearch request
	GetBookmarksSearch(ctx context.Context, params *GetBookmarksSearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteBookmarksBookmarkId request
	DeleteBookmarksBookmarkId(ctx context.Context, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBookmarksBookmarkId request
	GetBookmarksBookmarkId(ctx context.Context, bookmarkId BookmarkId, params *GetBookmarksBookmarkIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PatchBookmarksBookmarkIdWithBody request with any body
	PatchBookmarksBookmarkIdWithBody(ctx context.Context, bookmarkId BookmarkId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PatchBookmarksBookmarkId(ctx context.Context, bookmarkId BookmarkId, body PatchBookmarksBookmarkIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostBookmarksBookmarkIdAssetsWithBody request with any body
	PostBookmarksBookmarkIdAssetsWithBody(ctx context.Context, bookmarkId BookmarkId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostBookmarksBookmarkIdAssets(ctx context.Context, bookmarkId BookmarkId, body PostBookmarksBookmarkIdAssetsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteBookmarksBookmarkIdAssetsAssetId request
	DeleteBookmarksBookmarkIdAssetsAssetId(ctx context.Context, bookmarkId BookmarkId, assetId AssetId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutBookmarksBookmarkIdAssetsAssetIdWithBody request with any body
	PutBookmarksBookmarkIdAssetsAssetIdWithBody(ctx context.Context, bookmarkId BookmarkId, assetId AssetId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PutBookmarksBookmarkIdAssetsAssetId(ctx context.Context, bookmarkId BookmarkId, assetId AssetId, body PutBookmarksBookmarkIdAssetsAssetIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBookmarksBookmarkIdHighlights request
	GetBookmarksBookmarkIdHighlights(ctx context.Context, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBookmarksBookmarkIdLists request
	GetBookmarksBookmarkIdLists(ctx context.Context, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostBookmarksBookmarkIdSummarize request
	PostBookmarksBookmarkIdSummarize(ctx context.Context, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteBookmarksBookmarkIdTagsWithBody request with any body
	DeleteBookmarksBookmarkIdTagsWithBody(ctx context.Context, bookmarkId BookmarkId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	DeleteBookmarksBookmarkIdTags(ctx context.Context, bookmarkId BookmarkId, body DeleteBookmarksBookmarkIdTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostBookmarksBookmarkIdTagsWithBody request with any body
	PostBookmarksBookmarkIdTagsWithBody(ctx context.Context, bookmarkId BookmarkId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostBookmarksBookmarkIdTags(ctx context.Context, bookmarkId BookmarkId, body PostBookmarksBookmarkIdTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHighlights request
	GetHighlights(ctx context.Context, params *GetHighlightsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostHighlightsWithBody request with any body
	PostHighlightsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostHighlights(ctx context.Context, body PostHighlightsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteHighlightsHighlightId request
	DeleteHighlightsHighlightId(ctx context.Context, highlightId HighlightId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHighlightsHighlightId request
	GetHighlightsHighlightId(ctx context.Context, highlightId HighlightId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PatchHighlightsHighlightIdWithBody request with any body
	PatchHighlightsHighlightIdWithBody(ctx context.Context, highlightId HighlightId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PatchHighlightsHighlightId(ctx context.Context, highlightId HighlightId, body PatchHighlightsHighlightIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLists request
	GetLists(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostListsWithBody request with any body
	PostListsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostLists(ctx context.Context, body PostListsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteListsListId request
	DeleteListsListId(ctx context.Context, listId ListId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetListsListId request
	GetListsListId(ctx context.Context, listId ListId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PatchListsListIdWithBody request with any body
	PatchListsListIdWithBody(ctx context.Context, listId ListId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PatchListsListId(ctx context.Context, listId ListId, body PatchListsListIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetListsListIdBookmarks request
	GetListsListIdBookmarks(ctx context.Context, listId ListId, params *GetListsListIdBookmarksParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteListsListIdBookmarksBookmarkId request
	DeleteListsListIdBookmarksBookmarkId(ctx context.Context, listId ListId, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutListsListIdBookmarksBookmarkId request
	PutListsListIdBookmarksBookmarkId(ctx context.Context, listId ListId, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTags request
	GetTags(ctx context.Context, params *GetTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostTagsWithBody request with any body
	PostTagsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostTags(ctx context.Context, body PostTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteTagsTagId request
	DeleteTagsTagId(ctx context.Context, tagId TagId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTagsTagId request
	GetTagsTagId(ctx context.Context, tagId TagId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PatchTagsTagIdWithBody request with any body
	PatchTagsTagIdWithBody(ctx context.Context, tagId TagId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PatchTagsTagId(ctx context.Context, tagId TagId, body PatchTagsTagIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTagsTagIdBookmarks request
	GetTagsTagIdBookmarks(ctx context.Context, tagId TagId, params *GetTagsTagIdBookmarksParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetUsersMe request
	GetUsersMe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetUsersMeStats request
	GetUsersMeStats(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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 NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) DeleteBackupsBackupIdWithResponse added in v0.29.0

func (c *ClientWithResponses) DeleteBackupsBackupIdWithResponse(ctx context.Context, backupId BackupId, reqEditors ...RequestEditorFn) (*DeleteBackupsBackupIdResponse, error)

DeleteBackupsBackupIdWithResponse request returning *DeleteBackupsBackupIdResponse

func (*ClientWithResponses) DeleteBookmarksBookmarkIdAssetsAssetIdWithResponse

func (c *ClientWithResponses) DeleteBookmarksBookmarkIdAssetsAssetIdWithResponse(ctx context.Context, bookmarkId BookmarkId, assetId AssetId, reqEditors ...RequestEditorFn) (*DeleteBookmarksBookmarkIdAssetsAssetIdResponse, error)

DeleteBookmarksBookmarkIdAssetsAssetIdWithResponse request returning *DeleteBookmarksBookmarkIdAssetsAssetIdResponse

func (*ClientWithResponses) DeleteBookmarksBookmarkIdTagsWithBodyWithResponse

func (c *ClientWithResponses) DeleteBookmarksBookmarkIdTagsWithBodyWithResponse(ctx context.Context, bookmarkId BookmarkId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteBookmarksBookmarkIdTagsResponse, error)

DeleteBookmarksBookmarkIdTagsWithBodyWithResponse request with arbitrary body returning *DeleteBookmarksBookmarkIdTagsResponse

func (*ClientWithResponses) DeleteBookmarksBookmarkIdTagsWithResponse

func (c *ClientWithResponses) DeleteBookmarksBookmarkIdTagsWithResponse(ctx context.Context, bookmarkId BookmarkId, body DeleteBookmarksBookmarkIdTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteBookmarksBookmarkIdTagsResponse, error)

func (*ClientWithResponses) DeleteBookmarksBookmarkIdWithResponse

func (c *ClientWithResponses) DeleteBookmarksBookmarkIdWithResponse(ctx context.Context, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*DeleteBookmarksBookmarkIdResponse, error)

DeleteBookmarksBookmarkIdWithResponse request returning *DeleteBookmarksBookmarkIdResponse

func (*ClientWithResponses) DeleteHighlightsHighlightIdWithResponse

func (c *ClientWithResponses) DeleteHighlightsHighlightIdWithResponse(ctx context.Context, highlightId HighlightId, reqEditors ...RequestEditorFn) (*DeleteHighlightsHighlightIdResponse, error)

DeleteHighlightsHighlightIdWithResponse request returning *DeleteHighlightsHighlightIdResponse

func (*ClientWithResponses) DeleteListsListIdBookmarksBookmarkIdWithResponse

func (c *ClientWithResponses) DeleteListsListIdBookmarksBookmarkIdWithResponse(ctx context.Context, listId ListId, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*DeleteListsListIdBookmarksBookmarkIdResponse, error)

DeleteListsListIdBookmarksBookmarkIdWithResponse request returning *DeleteListsListIdBookmarksBookmarkIdResponse

func (*ClientWithResponses) DeleteListsListIdWithResponse

func (c *ClientWithResponses) DeleteListsListIdWithResponse(ctx context.Context, listId ListId, reqEditors ...RequestEditorFn) (*DeleteListsListIdResponse, error)

DeleteListsListIdWithResponse request returning *DeleteListsListIdResponse

func (*ClientWithResponses) DeleteTagsTagIdWithResponse

func (c *ClientWithResponses) DeleteTagsTagIdWithResponse(ctx context.Context, tagId TagId, reqEditors ...RequestEditorFn) (*DeleteTagsTagIdResponse, error)

DeleteTagsTagIdWithResponse request returning *DeleteTagsTagIdResponse

func (*ClientWithResponses) GetAssetsAssetIdWithResponse added in v0.25.0

func (c *ClientWithResponses) GetAssetsAssetIdWithResponse(ctx context.Context, assetId AssetId, reqEditors ...RequestEditorFn) (*GetAssetsAssetIdResponse, error)

GetAssetsAssetIdWithResponse request returning *GetAssetsAssetIdResponse

func (*ClientWithResponses) GetBackupsBackupIdDownloadWithResponse added in v0.29.0

func (c *ClientWithResponses) GetBackupsBackupIdDownloadWithResponse(ctx context.Context, backupId BackupId, reqEditors ...RequestEditorFn) (*GetBackupsBackupIdDownloadResponse, error)

GetBackupsBackupIdDownloadWithResponse request returning *GetBackupsBackupIdDownloadResponse

func (*ClientWithResponses) GetBackupsBackupIdWithResponse added in v0.29.0

func (c *ClientWithResponses) GetBackupsBackupIdWithResponse(ctx context.Context, backupId BackupId, reqEditors ...RequestEditorFn) (*GetBackupsBackupIdResponse, error)

GetBackupsBackupIdWithResponse request returning *GetBackupsBackupIdResponse

func (*ClientWithResponses) GetBackupsWithResponse added in v0.29.0

func (c *ClientWithResponses) GetBackupsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBackupsResponse, error)

GetBackupsWithResponse request returning *GetBackupsResponse

func (*ClientWithResponses) GetBookmarksBookmarkIdHighlightsWithResponse

func (c *ClientWithResponses) GetBookmarksBookmarkIdHighlightsWithResponse(ctx context.Context, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*GetBookmarksBookmarkIdHighlightsResponse, error)

GetBookmarksBookmarkIdHighlightsWithResponse request returning *GetBookmarksBookmarkIdHighlightsResponse

func (*ClientWithResponses) GetBookmarksBookmarkIdListsWithResponse added in v0.28.0

func (c *ClientWithResponses) GetBookmarksBookmarkIdListsWithResponse(ctx context.Context, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*GetBookmarksBookmarkIdListsResponse, error)

GetBookmarksBookmarkIdListsWithResponse request returning *GetBookmarksBookmarkIdListsResponse

func (*ClientWithResponses) GetBookmarksBookmarkIdWithResponse

func (c *ClientWithResponses) GetBookmarksBookmarkIdWithResponse(ctx context.Context, bookmarkId BookmarkId, params *GetBookmarksBookmarkIdParams, reqEditors ...RequestEditorFn) (*GetBookmarksBookmarkIdResponse, error)

GetBookmarksBookmarkIdWithResponse request returning *GetBookmarksBookmarkIdResponse

func (*ClientWithResponses) GetBookmarksCheckUrlWithResponse added in v0.31.0

func (c *ClientWithResponses) GetBookmarksCheckUrlWithResponse(ctx context.Context, params *GetBookmarksCheckUrlParams, reqEditors ...RequestEditorFn) (*GetBookmarksCheckUrlResponse, error)

GetBookmarksCheckUrlWithResponse request returning *GetBookmarksCheckUrlResponse

func (*ClientWithResponses) GetBookmarksSearchWithResponse

func (c *ClientWithResponses) GetBookmarksSearchWithResponse(ctx context.Context, params *GetBookmarksSearchParams, reqEditors ...RequestEditorFn) (*GetBookmarksSearchResponse, error)

GetBookmarksSearchWithResponse request returning *GetBookmarksSearchResponse

func (*ClientWithResponses) GetBookmarksWithResponse

func (c *ClientWithResponses) GetBookmarksWithResponse(ctx context.Context, params *GetBookmarksParams, reqEditors ...RequestEditorFn) (*GetBookmarksResponse, error)

GetBookmarksWithResponse request returning *GetBookmarksResponse

func (*ClientWithResponses) GetHighlightsHighlightIdWithResponse

func (c *ClientWithResponses) GetHighlightsHighlightIdWithResponse(ctx context.Context, highlightId HighlightId, reqEditors ...RequestEditorFn) (*GetHighlightsHighlightIdResponse, error)

GetHighlightsHighlightIdWithResponse request returning *GetHighlightsHighlightIdResponse

func (*ClientWithResponses) GetHighlightsWithResponse

func (c *ClientWithResponses) GetHighlightsWithResponse(ctx context.Context, params *GetHighlightsParams, reqEditors ...RequestEditorFn) (*GetHighlightsResponse, error)

GetHighlightsWithResponse request returning *GetHighlightsResponse

func (*ClientWithResponses) GetListsListIdBookmarksWithResponse

func (c *ClientWithResponses) GetListsListIdBookmarksWithResponse(ctx context.Context, listId ListId, params *GetListsListIdBookmarksParams, reqEditors ...RequestEditorFn) (*GetListsListIdBookmarksResponse, error)

GetListsListIdBookmarksWithResponse request returning *GetListsListIdBookmarksResponse

func (*ClientWithResponses) GetListsListIdWithResponse

func (c *ClientWithResponses) GetListsListIdWithResponse(ctx context.Context, listId ListId, reqEditors ...RequestEditorFn) (*GetListsListIdResponse, error)

GetListsListIdWithResponse request returning *GetListsListIdResponse

func (*ClientWithResponses) GetListsWithResponse

func (c *ClientWithResponses) GetListsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetListsResponse, error)

GetListsWithResponse request returning *GetListsResponse

func (*ClientWithResponses) GetTagsTagIdBookmarksWithResponse

func (c *ClientWithResponses) GetTagsTagIdBookmarksWithResponse(ctx context.Context, tagId TagId, params *GetTagsTagIdBookmarksParams, reqEditors ...RequestEditorFn) (*GetTagsTagIdBookmarksResponse, error)

GetTagsTagIdBookmarksWithResponse request returning *GetTagsTagIdBookmarksResponse

func (*ClientWithResponses) GetTagsTagIdWithResponse

func (c *ClientWithResponses) GetTagsTagIdWithResponse(ctx context.Context, tagId TagId, reqEditors ...RequestEditorFn) (*GetTagsTagIdResponse, error)

GetTagsTagIdWithResponse request returning *GetTagsTagIdResponse

func (*ClientWithResponses) GetTagsWithResponse

func (c *ClientWithResponses) GetTagsWithResponse(ctx context.Context, params *GetTagsParams, reqEditors ...RequestEditorFn) (*GetTagsResponse, error)

GetTagsWithResponse request returning *GetTagsResponse

func (*ClientWithResponses) GetUsersMeStatsWithResponse

func (c *ClientWithResponses) GetUsersMeStatsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUsersMeStatsResponse, error)

GetUsersMeStatsWithResponse request returning *GetUsersMeStatsResponse

func (*ClientWithResponses) GetUsersMeWithResponse

func (c *ClientWithResponses) GetUsersMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUsersMeResponse, error)

GetUsersMeWithResponse request returning *GetUsersMeResponse

func (*ClientWithResponses) PatchBookmarksBookmarkIdWithBodyWithResponse

func (c *ClientWithResponses) PatchBookmarksBookmarkIdWithBodyWithResponse(ctx context.Context, bookmarkId BookmarkId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchBookmarksBookmarkIdResponse, error)

PatchBookmarksBookmarkIdWithBodyWithResponse request with arbitrary body returning *PatchBookmarksBookmarkIdResponse

func (*ClientWithResponses) PatchBookmarksBookmarkIdWithResponse

func (c *ClientWithResponses) PatchBookmarksBookmarkIdWithResponse(ctx context.Context, bookmarkId BookmarkId, body PatchBookmarksBookmarkIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchBookmarksBookmarkIdResponse, error)

func (*ClientWithResponses) PatchHighlightsHighlightIdWithBodyWithResponse

func (c *ClientWithResponses) PatchHighlightsHighlightIdWithBodyWithResponse(ctx context.Context, highlightId HighlightId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchHighlightsHighlightIdResponse, error)

PatchHighlightsHighlightIdWithBodyWithResponse request with arbitrary body returning *PatchHighlightsHighlightIdResponse

func (*ClientWithResponses) PatchHighlightsHighlightIdWithResponse

func (c *ClientWithResponses) PatchHighlightsHighlightIdWithResponse(ctx context.Context, highlightId HighlightId, body PatchHighlightsHighlightIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchHighlightsHighlightIdResponse, error)

func (*ClientWithResponses) PatchListsListIdWithBodyWithResponse

func (c *ClientWithResponses) PatchListsListIdWithBodyWithResponse(ctx context.Context, listId ListId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchListsListIdResponse, error)

PatchListsListIdWithBodyWithResponse request with arbitrary body returning *PatchListsListIdResponse

func (*ClientWithResponses) PatchListsListIdWithResponse

func (c *ClientWithResponses) PatchListsListIdWithResponse(ctx context.Context, listId ListId, body PatchListsListIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchListsListIdResponse, error)

func (*ClientWithResponses) PatchTagsTagIdWithBodyWithResponse

func (c *ClientWithResponses) PatchTagsTagIdWithBodyWithResponse(ctx context.Context, tagId TagId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchTagsTagIdResponse, error)

PatchTagsTagIdWithBodyWithResponse request with arbitrary body returning *PatchTagsTagIdResponse

func (*ClientWithResponses) PatchTagsTagIdWithResponse

func (c *ClientWithResponses) PatchTagsTagIdWithResponse(ctx context.Context, tagId TagId, body PatchTagsTagIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchTagsTagIdResponse, error)

func (*ClientWithResponses) PostAssetsWithBodyWithResponse added in v0.25.0

func (c *ClientWithResponses) PostAssetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAssetsResponse, error)

PostAssetsWithBodyWithResponse request with arbitrary body returning *PostAssetsResponse

func (*ClientWithResponses) PostBackupsWithResponse added in v0.29.0

func (c *ClientWithResponses) PostBackupsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostBackupsResponse, error)

PostBackupsWithResponse request returning *PostBackupsResponse

func (*ClientWithResponses) PostBookmarksBookmarkIdAssetsWithBodyWithResponse

func (c *ClientWithResponses) PostBookmarksBookmarkIdAssetsWithBodyWithResponse(ctx context.Context, bookmarkId BookmarkId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostBookmarksBookmarkIdAssetsResponse, error)

PostBookmarksBookmarkIdAssetsWithBodyWithResponse request with arbitrary body returning *PostBookmarksBookmarkIdAssetsResponse

func (*ClientWithResponses) PostBookmarksBookmarkIdAssetsWithResponse

func (c *ClientWithResponses) PostBookmarksBookmarkIdAssetsWithResponse(ctx context.Context, bookmarkId BookmarkId, body PostBookmarksBookmarkIdAssetsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostBookmarksBookmarkIdAssetsResponse, error)

func (*ClientWithResponses) PostBookmarksBookmarkIdSummarizeWithResponse

func (c *ClientWithResponses) PostBookmarksBookmarkIdSummarizeWithResponse(ctx context.Context, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*PostBookmarksBookmarkIdSummarizeResponse, error)

PostBookmarksBookmarkIdSummarizeWithResponse request returning *PostBookmarksBookmarkIdSummarizeResponse

func (*ClientWithResponses) PostBookmarksBookmarkIdTagsWithBodyWithResponse

func (c *ClientWithResponses) PostBookmarksBookmarkIdTagsWithBodyWithResponse(ctx context.Context, bookmarkId BookmarkId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostBookmarksBookmarkIdTagsResponse, error)

PostBookmarksBookmarkIdTagsWithBodyWithResponse request with arbitrary body returning *PostBookmarksBookmarkIdTagsResponse

func (*ClientWithResponses) PostBookmarksBookmarkIdTagsWithResponse

func (c *ClientWithResponses) PostBookmarksBookmarkIdTagsWithResponse(ctx context.Context, bookmarkId BookmarkId, body PostBookmarksBookmarkIdTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostBookmarksBookmarkIdTagsResponse, error)

func (*ClientWithResponses) PostBookmarksWithBodyWithResponse

func (c *ClientWithResponses) PostBookmarksWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostBookmarksResponse, error)

PostBookmarksWithBodyWithResponse request with arbitrary body returning *PostBookmarksResponse

func (*ClientWithResponses) PostBookmarksWithResponse

func (c *ClientWithResponses) PostBookmarksWithResponse(ctx context.Context, body PostBookmarksJSONRequestBody, reqEditors ...RequestEditorFn) (*PostBookmarksResponse, error)

func (*ClientWithResponses) PostHighlightsWithBodyWithResponse

func (c *ClientWithResponses) PostHighlightsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHighlightsResponse, error)

PostHighlightsWithBodyWithResponse request with arbitrary body returning *PostHighlightsResponse

func (*ClientWithResponses) PostHighlightsWithResponse

func (c *ClientWithResponses) PostHighlightsWithResponse(ctx context.Context, body PostHighlightsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostHighlightsResponse, error)

func (*ClientWithResponses) PostListsWithBodyWithResponse

func (c *ClientWithResponses) PostListsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostListsResponse, error)

PostListsWithBodyWithResponse request with arbitrary body returning *PostListsResponse

func (*ClientWithResponses) PostListsWithResponse

func (c *ClientWithResponses) PostListsWithResponse(ctx context.Context, body PostListsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostListsResponse, error)

func (*ClientWithResponses) PostTagsWithBodyWithResponse added in v0.25.0

func (c *ClientWithResponses) PostTagsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostTagsResponse, error)

PostTagsWithBodyWithResponse request with arbitrary body returning *PostTagsResponse

func (*ClientWithResponses) PostTagsWithResponse added in v0.25.0

func (c *ClientWithResponses) PostTagsWithResponse(ctx context.Context, body PostTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostTagsResponse, error)

func (*ClientWithResponses) PutAdminUsersUserIdWithBodyWithResponse added in v0.26.0

func (c *ClientWithResponses) PutAdminUsersUserIdWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutAdminUsersUserIdResponse, error)

PutAdminUsersUserIdWithBodyWithResponse request with arbitrary body returning *PutAdminUsersUserIdResponse

func (*ClientWithResponses) PutAdminUsersUserIdWithResponse added in v0.26.0

func (c *ClientWithResponses) PutAdminUsersUserIdWithResponse(ctx context.Context, userId string, body PutAdminUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutAdminUsersUserIdResponse, error)

func (*ClientWithResponses) PutBookmarksBookmarkIdAssetsAssetIdWithBodyWithResponse

func (c *ClientWithResponses) PutBookmarksBookmarkIdAssetsAssetIdWithBodyWithResponse(ctx context.Context, bookmarkId BookmarkId, assetId AssetId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutBookmarksBookmarkIdAssetsAssetIdResponse, error)

PutBookmarksBookmarkIdAssetsAssetIdWithBodyWithResponse request with arbitrary body returning *PutBookmarksBookmarkIdAssetsAssetIdResponse

func (*ClientWithResponses) PutBookmarksBookmarkIdAssetsAssetIdWithResponse

func (c *ClientWithResponses) PutBookmarksBookmarkIdAssetsAssetIdWithResponse(ctx context.Context, bookmarkId BookmarkId, assetId AssetId, body PutBookmarksBookmarkIdAssetsAssetIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutBookmarksBookmarkIdAssetsAssetIdResponse, error)

func (*ClientWithResponses) PutListsListIdBookmarksBookmarkIdWithResponse

func (c *ClientWithResponses) PutListsListIdBookmarksBookmarkIdWithResponse(ctx context.Context, listId ListId, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*PutListsListIdBookmarksBookmarkIdResponse, error)

PutListsListIdBookmarksBookmarkIdWithResponse request returning *PutListsListIdBookmarksBookmarkIdResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// PutAdminUsersUserIdWithBodyWithResponse request with any body
	PutAdminUsersUserIdWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutAdminUsersUserIdResponse, error)

	PutAdminUsersUserIdWithResponse(ctx context.Context, userId string, body PutAdminUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutAdminUsersUserIdResponse, error)

	// PostAssetsWithBodyWithResponse request with any body
	PostAssetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAssetsResponse, error)

	// GetAssetsAssetIdWithResponse request
	GetAssetsAssetIdWithResponse(ctx context.Context, assetId AssetId, reqEditors ...RequestEditorFn) (*GetAssetsAssetIdResponse, error)

	// GetBackupsWithResponse request
	GetBackupsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBackupsResponse, error)

	// PostBackupsWithResponse request
	PostBackupsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostBackupsResponse, error)

	// DeleteBackupsBackupIdWithResponse request
	DeleteBackupsBackupIdWithResponse(ctx context.Context, backupId BackupId, reqEditors ...RequestEditorFn) (*DeleteBackupsBackupIdResponse, error)

	// GetBackupsBackupIdWithResponse request
	GetBackupsBackupIdWithResponse(ctx context.Context, backupId BackupId, reqEditors ...RequestEditorFn) (*GetBackupsBackupIdResponse, error)

	// GetBackupsBackupIdDownloadWithResponse request
	GetBackupsBackupIdDownloadWithResponse(ctx context.Context, backupId BackupId, reqEditors ...RequestEditorFn) (*GetBackupsBackupIdDownloadResponse, error)

	// GetBookmarksWithResponse request
	GetBookmarksWithResponse(ctx context.Context, params *GetBookmarksParams, reqEditors ...RequestEditorFn) (*GetBookmarksResponse, error)

	// PostBookmarksWithBodyWithResponse request with any body
	PostBookmarksWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostBookmarksResponse, error)

	PostBookmarksWithResponse(ctx context.Context, body PostBookmarksJSONRequestBody, reqEditors ...RequestEditorFn) (*PostBookmarksResponse, error)

	// GetBookmarksCheckUrlWithResponse request
	GetBookmarksCheckUrlWithResponse(ctx context.Context, params *GetBookmarksCheckUrlParams, reqEditors ...RequestEditorFn) (*GetBookmarksCheckUrlResponse, error)

	// GetBookmarksSearchWithResponse request
	GetBookmarksSearchWithResponse(ctx context.Context, params *GetBookmarksSearchParams, reqEditors ...RequestEditorFn) (*GetBookmarksSearchResponse, error)

	// DeleteBookmarksBookmarkIdWithResponse request
	DeleteBookmarksBookmarkIdWithResponse(ctx context.Context, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*DeleteBookmarksBookmarkIdResponse, error)

	// GetBookmarksBookmarkIdWithResponse request
	GetBookmarksBookmarkIdWithResponse(ctx context.Context, bookmarkId BookmarkId, params *GetBookmarksBookmarkIdParams, reqEditors ...RequestEditorFn) (*GetBookmarksBookmarkIdResponse, error)

	// PatchBookmarksBookmarkIdWithBodyWithResponse request with any body
	PatchBookmarksBookmarkIdWithBodyWithResponse(ctx context.Context, bookmarkId BookmarkId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchBookmarksBookmarkIdResponse, error)

	PatchBookmarksBookmarkIdWithResponse(ctx context.Context, bookmarkId BookmarkId, body PatchBookmarksBookmarkIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchBookmarksBookmarkIdResponse, error)

	// PostBookmarksBookmarkIdAssetsWithBodyWithResponse request with any body
	PostBookmarksBookmarkIdAssetsWithBodyWithResponse(ctx context.Context, bookmarkId BookmarkId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostBookmarksBookmarkIdAssetsResponse, error)

	PostBookmarksBookmarkIdAssetsWithResponse(ctx context.Context, bookmarkId BookmarkId, body PostBookmarksBookmarkIdAssetsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostBookmarksBookmarkIdAssetsResponse, error)

	// DeleteBookmarksBookmarkIdAssetsAssetIdWithResponse request
	DeleteBookmarksBookmarkIdAssetsAssetIdWithResponse(ctx context.Context, bookmarkId BookmarkId, assetId AssetId, reqEditors ...RequestEditorFn) (*DeleteBookmarksBookmarkIdAssetsAssetIdResponse, error)

	// PutBookmarksBookmarkIdAssetsAssetIdWithBodyWithResponse request with any body
	PutBookmarksBookmarkIdAssetsAssetIdWithBodyWithResponse(ctx context.Context, bookmarkId BookmarkId, assetId AssetId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutBookmarksBookmarkIdAssetsAssetIdResponse, error)

	PutBookmarksBookmarkIdAssetsAssetIdWithResponse(ctx context.Context, bookmarkId BookmarkId, assetId AssetId, body PutBookmarksBookmarkIdAssetsAssetIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutBookmarksBookmarkIdAssetsAssetIdResponse, error)

	// GetBookmarksBookmarkIdHighlightsWithResponse request
	GetBookmarksBookmarkIdHighlightsWithResponse(ctx context.Context, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*GetBookmarksBookmarkIdHighlightsResponse, error)

	// GetBookmarksBookmarkIdListsWithResponse request
	GetBookmarksBookmarkIdListsWithResponse(ctx context.Context, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*GetBookmarksBookmarkIdListsResponse, error)

	// PostBookmarksBookmarkIdSummarizeWithResponse request
	PostBookmarksBookmarkIdSummarizeWithResponse(ctx context.Context, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*PostBookmarksBookmarkIdSummarizeResponse, error)

	// DeleteBookmarksBookmarkIdTagsWithBodyWithResponse request with any body
	DeleteBookmarksBookmarkIdTagsWithBodyWithResponse(ctx context.Context, bookmarkId BookmarkId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteBookmarksBookmarkIdTagsResponse, error)

	DeleteBookmarksBookmarkIdTagsWithResponse(ctx context.Context, bookmarkId BookmarkId, body DeleteBookmarksBookmarkIdTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteBookmarksBookmarkIdTagsResponse, error)

	// PostBookmarksBookmarkIdTagsWithBodyWithResponse request with any body
	PostBookmarksBookmarkIdTagsWithBodyWithResponse(ctx context.Context, bookmarkId BookmarkId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostBookmarksBookmarkIdTagsResponse, error)

	PostBookmarksBookmarkIdTagsWithResponse(ctx context.Context, bookmarkId BookmarkId, body PostBookmarksBookmarkIdTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostBookmarksBookmarkIdTagsResponse, error)

	// GetHighlightsWithResponse request
	GetHighlightsWithResponse(ctx context.Context, params *GetHighlightsParams, reqEditors ...RequestEditorFn) (*GetHighlightsResponse, error)

	// PostHighlightsWithBodyWithResponse request with any body
	PostHighlightsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHighlightsResponse, error)

	PostHighlightsWithResponse(ctx context.Context, body PostHighlightsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostHighlightsResponse, error)

	// DeleteHighlightsHighlightIdWithResponse request
	DeleteHighlightsHighlightIdWithResponse(ctx context.Context, highlightId HighlightId, reqEditors ...RequestEditorFn) (*DeleteHighlightsHighlightIdResponse, error)

	// GetHighlightsHighlightIdWithResponse request
	GetHighlightsHighlightIdWithResponse(ctx context.Context, highlightId HighlightId, reqEditors ...RequestEditorFn) (*GetHighlightsHighlightIdResponse, error)

	// PatchHighlightsHighlightIdWithBodyWithResponse request with any body
	PatchHighlightsHighlightIdWithBodyWithResponse(ctx context.Context, highlightId HighlightId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchHighlightsHighlightIdResponse, error)

	PatchHighlightsHighlightIdWithResponse(ctx context.Context, highlightId HighlightId, body PatchHighlightsHighlightIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchHighlightsHighlightIdResponse, error)

	// GetListsWithResponse request
	GetListsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetListsResponse, error)

	// PostListsWithBodyWithResponse request with any body
	PostListsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostListsResponse, error)

	PostListsWithResponse(ctx context.Context, body PostListsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostListsResponse, error)

	// DeleteListsListIdWithResponse request
	DeleteListsListIdWithResponse(ctx context.Context, listId ListId, reqEditors ...RequestEditorFn) (*DeleteListsListIdResponse, error)

	// GetListsListIdWithResponse request
	GetListsListIdWithResponse(ctx context.Context, listId ListId, reqEditors ...RequestEditorFn) (*GetListsListIdResponse, error)

	// PatchListsListIdWithBodyWithResponse request with any body
	PatchListsListIdWithBodyWithResponse(ctx context.Context, listId ListId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchListsListIdResponse, error)

	PatchListsListIdWithResponse(ctx context.Context, listId ListId, body PatchListsListIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchListsListIdResponse, error)

	// GetListsListIdBookmarksWithResponse request
	GetListsListIdBookmarksWithResponse(ctx context.Context, listId ListId, params *GetListsListIdBookmarksParams, reqEditors ...RequestEditorFn) (*GetListsListIdBookmarksResponse, error)

	// DeleteListsListIdBookmarksBookmarkIdWithResponse request
	DeleteListsListIdBookmarksBookmarkIdWithResponse(ctx context.Context, listId ListId, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*DeleteListsListIdBookmarksBookmarkIdResponse, error)

	// PutListsListIdBookmarksBookmarkIdWithResponse request
	PutListsListIdBookmarksBookmarkIdWithResponse(ctx context.Context, listId ListId, bookmarkId BookmarkId, reqEditors ...RequestEditorFn) (*PutListsListIdBookmarksBookmarkIdResponse, error)

	// GetTagsWithResponse request
	GetTagsWithResponse(ctx context.Context, params *GetTagsParams, reqEditors ...RequestEditorFn) (*GetTagsResponse, error)

	// PostTagsWithBodyWithResponse request with any body
	PostTagsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostTagsResponse, error)

	PostTagsWithResponse(ctx context.Context, body PostTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostTagsResponse, error)

	// DeleteTagsTagIdWithResponse request
	DeleteTagsTagIdWithResponse(ctx context.Context, tagId TagId, reqEditors ...RequestEditorFn) (*DeleteTagsTagIdResponse, error)

	// GetTagsTagIdWithResponse request
	GetTagsTagIdWithResponse(ctx context.Context, tagId TagId, reqEditors ...RequestEditorFn) (*GetTagsTagIdResponse, error)

	// PatchTagsTagIdWithBodyWithResponse request with any body
	PatchTagsTagIdWithBodyWithResponse(ctx context.Context, tagId TagId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchTagsTagIdResponse, error)

	PatchTagsTagIdWithResponse(ctx context.Context, tagId TagId, body PatchTagsTagIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchTagsTagIdResponse, error)

	// GetTagsTagIdBookmarksWithResponse request
	GetTagsTagIdBookmarksWithResponse(ctx context.Context, tagId TagId, params *GetTagsTagIdBookmarksParams, reqEditors ...RequestEditorFn) (*GetTagsTagIdBookmarksResponse, error)

	// GetUsersMeWithResponse request
	GetUsersMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUsersMeResponse, error)

	// GetUsersMeStatsWithResponse request
	GetUsersMeStatsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUsersMeStatsResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type Cursor

type Cursor = string

Cursor defines model for Cursor.

type DeleteBackupsBackupIdResponse added in v0.29.0

type DeleteBackupsBackupIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParseDeleteBackupsBackupIdResponse added in v0.29.0

func ParseDeleteBackupsBackupIdResponse(rsp *http.Response) (*DeleteBackupsBackupIdResponse, error)

ParseDeleteBackupsBackupIdResponse parses an HTTP response from a DeleteBackupsBackupIdWithResponse call

func (DeleteBackupsBackupIdResponse) Status added in v0.29.0

Status returns HTTPResponse.Status

func (DeleteBackupsBackupIdResponse) StatusCode added in v0.29.0

func (r DeleteBackupsBackupIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteBookmarksBookmarkIdAssetsAssetIdResponse

type DeleteBookmarksBookmarkIdAssetsAssetIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParseDeleteBookmarksBookmarkIdAssetsAssetIdResponse

func ParseDeleteBookmarksBookmarkIdAssetsAssetIdResponse(rsp *http.Response) (*DeleteBookmarksBookmarkIdAssetsAssetIdResponse, error)

ParseDeleteBookmarksBookmarkIdAssetsAssetIdResponse parses an HTTP response from a DeleteBookmarksBookmarkIdAssetsAssetIdWithResponse call

func (DeleteBookmarksBookmarkIdAssetsAssetIdResponse) Status

Status returns HTTPResponse.Status

func (DeleteBookmarksBookmarkIdAssetsAssetIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteBookmarksBookmarkIdResponse

type DeleteBookmarksBookmarkIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParseDeleteBookmarksBookmarkIdResponse

func ParseDeleteBookmarksBookmarkIdResponse(rsp *http.Response) (*DeleteBookmarksBookmarkIdResponse, error)

ParseDeleteBookmarksBookmarkIdResponse parses an HTTP response from a DeleteBookmarksBookmarkIdWithResponse call

func (DeleteBookmarksBookmarkIdResponse) Status

Status returns HTTPResponse.Status

func (DeleteBookmarksBookmarkIdResponse) StatusCode

func (r DeleteBookmarksBookmarkIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteBookmarksBookmarkIdTagsJSONBody

type DeleteBookmarksBookmarkIdTagsJSONBody struct {
	Tags []struct {
		AttachedBy *DeleteBookmarksBookmarkIdTagsJSONBodyTagsAttachedBy `json:"attachedBy,omitempty"`
		TagId      *string                                              `json:"tagId,omitempty"`
		TagName    *string                                              `json:"tagName,omitempty"`
	} `json:"tags"`
}

DeleteBookmarksBookmarkIdTagsJSONBody defines parameters for DeleteBookmarksBookmarkIdTags.

type DeleteBookmarksBookmarkIdTagsJSONBodyTagsAttachedBy added in v0.31.0

type DeleteBookmarksBookmarkIdTagsJSONBodyTagsAttachedBy string

DeleteBookmarksBookmarkIdTagsJSONBodyTagsAttachedBy defines parameters for DeleteBookmarksBookmarkIdTags.

const (
	DeleteBookmarksBookmarkIdTagsJSONBodyTagsAttachedByAi    DeleteBookmarksBookmarkIdTagsJSONBodyTagsAttachedBy = "ai"
	DeleteBookmarksBookmarkIdTagsJSONBodyTagsAttachedByHuman DeleteBookmarksBookmarkIdTagsJSONBodyTagsAttachedBy = "human"
)

Defines values for DeleteBookmarksBookmarkIdTagsJSONBodyTagsAttachedBy.

type DeleteBookmarksBookmarkIdTagsJSONRequestBody

type DeleteBookmarksBookmarkIdTagsJSONRequestBody DeleteBookmarksBookmarkIdTagsJSONBody

DeleteBookmarksBookmarkIdTagsJSONRequestBody defines body for DeleteBookmarksBookmarkIdTags for application/json ContentType.

type DeleteBookmarksBookmarkIdTagsResponse

type DeleteBookmarksBookmarkIdTagsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Detached []TagId `json:"detached"`
	}
	JSON404 *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParseDeleteBookmarksBookmarkIdTagsResponse

func ParseDeleteBookmarksBookmarkIdTagsResponse(rsp *http.Response) (*DeleteBookmarksBookmarkIdTagsResponse, error)

ParseDeleteBookmarksBookmarkIdTagsResponse parses an HTTP response from a DeleteBookmarksBookmarkIdTagsWithResponse call

func (DeleteBookmarksBookmarkIdTagsResponse) Status

Status returns HTTPResponse.Status

func (DeleteBookmarksBookmarkIdTagsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteHighlightsHighlightIdResponse

type DeleteHighlightsHighlightIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Highlight
	JSON404      *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParseDeleteHighlightsHighlightIdResponse

func ParseDeleteHighlightsHighlightIdResponse(rsp *http.Response) (*DeleteHighlightsHighlightIdResponse, error)

ParseDeleteHighlightsHighlightIdResponse parses an HTTP response from a DeleteHighlightsHighlightIdWithResponse call

func (DeleteHighlightsHighlightIdResponse) Status

Status returns HTTPResponse.Status

func (DeleteHighlightsHighlightIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteListsListIdBookmarksBookmarkIdResponse

type DeleteListsListIdBookmarksBookmarkIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
	JSON404 *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParseDeleteListsListIdBookmarksBookmarkIdResponse

func ParseDeleteListsListIdBookmarksBookmarkIdResponse(rsp *http.Response) (*DeleteListsListIdBookmarksBookmarkIdResponse, error)

ParseDeleteListsListIdBookmarksBookmarkIdResponse parses an HTTP response from a DeleteListsListIdBookmarksBookmarkIdWithResponse call

func (DeleteListsListIdBookmarksBookmarkIdResponse) Status

Status returns HTTPResponse.Status

func (DeleteListsListIdBookmarksBookmarkIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteListsListIdResponse

type DeleteListsListIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParseDeleteListsListIdResponse

func ParseDeleteListsListIdResponse(rsp *http.Response) (*DeleteListsListIdResponse, error)

ParseDeleteListsListIdResponse parses an HTTP response from a DeleteListsListIdWithResponse call

func (DeleteListsListIdResponse) Status

func (r DeleteListsListIdResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteListsListIdResponse) StatusCode

func (r DeleteListsListIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteTagsTagIdResponse

type DeleteTagsTagIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParseDeleteTagsTagIdResponse

func ParseDeleteTagsTagIdResponse(rsp *http.Response) (*DeleteTagsTagIdResponse, error)

ParseDeleteTagsTagIdResponse parses an HTTP response from a DeleteTagsTagIdWithResponse call

func (DeleteTagsTagIdResponse) Status

func (r DeleteTagsTagIdResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteTagsTagIdResponse) StatusCode

func (r DeleteTagsTagIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FileToBeUploaded added in v0.25.0

type FileToBeUploaded = interface{}

FileToBeUploaded defines model for File to be uploaded.

type GetAssetsAssetIdResponse added in v0.25.0

type GetAssetsAssetIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetAssetsAssetIdResponse added in v0.25.0

func ParseGetAssetsAssetIdResponse(rsp *http.Response) (*GetAssetsAssetIdResponse, error)

ParseGetAssetsAssetIdResponse parses an HTTP response from a GetAssetsAssetIdWithResponse call

func (GetAssetsAssetIdResponse) Status added in v0.25.0

func (r GetAssetsAssetIdResponse) Status() string

Status returns HTTPResponse.Status

func (GetAssetsAssetIdResponse) StatusCode added in v0.25.0

func (r GetAssetsAssetIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBackups200BackupsStatus added in v0.29.0

type GetBackups200BackupsStatus string

type GetBackupsBackupId200Status added in v0.29.0

type GetBackupsBackupId200Status string

type GetBackupsBackupIdDownloadResponse added in v0.29.0

type GetBackupsBackupIdDownloadResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParseGetBackupsBackupIdDownloadResponse added in v0.29.0

func ParseGetBackupsBackupIdDownloadResponse(rsp *http.Response) (*GetBackupsBackupIdDownloadResponse, error)

ParseGetBackupsBackupIdDownloadResponse parses an HTTP response from a GetBackupsBackupIdDownloadWithResponse call

func (GetBackupsBackupIdDownloadResponse) Status added in v0.29.0

Status returns HTTPResponse.Status

func (GetBackupsBackupIdDownloadResponse) StatusCode added in v0.29.0

func (r GetBackupsBackupIdDownloadResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBackupsBackupIdResponse added in v0.29.0

type GetBackupsBackupIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		AssetId       *string                     `json:"assetId"`
		BookmarkCount float32                     `json:"bookmarkCount"`
		CreatedAt     string                      `json:"createdAt"`
		ErrorMessage  *string                     `json:"errorMessage"`
		Id            string                      `json:"id"`
		Size          float32                     `json:"size"`
		Status        GetBackupsBackupId200Status `json:"status"`
		UserId        string                      `json:"userId"`
	}
	JSON404 *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParseGetBackupsBackupIdResponse added in v0.29.0

func ParseGetBackupsBackupIdResponse(rsp *http.Response) (*GetBackupsBackupIdResponse, error)

ParseGetBackupsBackupIdResponse parses an HTTP response from a GetBackupsBackupIdWithResponse call

func (GetBackupsBackupIdResponse) Status added in v0.29.0

Status returns HTTPResponse.Status

func (GetBackupsBackupIdResponse) StatusCode added in v0.29.0

func (r GetBackupsBackupIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBackupsResponse added in v0.29.0

type GetBackupsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Backups []struct {
			AssetId       *string                    `json:"assetId"`
			BookmarkCount float32                    `json:"bookmarkCount"`
			CreatedAt     string                     `json:"createdAt"`
			ErrorMessage  *string                    `json:"errorMessage"`
			Id            string                     `json:"id"`
			Size          float32                    `json:"size"`
			Status        GetBackups200BackupsStatus `json:"status"`
			UserId        string                     `json:"userId"`
		} `json:"backups"`
	}
}

func ParseGetBackupsResponse added in v0.29.0

func ParseGetBackupsResponse(rsp *http.Response) (*GetBackupsResponse, error)

ParseGetBackupsResponse parses an HTTP response from a GetBackupsWithResponse call

func (GetBackupsResponse) Status added in v0.29.0

func (r GetBackupsResponse) Status() string

Status returns HTTPResponse.Status

func (GetBackupsResponse) StatusCode added in v0.29.0

func (r GetBackupsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBookmarksBookmarkIdHighlightsResponse

type GetBookmarksBookmarkIdHighlightsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Highlights []Highlight `json:"highlights"`
	}
	JSON404 *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParseGetBookmarksBookmarkIdHighlightsResponse

func ParseGetBookmarksBookmarkIdHighlightsResponse(rsp *http.Response) (*GetBookmarksBookmarkIdHighlightsResponse, error)

ParseGetBookmarksBookmarkIdHighlightsResponse parses an HTTP response from a GetBookmarksBookmarkIdHighlightsWithResponse call

func (GetBookmarksBookmarkIdHighlightsResponse) Status

Status returns HTTPResponse.Status

func (GetBookmarksBookmarkIdHighlightsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetBookmarksBookmarkIdListsResponse added in v0.28.0

type GetBookmarksBookmarkIdListsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Lists []List `json:"lists"`
	}
	JSON404 *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParseGetBookmarksBookmarkIdListsResponse added in v0.28.0

func ParseGetBookmarksBookmarkIdListsResponse(rsp *http.Response) (*GetBookmarksBookmarkIdListsResponse, error)

ParseGetBookmarksBookmarkIdListsResponse parses an HTTP response from a GetBookmarksBookmarkIdListsWithResponse call

func (GetBookmarksBookmarkIdListsResponse) Status added in v0.28.0

Status returns HTTPResponse.Status

func (GetBookmarksBookmarkIdListsResponse) StatusCode added in v0.28.0

StatusCode returns HTTPResponse.StatusCode

type GetBookmarksBookmarkIdParams added in v0.24.1

type GetBookmarksBookmarkIdParams struct {
	// IncludeContent If set to true, bookmark's content will be included in the response. Note, this content can be large for some bookmarks.
	IncludeContent *bool `form:"includeContent,omitempty" json:"includeContent,omitempty"`
}

GetBookmarksBookmarkIdParams defines parameters for GetBookmarksBookmarkId.

type GetBookmarksBookmarkIdResponse

type GetBookmarksBookmarkIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Bookmark
	JSON404      *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParseGetBookmarksBookmarkIdResponse

func ParseGetBookmarksBookmarkIdResponse(rsp *http.Response) (*GetBookmarksBookmarkIdResponse, error)

ParseGetBookmarksBookmarkIdResponse parses an HTTP response from a GetBookmarksBookmarkIdWithResponse call

func (GetBookmarksBookmarkIdResponse) Status

Status returns HTTPResponse.Status

func (GetBookmarksBookmarkIdResponse) StatusCode

func (r GetBookmarksBookmarkIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBookmarksCheckUrlParams added in v0.31.0

type GetBookmarksCheckUrlParams struct {
	Url string `form:"url" json:"url"`
}

GetBookmarksCheckUrlParams defines parameters for GetBookmarksCheckUrl.

type GetBookmarksCheckUrlResponse added in v0.31.0

type GetBookmarksCheckUrlResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		BookmarkId *string `json:"bookmarkId"`
	}
}

func ParseGetBookmarksCheckUrlResponse added in v0.31.0

func ParseGetBookmarksCheckUrlResponse(rsp *http.Response) (*GetBookmarksCheckUrlResponse, error)

ParseGetBookmarksCheckUrlResponse parses an HTTP response from a GetBookmarksCheckUrlWithResponse call

func (GetBookmarksCheckUrlResponse) Status added in v0.31.0

Status returns HTTPResponse.Status

func (GetBookmarksCheckUrlResponse) StatusCode added in v0.31.0

func (r GetBookmarksCheckUrlResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBookmarksParams

type GetBookmarksParams struct {
	Archived   *bool                        `form:"archived,omitempty" json:"archived,omitempty"`
	Favourited *bool                        `form:"favourited,omitempty" json:"favourited,omitempty"`
	SortOrder  *GetBookmarksParamsSortOrder `form:"sortOrder,omitempty" json:"sortOrder,omitempty"`
	Limit      *float32                     `form:"limit,omitempty" json:"limit,omitempty"`
	Cursor     *Cursor                      `form:"cursor,omitempty" json:"cursor,omitempty"`

	// IncludeContent If set to true, bookmark's content will be included in the response. Note, this content can be large for some bookmarks.
	IncludeContent *bool `form:"includeContent,omitempty" json:"includeContent,omitempty"`
}

GetBookmarksParams defines parameters for GetBookmarks.

type GetBookmarksParamsSortOrder added in v0.25.0

type GetBookmarksParamsSortOrder string

GetBookmarksParamsSortOrder defines parameters for GetBookmarks.

const (
	GetBookmarksParamsSortOrderAsc  GetBookmarksParamsSortOrder = "asc"
	GetBookmarksParamsSortOrderDesc GetBookmarksParamsSortOrder = "desc"
)

Defines values for GetBookmarksParamsSortOrder.

type GetBookmarksResponse

type GetBookmarksResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PaginatedBookmarks
}

func ParseGetBookmarksResponse

func ParseGetBookmarksResponse(rsp *http.Response) (*GetBookmarksResponse, error)

ParseGetBookmarksResponse parses an HTTP response from a GetBookmarksWithResponse call

func (GetBookmarksResponse) Status

func (r GetBookmarksResponse) Status() string

Status returns HTTPResponse.Status

func (GetBookmarksResponse) StatusCode

func (r GetBookmarksResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBookmarksSearchParams

type GetBookmarksSearchParams struct {
	Q         string                             `form:"q" json:"q"`
	SortOrder *GetBookmarksSearchParamsSortOrder `form:"sortOrder,omitempty" json:"sortOrder,omitempty"`
	Limit     *float32                           `form:"limit,omitempty" json:"limit,omitempty"`
	Cursor    *Cursor                            `form:"cursor,omitempty" json:"cursor,omitempty"`

	// IncludeContent If set to true, bookmark's content will be included in the response. Note, this content can be large for some bookmarks.
	IncludeContent *bool `form:"includeContent,omitempty" json:"includeContent,omitempty"`
}

GetBookmarksSearchParams defines parameters for GetBookmarksSearch.

type GetBookmarksSearchParamsSortOrder added in v0.25.0

type GetBookmarksSearchParamsSortOrder string

GetBookmarksSearchParamsSortOrder defines parameters for GetBookmarksSearch.

const (
	GetBookmarksSearchParamsSortOrderAsc       GetBookmarksSearchParamsSortOrder = "asc"
	GetBookmarksSearchParamsSortOrderDesc      GetBookmarksSearchParamsSortOrder = "desc"
	GetBookmarksSearchParamsSortOrderRelevance GetBookmarksSearchParamsSortOrder = "relevance"
)

Defines values for GetBookmarksSearchParamsSortOrder.

type GetBookmarksSearchResponse

type GetBookmarksSearchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PaginatedBookmarks
}

func ParseGetBookmarksSearchResponse

func ParseGetBookmarksSearchResponse(rsp *http.Response) (*GetBookmarksSearchResponse, error)

ParseGetBookmarksSearchResponse parses an HTTP response from a GetBookmarksSearchWithResponse call

func (GetBookmarksSearchResponse) Status

Status returns HTTPResponse.Status

func (GetBookmarksSearchResponse) StatusCode

func (r GetBookmarksSearchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHighlightsHighlightIdResponse

type GetHighlightsHighlightIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Highlight
	JSON404      *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParseGetHighlightsHighlightIdResponse

func ParseGetHighlightsHighlightIdResponse(rsp *http.Response) (*GetHighlightsHighlightIdResponse, error)

ParseGetHighlightsHighlightIdResponse parses an HTTP response from a GetHighlightsHighlightIdWithResponse call

func (GetHighlightsHighlightIdResponse) Status

Status returns HTTPResponse.Status

func (GetHighlightsHighlightIdResponse) StatusCode

func (r GetHighlightsHighlightIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHighlightsParams

type GetHighlightsParams struct {
	Limit  *float32 `form:"limit,omitempty" json:"limit,omitempty"`
	Cursor *Cursor  `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetHighlightsParams defines parameters for GetHighlights.

type GetHighlightsResponse

type GetHighlightsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PaginatedHighlights
}

func ParseGetHighlightsResponse

func ParseGetHighlightsResponse(rsp *http.Response) (*GetHighlightsResponse, error)

ParseGetHighlightsResponse parses an HTTP response from a GetHighlightsWithResponse call

func (GetHighlightsResponse) Status

func (r GetHighlightsResponse) Status() string

Status returns HTTPResponse.Status

func (GetHighlightsResponse) StatusCode

func (r GetHighlightsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetListsListIdBookmarksParams

type GetListsListIdBookmarksParams struct {
	SortOrder *GetListsListIdBookmarksParamsSortOrder `form:"sortOrder,omitempty" json:"sortOrder,omitempty"`
	Limit     *float32                                `form:"limit,omitempty" json:"limit,omitempty"`
	Cursor    *Cursor                                 `form:"cursor,omitempty" json:"cursor,omitempty"`

	// IncludeContent If set to true, bookmark's content will be included in the response. Note, this content can be large for some bookmarks.
	IncludeContent *bool `form:"includeContent,omitempty" json:"includeContent,omitempty"`
}

GetListsListIdBookmarksParams defines parameters for GetListsListIdBookmarks.

type GetListsListIdBookmarksParamsSortOrder added in v0.25.0

type GetListsListIdBookmarksParamsSortOrder string

GetListsListIdBookmarksParamsSortOrder defines parameters for GetListsListIdBookmarks.

const (
	GetListsListIdBookmarksParamsSortOrderAsc  GetListsListIdBookmarksParamsSortOrder = "asc"
	GetListsListIdBookmarksParamsSortOrderDesc GetListsListIdBookmarksParamsSortOrder = "desc"
)

Defines values for GetListsListIdBookmarksParamsSortOrder.

type GetListsListIdBookmarksResponse

type GetListsListIdBookmarksResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PaginatedBookmarks
	JSON404      *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParseGetListsListIdBookmarksResponse

func ParseGetListsListIdBookmarksResponse(rsp *http.Response) (*GetListsListIdBookmarksResponse, error)

ParseGetListsListIdBookmarksResponse parses an HTTP response from a GetListsListIdBookmarksWithResponse call

func (GetListsListIdBookmarksResponse) Status

Status returns HTTPResponse.Status

func (GetListsListIdBookmarksResponse) StatusCode

func (r GetListsListIdBookmarksResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetListsListIdResponse

type GetListsListIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *List
	JSON404      *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParseGetListsListIdResponse

func ParseGetListsListIdResponse(rsp *http.Response) (*GetListsListIdResponse, error)

ParseGetListsListIdResponse parses an HTTP response from a GetListsListIdWithResponse call

func (GetListsListIdResponse) Status

func (r GetListsListIdResponse) Status() string

Status returns HTTPResponse.Status

func (GetListsListIdResponse) StatusCode

func (r GetListsListIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetListsResponse

type GetListsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Lists []List `json:"lists"`
	}
}

func ParseGetListsResponse

func ParseGetListsResponse(rsp *http.Response) (*GetListsResponse, error)

ParseGetListsResponse parses an HTTP response from a GetListsWithResponse call

func (GetListsResponse) Status

func (r GetListsResponse) Status() string

Status returns HTTPResponse.Status

func (GetListsResponse) StatusCode

func (r GetListsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTagsParams added in v0.28.0

type GetTagsParams struct {
	NameContains *string                  `form:"nameContains,omitempty" json:"nameContains,omitempty"`
	Sort         *GetTagsParamsSort       `form:"sort,omitempty" json:"sort,omitempty"`
	AttachedBy   *GetTagsParamsAttachedBy `form:"attachedBy,omitempty" json:"attachedBy,omitempty"`
	Cursor       *string                  `form:"cursor,omitempty" json:"cursor,omitempty"`
	Limit        *float32                 `form:"limit,omitempty" json:"limit,omitempty"`
}

GetTagsParams defines parameters for GetTags.

type GetTagsParamsAttachedBy added in v0.28.0

type GetTagsParamsAttachedBy string

GetTagsParamsAttachedBy defines parameters for GetTags.

const (
	GetTagsParamsAttachedByAi    GetTagsParamsAttachedBy = "ai"
	GetTagsParamsAttachedByHuman GetTagsParamsAttachedBy = "human"
	GetTagsParamsAttachedByNone  GetTagsParamsAttachedBy = "none"
)

Defines values for GetTagsParamsAttachedBy.

type GetTagsParamsSort added in v0.28.0

type GetTagsParamsSort string

GetTagsParamsSort defines parameters for GetTags.

const (
	Name      GetTagsParamsSort = "name"
	Relevance GetTagsParamsSort = "relevance"
	Usage     GetTagsParamsSort = "usage"
)

Defines values for GetTagsParamsSort.

type GetTagsResponse

type GetTagsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		NextCursor *string `json:"nextCursor"`
		Tags       []Tag   `json:"tags"`
	}
}

func ParseGetTagsResponse

func ParseGetTagsResponse(rsp *http.Response) (*GetTagsResponse, error)

ParseGetTagsResponse parses an HTTP response from a GetTagsWithResponse call

func (GetTagsResponse) Status

func (r GetTagsResponse) Status() string

Status returns HTTPResponse.Status

func (GetTagsResponse) StatusCode

func (r GetTagsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTagsTagIdBookmarksParams

type GetTagsTagIdBookmarksParams struct {
	SortOrder *GetTagsTagIdBookmarksParamsSortOrder `form:"sortOrder,omitempty" json:"sortOrder,omitempty"`
	Limit     *float32                              `form:"limit,omitempty" json:"limit,omitempty"`
	Cursor    *Cursor                               `form:"cursor,omitempty" json:"cursor,omitempty"`

	// IncludeContent If set to true, bookmark's content will be included in the response. Note, this content can be large for some bookmarks.
	IncludeContent *bool `form:"includeContent,omitempty" json:"includeContent,omitempty"`
}

GetTagsTagIdBookmarksParams defines parameters for GetTagsTagIdBookmarks.

type GetTagsTagIdBookmarksParamsSortOrder added in v0.25.0

type GetTagsTagIdBookmarksParamsSortOrder string

GetTagsTagIdBookmarksParamsSortOrder defines parameters for GetTagsTagIdBookmarks.

const (
	GetTagsTagIdBookmarksParamsSortOrderAsc  GetTagsTagIdBookmarksParamsSortOrder = "asc"
	GetTagsTagIdBookmarksParamsSortOrderDesc GetTagsTagIdBookmarksParamsSortOrder = "desc"
)

Defines values for GetTagsTagIdBookmarksParamsSortOrder.

type GetTagsTagIdBookmarksResponse

type GetTagsTagIdBookmarksResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PaginatedBookmarks
	JSON404      *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParseGetTagsTagIdBookmarksResponse

func ParseGetTagsTagIdBookmarksResponse(rsp *http.Response) (*GetTagsTagIdBookmarksResponse, error)

ParseGetTagsTagIdBookmarksResponse parses an HTTP response from a GetTagsTagIdBookmarksWithResponse call

func (GetTagsTagIdBookmarksResponse) Status

Status returns HTTPResponse.Status

func (GetTagsTagIdBookmarksResponse) StatusCode

func (r GetTagsTagIdBookmarksResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTagsTagIdResponse

type GetTagsTagIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Tag
	JSON404      *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParseGetTagsTagIdResponse

func ParseGetTagsTagIdResponse(rsp *http.Response) (*GetTagsTagIdResponse, error)

ParseGetTagsTagIdResponse parses an HTTP response from a GetTagsTagIdWithResponse call

func (GetTagsTagIdResponse) Status

func (r GetTagsTagIdResponse) Status() string

Status returns HTTPResponse.Status

func (GetTagsTagIdResponse) StatusCode

func (r GetTagsTagIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUsersMeResponse

type GetUsersMeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Email     *string `json:"email"`
		Id        string  `json:"id"`
		Image     *string `json:"image"`
		LocalUser bool    `json:"localUser"`
		Name      *string `json:"name"`
	}
}

func ParseGetUsersMeResponse

func ParseGetUsersMeResponse(rsp *http.Response) (*GetUsersMeResponse, error)

ParseGetUsersMeResponse parses an HTTP response from a GetUsersMeWithResponse call

func (GetUsersMeResponse) Status

func (r GetUsersMeResponse) Status() string

Status returns HTTPResponse.Status

func (GetUsersMeResponse) StatusCode

func (r GetUsersMeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUsersMeStats200BookmarksBySourceSource added in v0.29.0

type GetUsersMeStats200BookmarksBySourceSource string

type GetUsersMeStatsResponse

type GetUsersMeStatsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		AssetsByType []struct {
			Count     float32 `json:"count"`
			TotalSize float32 `json:"totalSize"`
			Type      string  `json:"type"`
		} `json:"assetsByType"`
		BookmarkingActivity struct {
			ByDayOfWeek []struct {
				Count float32 `json:"count"`
				Day   float32 `json:"day"`
			} `json:"byDayOfWeek"`
			ByHour []struct {
				Count float32 `json:"count"`
				Hour  float32 `json:"hour"`
			} `json:"byHour"`
			ThisMonth float32 `json:"thisMonth"`
			ThisWeek  float32 `json:"thisWeek"`
			ThisYear  float32 `json:"thisYear"`
		} `json:"bookmarkingActivity"`
		BookmarksBySource []struct {
			Count  float32                                    `json:"count"`
			Source *GetUsersMeStats200BookmarksBySourceSource `json:"source"`
		} `json:"bookmarksBySource"`
		BookmarksByType struct {
			Asset float32 `json:"asset"`
			Link  float32 `json:"link"`
			Text  float32 `json:"text"`
		} `json:"bookmarksByType"`
		NumArchived   float32 `json:"numArchived"`
		NumBookmarks  float32 `json:"numBookmarks"`
		NumFavorites  float32 `json:"numFavorites"`
		NumHighlights float32 `json:"numHighlights"`
		NumLists      float32 `json:"numLists"`
		NumTags       float32 `json:"numTags"`
		TagUsage      []struct {
			Count float32 `json:"count"`
			Name  string  `json:"name"`
		} `json:"tagUsage"`
		TopDomains []struct {
			Count  float32 `json:"count"`
			Domain string  `json:"domain"`
		} `json:"topDomains"`
		TotalAssetSize float32 `json:"totalAssetSize"`
	}
}

func ParseGetUsersMeStatsResponse

func ParseGetUsersMeStatsResponse(rsp *http.Response) (*GetUsersMeStatsResponse, error)

ParseGetUsersMeStatsResponse parses an HTTP response from a GetUsersMeStatsWithResponse call

func (GetUsersMeStatsResponse) Status

func (r GetUsersMeStatsResponse) Status() string

Status returns HTTPResponse.Status

func (GetUsersMeStatsResponse) StatusCode

func (r GetUsersMeStatsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Highlight

type Highlight struct {
	BookmarkId  string          `json:"bookmarkId"`
	Color       *HighlightColor `json:"color,omitempty"`
	CreatedAt   string          `json:"createdAt"`
	EndOffset   float32         `json:"endOffset"`
	Id          string          `json:"id"`
	Note        *string         `json:"note"`
	StartOffset float32         `json:"startOffset"`
	Text        *string         `json:"text"`
	UserId      string          `json:"userId"`
}

Highlight defines model for Highlight.

type HighlightColor

type HighlightColor string

HighlightColor defines model for Highlight.Color.

const (
	HighlightColorBlue   HighlightColor = "blue"
	HighlightColorGreen  HighlightColor = "green"
	HighlightColorRed    HighlightColor = "red"
	HighlightColorYellow HighlightColor = "yellow"
)

Defines values for HighlightColor.

type HighlightId

type HighlightId = string

HighlightId defines model for HighlightId.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type List

type List struct {
	Description      *string      `json:"description"`
	HasCollaborators bool         `json:"hasCollaborators"`
	Icon             string       `json:"icon"`
	Id               string       `json:"id"`
	Name             string       `json:"name"`
	ParentId         *string      `json:"parentId"`
	Public           bool         `json:"public"`
	Query            *string      `json:"query"`
	Type             *ListType    `json:"type,omitempty"`
	UserRole         ListUserRole `json:"userRole"`
}

List defines model for List.

type ListId

type ListId = string

ListId defines model for ListId.

type ListType

type ListType string

ListType defines model for List.Type.

const (
	ListTypeManual ListType = "manual"
	ListTypeSmart  ListType = "smart"
)

Defines values for ListType.

type ListUserRole added in v0.29.0

type ListUserRole string

ListUserRole defines model for List.UserRole.

const (
	Editor ListUserRole = "editor"
	Owner  ListUserRole = "owner"
	Public ListUserRole = "public"
	Viewer ListUserRole = "viewer"
)

Defines values for ListUserRole.

type PaginatedBookmarks

type PaginatedBookmarks struct {
	Bookmarks  []Bookmark `json:"bookmarks"`
	NextCursor *string    `json:"nextCursor"`
}

PaginatedBookmarks defines model for PaginatedBookmarks.

type PaginatedHighlights

type PaginatedHighlights struct {
	Highlights []Highlight `json:"highlights"`
	NextCursor *string     `json:"nextCursor"`
}

PaginatedHighlights defines model for PaginatedHighlights.

type PatchBookmarksBookmarkId200Source added in v0.28.0

type PatchBookmarksBookmarkId200Source string

type PatchBookmarksBookmarkId200SummarizationStatus added in v0.25.0

type PatchBookmarksBookmarkId200SummarizationStatus string

type PatchBookmarksBookmarkId200TaggingStatus

type PatchBookmarksBookmarkId200TaggingStatus string

type PatchBookmarksBookmarkIdJSONBody

type PatchBookmarksBookmarkIdJSONBody struct {
	Archived      *bool   `json:"archived,omitempty"`
	AssetContent  *string `json:"assetContent"`
	Author        *string `json:"author"`
	CreatedAt     *string `json:"createdAt"`
	DateModified  *string `json:"dateModified"`
	DatePublished *string `json:"datePublished"`
	Description   *string `json:"description"`
	Favourited    *bool   `json:"favourited,omitempty"`
	Note          *string `json:"note,omitempty"`
	Publisher     *string `json:"publisher"`
	Summary       *string `json:"summary"`
	Text          *string `json:"text"`
	Title         *string `json:"title"`
	Url           *string `json:"url,omitempty"`
}

PatchBookmarksBookmarkIdJSONBody defines parameters for PatchBookmarksBookmarkId.

type PatchBookmarksBookmarkIdJSONRequestBody

type PatchBookmarksBookmarkIdJSONRequestBody PatchBookmarksBookmarkIdJSONBody

PatchBookmarksBookmarkIdJSONRequestBody defines body for PatchBookmarksBookmarkId for application/json ContentType.

type PatchBookmarksBookmarkIdResponse

type PatchBookmarksBookmarkIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Archived            bool                                            `json:"archived"`
		CreatedAt           string                                          `json:"createdAt"`
		Favourited          bool                                            `json:"favourited"`
		Id                  string                                          `json:"id"`
		ModifiedAt          *string                                         `json:"modifiedAt"`
		Note                *string                                         `json:"note"`
		Source              *PatchBookmarksBookmarkId200Source              `json:"source"`
		SummarizationStatus *PatchBookmarksBookmarkId200SummarizationStatus `json:"summarizationStatus"`
		Summary             *string                                         `json:"summary"`
		TaggingStatus       *PatchBookmarksBookmarkId200TaggingStatus       `json:"taggingStatus"`
		Title               *string                                         `json:"title"`
		UserId              string                                          `json:"userId"`
	}
	JSON404 *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParsePatchBookmarksBookmarkIdResponse

func ParsePatchBookmarksBookmarkIdResponse(rsp *http.Response) (*PatchBookmarksBookmarkIdResponse, error)

ParsePatchBookmarksBookmarkIdResponse parses an HTTP response from a PatchBookmarksBookmarkIdWithResponse call

func (PatchBookmarksBookmarkIdResponse) Status

Status returns HTTPResponse.Status

func (PatchBookmarksBookmarkIdResponse) StatusCode

func (r PatchBookmarksBookmarkIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PatchHighlightsHighlightIdJSONBody

type PatchHighlightsHighlightIdJSONBody struct {
	Color *PatchHighlightsHighlightIdJSONBodyColor `json:"color,omitempty"`
	Note  *string                                  `json:"note"`
}

PatchHighlightsHighlightIdJSONBody defines parameters for PatchHighlightsHighlightId.

type PatchHighlightsHighlightIdJSONBodyColor

type PatchHighlightsHighlightIdJSONBodyColor string

PatchHighlightsHighlightIdJSONBodyColor defines parameters for PatchHighlightsHighlightId.

Defines values for PatchHighlightsHighlightIdJSONBodyColor.

type PatchHighlightsHighlightIdJSONRequestBody

type PatchHighlightsHighlightIdJSONRequestBody PatchHighlightsHighlightIdJSONBody

PatchHighlightsHighlightIdJSONRequestBody defines body for PatchHighlightsHighlightId for application/json ContentType.

type PatchHighlightsHighlightIdResponse

type PatchHighlightsHighlightIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Highlight
	JSON404      *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParsePatchHighlightsHighlightIdResponse

func ParsePatchHighlightsHighlightIdResponse(rsp *http.Response) (*PatchHighlightsHighlightIdResponse, error)

ParsePatchHighlightsHighlightIdResponse parses an HTTP response from a PatchHighlightsHighlightIdWithResponse call

func (PatchHighlightsHighlightIdResponse) Status

Status returns HTTPResponse.Status

func (PatchHighlightsHighlightIdResponse) StatusCode

func (r PatchHighlightsHighlightIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PatchListsListIdJSONBody

type PatchListsListIdJSONBody struct {
	Description *string `json:"description"`
	Icon        *string `json:"icon,omitempty"`
	Name        *string `json:"name,omitempty"`
	ParentId    *string `json:"parentId"`
	Public      *bool   `json:"public,omitempty"`
	Query       *string `json:"query,omitempty"`
}

PatchListsListIdJSONBody defines parameters for PatchListsListId.

type PatchListsListIdJSONRequestBody

type PatchListsListIdJSONRequestBody PatchListsListIdJSONBody

PatchListsListIdJSONRequestBody defines body for PatchListsListId for application/json ContentType.

type PatchListsListIdResponse

type PatchListsListIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *List
	JSON404      *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParsePatchListsListIdResponse

func ParsePatchListsListIdResponse(rsp *http.Response) (*PatchListsListIdResponse, error)

ParsePatchListsListIdResponse parses an HTTP response from a PatchListsListIdWithResponse call

func (PatchListsListIdResponse) Status

func (r PatchListsListIdResponse) Status() string

Status returns HTTPResponse.Status

func (PatchListsListIdResponse) StatusCode

func (r PatchListsListIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PatchTagsTagIdJSONBody

type PatchTagsTagIdJSONBody struct {
	Name *string `json:"name,omitempty"`
}

PatchTagsTagIdJSONBody defines parameters for PatchTagsTagId.

type PatchTagsTagIdJSONRequestBody

type PatchTagsTagIdJSONRequestBody PatchTagsTagIdJSONBody

PatchTagsTagIdJSONRequestBody defines body for PatchTagsTagId for application/json ContentType.

type PatchTagsTagIdResponse

type PatchTagsTagIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Id   string `json:"id"`
		Name string `json:"name"`
	}
	JSON404 *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParsePatchTagsTagIdResponse

func ParsePatchTagsTagIdResponse(rsp *http.Response) (*PatchTagsTagIdResponse, error)

ParsePatchTagsTagIdResponse parses an HTTP response from a PatchTagsTagIdWithResponse call

func (PatchTagsTagIdResponse) Status

func (r PatchTagsTagIdResponse) Status() string

Status returns HTTPResponse.Status

func (PatchTagsTagIdResponse) StatusCode

func (r PatchTagsTagIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostAssetsMultipartBody added in v0.25.0

type PostAssetsMultipartBody struct {
	File FileToBeUploaded `json:"file"`
}

PostAssetsMultipartBody defines parameters for PostAssets.

type PostAssetsMultipartRequestBody added in v0.25.0

type PostAssetsMultipartRequestBody PostAssetsMultipartBody

PostAssetsMultipartRequestBody defines body for PostAssets for multipart/form-data ContentType.

type PostAssetsResponse added in v0.25.0

type PostAssetsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Asset
}

func ParsePostAssetsResponse added in v0.25.0

func ParsePostAssetsResponse(rsp *http.Response) (*PostAssetsResponse, error)

ParsePostAssetsResponse parses an HTTP response from a PostAssetsWithResponse call

func (PostAssetsResponse) Status added in v0.25.0

func (r PostAssetsResponse) Status() string

Status returns HTTPResponse.Status

func (PostAssetsResponse) StatusCode added in v0.25.0

func (r PostAssetsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostBackups201Status added in v0.29.0

type PostBackups201Status string

type PostBackupsResponse added in v0.29.0

type PostBackupsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		AssetId       *string              `json:"assetId"`
		BookmarkCount float32              `json:"bookmarkCount"`
		CreatedAt     string               `json:"createdAt"`
		ErrorMessage  *string              `json:"errorMessage"`
		Id            string               `json:"id"`
		Size          float32              `json:"size"`
		Status        PostBackups201Status `json:"status"`
		UserId        string               `json:"userId"`
	}
}

func ParsePostBackupsResponse added in v0.29.0

func ParsePostBackupsResponse(rsp *http.Response) (*PostBackupsResponse, error)

ParsePostBackupsResponse parses an HTTP response from a PostBackupsWithResponse call

func (PostBackupsResponse) Status added in v0.29.0

func (r PostBackupsResponse) Status() string

Status returns HTTPResponse.Status

func (PostBackupsResponse) StatusCode added in v0.29.0

func (r PostBackupsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostBookmarksBookmarkIdAssets201AssetType

type PostBookmarksBookmarkIdAssets201AssetType string

type PostBookmarksBookmarkIdAssetsJSONBody

type PostBookmarksBookmarkIdAssetsJSONBody struct {
	AssetType PostBookmarksBookmarkIdAssetsJSONBodyAssetType `json:"assetType"`
	Id        string                                         `json:"id"`
}

PostBookmarksBookmarkIdAssetsJSONBody defines parameters for PostBookmarksBookmarkIdAssets.

type PostBookmarksBookmarkIdAssetsJSONBodyAssetType

type PostBookmarksBookmarkIdAssetsJSONBodyAssetType string

PostBookmarksBookmarkIdAssetsJSONBodyAssetType defines parameters for PostBookmarksBookmarkIdAssets.

const (
	PostBookmarksBookmarkIdAssetsJSONBodyAssetTypeAssetScreenshot   PostBookmarksBookmarkIdAssetsJSONBodyAssetType = "assetScreenshot"
	PostBookmarksBookmarkIdAssetsJSONBodyAssetTypeAvatar            PostBookmarksBookmarkIdAssetsJSONBodyAssetType = "avatar"
	PostBookmarksBookmarkIdAssetsJSONBodyAssetTypeBannerImage       PostBookmarksBookmarkIdAssetsJSONBodyAssetType = "bannerImage"
	PostBookmarksBookmarkIdAssetsJSONBodyAssetTypeBookmarkAsset     PostBookmarksBookmarkIdAssetsJSONBodyAssetType = "bookmarkAsset"
	PostBookmarksBookmarkIdAssetsJSONBodyAssetTypeFullPageArchive   PostBookmarksBookmarkIdAssetsJSONBodyAssetType = "fullPageArchive"
	PostBookmarksBookmarkIdAssetsJSONBodyAssetTypeLinkHtmlContent   PostBookmarksBookmarkIdAssetsJSONBodyAssetType = "linkHtmlContent"
	PostBookmarksBookmarkIdAssetsJSONBodyAssetTypePdf               PostBookmarksBookmarkIdAssetsJSONBodyAssetType = "pdf"
	PostBookmarksBookmarkIdAssetsJSONBodyAssetTypePrecrawledArchive PostBookmarksBookmarkIdAssetsJSONBodyAssetType = "precrawledArchive"
	PostBookmarksBookmarkIdAssetsJSONBodyAssetTypeScreenshot        PostBookmarksBookmarkIdAssetsJSONBodyAssetType = "screenshot"
	PostBookmarksBookmarkIdAssetsJSONBodyAssetTypeUnknown           PostBookmarksBookmarkIdAssetsJSONBodyAssetType = "unknown"
	PostBookmarksBookmarkIdAssetsJSONBodyAssetTypeUserUploaded      PostBookmarksBookmarkIdAssetsJSONBodyAssetType = "userUploaded"
	PostBookmarksBookmarkIdAssetsJSONBodyAssetTypeVideo             PostBookmarksBookmarkIdAssetsJSONBodyAssetType = "video"
)

Defines values for PostBookmarksBookmarkIdAssetsJSONBodyAssetType.

type PostBookmarksBookmarkIdAssetsJSONRequestBody

type PostBookmarksBookmarkIdAssetsJSONRequestBody PostBookmarksBookmarkIdAssetsJSONBody

PostBookmarksBookmarkIdAssetsJSONRequestBody defines body for PostBookmarksBookmarkIdAssets for application/json ContentType.

type PostBookmarksBookmarkIdAssetsResponse

type PostBookmarksBookmarkIdAssetsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		AssetType PostBookmarksBookmarkIdAssets201AssetType `json:"assetType"`
		FileName  *string                                   `json:"fileName"`
		Id        string                                    `json:"id"`
	}
	JSON404 *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParsePostBookmarksBookmarkIdAssetsResponse

func ParsePostBookmarksBookmarkIdAssetsResponse(rsp *http.Response) (*PostBookmarksBookmarkIdAssetsResponse, error)

ParsePostBookmarksBookmarkIdAssetsResponse parses an HTTP response from a PostBookmarksBookmarkIdAssetsWithResponse call

func (PostBookmarksBookmarkIdAssetsResponse) Status

Status returns HTTPResponse.Status

func (PostBookmarksBookmarkIdAssetsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostBookmarksBookmarkIdSummarize200Source added in v0.28.0

type PostBookmarksBookmarkIdSummarize200Source string

type PostBookmarksBookmarkIdSummarize200SummarizationStatus added in v0.25.0

type PostBookmarksBookmarkIdSummarize200SummarizationStatus string

type PostBookmarksBookmarkIdSummarize200TaggingStatus

type PostBookmarksBookmarkIdSummarize200TaggingStatus string

type PostBookmarksBookmarkIdSummarizeResponse

type PostBookmarksBookmarkIdSummarizeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Archived            bool                                                    `json:"archived"`
		CreatedAt           string                                                  `json:"createdAt"`
		Favourited          bool                                                    `json:"favourited"`
		Id                  string                                                  `json:"id"`
		ModifiedAt          *string                                                 `json:"modifiedAt"`
		Note                *string                                                 `json:"note"`
		Source              *PostBookmarksBookmarkIdSummarize200Source              `json:"source"`
		SummarizationStatus *PostBookmarksBookmarkIdSummarize200SummarizationStatus `json:"summarizationStatus"`
		Summary             *string                                                 `json:"summary"`
		TaggingStatus       *PostBookmarksBookmarkIdSummarize200TaggingStatus       `json:"taggingStatus"`
		Title               *string                                                 `json:"title"`
		UserId              string                                                  `json:"userId"`
	}
	JSON404 *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParsePostBookmarksBookmarkIdSummarizeResponse

func ParsePostBookmarksBookmarkIdSummarizeResponse(rsp *http.Response) (*PostBookmarksBookmarkIdSummarizeResponse, error)

ParsePostBookmarksBookmarkIdSummarizeResponse parses an HTTP response from a PostBookmarksBookmarkIdSummarizeWithResponse call

func (PostBookmarksBookmarkIdSummarizeResponse) Status

Status returns HTTPResponse.Status

func (PostBookmarksBookmarkIdSummarizeResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostBookmarksBookmarkIdTagsJSONBody

type PostBookmarksBookmarkIdTagsJSONBody struct {
	Tags []struct {
		AttachedBy *PostBookmarksBookmarkIdTagsJSONBodyTagsAttachedBy `json:"attachedBy,omitempty"`
		TagId      *string                                            `json:"tagId,omitempty"`
		TagName    *string                                            `json:"tagName,omitempty"`
	} `json:"tags"`
}

PostBookmarksBookmarkIdTagsJSONBody defines parameters for PostBookmarksBookmarkIdTags.

type PostBookmarksBookmarkIdTagsJSONBodyTagsAttachedBy added in v0.31.0

type PostBookmarksBookmarkIdTagsJSONBodyTagsAttachedBy string

PostBookmarksBookmarkIdTagsJSONBodyTagsAttachedBy defines parameters for PostBookmarksBookmarkIdTags.

const (
	PostBookmarksBookmarkIdTagsJSONBodyTagsAttachedByAi    PostBookmarksBookmarkIdTagsJSONBodyTagsAttachedBy = "ai"
	PostBookmarksBookmarkIdTagsJSONBodyTagsAttachedByHuman PostBookmarksBookmarkIdTagsJSONBodyTagsAttachedBy = "human"
)

Defines values for PostBookmarksBookmarkIdTagsJSONBodyTagsAttachedBy.

type PostBookmarksBookmarkIdTagsJSONRequestBody

type PostBookmarksBookmarkIdTagsJSONRequestBody PostBookmarksBookmarkIdTagsJSONBody

PostBookmarksBookmarkIdTagsJSONRequestBody defines body for PostBookmarksBookmarkIdTags for application/json ContentType.

type PostBookmarksBookmarkIdTagsResponse

type PostBookmarksBookmarkIdTagsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Attached []TagId `json:"attached"`
	}
	JSON404 *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParsePostBookmarksBookmarkIdTagsResponse

func ParsePostBookmarksBookmarkIdTagsResponse(rsp *http.Response) (*PostBookmarksBookmarkIdTagsResponse, error)

ParsePostBookmarksBookmarkIdTagsResponse parses an HTTP response from a PostBookmarksBookmarkIdTagsWithResponse call

func (PostBookmarksBookmarkIdTagsResponse) Status

Status returns HTTPResponse.Status

func (PostBookmarksBookmarkIdTagsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostBookmarksJSONBody

type PostBookmarksJSONBody struct {
	Archived        *bool                               `json:"archived,omitempty"`
	CrawlPriority   *PostBookmarksJSONBodyCrawlPriority `json:"crawlPriority,omitempty"`
	CreatedAt       *string                             `json:"createdAt"`
	Favourited      *bool                               `json:"favourited,omitempty"`
	ImportSessionId *string                             `json:"importSessionId,omitempty"`
	Note            *string                             `json:"note,omitempty"`
	Source          *PostBookmarksJSONBodySource        `json:"source,omitempty"`
	Summary         *string                             `json:"summary,omitempty"`
	Title           *string                             `json:"title"`
	// contains filtered or unexported fields
}

PostBookmarksJSONBody defines parameters for PostBookmarks.

type PostBookmarksJSONBody0

type PostBookmarksJSONBody0 struct {
	PrecrawledArchiveId *string                    `json:"precrawledArchiveId,omitempty"`
	Type                PostBookmarksJSONBody0Type `json:"type"`
	Url                 string                     `json:"url"`
}

PostBookmarksJSONBody0 defines parameters for PostBookmarks.

type PostBookmarksJSONBody0Type

type PostBookmarksJSONBody0Type string

PostBookmarksJSONBody0Type defines parameters for PostBookmarks.

const (
	PostBookmarksJSONBody0TypeLink PostBookmarksJSONBody0Type = "link"
)

Defines values for PostBookmarksJSONBody0Type.

type PostBookmarksJSONBody1

type PostBookmarksJSONBody1 struct {
	SourceUrl *string                    `json:"sourceUrl,omitempty"`
	Text      string                     `json:"text"`
	Type      PostBookmarksJSONBody1Type `json:"type"`
}

PostBookmarksJSONBody1 defines parameters for PostBookmarks.

type PostBookmarksJSONBody1Type

type PostBookmarksJSONBody1Type string

PostBookmarksJSONBody1Type defines parameters for PostBookmarks.

const (
	PostBookmarksJSONBody1TypeText PostBookmarksJSONBody1Type = "text"
)

Defines values for PostBookmarksJSONBody1Type.

type PostBookmarksJSONBody2

type PostBookmarksJSONBody2 struct {
	AssetId   string                          `json:"assetId"`
	AssetType PostBookmarksJSONBody2AssetType `json:"assetType"`
	FileName  *string                         `json:"fileName,omitempty"`
	SourceUrl *string                         `json:"sourceUrl,omitempty"`
	Type      PostBookmarksJSONBody2Type      `json:"type"`
}

PostBookmarksJSONBody2 defines parameters for PostBookmarks.

type PostBookmarksJSONBody2AssetType

type PostBookmarksJSONBody2AssetType string

PostBookmarksJSONBody2AssetType defines parameters for PostBookmarks.

Defines values for PostBookmarksJSONBody2AssetType.

type PostBookmarksJSONBody2Type

type PostBookmarksJSONBody2Type string

PostBookmarksJSONBody2Type defines parameters for PostBookmarks.

const (
	PostBookmarksJSONBody2TypeAsset PostBookmarksJSONBody2Type = "asset"
)

Defines values for PostBookmarksJSONBody2Type.

type PostBookmarksJSONBodyCrawlPriority added in v0.26.0

type PostBookmarksJSONBodyCrawlPriority string

PostBookmarksJSONBodyCrawlPriority defines parameters for PostBookmarks.

Defines values for PostBookmarksJSONBodyCrawlPriority.

type PostBookmarksJSONBodySource added in v0.28.0

type PostBookmarksJSONBodySource string

PostBookmarksJSONBodySource defines parameters for PostBookmarks.

const (
	PostBookmarksJSONBodySourceApi        PostBookmarksJSONBodySource = "api"
	PostBookmarksJSONBodySourceCli        PostBookmarksJSONBodySource = "cli"
	PostBookmarksJSONBodySourceExtension  PostBookmarksJSONBodySource = "extension"
	PostBookmarksJSONBodySourceImport     PostBookmarksJSONBodySource = "import"
	PostBookmarksJSONBodySourceMobile     PostBookmarksJSONBodySource = "mobile"
	PostBookmarksJSONBodySourceRss        PostBookmarksJSONBodySource = "rss"
	PostBookmarksJSONBodySourceSinglefile PostBookmarksJSONBodySource = "singlefile"
	PostBookmarksJSONBodySourceWeb        PostBookmarksJSONBodySource = "web"
)

Defines values for PostBookmarksJSONBodySource.

type PostBookmarksJSONRequestBody

type PostBookmarksJSONRequestBody PostBookmarksJSONBody

PostBookmarksJSONRequestBody defines body for PostBookmarks for application/json ContentType.

type PostBookmarksResponse

type PostBookmarksResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Bookmark
	JSON201      *Bookmark
	JSON400      *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParsePostBookmarksResponse

func ParsePostBookmarksResponse(rsp *http.Response) (*PostBookmarksResponse, error)

ParsePostBookmarksResponse parses an HTTP response from a PostBookmarksWithResponse call

func (PostBookmarksResponse) Status

func (r PostBookmarksResponse) Status() string

Status returns HTTPResponse.Status

func (PostBookmarksResponse) StatusCode

func (r PostBookmarksResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostHighlightsJSONBody

type PostHighlightsJSONBody struct {
	BookmarkId  string                       `json:"bookmarkId"`
	Color       *PostHighlightsJSONBodyColor `json:"color,omitempty"`
	EndOffset   float32                      `json:"endOffset"`
	Note        *string                      `json:"note"`
	StartOffset float32                      `json:"startOffset"`
	Text        *string                      `json:"text"`
}

PostHighlightsJSONBody defines parameters for PostHighlights.

type PostHighlightsJSONBodyColor

type PostHighlightsJSONBodyColor string

PostHighlightsJSONBodyColor defines parameters for PostHighlights.

const (
	PostHighlightsJSONBodyColorBlue   PostHighlightsJSONBodyColor = "blue"
	PostHighlightsJSONBodyColorGreen  PostHighlightsJSONBodyColor = "green"
	PostHighlightsJSONBodyColorRed    PostHighlightsJSONBodyColor = "red"
	PostHighlightsJSONBodyColorYellow PostHighlightsJSONBodyColor = "yellow"
)

Defines values for PostHighlightsJSONBodyColor.

type PostHighlightsJSONRequestBody

type PostHighlightsJSONRequestBody PostHighlightsJSONBody

PostHighlightsJSONRequestBody defines body for PostHighlights for application/json ContentType.

type PostHighlightsResponse

type PostHighlightsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Highlight
	JSON400      *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
	JSON404 *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParsePostHighlightsResponse

func ParsePostHighlightsResponse(rsp *http.Response) (*PostHighlightsResponse, error)

ParsePostHighlightsResponse parses an HTTP response from a PostHighlightsWithResponse call

func (PostHighlightsResponse) Status

func (r PostHighlightsResponse) Status() string

Status returns HTTPResponse.Status

func (PostHighlightsResponse) StatusCode

func (r PostHighlightsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostListsJSONBody

type PostListsJSONBody struct {
	Description *string                `json:"description,omitempty"`
	Icon        string                 `json:"icon"`
	Name        string                 `json:"name"`
	ParentId    *string                `json:"parentId"`
	Query       *string                `json:"query,omitempty"`
	Type        *PostListsJSONBodyType `json:"type,omitempty"`
}

PostListsJSONBody defines parameters for PostLists.

type PostListsJSONBodyType

type PostListsJSONBodyType string

PostListsJSONBodyType defines parameters for PostLists.

const (
	PostListsJSONBodyTypeManual PostListsJSONBodyType = "manual"
	PostListsJSONBodyTypeSmart  PostListsJSONBodyType = "smart"
)

Defines values for PostListsJSONBodyType.

type PostListsJSONRequestBody

type PostListsJSONRequestBody PostListsJSONBody

PostListsJSONRequestBody defines body for PostLists for application/json ContentType.

type PostListsResponse

type PostListsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *List
	JSON400      *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParsePostListsResponse

func ParsePostListsResponse(rsp *http.Response) (*PostListsResponse, error)

ParsePostListsResponse parses an HTTP response from a PostListsWithResponse call

func (PostListsResponse) Status

func (r PostListsResponse) Status() string

Status returns HTTPResponse.Status

func (PostListsResponse) StatusCode

func (r PostListsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostTagsJSONBody added in v0.25.0

type PostTagsJSONBody struct {
	Name string `json:"name"`
}

PostTagsJSONBody defines parameters for PostTags.

type PostTagsJSONRequestBody added in v0.25.0

type PostTagsJSONRequestBody PostTagsJSONBody

PostTagsJSONRequestBody defines body for PostTags for application/json ContentType.

type PostTagsResponse added in v0.25.0

type PostTagsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		Id   string `json:"id"`
		Name string `json:"name"`
	}
}

func ParsePostTagsResponse added in v0.25.0

func ParsePostTagsResponse(rsp *http.Response) (*PostTagsResponse, error)

ParsePostTagsResponse parses an HTTP response from a PostTagsWithResponse call

func (PostTagsResponse) Status added in v0.25.0

func (r PostTagsResponse) Status() string

Status returns HTTPResponse.Status

func (PostTagsResponse) StatusCode added in v0.25.0

func (r PostTagsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PutAdminUsersUserIdJSONBody added in v0.26.0

type PutAdminUsersUserIdJSONBody struct {
	BookmarkQuota          *int                             `json:"bookmarkQuota"`
	BrowserCrawlingEnabled *bool                            `json:"browserCrawlingEnabled"`
	Role                   *PutAdminUsersUserIdJSONBodyRole `json:"role,omitempty"`
	StorageQuota           *int                             `json:"storageQuota"`
}

PutAdminUsersUserIdJSONBody defines parameters for PutAdminUsersUserId.

type PutAdminUsersUserIdJSONBodyRole added in v0.26.0

type PutAdminUsersUserIdJSONBodyRole string

PutAdminUsersUserIdJSONBodyRole defines parameters for PutAdminUsersUserId.

const (
	Admin PutAdminUsersUserIdJSONBodyRole = "admin"
	User  PutAdminUsersUserIdJSONBodyRole = "user"
)

Defines values for PutAdminUsersUserIdJSONBodyRole.

type PutAdminUsersUserIdJSONRequestBody added in v0.26.0

type PutAdminUsersUserIdJSONRequestBody PutAdminUsersUserIdJSONBody

PutAdminUsersUserIdJSONRequestBody defines body for PutAdminUsersUserId for application/json ContentType.

type PutAdminUsersUserIdResponse added in v0.26.0

type PutAdminUsersUserIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Success bool `json:"success"`
	}
	JSON400 *struct {
		Error string `json:"error"`
	}
	JSON401 *struct {
		Error string `json:"error"`
	}
	JSON403 *struct {
		Error string `json:"error"`
	}
	JSON404 *struct {
		Error string `json:"error"`
	}
}

func ParsePutAdminUsersUserIdResponse added in v0.26.0

func ParsePutAdminUsersUserIdResponse(rsp *http.Response) (*PutAdminUsersUserIdResponse, error)

ParsePutAdminUsersUserIdResponse parses an HTTP response from a PutAdminUsersUserIdWithResponse call

func (PutAdminUsersUserIdResponse) Status added in v0.26.0

Status returns HTTPResponse.Status

func (PutAdminUsersUserIdResponse) StatusCode added in v0.26.0

func (r PutAdminUsersUserIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PutBookmarksBookmarkIdAssetsAssetIdJSONBody

type PutBookmarksBookmarkIdAssetsAssetIdJSONBody struct {
	AssetId string `json:"assetId"`
}

PutBookmarksBookmarkIdAssetsAssetIdJSONBody defines parameters for PutBookmarksBookmarkIdAssetsAssetId.

type PutBookmarksBookmarkIdAssetsAssetIdJSONRequestBody

type PutBookmarksBookmarkIdAssetsAssetIdJSONRequestBody PutBookmarksBookmarkIdAssetsAssetIdJSONBody

PutBookmarksBookmarkIdAssetsAssetIdJSONRequestBody defines body for PutBookmarksBookmarkIdAssetsAssetId for application/json ContentType.

type PutBookmarksBookmarkIdAssetsAssetIdResponse

type PutBookmarksBookmarkIdAssetsAssetIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParsePutBookmarksBookmarkIdAssetsAssetIdResponse

func ParsePutBookmarksBookmarkIdAssetsAssetIdResponse(rsp *http.Response) (*PutBookmarksBookmarkIdAssetsAssetIdResponse, error)

ParsePutBookmarksBookmarkIdAssetsAssetIdResponse parses an HTTP response from a PutBookmarksBookmarkIdAssetsAssetIdWithResponse call

func (PutBookmarksBookmarkIdAssetsAssetIdResponse) Status

Status returns HTTPResponse.Status

func (PutBookmarksBookmarkIdAssetsAssetIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PutListsListIdBookmarksBookmarkIdResponse

type PutListsListIdBookmarksBookmarkIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	}
}

func ParsePutListsListIdBookmarksBookmarkIdResponse

func ParsePutListsListIdBookmarksBookmarkIdResponse(rsp *http.Response) (*PutListsListIdBookmarksBookmarkIdResponse, error)

ParsePutListsListIdBookmarksBookmarkIdResponse parses an HTTP response from a PutListsListIdBookmarksBookmarkIdWithResponse call

func (PutListsListIdBookmarksBookmarkIdResponse) Status

Status returns HTTPResponse.Status

func (PutListsListIdBookmarksBookmarkIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type Tag

type Tag struct {
	Id                         string  `json:"id"`
	Name                       string  `json:"name"`
	NumBookmarks               float32 `json:"numBookmarks"`
	NumBookmarksByAttachedType struct {
		Ai    *float32 `json:"ai,omitempty"`
		Human *float32 `json:"human,omitempty"`
	} `json:"numBookmarksByAttachedType"`
}

Tag defines model for Tag.

type TagId

type TagId = string

TagId defines model for TagId.

Directories

Path Synopsis
examples
01-hello-world command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL