Documentation
¶
Overview ¶
Package socialapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- func GetSpec() (swagger *openapi3.T, err error)
- func GetSpecJSON() ([]byte, error)
- func GetSwagger() (*openapi3.T, error)deprecated
- func NewCreateShelfCommentRequest(server string, shelfId openapi_types.UUID, ...) (*http.Request, error)
- func NewCreateShelfCommentRequestWithBody(server string, shelfId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteCommentRequest(server string, commentId openapi_types.UUID) (*http.Request, error)
- func NewFollowRequest(server string, userId openapi_types.UUID) (*http.Request, error)
- func NewGetCommentsByIdsRequest(server string, params *GetCommentsByIdsParams) (*http.Request, error)
- func NewGetFeedRequest(server string, params *GetFeedParams) (*http.Request, error)
- func NewGetProfileSocialSummaryRequest(server string, userId openapi_types.UUID) (*http.Request, error)
- func NewGetShelvesSocialSummaryRequest(server string, params *GetShelvesSocialSummaryParams) (*http.Request, error)
- func NewGetTopShelvesRequest(server string, params *GetTopShelvesParams) (*http.Request, error)
- func NewLikeShelfRequest(server string, shelfId openapi_types.UUID) (*http.Request, error)
- func NewListShelfCommentsRequest(server string, shelfId openapi_types.UUID, params *ListShelfCommentsParams) (*http.Request, error)
- func NewPurgeUserDataRequest(server string) (*http.Request, error)
- func NewRecordShelfPublishedRequest(server string, body RecordShelfPublishedJSONRequestBody) (*http.Request, error)
- func NewRecordShelfPublishedRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUnfollowRequest(server string, userId openapi_types.UUID) (*http.Request, error)
- func NewUnlikeShelfRequest(server string, shelfId openapi_types.UUID) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type ActivityEvent
- type BadRequest
- type Client
- func (c *Client) CreateShelfComment(ctx context.Context, shelfId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) CreateShelfCommentWithBody(ctx context.Context, shelfId openapi_types.UUID, contentType string, ...) (*http.Response, error)
- func (c *Client) DeleteComment(ctx context.Context, commentId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) Follow(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCommentsByIds(ctx context.Context, params *GetCommentsByIdsParams, ...) (*http.Response, error)
- func (c *Client) GetFeed(ctx context.Context, params *GetFeedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetProfileSocialSummary(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetShelvesSocialSummary(ctx context.Context, params *GetShelvesSocialSummaryParams, ...) (*http.Response, error)
- func (c *Client) GetTopShelves(ctx context.Context, params *GetTopShelvesParams, ...) (*http.Response, error)
- func (c *Client) LikeShelf(ctx context.Context, shelfId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListShelfComments(ctx context.Context, shelfId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) PurgeUserData(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RecordShelfPublished(ctx context.Context, body RecordShelfPublishedJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RecordShelfPublishedWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Unfollow(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UnlikeShelf(ctx context.Context, shelfId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateShelfCommentWithBodyWithResponse(ctx context.Context, shelfId openapi_types.UUID, contentType string, ...) (*CreateShelfCommentResponse, error)
- func (c *ClientWithResponses) CreateShelfCommentWithResponse(ctx context.Context, shelfId openapi_types.UUID, ...) (*CreateShelfCommentResponse, error)
- func (c *ClientWithResponses) DeleteCommentWithResponse(ctx context.Context, commentId openapi_types.UUID, ...) (*DeleteCommentResponse, error)
- func (c *ClientWithResponses) FollowWithResponse(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*FollowResponse, error)
- func (c *ClientWithResponses) GetCommentsByIdsWithResponse(ctx context.Context, params *GetCommentsByIdsParams, ...) (*GetCommentsByIdsResponse, error)
- func (c *ClientWithResponses) GetFeedWithResponse(ctx context.Context, params *GetFeedParams, reqEditors ...RequestEditorFn) (*GetFeedResponse, error)
- func (c *ClientWithResponses) GetProfileSocialSummaryWithResponse(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProfileSocialSummaryResponse, error)
- func (c *ClientWithResponses) GetShelvesSocialSummaryWithResponse(ctx context.Context, params *GetShelvesSocialSummaryParams, ...) (*GetShelvesSocialSummaryResponse, error)
- func (c *ClientWithResponses) GetTopShelvesWithResponse(ctx context.Context, params *GetTopShelvesParams, ...) (*GetTopShelvesResponse, error)
- func (c *ClientWithResponses) LikeShelfWithResponse(ctx context.Context, shelfId openapi_types.UUID, reqEditors ...RequestEditorFn) (*LikeShelfResponse, error)
- func (c *ClientWithResponses) ListShelfCommentsWithResponse(ctx context.Context, shelfId openapi_types.UUID, ...) (*ListShelfCommentsResponse, error)
- func (c *ClientWithResponses) PurgeUserDataWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PurgeUserDataResponse, error)
- func (c *ClientWithResponses) RecordShelfPublishedWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RecordShelfPublishedResponse, error)
- func (c *ClientWithResponses) RecordShelfPublishedWithResponse(ctx context.Context, body RecordShelfPublishedJSONRequestBody, ...) (*RecordShelfPublishedResponse, error)
- func (c *ClientWithResponses) UnfollowWithResponse(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*UnfollowResponse, error)
- func (c *ClientWithResponses) UnlikeShelfWithResponse(ctx context.Context, shelfId openapi_types.UUID, reqEditors ...RequestEditorFn) (*UnlikeShelfResponse, error)
- type ClientWithResponsesInterface
- type Comment
- type CreateShelfCommentJSONBody
- type CreateShelfCommentJSONRequestBody
- type CreateShelfCommentResponse
- func (r CreateShelfCommentResponse) ContentType() string
- func (r CreateShelfCommentResponse) GetApplicationproblemJSON400() *BadRequest
- func (r CreateShelfCommentResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r CreateShelfCommentResponse) GetApplicationproblemJSON404() *NotFound
- func (r CreateShelfCommentResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r CreateShelfCommentResponse) GetApplicationproblemJSON502() *UpstreamError
- func (r CreateShelfCommentResponse) GetApplicationproblemJSONDefault() *InternalError
- func (r CreateShelfCommentResponse) GetBody() []byte
- func (r CreateShelfCommentResponse) GetJSON201() *Comment
- func (r CreateShelfCommentResponse) Status() string
- func (r CreateShelfCommentResponse) StatusCode() int
- type DeleteCommentResponse
- func (r DeleteCommentResponse) ContentType() string
- func (r DeleteCommentResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r DeleteCommentResponse) GetApplicationproblemJSON403() *Forbidden
- func (r DeleteCommentResponse) GetApplicationproblemJSON404() *NotFound
- func (r DeleteCommentResponse) GetApplicationproblemJSONDefault() *InternalError
- func (r DeleteCommentResponse) GetBody() []byte
- func (r DeleteCommentResponse) Status() string
- func (r DeleteCommentResponse) StatusCode() int
- type FollowResponse
- func (r FollowResponse) ContentType() string
- func (r FollowResponse) GetApplicationproblemJSON400() *BadRequest
- func (r FollowResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r FollowResponse) GetApplicationproblemJSON404() *NotFound
- func (r FollowResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r FollowResponse) GetApplicationproblemJSON502() *UpstreamError
- func (r FollowResponse) GetApplicationproblemJSONDefault() *InternalError
- func (r FollowResponse) GetBody() []byte
- func (r FollowResponse) Status() string
- func (r FollowResponse) StatusCode() int
- type Forbidden
- type GetCommentsByIdsParams
- type GetCommentsByIdsResponse
- func (r GetCommentsByIdsResponse) ContentType() string
- func (r GetCommentsByIdsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r GetCommentsByIdsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetCommentsByIdsResponse) GetApplicationproblemJSONDefault() *InternalError
- func (r GetCommentsByIdsResponse) GetBody() []byte
- func (r GetCommentsByIdsResponse) GetJSON200() ...
- func (r GetCommentsByIdsResponse) Status() string
- func (r GetCommentsByIdsResponse) StatusCode() int
- type GetFeedParams
- type GetFeedParamsTab
- type GetFeedResponse
- func (r GetFeedResponse) ContentType() string
- func (r GetFeedResponse) GetApplicationproblemJSON400() *BadRequest
- func (r GetFeedResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetFeedResponse) GetApplicationproblemJSONDefault() *InternalError
- func (r GetFeedResponse) GetBody() []byte
- func (r GetFeedResponse) GetJSON200() ...
- func (r GetFeedResponse) Status() string
- func (r GetFeedResponse) StatusCode() int
- type GetProfileSocialSummaryResponse
- func (r GetProfileSocialSummaryResponse) ContentType() string
- func (r GetProfileSocialSummaryResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetProfileSocialSummaryResponse) GetApplicationproblemJSONDefault() *InternalError
- func (r GetProfileSocialSummaryResponse) GetBody() []byte
- func (r GetProfileSocialSummaryResponse) GetJSON200() *ProfileSocialSummary
- func (r GetProfileSocialSummaryResponse) Status() string
- func (r GetProfileSocialSummaryResponse) StatusCode() int
- type GetShelvesSocialSummaryParams
- type GetShelvesSocialSummaryResponse
- func (r GetShelvesSocialSummaryResponse) ContentType() string
- func (r GetShelvesSocialSummaryResponse) GetApplicationproblemJSON400() *BadRequest
- func (r GetShelvesSocialSummaryResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetShelvesSocialSummaryResponse) GetApplicationproblemJSONDefault() *InternalError
- func (r GetShelvesSocialSummaryResponse) GetBody() []byte
- func (r GetShelvesSocialSummaryResponse) GetJSON200() ...
- func (r GetShelvesSocialSummaryResponse) Status() string
- func (r GetShelvesSocialSummaryResponse) StatusCode() int
- type GetTopShelvesParams
- type GetTopShelvesResponse
- func (r GetTopShelvesResponse) ContentType() string
- func (r GetTopShelvesResponse) GetApplicationproblemJSON400() *BadRequest
- func (r GetTopShelvesResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r GetTopShelvesResponse) GetApplicationproblemJSONDefault() *InternalError
- func (r GetTopShelvesResponse) GetBody() []byte
- func (r GetTopShelvesResponse) GetJSON200() ...
- func (r GetTopShelvesResponse) Status() string
- func (r GetTopShelvesResponse) StatusCode() int
- type HttpRequestDoer
- type InternalError
- type LikeShelfResponse
- func (r LikeShelfResponse) ContentType() string
- func (r LikeShelfResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r LikeShelfResponse) GetApplicationproblemJSON404() *NotFound
- func (r LikeShelfResponse) GetApplicationproblemJSON429() *TooManyRequests
- func (r LikeShelfResponse) GetApplicationproblemJSON502() *UpstreamError
- func (r LikeShelfResponse) GetApplicationproblemJSONDefault() *InternalError
- func (r LikeShelfResponse) GetBody() []byte
- func (r LikeShelfResponse) Status() string
- func (r LikeShelfResponse) StatusCode() int
- type ListShelfCommentsParams
- type ListShelfCommentsResponse
- func (r ListShelfCommentsResponse) ContentType() string
- func (r ListShelfCommentsResponse) GetApplicationproblemJSON400() *BadRequest
- func (r ListShelfCommentsResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r ListShelfCommentsResponse) GetApplicationproblemJSONDefault() *InternalError
- func (r ListShelfCommentsResponse) GetBody() []byte
- func (r ListShelfCommentsResponse) GetJSON200() ...
- func (r ListShelfCommentsResponse) Status() string
- func (r ListShelfCommentsResponse) StatusCode() int
- type NotFound
- type ProfileSocialSummary
- type PurgeUserDataResponse
- func (r PurgeUserDataResponse) ContentType() string
- func (r PurgeUserDataResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r PurgeUserDataResponse) GetApplicationproblemJSONDefault() *InternalError
- func (r PurgeUserDataResponse) GetBody() []byte
- func (r PurgeUserDataResponse) Status() string
- func (r PurgeUserDataResponse) StatusCode() int
- type RecordShelfPublishedJSONBody
- type RecordShelfPublishedJSONRequestBody
- type RecordShelfPublishedResponse
- func (r RecordShelfPublishedResponse) ContentType() string
- func (r RecordShelfPublishedResponse) GetApplicationproblemJSON400() *BadRequest
- func (r RecordShelfPublishedResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r RecordShelfPublishedResponse) GetApplicationproblemJSON404() *NotFound
- func (r RecordShelfPublishedResponse) GetApplicationproblemJSON502() *UpstreamError
- func (r RecordShelfPublishedResponse) GetApplicationproblemJSONDefault() *InternalError
- func (r RecordShelfPublishedResponse) GetBody() []byte
- func (r RecordShelfPublishedResponse) Status() string
- func (r RecordShelfPublishedResponse) StatusCode() int
- type RequestEditorFn
- type ShelfSocialSummary
- type TooManyRequests
- type Unauthorized
- type UnfollowResponse
- func (r UnfollowResponse) ContentType() string
- func (r UnfollowResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r UnfollowResponse) GetApplicationproblemJSONDefault() *InternalError
- func (r UnfollowResponse) GetBody() []byte
- func (r UnfollowResponse) Status() string
- func (r UnfollowResponse) StatusCode() int
- type UnlikeShelfResponse
- func (r UnlikeShelfResponse) ContentType() string
- func (r UnlikeShelfResponse) GetApplicationproblemJSON401() *Unauthorized
- func (r UnlikeShelfResponse) GetApplicationproblemJSONDefault() *InternalError
- func (r UnlikeShelfResponse) GetBody() []byte
- func (r UnlikeShelfResponse) Status() string
- func (r UnlikeShelfResponse) StatusCode() int
- type UpstreamError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSpec ¶
GetSpec returns the OpenAPI specification corresponding to the generated code in this file. External references in the spec are resolved through PathToRawSpec; externally-referenced files must be embedded in their corresponding Go packages (via the import-mapping feature). URL-based external refs are not supported.
func GetSpecJSON ¶
GetSpecJSON returns the raw JSON bytes of the embedded OpenAPI specification: decompressed but not unmarshaled. External references are not resolved here; the bytes are the spec exactly as embedded by codegen. The result is cached at package init time, so repeated calls are cheap.
func GetSwagger
deprecated
func NewCreateShelfCommentRequest ¶
func NewCreateShelfCommentRequest(server string, shelfId openapi_types.UUID, body CreateShelfCommentJSONRequestBody) (*http.Request, error)
NewCreateShelfCommentRequest calls the generic CreateShelfComment builder with application/json body
func NewCreateShelfCommentRequestWithBody ¶
func NewCreateShelfCommentRequestWithBody(server string, shelfId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewCreateShelfCommentRequestWithBody constructs an http.Request for the CreateShelfComment method, with any body, and a specified content type
func NewDeleteCommentRequest ¶
NewDeleteCommentRequest constructs an http.Request for the DeleteComment method
func NewFollowRequest ¶
NewFollowRequest constructs an http.Request for the Follow method
func NewGetCommentsByIdsRequest ¶
func NewGetCommentsByIdsRequest(server string, params *GetCommentsByIdsParams) (*http.Request, error)
NewGetCommentsByIdsRequest constructs an http.Request for the GetCommentsByIds method
func NewGetFeedRequest ¶
func NewGetFeedRequest(server string, params *GetFeedParams) (*http.Request, error)
NewGetFeedRequest constructs an http.Request for the GetFeed method
func NewGetProfileSocialSummaryRequest ¶
func NewGetProfileSocialSummaryRequest(server string, userId openapi_types.UUID) (*http.Request, error)
NewGetProfileSocialSummaryRequest constructs an http.Request for the GetProfileSocialSummary method
func NewGetShelvesSocialSummaryRequest ¶
func NewGetShelvesSocialSummaryRequest(server string, params *GetShelvesSocialSummaryParams) (*http.Request, error)
NewGetShelvesSocialSummaryRequest constructs an http.Request for the GetShelvesSocialSummary method
func NewGetTopShelvesRequest ¶
func NewGetTopShelvesRequest(server string, params *GetTopShelvesParams) (*http.Request, error)
NewGetTopShelvesRequest constructs an http.Request for the GetTopShelves method
func NewLikeShelfRequest ¶
NewLikeShelfRequest constructs an http.Request for the LikeShelf method
func NewListShelfCommentsRequest ¶
func NewListShelfCommentsRequest(server string, shelfId openapi_types.UUID, params *ListShelfCommentsParams) (*http.Request, error)
NewListShelfCommentsRequest constructs an http.Request for the ListShelfComments method
func NewPurgeUserDataRequest ¶
NewPurgeUserDataRequest constructs an http.Request for the PurgeUserData method
func NewRecordShelfPublishedRequest ¶
func NewRecordShelfPublishedRequest(server string, body RecordShelfPublishedJSONRequestBody) (*http.Request, error)
NewRecordShelfPublishedRequest calls the generic RecordShelfPublished builder with application/json body
func NewRecordShelfPublishedRequestWithBody ¶
func NewRecordShelfPublishedRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRecordShelfPublishedRequestWithBody constructs an http.Request for the RecordShelfPublished method, with any body, and a specified content type
func NewUnfollowRequest ¶
NewUnfollowRequest constructs an http.Request for the Unfollow method
func NewUnlikeShelfRequest ¶
NewUnlikeShelfRequest constructs an http.Request for the UnlikeShelf method
Types ¶
type ActivityEvent ¶
type ActivityEvent struct {
ActorId openapi_types.UUID `json:"actor_id"`
CreatedAt time.Time `json:"created_at"`
Id openapi_types.UUID `json:"id"`
ObjectCommentId *openapi_types.UUID `json:"object_comment_id,omitempty"`
ObjectShelfId *openapi_types.UUID `json:"object_shelf_id,omitempty"`
TargetUserId openapi_types.UUID `json:"target_user_id"`
Verb externalRef0.ActivityVerb `json:"verb"`
}
ActivityEvent defines model for ActivityEvent.
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) CreateShelfComment ¶
func (c *Client) CreateShelfComment(ctx context.Context, shelfId openapi_types.UUID, body CreateShelfCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateShelfComment Comment on a shelf (validates the shelf via collection)
Takes a body of the `application/json` content type.
Corresponds with POST /shelves/{shelfId}/comments (the `CreateShelfComment` operationId).
func (*Client) CreateShelfCommentWithBody ¶
func (c *Client) CreateShelfCommentWithBody(ctx context.Context, shelfId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateShelfCommentWithBody Comment on a shelf (validates the shelf via collection)
Takes any type of body and a specified content type.
Corresponds with POST /shelves/{shelfId}/comments (the `CreateShelfComment` operationId).
func (*Client) DeleteComment ¶
func (c *Client) DeleteComment(ctx context.Context, commentId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteComment Delete a comment (author tombstones body-NULL; shelf owner tombstones body-retained)
Corresponds with DELETE /comments/{commentId} (the `DeleteComment` operationId).
func (*Client) Follow ¶
func (c *Client) Follow(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
Follow Follow a user (idempotent)
Corresponds with PUT /follows/{userId} (the `Follow` operationId).
func (*Client) GetCommentsByIds ¶
func (c *Client) GetCommentsByIds(ctx context.Context, params *GetCommentsByIdsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetCommentsByIds Batch live comments (feed excerpt hydration)
Corresponds with GET /comments/by-ids (the `GetCommentsByIds` operationId).
func (*Client) GetFeed ¶
func (c *Client) GetFeed(ctx context.Context, params *GetFeedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetFeed Raw activity events for the caller, keyset-paged
Corresponds with GET /feed (the `GetFeed` operationId).
func (*Client) GetProfileSocialSummary ¶
func (c *Client) GetProfileSocialSummary(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetProfileSocialSummary Follower/following counts plus whether the caller follows this user
Corresponds with GET /profiles/{userId}/summary (the `GetProfileSocialSummary` operationId).
func (*Client) GetShelvesSocialSummary ¶
func (c *Client) GetShelvesSocialSummary(ctx context.Context, params *GetShelvesSocialSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetShelvesSocialSummary Batch like/comment counts + caller state for shelves
Corresponds with GET /shelves/summary (the `GetShelvesSocialSummary` operationId).
func (*Client) GetTopShelves ¶
func (c *Client) GetTopShelves(ctx context.Context, params *GetTopShelvesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetTopShelves Shelf ids by live like count, all-time (leaderboard, no deep paging)
Corresponds with GET /explore/top-shelves (the `GetTopShelves` operationId).
func (*Client) LikeShelf ¶
func (c *Client) LikeShelf(ctx context.Context, shelfId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
LikeShelf Like a shelf (idempotent; validates the shelf via collection)
Corresponds with PUT /likes/{shelfId} (the `LikeShelf` operationId).
func (*Client) ListShelfComments ¶
func (c *Client) ListShelfComments(ctx context.Context, shelfId openapi_types.UUID, params *ListShelfCommentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListShelfComments Live comments, newest first, keyset-paged
Corresponds with GET /shelves/{shelfId}/comments (the `ListShelfComments` operationId).
func (*Client) PurgeUserData ¶
func (c *Client) PurgeUserData(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
PurgeUserData Account-deletion leg - purge the caller's social graph (idempotent)
Hard-deletes follows (both directions), likes by the caller and on the caller's shelves, activity where the caller is actor or target, and comments on the caller's own shelves. Comments the caller authored on other shelves are anonymized in place (author and body NULLed, tombstoned). deleted_by references to the caller are NULLed. Irreversible.
Corresponds with DELETE /user-data (the `PurgeUserData` operationId).
func (*Client) RecordShelfPublished ¶
func (c *Client) RecordShelfPublished(ctx context.Context, body RecordShelfPublishedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
RecordShelfPublished Record a publish (bff-orchestrated; one live row per shelf, hourly refresh throttle)
Takes a body of the `application/json` content type.
Corresponds with POST /events/shelf-published (the `RecordShelfPublished` operationId).
func (*Client) RecordShelfPublishedWithBody ¶
func (c *Client) RecordShelfPublishedWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RecordShelfPublishedWithBody Record a publish (bff-orchestrated; one live row per shelf, hourly refresh throttle)
Takes any type of body and a specified content type.
Corresponds with POST /events/shelf-published (the `RecordShelfPublished` operationId).
func (*Client) Unfollow ¶
func (c *Client) Unfollow(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
Unfollow Unfollow a user (idempotent)
Corresponds with DELETE /follows/{userId} (the `Unfollow` operationId).
func (*Client) UnlikeShelf ¶
func (c *Client) UnlikeShelf(ctx context.Context, shelfId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
UnlikeShelf Remove a like (idempotent)
Corresponds with DELETE /likes/{shelfId} (the `UnlikeShelf` operationId).
type ClientInterface ¶
type ClientInterface interface {
// GetCommentsByIds Batch live comments (feed excerpt hydration)
//
// Corresponds with GET /comments/by-ids (the `GetCommentsByIds` operationId).
GetCommentsByIds(ctx context.Context, params *GetCommentsByIdsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteComment Delete a comment (author tombstones body-NULL; shelf owner tombstones body-retained)
//
// Corresponds with DELETE /comments/{commentId} (the `DeleteComment` operationId).
DeleteComment(ctx context.Context, commentId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// RecordShelfPublishedWithBody Record a publish (bff-orchestrated; one live row per shelf, hourly refresh throttle)
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /events/shelf-published (the `RecordShelfPublished` operationId).
RecordShelfPublishedWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// RecordShelfPublished Record a publish (bff-orchestrated; one live row per shelf, hourly refresh throttle)
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /events/shelf-published (the `RecordShelfPublished` operationId).
RecordShelfPublished(ctx context.Context, body RecordShelfPublishedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTopShelves Shelf ids by live like count, all-time (leaderboard, no deep paging)
//
// Corresponds with GET /explore/top-shelves (the `GetTopShelves` operationId).
GetTopShelves(ctx context.Context, params *GetTopShelvesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFeed Raw activity events for the caller, keyset-paged
//
// Corresponds with GET /feed (the `GetFeed` operationId).
GetFeed(ctx context.Context, params *GetFeedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// Unfollow Unfollow a user (idempotent)
//
// Corresponds with DELETE /follows/{userId} (the `Unfollow` operationId).
Unfollow(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// Follow Follow a user (idempotent)
//
// Corresponds with PUT /follows/{userId} (the `Follow` operationId).
Follow(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UnlikeShelf Remove a like (idempotent)
//
// Corresponds with DELETE /likes/{shelfId} (the `UnlikeShelf` operationId).
UnlikeShelf(ctx context.Context, shelfId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// LikeShelf Like a shelf (idempotent; validates the shelf via collection)
//
// Corresponds with PUT /likes/{shelfId} (the `LikeShelf` operationId).
LikeShelf(ctx context.Context, shelfId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetProfileSocialSummary Follower/following counts plus whether the caller follows this user
//
// Corresponds with GET /profiles/{userId}/summary (the `GetProfileSocialSummary` operationId).
GetProfileSocialSummary(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetShelvesSocialSummary Batch like/comment counts + caller state for shelves
//
// Corresponds with GET /shelves/summary (the `GetShelvesSocialSummary` operationId).
GetShelvesSocialSummary(ctx context.Context, params *GetShelvesSocialSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListShelfComments Live comments, newest first, keyset-paged
//
// Corresponds with GET /shelves/{shelfId}/comments (the `ListShelfComments` operationId).
ListShelfComments(ctx context.Context, shelfId openapi_types.UUID, params *ListShelfCommentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateShelfCommentWithBody Comment on a shelf (validates the shelf via collection)
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /shelves/{shelfId}/comments (the `CreateShelfComment` operationId).
CreateShelfCommentWithBody(ctx context.Context, shelfId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateShelfComment Comment on a shelf (validates the shelf via collection)
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /shelves/{shelfId}/comments (the `CreateShelfComment` operationId).
CreateShelfComment(ctx context.Context, shelfId openapi_types.UUID, body CreateShelfCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PurgeUserData Account-deletion leg - purge the caller's social graph (idempotent)
//
// Hard-deletes follows (both directions), likes by the caller and on the caller's shelves, activity where the caller is actor or target, and comments on the caller's own shelves. Comments the caller authored on other shelves are anonymized in place (author and body NULLed, tombstoned). deleted_by references to the caller are NULLed. Irreversible.
//
// Corresponds with DELETE /user-data (the `PurgeUserData` operationId).
PurgeUserData(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) CreateShelfCommentWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateShelfCommentWithBodyWithResponse(ctx context.Context, shelfId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateShelfCommentResponse, error)
CreateShelfCommentWithBodyWithResponse Comment on a shelf (validates the shelf via collection)
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /shelves/{shelfId}/comments (the `CreateShelfComment` operationId).
func (*ClientWithResponses) CreateShelfCommentWithResponse ¶
func (c *ClientWithResponses) CreateShelfCommentWithResponse(ctx context.Context, shelfId openapi_types.UUID, body CreateShelfCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateShelfCommentResponse, error)
CreateShelfCommentWithResponse Comment on a shelf (validates the shelf via collection)
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /shelves/{shelfId}/comments (the `CreateShelfComment` operationId).
func (*ClientWithResponses) DeleteCommentWithResponse ¶
func (c *ClientWithResponses) DeleteCommentWithResponse(ctx context.Context, commentId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteCommentResponse, error)
DeleteCommentWithResponse Delete a comment (author tombstones body-NULL; shelf owner tombstones body-retained)
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /comments/{commentId} (the `DeleteComment` operationId).
func (*ClientWithResponses) FollowWithResponse ¶
func (c *ClientWithResponses) FollowWithResponse(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*FollowResponse, error)
FollowWithResponse Follow a user (idempotent)
Returns a wrapper object for the known response body format(s).
Corresponds with PUT /follows/{userId} (the `Follow` operationId).
func (*ClientWithResponses) GetCommentsByIdsWithResponse ¶
func (c *ClientWithResponses) GetCommentsByIdsWithResponse(ctx context.Context, params *GetCommentsByIdsParams, reqEditors ...RequestEditorFn) (*GetCommentsByIdsResponse, error)
GetCommentsByIdsWithResponse Batch live comments (feed excerpt hydration)
Returns a wrapper object for the known response body format(s).
Corresponds with GET /comments/by-ids (the `GetCommentsByIds` operationId).
func (*ClientWithResponses) GetFeedWithResponse ¶
func (c *ClientWithResponses) GetFeedWithResponse(ctx context.Context, params *GetFeedParams, reqEditors ...RequestEditorFn) (*GetFeedResponse, error)
GetFeedWithResponse Raw activity events for the caller, keyset-paged
Returns a wrapper object for the known response body format(s).
Corresponds with GET /feed (the `GetFeed` operationId).
func (*ClientWithResponses) GetProfileSocialSummaryWithResponse ¶
func (c *ClientWithResponses) GetProfileSocialSummaryWithResponse(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProfileSocialSummaryResponse, error)
GetProfileSocialSummaryWithResponse Follower/following counts plus whether the caller follows this user
Returns a wrapper object for the known response body format(s).
Corresponds with GET /profiles/{userId}/summary (the `GetProfileSocialSummary` operationId).
func (*ClientWithResponses) GetShelvesSocialSummaryWithResponse ¶
func (c *ClientWithResponses) GetShelvesSocialSummaryWithResponse(ctx context.Context, params *GetShelvesSocialSummaryParams, reqEditors ...RequestEditorFn) (*GetShelvesSocialSummaryResponse, error)
GetShelvesSocialSummaryWithResponse Batch like/comment counts + caller state for shelves
Returns a wrapper object for the known response body format(s).
Corresponds with GET /shelves/summary (the `GetShelvesSocialSummary` operationId).
func (*ClientWithResponses) GetTopShelvesWithResponse ¶
func (c *ClientWithResponses) GetTopShelvesWithResponse(ctx context.Context, params *GetTopShelvesParams, reqEditors ...RequestEditorFn) (*GetTopShelvesResponse, error)
GetTopShelvesWithResponse Shelf ids by live like count, all-time (leaderboard, no deep paging)
Returns a wrapper object for the known response body format(s).
Corresponds with GET /explore/top-shelves (the `GetTopShelves` operationId).
func (*ClientWithResponses) LikeShelfWithResponse ¶
func (c *ClientWithResponses) LikeShelfWithResponse(ctx context.Context, shelfId openapi_types.UUID, reqEditors ...RequestEditorFn) (*LikeShelfResponse, error)
LikeShelfWithResponse Like a shelf (idempotent; validates the shelf via collection)
Returns a wrapper object for the known response body format(s).
Corresponds with PUT /likes/{shelfId} (the `LikeShelf` operationId).
func (*ClientWithResponses) ListShelfCommentsWithResponse ¶
func (c *ClientWithResponses) ListShelfCommentsWithResponse(ctx context.Context, shelfId openapi_types.UUID, params *ListShelfCommentsParams, reqEditors ...RequestEditorFn) (*ListShelfCommentsResponse, error)
ListShelfCommentsWithResponse Live comments, newest first, keyset-paged
Returns a wrapper object for the known response body format(s).
Corresponds with GET /shelves/{shelfId}/comments (the `ListShelfComments` operationId).
func (*ClientWithResponses) PurgeUserDataWithResponse ¶
func (c *ClientWithResponses) PurgeUserDataWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PurgeUserDataResponse, error)
PurgeUserDataWithResponse Account-deletion leg - purge the caller's social graph (idempotent)
Hard-deletes follows (both directions), likes by the caller and on the caller's shelves, activity where the caller is actor or target, and comments on the caller's own shelves. Comments the caller authored on other shelves are anonymized in place (author and body NULLed, tombstoned). deleted_by references to the caller are NULLed. Irreversible.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /user-data (the `PurgeUserData` operationId).
func (*ClientWithResponses) RecordShelfPublishedWithBodyWithResponse ¶
func (c *ClientWithResponses) RecordShelfPublishedWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RecordShelfPublishedResponse, error)
RecordShelfPublishedWithBodyWithResponse Record a publish (bff-orchestrated; one live row per shelf, hourly refresh throttle)
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /events/shelf-published (the `RecordShelfPublished` operationId).
func (*ClientWithResponses) RecordShelfPublishedWithResponse ¶
func (c *ClientWithResponses) RecordShelfPublishedWithResponse(ctx context.Context, body RecordShelfPublishedJSONRequestBody, reqEditors ...RequestEditorFn) (*RecordShelfPublishedResponse, error)
RecordShelfPublishedWithResponse Record a publish (bff-orchestrated; one live row per shelf, hourly refresh throttle)
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /events/shelf-published (the `RecordShelfPublished` operationId).
func (*ClientWithResponses) UnfollowWithResponse ¶
func (c *ClientWithResponses) UnfollowWithResponse(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*UnfollowResponse, error)
UnfollowWithResponse Unfollow a user (idempotent)
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /follows/{userId} (the `Unfollow` operationId).
func (*ClientWithResponses) UnlikeShelfWithResponse ¶
func (c *ClientWithResponses) UnlikeShelfWithResponse(ctx context.Context, shelfId openapi_types.UUID, reqEditors ...RequestEditorFn) (*UnlikeShelfResponse, error)
UnlikeShelfWithResponse Remove a like (idempotent)
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /likes/{shelfId} (the `UnlikeShelf` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetCommentsByIdsWithResponse Batch live comments (feed excerpt hydration)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /comments/by-ids (the `GetCommentsByIds` operationId).
GetCommentsByIdsWithResponse(ctx context.Context, params *GetCommentsByIdsParams, reqEditors ...RequestEditorFn) (*GetCommentsByIdsResponse, error)
// DeleteCommentWithResponse Delete a comment (author tombstones body-NULL; shelf owner tombstones body-retained)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /comments/{commentId} (the `DeleteComment` operationId).
DeleteCommentWithResponse(ctx context.Context, commentId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteCommentResponse, error)
// RecordShelfPublishedWithBodyWithResponse Record a publish (bff-orchestrated; one live row per shelf, hourly refresh throttle)
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /events/shelf-published (the `RecordShelfPublished` operationId).
RecordShelfPublishedWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RecordShelfPublishedResponse, error)
// RecordShelfPublishedWithResponse Record a publish (bff-orchestrated; one live row per shelf, hourly refresh throttle)
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /events/shelf-published (the `RecordShelfPublished` operationId).
RecordShelfPublishedWithResponse(ctx context.Context, body RecordShelfPublishedJSONRequestBody, reqEditors ...RequestEditorFn) (*RecordShelfPublishedResponse, error)
// GetTopShelvesWithResponse Shelf ids by live like count, all-time (leaderboard, no deep paging)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /explore/top-shelves (the `GetTopShelves` operationId).
GetTopShelvesWithResponse(ctx context.Context, params *GetTopShelvesParams, reqEditors ...RequestEditorFn) (*GetTopShelvesResponse, error)
// GetFeedWithResponse Raw activity events for the caller, keyset-paged
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /feed (the `GetFeed` operationId).
GetFeedWithResponse(ctx context.Context, params *GetFeedParams, reqEditors ...RequestEditorFn) (*GetFeedResponse, error)
// UnfollowWithResponse Unfollow a user (idempotent)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /follows/{userId} (the `Unfollow` operationId).
UnfollowWithResponse(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*UnfollowResponse, error)
// FollowWithResponse Follow a user (idempotent)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /follows/{userId} (the `Follow` operationId).
FollowWithResponse(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*FollowResponse, error)
// UnlikeShelfWithResponse Remove a like (idempotent)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /likes/{shelfId} (the `UnlikeShelf` operationId).
UnlikeShelfWithResponse(ctx context.Context, shelfId openapi_types.UUID, reqEditors ...RequestEditorFn) (*UnlikeShelfResponse, error)
// LikeShelfWithResponse Like a shelf (idempotent; validates the shelf via collection)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /likes/{shelfId} (the `LikeShelf` operationId).
LikeShelfWithResponse(ctx context.Context, shelfId openapi_types.UUID, reqEditors ...RequestEditorFn) (*LikeShelfResponse, error)
// GetProfileSocialSummaryWithResponse Follower/following counts plus whether the caller follows this user
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /profiles/{userId}/summary (the `GetProfileSocialSummary` operationId).
GetProfileSocialSummaryWithResponse(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProfileSocialSummaryResponse, error)
// GetShelvesSocialSummaryWithResponse Batch like/comment counts + caller state for shelves
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /shelves/summary (the `GetShelvesSocialSummary` operationId).
GetShelvesSocialSummaryWithResponse(ctx context.Context, params *GetShelvesSocialSummaryParams, reqEditors ...RequestEditorFn) (*GetShelvesSocialSummaryResponse, error)
// ListShelfCommentsWithResponse Live comments, newest first, keyset-paged
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /shelves/{shelfId}/comments (the `ListShelfComments` operationId).
ListShelfCommentsWithResponse(ctx context.Context, shelfId openapi_types.UUID, params *ListShelfCommentsParams, reqEditors ...RequestEditorFn) (*ListShelfCommentsResponse, error)
// CreateShelfCommentWithBodyWithResponse Comment on a shelf (validates the shelf via collection)
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /shelves/{shelfId}/comments (the `CreateShelfComment` operationId).
CreateShelfCommentWithBodyWithResponse(ctx context.Context, shelfId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateShelfCommentResponse, error)
// CreateShelfCommentWithResponse Comment on a shelf (validates the shelf via collection)
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /shelves/{shelfId}/comments (the `CreateShelfComment` operationId).
CreateShelfCommentWithResponse(ctx context.Context, shelfId openapi_types.UUID, body CreateShelfCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateShelfCommentResponse, error)
// PurgeUserDataWithResponse Account-deletion leg - purge the caller's social graph (idempotent)
//
// Hard-deletes follows (both directions), likes by the caller and on the caller's shelves, activity where the caller is actor or target, and comments on the caller's own shelves. Comments the caller authored on other shelves are anonymized in place (author and body NULLed, tombstoned). deleted_by references to the caller are NULLed. Irreversible.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /user-data (the `PurgeUserData` operationId).
PurgeUserDataWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PurgeUserDataResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type Comment ¶
type Comment struct {
AuthorId openapi_types.UUID `json:"author_id"`
Body string `json:"body"`
CreatedAt time.Time `json:"created_at"`
Id openapi_types.UUID `json:"id"`
ShelfId openapi_types.UUID `json:"shelf_id"`
}
Comment A live comment; tombstones never serialize.
type CreateShelfCommentJSONBody ¶
type CreateShelfCommentJSONBody struct {
Body string `json:"body"`
}
CreateShelfCommentJSONBody defines parameters for CreateShelfComment.
type CreateShelfCommentJSONRequestBody ¶
type CreateShelfCommentJSONRequestBody CreateShelfCommentJSONBody
CreateShelfCommentJSONRequestBody defines body for CreateShelfComment for application/json ContentType.
type CreateShelfCommentResponse ¶
type CreateShelfCommentResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *Comment
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// ApplicationproblemJSON502 the response for an HTTP 502 `application/problem+json` response
ApplicationproblemJSON502 *UpstreamError
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *InternalError
}
func ParseCreateShelfCommentResponse ¶
func ParseCreateShelfCommentResponse(rsp *http.Response) (*CreateShelfCommentResponse, error)
ParseCreateShelfCommentResponse parses an HTTP response from a CreateShelfCommentWithResponse call
func (CreateShelfCommentResponse) ContentType ¶
func (r CreateShelfCommentResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateShelfCommentResponse) GetApplicationproblemJSON400 ¶
func (r CreateShelfCommentResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CreateShelfCommentResponse) GetApplicationproblemJSON401 ¶
func (r CreateShelfCommentResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CreateShelfCommentResponse) GetApplicationproblemJSON404 ¶
func (r CreateShelfCommentResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (CreateShelfCommentResponse) GetApplicationproblemJSON429 ¶
func (r CreateShelfCommentResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CreateShelfCommentResponse) GetApplicationproblemJSON502 ¶
func (r CreateShelfCommentResponse) GetApplicationproblemJSON502() *UpstreamError
GetApplicationproblemJSON502 returns the response for an HTTP 502 `application/problem+json` response
func (CreateShelfCommentResponse) GetApplicationproblemJSONDefault ¶
func (r CreateShelfCommentResponse) GetApplicationproblemJSONDefault() *InternalError
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (CreateShelfCommentResponse) GetBody ¶
func (r CreateShelfCommentResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateShelfCommentResponse) GetJSON201 ¶
func (r CreateShelfCommentResponse) GetJSON201() *Comment
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateShelfCommentResponse) Status ¶
func (r CreateShelfCommentResponse) Status() string
Status returns HTTPResponse.Status
func (CreateShelfCommentResponse) StatusCode ¶
func (r CreateShelfCommentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteCommentResponse ¶
type DeleteCommentResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *Forbidden
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *InternalError
}
func ParseDeleteCommentResponse ¶
func ParseDeleteCommentResponse(rsp *http.Response) (*DeleteCommentResponse, error)
ParseDeleteCommentResponse parses an HTTP response from a DeleteCommentWithResponse call
func (DeleteCommentResponse) ContentType ¶
func (r DeleteCommentResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteCommentResponse) GetApplicationproblemJSON401 ¶
func (r DeleteCommentResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DeleteCommentResponse) GetApplicationproblemJSON403 ¶
func (r DeleteCommentResponse) GetApplicationproblemJSON403() *Forbidden
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DeleteCommentResponse) GetApplicationproblemJSON404 ¶
func (r DeleteCommentResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DeleteCommentResponse) GetApplicationproblemJSONDefault ¶
func (r DeleteCommentResponse) GetApplicationproblemJSONDefault() *InternalError
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (DeleteCommentResponse) GetBody ¶
func (r DeleteCommentResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteCommentResponse) Status ¶
func (r DeleteCommentResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteCommentResponse) StatusCode ¶
func (r DeleteCommentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type FollowResponse ¶
type FollowResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// ApplicationproblemJSON502 the response for an HTTP 502 `application/problem+json` response
ApplicationproblemJSON502 *UpstreamError
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *InternalError
}
func ParseFollowResponse ¶
func ParseFollowResponse(rsp *http.Response) (*FollowResponse, error)
ParseFollowResponse parses an HTTP response from a FollowWithResponse call
func (FollowResponse) ContentType ¶
func (r FollowResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (FollowResponse) GetApplicationproblemJSON400 ¶
func (r FollowResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (FollowResponse) GetApplicationproblemJSON401 ¶
func (r FollowResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (FollowResponse) GetApplicationproblemJSON404 ¶
func (r FollowResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (FollowResponse) GetApplicationproblemJSON429 ¶
func (r FollowResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (FollowResponse) GetApplicationproblemJSON502 ¶
func (r FollowResponse) GetApplicationproblemJSON502() *UpstreamError
GetApplicationproblemJSON502 returns the response for an HTTP 502 `application/problem+json` response
func (FollowResponse) GetApplicationproblemJSONDefault ¶
func (r FollowResponse) GetApplicationproblemJSONDefault() *InternalError
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (FollowResponse) GetBody ¶
func (r FollowResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (FollowResponse) Status ¶
func (r FollowResponse) Status() string
Status returns HTTPResponse.Status
func (FollowResponse) StatusCode ¶
func (r FollowResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCommentsByIdsParams ¶
type GetCommentsByIdsParams struct {
Ids []openapi_types.UUID `form:"ids" json:"ids"`
}
GetCommentsByIdsParams defines parameters for GetCommentsByIds.
type GetCommentsByIdsResponse ¶
type GetCommentsByIdsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Comments []Comment `json:"comments"`
}
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *InternalError
}
func ParseGetCommentsByIdsResponse ¶
func ParseGetCommentsByIdsResponse(rsp *http.Response) (*GetCommentsByIdsResponse, error)
ParseGetCommentsByIdsResponse parses an HTTP response from a GetCommentsByIdsWithResponse call
func (GetCommentsByIdsResponse) ContentType ¶
func (r GetCommentsByIdsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetCommentsByIdsResponse) GetApplicationproblemJSON400 ¶
func (r GetCommentsByIdsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (GetCommentsByIdsResponse) GetApplicationproblemJSON401 ¶
func (r GetCommentsByIdsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetCommentsByIdsResponse) GetApplicationproblemJSONDefault ¶
func (r GetCommentsByIdsResponse) GetApplicationproblemJSONDefault() *InternalError
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (GetCommentsByIdsResponse) GetBody ¶
func (r GetCommentsByIdsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetCommentsByIdsResponse) GetJSON200 ¶
func (r GetCommentsByIdsResponse) GetJSON200() *struct { Comments []Comment `json:"comments"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetCommentsByIdsResponse) Status ¶
func (r GetCommentsByIdsResponse) Status() string
Status returns HTTPResponse.Status
func (GetCommentsByIdsResponse) StatusCode ¶
func (r GetCommentsByIdsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFeedParams ¶
type GetFeedParams struct {
Tab GetFeedParamsTab `form:"tab" json:"tab"`
Cursor *externalRef0.Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
GetFeedParams defines parameters for GetFeed.
type GetFeedParamsTab ¶
type GetFeedParamsTab string
GetFeedParamsTab defines parameters for GetFeed.
const ( Following GetFeedParamsTab = "following" You GetFeedParamsTab = "you" )
Defines values for GetFeedParamsTab.
func (GetFeedParamsTab) Valid ¶
func (e GetFeedParamsTab) Valid() bool
Valid indicates whether the value is a known member of the GetFeedParamsTab enum.
type GetFeedResponse ¶
type GetFeedResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Events []ActivityEvent `json:"events"`
// NextCursor Cursor of the last RAW row; absent when exhausted.
NextCursor *string `json:"next_cursor,omitempty"`
}
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *InternalError
}
func ParseGetFeedResponse ¶
func ParseGetFeedResponse(rsp *http.Response) (*GetFeedResponse, error)
ParseGetFeedResponse parses an HTTP response from a GetFeedWithResponse call
func (GetFeedResponse) ContentType ¶
func (r GetFeedResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetFeedResponse) GetApplicationproblemJSON400 ¶
func (r GetFeedResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (GetFeedResponse) GetApplicationproblemJSON401 ¶
func (r GetFeedResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetFeedResponse) GetApplicationproblemJSONDefault ¶
func (r GetFeedResponse) GetApplicationproblemJSONDefault() *InternalError
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (GetFeedResponse) GetBody ¶
func (r GetFeedResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetFeedResponse) GetJSON200 ¶
func (r GetFeedResponse) GetJSON200() *struct { Events []ActivityEvent `json:"events"` // NextCursor Cursor of the last RAW row; absent when exhausted. NextCursor *string `json:"next_cursor,omitempty"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetFeedResponse) Status ¶
func (r GetFeedResponse) Status() string
Status returns HTTPResponse.Status
func (GetFeedResponse) StatusCode ¶
func (r GetFeedResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProfileSocialSummaryResponse ¶
type GetProfileSocialSummaryResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ProfileSocialSummary
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *InternalError
}
func ParseGetProfileSocialSummaryResponse ¶
func ParseGetProfileSocialSummaryResponse(rsp *http.Response) (*GetProfileSocialSummaryResponse, error)
ParseGetProfileSocialSummaryResponse parses an HTTP response from a GetProfileSocialSummaryWithResponse call
func (GetProfileSocialSummaryResponse) ContentType ¶
func (r GetProfileSocialSummaryResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetProfileSocialSummaryResponse) GetApplicationproblemJSON401 ¶
func (r GetProfileSocialSummaryResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetProfileSocialSummaryResponse) GetApplicationproblemJSONDefault ¶
func (r GetProfileSocialSummaryResponse) GetApplicationproblemJSONDefault() *InternalError
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (GetProfileSocialSummaryResponse) GetBody ¶
func (r GetProfileSocialSummaryResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetProfileSocialSummaryResponse) GetJSON200 ¶
func (r GetProfileSocialSummaryResponse) GetJSON200() *ProfileSocialSummary
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetProfileSocialSummaryResponse) Status ¶
func (r GetProfileSocialSummaryResponse) Status() string
Status returns HTTPResponse.Status
func (GetProfileSocialSummaryResponse) StatusCode ¶
func (r GetProfileSocialSummaryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetShelvesSocialSummaryParams ¶
type GetShelvesSocialSummaryParams struct {
Ids []openapi_types.UUID `form:"ids" json:"ids"`
}
GetShelvesSocialSummaryParams defines parameters for GetShelvesSocialSummary.
type GetShelvesSocialSummaryResponse ¶
type GetShelvesSocialSummaryResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Summaries []ShelfSocialSummary `json:"summaries"`
}
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *InternalError
}
func ParseGetShelvesSocialSummaryResponse ¶
func ParseGetShelvesSocialSummaryResponse(rsp *http.Response) (*GetShelvesSocialSummaryResponse, error)
ParseGetShelvesSocialSummaryResponse parses an HTTP response from a GetShelvesSocialSummaryWithResponse call
func (GetShelvesSocialSummaryResponse) ContentType ¶
func (r GetShelvesSocialSummaryResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetShelvesSocialSummaryResponse) GetApplicationproblemJSON400 ¶
func (r GetShelvesSocialSummaryResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (GetShelvesSocialSummaryResponse) GetApplicationproblemJSON401 ¶
func (r GetShelvesSocialSummaryResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetShelvesSocialSummaryResponse) GetApplicationproblemJSONDefault ¶
func (r GetShelvesSocialSummaryResponse) GetApplicationproblemJSONDefault() *InternalError
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (GetShelvesSocialSummaryResponse) GetBody ¶
func (r GetShelvesSocialSummaryResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetShelvesSocialSummaryResponse) GetJSON200 ¶
func (r GetShelvesSocialSummaryResponse) GetJSON200() *struct { Summaries []ShelfSocialSummary `json:"summaries"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetShelvesSocialSummaryResponse) Status ¶
func (r GetShelvesSocialSummaryResponse) Status() string
Status returns HTTPResponse.Status
func (GetShelvesSocialSummaryResponse) StatusCode ¶
func (r GetShelvesSocialSummaryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTopShelvesParams ¶
type GetTopShelvesParams struct {
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
GetTopShelvesParams defines parameters for GetTopShelves.
type GetTopShelvesResponse ¶
type GetTopShelvesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
ShelfIds []openapi_types.UUID `json:"shelf_ids"`
}
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *InternalError
}
func ParseGetTopShelvesResponse ¶
func ParseGetTopShelvesResponse(rsp *http.Response) (*GetTopShelvesResponse, error)
ParseGetTopShelvesResponse parses an HTTP response from a GetTopShelvesWithResponse call
func (GetTopShelvesResponse) ContentType ¶
func (r GetTopShelvesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetTopShelvesResponse) GetApplicationproblemJSON400 ¶
func (r GetTopShelvesResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (GetTopShelvesResponse) GetApplicationproblemJSON401 ¶
func (r GetTopShelvesResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetTopShelvesResponse) GetApplicationproblemJSONDefault ¶
func (r GetTopShelvesResponse) GetApplicationproblemJSONDefault() *InternalError
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (GetTopShelvesResponse) GetBody ¶
func (r GetTopShelvesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetTopShelvesResponse) GetJSON200 ¶
func (r GetTopShelvesResponse) GetJSON200() *struct { ShelfIds []openapi_types.UUID `json:"shelf_ids"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetTopShelvesResponse) Status ¶
func (r GetTopShelvesResponse) Status() string
Status returns HTTPResponse.Status
func (GetTopShelvesResponse) StatusCode ¶
func (r GetTopShelvesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InternalError ¶
type InternalError = externalRef0.Problem
InternalError defines model for InternalError.
type LikeShelfResponse ¶
type LikeShelfResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *TooManyRequests
// ApplicationproblemJSON502 the response for an HTTP 502 `application/problem+json` response
ApplicationproblemJSON502 *UpstreamError
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *InternalError
}
func ParseLikeShelfResponse ¶
func ParseLikeShelfResponse(rsp *http.Response) (*LikeShelfResponse, error)
ParseLikeShelfResponse parses an HTTP response from a LikeShelfWithResponse call
func (LikeShelfResponse) ContentType ¶
func (r LikeShelfResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (LikeShelfResponse) GetApplicationproblemJSON401 ¶
func (r LikeShelfResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (LikeShelfResponse) GetApplicationproblemJSON404 ¶
func (r LikeShelfResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (LikeShelfResponse) GetApplicationproblemJSON429 ¶
func (r LikeShelfResponse) GetApplicationproblemJSON429() *TooManyRequests
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (LikeShelfResponse) GetApplicationproblemJSON502 ¶
func (r LikeShelfResponse) GetApplicationproblemJSON502() *UpstreamError
GetApplicationproblemJSON502 returns the response for an HTTP 502 `application/problem+json` response
func (LikeShelfResponse) GetApplicationproblemJSONDefault ¶
func (r LikeShelfResponse) GetApplicationproblemJSONDefault() *InternalError
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (LikeShelfResponse) GetBody ¶
func (r LikeShelfResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (LikeShelfResponse) Status ¶
func (r LikeShelfResponse) Status() string
Status returns HTTPResponse.Status
func (LikeShelfResponse) StatusCode ¶
func (r LikeShelfResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListShelfCommentsParams ¶
type ListShelfCommentsParams struct {
Cursor *externalRef0.Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListShelfCommentsParams defines parameters for ListShelfComments.
type ListShelfCommentsResponse ¶
type ListShelfCommentsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Comments []Comment `json:"comments"`
NextCursor *string `json:"next_cursor,omitempty"`
}
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *InternalError
}
func ParseListShelfCommentsResponse ¶
func ParseListShelfCommentsResponse(rsp *http.Response) (*ListShelfCommentsResponse, error)
ParseListShelfCommentsResponse parses an HTTP response from a ListShelfCommentsWithResponse call
func (ListShelfCommentsResponse) ContentType ¶
func (r ListShelfCommentsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListShelfCommentsResponse) GetApplicationproblemJSON400 ¶
func (r ListShelfCommentsResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (ListShelfCommentsResponse) GetApplicationproblemJSON401 ¶
func (r ListShelfCommentsResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListShelfCommentsResponse) GetApplicationproblemJSONDefault ¶
func (r ListShelfCommentsResponse) GetApplicationproblemJSONDefault() *InternalError
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (ListShelfCommentsResponse) GetBody ¶
func (r ListShelfCommentsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListShelfCommentsResponse) GetJSON200 ¶
func (r ListShelfCommentsResponse) GetJSON200() *struct { Comments []Comment `json:"comments"` NextCursor *string `json:"next_cursor,omitempty"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListShelfCommentsResponse) Status ¶
func (r ListShelfCommentsResponse) Status() string
Status returns HTTPResponse.Status
func (ListShelfCommentsResponse) StatusCode ¶
func (r ListShelfCommentsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ProfileSocialSummary ¶
type ProfileSocialSummary = externalRef0.ProfileSocialSummary
ProfileSocialSummary defines model for ProfileSocialSummary.
type PurgeUserDataResponse ¶
type PurgeUserDataResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *InternalError
}
func ParsePurgeUserDataResponse ¶
func ParsePurgeUserDataResponse(rsp *http.Response) (*PurgeUserDataResponse, error)
ParsePurgeUserDataResponse parses an HTTP response from a PurgeUserDataWithResponse call
func (PurgeUserDataResponse) ContentType ¶
func (r PurgeUserDataResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PurgeUserDataResponse) GetApplicationproblemJSON401 ¶
func (r PurgeUserDataResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (PurgeUserDataResponse) GetApplicationproblemJSONDefault ¶
func (r PurgeUserDataResponse) GetApplicationproblemJSONDefault() *InternalError
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (PurgeUserDataResponse) GetBody ¶
func (r PurgeUserDataResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PurgeUserDataResponse) Status ¶
func (r PurgeUserDataResponse) Status() string
Status returns HTTPResponse.Status
func (PurgeUserDataResponse) StatusCode ¶
func (r PurgeUserDataResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RecordShelfPublishedJSONBody ¶
type RecordShelfPublishedJSONBody struct {
ShelfId openapi_types.UUID `json:"shelf_id"`
}
RecordShelfPublishedJSONBody defines parameters for RecordShelfPublished.
type RecordShelfPublishedJSONRequestBody ¶
type RecordShelfPublishedJSONRequestBody RecordShelfPublishedJSONBody
RecordShelfPublishedJSONRequestBody defines body for RecordShelfPublished for application/json ContentType.
type RecordShelfPublishedResponse ¶
type RecordShelfPublishedResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *BadRequest
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *NotFound
// ApplicationproblemJSON502 the response for an HTTP 502 `application/problem+json` response
ApplicationproblemJSON502 *UpstreamError
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *InternalError
}
func ParseRecordShelfPublishedResponse ¶
func ParseRecordShelfPublishedResponse(rsp *http.Response) (*RecordShelfPublishedResponse, error)
ParseRecordShelfPublishedResponse parses an HTTP response from a RecordShelfPublishedWithResponse call
func (RecordShelfPublishedResponse) ContentType ¶
func (r RecordShelfPublishedResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RecordShelfPublishedResponse) GetApplicationproblemJSON400 ¶
func (r RecordShelfPublishedResponse) GetApplicationproblemJSON400() *BadRequest
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (RecordShelfPublishedResponse) GetApplicationproblemJSON401 ¶
func (r RecordShelfPublishedResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (RecordShelfPublishedResponse) GetApplicationproblemJSON404 ¶
func (r RecordShelfPublishedResponse) GetApplicationproblemJSON404() *NotFound
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (RecordShelfPublishedResponse) GetApplicationproblemJSON502 ¶
func (r RecordShelfPublishedResponse) GetApplicationproblemJSON502() *UpstreamError
GetApplicationproblemJSON502 returns the response for an HTTP 502 `application/problem+json` response
func (RecordShelfPublishedResponse) GetApplicationproblemJSONDefault ¶
func (r RecordShelfPublishedResponse) GetApplicationproblemJSONDefault() *InternalError
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (RecordShelfPublishedResponse) GetBody ¶
func (r RecordShelfPublishedResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RecordShelfPublishedResponse) Status ¶
func (r RecordShelfPublishedResponse) Status() string
Status returns HTTPResponse.Status
func (RecordShelfPublishedResponse) StatusCode ¶
func (r RecordShelfPublishedResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ShelfSocialSummary ¶
type ShelfSocialSummary = externalRef0.ShelfSocialSummary
ShelfSocialSummary defines model for ShelfSocialSummary.
type TooManyRequests ¶
type TooManyRequests = externalRef0.Problem
TooManyRequests defines model for TooManyRequests.
type Unauthorized ¶
type Unauthorized = externalRef0.Problem
Unauthorized defines model for Unauthorized.
type UnfollowResponse ¶
type UnfollowResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *InternalError
}
func ParseUnfollowResponse ¶
func ParseUnfollowResponse(rsp *http.Response) (*UnfollowResponse, error)
ParseUnfollowResponse parses an HTTP response from a UnfollowWithResponse call
func (UnfollowResponse) ContentType ¶
func (r UnfollowResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UnfollowResponse) GetApplicationproblemJSON401 ¶
func (r UnfollowResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (UnfollowResponse) GetApplicationproblemJSONDefault ¶
func (r UnfollowResponse) GetApplicationproblemJSONDefault() *InternalError
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (UnfollowResponse) GetBody ¶
func (r UnfollowResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UnfollowResponse) Status ¶
func (r UnfollowResponse) Status() string
Status returns HTTPResponse.Status
func (UnfollowResponse) StatusCode ¶
func (r UnfollowResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UnlikeShelfResponse ¶
type UnlikeShelfResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *Unauthorized
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *InternalError
}
func ParseUnlikeShelfResponse ¶
func ParseUnlikeShelfResponse(rsp *http.Response) (*UnlikeShelfResponse, error)
ParseUnlikeShelfResponse parses an HTTP response from a UnlikeShelfWithResponse call
func (UnlikeShelfResponse) ContentType ¶
func (r UnlikeShelfResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UnlikeShelfResponse) GetApplicationproblemJSON401 ¶
func (r UnlikeShelfResponse) GetApplicationproblemJSON401() *Unauthorized
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (UnlikeShelfResponse) GetApplicationproblemJSONDefault ¶
func (r UnlikeShelfResponse) GetApplicationproblemJSONDefault() *InternalError
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (UnlikeShelfResponse) GetBody ¶
func (r UnlikeShelfResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UnlikeShelfResponse) Status ¶
func (r UnlikeShelfResponse) Status() string
Status returns HTTPResponse.Status
func (UnlikeShelfResponse) StatusCode ¶
func (r UnlikeShelfResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpstreamError ¶
type UpstreamError = externalRef0.Problem
UpstreamError defines model for UpstreamError.