client

package
v0.0.0-...-26e77a4 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetOpenapiJsonRequest

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

NewGetOpenapiJsonRequest generates requests for GetOpenapiJson

func NewGetProjectIdRequest

func NewGetProjectIdRequest(server string, id int64) (*http.Request, error)

NewGetProjectIdRequest generates requests for GetProjectId

func NewGetProjectProjectIdClassificationTaskIdRequest

func NewGetProjectProjectIdClassificationTaskIdRequest(server string, projectId int64, id int64) (*http.Request, error)

NewGetProjectProjectIdClassificationTaskIdRequest generates requests for GetProjectProjectIdClassificationTaskId

func NewGetProjectProjectIdClassificationTaskLabelIdRequest

func NewGetProjectProjectIdClassificationTaskLabelIdRequest(server string, projectId int64, id int64) (*http.Request, error)

NewGetProjectProjectIdClassificationTaskLabelIdRequest generates requests for GetProjectProjectIdClassificationTaskLabelId

func NewGetProjectProjectIdClassificationTasksRequest

func NewGetProjectProjectIdClassificationTasksRequest(server string, projectId int64, params *GetProjectProjectIdClassificationTasksParams) (*http.Request, error)

NewGetProjectProjectIdClassificationTasksRequest generates requests for GetProjectProjectIdClassificationTasks

func NewGetProjectProjectIdPendingClassificationTasksRequest

func NewGetProjectProjectIdPendingClassificationTasksRequest(server string, projectId int64, params *GetProjectProjectIdPendingClassificationTasksParams) (*http.Request, error)

NewGetProjectProjectIdPendingClassificationTasksRequest generates requests for GetProjectProjectIdPendingClassificationTasks

func NewGetProjectsRequest

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

NewGetProjectsRequest generates requests for GetProjects

func NewPostProjectProjectIdClassificationTaskIdLabelRequestWithBody

func NewPostProjectProjectIdClassificationTaskIdLabelRequestWithBody(server string, projectId int64, id int64, contentType string, body io.Reader) (*http.Request, error)

NewPostProjectProjectIdClassificationTaskIdLabelRequestWithBody generates requests for PostProjectProjectIdClassificationTaskIdLabel with any type of body

func NewPostProjectProjectIdClassificationTaskIdLabelRequestWithFormdataBody

func NewPostProjectProjectIdClassificationTaskIdLabelRequestWithFormdataBody(server string, projectId int64, id int64, body PostProjectProjectIdClassificationTaskIdLabelFormdataRequestBody) (*http.Request, error)

NewPostProjectProjectIdClassificationTaskIdLabelRequestWithFormdataBody calls the generic PostProjectProjectIdClassificationTaskIdLabel builder with application/x-www-form-urlencoded body

func NewPostProjectProjectIdClassificationTaskLabelRequestWithBody

func NewPostProjectProjectIdClassificationTaskLabelRequestWithBody(server string, projectId int64, contentType string, body io.Reader) (*http.Request, error)

NewPostProjectProjectIdClassificationTaskLabelRequestWithBody generates requests for PostProjectProjectIdClassificationTaskLabel with any type of body

func NewPostProjectProjectIdClassificationTaskLabelRequestWithFormdataBody

func NewPostProjectProjectIdClassificationTaskLabelRequestWithFormdataBody(server string, projectId int64, body PostProjectProjectIdClassificationTaskLabelFormdataRequestBody) (*http.Request, error)

NewPostProjectProjectIdClassificationTaskLabelRequestWithFormdataBody calls the generic PostProjectProjectIdClassificationTaskLabel builder with application/x-www-form-urlencoded body

func NewPostProjectProjectIdClassificationTaskRequest

func NewPostProjectProjectIdClassificationTaskRequest(server string, projectId int64, body PostProjectProjectIdClassificationTaskJSONRequestBody) (*http.Request, error)

NewPostProjectProjectIdClassificationTaskRequest calls the generic PostProjectProjectIdClassificationTask builder with application/json body

func NewPostProjectProjectIdClassificationTaskRequestWithBody

func NewPostProjectProjectIdClassificationTaskRequestWithBody(server string, projectId int64, contentType string, body io.Reader) (*http.Request, error)

NewPostProjectProjectIdClassificationTaskRequestWithBody generates requests for PostProjectProjectIdClassificationTask with any type of body

func NewPostProjectProjectIdClassificationTaskRequestWithFormdataBody

func NewPostProjectProjectIdClassificationTaskRequestWithFormdataBody(server string, projectId int64, body PostProjectProjectIdClassificationTaskFormdataRequestBody) (*http.Request, error)

NewPostProjectProjectIdClassificationTaskRequestWithFormdataBody calls the generic PostProjectProjectIdClassificationTask builder with application/x-www-form-urlencoded body

func NewPostProjectRequestWithBody

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

NewPostProjectRequestWithBody generates requests for PostProject with any type of body

func NewPostProjectRequestWithFormdataBody

func NewPostProjectRequestWithFormdataBody(server string, body PostProjectFormdataRequestBody) (*http.Request, error)

NewPostProjectRequestWithFormdataBody calls the generic PostProject builder with application/x-www-form-urlencoded body

Types

type ClassificationTask

type ClassificationTask struct {
	CreatedAt  time.Time            `json:"created_at"`
	Embeddings map[string]Embedding `json:"embeddings"`
	Id         int64                `json:"id"`
	LabelId    int64                `json:"label_id"`
	LlmInput   string               `json:"llm_input"`
	LlmOutput  string               `json:"llm_output"`
	ProjectId  int64                `json:"project_id"`
}

ClassificationTask defines model for ClassificationTask.

type ClassificationTaskLabel

type ClassificationTaskLabel struct {
	CreatedAt time.Time `json:"created_at"`
	Id        int64     `json:"id"`
	Label     string    `json:"label"`
	ProjectId int64     `json:"project_id"`
}

ClassificationTaskLabel defines model for ClassificationTaskLabel.

type ClassificationTaskList

type ClassificationTaskList struct {
	Data  []ClassificationTask `json:"data"`
	Total uint64               `json:"total"`
}

ClassificationTaskList defines model for ClassificationTaskList.

type ClassificationTaskOrPendingClassificationTask

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

ClassificationTaskOrPendingClassificationTask defines model for ClassificationTaskOrPendingClassificationTask.

func (ClassificationTaskOrPendingClassificationTask) AsClassificationTask

AsClassificationTask returns the union data inside the ClassificationTaskOrPendingClassificationTask as a ClassificationTask

func (ClassificationTaskOrPendingClassificationTask) AsPendingClassificationTask

AsPendingClassificationTask returns the union data inside the ClassificationTaskOrPendingClassificationTask as a PendingClassificationTask

func (*ClassificationTaskOrPendingClassificationTask) FromClassificationTask

FromClassificationTask overwrites any union data inside the ClassificationTaskOrPendingClassificationTask as the provided ClassificationTask

func (*ClassificationTaskOrPendingClassificationTask) FromPendingClassificationTask

FromPendingClassificationTask overwrites any union data inside the ClassificationTaskOrPendingClassificationTask as the provided PendingClassificationTask

func (ClassificationTaskOrPendingClassificationTask) MarshalJSON

func (*ClassificationTaskOrPendingClassificationTask) MergeClassificationTask

MergeClassificationTask performs a merge with any union data inside the ClassificationTaskOrPendingClassificationTask, using the provided ClassificationTask

func (*ClassificationTaskOrPendingClassificationTask) MergePendingClassificationTask

MergePendingClassificationTask performs a merge with any union data inside the ClassificationTaskOrPendingClassificationTask, using the provided PendingClassificationTask

func (*ClassificationTaskOrPendingClassificationTask) UnmarshalJSON

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) GetOpenapiJson

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

func (*Client) GetProjectId

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

func (*Client) GetProjectProjectIdClassificationTaskId

func (c *Client) GetProjectProjectIdClassificationTaskId(ctx context.Context, projectId int64, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetProjectProjectIdClassificationTaskLabelId

func (c *Client) GetProjectProjectIdClassificationTaskLabelId(ctx context.Context, projectId int64, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetProjectProjectIdClassificationTasks

func (c *Client) GetProjectProjectIdClassificationTasks(ctx context.Context, projectId int64, params *GetProjectProjectIdClassificationTasksParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetProjectProjectIdPendingClassificationTasks

func (c *Client) GetProjectProjectIdPendingClassificationTasks(ctx context.Context, projectId int64, params *GetProjectProjectIdPendingClassificationTasksParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetProjects

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

func (*Client) PostProjectProjectIdClassificationTask

func (c *Client) PostProjectProjectIdClassificationTask(ctx context.Context, projectId int64, body PostProjectProjectIdClassificationTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostProjectProjectIdClassificationTaskIdLabelWithBody

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

func (*Client) PostProjectProjectIdClassificationTaskIdLabelWithFormdataBody

func (c *Client) PostProjectProjectIdClassificationTaskIdLabelWithFormdataBody(ctx context.Context, projectId int64, id int64, body PostProjectProjectIdClassificationTaskIdLabelFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostProjectProjectIdClassificationTaskLabelWithBody

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

func (*Client) PostProjectProjectIdClassificationTaskLabelWithFormdataBody

func (c *Client) PostProjectProjectIdClassificationTaskLabelWithFormdataBody(ctx context.Context, projectId int64, body PostProjectProjectIdClassificationTaskLabelFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostProjectProjectIdClassificationTaskWithBody

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

func (*Client) PostProjectProjectIdClassificationTaskWithFormdataBody

func (c *Client) PostProjectProjectIdClassificationTaskWithFormdataBody(ctx context.Context, projectId int64, body PostProjectProjectIdClassificationTaskFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostProjectWithBody

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

func (*Client) PostProjectWithFormdataBody

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

type ClientInterface

type ClientInterface interface {
	// GetOpenapiJson request
	GetOpenapiJson(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PostProjectWithFormdataBody(ctx context.Context, body PostProjectFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProjectId request
	GetProjectId(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PostProjectProjectIdClassificationTask(ctx context.Context, projectId int64, body PostProjectProjectIdClassificationTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostProjectProjectIdClassificationTaskWithFormdataBody(ctx context.Context, projectId int64, body PostProjectProjectIdClassificationTaskFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProjectProjectIdClassificationTaskId request
	GetProjectProjectIdClassificationTaskId(ctx context.Context, projectId int64, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PostProjectProjectIdClassificationTaskIdLabelWithFormdataBody(ctx context.Context, projectId int64, id int64, body PostProjectProjectIdClassificationTaskIdLabelFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PostProjectProjectIdClassificationTaskLabelWithFormdataBody(ctx context.Context, projectId int64, body PostProjectProjectIdClassificationTaskLabelFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProjectProjectIdClassificationTaskLabelId request
	GetProjectProjectIdClassificationTaskLabelId(ctx context.Context, projectId int64, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProjectProjectIdClassificationTasks request
	GetProjectProjectIdClassificationTasks(ctx context.Context, projectId int64, params *GetProjectProjectIdClassificationTasksParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProjectProjectIdPendingClassificationTasks request
	GetProjectProjectIdPendingClassificationTasks(ctx context.Context, projectId int64, params *GetProjectProjectIdPendingClassificationTasksParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProjects request
	GetProjects(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) GetOpenapiJsonWithResponse

func (c *ClientWithResponses) GetOpenapiJsonWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenapiJsonResponse, error)

GetOpenapiJsonWithResponse request returning *GetOpenapiJsonResponse

func (*ClientWithResponses) GetProjectIdWithResponse

func (c *ClientWithResponses) GetProjectIdWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*GetProjectIdResponse, error)

GetProjectIdWithResponse request returning *GetProjectIdResponse

func (*ClientWithResponses) GetProjectProjectIdClassificationTaskIdWithResponse

func (c *ClientWithResponses) GetProjectProjectIdClassificationTaskIdWithResponse(ctx context.Context, projectId int64, id int64, reqEditors ...RequestEditorFn) (*GetProjectProjectIdClassificationTaskIdResponse, error)

GetProjectProjectIdClassificationTaskIdWithResponse request returning *GetProjectProjectIdClassificationTaskIdResponse

func (*ClientWithResponses) GetProjectProjectIdClassificationTaskLabelIdWithResponse

func (c *ClientWithResponses) GetProjectProjectIdClassificationTaskLabelIdWithResponse(ctx context.Context, projectId int64, id int64, reqEditors ...RequestEditorFn) (*GetProjectProjectIdClassificationTaskLabelIdResponse, error)

GetProjectProjectIdClassificationTaskLabelIdWithResponse request returning *GetProjectProjectIdClassificationTaskLabelIdResponse

func (*ClientWithResponses) GetProjectProjectIdClassificationTasksWithResponse

func (c *ClientWithResponses) GetProjectProjectIdClassificationTasksWithResponse(ctx context.Context, projectId int64, params *GetProjectProjectIdClassificationTasksParams, reqEditors ...RequestEditorFn) (*GetProjectProjectIdClassificationTasksResponse, error)

GetProjectProjectIdClassificationTasksWithResponse request returning *GetProjectProjectIdClassificationTasksResponse

func (*ClientWithResponses) GetProjectProjectIdPendingClassificationTasksWithResponse

func (c *ClientWithResponses) GetProjectProjectIdPendingClassificationTasksWithResponse(ctx context.Context, projectId int64, params *GetProjectProjectIdPendingClassificationTasksParams, reqEditors ...RequestEditorFn) (*GetProjectProjectIdPendingClassificationTasksResponse, error)

GetProjectProjectIdPendingClassificationTasksWithResponse request returning *GetProjectProjectIdPendingClassificationTasksResponse

func (*ClientWithResponses) GetProjectsWithResponse

func (c *ClientWithResponses) GetProjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)

GetProjectsWithResponse request returning *GetProjectsResponse

func (*ClientWithResponses) PostProjectProjectIdClassificationTaskIdLabelWithBodyWithResponse

func (c *ClientWithResponses) PostProjectProjectIdClassificationTaskIdLabelWithBodyWithResponse(ctx context.Context, projectId int64, id int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskIdLabelResponse, error)

PostProjectProjectIdClassificationTaskIdLabelWithBodyWithResponse request with arbitrary body returning *PostProjectProjectIdClassificationTaskIdLabelResponse

func (*ClientWithResponses) PostProjectProjectIdClassificationTaskLabelWithBodyWithResponse

func (c *ClientWithResponses) PostProjectProjectIdClassificationTaskLabelWithBodyWithResponse(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskLabelResponse, error)

PostProjectProjectIdClassificationTaskLabelWithBodyWithResponse request with arbitrary body returning *PostProjectProjectIdClassificationTaskLabelResponse

func (*ClientWithResponses) PostProjectProjectIdClassificationTaskWithBodyWithResponse

func (c *ClientWithResponses) PostProjectProjectIdClassificationTaskWithBodyWithResponse(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskResponse, error)

PostProjectProjectIdClassificationTaskWithBodyWithResponse request with arbitrary body returning *PostProjectProjectIdClassificationTaskResponse

func (*ClientWithResponses) PostProjectProjectIdClassificationTaskWithFormdataBodyWithResponse

func (c *ClientWithResponses) PostProjectProjectIdClassificationTaskWithFormdataBodyWithResponse(ctx context.Context, projectId int64, body PostProjectProjectIdClassificationTaskFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskResponse, error)

func (*ClientWithResponses) PostProjectProjectIdClassificationTaskWithResponse

func (c *ClientWithResponses) PostProjectProjectIdClassificationTaskWithResponse(ctx context.Context, projectId int64, body PostProjectProjectIdClassificationTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskResponse, error)

func (*ClientWithResponses) PostProjectWithBodyWithResponse

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

PostProjectWithBodyWithResponse request with arbitrary body returning *PostProjectResponse

func (*ClientWithResponses) PostProjectWithFormdataBodyWithResponse

func (c *ClientWithResponses) PostProjectWithFormdataBodyWithResponse(ctx context.Context, body PostProjectFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostProjectResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetOpenapiJsonWithResponse request
	GetOpenapiJsonWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenapiJsonResponse, error)

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

	PostProjectWithFormdataBodyWithResponse(ctx context.Context, body PostProjectFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostProjectResponse, error)

	// GetProjectIdWithResponse request
	GetProjectIdWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*GetProjectIdResponse, error)

	// PostProjectProjectIdClassificationTaskWithBodyWithResponse request with any body
	PostProjectProjectIdClassificationTaskWithBodyWithResponse(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskResponse, error)

	PostProjectProjectIdClassificationTaskWithResponse(ctx context.Context, projectId int64, body PostProjectProjectIdClassificationTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskResponse, error)

	PostProjectProjectIdClassificationTaskWithFormdataBodyWithResponse(ctx context.Context, projectId int64, body PostProjectProjectIdClassificationTaskFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskResponse, error)

	// GetProjectProjectIdClassificationTaskIdWithResponse request
	GetProjectProjectIdClassificationTaskIdWithResponse(ctx context.Context, projectId int64, id int64, reqEditors ...RequestEditorFn) (*GetProjectProjectIdClassificationTaskIdResponse, error)

	// PostProjectProjectIdClassificationTaskIdLabelWithBodyWithResponse request with any body
	PostProjectProjectIdClassificationTaskIdLabelWithBodyWithResponse(ctx context.Context, projectId int64, id int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskIdLabelResponse, error)

	PostProjectProjectIdClassificationTaskIdLabelWithFormdataBodyWithResponse(ctx context.Context, projectId int64, id int64, body PostProjectProjectIdClassificationTaskIdLabelFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskIdLabelResponse, error)

	// PostProjectProjectIdClassificationTaskLabelWithBodyWithResponse request with any body
	PostProjectProjectIdClassificationTaskLabelWithBodyWithResponse(ctx context.Context, projectId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskLabelResponse, error)

	PostProjectProjectIdClassificationTaskLabelWithFormdataBodyWithResponse(ctx context.Context, projectId int64, body PostProjectProjectIdClassificationTaskLabelFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostProjectProjectIdClassificationTaskLabelResponse, error)

	// GetProjectProjectIdClassificationTaskLabelIdWithResponse request
	GetProjectProjectIdClassificationTaskLabelIdWithResponse(ctx context.Context, projectId int64, id int64, reqEditors ...RequestEditorFn) (*GetProjectProjectIdClassificationTaskLabelIdResponse, error)

	// GetProjectProjectIdClassificationTasksWithResponse request
	GetProjectProjectIdClassificationTasksWithResponse(ctx context.Context, projectId int64, params *GetProjectProjectIdClassificationTasksParams, reqEditors ...RequestEditorFn) (*GetProjectProjectIdClassificationTasksResponse, error)

	// GetProjectProjectIdPendingClassificationTasksWithResponse request
	GetProjectProjectIdPendingClassificationTasksWithResponse(ctx context.Context, projectId int64, params *GetProjectProjectIdPendingClassificationTasksParams, reqEditors ...RequestEditorFn) (*GetProjectProjectIdPendingClassificationTasksResponse, error)

	// GetProjectsWithResponse request
	GetProjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)
}

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

type ConflictResponse

type ConflictResponse struct {
	Headers ConflictResponseHeaders
}

type ConflictResponseHeaders

type ConflictResponseHeaders struct {
	Location Location
}

type CreateClassificationTask

type CreateClassificationTask struct {
	Embeddings map[string]Embedding `json:"embeddings"`
	LlmInput   string               `json:"llm_input"`
	LlmOutput  string               `json:"llm_output"`
}

CreateClassificationTask defines model for CreateClassificationTask.

type CreateClassificationTaskLabel

type CreateClassificationTaskLabel struct {
	Label string `json:"label"`
}

CreateClassificationTaskLabel defines model for CreateClassificationTaskLabel.

type CreateProject

type CreateProject struct {
	Description string `json:"description"`
	Name        string `json:"name"`
}

CreateProject defines model for CreateProject.

type Embedding

type Embedding = []byte

Embedding defines model for Embedding.

type GetOpenapiJsonResponse

type GetOpenapiJsonResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *openapi3.T
}

func ParseGetOpenapiJsonResponse

func ParseGetOpenapiJsonResponse(rsp *http.Response) (*GetOpenapiJsonResponse, error)

ParseGetOpenapiJsonResponse parses an HTTP response from a GetOpenapiJsonWithResponse call

func (GetOpenapiJsonResponse) Status

func (r GetOpenapiJsonResponse) Status() string

Status returns HTTPResponse.Status

func (GetOpenapiJsonResponse) StatusCode

func (r GetOpenapiJsonResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetProjectIdResponse

type GetProjectIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Project
}

func ParseGetProjectIdResponse

func ParseGetProjectIdResponse(rsp *http.Response) (*GetProjectIdResponse, error)

ParseGetProjectIdResponse parses an HTTP response from a GetProjectIdWithResponse call

func (GetProjectIdResponse) Status

func (r GetProjectIdResponse) Status() string

Status returns HTTPResponse.Status

func (GetProjectIdResponse) StatusCode

func (r GetProjectIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetProjectProjectIdClassificationTaskIdResponse

type GetProjectProjectIdClassificationTaskIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ClassificationTaskOrPendingClassificationTask
}

func ParseGetProjectProjectIdClassificationTaskIdResponse

func ParseGetProjectProjectIdClassificationTaskIdResponse(rsp *http.Response) (*GetProjectProjectIdClassificationTaskIdResponse, error)

ParseGetProjectProjectIdClassificationTaskIdResponse parses an HTTP response from a GetProjectProjectIdClassificationTaskIdWithResponse call

func (GetProjectProjectIdClassificationTaskIdResponse) Status

Status returns HTTPResponse.Status

func (GetProjectProjectIdClassificationTaskIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetProjectProjectIdClassificationTaskLabelIdResponse

type GetProjectProjectIdClassificationTaskLabelIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ClassificationTaskLabel
}

func ParseGetProjectProjectIdClassificationTaskLabelIdResponse

func ParseGetProjectProjectIdClassificationTaskLabelIdResponse(rsp *http.Response) (*GetProjectProjectIdClassificationTaskLabelIdResponse, error)

ParseGetProjectProjectIdClassificationTaskLabelIdResponse parses an HTTP response from a GetProjectProjectIdClassificationTaskLabelIdWithResponse call

func (GetProjectProjectIdClassificationTaskLabelIdResponse) Status

Status returns HTTPResponse.Status

func (GetProjectProjectIdClassificationTaskLabelIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetProjectProjectIdClassificationTasksParams

type GetProjectProjectIdClassificationTasksParams struct {
	// Page The page number
	Page *Page `form:"page,omitempty" json:"page,omitempty"`

	// PageSize The number of results per page
	PageSize *PageSize `form:"page_size,omitempty" json:"page_size,omitempty"`
}

GetProjectProjectIdClassificationTasksParams defines parameters for GetProjectProjectIdClassificationTasks.

type GetProjectProjectIdClassificationTasksResponse

type GetProjectProjectIdClassificationTasksResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ClassificationTaskList
}

func ParseGetProjectProjectIdClassificationTasksResponse

func ParseGetProjectProjectIdClassificationTasksResponse(rsp *http.Response) (*GetProjectProjectIdClassificationTasksResponse, error)

ParseGetProjectProjectIdClassificationTasksResponse parses an HTTP response from a GetProjectProjectIdClassificationTasksWithResponse call

func (GetProjectProjectIdClassificationTasksResponse) Status

Status returns HTTPResponse.Status

func (GetProjectProjectIdClassificationTasksResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetProjectProjectIdPendingClassificationTasksParams

type GetProjectProjectIdPendingClassificationTasksParams struct {
	// Page The page number
	Page *Page `form:"page,omitempty" json:"page,omitempty"`

	// PageSize The number of results per page
	PageSize *PageSize `form:"page_size,omitempty" json:"page_size,omitempty"`
}

GetProjectProjectIdPendingClassificationTasksParams defines parameters for GetProjectProjectIdPendingClassificationTasks.

type GetProjectProjectIdPendingClassificationTasksResponse

type GetProjectProjectIdPendingClassificationTasksResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PendingClassificationTaskList
}

func ParseGetProjectProjectIdPendingClassificationTasksResponse

func ParseGetProjectProjectIdPendingClassificationTasksResponse(rsp *http.Response) (*GetProjectProjectIdPendingClassificationTasksResponse, error)

ParseGetProjectProjectIdPendingClassificationTasksResponse parses an HTTP response from a GetProjectProjectIdPendingClassificationTasksWithResponse call

func (GetProjectProjectIdPendingClassificationTasksResponse) Status

Status returns HTTPResponse.Status

func (GetProjectProjectIdPendingClassificationTasksResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetProjectsResponse

type GetProjectsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Projects
}

func ParseGetProjectsResponse

func ParseGetProjectsResponse(rsp *http.Response) (*GetProjectsResponse, error)

ParseGetProjectsResponse parses an HTTP response from a GetProjectsWithResponse call

func (GetProjectsResponse) Status

func (r GetProjectsResponse) Status() string

Status returns HTTPResponse.Status

func (GetProjectsResponse) StatusCode

func (r GetProjectsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type LabelTask

type LabelTask struct {
	Label int64 `json:"label"`
}

LabelTask defines model for LabelTask.

type Location

type Location = string

Location defines model for Location.

type Page

type Page = uint64

Page defines model for Page.

type PageSize

type PageSize = uint64

PageSize defines model for PageSize.

type PendingClassificationTask

type PendingClassificationTask struct {
	CreatedAt  time.Time            `json:"created_at"`
	Embeddings map[string]Embedding `json:"embeddings"`
	Id         int64                `json:"id"`
	LlmInput   string               `json:"llm_input"`
	LlmOutput  string               `json:"llm_output"`
	ProjectId  int64                `json:"project_id"`
}

PendingClassificationTask defines model for PendingClassificationTask.

type PendingClassificationTaskList

type PendingClassificationTaskList struct {
	Data  []PendingClassificationTask `json:"data"`
	Total uint64                      `json:"total"`
}

PendingClassificationTaskList defines model for PendingClassificationTaskList.

type PostProjectFormdataRequestBody

type PostProjectFormdataRequestBody = CreateProject

PostProjectFormdataRequestBody defines body for PostProject for application/x-www-form-urlencoded ContentType.

type PostProjectProjectIdClassificationTaskFormdataRequestBody

type PostProjectProjectIdClassificationTaskFormdataRequestBody = CreateClassificationTask

PostProjectProjectIdClassificationTaskFormdataRequestBody defines body for PostProjectProjectIdClassificationTask for application/x-www-form-urlencoded ContentType.

type PostProjectProjectIdClassificationTaskIdLabelFormdataRequestBody

type PostProjectProjectIdClassificationTaskIdLabelFormdataRequestBody = LabelTask

PostProjectProjectIdClassificationTaskIdLabelFormdataRequestBody defines body for PostProjectProjectIdClassificationTaskIdLabel for application/x-www-form-urlencoded ContentType.

type PostProjectProjectIdClassificationTaskIdLabelResponse

type PostProjectProjectIdClassificationTaskIdLabelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ClassificationTask
}

func ParsePostProjectProjectIdClassificationTaskIdLabelResponse

func ParsePostProjectProjectIdClassificationTaskIdLabelResponse(rsp *http.Response) (*PostProjectProjectIdClassificationTaskIdLabelResponse, error)

ParsePostProjectProjectIdClassificationTaskIdLabelResponse parses an HTTP response from a PostProjectProjectIdClassificationTaskIdLabelWithResponse call

func (PostProjectProjectIdClassificationTaskIdLabelResponse) Status

Status returns HTTPResponse.Status

func (PostProjectProjectIdClassificationTaskIdLabelResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostProjectProjectIdClassificationTaskJSONRequestBody

type PostProjectProjectIdClassificationTaskJSONRequestBody = CreateClassificationTask

PostProjectProjectIdClassificationTaskJSONRequestBody defines body for PostProjectProjectIdClassificationTask for application/json ContentType.

type PostProjectProjectIdClassificationTaskLabelFormdataRequestBody

type PostProjectProjectIdClassificationTaskLabelFormdataRequestBody = CreateClassificationTaskLabel

PostProjectProjectIdClassificationTaskLabelFormdataRequestBody defines body for PostProjectProjectIdClassificationTaskLabel for application/x-www-form-urlencoded ContentType.

type PostProjectProjectIdClassificationTaskLabelResponse

type PostProjectProjectIdClassificationTaskLabelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ClassificationTaskLabel
}

func ParsePostProjectProjectIdClassificationTaskLabelResponse

func ParsePostProjectProjectIdClassificationTaskLabelResponse(rsp *http.Response) (*PostProjectProjectIdClassificationTaskLabelResponse, error)

ParsePostProjectProjectIdClassificationTaskLabelResponse parses an HTTP response from a PostProjectProjectIdClassificationTaskLabelWithResponse call

func (PostProjectProjectIdClassificationTaskLabelResponse) Status

Status returns HTTPResponse.Status

func (PostProjectProjectIdClassificationTaskLabelResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostProjectProjectIdClassificationTaskResponse

type PostProjectProjectIdClassificationTaskResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *PendingClassificationTask
}

func ParsePostProjectProjectIdClassificationTaskResponse

func ParsePostProjectProjectIdClassificationTaskResponse(rsp *http.Response) (*PostProjectProjectIdClassificationTaskResponse, error)

ParsePostProjectProjectIdClassificationTaskResponse parses an HTTP response from a PostProjectProjectIdClassificationTaskWithResponse call

func (PostProjectProjectIdClassificationTaskResponse) Status

Status returns HTTPResponse.Status

func (PostProjectProjectIdClassificationTaskResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostProjectResponse

type PostProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Project
}

func ParsePostProjectResponse

func ParsePostProjectResponse(rsp *http.Response) (*PostProjectResponse, error)

ParsePostProjectResponse parses an HTTP response from a PostProjectWithResponse call

func (PostProjectResponse) Status

func (r PostProjectResponse) Status() string

Status returns HTTPResponse.Status

func (PostProjectResponse) StatusCode

func (r PostProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Project

type Project struct {
	CreatedAt   time.Time                  `json:"created_at"`
	Description string                     `json:"description"`
	Id          int64                      `json:"id"`
	Labels      *[]ClassificationTaskLabel `json:"labels,omitempty"`
	Name        string                     `json:"name"`
}

Project defines model for Project.

type Projects

type Projects struct {
	Projects *[]Project `json:"projects,omitempty"`
}

Projects defines model for Projects.

type RedirectResponse

type RedirectResponse struct {
	Headers RedirectResponseHeaders
}

type RedirectResponseHeaders

type RedirectResponseHeaders struct {
	Location Location
}

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

Jump to

Keyboard shortcuts

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