Documentation
¶
Overview ¶
Package zeroentropy 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.
Package zeroentropy is a Go client for the ZeroEntropy retrieval API, generated with oapi-codegen from the OpenAPI document ZeroEntropy publishes.
Example ¶
package main
import (
"context"
"net/http"
"os"
"github.com/psyb0t/go-zeroentropy"
)
func main() {
auth := zeroentropy.WithRequestEditorFn(
func(_ context.Context, req *http.Request) error {
req.Header.Set(
"Authorization",
"Bearer "+os.Getenv("ZEROENTROPY_API_KEY"),
)
return nil
},
)
client, err := zeroentropy.NewClientWithResponses(
"https://api.zeroentropy.dev/v1",
auth,
)
if err != nil {
panic(err)
}
res, err := client.
GetCollectionListCollectionsGetCollectionListPostWithResponse(
context.Background(),
zeroentropy.EmptyRequest{},
)
if err != nil {
panic(err)
}
_ = res.JSON200
}
Output:
Index ¶
- func NewAddApiKeyAdminAddApiKeyPostRequest(server string, body AddApiKeyAdminAddApiKeyPostJSONRequestBody) (*http.Request, error)
- func NewAddApiKeyAdminAddApiKeyPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddCollectionCollectionsAddCollectionPostRequest(server string, body AddCollectionCollectionsAddCollectionPostJSONRequestBody) (*http.Request, error)
- func NewAddCollectionCollectionsAddCollectionPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddDocumentDocumentsAddDocumentPostRequest(server string, body AddDocumentDocumentsAddDocumentPostJSONRequestBody) (*http.Request, error)
- func NewAddDocumentDocumentsAddDocumentPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateOrganizationAdminCreateOrganizationPostRequest(server string, ...) (*http.Request, error)
- func NewCreateOrganizationAdminCreateOrganizationPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteApiKeyAdminDeleteApiKeyPostRequest(server string, body DeleteApiKeyAdminDeleteApiKeyPostJSONRequestBody) (*http.Request, error)
- func NewDeleteApiKeyAdminDeleteApiKeyPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteCollectionCollectionsDeleteCollectionPostRequest(server string, ...) (*http.Request, error)
- func NewDeleteCollectionCollectionsDeleteCollectionPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteDocumentDocumentsDeleteDocumentPostRequest(server string, body DeleteDocumentDocumentsDeleteDocumentPostJSONRequestBody) (*http.Request, error)
- func NewDeleteDocumentDocumentsDeleteDocumentPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEmbedModelsEmbedPostRequest(server string, body EmbedModelsEmbedPostJSONRequestBody) (*http.Request, error)
- func NewEmbedModelsEmbedPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetCollectionListCollectionsGetCollectionListPostRequest(server string, ...) (*http.Request, error)
- func NewGetCollectionListCollectionsGetCollectionListPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetDocumentDocumentsGetDocumentGetRequest(server string, params *GetDocumentDocumentsGetDocumentGetParams) (*http.Request, error)
- func NewGetDocumentInfoDocumentsGetDocumentInfoPostRequest(server string, body GetDocumentInfoDocumentsGetDocumentInfoPostJSONRequestBody) (*http.Request, error)
- func NewGetDocumentInfoDocumentsGetDocumentInfoPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetDocumentInfoListDocumentsGetDocumentInfoListPostRequest(server string, ...) (*http.Request, error)
- func NewGetDocumentInfoListDocumentsGetDocumentInfoListPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetDocumentUsageUsageDocumentsPostRequest(server string, body GetDocumentUsageUsageDocumentsPostJSONRequestBody) (*http.Request, error)
- func NewGetDocumentUsageUsageDocumentsPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetModelsEmbedUsageUsageModelsEmbedPostRequest(server string, body GetModelsEmbedUsageUsageModelsEmbedPostJSONRequestBody) (*http.Request, error)
- func NewGetModelsEmbedUsageUsageModelsEmbedPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetModelsRerankerUsageUsageModelsRerankerPostRequest(server string, ...) (*http.Request, error)
- func NewGetModelsRerankerUsageUsageModelsRerankerPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetModelsUsageCountersUsageModelsCountersPostRequest(server string) (*http.Request, error)
- func NewGetOrganizationAdminGetOrganizationPostRequest(server string, body GetOrganizationAdminGetOrganizationPostJSONRequestBody) (*http.Request, error)
- func NewGetOrganizationAdminGetOrganizationPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetPageImageDocumentsGetPageImageGetRequest(server string, params *GetPageImageDocumentsGetPageImageGetParams) (*http.Request, error)
- func NewGetPageInfoDocumentsGetPageInfoPostRequest(server string, body GetPageInfoDocumentsGetPageInfoPostJSONRequestBody) (*http.Request, error)
- func NewGetPageInfoDocumentsGetPageInfoPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetQueryUsageUsageQueriesPostRequest(server string, body GetQueryUsageUsageQueriesPostJSONRequestBody) (*http.Request, error)
- func NewGetQueryUsageUsageQueriesPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetStatusStatusGetStatusPostRequest(server string, body GetStatusStatusGetStatusPostJSONRequestBody) (*http.Request, error)
- func NewGetStatusStatusGetStatusPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetUsageCountersUsageCountersPostRequest(server string) (*http.Request, error)
- func NewListApiKeysAdminListApiKeysPostRequest(server string, body ListApiKeysAdminListApiKeysPostJSONRequestBody) (*http.Request, error)
- func NewListApiKeysAdminListApiKeysPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRerankModelsRerankPostRequest(server string, body RerankModelsRerankPostJSONRequestBody) (*http.Request, error)
- func NewRerankModelsRerankPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewTopDocumentsQueriesTopDocumentsPostRequest(server string, body TopDocumentsQueriesTopDocumentsPostJSONRequestBody) (*http.Request, error)
- func NewTopDocumentsQueriesTopDocumentsPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewTopPagesQueriesTopPagesPostRequest(server string, body TopPagesQueriesTopPagesPostJSONRequestBody) (*http.Request, error)
- func NewTopPagesQueriesTopPagesPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewTopSnippetsQueriesTopSnippetsPostRequest(server string, body TopSnippetsQueriesTopSnippetsPostJSONRequestBody) (*http.Request, error)
- func NewTopSnippetsQueriesTopSnippetsPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateApiKeyAdminUpdateApiKeyPostRequest(server string, body UpdateApiKeyAdminUpdateApiKeyPostJSONRequestBody) (*http.Request, error)
- func NewUpdateApiKeyAdminUpdateApiKeyPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateDocumentDocumentsUpdateDocumentPostRequest(server string, body UpdateDocumentDocumentsUpdateDocumentPostJSONRequestBody) (*http.Request, error)
- func NewUpdateDocumentDocumentsUpdateDocumentPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateOrganizationAdminUpdateOrganizationPostRequest(server string, ...) (*http.Request, error)
- func NewUpdateOrganizationAdminUpdateOrganizationPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- type APIBinaryDocument
- type APIBinaryDocumentType
- type APIKeyInfo
- type APITextDocument
- type APITextDocumentType
- type APITextPagesDocument
- type APITextPagesDocumentType
- type AddAPIKeyRequest
- type AddAPIKeyResponse
- type AddApiKeyAdminAddApiKeyPostJSONRequestBody
- type AddApiKeyAdminAddApiKeyPostResponse
- func (r AddApiKeyAdminAddApiKeyPostResponse) ContentType() string
- func (r AddApiKeyAdminAddApiKeyPostResponse) GetBody() []byte
- func (r AddApiKeyAdminAddApiKeyPostResponse) GetJSON201() *AddAPIKeyResponse
- func (r AddApiKeyAdminAddApiKeyPostResponse) GetJSON422() *HTTPValidationError
- func (r AddApiKeyAdminAddApiKeyPostResponse) Status() string
- func (r AddApiKeyAdminAddApiKeyPostResponse) StatusCode() int
- type AddCollectionCollectionsAddCollectionPostJSONRequestBody
- type AddCollectionCollectionsAddCollectionPostResponse
- func (r AddCollectionCollectionsAddCollectionPostResponse) ContentType() string
- func (r AddCollectionCollectionsAddCollectionPostResponse) GetBody() []byte
- func (r AddCollectionCollectionsAddCollectionPostResponse) GetJSON201() *DefaultResponse
- func (r AddCollectionCollectionsAddCollectionPostResponse) GetJSON422() *HTTPValidationError
- func (r AddCollectionCollectionsAddCollectionPostResponse) Status() string
- func (r AddCollectionCollectionsAddCollectionPostResponse) StatusCode() int
- type AddCollectionRequest
- type AddDocumentDocumentsAddDocumentPostJSONRequestBody
- type AddDocumentDocumentsAddDocumentPostResponse
- func (r AddDocumentDocumentsAddDocumentPostResponse) ContentType() string
- func (r AddDocumentDocumentsAddDocumentPostResponse) GetBody() []byte
- func (r AddDocumentDocumentsAddDocumentPostResponse) GetJSON200() *DefaultResponse
- func (r AddDocumentDocumentsAddDocumentPostResponse) GetJSON422() *HTTPValidationError
- func (r AddDocumentDocumentsAddDocumentPostResponse) Status() string
- func (r AddDocumentDocumentsAddDocumentPostResponse) StatusCode() int
- type AddDocumentRequest
- type AddDocumentRequest_Content
- func (t AddDocumentRequest_Content) AsAPIBinaryDocument() (APIBinaryDocument, error)
- func (t AddDocumentRequest_Content) AsAPITextDocument() (APITextDocument, error)
- func (t AddDocumentRequest_Content) AsAPITextPagesDocument() (APITextPagesDocument, error)
- func (t AddDocumentRequest_Content) Discriminator() (string, error)
- func (t *AddDocumentRequest_Content) FromAPIBinaryDocument(v APIBinaryDocument) error
- func (t *AddDocumentRequest_Content) FromAPITextDocument(v APITextDocument) error
- func (t *AddDocumentRequest_Content) FromAPITextPagesDocument(v APITextPagesDocument) error
- func (t AddDocumentRequest_Content) MarshalJSON() ([]byte, error)
- func (t *AddDocumentRequest_Content) MergeAPIBinaryDocument(v APIBinaryDocument) error
- func (t *AddDocumentRequest_Content) MergeAPITextDocument(v APITextDocument) error
- func (t *AddDocumentRequest_Content) MergeAPITextPagesDocument(v APITextPagesDocument) error
- func (t *AddDocumentRequest_Content) UnmarshalJSON(b []byte) error
- func (t AddDocumentRequest_Content) ValueByDiscriminator() (interface{}, error)
- type AggregationWindow
- type Client
- func (c *Client) AddApiKeyAdminAddApiKeyPost(ctx context.Context, body AddApiKeyAdminAddApiKeyPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddApiKeyAdminAddApiKeyPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AddCollectionCollectionsAddCollectionPost(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) AddCollectionCollectionsAddCollectionPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AddDocumentDocumentsAddDocumentPost(ctx context.Context, body AddDocumentDocumentsAddDocumentPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddDocumentDocumentsAddDocumentPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateOrganizationAdminCreateOrganizationPost(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) CreateOrganizationAdminCreateOrganizationPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteApiKeyAdminDeleteApiKeyPost(ctx context.Context, body DeleteApiKeyAdminDeleteApiKeyPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteApiKeyAdminDeleteApiKeyPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteCollectionCollectionsDeleteCollectionPost(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) DeleteCollectionCollectionsDeleteCollectionPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteDocumentDocumentsDeleteDocumentPost(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) DeleteDocumentDocumentsDeleteDocumentPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EmbedModelsEmbedPost(ctx context.Context, body EmbedModelsEmbedPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EmbedModelsEmbedPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetCollectionListCollectionsGetCollectionListPost(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) GetCollectionListCollectionsGetCollectionListPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetDocumentDocumentsGetDocumentGet(ctx context.Context, params *GetDocumentDocumentsGetDocumentGetParams, ...) (*http.Response, error)
- func (c *Client) GetDocumentInfoDocumentsGetDocumentInfoPost(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) GetDocumentInfoDocumentsGetDocumentInfoPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetDocumentInfoListDocumentsGetDocumentInfoListPost(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) GetDocumentInfoListDocumentsGetDocumentInfoListPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetDocumentUsageUsageDocumentsPost(ctx context.Context, body GetDocumentUsageUsageDocumentsPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetDocumentUsageUsageDocumentsPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetModelsEmbedUsageUsageModelsEmbedPost(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) GetModelsEmbedUsageUsageModelsEmbedPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetModelsRerankerUsageUsageModelsRerankerPost(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) GetModelsRerankerUsageUsageModelsRerankerPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetModelsUsageCountersUsageModelsCountersPost(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetOrganizationAdminGetOrganizationPost(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) GetOrganizationAdminGetOrganizationPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetPageImageDocumentsGetPageImageGet(ctx context.Context, params *GetPageImageDocumentsGetPageImageGetParams, ...) (*http.Response, error)
- func (c *Client) GetPageInfoDocumentsGetPageInfoPost(ctx context.Context, body GetPageInfoDocumentsGetPageInfoPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetPageInfoDocumentsGetPageInfoPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetQueryUsageUsageQueriesPost(ctx context.Context, body GetQueryUsageUsageQueriesPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetQueryUsageUsageQueriesPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetStatusStatusGetStatusPost(ctx context.Context, body GetStatusStatusGetStatusPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetStatusStatusGetStatusPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetUsageCountersUsageCountersPost(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListApiKeysAdminListApiKeysPost(ctx context.Context, body ListApiKeysAdminListApiKeysPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ListApiKeysAdminListApiKeysPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RerankModelsRerankPost(ctx context.Context, body RerankModelsRerankPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RerankModelsRerankPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) TopDocumentsQueriesTopDocumentsPost(ctx context.Context, body TopDocumentsQueriesTopDocumentsPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) TopDocumentsQueriesTopDocumentsPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) TopPagesQueriesTopPagesPost(ctx context.Context, body TopPagesQueriesTopPagesPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) TopPagesQueriesTopPagesPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) TopSnippetsQueriesTopSnippetsPost(ctx context.Context, body TopSnippetsQueriesTopSnippetsPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) TopSnippetsQueriesTopSnippetsPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateApiKeyAdminUpdateApiKeyPost(ctx context.Context, body UpdateApiKeyAdminUpdateApiKeyPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateApiKeyAdminUpdateApiKeyPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateDocumentDocumentsUpdateDocumentPost(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) UpdateDocumentDocumentsUpdateDocumentPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateOrganizationAdminUpdateOrganizationPost(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) UpdateOrganizationAdminUpdateOrganizationPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AddApiKeyAdminAddApiKeyPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddApiKeyAdminAddApiKeyPostResponse, error)
- func (c *ClientWithResponses) AddApiKeyAdminAddApiKeyPostWithResponse(ctx context.Context, body AddApiKeyAdminAddApiKeyPostJSONRequestBody, ...) (*AddApiKeyAdminAddApiKeyPostResponse, error)
- func (c *ClientWithResponses) AddCollectionCollectionsAddCollectionPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddCollectionCollectionsAddCollectionPostResponse, error)
- func (c *ClientWithResponses) AddCollectionCollectionsAddCollectionPostWithResponse(ctx context.Context, ...) (*AddCollectionCollectionsAddCollectionPostResponse, error)
- func (c *ClientWithResponses) AddDocumentDocumentsAddDocumentPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddDocumentDocumentsAddDocumentPostResponse, error)
- func (c *ClientWithResponses) AddDocumentDocumentsAddDocumentPostWithResponse(ctx context.Context, body AddDocumentDocumentsAddDocumentPostJSONRequestBody, ...) (*AddDocumentDocumentsAddDocumentPostResponse, error)
- func (c *ClientWithResponses) CreateOrganizationAdminCreateOrganizationPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateOrganizationAdminCreateOrganizationPostResponse, error)
- func (c *ClientWithResponses) CreateOrganizationAdminCreateOrganizationPostWithResponse(ctx context.Context, ...) (*CreateOrganizationAdminCreateOrganizationPostResponse, error)
- func (c *ClientWithResponses) DeleteApiKeyAdminDeleteApiKeyPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteApiKeyAdminDeleteApiKeyPostResponse, error)
- func (c *ClientWithResponses) DeleteApiKeyAdminDeleteApiKeyPostWithResponse(ctx context.Context, body DeleteApiKeyAdminDeleteApiKeyPostJSONRequestBody, ...) (*DeleteApiKeyAdminDeleteApiKeyPostResponse, error)
- func (c *ClientWithResponses) DeleteCollectionCollectionsDeleteCollectionPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteCollectionCollectionsDeleteCollectionPostResponse, error)
- func (c *ClientWithResponses) DeleteCollectionCollectionsDeleteCollectionPostWithResponse(ctx context.Context, ...) (*DeleteCollectionCollectionsDeleteCollectionPostResponse, error)
- func (c *ClientWithResponses) DeleteDocumentDocumentsDeleteDocumentPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteDocumentDocumentsDeleteDocumentPostResponse, error)
- func (c *ClientWithResponses) DeleteDocumentDocumentsDeleteDocumentPostWithResponse(ctx context.Context, ...) (*DeleteDocumentDocumentsDeleteDocumentPostResponse, error)
- func (c *ClientWithResponses) EmbedModelsEmbedPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EmbedModelsEmbedPostResponse, error)
- func (c *ClientWithResponses) EmbedModelsEmbedPostWithResponse(ctx context.Context, body EmbedModelsEmbedPostJSONRequestBody, ...) (*EmbedModelsEmbedPostResponse, error)
- func (c *ClientWithResponses) GetCollectionListCollectionsGetCollectionListPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetCollectionListCollectionsGetCollectionListPostResponse, error)
- func (c *ClientWithResponses) GetCollectionListCollectionsGetCollectionListPostWithResponse(ctx context.Context, ...) (*GetCollectionListCollectionsGetCollectionListPostResponse, error)
- func (c *ClientWithResponses) GetDocumentDocumentsGetDocumentGetWithResponse(ctx context.Context, params *GetDocumentDocumentsGetDocumentGetParams, ...) (*GetDocumentDocumentsGetDocumentGetResponse, error)
- func (c *ClientWithResponses) GetDocumentInfoDocumentsGetDocumentInfoPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetDocumentInfoDocumentsGetDocumentInfoPostResponse, error)
- func (c *ClientWithResponses) GetDocumentInfoDocumentsGetDocumentInfoPostWithResponse(ctx context.Context, ...) (*GetDocumentInfoDocumentsGetDocumentInfoPostResponse, error)
- func (c *ClientWithResponses) GetDocumentInfoListDocumentsGetDocumentInfoListPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse, error)
- func (c *ClientWithResponses) GetDocumentInfoListDocumentsGetDocumentInfoListPostWithResponse(ctx context.Context, ...) (*GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse, error)
- func (c *ClientWithResponses) GetDocumentUsageUsageDocumentsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetDocumentUsageUsageDocumentsPostResponse, error)
- func (c *ClientWithResponses) GetDocumentUsageUsageDocumentsPostWithResponse(ctx context.Context, body GetDocumentUsageUsageDocumentsPostJSONRequestBody, ...) (*GetDocumentUsageUsageDocumentsPostResponse, error)
- func (c *ClientWithResponses) GetModelsEmbedUsageUsageModelsEmbedPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetModelsEmbedUsageUsageModelsEmbedPostResponse, error)
- func (c *ClientWithResponses) GetModelsEmbedUsageUsageModelsEmbedPostWithResponse(ctx context.Context, ...) (*GetModelsEmbedUsageUsageModelsEmbedPostResponse, error)
- func (c *ClientWithResponses) GetModelsRerankerUsageUsageModelsRerankerPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetModelsRerankerUsageUsageModelsRerankerPostResponse, error)
- func (c *ClientWithResponses) GetModelsRerankerUsageUsageModelsRerankerPostWithResponse(ctx context.Context, ...) (*GetModelsRerankerUsageUsageModelsRerankerPostResponse, error)
- func (c *ClientWithResponses) GetModelsUsageCountersUsageModelsCountersPostWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetModelsUsageCountersUsageModelsCountersPostResponse, error)
- func (c *ClientWithResponses) GetOrganizationAdminGetOrganizationPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetOrganizationAdminGetOrganizationPostResponse, error)
- func (c *ClientWithResponses) GetOrganizationAdminGetOrganizationPostWithResponse(ctx context.Context, ...) (*GetOrganizationAdminGetOrganizationPostResponse, error)
- func (c *ClientWithResponses) GetPageImageDocumentsGetPageImageGetWithResponse(ctx context.Context, params *GetPageImageDocumentsGetPageImageGetParams, ...) (*GetPageImageDocumentsGetPageImageGetResponse, error)
- func (c *ClientWithResponses) GetPageInfoDocumentsGetPageInfoPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetPageInfoDocumentsGetPageInfoPostResponse, error)
- func (c *ClientWithResponses) GetPageInfoDocumentsGetPageInfoPostWithResponse(ctx context.Context, body GetPageInfoDocumentsGetPageInfoPostJSONRequestBody, ...) (*GetPageInfoDocumentsGetPageInfoPostResponse, error)
- func (c *ClientWithResponses) GetQueryUsageUsageQueriesPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetQueryUsageUsageQueriesPostResponse, error)
- func (c *ClientWithResponses) GetQueryUsageUsageQueriesPostWithResponse(ctx context.Context, body GetQueryUsageUsageQueriesPostJSONRequestBody, ...) (*GetQueryUsageUsageQueriesPostResponse, error)
- func (c *ClientWithResponses) GetStatusStatusGetStatusPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetStatusStatusGetStatusPostResponse, error)
- func (c *ClientWithResponses) GetStatusStatusGetStatusPostWithResponse(ctx context.Context, body GetStatusStatusGetStatusPostJSONRequestBody, ...) (*GetStatusStatusGetStatusPostResponse, error)
- func (c *ClientWithResponses) GetUsageCountersUsageCountersPostWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUsageCountersUsageCountersPostResponse, error)
- func (c *ClientWithResponses) ListApiKeysAdminListApiKeysPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ListApiKeysAdminListApiKeysPostResponse, error)
- func (c *ClientWithResponses) ListApiKeysAdminListApiKeysPostWithResponse(ctx context.Context, body ListApiKeysAdminListApiKeysPostJSONRequestBody, ...) (*ListApiKeysAdminListApiKeysPostResponse, error)
- func (c *ClientWithResponses) RerankModelsRerankPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RerankModelsRerankPostResponse, error)
- func (c *ClientWithResponses) RerankModelsRerankPostWithResponse(ctx context.Context, body RerankModelsRerankPostJSONRequestBody, ...) (*RerankModelsRerankPostResponse, error)
- func (c *ClientWithResponses) TopDocumentsQueriesTopDocumentsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*TopDocumentsQueriesTopDocumentsPostResponse, error)
- func (c *ClientWithResponses) TopDocumentsQueriesTopDocumentsPostWithResponse(ctx context.Context, body TopDocumentsQueriesTopDocumentsPostJSONRequestBody, ...) (*TopDocumentsQueriesTopDocumentsPostResponse, error)
- func (c *ClientWithResponses) TopPagesQueriesTopPagesPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*TopPagesQueriesTopPagesPostResponse, error)
- func (c *ClientWithResponses) TopPagesQueriesTopPagesPostWithResponse(ctx context.Context, body TopPagesQueriesTopPagesPostJSONRequestBody, ...) (*TopPagesQueriesTopPagesPostResponse, error)
- func (c *ClientWithResponses) TopSnippetsQueriesTopSnippetsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*TopSnippetsQueriesTopSnippetsPostResponse, error)
- func (c *ClientWithResponses) TopSnippetsQueriesTopSnippetsPostWithResponse(ctx context.Context, body TopSnippetsQueriesTopSnippetsPostJSONRequestBody, ...) (*TopSnippetsQueriesTopSnippetsPostResponse, error)
- func (c *ClientWithResponses) UpdateApiKeyAdminUpdateApiKeyPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpdateApiKeyAdminUpdateApiKeyPostResponse, error)
- func (c *ClientWithResponses) UpdateApiKeyAdminUpdateApiKeyPostWithResponse(ctx context.Context, body UpdateApiKeyAdminUpdateApiKeyPostJSONRequestBody, ...) (*UpdateApiKeyAdminUpdateApiKeyPostResponse, error)
- func (c *ClientWithResponses) UpdateDocumentDocumentsUpdateDocumentPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpdateDocumentDocumentsUpdateDocumentPostResponse, error)
- func (c *ClientWithResponses) UpdateDocumentDocumentsUpdateDocumentPostWithResponse(ctx context.Context, ...) (*UpdateDocumentDocumentsUpdateDocumentPostResponse, error)
- func (c *ClientWithResponses) UpdateOrganizationAdminUpdateOrganizationPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpdateOrganizationAdminUpdateOrganizationPostResponse, error)
- func (c *ClientWithResponses) UpdateOrganizationAdminUpdateOrganizationPostWithResponse(ctx context.Context, ...) (*UpdateOrganizationAdminUpdateOrganizationPostResponse, error)
- type ClientWithResponsesInterface
- type CreateOrganizationAdminCreateOrganizationPostJSONRequestBody
- type CreateOrganizationAdminCreateOrganizationPostResponse
- func (r CreateOrganizationAdminCreateOrganizationPostResponse) ContentType() string
- func (r CreateOrganizationAdminCreateOrganizationPostResponse) GetBody() []byte
- func (r CreateOrganizationAdminCreateOrganizationPostResponse) GetJSON201() *DefaultResponse
- func (r CreateOrganizationAdminCreateOrganizationPostResponse) GetJSON422() *HTTPValidationError
- func (r CreateOrganizationAdminCreateOrganizationPostResponse) Status() string
- func (r CreateOrganizationAdminCreateOrganizationPostResponse) StatusCode() int
- type CreateOrganizationRequest
- type DBAPIKeyPermission
- type DefaultResponse
- type DeleteAPIKeyRequest
- type DeleteApiKeyAdminDeleteApiKeyPostJSONRequestBody
- type DeleteApiKeyAdminDeleteApiKeyPostResponse
- func (r DeleteApiKeyAdminDeleteApiKeyPostResponse) ContentType() string
- func (r DeleteApiKeyAdminDeleteApiKeyPostResponse) GetBody() []byte
- func (r DeleteApiKeyAdminDeleteApiKeyPostResponse) GetJSON200() *DefaultResponse
- func (r DeleteApiKeyAdminDeleteApiKeyPostResponse) GetJSON422() *HTTPValidationError
- func (r DeleteApiKeyAdminDeleteApiKeyPostResponse) Status() string
- func (r DeleteApiKeyAdminDeleteApiKeyPostResponse) StatusCode() int
- type DeleteCollectionCollectionsDeleteCollectionPostJSONRequestBody
- type DeleteCollectionCollectionsDeleteCollectionPostResponse
- func (r DeleteCollectionCollectionsDeleteCollectionPostResponse) ContentType() string
- func (r DeleteCollectionCollectionsDeleteCollectionPostResponse) GetBody() []byte
- func (r DeleteCollectionCollectionsDeleteCollectionPostResponse) GetJSON200() *DefaultResponse
- func (r DeleteCollectionCollectionsDeleteCollectionPostResponse) GetJSON422() *HTTPValidationError
- func (r DeleteCollectionCollectionsDeleteCollectionPostResponse) Status() string
- func (r DeleteCollectionCollectionsDeleteCollectionPostResponse) StatusCode() int
- type DeleteCollectionRequest
- type DeleteDocumentDocumentsDeleteDocumentPostJSONRequestBody
- type DeleteDocumentDocumentsDeleteDocumentPostResponse
- func (r DeleteDocumentDocumentsDeleteDocumentPostResponse) ContentType() string
- func (r DeleteDocumentDocumentsDeleteDocumentPostResponse) GetBody() []byte
- func (r DeleteDocumentDocumentsDeleteDocumentPostResponse) GetJSON200() *DeleteDocumentResponse
- func (r DeleteDocumentDocumentsDeleteDocumentPostResponse) GetJSON422() *HTTPValidationError
- func (r DeleteDocumentDocumentsDeleteDocumentPostResponse) Status() string
- func (r DeleteDocumentDocumentsDeleteDocumentPostResponse) StatusCode() int
- type DeleteDocumentRequest
- type DeleteDocumentRequestPath0
- type DeleteDocumentRequestPath1
- type DeleteDocumentRequest_Path
- func (t DeleteDocumentRequest_Path) AsDeleteDocumentRequestPath0() (DeleteDocumentRequestPath0, error)
- func (t DeleteDocumentRequest_Path) AsDeleteDocumentRequestPath1() (DeleteDocumentRequestPath1, error)
- func (t *DeleteDocumentRequest_Path) FromDeleteDocumentRequestPath0(v DeleteDocumentRequestPath0) error
- func (t *DeleteDocumentRequest_Path) FromDeleteDocumentRequestPath1(v DeleteDocumentRequestPath1) error
- func (t DeleteDocumentRequest_Path) MarshalJSON() ([]byte, error)
- func (t *DeleteDocumentRequest_Path) MergeDeleteDocumentRequestPath0(v DeleteDocumentRequestPath0) error
- func (t *DeleteDocumentRequest_Path) MergeDeleteDocumentRequestPath1(v DeleteDocumentRequestPath1) error
- func (t *DeleteDocumentRequest_Path) UnmarshalJSON(b []byte) error
- type DeleteDocumentResponse
- type DocumentEventEnum
- type DocumentIndexStatus
- type DocumentMetadataJson
- type DocumentMetadataJson0
- type DocumentMetadataJson1
- type DocumentMetadataJson_AdditionalProperties
- func (t DocumentMetadataJson_AdditionalProperties) AsDocumentMetadataJson0() (DocumentMetadataJson0, error)
- func (t DocumentMetadataJson_AdditionalProperties) AsDocumentMetadataJson1() (DocumentMetadataJson1, error)
- func (t *DocumentMetadataJson_AdditionalProperties) FromDocumentMetadataJson0(v DocumentMetadataJson0) error
- func (t *DocumentMetadataJson_AdditionalProperties) FromDocumentMetadataJson1(v DocumentMetadataJson1) error
- func (t DocumentMetadataJson_AdditionalProperties) MarshalJSON() ([]byte, error)
- func (t *DocumentMetadataJson_AdditionalProperties) MergeDocumentMetadataJson0(v DocumentMetadataJson0) error
- func (t *DocumentMetadataJson_AdditionalProperties) MergeDocumentMetadataJson1(v DocumentMetadataJson1) error
- func (t *DocumentMetadataJson_AdditionalProperties) UnmarshalJSON(b []byte) error
- type DocumentMetadataResponse
- type DocumentResponse
- type DocumentRetrievalResponse
- type DocumentUsageResponse
- type EmbedModelsEmbedPostJSONRequestBody
- type EmbedModelsEmbedPostResponse
- func (r EmbedModelsEmbedPostResponse) ContentType() string
- func (r EmbedModelsEmbedPostResponse) GetBody() []byte
- func (r EmbedModelsEmbedPostResponse) GetJSON200() *EmbedResponse
- func (r EmbedModelsEmbedPostResponse) GetJSON422() *HTTPValidationError
- func (r EmbedModelsEmbedPostResponse) Status() string
- func (r EmbedModelsEmbedPostResponse) StatusCode() int
- type EmbedRequest
- type EmbedRequestEncodingFormat
- type EmbedRequestInput0
- type EmbedRequestInput1
- type EmbedRequestInputType
- type EmbedRequestLatency
- type EmbedRequest_Input
- func (t EmbedRequest_Input) AsEmbedRequestInput0() (EmbedRequestInput0, error)
- func (t EmbedRequest_Input) AsEmbedRequestInput1() (EmbedRequestInput1, error)
- func (t *EmbedRequest_Input) FromEmbedRequestInput0(v EmbedRequestInput0) error
- func (t *EmbedRequest_Input) FromEmbedRequestInput1(v EmbedRequestInput1) error
- func (t EmbedRequest_Input) MarshalJSON() ([]byte, error)
- func (t *EmbedRequest_Input) MergeEmbedRequestInput0(v EmbedRequestInput0) error
- func (t *EmbedRequest_Input) MergeEmbedRequestInput1(v EmbedRequestInput1) error
- func (t *EmbedRequest_Input) UnmarshalJSON(b []byte) error
- type EmbedResponse
- type EmbedResult
- type EmbedResultEmbedding0
- type EmbedResultEmbedding1
- type EmbedResult_Embedding
- func (t EmbedResult_Embedding) AsEmbedResultEmbedding0() (EmbedResultEmbedding0, error)
- func (t EmbedResult_Embedding) AsEmbedResultEmbedding1() (EmbedResultEmbedding1, error)
- func (t *EmbedResult_Embedding) FromEmbedResultEmbedding0(v EmbedResultEmbedding0) error
- func (t *EmbedResult_Embedding) FromEmbedResultEmbedding1(v EmbedResultEmbedding1) error
- func (t EmbedResult_Embedding) MarshalJSON() ([]byte, error)
- func (t *EmbedResult_Embedding) MergeEmbedResultEmbedding0(v EmbedResultEmbedding0) error
- func (t *EmbedResult_Embedding) MergeEmbedResultEmbedding1(v EmbedResultEmbedding1) error
- func (t *EmbedResult_Embedding) UnmarshalJSON(b []byte) error
- type EmbedUsage
- type EmbedUsageResponse
- type EmptyRequest
- type GetCollectionListCollectionsGetCollectionListPostJSONBody
- type GetCollectionListCollectionsGetCollectionListPostJSONRequestBody
- type GetCollectionListCollectionsGetCollectionListPostResponse
- func (r GetCollectionListCollectionsGetCollectionListPostResponse) ContentType() string
- func (r GetCollectionListCollectionsGetCollectionListPostResponse) GetBody() []byte
- func (r GetCollectionListCollectionsGetCollectionListPostResponse) GetJSON200() *GetCollectionListResponse
- func (r GetCollectionListCollectionsGetCollectionListPostResponse) GetJSON422() *HTTPValidationError
- func (r GetCollectionListCollectionsGetCollectionListPostResponse) Status() string
- func (r GetCollectionListCollectionsGetCollectionListPostResponse) StatusCode() int
- type GetCollectionListResponse
- type GetDocumentDocumentsGetDocumentGetParams
- type GetDocumentDocumentsGetDocumentGetResponse
- func (r GetDocumentDocumentsGetDocumentGetResponse) ContentType() string
- func (r GetDocumentDocumentsGetDocumentGetResponse) GetBody() []byte
- func (r GetDocumentDocumentsGetDocumentGetResponse) GetJSON200() *json.RawMessage
- func (r GetDocumentDocumentsGetDocumentGetResponse) GetJSON422() *HTTPValidationError
- func (r GetDocumentDocumentsGetDocumentGetResponse) Status() string
- func (r GetDocumentDocumentsGetDocumentGetResponse) StatusCode() int
- type GetDocumentInfoDocumentsGetDocumentInfoPostJSONRequestBody
- type GetDocumentInfoDocumentsGetDocumentInfoPostResponse
- func (r GetDocumentInfoDocumentsGetDocumentInfoPostResponse) ContentType() string
- func (r GetDocumentInfoDocumentsGetDocumentInfoPostResponse) GetBody() []byte
- func (r GetDocumentInfoDocumentsGetDocumentInfoPostResponse) GetJSON200() *GetDocumentInfoResponse
- func (r GetDocumentInfoDocumentsGetDocumentInfoPostResponse) GetJSON422() *HTTPValidationError
- func (r GetDocumentInfoDocumentsGetDocumentInfoPostResponse) Status() string
- func (r GetDocumentInfoDocumentsGetDocumentInfoPostResponse) StatusCode() int
- type GetDocumentInfoListDocumentsGetDocumentInfoListPostJSONRequestBody
- type GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse
- func (r GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse) ContentType() string
- func (r GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse) GetBody() []byte
- func (r GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse) GetJSON200() *GetDocumentInfoListResponse
- func (r GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse) GetJSON422() *HTTPValidationError
- func (r GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse) Status() string
- func (r GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse) StatusCode() int
- type GetDocumentInfoListRequest
- type GetDocumentInfoListResponse
- type GetDocumentInfoRequest
- type GetDocumentInfoResponse
- type GetDocumentUsageUsageDocumentsPostJSONRequestBody
- type GetDocumentUsageUsageDocumentsPostResponse
- func (r GetDocumentUsageUsageDocumentsPostResponse) ContentType() string
- func (r GetDocumentUsageUsageDocumentsPostResponse) GetBody() []byte
- func (r GetDocumentUsageUsageDocumentsPostResponse) GetJSON200() *[]DocumentUsageResponse
- func (r GetDocumentUsageUsageDocumentsPostResponse) GetJSON422() *HTTPValidationError
- func (r GetDocumentUsageUsageDocumentsPostResponse) Status() string
- func (r GetDocumentUsageUsageDocumentsPostResponse) StatusCode() int
- type GetModelsEmbedUsageUsageModelsEmbedPostJSONRequestBody
- type GetModelsEmbedUsageUsageModelsEmbedPostResponse
- func (r GetModelsEmbedUsageUsageModelsEmbedPostResponse) ContentType() string
- func (r GetModelsEmbedUsageUsageModelsEmbedPostResponse) GetBody() []byte
- func (r GetModelsEmbedUsageUsageModelsEmbedPostResponse) GetJSON200() *[]EmbedUsageResponse
- func (r GetModelsEmbedUsageUsageModelsEmbedPostResponse) GetJSON422() *HTTPValidationError
- func (r GetModelsEmbedUsageUsageModelsEmbedPostResponse) Status() string
- func (r GetModelsEmbedUsageUsageModelsEmbedPostResponse) StatusCode() int
- type GetModelsRerankerUsageUsageModelsRerankerPostJSONRequestBody
- type GetModelsRerankerUsageUsageModelsRerankerPostResponse
- func (r GetModelsRerankerUsageUsageModelsRerankerPostResponse) ContentType() string
- func (r GetModelsRerankerUsageUsageModelsRerankerPostResponse) GetBody() []byte
- func (r GetModelsRerankerUsageUsageModelsRerankerPostResponse) GetJSON200() *[]RerankUsageResponse
- func (r GetModelsRerankerUsageUsageModelsRerankerPostResponse) GetJSON422() *HTTPValidationError
- func (r GetModelsRerankerUsageUsageModelsRerankerPostResponse) Status() string
- func (r GetModelsRerankerUsageUsageModelsRerankerPostResponse) StatusCode() int
- type GetModelsUsageCountersUsageModelsCountersPostResponse
- func (r GetModelsUsageCountersUsageModelsCountersPostResponse) ContentType() string
- func (r GetModelsUsageCountersUsageModelsCountersPostResponse) GetBody() []byte
- func (r GetModelsUsageCountersUsageModelsCountersPostResponse) GetJSON200() *ModelsUsageCountersResponse
- func (r GetModelsUsageCountersUsageModelsCountersPostResponse) GetJSON422() *HTTPValidationError
- func (r GetModelsUsageCountersUsageModelsCountersPostResponse) Status() string
- func (r GetModelsUsageCountersUsageModelsCountersPostResponse) StatusCode() int
- type GetOrganizationAdminGetOrganizationPostJSONRequestBody
- type GetOrganizationAdminGetOrganizationPostResponse
- func (r GetOrganizationAdminGetOrganizationPostResponse) ContentType() string
- func (r GetOrganizationAdminGetOrganizationPostResponse) GetBody() []byte
- func (r GetOrganizationAdminGetOrganizationPostResponse) GetJSON200() *GetOrganizationResponse
- func (r GetOrganizationAdminGetOrganizationPostResponse) GetJSON422() *HTTPValidationError
- func (r GetOrganizationAdminGetOrganizationPostResponse) Status() string
- func (r GetOrganizationAdminGetOrganizationPostResponse) StatusCode() int
- type GetOrganizationRequest
- type GetOrganizationResponse
- type GetPageImageDocumentsGetPageImageGetParams
- type GetPageImageDocumentsGetPageImageGetResponse
- func (r GetPageImageDocumentsGetPageImageGetResponse) ContentType() string
- func (r GetPageImageDocumentsGetPageImageGetResponse) GetBody() []byte
- func (r GetPageImageDocumentsGetPageImageGetResponse) GetJSON200() *json.RawMessage
- func (r GetPageImageDocumentsGetPageImageGetResponse) GetJSON422() *HTTPValidationError
- func (r GetPageImageDocumentsGetPageImageGetResponse) Status() string
- func (r GetPageImageDocumentsGetPageImageGetResponse) StatusCode() int
- type GetPageInfoDocumentsGetPageInfoPostJSONRequestBody
- type GetPageInfoDocumentsGetPageInfoPostResponse
- func (r GetPageInfoDocumentsGetPageInfoPostResponse) ContentType() string
- func (r GetPageInfoDocumentsGetPageInfoPostResponse) GetBody() []byte
- func (r GetPageInfoDocumentsGetPageInfoPostResponse) GetJSON200() *GetPageInfoResponse
- func (r GetPageInfoDocumentsGetPageInfoPostResponse) GetJSON422() *HTTPValidationError
- func (r GetPageInfoDocumentsGetPageInfoPostResponse) Status() string
- func (r GetPageInfoDocumentsGetPageInfoPostResponse) StatusCode() int
- type GetPageInfoRequest
- type GetPageInfoResponse
- type GetQueryUsageUsageQueriesPostJSONRequestBody
- type GetQueryUsageUsageQueriesPostResponse
- func (r GetQueryUsageUsageQueriesPostResponse) ContentType() string
- func (r GetQueryUsageUsageQueriesPostResponse) GetBody() []byte
- func (r GetQueryUsageUsageQueriesPostResponse) GetJSON200() *[]QueryUsageResponse
- func (r GetQueryUsageUsageQueriesPostResponse) GetJSON422() *HTTPValidationError
- func (r GetQueryUsageUsageQueriesPostResponse) Status() string
- func (r GetQueryUsageUsageQueriesPostResponse) StatusCode() int
- type GetStatusStatusGetStatusPostJSONRequestBody
- type GetStatusStatusGetStatusPostResponse
- func (r GetStatusStatusGetStatusPostResponse) ContentType() string
- func (r GetStatusStatusGetStatusPostResponse) GetBody() []byte
- func (r GetStatusStatusGetStatusPostResponse) GetJSON200() *StatusResponse
- func (r GetStatusStatusGetStatusPostResponse) GetJSON422() *HTTPValidationError
- func (r GetStatusStatusGetStatusPostResponse) Status() string
- func (r GetStatusStatusGetStatusPostResponse) StatusCode() int
- type GetUsageCountersUsageCountersPostResponse
- func (r GetUsageCountersUsageCountersPostResponse) ContentType() string
- func (r GetUsageCountersUsageCountersPostResponse) GetBody() []byte
- func (r GetUsageCountersUsageCountersPostResponse) GetJSON200() *UsageCountersResponse
- func (r GetUsageCountersUsageCountersPostResponse) GetJSON422() *HTTPValidationError
- func (r GetUsageCountersUsageCountersPostResponse) Status() string
- func (r GetUsageCountersUsageCountersPostResponse) StatusCode() int
- type HTTPValidationError
- type HttpRequestDoer
- type ListAPIKeysRequest
- type ListAPIKeysResponse
- type ListApiKeysAdminListApiKeysPostJSONRequestBody
- type ListApiKeysAdminListApiKeysPostResponse
- func (r ListApiKeysAdminListApiKeysPostResponse) ContentType() string
- func (r ListApiKeysAdminListApiKeysPostResponse) GetBody() []byte
- func (r ListApiKeysAdminListApiKeysPostResponse) GetJSON200() *ListAPIKeysResponse
- func (r ListApiKeysAdminListApiKeysPostResponse) GetJSON422() *HTTPValidationError
- func (r ListApiKeysAdminListApiKeysPostResponse) Status() string
- func (r ListApiKeysAdminListApiKeysPostResponse) StatusCode() int
- type ModelsUsageCountersResponse
- type ModelsUsageStats
- type PageResponse
- type PageRetrievalResponse
- type QueryEnum
- type QueryUsageResponse
- type RequestEditorFn
- type RerankModelsRerankPostJSONRequestBody
- type RerankModelsRerankPostResponse
- func (r RerankModelsRerankPostResponse) ContentType() string
- func (r RerankModelsRerankPostResponse) GetBody() []byte
- func (r RerankModelsRerankPostResponse) GetJSON200() *RerankResponse
- func (r RerankModelsRerankPostResponse) GetJSON422() *HTTPValidationError
- func (r RerankModelsRerankPostResponse) Status() string
- func (r RerankModelsRerankPostResponse) StatusCode() int
- type RerankRequest
- type RerankRequestLatency
- type RerankResponse
- type RerankResponseActualLatencyMode
- type RerankResult
- type RerankUsageResponse
- type SnippetResponse
- type StatusRequest
- type StatusResponse
- type StrJson
- func (t StrJson) AsStrJson0() (StrJson0, error)
- func (t StrJson) AsStrJson1() (StrJson1, error)
- func (t StrJson) AsStrJson2() (StrJson2, error)
- func (t StrJson) AsStrJson3() (StrJson3, error)
- func (t *StrJson) FromStrJson0(v StrJson0) error
- func (t *StrJson) FromStrJson1(v StrJson1) error
- func (t *StrJson) FromStrJson2(v StrJson2) error
- func (t *StrJson) FromStrJson3(v StrJson3) error
- func (t StrJson) MarshalJSON() ([]byte, error)
- func (t *StrJson) MergeStrJson0(v StrJson0) error
- func (t *StrJson) MergeStrJson1(v StrJson1) error
- func (t *StrJson) MergeStrJson2(v StrJson2) error
- func (t *StrJson) MergeStrJson3(v StrJson3) error
- func (t *StrJson) UnmarshalJSON(b []byte) error
- type StrJson0
- type StrJson1
- type StrJson2
- type StrJson3
- type SubscriptionType
- type TopDocumentsQueriesTopDocumentsPostJSONRequestBody
- type TopDocumentsQueriesTopDocumentsPostResponse
- func (r TopDocumentsQueriesTopDocumentsPostResponse) ContentType() string
- func (r TopDocumentsQueriesTopDocumentsPostResponse) GetBody() []byte
- func (r TopDocumentsQueriesTopDocumentsPostResponse) GetJSON200() *TopDocumentsResponse
- func (r TopDocumentsQueriesTopDocumentsPostResponse) GetJSON422() *HTTPValidationError
- func (r TopDocumentsQueriesTopDocumentsPostResponse) Status() string
- func (r TopDocumentsQueriesTopDocumentsPostResponse) StatusCode() int
- type TopDocumentsRequest
- type TopDocumentsRequestLatencyMode
- type TopDocumentsResponse
- type TopPagesQueriesTopPagesPostJSONRequestBody
- type TopPagesQueriesTopPagesPostResponse
- func (r TopPagesQueriesTopPagesPostResponse) ContentType() string
- func (r TopPagesQueriesTopPagesPostResponse) GetBody() []byte
- func (r TopPagesQueriesTopPagesPostResponse) GetJSON200() *TopPagesResponse
- func (r TopPagesQueriesTopPagesPostResponse) GetJSON422() *HTTPValidationError
- func (r TopPagesQueriesTopPagesPostResponse) Status() string
- func (r TopPagesQueriesTopPagesPostResponse) StatusCode() int
- type TopPagesRequest
- type TopPagesRequestLatencyMode
- type TopPagesResponse
- type TopSnippetsQueriesTopSnippetsPostJSONRequestBody
- type TopSnippetsQueriesTopSnippetsPostResponse
- func (r TopSnippetsQueriesTopSnippetsPostResponse) ContentType() string
- func (r TopSnippetsQueriesTopSnippetsPostResponse) GetBody() []byte
- func (r TopSnippetsQueriesTopSnippetsPostResponse) GetJSON200() *TopSnippetsResponse
- func (r TopSnippetsQueriesTopSnippetsPostResponse) GetJSON422() *HTTPValidationError
- func (r TopSnippetsQueriesTopSnippetsPostResponse) Status() string
- func (r TopSnippetsQueriesTopSnippetsPostResponse) StatusCode() int
- type TopSnippetsRequest
- type TopSnippetsResponse
- type UpdateAPIKeyRequest
- type UpdateApiKeyAdminUpdateApiKeyPostJSONRequestBody
- type UpdateApiKeyAdminUpdateApiKeyPostResponse
- func (r UpdateApiKeyAdminUpdateApiKeyPostResponse) ContentType() string
- func (r UpdateApiKeyAdminUpdateApiKeyPostResponse) GetBody() []byte
- func (r UpdateApiKeyAdminUpdateApiKeyPostResponse) GetJSON200() *DefaultResponse
- func (r UpdateApiKeyAdminUpdateApiKeyPostResponse) GetJSON422() *HTTPValidationError
- func (r UpdateApiKeyAdminUpdateApiKeyPostResponse) Status() string
- func (r UpdateApiKeyAdminUpdateApiKeyPostResponse) StatusCode() int
- type UpdateDocumentDocumentsUpdateDocumentPostJSONRequestBody
- type UpdateDocumentDocumentsUpdateDocumentPostResponse
- func (r UpdateDocumentDocumentsUpdateDocumentPostResponse) ContentType() string
- func (r UpdateDocumentDocumentsUpdateDocumentPostResponse) GetBody() []byte
- func (r UpdateDocumentDocumentsUpdateDocumentPostResponse) GetJSON200() *DefaultResponse
- func (r UpdateDocumentDocumentsUpdateDocumentPostResponse) GetJSON422() *HTTPValidationError
- func (r UpdateDocumentDocumentsUpdateDocumentPostResponse) Status() string
- func (r UpdateDocumentDocumentsUpdateDocumentPostResponse) StatusCode() int
- type UpdateDocumentRequest
- type UpdateDocumentRequestIndexStatus
- type UpdateOrganizationAdminUpdateOrganizationPostJSONRequestBody
- type UpdateOrganizationAdminUpdateOrganizationPostResponse
- func (r UpdateOrganizationAdminUpdateOrganizationPostResponse) ContentType() string
- func (r UpdateOrganizationAdminUpdateOrganizationPostResponse) GetBody() []byte
- func (r UpdateOrganizationAdminUpdateOrganizationPostResponse) GetJSON200() *DefaultResponse
- func (r UpdateOrganizationAdminUpdateOrganizationPostResponse) GetJSON422() *HTTPValidationError
- func (r UpdateOrganizationAdminUpdateOrganizationPostResponse) Status() string
- func (r UpdateOrganizationAdminUpdateOrganizationPostResponse) StatusCode() int
- type UpdateOrganizationRequest
- type UsageCountersResponse
- type UsageMetric
- type UsageRequest
- type UsageStats
- type ValidationError
- type ValidationErrorLoc0
- type ValidationErrorLoc1
- type ValidationError_Loc_Item
- func (t ValidationError_Loc_Item) AsValidationErrorLoc0() (ValidationErrorLoc0, error)
- func (t ValidationError_Loc_Item) AsValidationErrorLoc1() (ValidationErrorLoc1, error)
- func (t *ValidationError_Loc_Item) FromValidationErrorLoc0(v ValidationErrorLoc0) error
- func (t *ValidationError_Loc_Item) FromValidationErrorLoc1(v ValidationErrorLoc1) error
- func (t ValidationError_Loc_Item) MarshalJSON() ([]byte, error)
- func (t *ValidationError_Loc_Item) MergeValidationErrorLoc0(v ValidationErrorLoc0) error
- func (t *ValidationError_Loc_Item) MergeValidationErrorLoc1(v ValidationErrorLoc1) error
- func (t *ValidationError_Loc_Item) UnmarshalJSON(b []byte) error
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAddApiKeyAdminAddApiKeyPostRequest ¶
func NewAddApiKeyAdminAddApiKeyPostRequest(server string, body AddApiKeyAdminAddApiKeyPostJSONRequestBody) (*http.Request, error)
NewAddApiKeyAdminAddApiKeyPostRequest calls the generic AddApiKeyAdminAddApiKeyPost builder with application/json body
func NewAddApiKeyAdminAddApiKeyPostRequestWithBody ¶
func NewAddApiKeyAdminAddApiKeyPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAddApiKeyAdminAddApiKeyPostRequestWithBody constructs an http.Request for the AddApiKeyAdminAddApiKeyPost method, with any body, and a specified content type
func NewAddCollectionCollectionsAddCollectionPostRequest ¶
func NewAddCollectionCollectionsAddCollectionPostRequest(server string, body AddCollectionCollectionsAddCollectionPostJSONRequestBody) (*http.Request, error)
NewAddCollectionCollectionsAddCollectionPostRequest calls the generic AddCollectionCollectionsAddCollectionPost builder with application/json body
func NewAddCollectionCollectionsAddCollectionPostRequestWithBody ¶
func NewAddCollectionCollectionsAddCollectionPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAddCollectionCollectionsAddCollectionPostRequestWithBody constructs an http.Request for the AddCollectionCollectionsAddCollectionPost method, with any body, and a specified content type
func NewAddDocumentDocumentsAddDocumentPostRequest ¶
func NewAddDocumentDocumentsAddDocumentPostRequest(server string, body AddDocumentDocumentsAddDocumentPostJSONRequestBody) (*http.Request, error)
NewAddDocumentDocumentsAddDocumentPostRequest calls the generic AddDocumentDocumentsAddDocumentPost builder with application/json body
func NewAddDocumentDocumentsAddDocumentPostRequestWithBody ¶
func NewAddDocumentDocumentsAddDocumentPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAddDocumentDocumentsAddDocumentPostRequestWithBody constructs an http.Request for the AddDocumentDocumentsAddDocumentPost method, with any body, and a specified content type
func NewCreateOrganizationAdminCreateOrganizationPostRequest ¶
func NewCreateOrganizationAdminCreateOrganizationPostRequest(server string, body CreateOrganizationAdminCreateOrganizationPostJSONRequestBody) (*http.Request, error)
NewCreateOrganizationAdminCreateOrganizationPostRequest calls the generic CreateOrganizationAdminCreateOrganizationPost builder with application/json body
func NewCreateOrganizationAdminCreateOrganizationPostRequestWithBody ¶
func NewCreateOrganizationAdminCreateOrganizationPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateOrganizationAdminCreateOrganizationPostRequestWithBody constructs an http.Request for the CreateOrganizationAdminCreateOrganizationPost method, with any body, and a specified content type
func NewDeleteApiKeyAdminDeleteApiKeyPostRequest ¶
func NewDeleteApiKeyAdminDeleteApiKeyPostRequest(server string, body DeleteApiKeyAdminDeleteApiKeyPostJSONRequestBody) (*http.Request, error)
NewDeleteApiKeyAdminDeleteApiKeyPostRequest calls the generic DeleteApiKeyAdminDeleteApiKeyPost builder with application/json body
func NewDeleteApiKeyAdminDeleteApiKeyPostRequestWithBody ¶
func NewDeleteApiKeyAdminDeleteApiKeyPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteApiKeyAdminDeleteApiKeyPostRequestWithBody constructs an http.Request for the DeleteApiKeyAdminDeleteApiKeyPost method, with any body, and a specified content type
func NewDeleteCollectionCollectionsDeleteCollectionPostRequest ¶
func NewDeleteCollectionCollectionsDeleteCollectionPostRequest(server string, body DeleteCollectionCollectionsDeleteCollectionPostJSONRequestBody) (*http.Request, error)
NewDeleteCollectionCollectionsDeleteCollectionPostRequest calls the generic DeleteCollectionCollectionsDeleteCollectionPost builder with application/json body
func NewDeleteCollectionCollectionsDeleteCollectionPostRequestWithBody ¶
func NewDeleteCollectionCollectionsDeleteCollectionPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteCollectionCollectionsDeleteCollectionPostRequestWithBody constructs an http.Request for the DeleteCollectionCollectionsDeleteCollectionPost method, with any body, and a specified content type
func NewDeleteDocumentDocumentsDeleteDocumentPostRequest ¶
func NewDeleteDocumentDocumentsDeleteDocumentPostRequest(server string, body DeleteDocumentDocumentsDeleteDocumentPostJSONRequestBody) (*http.Request, error)
NewDeleteDocumentDocumentsDeleteDocumentPostRequest calls the generic DeleteDocumentDocumentsDeleteDocumentPost builder with application/json body
func NewDeleteDocumentDocumentsDeleteDocumentPostRequestWithBody ¶
func NewDeleteDocumentDocumentsDeleteDocumentPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteDocumentDocumentsDeleteDocumentPostRequestWithBody constructs an http.Request for the DeleteDocumentDocumentsDeleteDocumentPost method, with any body, and a specified content type
func NewEmbedModelsEmbedPostRequest ¶
func NewEmbedModelsEmbedPostRequest(server string, body EmbedModelsEmbedPostJSONRequestBody) (*http.Request, error)
NewEmbedModelsEmbedPostRequest calls the generic EmbedModelsEmbedPost builder with application/json body
func NewEmbedModelsEmbedPostRequestWithBody ¶
func NewEmbedModelsEmbedPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEmbedModelsEmbedPostRequestWithBody constructs an http.Request for the EmbedModelsEmbedPost method, with any body, and a specified content type
func NewGetCollectionListCollectionsGetCollectionListPostRequest ¶
func NewGetCollectionListCollectionsGetCollectionListPostRequest(server string, body GetCollectionListCollectionsGetCollectionListPostJSONRequestBody) (*http.Request, error)
NewGetCollectionListCollectionsGetCollectionListPostRequest calls the generic GetCollectionListCollectionsGetCollectionListPost builder with application/json body
func NewGetCollectionListCollectionsGetCollectionListPostRequestWithBody ¶
func NewGetCollectionListCollectionsGetCollectionListPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetCollectionListCollectionsGetCollectionListPostRequestWithBody constructs an http.Request for the GetCollectionListCollectionsGetCollectionListPost method, with any body, and a specified content type
func NewGetDocumentDocumentsGetDocumentGetRequest ¶
func NewGetDocumentDocumentsGetDocumentGetRequest(server string, params *GetDocumentDocumentsGetDocumentGetParams) (*http.Request, error)
NewGetDocumentDocumentsGetDocumentGetRequest constructs an http.Request for the GetDocumentDocumentsGetDocumentGet method
func NewGetDocumentInfoDocumentsGetDocumentInfoPostRequest ¶
func NewGetDocumentInfoDocumentsGetDocumentInfoPostRequest(server string, body GetDocumentInfoDocumentsGetDocumentInfoPostJSONRequestBody) (*http.Request, error)
NewGetDocumentInfoDocumentsGetDocumentInfoPostRequest calls the generic GetDocumentInfoDocumentsGetDocumentInfoPost builder with application/json body
func NewGetDocumentInfoDocumentsGetDocumentInfoPostRequestWithBody ¶
func NewGetDocumentInfoDocumentsGetDocumentInfoPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetDocumentInfoDocumentsGetDocumentInfoPostRequestWithBody constructs an http.Request for the GetDocumentInfoDocumentsGetDocumentInfoPost method, with any body, and a specified content type
func NewGetDocumentInfoListDocumentsGetDocumentInfoListPostRequest ¶
func NewGetDocumentInfoListDocumentsGetDocumentInfoListPostRequest(server string, body GetDocumentInfoListDocumentsGetDocumentInfoListPostJSONRequestBody) (*http.Request, error)
NewGetDocumentInfoListDocumentsGetDocumentInfoListPostRequest calls the generic GetDocumentInfoListDocumentsGetDocumentInfoListPost builder with application/json body
func NewGetDocumentInfoListDocumentsGetDocumentInfoListPostRequestWithBody ¶
func NewGetDocumentInfoListDocumentsGetDocumentInfoListPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetDocumentInfoListDocumentsGetDocumentInfoListPostRequestWithBody constructs an http.Request for the GetDocumentInfoListDocumentsGetDocumentInfoListPost method, with any body, and a specified content type
func NewGetDocumentUsageUsageDocumentsPostRequest ¶
func NewGetDocumentUsageUsageDocumentsPostRequest(server string, body GetDocumentUsageUsageDocumentsPostJSONRequestBody) (*http.Request, error)
NewGetDocumentUsageUsageDocumentsPostRequest calls the generic GetDocumentUsageUsageDocumentsPost builder with application/json body
func NewGetDocumentUsageUsageDocumentsPostRequestWithBody ¶
func NewGetDocumentUsageUsageDocumentsPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetDocumentUsageUsageDocumentsPostRequestWithBody constructs an http.Request for the GetDocumentUsageUsageDocumentsPost method, with any body, and a specified content type
func NewGetModelsEmbedUsageUsageModelsEmbedPostRequest ¶ added in v0.2.0
func NewGetModelsEmbedUsageUsageModelsEmbedPostRequest(server string, body GetModelsEmbedUsageUsageModelsEmbedPostJSONRequestBody) (*http.Request, error)
NewGetModelsEmbedUsageUsageModelsEmbedPostRequest calls the generic GetModelsEmbedUsageUsageModelsEmbedPost builder with application/json body
func NewGetModelsEmbedUsageUsageModelsEmbedPostRequestWithBody ¶ added in v0.2.0
func NewGetModelsEmbedUsageUsageModelsEmbedPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetModelsEmbedUsageUsageModelsEmbedPostRequestWithBody constructs an http.Request for the GetModelsEmbedUsageUsageModelsEmbedPost method, with any body, and a specified content type
func NewGetModelsRerankerUsageUsageModelsRerankerPostRequest ¶
func NewGetModelsRerankerUsageUsageModelsRerankerPostRequest(server string, body GetModelsRerankerUsageUsageModelsRerankerPostJSONRequestBody) (*http.Request, error)
NewGetModelsRerankerUsageUsageModelsRerankerPostRequest calls the generic GetModelsRerankerUsageUsageModelsRerankerPost builder with application/json body
func NewGetModelsRerankerUsageUsageModelsRerankerPostRequestWithBody ¶
func NewGetModelsRerankerUsageUsageModelsRerankerPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetModelsRerankerUsageUsageModelsRerankerPostRequestWithBody constructs an http.Request for the GetModelsRerankerUsageUsageModelsRerankerPost method, with any body, and a specified content type
func NewGetModelsUsageCountersUsageModelsCountersPostRequest ¶
NewGetModelsUsageCountersUsageModelsCountersPostRequest constructs an http.Request for the GetModelsUsageCountersUsageModelsCountersPost method
func NewGetOrganizationAdminGetOrganizationPostRequest ¶ added in v0.2.0
func NewGetOrganizationAdminGetOrganizationPostRequest(server string, body GetOrganizationAdminGetOrganizationPostJSONRequestBody) (*http.Request, error)
NewGetOrganizationAdminGetOrganizationPostRequest calls the generic GetOrganizationAdminGetOrganizationPost builder with application/json body
func NewGetOrganizationAdminGetOrganizationPostRequestWithBody ¶ added in v0.2.0
func NewGetOrganizationAdminGetOrganizationPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetOrganizationAdminGetOrganizationPostRequestWithBody constructs an http.Request for the GetOrganizationAdminGetOrganizationPost method, with any body, and a specified content type
func NewGetPageImageDocumentsGetPageImageGetRequest ¶
func NewGetPageImageDocumentsGetPageImageGetRequest(server string, params *GetPageImageDocumentsGetPageImageGetParams) (*http.Request, error)
NewGetPageImageDocumentsGetPageImageGetRequest constructs an http.Request for the GetPageImageDocumentsGetPageImageGet method
func NewGetPageInfoDocumentsGetPageInfoPostRequest ¶
func NewGetPageInfoDocumentsGetPageInfoPostRequest(server string, body GetPageInfoDocumentsGetPageInfoPostJSONRequestBody) (*http.Request, error)
NewGetPageInfoDocumentsGetPageInfoPostRequest calls the generic GetPageInfoDocumentsGetPageInfoPost builder with application/json body
func NewGetPageInfoDocumentsGetPageInfoPostRequestWithBody ¶
func NewGetPageInfoDocumentsGetPageInfoPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetPageInfoDocumentsGetPageInfoPostRequestWithBody constructs an http.Request for the GetPageInfoDocumentsGetPageInfoPost method, with any body, and a specified content type
func NewGetQueryUsageUsageQueriesPostRequest ¶
func NewGetQueryUsageUsageQueriesPostRequest(server string, body GetQueryUsageUsageQueriesPostJSONRequestBody) (*http.Request, error)
NewGetQueryUsageUsageQueriesPostRequest calls the generic GetQueryUsageUsageQueriesPost builder with application/json body
func NewGetQueryUsageUsageQueriesPostRequestWithBody ¶
func NewGetQueryUsageUsageQueriesPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetQueryUsageUsageQueriesPostRequestWithBody constructs an http.Request for the GetQueryUsageUsageQueriesPost method, with any body, and a specified content type
func NewGetStatusStatusGetStatusPostRequest ¶
func NewGetStatusStatusGetStatusPostRequest(server string, body GetStatusStatusGetStatusPostJSONRequestBody) (*http.Request, error)
NewGetStatusStatusGetStatusPostRequest calls the generic GetStatusStatusGetStatusPost builder with application/json body
func NewGetStatusStatusGetStatusPostRequestWithBody ¶
func NewGetStatusStatusGetStatusPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetStatusStatusGetStatusPostRequestWithBody constructs an http.Request for the GetStatusStatusGetStatusPost method, with any body, and a specified content type
func NewGetUsageCountersUsageCountersPostRequest ¶
NewGetUsageCountersUsageCountersPostRequest constructs an http.Request for the GetUsageCountersUsageCountersPost method
func NewListApiKeysAdminListApiKeysPostRequest ¶
func NewListApiKeysAdminListApiKeysPostRequest(server string, body ListApiKeysAdminListApiKeysPostJSONRequestBody) (*http.Request, error)
NewListApiKeysAdminListApiKeysPostRequest calls the generic ListApiKeysAdminListApiKeysPost builder with application/json body
func NewListApiKeysAdminListApiKeysPostRequestWithBody ¶
func NewListApiKeysAdminListApiKeysPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewListApiKeysAdminListApiKeysPostRequestWithBody constructs an http.Request for the ListApiKeysAdminListApiKeysPost method, with any body, and a specified content type
func NewRerankModelsRerankPostRequest ¶
func NewRerankModelsRerankPostRequest(server string, body RerankModelsRerankPostJSONRequestBody) (*http.Request, error)
NewRerankModelsRerankPostRequest calls the generic RerankModelsRerankPost builder with application/json body
func NewRerankModelsRerankPostRequestWithBody ¶
func NewRerankModelsRerankPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRerankModelsRerankPostRequestWithBody constructs an http.Request for the RerankModelsRerankPost method, with any body, and a specified content type
func NewTopDocumentsQueriesTopDocumentsPostRequest ¶
func NewTopDocumentsQueriesTopDocumentsPostRequest(server string, body TopDocumentsQueriesTopDocumentsPostJSONRequestBody) (*http.Request, error)
NewTopDocumentsQueriesTopDocumentsPostRequest calls the generic TopDocumentsQueriesTopDocumentsPost builder with application/json body
func NewTopDocumentsQueriesTopDocumentsPostRequestWithBody ¶
func NewTopDocumentsQueriesTopDocumentsPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewTopDocumentsQueriesTopDocumentsPostRequestWithBody constructs an http.Request for the TopDocumentsQueriesTopDocumentsPost method, with any body, and a specified content type
func NewTopPagesQueriesTopPagesPostRequest ¶
func NewTopPagesQueriesTopPagesPostRequest(server string, body TopPagesQueriesTopPagesPostJSONRequestBody) (*http.Request, error)
NewTopPagesQueriesTopPagesPostRequest calls the generic TopPagesQueriesTopPagesPost builder with application/json body
func NewTopPagesQueriesTopPagesPostRequestWithBody ¶
func NewTopPagesQueriesTopPagesPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewTopPagesQueriesTopPagesPostRequestWithBody constructs an http.Request for the TopPagesQueriesTopPagesPost method, with any body, and a specified content type
func NewTopSnippetsQueriesTopSnippetsPostRequest ¶
func NewTopSnippetsQueriesTopSnippetsPostRequest(server string, body TopSnippetsQueriesTopSnippetsPostJSONRequestBody) (*http.Request, error)
NewTopSnippetsQueriesTopSnippetsPostRequest calls the generic TopSnippetsQueriesTopSnippetsPost builder with application/json body
func NewTopSnippetsQueriesTopSnippetsPostRequestWithBody ¶
func NewTopSnippetsQueriesTopSnippetsPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewTopSnippetsQueriesTopSnippetsPostRequestWithBody constructs an http.Request for the TopSnippetsQueriesTopSnippetsPost method, with any body, and a specified content type
func NewUpdateApiKeyAdminUpdateApiKeyPostRequest ¶
func NewUpdateApiKeyAdminUpdateApiKeyPostRequest(server string, body UpdateApiKeyAdminUpdateApiKeyPostJSONRequestBody) (*http.Request, error)
NewUpdateApiKeyAdminUpdateApiKeyPostRequest calls the generic UpdateApiKeyAdminUpdateApiKeyPost builder with application/json body
func NewUpdateApiKeyAdminUpdateApiKeyPostRequestWithBody ¶
func NewUpdateApiKeyAdminUpdateApiKeyPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateApiKeyAdminUpdateApiKeyPostRequestWithBody constructs an http.Request for the UpdateApiKeyAdminUpdateApiKeyPost method, with any body, and a specified content type
func NewUpdateDocumentDocumentsUpdateDocumentPostRequest ¶
func NewUpdateDocumentDocumentsUpdateDocumentPostRequest(server string, body UpdateDocumentDocumentsUpdateDocumentPostJSONRequestBody) (*http.Request, error)
NewUpdateDocumentDocumentsUpdateDocumentPostRequest calls the generic UpdateDocumentDocumentsUpdateDocumentPost builder with application/json body
func NewUpdateDocumentDocumentsUpdateDocumentPostRequestWithBody ¶
func NewUpdateDocumentDocumentsUpdateDocumentPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateDocumentDocumentsUpdateDocumentPostRequestWithBody constructs an http.Request for the UpdateDocumentDocumentsUpdateDocumentPost method, with any body, and a specified content type
func NewUpdateOrganizationAdminUpdateOrganizationPostRequest ¶ added in v0.2.0
func NewUpdateOrganizationAdminUpdateOrganizationPostRequest(server string, body UpdateOrganizationAdminUpdateOrganizationPostJSONRequestBody) (*http.Request, error)
NewUpdateOrganizationAdminUpdateOrganizationPostRequest calls the generic UpdateOrganizationAdminUpdateOrganizationPost builder with application/json body
func NewUpdateOrganizationAdminUpdateOrganizationPostRequestWithBody ¶ added in v0.2.0
func NewUpdateOrganizationAdminUpdateOrganizationPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateOrganizationAdminUpdateOrganizationPostRequestWithBody constructs an http.Request for the UpdateOrganizationAdminUpdateOrganizationPost method, with any body, and a specified content type
Types ¶
type APIBinaryDocument ¶
type APIBinaryDocument struct {
// Base64Data The file's raw data, as a base64-encoded string
Base64Data string `json:"base64_data"`
// Type When this is set to `auto`, then the file extension and binary data will be used to deduce a filetype automatically. Currently, only `auto` is supported.
Type APIBinaryDocumentType `json:"type"`
}
APIBinaryDocument defines model for APIBinaryDocument.
type APIBinaryDocumentType ¶
type APIBinaryDocumentType string
APIBinaryDocumentType When this is set to `auto`, then the file extension and binary data will be used to deduce a filetype automatically. Currently, only `auto` is supported.
const (
APIBinaryDocumentTypeAuto APIBinaryDocumentType = "auto"
)
Defines values for APIBinaryDocumentType.
func (APIBinaryDocumentType) Valid ¶
func (e APIBinaryDocumentType) Valid() bool
Valid indicates whether the value is a known member of the APIBinaryDocumentType enum.
type APIKeyInfo ¶
type APIKeyInfo struct {
// ApiKey The API key itself
ApiKey string `json:"api_key"`
// CreatedAt When the API key was created
CreatedAt time.Time `json:"created_at"`
// CreatedBy Who created this API key
CreatedBy *string `json:"created_by"`
// Id The API key ID
Id openapi_types.UUID `json:"id"`
// Name The name of the API key
Name string `json:"name"`
// Permission The permission level
Permission DBAPIKeyPermission `json:"permission"`
}
APIKeyInfo defines model for APIKeyInfo.
type APITextDocument ¶
type APITextDocument struct {
// Text The content of this document, as a text string
Text string `json:"text"`
// Type This field must be `text`
Type APITextDocumentType `json:"type"`
}
APITextDocument defines model for APITextDocument.
type APITextDocumentType ¶
type APITextDocumentType string
APITextDocumentType This field must be `text`
const (
APITextDocumentTypeText APITextDocumentType = "text"
)
Defines values for APITextDocumentType.
func (APITextDocumentType) Valid ¶
func (e APITextDocumentType) Valid() bool
Valid indicates whether the value is a known member of the APITextDocumentType enum.
type APITextPagesDocument ¶
type APITextPagesDocument struct {
// Pages The content of this document, as an array of strings. Each string will be the content of a full page, and can be retrieved using the Top Pages endpoint. Pages are 0-indexed, so that the first string has index 0, the second string has index 1.
Pages []string `json:"pages"`
// Type This field must be `text-pages` or `text-pages-unordered`. When `unordered` is provided, it is assumed that consecutive pages aren't meant to be read one after another. For example, PDFs are ordered, and CSVs are unordered.
Type APITextPagesDocumentType `json:"type"`
}
APITextPagesDocument defines model for APITextPagesDocument.
type APITextPagesDocumentType ¶
type APITextPagesDocumentType string
APITextPagesDocumentType This field must be `text-pages` or `text-pages-unordered`. When `unordered` is provided, it is assumed that consecutive pages aren't meant to be read one after another. For example, PDFs are ordered, and CSVs are unordered.
const ( APITextPagesDocumentTypeTextPages APITextPagesDocumentType = "text-pages" APITextPagesDocumentTypeTextPagesUnordered APITextPagesDocumentType = "text-pages-unordered" )
Defines values for APITextPagesDocumentType.
func (APITextPagesDocumentType) Valid ¶
func (e APITextPagesDocumentType) Valid() bool
Valid indicates whether the value is a known member of the APITextPagesDocumentType enum.
type AddAPIKeyRequest ¶
type AddAPIKeyRequest struct {
// CreatedBy Who created this API key.
CreatedBy *string `json:"created_by,omitempty"`
// Name A descriptive name for this API key.
Name string `json:"name"`
// OrganizationId The organization ID to create the API key for.
OrganizationId openapi_types.UUID `json:"organization_id"`
// Permission The permission level for this API key.
Permission DBAPIKeyPermission `json:"permission"`
}
AddAPIKeyRequest defines model for AddAPIKeyRequest.
type AddAPIKeyResponse ¶
type AddAPIKeyResponse struct {
// ApiKey The generated API key.
ApiKey string `json:"api_key"`
}
AddAPIKeyResponse defines model for AddAPIKeyResponse.
type AddApiKeyAdminAddApiKeyPostJSONRequestBody ¶
type AddApiKeyAdminAddApiKeyPostJSONRequestBody = AddAPIKeyRequest
AddApiKeyAdminAddApiKeyPostJSONRequestBody defines body for AddApiKeyAdminAddApiKeyPost for application/json ContentType.
type AddApiKeyAdminAddApiKeyPostResponse ¶
type AddApiKeyAdminAddApiKeyPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *AddAPIKeyResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseAddApiKeyAdminAddApiKeyPostResponse ¶
func ParseAddApiKeyAdminAddApiKeyPostResponse(rsp *http.Response) (*AddApiKeyAdminAddApiKeyPostResponse, error)
ParseAddApiKeyAdminAddApiKeyPostResponse parses an HTTP response from a AddApiKeyAdminAddApiKeyPostWithResponse call
func (AddApiKeyAdminAddApiKeyPostResponse) ContentType ¶
func (r AddApiKeyAdminAddApiKeyPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AddApiKeyAdminAddApiKeyPostResponse) GetBody ¶
func (r AddApiKeyAdminAddApiKeyPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (AddApiKeyAdminAddApiKeyPostResponse) GetJSON201 ¶
func (r AddApiKeyAdminAddApiKeyPostResponse) GetJSON201() *AddAPIKeyResponse
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (AddApiKeyAdminAddApiKeyPostResponse) GetJSON422 ¶
func (r AddApiKeyAdminAddApiKeyPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (AddApiKeyAdminAddApiKeyPostResponse) Status ¶
func (r AddApiKeyAdminAddApiKeyPostResponse) Status() string
Status returns HTTPResponse.Status
func (AddApiKeyAdminAddApiKeyPostResponse) StatusCode ¶
func (r AddApiKeyAdminAddApiKeyPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddCollectionCollectionsAddCollectionPostJSONRequestBody ¶
type AddCollectionCollectionsAddCollectionPostJSONRequestBody = AddCollectionRequest
AddCollectionCollectionsAddCollectionPostJSONRequestBody defines body for AddCollectionCollectionsAddCollectionPost for application/json ContentType.
type AddCollectionCollectionsAddCollectionPostResponse ¶
type AddCollectionCollectionsAddCollectionPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *DefaultResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseAddCollectionCollectionsAddCollectionPostResponse ¶
func ParseAddCollectionCollectionsAddCollectionPostResponse(rsp *http.Response) (*AddCollectionCollectionsAddCollectionPostResponse, error)
ParseAddCollectionCollectionsAddCollectionPostResponse parses an HTTP response from a AddCollectionCollectionsAddCollectionPostWithResponse call
func (AddCollectionCollectionsAddCollectionPostResponse) ContentType ¶
func (r AddCollectionCollectionsAddCollectionPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AddCollectionCollectionsAddCollectionPostResponse) GetBody ¶
func (r AddCollectionCollectionsAddCollectionPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (AddCollectionCollectionsAddCollectionPostResponse) GetJSON201 ¶
func (r AddCollectionCollectionsAddCollectionPostResponse) GetJSON201() *DefaultResponse
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (AddCollectionCollectionsAddCollectionPostResponse) GetJSON422 ¶
func (r AddCollectionCollectionsAddCollectionPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (AddCollectionCollectionsAddCollectionPostResponse) Status ¶
func (r AddCollectionCollectionsAddCollectionPostResponse) Status() string
Status returns HTTPResponse.Status
func (AddCollectionCollectionsAddCollectionPostResponse) StatusCode ¶
func (r AddCollectionCollectionsAddCollectionPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddCollectionRequest ¶
type AddCollectionRequest struct {
// CollectionName The name of the collection to add. The maximum length of this string is 1024 characters. If special characters are used, then the UTF-8 encoded string cannot exceed 1024 bytes.
CollectionName string `json:"collection_name"`
// NumShards [ADVANCED] The number of shards to use for this collection. By using K shards, your documents can index with K times more throughput. However, queries will be automatically sent to all K shards and then aggregated. For large collections, this can make queries faster. But for small collections, this will make queries slower. `num_shards` must be one of [1, 8, 16, 32, 64]. The default is 1.
NumShards *int `json:"num_shards,omitempty"`
}
AddCollectionRequest defines model for AddCollectionRequest.
type AddDocumentDocumentsAddDocumentPostJSONRequestBody ¶
type AddDocumentDocumentsAddDocumentPostJSONRequestBody = AddDocumentRequest
AddDocumentDocumentsAddDocumentPostJSONRequestBody defines body for AddDocumentDocumentsAddDocumentPost for application/json ContentType.
type AddDocumentDocumentsAddDocumentPostResponse ¶
type AddDocumentDocumentsAddDocumentPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DefaultResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseAddDocumentDocumentsAddDocumentPostResponse ¶
func ParseAddDocumentDocumentsAddDocumentPostResponse(rsp *http.Response) (*AddDocumentDocumentsAddDocumentPostResponse, error)
ParseAddDocumentDocumentsAddDocumentPostResponse parses an HTTP response from a AddDocumentDocumentsAddDocumentPostWithResponse call
func (AddDocumentDocumentsAddDocumentPostResponse) ContentType ¶
func (r AddDocumentDocumentsAddDocumentPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AddDocumentDocumentsAddDocumentPostResponse) GetBody ¶
func (r AddDocumentDocumentsAddDocumentPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (AddDocumentDocumentsAddDocumentPostResponse) GetJSON200 ¶
func (r AddDocumentDocumentsAddDocumentPostResponse) GetJSON200() *DefaultResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (AddDocumentDocumentsAddDocumentPostResponse) GetJSON422 ¶
func (r AddDocumentDocumentsAddDocumentPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (AddDocumentDocumentsAddDocumentPostResponse) Status ¶
func (r AddDocumentDocumentsAddDocumentPostResponse) Status() string
Status returns HTTPResponse.Status
func (AddDocumentDocumentsAddDocumentPostResponse) StatusCode ¶
func (r AddDocumentDocumentsAddDocumentPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddDocumentRequest ¶
type AddDocumentRequest struct {
// CollectionName The name of the collection to be used for this request. A `404 Not Found` status code will be returned if this collection name does not exist.
CollectionName string `json:"collection_name"`
// Content The content of the document. There are three possible JSON types that can be passed into this parameter: `APITextDocument`, `APITextPagesDocument`, `APIBinaryDocument`. The `type` field is how ZeroEntropy will know which document object you have passed in.
Content AddDocumentRequest_Content `json:"content"`
// Metadata This is a metadata JSON object that can be used to assign various metadata attributes to your document. The provided object must match the type `dict[str, str | list[str]]`. Please read [Metadata Filtering](/metadata-filtering) for more details. By default, the metadata will be set to `{}`.
//
// NOTE: The UTF-8-encoded JSON string must be less than 65536 bytes (Whitespace does not count). This limit can be increased upon request.
Metadata *DocumentMetadataJson `json:"metadata,omitempty"`
// Overwrite Setting this property to true will put this endpoint in "upsert" mode: If the document already exists, this action will atomically replace it.
Overwrite *bool `json:"overwrite,omitempty"`
// Path The filepath of the document that you are adding. A `409 Conflict` status code will be returned if this path already exists, unless `overwrite` is set to `true`.
Path string `json:"path"`
}
AddDocumentRequest defines model for AddDocumentRequest.
type AddDocumentRequest_Content ¶
type AddDocumentRequest_Content struct {
// contains filtered or unexported fields
}
AddDocumentRequest_Content The content of the document. There are three possible JSON types that can be passed into this parameter: `APITextDocument`, `APITextPagesDocument`, `APIBinaryDocument`. The `type` field is how ZeroEntropy will know which document object you have passed in.
func (AddDocumentRequest_Content) AsAPIBinaryDocument ¶
func (t AddDocumentRequest_Content) AsAPIBinaryDocument() (APIBinaryDocument, error)
AsAPIBinaryDocument returns the union data inside the AddDocumentRequest_Content as a APIBinaryDocument
func (AddDocumentRequest_Content) AsAPITextDocument ¶
func (t AddDocumentRequest_Content) AsAPITextDocument() (APITextDocument, error)
AsAPITextDocument returns the union data inside the AddDocumentRequest_Content as a APITextDocument
func (AddDocumentRequest_Content) AsAPITextPagesDocument ¶
func (t AddDocumentRequest_Content) AsAPITextPagesDocument() (APITextPagesDocument, error)
AsAPITextPagesDocument returns the union data inside the AddDocumentRequest_Content as a APITextPagesDocument
func (AddDocumentRequest_Content) Discriminator ¶
func (t AddDocumentRequest_Content) Discriminator() (string, error)
func (*AddDocumentRequest_Content) FromAPIBinaryDocument ¶
func (t *AddDocumentRequest_Content) FromAPIBinaryDocument(v APIBinaryDocument) error
FromAPIBinaryDocument overwrites any union data inside the AddDocumentRequest_Content as the provided APIBinaryDocument
func (*AddDocumentRequest_Content) FromAPITextDocument ¶
func (t *AddDocumentRequest_Content) FromAPITextDocument(v APITextDocument) error
FromAPITextDocument overwrites any union data inside the AddDocumentRequest_Content as the provided APITextDocument
func (*AddDocumentRequest_Content) FromAPITextPagesDocument ¶
func (t *AddDocumentRequest_Content) FromAPITextPagesDocument(v APITextPagesDocument) error
FromAPITextPagesDocument overwrites any union data inside the AddDocumentRequest_Content as the provided APITextPagesDocument
func (AddDocumentRequest_Content) MarshalJSON ¶
func (t AddDocumentRequest_Content) MarshalJSON() ([]byte, error)
func (*AddDocumentRequest_Content) MergeAPIBinaryDocument ¶
func (t *AddDocumentRequest_Content) MergeAPIBinaryDocument(v APIBinaryDocument) error
MergeAPIBinaryDocument performs a merge with any union data inside the AddDocumentRequest_Content, using the provided APIBinaryDocument
func (*AddDocumentRequest_Content) MergeAPITextDocument ¶
func (t *AddDocumentRequest_Content) MergeAPITextDocument(v APITextDocument) error
MergeAPITextDocument performs a merge with any union data inside the AddDocumentRequest_Content, using the provided APITextDocument
func (*AddDocumentRequest_Content) MergeAPITextPagesDocument ¶
func (t *AddDocumentRequest_Content) MergeAPITextPagesDocument(v APITextPagesDocument) error
MergeAPITextPagesDocument performs a merge with any union data inside the AddDocumentRequest_Content, using the provided APITextPagesDocument
func (*AddDocumentRequest_Content) UnmarshalJSON ¶
func (t *AddDocumentRequest_Content) UnmarshalJSON(b []byte) error
func (AddDocumentRequest_Content) ValueByDiscriminator ¶
func (t AddDocumentRequest_Content) ValueByDiscriminator() (interface{}, error)
type AggregationWindow ¶
type AggregationWindow string
AggregationWindow defines model for AggregationWindow.
const ( AggregationWindowDaily AggregationWindow = "daily" AggregationWindowHourly AggregationWindow = "hourly" AggregationWindowMinutely AggregationWindow = "minutely" )
Defines values for AggregationWindow.
func (AggregationWindow) Valid ¶
func (e AggregationWindow) Valid() bool
Valid indicates whether the value is a known member of the AggregationWindow enum.
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) AddApiKeyAdminAddApiKeyPost ¶
func (c *Client) AddApiKeyAdminAddApiKeyPost(ctx context.Context, body AddApiKeyAdminAddApiKeyPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
AddApiKeyAdminAddApiKeyPost Add Api Key
Creates a new API key for the specified organization.
Takes a body of the `application/json` content type.
Corresponds with POST /admin/add-api-key (the `AddApiKeyAdminAddApiKeyPost` operationId).
func (*Client) AddApiKeyAdminAddApiKeyPostWithBody ¶
func (c *Client) AddApiKeyAdminAddApiKeyPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddApiKeyAdminAddApiKeyPostWithBody Add Api Key
Creates a new API key for the specified organization.
Takes any type of body and a specified content type.
Corresponds with POST /admin/add-api-key (the `AddApiKeyAdminAddApiKeyPost` operationId).
func (*Client) AddCollectionCollectionsAddCollectionPost ¶
func (c *Client) AddCollectionCollectionsAddCollectionPost(ctx context.Context, body AddCollectionCollectionsAddCollectionPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
AddCollectionCollectionsAddCollectionPost Add Collection
Adds a collection.
If the collection already exists, a `409 Conflict` status code will be returned.
Takes a body of the `application/json` content type.
Corresponds with POST /collections/add-collection (the `AddCollectionCollectionsAddCollectionPost` operationId).
func (*Client) AddCollectionCollectionsAddCollectionPostWithBody ¶
func (c *Client) AddCollectionCollectionsAddCollectionPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddCollectionCollectionsAddCollectionPostWithBody Add Collection
Adds a collection.
If the collection already exists, a `409 Conflict` status code will be returned.
Takes any type of body and a specified content type.
Corresponds with POST /collections/add-collection (the `AddCollectionCollectionsAddCollectionPost` operationId).
func (*Client) AddDocumentDocumentsAddDocumentPost ¶
func (c *Client) AddDocumentDocumentsAddDocumentPost(ctx context.Context, body AddDocumentDocumentsAddDocumentPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
AddDocumentDocumentsAddDocumentPost Add Document
Adds a document to a given collection.
A status code of `201 Created` will be returned if a document was successfully added. A status code of `409 Conflict` will be returned if the given collection already has a document with the same path.
If `overwrite` is given a value of `true`, then a status code of `200 OK` will be returned if a document was overwritten (Rather than a status code of `409 Conflict`).
When a document is inserted, it can take time to appear in the index. Check the `/status/get-status` endpoint to see progress.
Takes a body of the `application/json` content type.
Corresponds with POST /documents/add-document (the `AddDocumentDocumentsAddDocumentPost` operationId).
func (*Client) AddDocumentDocumentsAddDocumentPostWithBody ¶
func (c *Client) AddDocumentDocumentsAddDocumentPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddDocumentDocumentsAddDocumentPostWithBody Add Document
Adds a document to a given collection.
A status code of `201 Created` will be returned if a document was successfully added. A status code of `409 Conflict` will be returned if the given collection already has a document with the same path.
If `overwrite` is given a value of `true`, then a status code of `200 OK` will be returned if a document was overwritten (Rather than a status code of `409 Conflict`).
When a document is inserted, it can take time to appear in the index. Check the `/status/get-status` endpoint to see progress.
Takes any type of body and a specified content type.
Corresponds with POST /documents/add-document (the `AddDocumentDocumentsAddDocumentPost` operationId).
func (*Client) CreateOrganizationAdminCreateOrganizationPost ¶
func (c *Client) CreateOrganizationAdminCreateOrganizationPost(ctx context.Context, body CreateOrganizationAdminCreateOrganizationPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateOrganizationAdminCreateOrganizationPost Create Organization
Creates an organization with the provided organization name.
Returns 201 if a new organization was created, 200 if an existing organization was found.
Takes a body of the `application/json` content type.
Corresponds with POST /admin/create-organization (the `CreateOrganizationAdminCreateOrganizationPost` operationId).
func (*Client) CreateOrganizationAdminCreateOrganizationPostWithBody ¶
func (c *Client) CreateOrganizationAdminCreateOrganizationPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateOrganizationAdminCreateOrganizationPostWithBody Create Organization
Creates an organization with the provided organization name.
Returns 201 if a new organization was created, 200 if an existing organization was found.
Takes any type of body and a specified content type.
Corresponds with POST /admin/create-organization (the `CreateOrganizationAdminCreateOrganizationPost` operationId).
func (*Client) DeleteApiKeyAdminDeleteApiKeyPost ¶
func (c *Client) DeleteApiKeyAdminDeleteApiKeyPost(ctx context.Context, body DeleteApiKeyAdminDeleteApiKeyPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteApiKeyAdminDeleteApiKeyPost Delete Api Key
Deletes the specified API key.
Takes a body of the `application/json` content type.
Corresponds with POST /admin/delete-api-key (the `DeleteApiKeyAdminDeleteApiKeyPost` operationId).
func (*Client) DeleteApiKeyAdminDeleteApiKeyPostWithBody ¶
func (c *Client) DeleteApiKeyAdminDeleteApiKeyPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteApiKeyAdminDeleteApiKeyPostWithBody Delete Api Key
Deletes the specified API key.
Takes any type of body and a specified content type.
Corresponds with POST /admin/delete-api-key (the `DeleteApiKeyAdminDeleteApiKeyPost` operationId).
func (*Client) DeleteCollectionCollectionsDeleteCollectionPost ¶
func (c *Client) DeleteCollectionCollectionsDeleteCollectionPost(ctx context.Context, body DeleteCollectionCollectionsDeleteCollectionPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteCollectionCollectionsDeleteCollectionPost Delete Collection
Deletes a collection.
A `404 Not Found` status code will be returned, if the provided collection name does not exist.
Takes a body of the `application/json` content type.
Corresponds with POST /collections/delete-collection (the `DeleteCollectionCollectionsDeleteCollectionPost` operationId).
func (*Client) DeleteCollectionCollectionsDeleteCollectionPostWithBody ¶
func (c *Client) DeleteCollectionCollectionsDeleteCollectionPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteCollectionCollectionsDeleteCollectionPostWithBody Delete Collection
Deletes a collection.
A `404 Not Found` status code will be returned, if the provided collection name does not exist.
Takes any type of body and a specified content type.
Corresponds with POST /collections/delete-collection (the `DeleteCollectionCollectionsDeleteCollectionPost` operationId).
func (*Client) DeleteDocumentDocumentsDeleteDocumentPost ¶
func (c *Client) DeleteDocumentDocumentsDeleteDocumentPost(ctx context.Context, body DeleteDocumentDocumentsDeleteDocumentPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteDocumentDocumentsDeleteDocumentPost Delete Document
Deletes a document ¶
A `404 Not Found` status code will be returned, if the provided collection name or document path does not exist.
Takes a body of the `application/json` content type.
Corresponds with POST /documents/delete-document (the `DeleteDocumentDocumentsDeleteDocumentPost` operationId).
func (*Client) DeleteDocumentDocumentsDeleteDocumentPostWithBody ¶
func (c *Client) DeleteDocumentDocumentsDeleteDocumentPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteDocumentDocumentsDeleteDocumentPostWithBody Delete Document
Deletes a document ¶
A `404 Not Found` status code will be returned, if the provided collection name or document path does not exist.
Takes any type of body and a specified content type.
Corresponds with POST /documents/delete-document (the `DeleteDocumentDocumentsDeleteDocumentPost` operationId).
func (*Client) EmbedModelsEmbedPost ¶
func (c *Client) EmbedModelsEmbedPost(ctx context.Context, body EmbedModelsEmbedPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
EmbedModelsEmbedPost Embed
Embeds the provided input text with ZeroEntropy embedding models.
The results will be returned in the same order as the text provided. The embedding is such that queries will have high cosine similarity with documents that are relevant to that query.
Organizations will, by default, have a ratelimit of `500000` bytes-per-minute. If this is exceeded, requests will be throttled into `latency: "slow"` mode, up to `5000000` bytes-per-minute. If even this is exceeded, you will get a `429` error.
The "bytes" used by a request is calculated as `sum(150 + s.encode('utf-8') for s in input)`. Note a baseline overhead of `150` bytes. The maximum per-request payload size is `5000000` bytes, and the maximum number of inputs per request is `2048`.
To increase your ratelimits, subscribe to a higher tier on the [ZeroEntropy dashboard](https://dashboard.zeroentropy.dev/billing). Any payments made for subscriptions in a calendar month will be deducted from your usage charges for that month.
To request even higher ratelimits, please contact [founders@zeroentropy.dev](mailto:founders@zeroentropy.dev) or message us on [Discord](https://go.zeroentropy.dev/discord) or [Slack](https://go.zeroentropy.dev/slack)!
Takes a body of the `application/json` content type.
Corresponds with POST /models/embed (the `EmbedModelsEmbedPost` operationId).
func (*Client) EmbedModelsEmbedPostWithBody ¶
func (c *Client) EmbedModelsEmbedPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EmbedModelsEmbedPostWithBody Embed
Embeds the provided input text with ZeroEntropy embedding models.
The results will be returned in the same order as the text provided. The embedding is such that queries will have high cosine similarity with documents that are relevant to that query.
Organizations will, by default, have a ratelimit of `500000` bytes-per-minute. If this is exceeded, requests will be throttled into `latency: "slow"` mode, up to `5000000` bytes-per-minute. If even this is exceeded, you will get a `429` error.
The "bytes" used by a request is calculated as `sum(150 + s.encode('utf-8') for s in input)`. Note a baseline overhead of `150` bytes. The maximum per-request payload size is `5000000` bytes, and the maximum number of inputs per request is `2048`.
To increase your ratelimits, subscribe to a higher tier on the [ZeroEntropy dashboard](https://dashboard.zeroentropy.dev/billing). Any payments made for subscriptions in a calendar month will be deducted from your usage charges for that month.
To request even higher ratelimits, please contact [founders@zeroentropy.dev](mailto:founders@zeroentropy.dev) or message us on [Discord](https://go.zeroentropy.dev/discord) or [Slack](https://go.zeroentropy.dev/slack)!
Takes any type of body and a specified content type.
Corresponds with POST /models/embed (the `EmbedModelsEmbedPost` operationId).
func (*Client) GetCollectionListCollectionsGetCollectionListPost ¶
func (c *Client) GetCollectionListCollectionsGetCollectionListPost(ctx context.Context, body GetCollectionListCollectionsGetCollectionListPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
GetCollectionListCollectionsGetCollectionListPost Get Collection List
Gets a complete list of all of your collections.
Takes a body of the `application/json` content type.
Corresponds with POST /collections/get-collection-list (the `GetCollectionListCollectionsGetCollectionListPost` operationId).
func (*Client) GetCollectionListCollectionsGetCollectionListPostWithBody ¶
func (c *Client) GetCollectionListCollectionsGetCollectionListPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetCollectionListCollectionsGetCollectionListPostWithBody Get Collection List
Gets a complete list of all of your collections.
Takes any type of body and a specified content type.
Corresponds with POST /collections/get-collection-list (the `GetCollectionListCollectionsGetCollectionListPost` operationId).
func (*Client) GetDocumentDocumentsGetDocumentGet ¶
func (c *Client) GetDocumentDocumentsGetDocumentGet(ctx context.Context, params *GetDocumentDocumentsGetDocumentGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDocumentDocumentsGetDocumentGet Get Document
Get the document. The content will be the binary PDF/DOCX content, or be UTF-8-encoded content if it is text.
A `404 Not Found` status code will be returned, if the provided request parameters do not exist.
Note that if `/documents/update-document` returns a new document id, then all urls will be invalidated and must be retrieved again.
The HTTP cache policy on this endpoint is set to never expire, unlike other endpoints whose HTTP headers assert no-cache.
Corresponds with GET /documents/get-document (the `GetDocumentDocumentsGetDocumentGet` operationId).
func (*Client) GetDocumentInfoDocumentsGetDocumentInfoPost ¶
func (c *Client) GetDocumentInfoDocumentsGetDocumentInfoPost(ctx context.Context, body GetDocumentInfoDocumentsGetDocumentInfoPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDocumentInfoDocumentsGetDocumentInfoPost Get Document Info
Retrieves information about a specific document. The request parameters define what information you would like to receive.
A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided collection.
Takes a body of the `application/json` content type.
Corresponds with POST /documents/get-document-info (the `GetDocumentInfoDocumentsGetDocumentInfoPost` operationId).
func (*Client) GetDocumentInfoDocumentsGetDocumentInfoPostWithBody ¶
func (c *Client) GetDocumentInfoDocumentsGetDocumentInfoPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDocumentInfoDocumentsGetDocumentInfoPostWithBody Get Document Info
Retrieves information about a specific document. The request parameters define what information you would like to receive.
A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided collection.
Takes any type of body and a specified content type.
Corresponds with POST /documents/get-document-info (the `GetDocumentInfoDocumentsGetDocumentInfoPost` operationId).
func (*Client) GetDocumentInfoListDocumentsGetDocumentInfoListPost ¶
func (c *Client) GetDocumentInfoListDocumentsGetDocumentInfoListPost(ctx context.Context, body GetDocumentInfoListDocumentsGetDocumentInfoListPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDocumentInfoListDocumentsGetDocumentInfoListPost Get Document Info List
Retrives a list of document metadata information that matches the provided filters.
The documents returned will be sorted by path in lexicographically ascending order. `path_gt` can be used for pagination, and should be set to the path of the last document returned in the previous call.
A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided collection.
Takes a body of the `application/json` content type.
Corresponds with POST /documents/get-document-info-list (the `GetDocumentInfoListDocumentsGetDocumentInfoListPost` operationId).
func (*Client) GetDocumentInfoListDocumentsGetDocumentInfoListPostWithBody ¶
func (c *Client) GetDocumentInfoListDocumentsGetDocumentInfoListPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDocumentInfoListDocumentsGetDocumentInfoListPostWithBody Get Document Info List
Retrives a list of document metadata information that matches the provided filters.
The documents returned will be sorted by path in lexicographically ascending order. `path_gt` can be used for pagination, and should be set to the path of the last document returned in the previous call.
A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided collection.
Takes any type of body and a specified content type.
Corresponds with POST /documents/get-document-info-list (the `GetDocumentInfoListDocumentsGetDocumentInfoListPost` operationId).
func (*Client) GetDocumentUsageUsageDocumentsPost ¶
func (c *Client) GetDocumentUsageUsageDocumentsPost(ctx context.Context, body GetDocumentUsageUsageDocumentsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDocumentUsageUsageDocumentsPost Get Document Usage
Document usage analytics (added/deleted/parsed/indexed events).
Takes a body of the `application/json` content type.
Corresponds with POST /usage/documents (the `GetDocumentUsageUsageDocumentsPost` operationId).
func (*Client) GetDocumentUsageUsageDocumentsPostWithBody ¶
func (c *Client) GetDocumentUsageUsageDocumentsPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDocumentUsageUsageDocumentsPostWithBody Get Document Usage
Document usage analytics (added/deleted/parsed/indexed events).
Takes any type of body and a specified content type.
Corresponds with POST /usage/documents (the `GetDocumentUsageUsageDocumentsPost` operationId).
func (*Client) GetModelsEmbedUsageUsageModelsEmbedPost ¶ added in v0.2.0
func (c *Client) GetModelsEmbedUsageUsageModelsEmbedPost(ctx context.Context, body GetModelsEmbedUsageUsageModelsEmbedPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
GetModelsEmbedUsageUsageModelsEmbedPost Get Models Embed Usage
Get embedding usage analytics with model breakdown.
Note: Embed events don't have collection_id, so collection filtering is not supported. If collection_names are provided in the request, they will be ignored.
Takes a body of the `application/json` content type.
Corresponds with POST /usage/models/embed (the `GetModelsEmbedUsageUsageModelsEmbedPost` operationId).
func (*Client) GetModelsEmbedUsageUsageModelsEmbedPostWithBody ¶ added in v0.2.0
func (c *Client) GetModelsEmbedUsageUsageModelsEmbedPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetModelsEmbedUsageUsageModelsEmbedPostWithBody Get Models Embed Usage
Get embedding usage analytics with model breakdown.
Note: Embed events don't have collection_id, so collection filtering is not supported. If collection_names are provided in the request, they will be ignored.
Takes any type of body and a specified content type.
Corresponds with POST /usage/models/embed (the `GetModelsEmbedUsageUsageModelsEmbedPost` operationId).
func (*Client) GetModelsRerankerUsageUsageModelsRerankerPost ¶
func (c *Client) GetModelsRerankerUsageUsageModelsRerankerPost(ctx context.Context, body GetModelsRerankerUsageUsageModelsRerankerPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
GetModelsRerankerUsageUsageModelsRerankerPost Get Models Reranker Usage
Get reranker usage analytics with model breakdown.
Note: Rerank events don't have collection_id, so collection filtering is not supported. If collection_names are provided in the request, they will be ignored.
Takes a body of the `application/json` content type.
Corresponds with POST /usage/models/reranker (the `GetModelsRerankerUsageUsageModelsRerankerPost` operationId).
func (*Client) GetModelsRerankerUsageUsageModelsRerankerPostWithBody ¶
func (c *Client) GetModelsRerankerUsageUsageModelsRerankerPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetModelsRerankerUsageUsageModelsRerankerPostWithBody Get Models Reranker Usage
Get reranker usage analytics with model breakdown.
Note: Rerank events don't have collection_id, so collection filtering is not supported. If collection_names are provided in the request, they will be ignored.
Takes any type of body and a specified content type.
Corresponds with POST /usage/models/reranker (the `GetModelsRerankerUsageUsageModelsRerankerPost` operationId).
func (*Client) GetModelsUsageCountersUsageModelsCountersPost ¶
func (c *Client) GetModelsUsageCountersUsageModelsCountersPost(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetModelsUsageCountersUsageModelsCountersPost Get Models Usage Counters
Get models usage counters for all-time and current billing cycle.
Corresponds with POST /usage/models/counters (the `GetModelsUsageCountersUsageModelsCountersPost` operationId).
func (*Client) GetOrganizationAdminGetOrganizationPost ¶ added in v0.2.0
func (c *Client) GetOrganizationAdminGetOrganizationPost(ctx context.Context, body GetOrganizationAdminGetOrganizationPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
GetOrganizationAdminGetOrganizationPost Get Organization
Returns organization details, including rate limits and ZDR state.
Takes a body of the `application/json` content type.
Corresponds with POST /admin/get-organization (the `GetOrganizationAdminGetOrganizationPost` operationId).
func (*Client) GetOrganizationAdminGetOrganizationPostWithBody ¶ added in v0.2.0
func (c *Client) GetOrganizationAdminGetOrganizationPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetOrganizationAdminGetOrganizationPostWithBody Get Organization
Returns organization details, including rate limits and ZDR state.
Takes any type of body and a specified content type.
Corresponds with POST /admin/get-organization (the `GetOrganizationAdminGetOrganizationPost` operationId).
func (*Client) GetPageImageDocumentsGetPageImageGet ¶
func (c *Client) GetPageImageDocumentsGetPageImageGet(ctx context.Context, params *GetPageImageDocumentsGetPageImageGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetPageImageDocumentsGetPageImageGet Get Page Image
Get the image for a specific page. The image will be returned as a JPEG.
This endpoint is meant to be used with `<img>` tags in the frontend. A `404 Not Found` status code will be returned, if the provided request parameters do not exist or if the page exists but does not have an associated image.
Note that if `/documents/update-document` returns a new document id, then all urls will be invalidated and must be retrieved again.
The HTTP cache policy on this endpoint is set to never expire, unlike other endpoints whose HTTP headers assert no-cache.
Corresponds with GET /documents/get-page-image (the `GetPageImageDocumentsGetPageImageGet` operationId).
func (*Client) GetPageInfoDocumentsGetPageInfoPost ¶
func (c *Client) GetPageInfoDocumentsGetPageInfoPost(ctx context.Context, body GetPageInfoDocumentsGetPageInfoPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
GetPageInfoDocumentsGetPageInfoPost Get Page Info
Retrieves information about a specific page. The request parameters define what information you would like to receive.
A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided collection.
Takes a body of the `application/json` content type.
Corresponds with POST /documents/get-page-info (the `GetPageInfoDocumentsGetPageInfoPost` operationId).
func (*Client) GetPageInfoDocumentsGetPageInfoPostWithBody ¶
func (c *Client) GetPageInfoDocumentsGetPageInfoPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetPageInfoDocumentsGetPageInfoPostWithBody Get Page Info
Retrieves information about a specific page. The request parameters define what information you would like to receive.
A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided collection.
Takes any type of body and a specified content type.
Corresponds with POST /documents/get-page-info (the `GetPageInfoDocumentsGetPageInfoPost` operationId).
func (*Client) GetQueryUsageUsageQueriesPost ¶
func (c *Client) GetQueryUsageUsageQueriesPost(ctx context.Context, body GetQueryUsageUsageQueriesPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
GetQueryUsageUsageQueriesPost Get Query Usage
Query usage (fine/coarse/pages/documents queries).
Takes a body of the `application/json` content type.
Corresponds with POST /usage/queries (the `GetQueryUsageUsageQueriesPost` operationId).
func (*Client) GetQueryUsageUsageQueriesPostWithBody ¶
func (c *Client) GetQueryUsageUsageQueriesPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetQueryUsageUsageQueriesPostWithBody Get Query Usage
Query usage (fine/coarse/pages/documents queries).
Takes any type of body and a specified content type.
Corresponds with POST /usage/queries (the `GetQueryUsageUsageQueriesPost` operationId).
func (*Client) GetStatusStatusGetStatusPost ¶
func (c *Client) GetStatusStatusGetStatusPost(ctx context.Context, body GetStatusStatusGetStatusPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
GetStatusStatusGetStatusPost Get Status
Gets the current indexing status across all documents.
If a collection name is passed in, it will get the indexing status of only the documents within that collection. Otherwise, it will show the cumulative status across all of your collections.
A `404 Not Found` status code will be returned, if a collection name was provided, but it does not exist.
Takes a body of the `application/json` content type.
Corresponds with POST /status/get-status (the `GetStatusStatusGetStatusPost` operationId).
func (*Client) GetStatusStatusGetStatusPostWithBody ¶
func (c *Client) GetStatusStatusGetStatusPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetStatusStatusGetStatusPostWithBody Get Status
Gets the current indexing status across all documents.
If a collection name is passed in, it will get the indexing status of only the documents within that collection. Otherwise, it will show the cumulative status across all of your collections.
A `404 Not Found` status code will be returned, if a collection name was provided, but it does not exist.
Takes any type of body and a specified content type.
Corresponds with POST /status/get-status (the `GetStatusStatusGetStatusPost` operationId).
func (*Client) GetUsageCountersUsageCountersPost ¶
func (c *Client) GetUsageCountersUsageCountersPost(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetUsageCountersUsageCountersPost Get Usage Counters
Usage counters for all-time and current billing cycle.
Corresponds with POST /usage/counters (the `GetUsageCountersUsageCountersPost` operationId).
func (*Client) ListApiKeysAdminListApiKeysPost ¶
func (c *Client) ListApiKeysAdminListApiKeysPost(ctx context.Context, body ListApiKeysAdminListApiKeysPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ListApiKeysAdminListApiKeysPost List Api Keys
Lists all API keys for the specified organization.
Takes a body of the `application/json` content type.
Corresponds with POST /admin/list-api-keys (the `ListApiKeysAdminListApiKeysPost` operationId).
func (*Client) ListApiKeysAdminListApiKeysPostWithBody ¶
func (c *Client) ListApiKeysAdminListApiKeysPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ListApiKeysAdminListApiKeysPostWithBody List Api Keys
Lists all API keys for the specified organization.
Takes any type of body and a specified content type.
Corresponds with POST /admin/list-api-keys (the `ListApiKeysAdminListApiKeysPost` operationId).
func (*Client) RerankModelsRerankPost ¶
func (c *Client) RerankModelsRerankPost(ctx context.Context, body RerankModelsRerankPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
RerankModelsRerankPost Rerank
Reranks the provided documents, according to the provided query.
For each document, the index and the score will be returned. The index is relative to the documents array that was passed in. The score is the query-document relevancy determined by the reranker model. The results will be returned in descending order of relevance.
Organizations will, by default, have a ratelimit of `500,000` bytes-per-minute (BPM) and `1000` requests-per-minute (RPM). Ratelimits are refreshed every 15 seconds. If this is exceeded, requests will be throttled into `latency: "slow"` mode, up to `5000000` bytes-per-minute. If even this is exceeded, you will get a `429` error.
The "bytes" used by a request is calculated as `sum(150 + query.encode('utf-8') + d.encode('utf-8') for d in documents)`. Note a baseline overhead of `150` bytes, and that the query bytes are included for each document, as rerankers are cross-encoders. The maximum per-request payload size is `5000000` bytes.
To increase your ratelimits, subscribe to a higher tier on the [ZeroEntropy dashboard](https://dashboard.zeroentropy.dev/billing). Any payments made for subscriptions in a calendar month will be deducted from your usage charges for that month.
To request even higher ratelimits, please contact [founders@zeroentropy.dev](mailto:founders@zeroentropy.dev) or message us on [Discord](https://go.zeroentropy.dev/discord) or [Slack](https://go.zeroentropy.dev/slack)!
Takes a body of the `application/json` content type.
Corresponds with POST /models/rerank (the `RerankModelsRerankPost` operationId).
func (*Client) RerankModelsRerankPostWithBody ¶
func (c *Client) RerankModelsRerankPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RerankModelsRerankPostWithBody Rerank
Reranks the provided documents, according to the provided query.
For each document, the index and the score will be returned. The index is relative to the documents array that was passed in. The score is the query-document relevancy determined by the reranker model. The results will be returned in descending order of relevance.
Organizations will, by default, have a ratelimit of `500,000` bytes-per-minute (BPM) and `1000` requests-per-minute (RPM). Ratelimits are refreshed every 15 seconds. If this is exceeded, requests will be throttled into `latency: "slow"` mode, up to `5000000` bytes-per-minute. If even this is exceeded, you will get a `429` error.
The "bytes" used by a request is calculated as `sum(150 + query.encode('utf-8') + d.encode('utf-8') for d in documents)`. Note a baseline overhead of `150` bytes, and that the query bytes are included for each document, as rerankers are cross-encoders. The maximum per-request payload size is `5000000` bytes.
To increase your ratelimits, subscribe to a higher tier on the [ZeroEntropy dashboard](https://dashboard.zeroentropy.dev/billing). Any payments made for subscriptions in a calendar month will be deducted from your usage charges for that month.
To request even higher ratelimits, please contact [founders@zeroentropy.dev](mailto:founders@zeroentropy.dev) or message us on [Discord](https://go.zeroentropy.dev/discord) or [Slack](https://go.zeroentropy.dev/slack)!
Takes any type of body and a specified content type.
Corresponds with POST /models/rerank (the `RerankModelsRerankPost` operationId).
func (*Client) TopDocumentsQueriesTopDocumentsPost ¶
func (c *Client) TopDocumentsQueriesTopDocumentsPost(ctx context.Context, body TopDocumentsQueriesTopDocumentsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
TopDocumentsQueriesTopDocumentsPost Top Documents
Get the top K documents that match the given query.
Takes a body of the `application/json` content type.
Corresponds with POST /queries/top-documents (the `TopDocumentsQueriesTopDocumentsPost` operationId).
func (*Client) TopDocumentsQueriesTopDocumentsPostWithBody ¶
func (c *Client) TopDocumentsQueriesTopDocumentsPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
TopDocumentsQueriesTopDocumentsPostWithBody Top Documents
Get the top K documents that match the given query.
Takes any type of body and a specified content type.
Corresponds with POST /queries/top-documents (the `TopDocumentsQueriesTopDocumentsPost` operationId).
func (*Client) TopPagesQueriesTopPagesPost ¶
func (c *Client) TopPagesQueriesTopPagesPost(ctx context.Context, body TopPagesQueriesTopPagesPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
TopPagesQueriesTopPagesPost Top Pages
Get the top K pages that match the given query.
Takes a body of the `application/json` content type.
Corresponds with POST /queries/top-pages (the `TopPagesQueriesTopPagesPost` operationId).
func (*Client) TopPagesQueriesTopPagesPostWithBody ¶
func (c *Client) TopPagesQueriesTopPagesPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
TopPagesQueriesTopPagesPostWithBody Top Pages
Get the top K pages that match the given query.
Takes any type of body and a specified content type.
Corresponds with POST /queries/top-pages (the `TopPagesQueriesTopPagesPost` operationId).
func (*Client) TopSnippetsQueriesTopSnippetsPost ¶
func (c *Client) TopSnippetsQueriesTopSnippetsPost(ctx context.Context, body TopSnippetsQueriesTopSnippetsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
TopSnippetsQueriesTopSnippetsPost Top Snippets
Get the top K snippets that match the given query.
You may choose between coarse and precise snippets. Precise snippets will average ~200 characters, while coarse snippets will average ~2000 characters. The default is coarse snippets. Use the `precise_responses` parameter to adjust.
Takes a body of the `application/json` content type.
Corresponds with POST /queries/top-snippets (the `TopSnippetsQueriesTopSnippetsPost` operationId).
func (*Client) TopSnippetsQueriesTopSnippetsPostWithBody ¶
func (c *Client) TopSnippetsQueriesTopSnippetsPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
TopSnippetsQueriesTopSnippetsPostWithBody Top Snippets
Get the top K snippets that match the given query.
You may choose between coarse and precise snippets. Precise snippets will average ~200 characters, while coarse snippets will average ~2000 characters. The default is coarse snippets. Use the `precise_responses` parameter to adjust.
Takes any type of body and a specified content type.
Corresponds with POST /queries/top-snippets (the `TopSnippetsQueriesTopSnippetsPost` operationId).
func (*Client) UpdateApiKeyAdminUpdateApiKeyPost ¶
func (c *Client) UpdateApiKeyAdminUpdateApiKeyPost(ctx context.Context, body UpdateApiKeyAdminUpdateApiKeyPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateApiKeyAdminUpdateApiKeyPost Update Api Key
Updates the name and/or permission of the specified API key.
Takes a body of the `application/json` content type.
Corresponds with POST /admin/update-api-key (the `UpdateApiKeyAdminUpdateApiKeyPost` operationId).
func (*Client) UpdateApiKeyAdminUpdateApiKeyPostWithBody ¶
func (c *Client) UpdateApiKeyAdminUpdateApiKeyPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateApiKeyAdminUpdateApiKeyPostWithBody Update Api Key
Updates the name and/or permission of the specified API key.
Takes any type of body and a specified content type.
Corresponds with POST /admin/update-api-key (the `UpdateApiKeyAdminUpdateApiKeyPost` operationId).
func (*Client) UpdateDocumentDocumentsUpdateDocumentPost ¶
func (c *Client) UpdateDocumentDocumentsUpdateDocumentPost(ctx context.Context, body UpdateDocumentDocumentsUpdateDocumentPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateDocumentDocumentsUpdateDocumentPost Update Document
Updates a document. This endpoint is atomic.
Currently both `metadata` and `index_status` are supported.
- When updating with a non-null `metadata`, the document must have `index_status` of `indexed`. After this call, the document will have an `index_status` of `not_indexed`, since the document will need to reindex with the new metadata. - When updating with a non-null `index_status`, setting it to `not_parsed` or `not_indexed` requires that the document must have `index_status` of `parsing_failed` or `indexing_failed`, respectively.
A `404 Not Found` status code will be returned, if the provided collection name or document path does not exist.
Takes a body of the `application/json` content type.
Corresponds with POST /documents/update-document (the `UpdateDocumentDocumentsUpdateDocumentPost` operationId).
func (*Client) UpdateDocumentDocumentsUpdateDocumentPostWithBody ¶
func (c *Client) UpdateDocumentDocumentsUpdateDocumentPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateDocumentDocumentsUpdateDocumentPostWithBody Update Document
Updates a document. This endpoint is atomic.
Currently both `metadata` and `index_status` are supported.
- When updating with a non-null `metadata`, the document must have `index_status` of `indexed`. After this call, the document will have an `index_status` of `not_indexed`, since the document will need to reindex with the new metadata. - When updating with a non-null `index_status`, setting it to `not_parsed` or `not_indexed` requires that the document must have `index_status` of `parsing_failed` or `indexing_failed`, respectively.
A `404 Not Found` status code will be returned, if the provided collection name or document path does not exist.
Takes any type of body and a specified content type.
Corresponds with POST /documents/update-document (the `UpdateDocumentDocumentsUpdateDocumentPost` operationId).
func (*Client) UpdateOrganizationAdminUpdateOrganizationPost ¶ added in v0.2.0
func (c *Client) UpdateOrganizationAdminUpdateOrganizationPost(ctx context.Context, body UpdateOrganizationAdminUpdateOrganizationPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateOrganizationAdminUpdateOrganizationPost Update Organization
Updates subscription tier, rate limit overrides, and/or ZDR state for an organization.
NOTE: Setting a rate limit override to 0 will disable the override and cause the organization to fall back to the default limits for their subscription tier.
Takes a body of the `application/json` content type.
Corresponds with POST /admin/update-organization (the `UpdateOrganizationAdminUpdateOrganizationPost` operationId).
func (*Client) UpdateOrganizationAdminUpdateOrganizationPostWithBody ¶ added in v0.2.0
func (c *Client) UpdateOrganizationAdminUpdateOrganizationPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateOrganizationAdminUpdateOrganizationPostWithBody Update Organization
Updates subscription tier, rate limit overrides, and/or ZDR state for an organization.
NOTE: Setting a rate limit override to 0 will disable the override and cause the organization to fall back to the default limits for their subscription tier.
Takes any type of body and a specified content type.
Corresponds with POST /admin/update-organization (the `UpdateOrganizationAdminUpdateOrganizationPost` operationId).
type ClientInterface ¶
type ClientInterface interface {
// AddApiKeyAdminAddApiKeyPostWithBody Add Api Key
//
// Creates a new API key for the specified organization.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /admin/add-api-key (the `AddApiKeyAdminAddApiKeyPost` operationId).
AddApiKeyAdminAddApiKeyPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddApiKeyAdminAddApiKeyPost Add Api Key
//
// Creates a new API key for the specified organization.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /admin/add-api-key (the `AddApiKeyAdminAddApiKeyPost` operationId).
AddApiKeyAdminAddApiKeyPost(ctx context.Context, body AddApiKeyAdminAddApiKeyPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateOrganizationAdminCreateOrganizationPostWithBody Create Organization
//
// Creates an organization with the provided organization name.
//
// Returns 201 if a new organization was created, 200 if an existing organization was found.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /admin/create-organization (the `CreateOrganizationAdminCreateOrganizationPost` operationId).
CreateOrganizationAdminCreateOrganizationPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateOrganizationAdminCreateOrganizationPost Create Organization
//
// Creates an organization with the provided organization name.
//
// Returns 201 if a new organization was created, 200 if an existing organization was found.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /admin/create-organization (the `CreateOrganizationAdminCreateOrganizationPost` operationId).
CreateOrganizationAdminCreateOrganizationPost(ctx context.Context, body CreateOrganizationAdminCreateOrganizationPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiKeyAdminDeleteApiKeyPostWithBody Delete Api Key
//
// Deletes the specified API key.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /admin/delete-api-key (the `DeleteApiKeyAdminDeleteApiKeyPost` operationId).
DeleteApiKeyAdminDeleteApiKeyPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiKeyAdminDeleteApiKeyPost Delete Api Key
//
// Deletes the specified API key.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /admin/delete-api-key (the `DeleteApiKeyAdminDeleteApiKeyPost` operationId).
DeleteApiKeyAdminDeleteApiKeyPost(ctx context.Context, body DeleteApiKeyAdminDeleteApiKeyPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOrganizationAdminGetOrganizationPostWithBody Get Organization
//
// Returns organization details, including rate limits and ZDR state.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /admin/get-organization (the `GetOrganizationAdminGetOrganizationPost` operationId).
GetOrganizationAdminGetOrganizationPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOrganizationAdminGetOrganizationPost Get Organization
//
// Returns organization details, including rate limits and ZDR state.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /admin/get-organization (the `GetOrganizationAdminGetOrganizationPost` operationId).
GetOrganizationAdminGetOrganizationPost(ctx context.Context, body GetOrganizationAdminGetOrganizationPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListApiKeysAdminListApiKeysPostWithBody List Api Keys
//
// Lists all API keys for the specified organization.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /admin/list-api-keys (the `ListApiKeysAdminListApiKeysPost` operationId).
ListApiKeysAdminListApiKeysPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListApiKeysAdminListApiKeysPost List Api Keys
//
// Lists all API keys for the specified organization.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /admin/list-api-keys (the `ListApiKeysAdminListApiKeysPost` operationId).
ListApiKeysAdminListApiKeysPost(ctx context.Context, body ListApiKeysAdminListApiKeysPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateApiKeyAdminUpdateApiKeyPostWithBody Update Api Key
//
// Updates the name and/or permission of the specified API key.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /admin/update-api-key (the `UpdateApiKeyAdminUpdateApiKeyPost` operationId).
UpdateApiKeyAdminUpdateApiKeyPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateApiKeyAdminUpdateApiKeyPost Update Api Key
//
// Updates the name and/or permission of the specified API key.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /admin/update-api-key (the `UpdateApiKeyAdminUpdateApiKeyPost` operationId).
UpdateApiKeyAdminUpdateApiKeyPost(ctx context.Context, body UpdateApiKeyAdminUpdateApiKeyPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateOrganizationAdminUpdateOrganizationPostWithBody Update Organization
//
// Updates subscription tier, rate limit overrides, and/or ZDR state for an organization.
//
// NOTE: Setting a rate limit override to 0 will disable the override and cause the organization to fall back to the default limits for their subscription tier.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /admin/update-organization (the `UpdateOrganizationAdminUpdateOrganizationPost` operationId).
UpdateOrganizationAdminUpdateOrganizationPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateOrganizationAdminUpdateOrganizationPost Update Organization
//
// Updates subscription tier, rate limit overrides, and/or ZDR state for an organization.
//
// NOTE: Setting a rate limit override to 0 will disable the override and cause the organization to fall back to the default limits for their subscription tier.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /admin/update-organization (the `UpdateOrganizationAdminUpdateOrganizationPost` operationId).
UpdateOrganizationAdminUpdateOrganizationPost(ctx context.Context, body UpdateOrganizationAdminUpdateOrganizationPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddCollectionCollectionsAddCollectionPostWithBody Add Collection
//
// Adds a collection.
//
// If the collection already exists, a `409 Conflict` status code will be returned.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /collections/add-collection (the `AddCollectionCollectionsAddCollectionPost` operationId).
AddCollectionCollectionsAddCollectionPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddCollectionCollectionsAddCollectionPost Add Collection
//
// Adds a collection.
//
// If the collection already exists, a `409 Conflict` status code will be returned.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /collections/add-collection (the `AddCollectionCollectionsAddCollectionPost` operationId).
AddCollectionCollectionsAddCollectionPost(ctx context.Context, body AddCollectionCollectionsAddCollectionPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteCollectionCollectionsDeleteCollectionPostWithBody Delete Collection
//
// Deletes a collection.
//
// A `404 Not Found` status code will be returned, if the provided collection name does not exist.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /collections/delete-collection (the `DeleteCollectionCollectionsDeleteCollectionPost` operationId).
DeleteCollectionCollectionsDeleteCollectionPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteCollectionCollectionsDeleteCollectionPost Delete Collection
//
// Deletes a collection.
//
// A `404 Not Found` status code will be returned, if the provided collection name does not exist.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /collections/delete-collection (the `DeleteCollectionCollectionsDeleteCollectionPost` operationId).
DeleteCollectionCollectionsDeleteCollectionPost(ctx context.Context, body DeleteCollectionCollectionsDeleteCollectionPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCollectionListCollectionsGetCollectionListPostWithBody Get Collection List
//
// Gets a complete list of all of your collections.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /collections/get-collection-list (the `GetCollectionListCollectionsGetCollectionListPost` operationId).
GetCollectionListCollectionsGetCollectionListPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCollectionListCollectionsGetCollectionListPost Get Collection List
//
// Gets a complete list of all of your collections.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /collections/get-collection-list (the `GetCollectionListCollectionsGetCollectionListPost` operationId).
GetCollectionListCollectionsGetCollectionListPost(ctx context.Context, body GetCollectionListCollectionsGetCollectionListPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddDocumentDocumentsAddDocumentPostWithBody Add Document
//
// Adds a document to a given collection.
//
// A status code of `201 Created` will be returned if a document was successfully added. A status code of `409 Conflict` will be returned if the given collection already has a document with the same path.
//
// If `overwrite` is given a value of `true`, then a status code of `200 OK` will be returned if a document was overwritten (Rather than a status code of `409 Conflict`).
//
// When a document is inserted, it can take time to appear in the index. Check the `/status/get-status` endpoint to see progress.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /documents/add-document (the `AddDocumentDocumentsAddDocumentPost` operationId).
AddDocumentDocumentsAddDocumentPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddDocumentDocumentsAddDocumentPost Add Document
//
// Adds a document to a given collection.
//
// A status code of `201 Created` will be returned if a document was successfully added. A status code of `409 Conflict` will be returned if the given collection already has a document with the same path.
//
// If `overwrite` is given a value of `true`, then a status code of `200 OK` will be returned if a document was overwritten (Rather than a status code of `409 Conflict`).
//
// When a document is inserted, it can take time to appear in the index. Check the `/status/get-status` endpoint to see progress.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /documents/add-document (the `AddDocumentDocumentsAddDocumentPost` operationId).
AddDocumentDocumentsAddDocumentPost(ctx context.Context, body AddDocumentDocumentsAddDocumentPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteDocumentDocumentsDeleteDocumentPostWithBody Delete Document
//
// Deletes a document
//
// A `404 Not Found` status code will be returned, if the provided collection name or document path does not exist.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /documents/delete-document (the `DeleteDocumentDocumentsDeleteDocumentPost` operationId).
DeleteDocumentDocumentsDeleteDocumentPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteDocumentDocumentsDeleteDocumentPost Delete Document
//
// Deletes a document
//
// A `404 Not Found` status code will be returned, if the provided collection name or document path does not exist.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /documents/delete-document (the `DeleteDocumentDocumentsDeleteDocumentPost` operationId).
DeleteDocumentDocumentsDeleteDocumentPost(ctx context.Context, body DeleteDocumentDocumentsDeleteDocumentPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDocumentDocumentsGetDocumentGet Get Document
//
// Get the document. The content will be the binary PDF/DOCX content, or be UTF-8-encoded content if it is text.
//
// A `404 Not Found` status code will be returned, if the provided request parameters do not exist.
//
// Note that if `/documents/update-document` returns a new document id, then all urls will be invalidated and must be retrieved again.
//
// The HTTP cache policy on this endpoint is set to never expire, unlike other endpoints whose HTTP headers assert no-cache.
//
// Corresponds with GET /documents/get-document (the `GetDocumentDocumentsGetDocumentGet` operationId).
GetDocumentDocumentsGetDocumentGet(ctx context.Context, params *GetDocumentDocumentsGetDocumentGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDocumentInfoDocumentsGetDocumentInfoPostWithBody Get Document Info
//
// Retrieves information about a specific document. The request parameters define what information you would like to receive.
//
// A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided collection.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /documents/get-document-info (the `GetDocumentInfoDocumentsGetDocumentInfoPost` operationId).
GetDocumentInfoDocumentsGetDocumentInfoPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDocumentInfoDocumentsGetDocumentInfoPost Get Document Info
//
// Retrieves information about a specific document. The request parameters define what information you would like to receive.
//
// A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided collection.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /documents/get-document-info (the `GetDocumentInfoDocumentsGetDocumentInfoPost` operationId).
GetDocumentInfoDocumentsGetDocumentInfoPost(ctx context.Context, body GetDocumentInfoDocumentsGetDocumentInfoPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDocumentInfoListDocumentsGetDocumentInfoListPostWithBody Get Document Info List
//
// Retrives a list of document metadata information that matches the provided filters.
//
// The documents returned will be sorted by path in lexicographically ascending order. `path_gt` can be used for pagination, and should be set to the path of the last document returned in the previous call.
//
// A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided collection.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /documents/get-document-info-list (the `GetDocumentInfoListDocumentsGetDocumentInfoListPost` operationId).
GetDocumentInfoListDocumentsGetDocumentInfoListPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDocumentInfoListDocumentsGetDocumentInfoListPost Get Document Info List
//
// Retrives a list of document metadata information that matches the provided filters.
//
// The documents returned will be sorted by path in lexicographically ascending order. `path_gt` can be used for pagination, and should be set to the path of the last document returned in the previous call.
//
// A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided collection.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /documents/get-document-info-list (the `GetDocumentInfoListDocumentsGetDocumentInfoListPost` operationId).
GetDocumentInfoListDocumentsGetDocumentInfoListPost(ctx context.Context, body GetDocumentInfoListDocumentsGetDocumentInfoListPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPageImageDocumentsGetPageImageGet Get Page Image
//
// Get the image for a specific page. The image will be returned as a JPEG.
//
// This endpoint is meant to be used with `<img>` tags in the frontend. A `404 Not Found` status code will be returned, if the provided request parameters do not exist or if the page exists but does not have an associated image.
//
// Note that if `/documents/update-document` returns a new document id, then all urls will be invalidated and must be retrieved again.
//
// The HTTP cache policy on this endpoint is set to never expire, unlike other endpoints whose HTTP headers assert no-cache.
//
// Corresponds with GET /documents/get-page-image (the `GetPageImageDocumentsGetPageImageGet` operationId).
GetPageImageDocumentsGetPageImageGet(ctx context.Context, params *GetPageImageDocumentsGetPageImageGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPageInfoDocumentsGetPageInfoPostWithBody Get Page Info
//
// Retrieves information about a specific page. The request parameters define what information you would like to receive.
//
// A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided collection.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /documents/get-page-info (the `GetPageInfoDocumentsGetPageInfoPost` operationId).
GetPageInfoDocumentsGetPageInfoPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPageInfoDocumentsGetPageInfoPost Get Page Info
//
// Retrieves information about a specific page. The request parameters define what information you would like to receive.
//
// A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided collection.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /documents/get-page-info (the `GetPageInfoDocumentsGetPageInfoPost` operationId).
GetPageInfoDocumentsGetPageInfoPost(ctx context.Context, body GetPageInfoDocumentsGetPageInfoPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateDocumentDocumentsUpdateDocumentPostWithBody Update Document
//
// Updates a document. This endpoint is atomic.
//
// Currently both `metadata` and `index_status` are supported.
//
// - When updating with a non-null `metadata`, the document must have `index_status` of `indexed`. After this call, the document will have an `index_status` of `not_indexed`, since the document will need to reindex with the new metadata.
// - When updating with a non-null `index_status`, setting it to `not_parsed` or `not_indexed` requires that the document must have `index_status` of `parsing_failed` or `indexing_failed`, respectively.
//
// A `404 Not Found` status code will be returned, if the provided collection name or document path does not exist.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /documents/update-document (the `UpdateDocumentDocumentsUpdateDocumentPost` operationId).
UpdateDocumentDocumentsUpdateDocumentPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateDocumentDocumentsUpdateDocumentPost Update Document
//
// Updates a document. This endpoint is atomic.
//
// Currently both `metadata` and `index_status` are supported.
//
// - When updating with a non-null `metadata`, the document must have `index_status` of `indexed`. After this call, the document will have an `index_status` of `not_indexed`, since the document will need to reindex with the new metadata.
// - When updating with a non-null `index_status`, setting it to `not_parsed` or `not_indexed` requires that the document must have `index_status` of `parsing_failed` or `indexing_failed`, respectively.
//
// A `404 Not Found` status code will be returned, if the provided collection name or document path does not exist.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /documents/update-document (the `UpdateDocumentDocumentsUpdateDocumentPost` operationId).
UpdateDocumentDocumentsUpdateDocumentPost(ctx context.Context, body UpdateDocumentDocumentsUpdateDocumentPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EmbedModelsEmbedPostWithBody Embed
//
// Embeds the provided input text with ZeroEntropy embedding models.
//
// The results will be returned in the same order as the text provided. The embedding is such that queries will have high cosine similarity with documents that are relevant to that query.
//
// Organizations will, by default, have a ratelimit of `500000` bytes-per-minute. If this is exceeded, requests will be throttled into `latency: "slow"` mode, up to `5000000` bytes-per-minute. If even this is exceeded, you will get a `429` error.
//
// The "bytes" used by a request is calculated as `sum(150 + s.encode('utf-8') for s in input)`. Note a baseline overhead of `150` bytes. The maximum per-request payload size is `5000000` bytes, and the maximum number of inputs per request is `2048`.
//
// To increase your ratelimits, subscribe to a higher tier on the [ZeroEntropy dashboard](https://dashboard.zeroentropy.dev/billing). Any payments made for subscriptions in a calendar month will be deducted from your usage charges for that month.
//
// To request even higher ratelimits, please contact [founders@zeroentropy.dev](mailto:founders@zeroentropy.dev) or message us on [Discord](https://go.zeroentropy.dev/discord) or [Slack](https://go.zeroentropy.dev/slack)!
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /models/embed (the `EmbedModelsEmbedPost` operationId).
EmbedModelsEmbedPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// EmbedModelsEmbedPost Embed
//
// Embeds the provided input text with ZeroEntropy embedding models.
//
// The results will be returned in the same order as the text provided. The embedding is such that queries will have high cosine similarity with documents that are relevant to that query.
//
// Organizations will, by default, have a ratelimit of `500000` bytes-per-minute. If this is exceeded, requests will be throttled into `latency: "slow"` mode, up to `5000000` bytes-per-minute. If even this is exceeded, you will get a `429` error.
//
// The "bytes" used by a request is calculated as `sum(150 + s.encode('utf-8') for s in input)`. Note a baseline overhead of `150` bytes. The maximum per-request payload size is `5000000` bytes, and the maximum number of inputs per request is `2048`.
//
// To increase your ratelimits, subscribe to a higher tier on the [ZeroEntropy dashboard](https://dashboard.zeroentropy.dev/billing). Any payments made for subscriptions in a calendar month will be deducted from your usage charges for that month.
//
// To request even higher ratelimits, please contact [founders@zeroentropy.dev](mailto:founders@zeroentropy.dev) or message us on [Discord](https://go.zeroentropy.dev/discord) or [Slack](https://go.zeroentropy.dev/slack)!
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /models/embed (the `EmbedModelsEmbedPost` operationId).
EmbedModelsEmbedPost(ctx context.Context, body EmbedModelsEmbedPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RerankModelsRerankPostWithBody Rerank
//
// Reranks the provided documents, according to the provided query.
//
// For each document, the index and the score will be returned. The index is relative to the documents array that was passed in. The score is the query-document relevancy determined by the reranker model. The results will be returned in descending order of relevance.
//
// Organizations will, by default, have a ratelimit of `500,000` bytes-per-minute (BPM) and `1000` requests-per-minute (RPM). Ratelimits are refreshed every 15 seconds. If this is exceeded, requests will be throttled into `latency: "slow"` mode, up to `5000000` bytes-per-minute. If even this is exceeded, you will get a `429` error.
//
// The "bytes" used by a request is calculated as `sum(150 + query.encode('utf-8') + d.encode('utf-8') for d in documents)`. Note a baseline overhead of `150` bytes, and that the query bytes are included for each document, as rerankers are cross-encoders. The maximum per-request payload size is `5000000` bytes.
//
// To increase your ratelimits, subscribe to a higher tier on the [ZeroEntropy dashboard](https://dashboard.zeroentropy.dev/billing). Any payments made for subscriptions in a calendar month will be deducted from your usage charges for that month.
//
// To request even higher ratelimits, please contact [founders@zeroentropy.dev](mailto:founders@zeroentropy.dev) or message us on [Discord](https://go.zeroentropy.dev/discord) or [Slack](https://go.zeroentropy.dev/slack)!
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /models/rerank (the `RerankModelsRerankPost` operationId).
RerankModelsRerankPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// RerankModelsRerankPost Rerank
//
// Reranks the provided documents, according to the provided query.
//
// For each document, the index and the score will be returned. The index is relative to the documents array that was passed in. The score is the query-document relevancy determined by the reranker model. The results will be returned in descending order of relevance.
//
// Organizations will, by default, have a ratelimit of `500,000` bytes-per-minute (BPM) and `1000` requests-per-minute (RPM). Ratelimits are refreshed every 15 seconds. If this is exceeded, requests will be throttled into `latency: "slow"` mode, up to `5000000` bytes-per-minute. If even this is exceeded, you will get a `429` error.
//
// The "bytes" used by a request is calculated as `sum(150 + query.encode('utf-8') + d.encode('utf-8') for d in documents)`. Note a baseline overhead of `150` bytes, and that the query bytes are included for each document, as rerankers are cross-encoders. The maximum per-request payload size is `5000000` bytes.
//
// To increase your ratelimits, subscribe to a higher tier on the [ZeroEntropy dashboard](https://dashboard.zeroentropy.dev/billing). Any payments made for subscriptions in a calendar month will be deducted from your usage charges for that month.
//
// To request even higher ratelimits, please contact [founders@zeroentropy.dev](mailto:founders@zeroentropy.dev) or message us on [Discord](https://go.zeroentropy.dev/discord) or [Slack](https://go.zeroentropy.dev/slack)!
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /models/rerank (the `RerankModelsRerankPost` operationId).
RerankModelsRerankPost(ctx context.Context, body RerankModelsRerankPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// TopDocumentsQueriesTopDocumentsPostWithBody Top Documents
//
// Get the top K documents that match the given query.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /queries/top-documents (the `TopDocumentsQueriesTopDocumentsPost` operationId).
TopDocumentsQueriesTopDocumentsPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// TopDocumentsQueriesTopDocumentsPost Top Documents
//
// Get the top K documents that match the given query.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /queries/top-documents (the `TopDocumentsQueriesTopDocumentsPost` operationId).
TopDocumentsQueriesTopDocumentsPost(ctx context.Context, body TopDocumentsQueriesTopDocumentsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// TopPagesQueriesTopPagesPostWithBody Top Pages
//
// Get the top K pages that match the given query.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /queries/top-pages (the `TopPagesQueriesTopPagesPost` operationId).
TopPagesQueriesTopPagesPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// TopPagesQueriesTopPagesPost Top Pages
//
// Get the top K pages that match the given query.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /queries/top-pages (the `TopPagesQueriesTopPagesPost` operationId).
TopPagesQueriesTopPagesPost(ctx context.Context, body TopPagesQueriesTopPagesPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// TopSnippetsQueriesTopSnippetsPostWithBody Top Snippets
//
// Get the top K snippets that match the given query.
//
// You may choose between coarse and precise snippets. Precise snippets will average ~200 characters, while coarse snippets will average ~2000 characters. The default is coarse snippets. Use the `precise_responses` parameter to adjust.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /queries/top-snippets (the `TopSnippetsQueriesTopSnippetsPost` operationId).
TopSnippetsQueriesTopSnippetsPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// TopSnippetsQueriesTopSnippetsPost Top Snippets
//
// Get the top K snippets that match the given query.
//
// You may choose between coarse and precise snippets. Precise snippets will average ~200 characters, while coarse snippets will average ~2000 characters. The default is coarse snippets. Use the `precise_responses` parameter to adjust.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /queries/top-snippets (the `TopSnippetsQueriesTopSnippetsPost` operationId).
TopSnippetsQueriesTopSnippetsPost(ctx context.Context, body TopSnippetsQueriesTopSnippetsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetStatusStatusGetStatusPostWithBody Get Status
//
// Gets the current indexing status across all documents.
//
// If a collection name is passed in, it will get the indexing status of only the documents within that collection. Otherwise, it will show the cumulative status across all of your collections.
//
// A `404 Not Found` status code will be returned, if a collection name was provided, but it does not exist.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /status/get-status (the `GetStatusStatusGetStatusPost` operationId).
GetStatusStatusGetStatusPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetStatusStatusGetStatusPost Get Status
//
// Gets the current indexing status across all documents.
//
// If a collection name is passed in, it will get the indexing status of only the documents within that collection. Otherwise, it will show the cumulative status across all of your collections.
//
// A `404 Not Found` status code will be returned, if a collection name was provided, but it does not exist.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /status/get-status (the `GetStatusStatusGetStatusPost` operationId).
GetStatusStatusGetStatusPost(ctx context.Context, body GetStatusStatusGetStatusPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUsageCountersUsageCountersPost Get Usage Counters
//
// Usage counters for all-time and current billing cycle.
//
// Corresponds with POST /usage/counters (the `GetUsageCountersUsageCountersPost` operationId).
GetUsageCountersUsageCountersPost(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDocumentUsageUsageDocumentsPostWithBody Get Document Usage
//
// Document usage analytics (added/deleted/parsed/indexed events).
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /usage/documents (the `GetDocumentUsageUsageDocumentsPost` operationId).
GetDocumentUsageUsageDocumentsPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDocumentUsageUsageDocumentsPost Get Document Usage
//
// Document usage analytics (added/deleted/parsed/indexed events).
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /usage/documents (the `GetDocumentUsageUsageDocumentsPost` operationId).
GetDocumentUsageUsageDocumentsPost(ctx context.Context, body GetDocumentUsageUsageDocumentsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetModelsUsageCountersUsageModelsCountersPost Get Models Usage Counters
//
// Get models usage counters for all-time and current billing cycle.
//
// Corresponds with POST /usage/models/counters (the `GetModelsUsageCountersUsageModelsCountersPost` operationId).
GetModelsUsageCountersUsageModelsCountersPost(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetModelsEmbedUsageUsageModelsEmbedPostWithBody Get Models Embed Usage
//
// Get embedding usage analytics with model breakdown.
//
// Note: Embed events don't have collection_id, so collection filtering is not supported.
// If collection_names are provided in the request, they will be ignored.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /usage/models/embed (the `GetModelsEmbedUsageUsageModelsEmbedPost` operationId).
GetModelsEmbedUsageUsageModelsEmbedPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetModelsEmbedUsageUsageModelsEmbedPost Get Models Embed Usage
//
// Get embedding usage analytics with model breakdown.
//
// Note: Embed events don't have collection_id, so collection filtering is not supported.
// If collection_names are provided in the request, they will be ignored.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /usage/models/embed (the `GetModelsEmbedUsageUsageModelsEmbedPost` operationId).
GetModelsEmbedUsageUsageModelsEmbedPost(ctx context.Context, body GetModelsEmbedUsageUsageModelsEmbedPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetModelsRerankerUsageUsageModelsRerankerPostWithBody Get Models Reranker Usage
//
// Get reranker usage analytics with model breakdown.
//
// Note: Rerank events don't have collection_id, so collection filtering is not supported.
// If collection_names are provided in the request, they will be ignored.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /usage/models/reranker (the `GetModelsRerankerUsageUsageModelsRerankerPost` operationId).
GetModelsRerankerUsageUsageModelsRerankerPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetModelsRerankerUsageUsageModelsRerankerPost Get Models Reranker Usage
//
// Get reranker usage analytics with model breakdown.
//
// Note: Rerank events don't have collection_id, so collection filtering is not supported.
// If collection_names are provided in the request, they will be ignored.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /usage/models/reranker (the `GetModelsRerankerUsageUsageModelsRerankerPost` operationId).
GetModelsRerankerUsageUsageModelsRerankerPost(ctx context.Context, body GetModelsRerankerUsageUsageModelsRerankerPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetQueryUsageUsageQueriesPostWithBody Get Query Usage
//
// Query usage (fine/coarse/pages/documents queries).
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /usage/queries (the `GetQueryUsageUsageQueriesPost` operationId).
GetQueryUsageUsageQueriesPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetQueryUsageUsageQueriesPost Get Query Usage
//
// Query usage (fine/coarse/pages/documents queries).
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /usage/queries (the `GetQueryUsageUsageQueriesPost` operationId).
GetQueryUsageUsageQueriesPost(ctx context.Context, body GetQueryUsageUsageQueriesPostJSONRequestBody, 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) AddApiKeyAdminAddApiKeyPostWithBodyWithResponse ¶
func (c *ClientWithResponses) AddApiKeyAdminAddApiKeyPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddApiKeyAdminAddApiKeyPostResponse, error)
AddApiKeyAdminAddApiKeyPostWithBodyWithResponse Add Api Key
Creates a new API key for the specified organization.
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 /admin/add-api-key (the `AddApiKeyAdminAddApiKeyPost` operationId).
func (*ClientWithResponses) AddApiKeyAdminAddApiKeyPostWithResponse ¶
func (c *ClientWithResponses) AddApiKeyAdminAddApiKeyPostWithResponse(ctx context.Context, body AddApiKeyAdminAddApiKeyPostJSONRequestBody, reqEditors ...RequestEditorFn) (*AddApiKeyAdminAddApiKeyPostResponse, error)
AddApiKeyAdminAddApiKeyPostWithResponse Add Api Key
Creates a new API key for the specified organization.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /admin/add-api-key (the `AddApiKeyAdminAddApiKeyPost` operationId).
func (*ClientWithResponses) AddCollectionCollectionsAddCollectionPostWithBodyWithResponse ¶
func (c *ClientWithResponses) AddCollectionCollectionsAddCollectionPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddCollectionCollectionsAddCollectionPostResponse, error)
AddCollectionCollectionsAddCollectionPostWithBodyWithResponse Add Collection
Adds a collection.
If the collection already exists, a `409 Conflict` status code will be returned.
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 /collections/add-collection (the `AddCollectionCollectionsAddCollectionPost` operationId).
func (*ClientWithResponses) AddCollectionCollectionsAddCollectionPostWithResponse ¶
func (c *ClientWithResponses) AddCollectionCollectionsAddCollectionPostWithResponse(ctx context.Context, body AddCollectionCollectionsAddCollectionPostJSONRequestBody, reqEditors ...RequestEditorFn) (*AddCollectionCollectionsAddCollectionPostResponse, error)
AddCollectionCollectionsAddCollectionPostWithResponse Add Collection
Adds a collection.
If the collection already exists, a `409 Conflict` status code will be returned.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /collections/add-collection (the `AddCollectionCollectionsAddCollectionPost` operationId).
func (*ClientWithResponses) AddDocumentDocumentsAddDocumentPostWithBodyWithResponse ¶
func (c *ClientWithResponses) AddDocumentDocumentsAddDocumentPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddDocumentDocumentsAddDocumentPostResponse, error)
AddDocumentDocumentsAddDocumentPostWithBodyWithResponse Add Document
Adds a document to a given collection.
A status code of `201 Created` will be returned if a document was successfully added. A status code of `409 Conflict` will be returned if the given collection already has a document with the same path.
If `overwrite` is given a value of `true`, then a status code of `200 OK` will be returned if a document was overwritten (Rather than a status code of `409 Conflict`).
When a document is inserted, it can take time to appear in the index. Check the `/status/get-status` endpoint to see progress.
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 /documents/add-document (the `AddDocumentDocumentsAddDocumentPost` operationId).
func (*ClientWithResponses) AddDocumentDocumentsAddDocumentPostWithResponse ¶
func (c *ClientWithResponses) AddDocumentDocumentsAddDocumentPostWithResponse(ctx context.Context, body AddDocumentDocumentsAddDocumentPostJSONRequestBody, reqEditors ...RequestEditorFn) (*AddDocumentDocumentsAddDocumentPostResponse, error)
AddDocumentDocumentsAddDocumentPostWithResponse Add Document
Adds a document to a given collection.
A status code of `201 Created` will be returned if a document was successfully added. A status code of `409 Conflict` will be returned if the given collection already has a document with the same path.
If `overwrite` is given a value of `true`, then a status code of `200 OK` will be returned if a document was overwritten (Rather than a status code of `409 Conflict`).
When a document is inserted, it can take time to appear in the index. Check the `/status/get-status` endpoint to see progress.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /documents/add-document (the `AddDocumentDocumentsAddDocumentPost` operationId).
func (*ClientWithResponses) CreateOrganizationAdminCreateOrganizationPostWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateOrganizationAdminCreateOrganizationPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganizationAdminCreateOrganizationPostResponse, error)
CreateOrganizationAdminCreateOrganizationPostWithBodyWithResponse Create Organization
Creates an organization with the provided organization name.
Returns 201 if a new organization was created, 200 if an existing organization was found.
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 /admin/create-organization (the `CreateOrganizationAdminCreateOrganizationPost` operationId).
func (*ClientWithResponses) CreateOrganizationAdminCreateOrganizationPostWithResponse ¶
func (c *ClientWithResponses) CreateOrganizationAdminCreateOrganizationPostWithResponse(ctx context.Context, body CreateOrganizationAdminCreateOrganizationPostJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationAdminCreateOrganizationPostResponse, error)
CreateOrganizationAdminCreateOrganizationPostWithResponse Create Organization
Creates an organization with the provided organization name.
Returns 201 if a new organization was created, 200 if an existing organization was found.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /admin/create-organization (the `CreateOrganizationAdminCreateOrganizationPost` operationId).
func (*ClientWithResponses) DeleteApiKeyAdminDeleteApiKeyPostWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteApiKeyAdminDeleteApiKeyPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteApiKeyAdminDeleteApiKeyPostResponse, error)
DeleteApiKeyAdminDeleteApiKeyPostWithBodyWithResponse Delete Api Key
Deletes the specified API key.
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 /admin/delete-api-key (the `DeleteApiKeyAdminDeleteApiKeyPost` operationId).
func (*ClientWithResponses) DeleteApiKeyAdminDeleteApiKeyPostWithResponse ¶
func (c *ClientWithResponses) DeleteApiKeyAdminDeleteApiKeyPostWithResponse(ctx context.Context, body DeleteApiKeyAdminDeleteApiKeyPostJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteApiKeyAdminDeleteApiKeyPostResponse, error)
DeleteApiKeyAdminDeleteApiKeyPostWithResponse Delete Api Key
Deletes the specified API key.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /admin/delete-api-key (the `DeleteApiKeyAdminDeleteApiKeyPost` operationId).
func (*ClientWithResponses) DeleteCollectionCollectionsDeleteCollectionPostWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteCollectionCollectionsDeleteCollectionPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteCollectionCollectionsDeleteCollectionPostResponse, error)
DeleteCollectionCollectionsDeleteCollectionPostWithBodyWithResponse Delete Collection
Deletes a collection.
A `404 Not Found` status code will be returned, if the provided collection name does not exist.
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 /collections/delete-collection (the `DeleteCollectionCollectionsDeleteCollectionPost` operationId).
func (*ClientWithResponses) DeleteCollectionCollectionsDeleteCollectionPostWithResponse ¶
func (c *ClientWithResponses) DeleteCollectionCollectionsDeleteCollectionPostWithResponse(ctx context.Context, body DeleteCollectionCollectionsDeleteCollectionPostJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteCollectionCollectionsDeleteCollectionPostResponse, error)
DeleteCollectionCollectionsDeleteCollectionPostWithResponse Delete Collection
Deletes a collection.
A `404 Not Found` status code will be returned, if the provided collection name does not exist.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /collections/delete-collection (the `DeleteCollectionCollectionsDeleteCollectionPost` operationId).
func (*ClientWithResponses) DeleteDocumentDocumentsDeleteDocumentPostWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteDocumentDocumentsDeleteDocumentPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteDocumentDocumentsDeleteDocumentPostResponse, error)
DeleteDocumentDocumentsDeleteDocumentPostWithBodyWithResponse Delete Document
Deletes a document ¶
A `404 Not Found` status code will be returned, if the provided collection name or document path does not exist.
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 /documents/delete-document (the `DeleteDocumentDocumentsDeleteDocumentPost` operationId).
func (*ClientWithResponses) DeleteDocumentDocumentsDeleteDocumentPostWithResponse ¶
func (c *ClientWithResponses) DeleteDocumentDocumentsDeleteDocumentPostWithResponse(ctx context.Context, body DeleteDocumentDocumentsDeleteDocumentPostJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteDocumentDocumentsDeleteDocumentPostResponse, error)
DeleteDocumentDocumentsDeleteDocumentPostWithResponse Delete Document
Deletes a document ¶
A `404 Not Found` status code will be returned, if the provided collection name or document path does not exist.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /documents/delete-document (the `DeleteDocumentDocumentsDeleteDocumentPost` operationId).
func (*ClientWithResponses) EmbedModelsEmbedPostWithBodyWithResponse ¶
func (c *ClientWithResponses) EmbedModelsEmbedPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EmbedModelsEmbedPostResponse, error)
EmbedModelsEmbedPostWithBodyWithResponse Embed
Embeds the provided input text with ZeroEntropy embedding models.
The results will be returned in the same order as the text provided. The embedding is such that queries will have high cosine similarity with documents that are relevant to that query.
Organizations will, by default, have a ratelimit of `500000` bytes-per-minute. If this is exceeded, requests will be throttled into `latency: "slow"` mode, up to `5000000` bytes-per-minute. If even this is exceeded, you will get a `429` error.
The "bytes" used by a request is calculated as `sum(150 + s.encode('utf-8') for s in input)`. Note a baseline overhead of `150` bytes. The maximum per-request payload size is `5000000` bytes, and the maximum number of inputs per request is `2048`.
To increase your ratelimits, subscribe to a higher tier on the [ZeroEntropy dashboard](https://dashboard.zeroentropy.dev/billing). Any payments made for subscriptions in a calendar month will be deducted from your usage charges for that month.
To request even higher ratelimits, please contact [founders@zeroentropy.dev](mailto:founders@zeroentropy.dev) or message us on [Discord](https://go.zeroentropy.dev/discord) or [Slack](https://go.zeroentropy.dev/slack)!
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 /models/embed (the `EmbedModelsEmbedPost` operationId).
func (*ClientWithResponses) EmbedModelsEmbedPostWithResponse ¶
func (c *ClientWithResponses) EmbedModelsEmbedPostWithResponse(ctx context.Context, body EmbedModelsEmbedPostJSONRequestBody, reqEditors ...RequestEditorFn) (*EmbedModelsEmbedPostResponse, error)
EmbedModelsEmbedPostWithResponse Embed
Embeds the provided input text with ZeroEntropy embedding models.
The results will be returned in the same order as the text provided. The embedding is such that queries will have high cosine similarity with documents that are relevant to that query.
Organizations will, by default, have a ratelimit of `500000` bytes-per-minute. If this is exceeded, requests will be throttled into `latency: "slow"` mode, up to `5000000` bytes-per-minute. If even this is exceeded, you will get a `429` error.
The "bytes" used by a request is calculated as `sum(150 + s.encode('utf-8') for s in input)`. Note a baseline overhead of `150` bytes. The maximum per-request payload size is `5000000` bytes, and the maximum number of inputs per request is `2048`.
To increase your ratelimits, subscribe to a higher tier on the [ZeroEntropy dashboard](https://dashboard.zeroentropy.dev/billing). Any payments made for subscriptions in a calendar month will be deducted from your usage charges for that month.
To request even higher ratelimits, please contact [founders@zeroentropy.dev](mailto:founders@zeroentropy.dev) or message us on [Discord](https://go.zeroentropy.dev/discord) or [Slack](https://go.zeroentropy.dev/slack)!
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /models/embed (the `EmbedModelsEmbedPost` operationId).
func (*ClientWithResponses) GetCollectionListCollectionsGetCollectionListPostWithBodyWithResponse ¶
func (c *ClientWithResponses) GetCollectionListCollectionsGetCollectionListPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetCollectionListCollectionsGetCollectionListPostResponse, error)
GetCollectionListCollectionsGetCollectionListPostWithBodyWithResponse Get Collection List
Gets a complete list of all of your collections.
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 /collections/get-collection-list (the `GetCollectionListCollectionsGetCollectionListPost` operationId).
func (*ClientWithResponses) GetCollectionListCollectionsGetCollectionListPostWithResponse ¶
func (c *ClientWithResponses) GetCollectionListCollectionsGetCollectionListPostWithResponse(ctx context.Context, body GetCollectionListCollectionsGetCollectionListPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetCollectionListCollectionsGetCollectionListPostResponse, error)
GetCollectionListCollectionsGetCollectionListPostWithResponse Get Collection List
Gets a complete list of all of your collections.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /collections/get-collection-list (the `GetCollectionListCollectionsGetCollectionListPost` operationId).
func (*ClientWithResponses) GetDocumentDocumentsGetDocumentGetWithResponse ¶
func (c *ClientWithResponses) GetDocumentDocumentsGetDocumentGetWithResponse(ctx context.Context, params *GetDocumentDocumentsGetDocumentGetParams, reqEditors ...RequestEditorFn) (*GetDocumentDocumentsGetDocumentGetResponse, error)
GetDocumentDocumentsGetDocumentGetWithResponse Get Document
Get the document. The content will be the binary PDF/DOCX content, or be UTF-8-encoded content if it is text.
A `404 Not Found` status code will be returned, if the provided request parameters do not exist.
Note that if `/documents/update-document` returns a new document id, then all urls will be invalidated and must be retrieved again.
The HTTP cache policy on this endpoint is set to never expire, unlike other endpoints whose HTTP headers assert no-cache.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /documents/get-document (the `GetDocumentDocumentsGetDocumentGet` operationId).
func (*ClientWithResponses) GetDocumentInfoDocumentsGetDocumentInfoPostWithBodyWithResponse ¶
func (c *ClientWithResponses) GetDocumentInfoDocumentsGetDocumentInfoPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetDocumentInfoDocumentsGetDocumentInfoPostResponse, error)
GetDocumentInfoDocumentsGetDocumentInfoPostWithBodyWithResponse Get Document Info
Retrieves information about a specific document. The request parameters define what information you would like to receive.
A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided 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 /documents/get-document-info (the `GetDocumentInfoDocumentsGetDocumentInfoPost` operationId).
func (*ClientWithResponses) GetDocumentInfoDocumentsGetDocumentInfoPostWithResponse ¶
func (c *ClientWithResponses) GetDocumentInfoDocumentsGetDocumentInfoPostWithResponse(ctx context.Context, body GetDocumentInfoDocumentsGetDocumentInfoPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetDocumentInfoDocumentsGetDocumentInfoPostResponse, error)
GetDocumentInfoDocumentsGetDocumentInfoPostWithResponse Get Document Info
Retrieves information about a specific document. The request parameters define what information you would like to receive.
A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided 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 /documents/get-document-info (the `GetDocumentInfoDocumentsGetDocumentInfoPost` operationId).
func (*ClientWithResponses) GetDocumentInfoListDocumentsGetDocumentInfoListPostWithBodyWithResponse ¶
func (c *ClientWithResponses) GetDocumentInfoListDocumentsGetDocumentInfoListPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse, error)
GetDocumentInfoListDocumentsGetDocumentInfoListPostWithBodyWithResponse Get Document Info List
Retrives a list of document metadata information that matches the provided filters.
The documents returned will be sorted by path in lexicographically ascending order. `path_gt` can be used for pagination, and should be set to the path of the last document returned in the previous call.
A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided 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 /documents/get-document-info-list (the `GetDocumentInfoListDocumentsGetDocumentInfoListPost` operationId).
func (*ClientWithResponses) GetDocumentInfoListDocumentsGetDocumentInfoListPostWithResponse ¶
func (c *ClientWithResponses) GetDocumentInfoListDocumentsGetDocumentInfoListPostWithResponse(ctx context.Context, body GetDocumentInfoListDocumentsGetDocumentInfoListPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse, error)
GetDocumentInfoListDocumentsGetDocumentInfoListPostWithResponse Get Document Info List
Retrives a list of document metadata information that matches the provided filters.
The documents returned will be sorted by path in lexicographically ascending order. `path_gt` can be used for pagination, and should be set to the path of the last document returned in the previous call.
A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided 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 /documents/get-document-info-list (the `GetDocumentInfoListDocumentsGetDocumentInfoListPost` operationId).
func (*ClientWithResponses) GetDocumentUsageUsageDocumentsPostWithBodyWithResponse ¶
func (c *ClientWithResponses) GetDocumentUsageUsageDocumentsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetDocumentUsageUsageDocumentsPostResponse, error)
GetDocumentUsageUsageDocumentsPostWithBodyWithResponse Get Document Usage
Document usage analytics (added/deleted/parsed/indexed events).
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 /usage/documents (the `GetDocumentUsageUsageDocumentsPost` operationId).
func (*ClientWithResponses) GetDocumentUsageUsageDocumentsPostWithResponse ¶
func (c *ClientWithResponses) GetDocumentUsageUsageDocumentsPostWithResponse(ctx context.Context, body GetDocumentUsageUsageDocumentsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetDocumentUsageUsageDocumentsPostResponse, error)
GetDocumentUsageUsageDocumentsPostWithResponse Get Document Usage
Document usage analytics (added/deleted/parsed/indexed events).
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /usage/documents (the `GetDocumentUsageUsageDocumentsPost` operationId).
func (*ClientWithResponses) GetModelsEmbedUsageUsageModelsEmbedPostWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) GetModelsEmbedUsageUsageModelsEmbedPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetModelsEmbedUsageUsageModelsEmbedPostResponse, error)
GetModelsEmbedUsageUsageModelsEmbedPostWithBodyWithResponse Get Models Embed Usage
Get embedding usage analytics with model breakdown.
Note: Embed events don't have collection_id, so collection filtering is not supported. If collection_names are provided in the request, they will be ignored.
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 /usage/models/embed (the `GetModelsEmbedUsageUsageModelsEmbedPost` operationId).
func (*ClientWithResponses) GetModelsEmbedUsageUsageModelsEmbedPostWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) GetModelsEmbedUsageUsageModelsEmbedPostWithResponse(ctx context.Context, body GetModelsEmbedUsageUsageModelsEmbedPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetModelsEmbedUsageUsageModelsEmbedPostResponse, error)
GetModelsEmbedUsageUsageModelsEmbedPostWithResponse Get Models Embed Usage
Get embedding usage analytics with model breakdown.
Note: Embed events don't have collection_id, so collection filtering is not supported. If collection_names are provided in the request, they will be ignored.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /usage/models/embed (the `GetModelsEmbedUsageUsageModelsEmbedPost` operationId).
func (*ClientWithResponses) GetModelsRerankerUsageUsageModelsRerankerPostWithBodyWithResponse ¶
func (c *ClientWithResponses) GetModelsRerankerUsageUsageModelsRerankerPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetModelsRerankerUsageUsageModelsRerankerPostResponse, error)
GetModelsRerankerUsageUsageModelsRerankerPostWithBodyWithResponse Get Models Reranker Usage
Get reranker usage analytics with model breakdown.
Note: Rerank events don't have collection_id, so collection filtering is not supported. If collection_names are provided in the request, they will be ignored.
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 /usage/models/reranker (the `GetModelsRerankerUsageUsageModelsRerankerPost` operationId).
func (*ClientWithResponses) GetModelsRerankerUsageUsageModelsRerankerPostWithResponse ¶
func (c *ClientWithResponses) GetModelsRerankerUsageUsageModelsRerankerPostWithResponse(ctx context.Context, body GetModelsRerankerUsageUsageModelsRerankerPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetModelsRerankerUsageUsageModelsRerankerPostResponse, error)
GetModelsRerankerUsageUsageModelsRerankerPostWithResponse Get Models Reranker Usage
Get reranker usage analytics with model breakdown.
Note: Rerank events don't have collection_id, so collection filtering is not supported. If collection_names are provided in the request, they will be ignored.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /usage/models/reranker (the `GetModelsRerankerUsageUsageModelsRerankerPost` operationId).
func (*ClientWithResponses) GetModelsUsageCountersUsageModelsCountersPostWithResponse ¶
func (c *ClientWithResponses) GetModelsUsageCountersUsageModelsCountersPostWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetModelsUsageCountersUsageModelsCountersPostResponse, error)
GetModelsUsageCountersUsageModelsCountersPostWithResponse Get Models Usage Counters
Get models usage counters for all-time and current billing cycle.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /usage/models/counters (the `GetModelsUsageCountersUsageModelsCountersPost` operationId).
func (*ClientWithResponses) GetOrganizationAdminGetOrganizationPostWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) GetOrganizationAdminGetOrganizationPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetOrganizationAdminGetOrganizationPostResponse, error)
GetOrganizationAdminGetOrganizationPostWithBodyWithResponse Get Organization
Returns organization details, including rate limits and ZDR state.
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 /admin/get-organization (the `GetOrganizationAdminGetOrganizationPost` operationId).
func (*ClientWithResponses) GetOrganizationAdminGetOrganizationPostWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) GetOrganizationAdminGetOrganizationPostWithResponse(ctx context.Context, body GetOrganizationAdminGetOrganizationPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetOrganizationAdminGetOrganizationPostResponse, error)
GetOrganizationAdminGetOrganizationPostWithResponse Get Organization
Returns organization details, including rate limits and ZDR state.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /admin/get-organization (the `GetOrganizationAdminGetOrganizationPost` operationId).
func (*ClientWithResponses) GetPageImageDocumentsGetPageImageGetWithResponse ¶
func (c *ClientWithResponses) GetPageImageDocumentsGetPageImageGetWithResponse(ctx context.Context, params *GetPageImageDocumentsGetPageImageGetParams, reqEditors ...RequestEditorFn) (*GetPageImageDocumentsGetPageImageGetResponse, error)
GetPageImageDocumentsGetPageImageGetWithResponse Get Page Image
Get the image for a specific page. The image will be returned as a JPEG.
This endpoint is meant to be used with `<img>` tags in the frontend. A `404 Not Found` status code will be returned, if the provided request parameters do not exist or if the page exists but does not have an associated image.
Note that if `/documents/update-document` returns a new document id, then all urls will be invalidated and must be retrieved again.
The HTTP cache policy on this endpoint is set to never expire, unlike other endpoints whose HTTP headers assert no-cache.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /documents/get-page-image (the `GetPageImageDocumentsGetPageImageGet` operationId).
func (*ClientWithResponses) GetPageInfoDocumentsGetPageInfoPostWithBodyWithResponse ¶
func (c *ClientWithResponses) GetPageInfoDocumentsGetPageInfoPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetPageInfoDocumentsGetPageInfoPostResponse, error)
GetPageInfoDocumentsGetPageInfoPostWithBodyWithResponse Get Page Info
Retrieves information about a specific page. The request parameters define what information you would like to receive.
A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided 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 /documents/get-page-info (the `GetPageInfoDocumentsGetPageInfoPost` operationId).
func (*ClientWithResponses) GetPageInfoDocumentsGetPageInfoPostWithResponse ¶
func (c *ClientWithResponses) GetPageInfoDocumentsGetPageInfoPostWithResponse(ctx context.Context, body GetPageInfoDocumentsGetPageInfoPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetPageInfoDocumentsGetPageInfoPostResponse, error)
GetPageInfoDocumentsGetPageInfoPostWithResponse Get Page Info
Retrieves information about a specific page. The request parameters define what information you would like to receive.
A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided 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 /documents/get-page-info (the `GetPageInfoDocumentsGetPageInfoPost` operationId).
func (*ClientWithResponses) GetQueryUsageUsageQueriesPostWithBodyWithResponse ¶
func (c *ClientWithResponses) GetQueryUsageUsageQueriesPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetQueryUsageUsageQueriesPostResponse, error)
GetQueryUsageUsageQueriesPostWithBodyWithResponse Get Query Usage
Query usage (fine/coarse/pages/documents queries).
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 /usage/queries (the `GetQueryUsageUsageQueriesPost` operationId).
func (*ClientWithResponses) GetQueryUsageUsageQueriesPostWithResponse ¶
func (c *ClientWithResponses) GetQueryUsageUsageQueriesPostWithResponse(ctx context.Context, body GetQueryUsageUsageQueriesPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetQueryUsageUsageQueriesPostResponse, error)
GetQueryUsageUsageQueriesPostWithResponse Get Query Usage
Query usage (fine/coarse/pages/documents queries).
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /usage/queries (the `GetQueryUsageUsageQueriesPost` operationId).
func (*ClientWithResponses) GetStatusStatusGetStatusPostWithBodyWithResponse ¶
func (c *ClientWithResponses) GetStatusStatusGetStatusPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetStatusStatusGetStatusPostResponse, error)
GetStatusStatusGetStatusPostWithBodyWithResponse Get Status
Gets the current indexing status across all documents.
If a collection name is passed in, it will get the indexing status of only the documents within that collection. Otherwise, it will show the cumulative status across all of your collections.
A `404 Not Found` status code will be returned, if a collection name was provided, but it does not exist.
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 /status/get-status (the `GetStatusStatusGetStatusPost` operationId).
func (*ClientWithResponses) GetStatusStatusGetStatusPostWithResponse ¶
func (c *ClientWithResponses) GetStatusStatusGetStatusPostWithResponse(ctx context.Context, body GetStatusStatusGetStatusPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetStatusStatusGetStatusPostResponse, error)
GetStatusStatusGetStatusPostWithResponse Get Status
Gets the current indexing status across all documents.
If a collection name is passed in, it will get the indexing status of only the documents within that collection. Otherwise, it will show the cumulative status across all of your collections.
A `404 Not Found` status code will be returned, if a collection name was provided, but it does not exist.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /status/get-status (the `GetStatusStatusGetStatusPost` operationId).
func (*ClientWithResponses) GetUsageCountersUsageCountersPostWithResponse ¶
func (c *ClientWithResponses) GetUsageCountersUsageCountersPostWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUsageCountersUsageCountersPostResponse, error)
GetUsageCountersUsageCountersPostWithResponse Get Usage Counters
Usage counters for all-time and current billing cycle.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /usage/counters (the `GetUsageCountersUsageCountersPost` operationId).
func (*ClientWithResponses) ListApiKeysAdminListApiKeysPostWithBodyWithResponse ¶
func (c *ClientWithResponses) ListApiKeysAdminListApiKeysPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListApiKeysAdminListApiKeysPostResponse, error)
ListApiKeysAdminListApiKeysPostWithBodyWithResponse List Api Keys
Lists all API keys for the specified organization.
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 /admin/list-api-keys (the `ListApiKeysAdminListApiKeysPost` operationId).
func (*ClientWithResponses) ListApiKeysAdminListApiKeysPostWithResponse ¶
func (c *ClientWithResponses) ListApiKeysAdminListApiKeysPostWithResponse(ctx context.Context, body ListApiKeysAdminListApiKeysPostJSONRequestBody, reqEditors ...RequestEditorFn) (*ListApiKeysAdminListApiKeysPostResponse, error)
ListApiKeysAdminListApiKeysPostWithResponse List Api Keys
Lists all API keys for the specified organization.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /admin/list-api-keys (the `ListApiKeysAdminListApiKeysPost` operationId).
func (*ClientWithResponses) RerankModelsRerankPostWithBodyWithResponse ¶
func (c *ClientWithResponses) RerankModelsRerankPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RerankModelsRerankPostResponse, error)
RerankModelsRerankPostWithBodyWithResponse Rerank
Reranks the provided documents, according to the provided query.
For each document, the index and the score will be returned. The index is relative to the documents array that was passed in. The score is the query-document relevancy determined by the reranker model. The results will be returned in descending order of relevance.
Organizations will, by default, have a ratelimit of `500,000` bytes-per-minute (BPM) and `1000` requests-per-minute (RPM). Ratelimits are refreshed every 15 seconds. If this is exceeded, requests will be throttled into `latency: "slow"` mode, up to `5000000` bytes-per-minute. If even this is exceeded, you will get a `429` error.
The "bytes" used by a request is calculated as `sum(150 + query.encode('utf-8') + d.encode('utf-8') for d in documents)`. Note a baseline overhead of `150` bytes, and that the query bytes are included for each document, as rerankers are cross-encoders. The maximum per-request payload size is `5000000` bytes.
To increase your ratelimits, subscribe to a higher tier on the [ZeroEntropy dashboard](https://dashboard.zeroentropy.dev/billing). Any payments made for subscriptions in a calendar month will be deducted from your usage charges for that month.
To request even higher ratelimits, please contact [founders@zeroentropy.dev](mailto:founders@zeroentropy.dev) or message us on [Discord](https://go.zeroentropy.dev/discord) or [Slack](https://go.zeroentropy.dev/slack)!
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 /models/rerank (the `RerankModelsRerankPost` operationId).
func (*ClientWithResponses) RerankModelsRerankPostWithResponse ¶
func (c *ClientWithResponses) RerankModelsRerankPostWithResponse(ctx context.Context, body RerankModelsRerankPostJSONRequestBody, reqEditors ...RequestEditorFn) (*RerankModelsRerankPostResponse, error)
RerankModelsRerankPostWithResponse Rerank
Reranks the provided documents, according to the provided query.
For each document, the index and the score will be returned. The index is relative to the documents array that was passed in. The score is the query-document relevancy determined by the reranker model. The results will be returned in descending order of relevance.
Organizations will, by default, have a ratelimit of `500,000` bytes-per-minute (BPM) and `1000` requests-per-minute (RPM). Ratelimits are refreshed every 15 seconds. If this is exceeded, requests will be throttled into `latency: "slow"` mode, up to `5000000` bytes-per-minute. If even this is exceeded, you will get a `429` error.
The "bytes" used by a request is calculated as `sum(150 + query.encode('utf-8') + d.encode('utf-8') for d in documents)`. Note a baseline overhead of `150` bytes, and that the query bytes are included for each document, as rerankers are cross-encoders. The maximum per-request payload size is `5000000` bytes.
To increase your ratelimits, subscribe to a higher tier on the [ZeroEntropy dashboard](https://dashboard.zeroentropy.dev/billing). Any payments made for subscriptions in a calendar month will be deducted from your usage charges for that month.
To request even higher ratelimits, please contact [founders@zeroentropy.dev](mailto:founders@zeroentropy.dev) or message us on [Discord](https://go.zeroentropy.dev/discord) or [Slack](https://go.zeroentropy.dev/slack)!
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /models/rerank (the `RerankModelsRerankPost` operationId).
func (*ClientWithResponses) TopDocumentsQueriesTopDocumentsPostWithBodyWithResponse ¶
func (c *ClientWithResponses) TopDocumentsQueriesTopDocumentsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TopDocumentsQueriesTopDocumentsPostResponse, error)
TopDocumentsQueriesTopDocumentsPostWithBodyWithResponse Top Documents
Get the top K documents that match the given query.
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 /queries/top-documents (the `TopDocumentsQueriesTopDocumentsPost` operationId).
func (*ClientWithResponses) TopDocumentsQueriesTopDocumentsPostWithResponse ¶
func (c *ClientWithResponses) TopDocumentsQueriesTopDocumentsPostWithResponse(ctx context.Context, body TopDocumentsQueriesTopDocumentsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*TopDocumentsQueriesTopDocumentsPostResponse, error)
TopDocumentsQueriesTopDocumentsPostWithResponse Top Documents
Get the top K documents that match the given query.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /queries/top-documents (the `TopDocumentsQueriesTopDocumentsPost` operationId).
func (*ClientWithResponses) TopPagesQueriesTopPagesPostWithBodyWithResponse ¶
func (c *ClientWithResponses) TopPagesQueriesTopPagesPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TopPagesQueriesTopPagesPostResponse, error)
TopPagesQueriesTopPagesPostWithBodyWithResponse Top Pages
Get the top K pages that match the given query.
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 /queries/top-pages (the `TopPagesQueriesTopPagesPost` operationId).
func (*ClientWithResponses) TopPagesQueriesTopPagesPostWithResponse ¶
func (c *ClientWithResponses) TopPagesQueriesTopPagesPostWithResponse(ctx context.Context, body TopPagesQueriesTopPagesPostJSONRequestBody, reqEditors ...RequestEditorFn) (*TopPagesQueriesTopPagesPostResponse, error)
TopPagesQueriesTopPagesPostWithResponse Top Pages
Get the top K pages that match the given query.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /queries/top-pages (the `TopPagesQueriesTopPagesPost` operationId).
func (*ClientWithResponses) TopSnippetsQueriesTopSnippetsPostWithBodyWithResponse ¶
func (c *ClientWithResponses) TopSnippetsQueriesTopSnippetsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TopSnippetsQueriesTopSnippetsPostResponse, error)
TopSnippetsQueriesTopSnippetsPostWithBodyWithResponse Top Snippets
Get the top K snippets that match the given query.
You may choose between coarse and precise snippets. Precise snippets will average ~200 characters, while coarse snippets will average ~2000 characters. The default is coarse snippets. Use the `precise_responses` parameter to adjust.
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 /queries/top-snippets (the `TopSnippetsQueriesTopSnippetsPost` operationId).
func (*ClientWithResponses) TopSnippetsQueriesTopSnippetsPostWithResponse ¶
func (c *ClientWithResponses) TopSnippetsQueriesTopSnippetsPostWithResponse(ctx context.Context, body TopSnippetsQueriesTopSnippetsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*TopSnippetsQueriesTopSnippetsPostResponse, error)
TopSnippetsQueriesTopSnippetsPostWithResponse Top Snippets
Get the top K snippets that match the given query.
You may choose between coarse and precise snippets. Precise snippets will average ~200 characters, while coarse snippets will average ~2000 characters. The default is coarse snippets. Use the `precise_responses` parameter to adjust.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /queries/top-snippets (the `TopSnippetsQueriesTopSnippetsPost` operationId).
func (*ClientWithResponses) UpdateApiKeyAdminUpdateApiKeyPostWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateApiKeyAdminUpdateApiKeyPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateApiKeyAdminUpdateApiKeyPostResponse, error)
UpdateApiKeyAdminUpdateApiKeyPostWithBodyWithResponse Update Api Key
Updates the name and/or permission of the specified API key.
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 /admin/update-api-key (the `UpdateApiKeyAdminUpdateApiKeyPost` operationId).
func (*ClientWithResponses) UpdateApiKeyAdminUpdateApiKeyPostWithResponse ¶
func (c *ClientWithResponses) UpdateApiKeyAdminUpdateApiKeyPostWithResponse(ctx context.Context, body UpdateApiKeyAdminUpdateApiKeyPostJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateApiKeyAdminUpdateApiKeyPostResponse, error)
UpdateApiKeyAdminUpdateApiKeyPostWithResponse Update Api Key
Updates the name and/or permission of the specified API key.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /admin/update-api-key (the `UpdateApiKeyAdminUpdateApiKeyPost` operationId).
func (*ClientWithResponses) UpdateDocumentDocumentsUpdateDocumentPostWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateDocumentDocumentsUpdateDocumentPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDocumentDocumentsUpdateDocumentPostResponse, error)
UpdateDocumentDocumentsUpdateDocumentPostWithBodyWithResponse Update Document
Updates a document. This endpoint is atomic.
Currently both `metadata` and `index_status` are supported.
- When updating with a non-null `metadata`, the document must have `index_status` of `indexed`. After this call, the document will have an `index_status` of `not_indexed`, since the document will need to reindex with the new metadata. - When updating with a non-null `index_status`, setting it to `not_parsed` or `not_indexed` requires that the document must have `index_status` of `parsing_failed` or `indexing_failed`, respectively.
A `404 Not Found` status code will be returned, if the provided collection name or document path does not exist.
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 /documents/update-document (the `UpdateDocumentDocumentsUpdateDocumentPost` operationId).
func (*ClientWithResponses) UpdateDocumentDocumentsUpdateDocumentPostWithResponse ¶
func (c *ClientWithResponses) UpdateDocumentDocumentsUpdateDocumentPostWithResponse(ctx context.Context, body UpdateDocumentDocumentsUpdateDocumentPostJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDocumentDocumentsUpdateDocumentPostResponse, error)
UpdateDocumentDocumentsUpdateDocumentPostWithResponse Update Document
Updates a document. This endpoint is atomic.
Currently both `metadata` and `index_status` are supported.
- When updating with a non-null `metadata`, the document must have `index_status` of `indexed`. After this call, the document will have an `index_status` of `not_indexed`, since the document will need to reindex with the new metadata. - When updating with a non-null `index_status`, setting it to `not_parsed` or `not_indexed` requires that the document must have `index_status` of `parsing_failed` or `indexing_failed`, respectively.
A `404 Not Found` status code will be returned, if the provided collection name or document path does not exist.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /documents/update-document (the `UpdateDocumentDocumentsUpdateDocumentPost` operationId).
func (*ClientWithResponses) UpdateOrganizationAdminUpdateOrganizationPostWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) UpdateOrganizationAdminUpdateOrganizationPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationAdminUpdateOrganizationPostResponse, error)
UpdateOrganizationAdminUpdateOrganizationPostWithBodyWithResponse Update Organization
Updates subscription tier, rate limit overrides, and/or ZDR state for an organization.
NOTE: Setting a rate limit override to 0 will disable the override and cause the organization to fall back to the default limits for their subscription tier.
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 /admin/update-organization (the `UpdateOrganizationAdminUpdateOrganizationPost` operationId).
func (*ClientWithResponses) UpdateOrganizationAdminUpdateOrganizationPostWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) UpdateOrganizationAdminUpdateOrganizationPostWithResponse(ctx context.Context, body UpdateOrganizationAdminUpdateOrganizationPostJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationAdminUpdateOrganizationPostResponse, error)
UpdateOrganizationAdminUpdateOrganizationPostWithResponse Update Organization
Updates subscription tier, rate limit overrides, and/or ZDR state for an organization.
NOTE: Setting a rate limit override to 0 will disable the override and cause the organization to fall back to the default limits for their subscription tier.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /admin/update-organization (the `UpdateOrganizationAdminUpdateOrganizationPost` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// AddApiKeyAdminAddApiKeyPostWithBodyWithResponse Add Api Key
//
// Creates a new API key for the specified organization.
//
// 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 /admin/add-api-key (the `AddApiKeyAdminAddApiKeyPost` operationId).
AddApiKeyAdminAddApiKeyPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddApiKeyAdminAddApiKeyPostResponse, error)
// AddApiKeyAdminAddApiKeyPostWithResponse Add Api Key
//
// Creates a new API key for the specified organization.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /admin/add-api-key (the `AddApiKeyAdminAddApiKeyPost` operationId).
AddApiKeyAdminAddApiKeyPostWithResponse(ctx context.Context, body AddApiKeyAdminAddApiKeyPostJSONRequestBody, reqEditors ...RequestEditorFn) (*AddApiKeyAdminAddApiKeyPostResponse, error)
// CreateOrganizationAdminCreateOrganizationPostWithBodyWithResponse Create Organization
//
// Creates an organization with the provided organization name.
//
// Returns 201 if a new organization was created, 200 if an existing organization was found.
//
// 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 /admin/create-organization (the `CreateOrganizationAdminCreateOrganizationPost` operationId).
CreateOrganizationAdminCreateOrganizationPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganizationAdminCreateOrganizationPostResponse, error)
// CreateOrganizationAdminCreateOrganizationPostWithResponse Create Organization
//
// Creates an organization with the provided organization name.
//
// Returns 201 if a new organization was created, 200 if an existing organization was found.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /admin/create-organization (the `CreateOrganizationAdminCreateOrganizationPost` operationId).
CreateOrganizationAdminCreateOrganizationPostWithResponse(ctx context.Context, body CreateOrganizationAdminCreateOrganizationPostJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationAdminCreateOrganizationPostResponse, error)
// DeleteApiKeyAdminDeleteApiKeyPostWithBodyWithResponse Delete Api Key
//
// Deletes the specified API key.
//
// 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 /admin/delete-api-key (the `DeleteApiKeyAdminDeleteApiKeyPost` operationId).
DeleteApiKeyAdminDeleteApiKeyPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteApiKeyAdminDeleteApiKeyPostResponse, error)
// DeleteApiKeyAdminDeleteApiKeyPostWithResponse Delete Api Key
//
// Deletes the specified API key.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /admin/delete-api-key (the `DeleteApiKeyAdminDeleteApiKeyPost` operationId).
DeleteApiKeyAdminDeleteApiKeyPostWithResponse(ctx context.Context, body DeleteApiKeyAdminDeleteApiKeyPostJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteApiKeyAdminDeleteApiKeyPostResponse, error)
// GetOrganizationAdminGetOrganizationPostWithBodyWithResponse Get Organization
//
// Returns organization details, including rate limits and ZDR state.
//
// 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 /admin/get-organization (the `GetOrganizationAdminGetOrganizationPost` operationId).
GetOrganizationAdminGetOrganizationPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetOrganizationAdminGetOrganizationPostResponse, error)
// GetOrganizationAdminGetOrganizationPostWithResponse Get Organization
//
// Returns organization details, including rate limits and ZDR state.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /admin/get-organization (the `GetOrganizationAdminGetOrganizationPost` operationId).
GetOrganizationAdminGetOrganizationPostWithResponse(ctx context.Context, body GetOrganizationAdminGetOrganizationPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetOrganizationAdminGetOrganizationPostResponse, error)
// ListApiKeysAdminListApiKeysPostWithBodyWithResponse List Api Keys
//
// Lists all API keys for the specified organization.
//
// 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 /admin/list-api-keys (the `ListApiKeysAdminListApiKeysPost` operationId).
ListApiKeysAdminListApiKeysPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListApiKeysAdminListApiKeysPostResponse, error)
// ListApiKeysAdminListApiKeysPostWithResponse List Api Keys
//
// Lists all API keys for the specified organization.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /admin/list-api-keys (the `ListApiKeysAdminListApiKeysPost` operationId).
ListApiKeysAdminListApiKeysPostWithResponse(ctx context.Context, body ListApiKeysAdminListApiKeysPostJSONRequestBody, reqEditors ...RequestEditorFn) (*ListApiKeysAdminListApiKeysPostResponse, error)
// UpdateApiKeyAdminUpdateApiKeyPostWithBodyWithResponse Update Api Key
//
// Updates the name and/or permission of the specified API key.
//
// 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 /admin/update-api-key (the `UpdateApiKeyAdminUpdateApiKeyPost` operationId).
UpdateApiKeyAdminUpdateApiKeyPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateApiKeyAdminUpdateApiKeyPostResponse, error)
// UpdateApiKeyAdminUpdateApiKeyPostWithResponse Update Api Key
//
// Updates the name and/or permission of the specified API key.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /admin/update-api-key (the `UpdateApiKeyAdminUpdateApiKeyPost` operationId).
UpdateApiKeyAdminUpdateApiKeyPostWithResponse(ctx context.Context, body UpdateApiKeyAdminUpdateApiKeyPostJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateApiKeyAdminUpdateApiKeyPostResponse, error)
// UpdateOrganizationAdminUpdateOrganizationPostWithBodyWithResponse Update Organization
//
// Updates subscription tier, rate limit overrides, and/or ZDR state for an organization.
//
// NOTE: Setting a rate limit override to 0 will disable the override and cause the organization to fall back to the default limits for their subscription tier.
//
// 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 /admin/update-organization (the `UpdateOrganizationAdminUpdateOrganizationPost` operationId).
UpdateOrganizationAdminUpdateOrganizationPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationAdminUpdateOrganizationPostResponse, error)
// UpdateOrganizationAdminUpdateOrganizationPostWithResponse Update Organization
//
// Updates subscription tier, rate limit overrides, and/or ZDR state for an organization.
//
// NOTE: Setting a rate limit override to 0 will disable the override and cause the organization to fall back to the default limits for their subscription tier.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /admin/update-organization (the `UpdateOrganizationAdminUpdateOrganizationPost` operationId).
UpdateOrganizationAdminUpdateOrganizationPostWithResponse(ctx context.Context, body UpdateOrganizationAdminUpdateOrganizationPostJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationAdminUpdateOrganizationPostResponse, error)
// AddCollectionCollectionsAddCollectionPostWithBodyWithResponse Add Collection
//
// Adds a collection.
//
// If the collection already exists, a `409 Conflict` status code will be returned.
//
// 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 /collections/add-collection (the `AddCollectionCollectionsAddCollectionPost` operationId).
AddCollectionCollectionsAddCollectionPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddCollectionCollectionsAddCollectionPostResponse, error)
// AddCollectionCollectionsAddCollectionPostWithResponse Add Collection
//
// Adds a collection.
//
// If the collection already exists, a `409 Conflict` status code will be returned.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /collections/add-collection (the `AddCollectionCollectionsAddCollectionPost` operationId).
AddCollectionCollectionsAddCollectionPostWithResponse(ctx context.Context, body AddCollectionCollectionsAddCollectionPostJSONRequestBody, reqEditors ...RequestEditorFn) (*AddCollectionCollectionsAddCollectionPostResponse, error)
// DeleteCollectionCollectionsDeleteCollectionPostWithBodyWithResponse Delete Collection
//
// Deletes a collection.
//
// A `404 Not Found` status code will be returned, if the provided collection name does not exist.
//
// 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 /collections/delete-collection (the `DeleteCollectionCollectionsDeleteCollectionPost` operationId).
DeleteCollectionCollectionsDeleteCollectionPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteCollectionCollectionsDeleteCollectionPostResponse, error)
// DeleteCollectionCollectionsDeleteCollectionPostWithResponse Delete Collection
//
// Deletes a collection.
//
// A `404 Not Found` status code will be returned, if the provided collection name does not exist.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /collections/delete-collection (the `DeleteCollectionCollectionsDeleteCollectionPost` operationId).
DeleteCollectionCollectionsDeleteCollectionPostWithResponse(ctx context.Context, body DeleteCollectionCollectionsDeleteCollectionPostJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteCollectionCollectionsDeleteCollectionPostResponse, error)
// GetCollectionListCollectionsGetCollectionListPostWithBodyWithResponse Get Collection List
//
// Gets a complete list of all of your collections.
//
// 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 /collections/get-collection-list (the `GetCollectionListCollectionsGetCollectionListPost` operationId).
GetCollectionListCollectionsGetCollectionListPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetCollectionListCollectionsGetCollectionListPostResponse, error)
// GetCollectionListCollectionsGetCollectionListPostWithResponse Get Collection List
//
// Gets a complete list of all of your collections.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /collections/get-collection-list (the `GetCollectionListCollectionsGetCollectionListPost` operationId).
GetCollectionListCollectionsGetCollectionListPostWithResponse(ctx context.Context, body GetCollectionListCollectionsGetCollectionListPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetCollectionListCollectionsGetCollectionListPostResponse, error)
// AddDocumentDocumentsAddDocumentPostWithBodyWithResponse Add Document
//
// Adds a document to a given collection.
//
// A status code of `201 Created` will be returned if a document was successfully added. A status code of `409 Conflict` will be returned if the given collection already has a document with the same path.
//
// If `overwrite` is given a value of `true`, then a status code of `200 OK` will be returned if a document was overwritten (Rather than a status code of `409 Conflict`).
//
// When a document is inserted, it can take time to appear in the index. Check the `/status/get-status` endpoint to see progress.
//
// 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 /documents/add-document (the `AddDocumentDocumentsAddDocumentPost` operationId).
AddDocumentDocumentsAddDocumentPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddDocumentDocumentsAddDocumentPostResponse, error)
// AddDocumentDocumentsAddDocumentPostWithResponse Add Document
//
// Adds a document to a given collection.
//
// A status code of `201 Created` will be returned if a document was successfully added. A status code of `409 Conflict` will be returned if the given collection already has a document with the same path.
//
// If `overwrite` is given a value of `true`, then a status code of `200 OK` will be returned if a document was overwritten (Rather than a status code of `409 Conflict`).
//
// When a document is inserted, it can take time to appear in the index. Check the `/status/get-status` endpoint to see progress.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /documents/add-document (the `AddDocumentDocumentsAddDocumentPost` operationId).
AddDocumentDocumentsAddDocumentPostWithResponse(ctx context.Context, body AddDocumentDocumentsAddDocumentPostJSONRequestBody, reqEditors ...RequestEditorFn) (*AddDocumentDocumentsAddDocumentPostResponse, error)
// DeleteDocumentDocumentsDeleteDocumentPostWithBodyWithResponse Delete Document
//
// Deletes a document
//
// A `404 Not Found` status code will be returned, if the provided collection name or document path does not exist.
//
// 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 /documents/delete-document (the `DeleteDocumentDocumentsDeleteDocumentPost` operationId).
DeleteDocumentDocumentsDeleteDocumentPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteDocumentDocumentsDeleteDocumentPostResponse, error)
// DeleteDocumentDocumentsDeleteDocumentPostWithResponse Delete Document
//
// Deletes a document
//
// A `404 Not Found` status code will be returned, if the provided collection name or document path does not exist.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /documents/delete-document (the `DeleteDocumentDocumentsDeleteDocumentPost` operationId).
DeleteDocumentDocumentsDeleteDocumentPostWithResponse(ctx context.Context, body DeleteDocumentDocumentsDeleteDocumentPostJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteDocumentDocumentsDeleteDocumentPostResponse, error)
// GetDocumentDocumentsGetDocumentGetWithResponse Get Document
//
// Get the document. The content will be the binary PDF/DOCX content, or be UTF-8-encoded content if it is text.
//
// A `404 Not Found` status code will be returned, if the provided request parameters do not exist.
//
// Note that if `/documents/update-document` returns a new document id, then all urls will be invalidated and must be retrieved again.
//
// The HTTP cache policy on this endpoint is set to never expire, unlike other endpoints whose HTTP headers assert no-cache.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /documents/get-document (the `GetDocumentDocumentsGetDocumentGet` operationId).
GetDocumentDocumentsGetDocumentGetWithResponse(ctx context.Context, params *GetDocumentDocumentsGetDocumentGetParams, reqEditors ...RequestEditorFn) (*GetDocumentDocumentsGetDocumentGetResponse, error)
// GetDocumentInfoDocumentsGetDocumentInfoPostWithBodyWithResponse Get Document Info
//
// Retrieves information about a specific document. The request parameters define what information you would like to receive.
//
// A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided 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 /documents/get-document-info (the `GetDocumentInfoDocumentsGetDocumentInfoPost` operationId).
GetDocumentInfoDocumentsGetDocumentInfoPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetDocumentInfoDocumentsGetDocumentInfoPostResponse, error)
// GetDocumentInfoDocumentsGetDocumentInfoPostWithResponse Get Document Info
//
// Retrieves information about a specific document. The request parameters define what information you would like to receive.
//
// A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided 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 /documents/get-document-info (the `GetDocumentInfoDocumentsGetDocumentInfoPost` operationId).
GetDocumentInfoDocumentsGetDocumentInfoPostWithResponse(ctx context.Context, body GetDocumentInfoDocumentsGetDocumentInfoPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetDocumentInfoDocumentsGetDocumentInfoPostResponse, error)
// GetDocumentInfoListDocumentsGetDocumentInfoListPostWithBodyWithResponse Get Document Info List
//
// Retrives a list of document metadata information that matches the provided filters.
//
// The documents returned will be sorted by path in lexicographically ascending order. `path_gt` can be used for pagination, and should be set to the path of the last document returned in the previous call.
//
// A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided 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 /documents/get-document-info-list (the `GetDocumentInfoListDocumentsGetDocumentInfoListPost` operationId).
GetDocumentInfoListDocumentsGetDocumentInfoListPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse, error)
// GetDocumentInfoListDocumentsGetDocumentInfoListPostWithResponse Get Document Info List
//
// Retrives a list of document metadata information that matches the provided filters.
//
// The documents returned will be sorted by path in lexicographically ascending order. `path_gt` can be used for pagination, and should be set to the path of the last document returned in the previous call.
//
// A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided 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 /documents/get-document-info-list (the `GetDocumentInfoListDocumentsGetDocumentInfoListPost` operationId).
GetDocumentInfoListDocumentsGetDocumentInfoListPostWithResponse(ctx context.Context, body GetDocumentInfoListDocumentsGetDocumentInfoListPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse, error)
// GetPageImageDocumentsGetPageImageGetWithResponse Get Page Image
//
// Get the image for a specific page. The image will be returned as a JPEG.
//
// This endpoint is meant to be used with `<img>` tags in the frontend. A `404 Not Found` status code will be returned, if the provided request parameters do not exist or if the page exists but does not have an associated image.
//
// Note that if `/documents/update-document` returns a new document id, then all urls will be invalidated and must be retrieved again.
//
// The HTTP cache policy on this endpoint is set to never expire, unlike other endpoints whose HTTP headers assert no-cache.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /documents/get-page-image (the `GetPageImageDocumentsGetPageImageGet` operationId).
GetPageImageDocumentsGetPageImageGetWithResponse(ctx context.Context, params *GetPageImageDocumentsGetPageImageGetParams, reqEditors ...RequestEditorFn) (*GetPageImageDocumentsGetPageImageGetResponse, error)
// GetPageInfoDocumentsGetPageInfoPostWithBodyWithResponse Get Page Info
//
// Retrieves information about a specific page. The request parameters define what information you would like to receive.
//
// A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided 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 /documents/get-page-info (the `GetPageInfoDocumentsGetPageInfoPost` operationId).
GetPageInfoDocumentsGetPageInfoPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetPageInfoDocumentsGetPageInfoPostResponse, error)
// GetPageInfoDocumentsGetPageInfoPostWithResponse Get Page Info
//
// Retrieves information about a specific page. The request parameters define what information you would like to receive.
//
// A `404 Not Found` will be returned if either the collection name does not exist, or the document path does not exist within the provided 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 /documents/get-page-info (the `GetPageInfoDocumentsGetPageInfoPost` operationId).
GetPageInfoDocumentsGetPageInfoPostWithResponse(ctx context.Context, body GetPageInfoDocumentsGetPageInfoPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetPageInfoDocumentsGetPageInfoPostResponse, error)
// UpdateDocumentDocumentsUpdateDocumentPostWithBodyWithResponse Update Document
//
// Updates a document. This endpoint is atomic.
//
// Currently both `metadata` and `index_status` are supported.
//
// - When updating with a non-null `metadata`, the document must have `index_status` of `indexed`. After this call, the document will have an `index_status` of `not_indexed`, since the document will need to reindex with the new metadata.
// - When updating with a non-null `index_status`, setting it to `not_parsed` or `not_indexed` requires that the document must have `index_status` of `parsing_failed` or `indexing_failed`, respectively.
//
// A `404 Not Found` status code will be returned, if the provided collection name or document path does not exist.
//
// 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 /documents/update-document (the `UpdateDocumentDocumentsUpdateDocumentPost` operationId).
UpdateDocumentDocumentsUpdateDocumentPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDocumentDocumentsUpdateDocumentPostResponse, error)
// UpdateDocumentDocumentsUpdateDocumentPostWithResponse Update Document
//
// Updates a document. This endpoint is atomic.
//
// Currently both `metadata` and `index_status` are supported.
//
// - When updating with a non-null `metadata`, the document must have `index_status` of `indexed`. After this call, the document will have an `index_status` of `not_indexed`, since the document will need to reindex with the new metadata.
// - When updating with a non-null `index_status`, setting it to `not_parsed` or `not_indexed` requires that the document must have `index_status` of `parsing_failed` or `indexing_failed`, respectively.
//
// A `404 Not Found` status code will be returned, if the provided collection name or document path does not exist.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /documents/update-document (the `UpdateDocumentDocumentsUpdateDocumentPost` operationId).
UpdateDocumentDocumentsUpdateDocumentPostWithResponse(ctx context.Context, body UpdateDocumentDocumentsUpdateDocumentPostJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDocumentDocumentsUpdateDocumentPostResponse, error)
// EmbedModelsEmbedPostWithBodyWithResponse Embed
//
// Embeds the provided input text with ZeroEntropy embedding models.
//
// The results will be returned in the same order as the text provided. The embedding is such that queries will have high cosine similarity with documents that are relevant to that query.
//
// Organizations will, by default, have a ratelimit of `500000` bytes-per-minute. If this is exceeded, requests will be throttled into `latency: "slow"` mode, up to `5000000` bytes-per-minute. If even this is exceeded, you will get a `429` error.
//
// The "bytes" used by a request is calculated as `sum(150 + s.encode('utf-8') for s in input)`. Note a baseline overhead of `150` bytes. The maximum per-request payload size is `5000000` bytes, and the maximum number of inputs per request is `2048`.
//
// To increase your ratelimits, subscribe to a higher tier on the [ZeroEntropy dashboard](https://dashboard.zeroentropy.dev/billing). Any payments made for subscriptions in a calendar month will be deducted from your usage charges for that month.
//
// To request even higher ratelimits, please contact [founders@zeroentropy.dev](mailto:founders@zeroentropy.dev) or message us on [Discord](https://go.zeroentropy.dev/discord) or [Slack](https://go.zeroentropy.dev/slack)!
//
// 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 /models/embed (the `EmbedModelsEmbedPost` operationId).
EmbedModelsEmbedPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EmbedModelsEmbedPostResponse, error)
// EmbedModelsEmbedPostWithResponse Embed
//
// Embeds the provided input text with ZeroEntropy embedding models.
//
// The results will be returned in the same order as the text provided. The embedding is such that queries will have high cosine similarity with documents that are relevant to that query.
//
// Organizations will, by default, have a ratelimit of `500000` bytes-per-minute. If this is exceeded, requests will be throttled into `latency: "slow"` mode, up to `5000000` bytes-per-minute. If even this is exceeded, you will get a `429` error.
//
// The "bytes" used by a request is calculated as `sum(150 + s.encode('utf-8') for s in input)`. Note a baseline overhead of `150` bytes. The maximum per-request payload size is `5000000` bytes, and the maximum number of inputs per request is `2048`.
//
// To increase your ratelimits, subscribe to a higher tier on the [ZeroEntropy dashboard](https://dashboard.zeroentropy.dev/billing). Any payments made for subscriptions in a calendar month will be deducted from your usage charges for that month.
//
// To request even higher ratelimits, please contact [founders@zeroentropy.dev](mailto:founders@zeroentropy.dev) or message us on [Discord](https://go.zeroentropy.dev/discord) or [Slack](https://go.zeroentropy.dev/slack)!
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /models/embed (the `EmbedModelsEmbedPost` operationId).
EmbedModelsEmbedPostWithResponse(ctx context.Context, body EmbedModelsEmbedPostJSONRequestBody, reqEditors ...RequestEditorFn) (*EmbedModelsEmbedPostResponse, error)
// RerankModelsRerankPostWithBodyWithResponse Rerank
//
// Reranks the provided documents, according to the provided query.
//
// For each document, the index and the score will be returned. The index is relative to the documents array that was passed in. The score is the query-document relevancy determined by the reranker model. The results will be returned in descending order of relevance.
//
// Organizations will, by default, have a ratelimit of `500,000` bytes-per-minute (BPM) and `1000` requests-per-minute (RPM). Ratelimits are refreshed every 15 seconds. If this is exceeded, requests will be throttled into `latency: "slow"` mode, up to `5000000` bytes-per-minute. If even this is exceeded, you will get a `429` error.
//
// The "bytes" used by a request is calculated as `sum(150 + query.encode('utf-8') + d.encode('utf-8') for d in documents)`. Note a baseline overhead of `150` bytes, and that the query bytes are included for each document, as rerankers are cross-encoders. The maximum per-request payload size is `5000000` bytes.
//
// To increase your ratelimits, subscribe to a higher tier on the [ZeroEntropy dashboard](https://dashboard.zeroentropy.dev/billing). Any payments made for subscriptions in a calendar month will be deducted from your usage charges for that month.
//
// To request even higher ratelimits, please contact [founders@zeroentropy.dev](mailto:founders@zeroentropy.dev) or message us on [Discord](https://go.zeroentropy.dev/discord) or [Slack](https://go.zeroentropy.dev/slack)!
//
// 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 /models/rerank (the `RerankModelsRerankPost` operationId).
RerankModelsRerankPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RerankModelsRerankPostResponse, error)
// RerankModelsRerankPostWithResponse Rerank
//
// Reranks the provided documents, according to the provided query.
//
// For each document, the index and the score will be returned. The index is relative to the documents array that was passed in. The score is the query-document relevancy determined by the reranker model. The results will be returned in descending order of relevance.
//
// Organizations will, by default, have a ratelimit of `500,000` bytes-per-minute (BPM) and `1000` requests-per-minute (RPM). Ratelimits are refreshed every 15 seconds. If this is exceeded, requests will be throttled into `latency: "slow"` mode, up to `5000000` bytes-per-minute. If even this is exceeded, you will get a `429` error.
//
// The "bytes" used by a request is calculated as `sum(150 + query.encode('utf-8') + d.encode('utf-8') for d in documents)`. Note a baseline overhead of `150` bytes, and that the query bytes are included for each document, as rerankers are cross-encoders. The maximum per-request payload size is `5000000` bytes.
//
// To increase your ratelimits, subscribe to a higher tier on the [ZeroEntropy dashboard](https://dashboard.zeroentropy.dev/billing). Any payments made for subscriptions in a calendar month will be deducted from your usage charges for that month.
//
// To request even higher ratelimits, please contact [founders@zeroentropy.dev](mailto:founders@zeroentropy.dev) or message us on [Discord](https://go.zeroentropy.dev/discord) or [Slack](https://go.zeroentropy.dev/slack)!
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /models/rerank (the `RerankModelsRerankPost` operationId).
RerankModelsRerankPostWithResponse(ctx context.Context, body RerankModelsRerankPostJSONRequestBody, reqEditors ...RequestEditorFn) (*RerankModelsRerankPostResponse, error)
// TopDocumentsQueriesTopDocumentsPostWithBodyWithResponse Top Documents
//
// Get the top K documents that match the given query.
//
// 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 /queries/top-documents (the `TopDocumentsQueriesTopDocumentsPost` operationId).
TopDocumentsQueriesTopDocumentsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TopDocumentsQueriesTopDocumentsPostResponse, error)
// TopDocumentsQueriesTopDocumentsPostWithResponse Top Documents
//
// Get the top K documents that match the given query.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /queries/top-documents (the `TopDocumentsQueriesTopDocumentsPost` operationId).
TopDocumentsQueriesTopDocumentsPostWithResponse(ctx context.Context, body TopDocumentsQueriesTopDocumentsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*TopDocumentsQueriesTopDocumentsPostResponse, error)
// TopPagesQueriesTopPagesPostWithBodyWithResponse Top Pages
//
// Get the top K pages that match the given query.
//
// 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 /queries/top-pages (the `TopPagesQueriesTopPagesPost` operationId).
TopPagesQueriesTopPagesPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TopPagesQueriesTopPagesPostResponse, error)
// TopPagesQueriesTopPagesPostWithResponse Top Pages
//
// Get the top K pages that match the given query.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /queries/top-pages (the `TopPagesQueriesTopPagesPost` operationId).
TopPagesQueriesTopPagesPostWithResponse(ctx context.Context, body TopPagesQueriesTopPagesPostJSONRequestBody, reqEditors ...RequestEditorFn) (*TopPagesQueriesTopPagesPostResponse, error)
// TopSnippetsQueriesTopSnippetsPostWithBodyWithResponse Top Snippets
//
// Get the top K snippets that match the given query.
//
// You may choose between coarse and precise snippets. Precise snippets will average ~200 characters, while coarse snippets will average ~2000 characters. The default is coarse snippets. Use the `precise_responses` parameter to adjust.
//
// 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 /queries/top-snippets (the `TopSnippetsQueriesTopSnippetsPost` operationId).
TopSnippetsQueriesTopSnippetsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TopSnippetsQueriesTopSnippetsPostResponse, error)
// TopSnippetsQueriesTopSnippetsPostWithResponse Top Snippets
//
// Get the top K snippets that match the given query.
//
// You may choose between coarse and precise snippets. Precise snippets will average ~200 characters, while coarse snippets will average ~2000 characters. The default is coarse snippets. Use the `precise_responses` parameter to adjust.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /queries/top-snippets (the `TopSnippetsQueriesTopSnippetsPost` operationId).
TopSnippetsQueriesTopSnippetsPostWithResponse(ctx context.Context, body TopSnippetsQueriesTopSnippetsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*TopSnippetsQueriesTopSnippetsPostResponse, error)
// GetStatusStatusGetStatusPostWithBodyWithResponse Get Status
//
// Gets the current indexing status across all documents.
//
// If a collection name is passed in, it will get the indexing status of only the documents within that collection. Otherwise, it will show the cumulative status across all of your collections.
//
// A `404 Not Found` status code will be returned, if a collection name was provided, but it does not exist.
//
// 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 /status/get-status (the `GetStatusStatusGetStatusPost` operationId).
GetStatusStatusGetStatusPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetStatusStatusGetStatusPostResponse, error)
// GetStatusStatusGetStatusPostWithResponse Get Status
//
// Gets the current indexing status across all documents.
//
// If a collection name is passed in, it will get the indexing status of only the documents within that collection. Otherwise, it will show the cumulative status across all of your collections.
//
// A `404 Not Found` status code will be returned, if a collection name was provided, but it does not exist.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /status/get-status (the `GetStatusStatusGetStatusPost` operationId).
GetStatusStatusGetStatusPostWithResponse(ctx context.Context, body GetStatusStatusGetStatusPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetStatusStatusGetStatusPostResponse, error)
// GetUsageCountersUsageCountersPostWithResponse Get Usage Counters
//
// Usage counters for all-time and current billing cycle.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /usage/counters (the `GetUsageCountersUsageCountersPost` operationId).
GetUsageCountersUsageCountersPostWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUsageCountersUsageCountersPostResponse, error)
// GetDocumentUsageUsageDocumentsPostWithBodyWithResponse Get Document Usage
//
// Document usage analytics (added/deleted/parsed/indexed events).
//
// 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 /usage/documents (the `GetDocumentUsageUsageDocumentsPost` operationId).
GetDocumentUsageUsageDocumentsPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetDocumentUsageUsageDocumentsPostResponse, error)
// GetDocumentUsageUsageDocumentsPostWithResponse Get Document Usage
//
// Document usage analytics (added/deleted/parsed/indexed events).
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /usage/documents (the `GetDocumentUsageUsageDocumentsPost` operationId).
GetDocumentUsageUsageDocumentsPostWithResponse(ctx context.Context, body GetDocumentUsageUsageDocumentsPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetDocumentUsageUsageDocumentsPostResponse, error)
// GetModelsUsageCountersUsageModelsCountersPostWithResponse Get Models Usage Counters
//
// Get models usage counters for all-time and current billing cycle.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /usage/models/counters (the `GetModelsUsageCountersUsageModelsCountersPost` operationId).
GetModelsUsageCountersUsageModelsCountersPostWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetModelsUsageCountersUsageModelsCountersPostResponse, error)
// GetModelsEmbedUsageUsageModelsEmbedPostWithBodyWithResponse Get Models Embed Usage
//
// Get embedding usage analytics with model breakdown.
//
// Note: Embed events don't have collection_id, so collection filtering is not supported.
// If collection_names are provided in the request, they will be ignored.
//
// 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 /usage/models/embed (the `GetModelsEmbedUsageUsageModelsEmbedPost` operationId).
GetModelsEmbedUsageUsageModelsEmbedPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetModelsEmbedUsageUsageModelsEmbedPostResponse, error)
// GetModelsEmbedUsageUsageModelsEmbedPostWithResponse Get Models Embed Usage
//
// Get embedding usage analytics with model breakdown.
//
// Note: Embed events don't have collection_id, so collection filtering is not supported.
// If collection_names are provided in the request, they will be ignored.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /usage/models/embed (the `GetModelsEmbedUsageUsageModelsEmbedPost` operationId).
GetModelsEmbedUsageUsageModelsEmbedPostWithResponse(ctx context.Context, body GetModelsEmbedUsageUsageModelsEmbedPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetModelsEmbedUsageUsageModelsEmbedPostResponse, error)
// GetModelsRerankerUsageUsageModelsRerankerPostWithBodyWithResponse Get Models Reranker Usage
//
// Get reranker usage analytics with model breakdown.
//
// Note: Rerank events don't have collection_id, so collection filtering is not supported.
// If collection_names are provided in the request, they will be ignored.
//
// 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 /usage/models/reranker (the `GetModelsRerankerUsageUsageModelsRerankerPost` operationId).
GetModelsRerankerUsageUsageModelsRerankerPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetModelsRerankerUsageUsageModelsRerankerPostResponse, error)
// GetModelsRerankerUsageUsageModelsRerankerPostWithResponse Get Models Reranker Usage
//
// Get reranker usage analytics with model breakdown.
//
// Note: Rerank events don't have collection_id, so collection filtering is not supported.
// If collection_names are provided in the request, they will be ignored.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /usage/models/reranker (the `GetModelsRerankerUsageUsageModelsRerankerPost` operationId).
GetModelsRerankerUsageUsageModelsRerankerPostWithResponse(ctx context.Context, body GetModelsRerankerUsageUsageModelsRerankerPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetModelsRerankerUsageUsageModelsRerankerPostResponse, error)
// GetQueryUsageUsageQueriesPostWithBodyWithResponse Get Query Usage
//
// Query usage (fine/coarse/pages/documents queries).
//
// 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 /usage/queries (the `GetQueryUsageUsageQueriesPost` operationId).
GetQueryUsageUsageQueriesPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetQueryUsageUsageQueriesPostResponse, error)
// GetQueryUsageUsageQueriesPostWithResponse Get Query Usage
//
// Query usage (fine/coarse/pages/documents queries).
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /usage/queries (the `GetQueryUsageUsageQueriesPost` operationId).
GetQueryUsageUsageQueriesPostWithResponse(ctx context.Context, body GetQueryUsageUsageQueriesPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetQueryUsageUsageQueriesPostResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateOrganizationAdminCreateOrganizationPostJSONRequestBody ¶
type CreateOrganizationAdminCreateOrganizationPostJSONRequestBody = CreateOrganizationRequest
CreateOrganizationAdminCreateOrganizationPostJSONRequestBody defines body for CreateOrganizationAdminCreateOrganizationPost for application/json ContentType.
type CreateOrganizationAdminCreateOrganizationPostResponse ¶
type CreateOrganizationAdminCreateOrganizationPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *DefaultResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseCreateOrganizationAdminCreateOrganizationPostResponse ¶
func ParseCreateOrganizationAdminCreateOrganizationPostResponse(rsp *http.Response) (*CreateOrganizationAdminCreateOrganizationPostResponse, error)
ParseCreateOrganizationAdminCreateOrganizationPostResponse parses an HTTP response from a CreateOrganizationAdminCreateOrganizationPostWithResponse call
func (CreateOrganizationAdminCreateOrganizationPostResponse) ContentType ¶
func (r CreateOrganizationAdminCreateOrganizationPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateOrganizationAdminCreateOrganizationPostResponse) GetBody ¶
func (r CreateOrganizationAdminCreateOrganizationPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateOrganizationAdminCreateOrganizationPostResponse) GetJSON201 ¶
func (r CreateOrganizationAdminCreateOrganizationPostResponse) GetJSON201() *DefaultResponse
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateOrganizationAdminCreateOrganizationPostResponse) GetJSON422 ¶
func (r CreateOrganizationAdminCreateOrganizationPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (CreateOrganizationAdminCreateOrganizationPostResponse) Status ¶
func (r CreateOrganizationAdminCreateOrganizationPostResponse) Status() string
Status returns HTTPResponse.Status
func (CreateOrganizationAdminCreateOrganizationPostResponse) StatusCode ¶
func (r CreateOrganizationAdminCreateOrganizationPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateOrganizationRequest ¶
type CreateOrganizationRequest struct {
// OrganizationId The organization id to create. Must be unique.
OrganizationId openapi_types.UUID `json:"organization_id"`
}
CreateOrganizationRequest defines model for CreateOrganizationRequest.
type DBAPIKeyPermission ¶
type DBAPIKeyPermission string
DBAPIKeyPermission defines model for DBAPIKeyPermission.
const ( DBAPIKeyPermissionAll DBAPIKeyPermission = "all" DBAPIKeyPermissionReadOnly DBAPIKeyPermission = "read_only" )
Defines values for DBAPIKeyPermission.
func (DBAPIKeyPermission) Valid ¶
func (e DBAPIKeyPermission) Valid() bool
Valid indicates whether the value is a known member of the DBAPIKeyPermission enum.
type DefaultResponse ¶
type DefaultResponse struct {
// Message This string will always be "Success!". This may change in the future.
Message *string `json:"message,omitempty"`
}
DefaultResponse defines model for DefaultResponse.
type DeleteAPIKeyRequest ¶
type DeleteAPIKeyRequest struct {
// ApiKeyId The API key ID to delete.
ApiKeyId openapi_types.UUID `json:"api_key_id"`
// OrganizationId The organization ID of the related api key.
OrganizationId openapi_types.UUID `json:"organization_id"`
}
DeleteAPIKeyRequest defines model for DeleteAPIKeyRequest.
type DeleteApiKeyAdminDeleteApiKeyPostJSONRequestBody ¶
type DeleteApiKeyAdminDeleteApiKeyPostJSONRequestBody = DeleteAPIKeyRequest
DeleteApiKeyAdminDeleteApiKeyPostJSONRequestBody defines body for DeleteApiKeyAdminDeleteApiKeyPost for application/json ContentType.
type DeleteApiKeyAdminDeleteApiKeyPostResponse ¶
type DeleteApiKeyAdminDeleteApiKeyPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DefaultResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseDeleteApiKeyAdminDeleteApiKeyPostResponse ¶
func ParseDeleteApiKeyAdminDeleteApiKeyPostResponse(rsp *http.Response) (*DeleteApiKeyAdminDeleteApiKeyPostResponse, error)
ParseDeleteApiKeyAdminDeleteApiKeyPostResponse parses an HTTP response from a DeleteApiKeyAdminDeleteApiKeyPostWithResponse call
func (DeleteApiKeyAdminDeleteApiKeyPostResponse) ContentType ¶
func (r DeleteApiKeyAdminDeleteApiKeyPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiKeyAdminDeleteApiKeyPostResponse) GetBody ¶
func (r DeleteApiKeyAdminDeleteApiKeyPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiKeyAdminDeleteApiKeyPostResponse) GetJSON200 ¶
func (r DeleteApiKeyAdminDeleteApiKeyPostResponse) GetJSON200() *DefaultResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DeleteApiKeyAdminDeleteApiKeyPostResponse) GetJSON422 ¶
func (r DeleteApiKeyAdminDeleteApiKeyPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (DeleteApiKeyAdminDeleteApiKeyPostResponse) Status ¶
func (r DeleteApiKeyAdminDeleteApiKeyPostResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiKeyAdminDeleteApiKeyPostResponse) StatusCode ¶
func (r DeleteApiKeyAdminDeleteApiKeyPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteCollectionCollectionsDeleteCollectionPostJSONRequestBody ¶
type DeleteCollectionCollectionsDeleteCollectionPostJSONRequestBody = DeleteCollectionRequest
DeleteCollectionCollectionsDeleteCollectionPostJSONRequestBody defines body for DeleteCollectionCollectionsDeleteCollectionPost for application/json ContentType.
type DeleteCollectionCollectionsDeleteCollectionPostResponse ¶
type DeleteCollectionCollectionsDeleteCollectionPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DefaultResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseDeleteCollectionCollectionsDeleteCollectionPostResponse ¶
func ParseDeleteCollectionCollectionsDeleteCollectionPostResponse(rsp *http.Response) (*DeleteCollectionCollectionsDeleteCollectionPostResponse, error)
ParseDeleteCollectionCollectionsDeleteCollectionPostResponse parses an HTTP response from a DeleteCollectionCollectionsDeleteCollectionPostWithResponse call
func (DeleteCollectionCollectionsDeleteCollectionPostResponse) ContentType ¶
func (r DeleteCollectionCollectionsDeleteCollectionPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteCollectionCollectionsDeleteCollectionPostResponse) GetBody ¶
func (r DeleteCollectionCollectionsDeleteCollectionPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteCollectionCollectionsDeleteCollectionPostResponse) GetJSON200 ¶
func (r DeleteCollectionCollectionsDeleteCollectionPostResponse) GetJSON200() *DefaultResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DeleteCollectionCollectionsDeleteCollectionPostResponse) GetJSON422 ¶
func (r DeleteCollectionCollectionsDeleteCollectionPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (DeleteCollectionCollectionsDeleteCollectionPostResponse) Status ¶
func (r DeleteCollectionCollectionsDeleteCollectionPostResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteCollectionCollectionsDeleteCollectionPostResponse) StatusCode ¶
func (r DeleteCollectionCollectionsDeleteCollectionPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteCollectionRequest ¶
type DeleteCollectionRequest struct {
// CollectionName The name of the collection to delete.
CollectionName string `json:"collection_name"`
}
DeleteCollectionRequest defines model for DeleteCollectionRequest.
type DeleteDocumentDocumentsDeleteDocumentPostJSONRequestBody ¶
type DeleteDocumentDocumentsDeleteDocumentPostJSONRequestBody = DeleteDocumentRequest
DeleteDocumentDocumentsDeleteDocumentPostJSONRequestBody defines body for DeleteDocumentDocumentsDeleteDocumentPost for application/json ContentType.
type DeleteDocumentDocumentsDeleteDocumentPostResponse ¶
type DeleteDocumentDocumentsDeleteDocumentPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DeleteDocumentResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseDeleteDocumentDocumentsDeleteDocumentPostResponse ¶
func ParseDeleteDocumentDocumentsDeleteDocumentPostResponse(rsp *http.Response) (*DeleteDocumentDocumentsDeleteDocumentPostResponse, error)
ParseDeleteDocumentDocumentsDeleteDocumentPostResponse parses an HTTP response from a DeleteDocumentDocumentsDeleteDocumentPostWithResponse call
func (DeleteDocumentDocumentsDeleteDocumentPostResponse) ContentType ¶
func (r DeleteDocumentDocumentsDeleteDocumentPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteDocumentDocumentsDeleteDocumentPostResponse) GetBody ¶
func (r DeleteDocumentDocumentsDeleteDocumentPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteDocumentDocumentsDeleteDocumentPostResponse) GetJSON200 ¶
func (r DeleteDocumentDocumentsDeleteDocumentPostResponse) GetJSON200() *DeleteDocumentResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DeleteDocumentDocumentsDeleteDocumentPostResponse) GetJSON422 ¶
func (r DeleteDocumentDocumentsDeleteDocumentPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (DeleteDocumentDocumentsDeleteDocumentPostResponse) Status ¶
func (r DeleteDocumentDocumentsDeleteDocumentPostResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteDocumentDocumentsDeleteDocumentPostResponse) StatusCode ¶
func (r DeleteDocumentDocumentsDeleteDocumentPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteDocumentRequest ¶
type DeleteDocumentRequest struct {
// CollectionName The name of the collection.
CollectionName string `json:"collection_name"`
// Path The path(s) of the document(s) that you are deleting. Must be either a `string`, or a `list[str]` between 1 and 64 inclusive. A `404 Not Found` status code will be returned if no document(s) with this path was found. If at least one of the paths provided do exist, then `200 OK` will be returned, along with an array of the document paths that were found and thus deleted.
Path DeleteDocumentRequest_Path `json:"path"`
}
DeleteDocumentRequest defines model for DeleteDocumentRequest.
type DeleteDocumentRequestPath0 ¶
type DeleteDocumentRequestPath0 = string
DeleteDocumentRequestPath0 defines model for DeleteDocumentRequest.Path.0.
type DeleteDocumentRequestPath1 ¶
type DeleteDocumentRequestPath1 = []string
DeleteDocumentRequestPath1 defines model for DeleteDocumentRequest.Path.1.
type DeleteDocumentRequest_Path ¶
type DeleteDocumentRequest_Path struct {
// contains filtered or unexported fields
}
DeleteDocumentRequest_Path The path(s) of the document(s) that you are deleting. Must be either a `string`, or a `list[str]` between 1 and 64 inclusive. A `404 Not Found` status code will be returned if no document(s) with this path was found. If at least one of the paths provided do exist, then `200 OK` will be returned, along with an array of the document paths that were found and thus deleted.
func (DeleteDocumentRequest_Path) AsDeleteDocumentRequestPath0 ¶
func (t DeleteDocumentRequest_Path) AsDeleteDocumentRequestPath0() (DeleteDocumentRequestPath0, error)
AsDeleteDocumentRequestPath0 returns the union data inside the DeleteDocumentRequest_Path as a DeleteDocumentRequestPath0
func (DeleteDocumentRequest_Path) AsDeleteDocumentRequestPath1 ¶
func (t DeleteDocumentRequest_Path) AsDeleteDocumentRequestPath1() (DeleteDocumentRequestPath1, error)
AsDeleteDocumentRequestPath1 returns the union data inside the DeleteDocumentRequest_Path as a DeleteDocumentRequestPath1
func (*DeleteDocumentRequest_Path) FromDeleteDocumentRequestPath0 ¶
func (t *DeleteDocumentRequest_Path) FromDeleteDocumentRequestPath0(v DeleteDocumentRequestPath0) error
FromDeleteDocumentRequestPath0 overwrites any union data inside the DeleteDocumentRequest_Path as the provided DeleteDocumentRequestPath0
func (*DeleteDocumentRequest_Path) FromDeleteDocumentRequestPath1 ¶
func (t *DeleteDocumentRequest_Path) FromDeleteDocumentRequestPath1(v DeleteDocumentRequestPath1) error
FromDeleteDocumentRequestPath1 overwrites any union data inside the DeleteDocumentRequest_Path as the provided DeleteDocumentRequestPath1
func (DeleteDocumentRequest_Path) MarshalJSON ¶
func (t DeleteDocumentRequest_Path) MarshalJSON() ([]byte, error)
func (*DeleteDocumentRequest_Path) MergeDeleteDocumentRequestPath0 ¶
func (t *DeleteDocumentRequest_Path) MergeDeleteDocumentRequestPath0(v DeleteDocumentRequestPath0) error
MergeDeleteDocumentRequestPath0 performs a merge with any union data inside the DeleteDocumentRequest_Path, using the provided DeleteDocumentRequestPath0
func (*DeleteDocumentRequest_Path) MergeDeleteDocumentRequestPath1 ¶
func (t *DeleteDocumentRequest_Path) MergeDeleteDocumentRequestPath1(v DeleteDocumentRequestPath1) error
MergeDeleteDocumentRequestPath1 performs a merge with any union data inside the DeleteDocumentRequest_Path, using the provided DeleteDocumentRequestPath1
func (*DeleteDocumentRequest_Path) UnmarshalJSON ¶
func (t *DeleteDocumentRequest_Path) UnmarshalJSON(b []byte) error
type DeleteDocumentResponse ¶
type DeleteDocumentResponse struct {
DeletedPaths []string `json:"deleted_paths"`
}
DeleteDocumentResponse defines model for DeleteDocumentResponse.
type DocumentEventEnum ¶
type DocumentEventEnum string
DocumentEventEnum defines model for DocumentEventEnum.
const ( DocumentEventEnumAdded DocumentEventEnum = "added" DocumentEventEnumDeleted DocumentEventEnum = "deleted" DocumentEventEnumIndexed DocumentEventEnum = "indexed" DocumentEventEnumParsed DocumentEventEnum = "parsed" )
Defines values for DocumentEventEnum.
func (DocumentEventEnum) Valid ¶
func (e DocumentEventEnum) Valid() bool
Valid indicates whether the value is a known member of the DocumentEventEnum enum.
type DocumentIndexStatus ¶
type DocumentIndexStatus string
DocumentIndexStatus defines model for DocumentIndexStatus.
const ( DocumentIndexStatusIndexed DocumentIndexStatus = "indexed" DocumentIndexStatusIndexing DocumentIndexStatus = "indexing" DocumentIndexStatusIndexingFailed DocumentIndexStatus = "indexing_failed" DocumentIndexStatusNotIndexed DocumentIndexStatus = "not_indexed" DocumentIndexStatusNotParsed DocumentIndexStatus = "not_parsed" DocumentIndexStatusParsing DocumentIndexStatus = "parsing" DocumentIndexStatusParsingFailed DocumentIndexStatus = "parsing_failed" )
Defines values for DocumentIndexStatus.
func (DocumentIndexStatus) Valid ¶
func (e DocumentIndexStatus) Valid() bool
Valid indicates whether the value is a known member of the DocumentIndexStatus enum.
type DocumentMetadataJson ¶
type DocumentMetadataJson map[string]DocumentMetadataJson_AdditionalProperties
DocumentMetadataJson defines model for DocumentMetadataJson.
type DocumentMetadataJson0 ¶
type DocumentMetadataJson0 = string
DocumentMetadataJson0 defines model for DocumentMetadataJson.0.
type DocumentMetadataJson1 ¶
type DocumentMetadataJson1 = []string
DocumentMetadataJson1 defines model for DocumentMetadataJson.1.
type DocumentMetadataJson_AdditionalProperties ¶
type DocumentMetadataJson_AdditionalProperties struct {
// contains filtered or unexported fields
}
DocumentMetadataJson_AdditionalProperties defines model for DocumentMetadataJson.AdditionalProperties.
func (DocumentMetadataJson_AdditionalProperties) AsDocumentMetadataJson0 ¶
func (t DocumentMetadataJson_AdditionalProperties) AsDocumentMetadataJson0() (DocumentMetadataJson0, error)
AsDocumentMetadataJson0 returns the union data inside the DocumentMetadataJson_AdditionalProperties as a DocumentMetadataJson0
func (DocumentMetadataJson_AdditionalProperties) AsDocumentMetadataJson1 ¶
func (t DocumentMetadataJson_AdditionalProperties) AsDocumentMetadataJson1() (DocumentMetadataJson1, error)
AsDocumentMetadataJson1 returns the union data inside the DocumentMetadataJson_AdditionalProperties as a DocumentMetadataJson1
func (*DocumentMetadataJson_AdditionalProperties) FromDocumentMetadataJson0 ¶
func (t *DocumentMetadataJson_AdditionalProperties) FromDocumentMetadataJson0(v DocumentMetadataJson0) error
FromDocumentMetadataJson0 overwrites any union data inside the DocumentMetadataJson_AdditionalProperties as the provided DocumentMetadataJson0
func (*DocumentMetadataJson_AdditionalProperties) FromDocumentMetadataJson1 ¶
func (t *DocumentMetadataJson_AdditionalProperties) FromDocumentMetadataJson1(v DocumentMetadataJson1) error
FromDocumentMetadataJson1 overwrites any union data inside the DocumentMetadataJson_AdditionalProperties as the provided DocumentMetadataJson1
func (DocumentMetadataJson_AdditionalProperties) MarshalJSON ¶
func (t DocumentMetadataJson_AdditionalProperties) MarshalJSON() ([]byte, error)
func (*DocumentMetadataJson_AdditionalProperties) MergeDocumentMetadataJson0 ¶
func (t *DocumentMetadataJson_AdditionalProperties) MergeDocumentMetadataJson0(v DocumentMetadataJson0) error
MergeDocumentMetadataJson0 performs a merge with any union data inside the DocumentMetadataJson_AdditionalProperties, using the provided DocumentMetadataJson0
func (*DocumentMetadataJson_AdditionalProperties) MergeDocumentMetadataJson1 ¶
func (t *DocumentMetadataJson_AdditionalProperties) MergeDocumentMetadataJson1(v DocumentMetadataJson1) error
MergeDocumentMetadataJson1 performs a merge with any union data inside the DocumentMetadataJson_AdditionalProperties, using the provided DocumentMetadataJson1
func (*DocumentMetadataJson_AdditionalProperties) UnmarshalJSON ¶
func (t *DocumentMetadataJson_AdditionalProperties) UnmarshalJSON(b []byte) error
type DocumentMetadataResponse ¶
type DocumentMetadataResponse struct {
CollectionName string `json:"collection_name"`
CreatedAt time.Time `json:"created_at"`
// FileUrl A URL to the document data, which can be used to download the raw document content or to display the document in frontend applications.
//
// NOTE: If a `/documents/update-document` call returned a new document id, then this url will be invalidated and must be retrieved again.
FileUrl string `json:"file_url"`
Id openapi_types.UUID `json:"id"`
IndexStatus DocumentIndexStatus `json:"index_status"`
Metadata DocumentMetadataJson `json:"metadata"`
// NumPages The number of pages in this document. This will be `null` if the document is parsing or failed to parse. It can also be `null` if the document is a filetype that does not support pages.
NumPages *int `json:"num_pages"`
Path string `json:"path"`
// Size The total size of the raw document data, in bytes.
Size int `json:"size"`
}
DocumentMetadataResponse defines model for DocumentMetadataResponse.
type DocumentResponse ¶
type DocumentResponse struct {
CollectionName string `json:"collection_name"`
// Content This will be `null`, unless `include_content` was available and set to `true`.
Content *string `json:"content,omitempty"`
// FileUrl A URL to the document data, which can be used to download the raw document content or to display the document in frontend applications.
//
// NOTE: If a `/documents/update-document` call returned a new document id, then this url will be invalidated and must be retrieved again.
FileUrl string `json:"file_url"`
Id openapi_types.UUID `json:"id"`
IndexStatus DocumentIndexStatus `json:"index_status"`
Metadata DocumentMetadataJson `json:"metadata"`
// NumPages The number of pages in this document. This will be `null` if the document is parsing or failed to parse. It can also be `null` if the document is a filetype that does not support pages.
NumPages *int `json:"num_pages"`
Path string `json:"path"`
// Size The total size of the raw document data, in bytes.
Size int `json:"size"`
}
DocumentResponse defines model for DocumentResponse.
type DocumentRetrievalResponse ¶
type DocumentRetrievalResponse struct {
// FileUrl A URL to the document data, which can be used to download the raw document content or to display the document in frontend applications.
//
// NOTE: If a `/documents/update-document` call returned a new document id, then this url will be invalidated and must be retrieved again.
FileUrl string `json:"file_url"`
// Metadata The metadata for that document. Will be `None` if `include_metadata` is `False`.
Metadata *DocumentMetadataJson `json:"metadata"`
// Path The path of the document.
Path string `json:"path"`
// Score The relevancy score assigned to this document.
Score float64 `json:"score"`
}
DocumentRetrievalResponse defines model for DocumentRetrievalResponse.
type DocumentUsageResponse ¶
type DocumentUsageResponse struct {
CollectionId openapi_types.UUID `json:"collection_id"`
EventCount int `json:"event_count"`
EventType DocumentEventEnum `json:"event_type"`
OrganizationId openapi_types.UUID `json:"organization_id"`
TotalCoarseChunks int `json:"total_coarse_chunks"`
TotalContentTokens int `json:"total_content_tokens"`
TotalEmbeddingTokens int `json:"total_embedding_tokens"`
TotalFileSizeBytes int `json:"total_file_size_bytes"`
TotalFineChunks int `json:"total_fine_chunks"`
TotalLlmTokens int `json:"total_llm_tokens"`
TotalPages int `json:"total_pages"`
TotalTimeTakenMs float64 `json:"total_time_taken_ms"`
WindowStart int `json:"window_start"`
}
DocumentUsageResponse defines model for DocumentUsageResponse.
type EmbedModelsEmbedPostJSONRequestBody ¶
type EmbedModelsEmbedPostJSONRequestBody = EmbedRequest
EmbedModelsEmbedPostJSONRequestBody defines body for EmbedModelsEmbedPost for application/json ContentType.
type EmbedModelsEmbedPostResponse ¶
type EmbedModelsEmbedPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *EmbedResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseEmbedModelsEmbedPostResponse ¶
func ParseEmbedModelsEmbedPostResponse(rsp *http.Response) (*EmbedModelsEmbedPostResponse, error)
ParseEmbedModelsEmbedPostResponse parses an HTTP response from a EmbedModelsEmbedPostWithResponse call
func (EmbedModelsEmbedPostResponse) ContentType ¶
func (r EmbedModelsEmbedPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (EmbedModelsEmbedPostResponse) GetBody ¶
func (r EmbedModelsEmbedPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (EmbedModelsEmbedPostResponse) GetJSON200 ¶
func (r EmbedModelsEmbedPostResponse) GetJSON200() *EmbedResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (EmbedModelsEmbedPostResponse) GetJSON422 ¶
func (r EmbedModelsEmbedPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (EmbedModelsEmbedPostResponse) Status ¶
func (r EmbedModelsEmbedPostResponse) Status() string
Status returns HTTPResponse.Status
func (EmbedModelsEmbedPostResponse) StatusCode ¶
func (r EmbedModelsEmbedPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EmbedRequest ¶
type EmbedRequest struct {
// Dimensions The output dimensionality of the embedding model. For `zembed-1`, the available options are: [2560, 1280, 640, 320, 160, 80, 40].
Dimensions *int `json:"dimensions,omitempty"`
// EncodingFormat The output format of the embedding. If `float`, an array of floats will be returned for each embeddings. If `base64`, a f32 little endian byte array will be returned, encoded as a base64 string. `base64` is significantly more efficient than `float`. The default is `float`.
EncodingFormat *EmbedRequestEncodingFormat `json:"encoding_format,omitempty"`
// Input The string, or list of strings, to embed.
Input EmbedRequest_Input `json:"input"`
// InputType The input type. For retrieval tasks, either `query` or `document`.
InputType EmbedRequestInputType `json:"input_type"`
// Latency Whether the call will be inferenced "fast" or "slow". RateLimits for slow API calls are orders of magnitude higher, but you can expect 2-20 second latency. Fast inferences are guaranteed subsecond, but rate limits are lower. If "fast" is requested and the fast tier is unavailable or rate-limited, a slow call will be executed when the model supports slow inference.
Latency *EmbedRequestLatency `json:"latency,omitempty"`
// Model The model ID to use for embedding. Options are: ["zembed-1"]
Model string `json:"model"`
}
EmbedRequest defines model for EmbedRequest.
type EmbedRequestEncodingFormat ¶
type EmbedRequestEncodingFormat string
EmbedRequestEncodingFormat The output format of the embedding. If `float`, an array of floats will be returned for each embeddings. If `base64`, a f32 little endian byte array will be returned, encoded as a base64 string. `base64` is significantly more efficient than `float`. The default is `float`.
const ( EmbedRequestEncodingFormatBase64 EmbedRequestEncodingFormat = "base64" EmbedRequestEncodingFormatFloat EmbedRequestEncodingFormat = "float" )
Defines values for EmbedRequestEncodingFormat.
func (EmbedRequestEncodingFormat) Valid ¶
func (e EmbedRequestEncodingFormat) Valid() bool
Valid indicates whether the value is a known member of the EmbedRequestEncodingFormat enum.
type EmbedRequestInput0 ¶
type EmbedRequestInput0 = string
EmbedRequestInput0 defines model for EmbedRequest.Input.0.
type EmbedRequestInput1 ¶
type EmbedRequestInput1 = []string
EmbedRequestInput1 defines model for EmbedRequest.Input.1.
type EmbedRequestInputType ¶
type EmbedRequestInputType string
EmbedRequestInputType The input type. For retrieval tasks, either `query` or `document`.
const ( EmbedRequestInputTypeDocument EmbedRequestInputType = "document" EmbedRequestInputTypeQuery EmbedRequestInputType = "query" )
Defines values for EmbedRequestInputType.
func (EmbedRequestInputType) Valid ¶
func (e EmbedRequestInputType) Valid() bool
Valid indicates whether the value is a known member of the EmbedRequestInputType enum.
type EmbedRequestLatency ¶
type EmbedRequestLatency string
EmbedRequestLatency Whether the call will be inferenced "fast" or "slow". RateLimits for slow API calls are orders of magnitude higher, but you can expect 2-20 second latency. Fast inferences are guaranteed subsecond, but rate limits are lower. If "fast" is requested and the fast tier is unavailable or rate-limited, a slow call will be executed when the model supports slow inference.
const ( EmbedRequestLatencyFast EmbedRequestLatency = "fast" EmbedRequestLatencySlow EmbedRequestLatency = "slow" )
Defines values for EmbedRequestLatency.
func (EmbedRequestLatency) Valid ¶
func (e EmbedRequestLatency) Valid() bool
Valid indicates whether the value is a known member of the EmbedRequestLatency enum.
type EmbedRequest_Input ¶
type EmbedRequest_Input struct {
// contains filtered or unexported fields
}
EmbedRequest_Input The string, or list of strings, to embed.
func (EmbedRequest_Input) AsEmbedRequestInput0 ¶
func (t EmbedRequest_Input) AsEmbedRequestInput0() (EmbedRequestInput0, error)
AsEmbedRequestInput0 returns the union data inside the EmbedRequest_Input as a EmbedRequestInput0
func (EmbedRequest_Input) AsEmbedRequestInput1 ¶
func (t EmbedRequest_Input) AsEmbedRequestInput1() (EmbedRequestInput1, error)
AsEmbedRequestInput1 returns the union data inside the EmbedRequest_Input as a EmbedRequestInput1
func (*EmbedRequest_Input) FromEmbedRequestInput0 ¶
func (t *EmbedRequest_Input) FromEmbedRequestInput0(v EmbedRequestInput0) error
FromEmbedRequestInput0 overwrites any union data inside the EmbedRequest_Input as the provided EmbedRequestInput0
func (*EmbedRequest_Input) FromEmbedRequestInput1 ¶
func (t *EmbedRequest_Input) FromEmbedRequestInput1(v EmbedRequestInput1) error
FromEmbedRequestInput1 overwrites any union data inside the EmbedRequest_Input as the provided EmbedRequestInput1
func (EmbedRequest_Input) MarshalJSON ¶
func (t EmbedRequest_Input) MarshalJSON() ([]byte, error)
func (*EmbedRequest_Input) MergeEmbedRequestInput0 ¶
func (t *EmbedRequest_Input) MergeEmbedRequestInput0(v EmbedRequestInput0) error
MergeEmbedRequestInput0 performs a merge with any union data inside the EmbedRequest_Input, using the provided EmbedRequestInput0
func (*EmbedRequest_Input) MergeEmbedRequestInput1 ¶
func (t *EmbedRequest_Input) MergeEmbedRequestInput1(v EmbedRequestInput1) error
MergeEmbedRequestInput1 performs a merge with any union data inside the EmbedRequest_Input, using the provided EmbedRequestInput1
func (*EmbedRequest_Input) UnmarshalJSON ¶
func (t *EmbedRequest_Input) UnmarshalJSON(b []byte) error
type EmbedResponse ¶
type EmbedResponse struct {
// Results The list of embedding results.
Results []EmbedResult `json:"results"`
// Usage Statistics regarding the tokens used by the request.
Usage EmbedUsage `json:"usage"`
}
EmbedResponse defines model for EmbedResponse.
type EmbedResult ¶
type EmbedResult struct {
// Embedding The embedding of the input text, as an array of floats. If `base64` format is requested, the response will be an fp32 little endian byte array, encoded as a base64 string.
Embedding EmbedResult_Embedding `json:"embedding"`
}
EmbedResult defines model for EmbedResult.
type EmbedResultEmbedding0 ¶
type EmbedResultEmbedding0 = []float64
EmbedResultEmbedding0 defines model for EmbedResult.Embedding.0.
type EmbedResultEmbedding1 ¶
type EmbedResultEmbedding1 = string
EmbedResultEmbedding1 defines model for EmbedResult.Embedding.1.
type EmbedResult_Embedding ¶
type EmbedResult_Embedding struct {
// contains filtered or unexported fields
}
EmbedResult_Embedding The embedding of the input text, as an array of floats. If `base64` format is requested, the response will be an fp32 little endian byte array, encoded as a base64 string.
func (EmbedResult_Embedding) AsEmbedResultEmbedding0 ¶
func (t EmbedResult_Embedding) AsEmbedResultEmbedding0() (EmbedResultEmbedding0, error)
AsEmbedResultEmbedding0 returns the union data inside the EmbedResult_Embedding as a EmbedResultEmbedding0
func (EmbedResult_Embedding) AsEmbedResultEmbedding1 ¶
func (t EmbedResult_Embedding) AsEmbedResultEmbedding1() (EmbedResultEmbedding1, error)
AsEmbedResultEmbedding1 returns the union data inside the EmbedResult_Embedding as a EmbedResultEmbedding1
func (*EmbedResult_Embedding) FromEmbedResultEmbedding0 ¶
func (t *EmbedResult_Embedding) FromEmbedResultEmbedding0(v EmbedResultEmbedding0) error
FromEmbedResultEmbedding0 overwrites any union data inside the EmbedResult_Embedding as the provided EmbedResultEmbedding0
func (*EmbedResult_Embedding) FromEmbedResultEmbedding1 ¶
func (t *EmbedResult_Embedding) FromEmbedResultEmbedding1(v EmbedResultEmbedding1) error
FromEmbedResultEmbedding1 overwrites any union data inside the EmbedResult_Embedding as the provided EmbedResultEmbedding1
func (EmbedResult_Embedding) MarshalJSON ¶
func (t EmbedResult_Embedding) MarshalJSON() ([]byte, error)
func (*EmbedResult_Embedding) MergeEmbedResultEmbedding0 ¶
func (t *EmbedResult_Embedding) MergeEmbedResultEmbedding0(v EmbedResultEmbedding0) error
MergeEmbedResultEmbedding0 performs a merge with any union data inside the EmbedResult_Embedding, using the provided EmbedResultEmbedding0
func (*EmbedResult_Embedding) MergeEmbedResultEmbedding1 ¶
func (t *EmbedResult_Embedding) MergeEmbedResultEmbedding1(v EmbedResultEmbedding1) error
MergeEmbedResultEmbedding1 performs a merge with any union data inside the EmbedResult_Embedding, using the provided EmbedResultEmbedding1
func (*EmbedResult_Embedding) UnmarshalJSON ¶
func (t *EmbedResult_Embedding) UnmarshalJSON(b []byte) error
type EmbedUsage ¶
type EmbedUsage struct {
// TotalBytes The total number of bytes in the request. This is used for ratelimiting.
TotalBytes int `json:"total_bytes"`
// TotalTokens The total number of tokens in the request. This is used for billing.
TotalTokens int `json:"total_tokens"`
}
EmbedUsage defines model for EmbedUsage.
type EmbedUsageResponse ¶ added in v0.2.0
type EmbedUsageResponse struct {
EmbeddingModel string `json:"embedding_model"`
EventCount int `json:"event_count"`
ExplicitCall bool `json:"explicit_call"`
OrganizationId openapi_types.UUID `json:"organization_id"`
TotalRequestBytes int `json:"total_request_bytes"`
TotalRequestTokens int `json:"total_request_tokens"`
TotalTimeTakenMs float64 `json:"total_time_taken_ms"`
WindowStart int `json:"window_start"`
}
EmbedUsageResponse defines model for EmbedUsageResponse.
type EmptyRequest ¶
type EmptyRequest = map[string]interface{}
EmptyRequest defines model for EmptyRequest.
type GetCollectionListCollectionsGetCollectionListPostJSONBody ¶
type GetCollectionListCollectionsGetCollectionListPostJSONBody = EmptyRequest
GetCollectionListCollectionsGetCollectionListPostJSONBody defines parameters for GetCollectionListCollectionsGetCollectionListPost.
type GetCollectionListCollectionsGetCollectionListPostJSONRequestBody ¶
type GetCollectionListCollectionsGetCollectionListPostJSONRequestBody = GetCollectionListCollectionsGetCollectionListPostJSONBody
GetCollectionListCollectionsGetCollectionListPostJSONRequestBody defines body for GetCollectionListCollectionsGetCollectionListPost for application/json ContentType.
type GetCollectionListCollectionsGetCollectionListPostResponse ¶
type GetCollectionListCollectionsGetCollectionListPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GetCollectionListResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseGetCollectionListCollectionsGetCollectionListPostResponse ¶
func ParseGetCollectionListCollectionsGetCollectionListPostResponse(rsp *http.Response) (*GetCollectionListCollectionsGetCollectionListPostResponse, error)
ParseGetCollectionListCollectionsGetCollectionListPostResponse parses an HTTP response from a GetCollectionListCollectionsGetCollectionListPostWithResponse call
func (GetCollectionListCollectionsGetCollectionListPostResponse) ContentType ¶
func (r GetCollectionListCollectionsGetCollectionListPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetCollectionListCollectionsGetCollectionListPostResponse) GetBody ¶
func (r GetCollectionListCollectionsGetCollectionListPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetCollectionListCollectionsGetCollectionListPostResponse) GetJSON200 ¶
func (r GetCollectionListCollectionsGetCollectionListPostResponse) GetJSON200() *GetCollectionListResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetCollectionListCollectionsGetCollectionListPostResponse) GetJSON422 ¶
func (r GetCollectionListCollectionsGetCollectionListPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (GetCollectionListCollectionsGetCollectionListPostResponse) Status ¶
func (r GetCollectionListCollectionsGetCollectionListPostResponse) Status() string
Status returns HTTPResponse.Status
func (GetCollectionListCollectionsGetCollectionListPostResponse) StatusCode ¶
func (r GetCollectionListCollectionsGetCollectionListPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCollectionListResponse ¶
type GetCollectionListResponse struct {
// CollectionNames The names of the matched collections.
CollectionNames []string `json:"collection_names"`
}
GetCollectionListResponse defines model for GetCollectionListResponse.
type GetDocumentDocumentsGetDocumentGetParams ¶
type GetDocumentDocumentsGetDocumentGetParams struct {
// Token The document token
Token string `form:"token" json:"token"`
}
GetDocumentDocumentsGetDocumentGetParams defines parameters for GetDocumentDocumentsGetDocumentGet.
type GetDocumentDocumentsGetDocumentGetResponse ¶
type GetDocumentDocumentsGetDocumentGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *json.RawMessage
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseGetDocumentDocumentsGetDocumentGetResponse ¶
func ParseGetDocumentDocumentsGetDocumentGetResponse(rsp *http.Response) (*GetDocumentDocumentsGetDocumentGetResponse, error)
ParseGetDocumentDocumentsGetDocumentGetResponse parses an HTTP response from a GetDocumentDocumentsGetDocumentGetWithResponse call
func (GetDocumentDocumentsGetDocumentGetResponse) ContentType ¶
func (r GetDocumentDocumentsGetDocumentGetResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetDocumentDocumentsGetDocumentGetResponse) GetBody ¶
func (r GetDocumentDocumentsGetDocumentGetResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetDocumentDocumentsGetDocumentGetResponse) GetJSON200 ¶
func (r GetDocumentDocumentsGetDocumentGetResponse) GetJSON200() *json.RawMessage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetDocumentDocumentsGetDocumentGetResponse) GetJSON422 ¶
func (r GetDocumentDocumentsGetDocumentGetResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (GetDocumentDocumentsGetDocumentGetResponse) Status ¶
func (r GetDocumentDocumentsGetDocumentGetResponse) Status() string
Status returns HTTPResponse.Status
func (GetDocumentDocumentsGetDocumentGetResponse) StatusCode ¶
func (r GetDocumentDocumentsGetDocumentGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDocumentInfoDocumentsGetDocumentInfoPostJSONRequestBody ¶
type GetDocumentInfoDocumentsGetDocumentInfoPostJSONRequestBody = GetDocumentInfoRequest
GetDocumentInfoDocumentsGetDocumentInfoPostJSONRequestBody defines body for GetDocumentInfoDocumentsGetDocumentInfoPost for application/json ContentType.
type GetDocumentInfoDocumentsGetDocumentInfoPostResponse ¶
type GetDocumentInfoDocumentsGetDocumentInfoPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GetDocumentInfoResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseGetDocumentInfoDocumentsGetDocumentInfoPostResponse ¶
func ParseGetDocumentInfoDocumentsGetDocumentInfoPostResponse(rsp *http.Response) (*GetDocumentInfoDocumentsGetDocumentInfoPostResponse, error)
ParseGetDocumentInfoDocumentsGetDocumentInfoPostResponse parses an HTTP response from a GetDocumentInfoDocumentsGetDocumentInfoPostWithResponse call
func (GetDocumentInfoDocumentsGetDocumentInfoPostResponse) ContentType ¶
func (r GetDocumentInfoDocumentsGetDocumentInfoPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetDocumentInfoDocumentsGetDocumentInfoPostResponse) GetBody ¶
func (r GetDocumentInfoDocumentsGetDocumentInfoPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetDocumentInfoDocumentsGetDocumentInfoPostResponse) GetJSON200 ¶
func (r GetDocumentInfoDocumentsGetDocumentInfoPostResponse) GetJSON200() *GetDocumentInfoResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetDocumentInfoDocumentsGetDocumentInfoPostResponse) GetJSON422 ¶
func (r GetDocumentInfoDocumentsGetDocumentInfoPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (GetDocumentInfoDocumentsGetDocumentInfoPostResponse) Status ¶
func (r GetDocumentInfoDocumentsGetDocumentInfoPostResponse) Status() string
Status returns HTTPResponse.Status
func (GetDocumentInfoDocumentsGetDocumentInfoPostResponse) StatusCode ¶
func (r GetDocumentInfoDocumentsGetDocumentInfoPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDocumentInfoListDocumentsGetDocumentInfoListPostJSONRequestBody ¶
type GetDocumentInfoListDocumentsGetDocumentInfoListPostJSONRequestBody = GetDocumentInfoListRequest
GetDocumentInfoListDocumentsGetDocumentInfoListPostJSONRequestBody defines body for GetDocumentInfoListDocumentsGetDocumentInfoListPost for application/json ContentType.
type GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse ¶
type GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GetDocumentInfoListResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseGetDocumentInfoListDocumentsGetDocumentInfoListPostResponse ¶
func ParseGetDocumentInfoListDocumentsGetDocumentInfoListPostResponse(rsp *http.Response) (*GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse, error)
ParseGetDocumentInfoListDocumentsGetDocumentInfoListPostResponse parses an HTTP response from a GetDocumentInfoListDocumentsGetDocumentInfoListPostWithResponse call
func (GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse) ContentType ¶
func (r GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse) GetBody ¶
func (r GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse) GetJSON200 ¶
func (r GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse) GetJSON200() *GetDocumentInfoListResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse) GetJSON422 ¶
func (r GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse) Status ¶
func (r GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse) Status() string
Status returns HTTPResponse.Status
func (GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse) StatusCode ¶
func (r GetDocumentInfoListDocumentsGetDocumentInfoListPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDocumentInfoListRequest ¶
type GetDocumentInfoListRequest struct {
// CollectionName The name of the collection.
CollectionName string `json:"collection_name"`
// Limit The maximum number of documents to return. This field is by default 1024, and cannot be set larger than 1024
Limit *int `json:"limit,omitempty"`
// PathGt All documents returned will have a path strictly greater than the provided `path_gt` argument. (Comparison will be based on lexicographic comparison. It is guaranteed that two strings are lexicographically equal if and only if they have identical binary representations.).
PathGt *string `json:"path_gt,omitempty"`
// PathPrefix All documents returned will have a path that starts with the provided path prefix.
PathPrefix *string `json:"path_prefix,omitempty"`
}
GetDocumentInfoListRequest defines model for GetDocumentInfoListRequest.
type GetDocumentInfoListResponse ¶
type GetDocumentInfoListResponse struct {
Documents []DocumentMetadataResponse `json:"documents"`
}
GetDocumentInfoListResponse defines model for GetDocumentInfoListResponse.
type GetDocumentInfoRequest ¶
type GetDocumentInfoRequest struct {
// CollectionName The name of the collection.
CollectionName string `json:"collection_name"`
// IncludeContent If `true`, then the document response will have the `content` attribute be a `string`, rather than `null`. This string will contain the full contents of the document.
IncludeContent *bool `json:"include_content,omitempty"`
// Path The filepath of the document that you're requesting. A `404 Not Found` status code will be returned if no document with this path was found.
Path string `json:"path"`
}
GetDocumentInfoRequest defines model for GetDocumentInfoRequest.
type GetDocumentInfoResponse ¶
type GetDocumentInfoResponse struct {
Document DocumentResponse `json:"document"`
}
GetDocumentInfoResponse defines model for GetDocumentInfoResponse.
type GetDocumentUsageUsageDocumentsPostJSONRequestBody ¶
type GetDocumentUsageUsageDocumentsPostJSONRequestBody = UsageRequest
GetDocumentUsageUsageDocumentsPostJSONRequestBody defines body for GetDocumentUsageUsageDocumentsPost for application/json ContentType.
type GetDocumentUsageUsageDocumentsPostResponse ¶
type GetDocumentUsageUsageDocumentsPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]DocumentUsageResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseGetDocumentUsageUsageDocumentsPostResponse ¶
func ParseGetDocumentUsageUsageDocumentsPostResponse(rsp *http.Response) (*GetDocumentUsageUsageDocumentsPostResponse, error)
ParseGetDocumentUsageUsageDocumentsPostResponse parses an HTTP response from a GetDocumentUsageUsageDocumentsPostWithResponse call
func (GetDocumentUsageUsageDocumentsPostResponse) ContentType ¶
func (r GetDocumentUsageUsageDocumentsPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetDocumentUsageUsageDocumentsPostResponse) GetBody ¶
func (r GetDocumentUsageUsageDocumentsPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetDocumentUsageUsageDocumentsPostResponse) GetJSON200 ¶
func (r GetDocumentUsageUsageDocumentsPostResponse) GetJSON200() *[]DocumentUsageResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetDocumentUsageUsageDocumentsPostResponse) GetJSON422 ¶
func (r GetDocumentUsageUsageDocumentsPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (GetDocumentUsageUsageDocumentsPostResponse) Status ¶
func (r GetDocumentUsageUsageDocumentsPostResponse) Status() string
Status returns HTTPResponse.Status
func (GetDocumentUsageUsageDocumentsPostResponse) StatusCode ¶
func (r GetDocumentUsageUsageDocumentsPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetModelsEmbedUsageUsageModelsEmbedPostJSONRequestBody ¶ added in v0.2.0
type GetModelsEmbedUsageUsageModelsEmbedPostJSONRequestBody = UsageRequest
GetModelsEmbedUsageUsageModelsEmbedPostJSONRequestBody defines body for GetModelsEmbedUsageUsageModelsEmbedPost for application/json ContentType.
type GetModelsEmbedUsageUsageModelsEmbedPostResponse ¶ added in v0.2.0
type GetModelsEmbedUsageUsageModelsEmbedPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]EmbedUsageResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseGetModelsEmbedUsageUsageModelsEmbedPostResponse ¶ added in v0.2.0
func ParseGetModelsEmbedUsageUsageModelsEmbedPostResponse(rsp *http.Response) (*GetModelsEmbedUsageUsageModelsEmbedPostResponse, error)
ParseGetModelsEmbedUsageUsageModelsEmbedPostResponse parses an HTTP response from a GetModelsEmbedUsageUsageModelsEmbedPostWithResponse call
func (GetModelsEmbedUsageUsageModelsEmbedPostResponse) ContentType ¶ added in v0.2.0
func (r GetModelsEmbedUsageUsageModelsEmbedPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetModelsEmbedUsageUsageModelsEmbedPostResponse) GetBody ¶ added in v0.2.0
func (r GetModelsEmbedUsageUsageModelsEmbedPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetModelsEmbedUsageUsageModelsEmbedPostResponse) GetJSON200 ¶ added in v0.2.0
func (r GetModelsEmbedUsageUsageModelsEmbedPostResponse) GetJSON200() *[]EmbedUsageResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetModelsEmbedUsageUsageModelsEmbedPostResponse) GetJSON422 ¶ added in v0.2.0
func (r GetModelsEmbedUsageUsageModelsEmbedPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (GetModelsEmbedUsageUsageModelsEmbedPostResponse) Status ¶ added in v0.2.0
func (r GetModelsEmbedUsageUsageModelsEmbedPostResponse) Status() string
Status returns HTTPResponse.Status
func (GetModelsEmbedUsageUsageModelsEmbedPostResponse) StatusCode ¶ added in v0.2.0
func (r GetModelsEmbedUsageUsageModelsEmbedPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetModelsRerankerUsageUsageModelsRerankerPostJSONRequestBody ¶
type GetModelsRerankerUsageUsageModelsRerankerPostJSONRequestBody = UsageRequest
GetModelsRerankerUsageUsageModelsRerankerPostJSONRequestBody defines body for GetModelsRerankerUsageUsageModelsRerankerPost for application/json ContentType.
type GetModelsRerankerUsageUsageModelsRerankerPostResponse ¶
type GetModelsRerankerUsageUsageModelsRerankerPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]RerankUsageResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseGetModelsRerankerUsageUsageModelsRerankerPostResponse ¶
func ParseGetModelsRerankerUsageUsageModelsRerankerPostResponse(rsp *http.Response) (*GetModelsRerankerUsageUsageModelsRerankerPostResponse, error)
ParseGetModelsRerankerUsageUsageModelsRerankerPostResponse parses an HTTP response from a GetModelsRerankerUsageUsageModelsRerankerPostWithResponse call
func (GetModelsRerankerUsageUsageModelsRerankerPostResponse) ContentType ¶
func (r GetModelsRerankerUsageUsageModelsRerankerPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetModelsRerankerUsageUsageModelsRerankerPostResponse) GetBody ¶
func (r GetModelsRerankerUsageUsageModelsRerankerPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetModelsRerankerUsageUsageModelsRerankerPostResponse) GetJSON200 ¶
func (r GetModelsRerankerUsageUsageModelsRerankerPostResponse) GetJSON200() *[]RerankUsageResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetModelsRerankerUsageUsageModelsRerankerPostResponse) GetJSON422 ¶
func (r GetModelsRerankerUsageUsageModelsRerankerPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (GetModelsRerankerUsageUsageModelsRerankerPostResponse) Status ¶
func (r GetModelsRerankerUsageUsageModelsRerankerPostResponse) Status() string
Status returns HTTPResponse.Status
func (GetModelsRerankerUsageUsageModelsRerankerPostResponse) StatusCode ¶
func (r GetModelsRerankerUsageUsageModelsRerankerPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetModelsUsageCountersUsageModelsCountersPostResponse ¶
type GetModelsUsageCountersUsageModelsCountersPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ModelsUsageCountersResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseGetModelsUsageCountersUsageModelsCountersPostResponse ¶
func ParseGetModelsUsageCountersUsageModelsCountersPostResponse(rsp *http.Response) (*GetModelsUsageCountersUsageModelsCountersPostResponse, error)
ParseGetModelsUsageCountersUsageModelsCountersPostResponse parses an HTTP response from a GetModelsUsageCountersUsageModelsCountersPostWithResponse call
func (GetModelsUsageCountersUsageModelsCountersPostResponse) ContentType ¶
func (r GetModelsUsageCountersUsageModelsCountersPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetModelsUsageCountersUsageModelsCountersPostResponse) GetBody ¶
func (r GetModelsUsageCountersUsageModelsCountersPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetModelsUsageCountersUsageModelsCountersPostResponse) GetJSON200 ¶
func (r GetModelsUsageCountersUsageModelsCountersPostResponse) GetJSON200() *ModelsUsageCountersResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetModelsUsageCountersUsageModelsCountersPostResponse) GetJSON422 ¶
func (r GetModelsUsageCountersUsageModelsCountersPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (GetModelsUsageCountersUsageModelsCountersPostResponse) Status ¶
func (r GetModelsUsageCountersUsageModelsCountersPostResponse) Status() string
Status returns HTTPResponse.Status
func (GetModelsUsageCountersUsageModelsCountersPostResponse) StatusCode ¶
func (r GetModelsUsageCountersUsageModelsCountersPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOrganizationAdminGetOrganizationPostJSONRequestBody ¶ added in v0.2.0
type GetOrganizationAdminGetOrganizationPostJSONRequestBody = GetOrganizationRequest
GetOrganizationAdminGetOrganizationPostJSONRequestBody defines body for GetOrganizationAdminGetOrganizationPost for application/json ContentType.
type GetOrganizationAdminGetOrganizationPostResponse ¶ added in v0.2.0
type GetOrganizationAdminGetOrganizationPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GetOrganizationResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseGetOrganizationAdminGetOrganizationPostResponse ¶ added in v0.2.0
func ParseGetOrganizationAdminGetOrganizationPostResponse(rsp *http.Response) (*GetOrganizationAdminGetOrganizationPostResponse, error)
ParseGetOrganizationAdminGetOrganizationPostResponse parses an HTTP response from a GetOrganizationAdminGetOrganizationPostWithResponse call
func (GetOrganizationAdminGetOrganizationPostResponse) ContentType ¶ added in v0.2.0
func (r GetOrganizationAdminGetOrganizationPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetOrganizationAdminGetOrganizationPostResponse) GetBody ¶ added in v0.2.0
func (r GetOrganizationAdminGetOrganizationPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetOrganizationAdminGetOrganizationPostResponse) GetJSON200 ¶ added in v0.2.0
func (r GetOrganizationAdminGetOrganizationPostResponse) GetJSON200() *GetOrganizationResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetOrganizationAdminGetOrganizationPostResponse) GetJSON422 ¶ added in v0.2.0
func (r GetOrganizationAdminGetOrganizationPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (GetOrganizationAdminGetOrganizationPostResponse) Status ¶ added in v0.2.0
func (r GetOrganizationAdminGetOrganizationPostResponse) Status() string
Status returns HTTPResponse.Status
func (GetOrganizationAdminGetOrganizationPostResponse) StatusCode ¶ added in v0.2.0
func (r GetOrganizationAdminGetOrganizationPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOrganizationRequest ¶ added in v0.2.0
type GetOrganizationRequest struct {
// OrganizationId The organization ID to retrieve.
OrganizationId openapi_types.UUID `json:"organization_id"`
}
GetOrganizationRequest defines model for GetOrganizationRequest.
type GetOrganizationResponse ¶ added in v0.2.0
type GetOrganizationResponse struct {
// Name The organization name.
Name string `json:"name"`
// OrganizationId The organization ID.
OrganizationId openapi_types.UUID `json:"organization_id"`
// OverrideBpmFast Admin override: bytes per minute limit with latency: fast
OverrideBpmFast *int `json:"override_bpm_fast"`
// OverrideBpmSlow Admin override: bytes per minute limit with latency: slow
OverrideBpmSlow *int `json:"override_bpm_slow"`
// OverrideMaxBytesPerRequest Admin override: max bytes per request.
OverrideMaxBytesPerRequest *int `json:"override_max_bytes_per_request"`
// SubscriptionTier Current subscription tier.
SubscriptionTier SubscriptionType `json:"subscription_tier"`
// Zdr Zero data retention enabled.
Zdr bool `json:"zdr"`
}
GetOrganizationResponse defines model for GetOrganizationResponse.
type GetPageImageDocumentsGetPageImageGetParams ¶
type GetPageImageDocumentsGetPageImageGetParams struct {
// Token The image token
Token string `form:"token" json:"token"`
}
GetPageImageDocumentsGetPageImageGetParams defines parameters for GetPageImageDocumentsGetPageImageGet.
type GetPageImageDocumentsGetPageImageGetResponse ¶
type GetPageImageDocumentsGetPageImageGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *json.RawMessage
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseGetPageImageDocumentsGetPageImageGetResponse ¶
func ParseGetPageImageDocumentsGetPageImageGetResponse(rsp *http.Response) (*GetPageImageDocumentsGetPageImageGetResponse, error)
ParseGetPageImageDocumentsGetPageImageGetResponse parses an HTTP response from a GetPageImageDocumentsGetPageImageGetWithResponse call
func (GetPageImageDocumentsGetPageImageGetResponse) ContentType ¶
func (r GetPageImageDocumentsGetPageImageGetResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetPageImageDocumentsGetPageImageGetResponse) GetBody ¶
func (r GetPageImageDocumentsGetPageImageGetResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetPageImageDocumentsGetPageImageGetResponse) GetJSON200 ¶
func (r GetPageImageDocumentsGetPageImageGetResponse) GetJSON200() *json.RawMessage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetPageImageDocumentsGetPageImageGetResponse) GetJSON422 ¶
func (r GetPageImageDocumentsGetPageImageGetResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (GetPageImageDocumentsGetPageImageGetResponse) Status ¶
func (r GetPageImageDocumentsGetPageImageGetResponse) Status() string
Status returns HTTPResponse.Status
func (GetPageImageDocumentsGetPageImageGetResponse) StatusCode ¶
func (r GetPageImageDocumentsGetPageImageGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPageInfoDocumentsGetPageInfoPostJSONRequestBody ¶
type GetPageInfoDocumentsGetPageInfoPostJSONRequestBody = GetPageInfoRequest
GetPageInfoDocumentsGetPageInfoPostJSONRequestBody defines body for GetPageInfoDocumentsGetPageInfoPost for application/json ContentType.
type GetPageInfoDocumentsGetPageInfoPostResponse ¶
type GetPageInfoDocumentsGetPageInfoPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GetPageInfoResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseGetPageInfoDocumentsGetPageInfoPostResponse ¶
func ParseGetPageInfoDocumentsGetPageInfoPostResponse(rsp *http.Response) (*GetPageInfoDocumentsGetPageInfoPostResponse, error)
ParseGetPageInfoDocumentsGetPageInfoPostResponse parses an HTTP response from a GetPageInfoDocumentsGetPageInfoPostWithResponse call
func (GetPageInfoDocumentsGetPageInfoPostResponse) ContentType ¶
func (r GetPageInfoDocumentsGetPageInfoPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetPageInfoDocumentsGetPageInfoPostResponse) GetBody ¶
func (r GetPageInfoDocumentsGetPageInfoPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetPageInfoDocumentsGetPageInfoPostResponse) GetJSON200 ¶
func (r GetPageInfoDocumentsGetPageInfoPostResponse) GetJSON200() *GetPageInfoResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetPageInfoDocumentsGetPageInfoPostResponse) GetJSON422 ¶
func (r GetPageInfoDocumentsGetPageInfoPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (GetPageInfoDocumentsGetPageInfoPostResponse) Status ¶
func (r GetPageInfoDocumentsGetPageInfoPostResponse) Status() string
Status returns HTTPResponse.Status
func (GetPageInfoDocumentsGetPageInfoPostResponse) StatusCode ¶
func (r GetPageInfoDocumentsGetPageInfoPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPageInfoRequest ¶
type GetPageInfoRequest struct {
// CollectionName The name of the collection.
CollectionName string `json:"collection_name"`
// IncludeContent If `true`, then the response will have the `content` attribute be a `string`, rather than `null`. This string will contain the full contents of the page.
IncludeContent *bool `json:"include_content,omitempty"`
// PageIndex The specific page index whose info is being requested. Pages are 0-indexed, so that the 1st page of a PDF is of page index 0. You may use the `num_pages` attribute of `/documents/get-document-info` or `/documents/get-document-info-list` to know what the range of valid indices are. A `404 Not Found` status code will be returned if no such page index exists.
PageIndex int `json:"page_index"`
// Path The filepath of the document whose page you are requesting. A `404 Not Found` status code will be returned if no document with this path was found.
Path string `json:"path"`
}
GetPageInfoRequest defines model for GetPageInfoRequest.
type GetPageInfoResponse ¶
type GetPageInfoResponse struct {
Page PageResponse `json:"page"`
}
GetPageInfoResponse defines model for GetPageInfoResponse.
type GetQueryUsageUsageQueriesPostJSONRequestBody ¶
type GetQueryUsageUsageQueriesPostJSONRequestBody = UsageRequest
GetQueryUsageUsageQueriesPostJSONRequestBody defines body for GetQueryUsageUsageQueriesPost for application/json ContentType.
type GetQueryUsageUsageQueriesPostResponse ¶
type GetQueryUsageUsageQueriesPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]QueryUsageResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseGetQueryUsageUsageQueriesPostResponse ¶
func ParseGetQueryUsageUsageQueriesPostResponse(rsp *http.Response) (*GetQueryUsageUsageQueriesPostResponse, error)
ParseGetQueryUsageUsageQueriesPostResponse parses an HTTP response from a GetQueryUsageUsageQueriesPostWithResponse call
func (GetQueryUsageUsageQueriesPostResponse) ContentType ¶
func (r GetQueryUsageUsageQueriesPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetQueryUsageUsageQueriesPostResponse) GetBody ¶
func (r GetQueryUsageUsageQueriesPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetQueryUsageUsageQueriesPostResponse) GetJSON200 ¶
func (r GetQueryUsageUsageQueriesPostResponse) GetJSON200() *[]QueryUsageResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetQueryUsageUsageQueriesPostResponse) GetJSON422 ¶
func (r GetQueryUsageUsageQueriesPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (GetQueryUsageUsageQueriesPostResponse) Status ¶
func (r GetQueryUsageUsageQueriesPostResponse) Status() string
Status returns HTTPResponse.Status
func (GetQueryUsageUsageQueriesPostResponse) StatusCode ¶
func (r GetQueryUsageUsageQueriesPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetStatusStatusGetStatusPostJSONRequestBody ¶
type GetStatusStatusGetStatusPostJSONRequestBody = StatusRequest
GetStatusStatusGetStatusPostJSONRequestBody defines body for GetStatusStatusGetStatusPost for application/json ContentType.
type GetStatusStatusGetStatusPostResponse ¶
type GetStatusStatusGetStatusPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *StatusResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseGetStatusStatusGetStatusPostResponse ¶
func ParseGetStatusStatusGetStatusPostResponse(rsp *http.Response) (*GetStatusStatusGetStatusPostResponse, error)
ParseGetStatusStatusGetStatusPostResponse parses an HTTP response from a GetStatusStatusGetStatusPostWithResponse call
func (GetStatusStatusGetStatusPostResponse) ContentType ¶
func (r GetStatusStatusGetStatusPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetStatusStatusGetStatusPostResponse) GetBody ¶
func (r GetStatusStatusGetStatusPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetStatusStatusGetStatusPostResponse) GetJSON200 ¶
func (r GetStatusStatusGetStatusPostResponse) GetJSON200() *StatusResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetStatusStatusGetStatusPostResponse) GetJSON422 ¶
func (r GetStatusStatusGetStatusPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (GetStatusStatusGetStatusPostResponse) Status ¶
func (r GetStatusStatusGetStatusPostResponse) Status() string
Status returns HTTPResponse.Status
func (GetStatusStatusGetStatusPostResponse) StatusCode ¶
func (r GetStatusStatusGetStatusPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUsageCountersUsageCountersPostResponse ¶
type GetUsageCountersUsageCountersPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *UsageCountersResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseGetUsageCountersUsageCountersPostResponse ¶
func ParseGetUsageCountersUsageCountersPostResponse(rsp *http.Response) (*GetUsageCountersUsageCountersPostResponse, error)
ParseGetUsageCountersUsageCountersPostResponse parses an HTTP response from a GetUsageCountersUsageCountersPostWithResponse call
func (GetUsageCountersUsageCountersPostResponse) ContentType ¶
func (r GetUsageCountersUsageCountersPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetUsageCountersUsageCountersPostResponse) GetBody ¶
func (r GetUsageCountersUsageCountersPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetUsageCountersUsageCountersPostResponse) GetJSON200 ¶
func (r GetUsageCountersUsageCountersPostResponse) GetJSON200() *UsageCountersResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetUsageCountersUsageCountersPostResponse) GetJSON422 ¶
func (r GetUsageCountersUsageCountersPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (GetUsageCountersUsageCountersPostResponse) Status ¶
func (r GetUsageCountersUsageCountersPostResponse) Status() string
Status returns HTTPResponse.Status
func (GetUsageCountersUsageCountersPostResponse) StatusCode ¶
func (r GetUsageCountersUsageCountersPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HTTPValidationError ¶
type HTTPValidationError struct {
Detail *[]ValidationError `json:"detail,omitempty"`
}
HTTPValidationError defines model for HTTPValidationError.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ListAPIKeysRequest ¶
type ListAPIKeysRequest struct {
// OrganizationId The organization ID to list API keys for.
OrganizationId openapi_types.UUID `json:"organization_id"`
}
ListAPIKeysRequest defines model for ListAPIKeysRequest.
type ListAPIKeysResponse ¶
type ListAPIKeysResponse struct {
// ApiKeys The list of API keys associated with this organization.
ApiKeys []APIKeyInfo `json:"api_keys"`
}
ListAPIKeysResponse defines model for ListAPIKeysResponse.
type ListApiKeysAdminListApiKeysPostJSONRequestBody ¶
type ListApiKeysAdminListApiKeysPostJSONRequestBody = ListAPIKeysRequest
ListApiKeysAdminListApiKeysPostJSONRequestBody defines body for ListApiKeysAdminListApiKeysPost for application/json ContentType.
type ListApiKeysAdminListApiKeysPostResponse ¶
type ListApiKeysAdminListApiKeysPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ListAPIKeysResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseListApiKeysAdminListApiKeysPostResponse ¶
func ParseListApiKeysAdminListApiKeysPostResponse(rsp *http.Response) (*ListApiKeysAdminListApiKeysPostResponse, error)
ParseListApiKeysAdminListApiKeysPostResponse parses an HTTP response from a ListApiKeysAdminListApiKeysPostWithResponse call
func (ListApiKeysAdminListApiKeysPostResponse) ContentType ¶
func (r ListApiKeysAdminListApiKeysPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListApiKeysAdminListApiKeysPostResponse) GetBody ¶
func (r ListApiKeysAdminListApiKeysPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListApiKeysAdminListApiKeysPostResponse) GetJSON200 ¶
func (r ListApiKeysAdminListApiKeysPostResponse) GetJSON200() *ListAPIKeysResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListApiKeysAdminListApiKeysPostResponse) GetJSON422 ¶
func (r ListApiKeysAdminListApiKeysPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (ListApiKeysAdminListApiKeysPostResponse) Status ¶
func (r ListApiKeysAdminListApiKeysPostResponse) Status() string
Status returns HTTPResponse.Status
func (ListApiKeysAdminListApiKeysPostResponse) StatusCode ¶
func (r ListApiKeysAdminListApiKeysPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ModelsUsageCountersResponse ¶
type ModelsUsageCountersResponse struct {
AllTime ModelsUsageStats `json:"all_time"`
BillingCycle ModelsUsageStats `json:"billing_cycle"`
}
ModelsUsageCountersResponse defines model for ModelsUsageCountersResponse.
type ModelsUsageStats ¶
type ModelsUsageStats struct {
Embed UsageMetric `json:"embed"`
Rerank UsageMetric `json:"rerank"`
}
ModelsUsageStats defines model for ModelsUsageStats.
type PageResponse ¶
type PageResponse struct {
// CollectionName The name of the collection.
CollectionName string `json:"collection_name"`
// Content The content of the page. This field will only be provided if `include_content` was set to `true`, and the document has finished parsing. Otherwise, this field will be set to `null`.
Content *string `json:"content,omitempty"`
Id openapi_types.UUID `json:"id"`
// ImageUrl A URL to an image of the page. This field will only be provided if the document has finished parsing, and if it is a filetype that is capable of producing images (e.g. PDF, DOCX, PPT, etc). In all other cases, this field will be `null`.
//
// NOTE: If a `/documents/update-document` call returned a new document id, then this url will be invalidated and must be retrieved again.
ImageUrl *string `json:"image_url"`
// PageIndex The specific page index of this page. Pages are 0-indexed, so that the 1st page of a PDF is of page index 0.
PageIndex int `json:"page_index"`
// Path The filepath of the document associated with this page.
Path string `json:"path"`
}
PageResponse defines model for PageResponse.
type PageRetrievalResponse ¶
type PageRetrievalResponse struct {
// Content The contents of this page. This property will be null when `include_content` is `false`, and a string when `include_content` is `true`.
Content *string `json:"content"`
// ImageUrl A URL to an image of the page. This field will only be provided if the document has finished parsing, and if it is a filetype that is capable of producing images (e.g. PDF, DOCX, PPT, etc). In all other cases, this field will be `null`.
//
// NOTE: If a `/documents/update-document` call returned a new document id, then this url will be invalidated and must be retrieved again.
ImageUrl *string `json:"image_url"`
// PageIndex The index of this page in the document. This field is 0-indexed. So, the 1st page has index 0, and the 2nd page has index 1.
PageIndex int `json:"page_index"`
// Path The path of the document that this page comes from.
Path string `json:"path"`
// Score The relevancy score assigned to this page.
Score float64 `json:"score"`
}
PageRetrievalResponse A Page's metadata.
type QueryEnum ¶
type QueryEnum string
QueryEnum defines model for QueryEnum.
type QueryUsageResponse ¶
type QueryUsageResponse struct {
CollectionId openapi_types.UUID `json:"collection_id"`
EventCount int `json:"event_count"`
OrganizationId openapi_types.UUID `json:"organization_id"`
QueryType QueryEnum `json:"query_type"`
TotalQueriedBytes int `json:"total_queried_bytes"`
TotalQueryBytes int `json:"total_query_bytes"`
TotalQueryTokens int `json:"total_query_tokens"`
TotalResultsReturned int `json:"total_results_returned"`
TotalTimeTakenMs float64 `json:"total_time_taken_ms"`
WindowStart int `json:"window_start"`
}
QueryUsageResponse defines model for QueryUsageResponse.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RerankModelsRerankPostJSONRequestBody ¶
type RerankModelsRerankPostJSONRequestBody = RerankRequest
RerankModelsRerankPostJSONRequestBody defines body for RerankModelsRerankPost for application/json ContentType.
type RerankModelsRerankPostResponse ¶
type RerankModelsRerankPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RerankResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseRerankModelsRerankPostResponse ¶
func ParseRerankModelsRerankPostResponse(rsp *http.Response) (*RerankModelsRerankPostResponse, error)
ParseRerankModelsRerankPostResponse parses an HTTP response from a RerankModelsRerankPostWithResponse call
func (RerankModelsRerankPostResponse) ContentType ¶
func (r RerankModelsRerankPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RerankModelsRerankPostResponse) GetBody ¶
func (r RerankModelsRerankPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RerankModelsRerankPostResponse) GetJSON200 ¶
func (r RerankModelsRerankPostResponse) GetJSON200() *RerankResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (RerankModelsRerankPostResponse) GetJSON422 ¶
func (r RerankModelsRerankPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (RerankModelsRerankPostResponse) Status ¶
func (r RerankModelsRerankPostResponse) Status() string
Status returns HTTPResponse.Status
func (RerankModelsRerankPostResponse) StatusCode ¶
func (r RerankModelsRerankPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RerankRequest ¶
type RerankRequest struct {
// Documents The list of documents to rerank. Each document is a string.
Documents []string `json:"documents"`
// Latency Whether the call will be inferenced "fast" or "slow". RateLimits for slow API calls are orders of magnitude higher, but you can expect >10 second latency. Fast inferences are guaranteed subsecond, but rate limits are lower. If "fast" is requested and the fast tier is unavailable or rate-limited, a slow call will be executed when the model supports slow inference.
Latency *RerankRequestLatency `json:"latency,omitempty"`
// Model The model ID to use for reranking. Options are: ["zerank-2", "zerank-1", "zerank-1-small"]
Model string `json:"model"`
// Query The query to rerank the documents by.
Query string `json:"query"`
// TopN If provided, then only the top `n` documents will be returned in the results array. Otherwise, `n` will be the length of the provided documents array.
TopN *int `json:"top_n,omitempty"`
}
RerankRequest defines model for RerankRequest.
type RerankRequestLatency ¶
type RerankRequestLatency string
RerankRequestLatency Whether the call will be inferenced "fast" or "slow". RateLimits for slow API calls are orders of magnitude higher, but you can expect >10 second latency. Fast inferences are guaranteed subsecond, but rate limits are lower. If "fast" is requested and the fast tier is unavailable or rate-limited, a slow call will be executed when the model supports slow inference.
const ( RerankRequestLatencyFast RerankRequestLatency = "fast" RerankRequestLatencySlow RerankRequestLatency = "slow" )
Defines values for RerankRequestLatency.
func (RerankRequestLatency) Valid ¶
func (e RerankRequestLatency) Valid() bool
Valid indicates whether the value is a known member of the RerankRequestLatency enum.
type RerankResponse ¶
type RerankResponse struct {
// ActualLatencyMode The type of inference actually used. If `auto` is requested, then `fast` will be used by default, with `slow` as a fallback if your ratelimit is exceeded. Else, this field will be identical to the requested latency mode.
ActualLatencyMode RerankResponseActualLatencyMode `json:"actual_latency_mode"`
// E2eLatency The total time, in seconds, between rerank request received and rerank response returned. Client latency should equal `e2e_latency` + your ping to ZeroEntropy's API.
E2eLatency float64 `json:"e2e_latency"`
// InferenceLatency The time, in seconds, to actually inference the request. If this is significantly lower than `e2e_latency`, this is likely due to ratelimiting. Please request a higher ratelimit at [founders@zeroentropy.dev](mailto:founders@zeroentropy.dev) or message us on [Discord](https://go.zeroentropy.dev/discord) or [Slack](https://go.zeroentropy.dev/slack)!
InferenceLatency float64 `json:"inference_latency"`
// Results The results, ordered by descending order of relevance to the query.
Results []RerankResult `json:"results"`
// TotalBytes The total number of bytes in the request. This is used for ratelimiting.
TotalBytes int `json:"total_bytes"`
// TotalTokens The total number of tokens in the request. This is used for billing.
TotalTokens int `json:"total_tokens"`
}
RerankResponse defines model for RerankResponse.
type RerankResponseActualLatencyMode ¶
type RerankResponseActualLatencyMode string
RerankResponseActualLatencyMode The type of inference actually used. If `auto` is requested, then `fast` will be used by default, with `slow` as a fallback if your ratelimit is exceeded. Else, this field will be identical to the requested latency mode.
const ( RerankResponseActualLatencyModeFast RerankResponseActualLatencyMode = "fast" RerankResponseActualLatencyModeSlow RerankResponseActualLatencyMode = "slow" )
Defines values for RerankResponseActualLatencyMode.
func (RerankResponseActualLatencyMode) Valid ¶
func (e RerankResponseActualLatencyMode) Valid() bool
Valid indicates whether the value is a known member of the RerankResponseActualLatencyMode enum.
type RerankResult ¶
type RerankResult struct {
// Index The index of this document, relative to the original document array passed into the request.
Index int `json:"index"`
// RelevanceScore The relevance score between this document and the query. This number will range between 0.0 and 1.0. This score is dependent on only the query and the scored document; other documents do not affect this score. This value is intended to be deterministic, but it may vary slightly due to floating point error.
RelevanceScore float64 `json:"relevance_score"`
}
RerankResult defines model for RerankResult.
type RerankUsageResponse ¶
type RerankUsageResponse struct {
EventCount int `json:"event_count"`
ExplicitCall bool `json:"explicit_call"`
OrganizationId openapi_types.UUID `json:"organization_id"`
RerankerModel string `json:"reranker_model"`
TotalDocumentsReranked int `json:"total_documents_reranked"`
TotalRequestBytes int `json:"total_request_bytes"`
TotalRerankerTokens int `json:"total_reranker_tokens"`
TotalRerankingTimeMs float64 `json:"total_reranking_time_ms"`
TotalTimeTakenMs float64 `json:"total_time_taken_ms"`
WindowStart int `json:"window_start"`
}
RerankUsageResponse defines model for RerankUsageResponse.
type SnippetResponse ¶
type SnippetResponse struct {
// Content The full string content of this snippet.
Content string `json:"content"`
// EndIndex The end index of this snippet.
EndIndex int `json:"end_index"`
// PageSpan The range of page indices spanned by this snippet, as a 2-tuple of integers. Inclusive on the first page_index and exclusive on the second page_index.
PageSpan []int `json:"page_span"`
// Path The path of the document that this snippet comes from.
Path string `json:"path"`
// Score The relevancy score assigned to this snippet.
Score float64 `json:"score"`
// StartIndex The start index of this snippet.
StartIndex int `json:"start_index"`
}
SnippetResponse This is a Snippet.
A snippet refers to a particular document path, and index range. Note that all documents, regardless of filetype, are converted into `UTF-8`-encoded strings. The `start_index` and `end_index` refer to the range of characters in that string, that have been matched by this snippet.
type StatusRequest ¶
type StatusRequest struct {
// CollectionName The collection name to use. If `collection_name` is `null` or omitted, then the cumulative status across all collections will be shown.
CollectionName *string `json:"collection_name,omitempty"`
}
StatusRequest defines model for StatusRequest.
type StatusResponse ¶
type StatusResponse struct {
// NumDocuments The total number of documents, regardless of their status. It is guaranteed that the sum of all of the other fields, is this number.
NumDocuments int `json:"num_documents"`
// NumFailedDocuments The number of failed documents. Failures can occur during either parsing, or indexing. It can occur if the file is malformed or incomplete. If you believe that the file is formatted correctly, please contact us at `founders@zeroentropy.dev` to assist.
NumFailedDocuments int `json:"num_failed_documents"`
// NumIndexedBytes The total number of bytes used by documents that are currently indexed. Measured as UTF-8 bytes. For PDF/DOCX/PPT/etc, this is of the OCR'ed text.
NumIndexedBytes int `json:"num_indexed_bytes"`
// NumIndexedDocuments The number of documents that are currently indexed.
NumIndexedDocuments int `json:"num_indexed_documents"`
// NumIndexingDocuments The number of documents being indexed. Indexing occurs only after the document has finished parsing.
NumIndexingDocuments int `json:"num_indexing_documents"`
// NumParsingDocuments The number of documents that are being parsed. This refers files of the type PDF, DOCX, PPT, etc, whose images are being processed, or are waiting to be processed, by our OCR system.
NumParsingDocuments int `json:"num_parsing_documents"`
}
StatusResponse defines model for StatusResponse.
type StrJson ¶
type StrJson struct {
// contains filtered or unexported fields
}
StrJson defines model for StrJson.
func (StrJson) AsStrJson0 ¶ added in v0.2.0
AsStrJson0 returns the union data inside the StrJson as a StrJson0
func (StrJson) AsStrJson1 ¶ added in v0.2.0
AsStrJson1 returns the union data inside the StrJson as a StrJson1
func (StrJson) AsStrJson2 ¶ added in v0.2.0
AsStrJson2 returns the union data inside the StrJson as a StrJson2
func (StrJson) AsStrJson3 ¶ added in v0.2.0
AsStrJson3 returns the union data inside the StrJson as a StrJson3
func (*StrJson) FromStrJson0 ¶ added in v0.2.0
FromStrJson0 overwrites any union data inside the StrJson as the provided StrJson0
func (*StrJson) FromStrJson1 ¶ added in v0.2.0
FromStrJson1 overwrites any union data inside the StrJson as the provided StrJson1
func (*StrJson) FromStrJson2 ¶ added in v0.2.0
FromStrJson2 overwrites any union data inside the StrJson as the provided StrJson2
func (*StrJson) FromStrJson3 ¶ added in v0.2.0
FromStrJson3 overwrites any union data inside the StrJson as the provided StrJson3
func (StrJson) MarshalJSON ¶ added in v0.2.0
func (*StrJson) MergeStrJson0 ¶ added in v0.2.0
MergeStrJson0 performs a merge with any union data inside the StrJson, using the provided StrJson0
func (*StrJson) MergeStrJson1 ¶ added in v0.2.0
MergeStrJson1 performs a merge with any union data inside the StrJson, using the provided StrJson1
func (*StrJson) MergeStrJson2 ¶ added in v0.2.0
MergeStrJson2 performs a merge with any union data inside the StrJson, using the provided StrJson2
func (*StrJson) MergeStrJson3 ¶ added in v0.2.0
MergeStrJson3 performs a merge with any union data inside the StrJson, using the provided StrJson3
func (*StrJson) UnmarshalJSON ¶ added in v0.2.0
type SubscriptionType ¶ added in v0.2.0
type SubscriptionType string
SubscriptionType defines model for SubscriptionType.
const ( SubscriptionTypeEnterprise SubscriptionType = "enterprise" SubscriptionTypeFree SubscriptionType = "free" SubscriptionTypeStarter SubscriptionType = "starter" SubscriptionTypeTeams SubscriptionType = "teams" )
Defines values for SubscriptionType.
func (SubscriptionType) Valid ¶ added in v0.2.0
func (e SubscriptionType) Valid() bool
Valid indicates whether the value is a known member of the SubscriptionType enum.
type TopDocumentsQueriesTopDocumentsPostJSONRequestBody ¶
type TopDocumentsQueriesTopDocumentsPostJSONRequestBody = TopDocumentsRequest
TopDocumentsQueriesTopDocumentsPostJSONRequestBody defines body for TopDocumentsQueriesTopDocumentsPost for application/json ContentType.
type TopDocumentsQueriesTopDocumentsPostResponse ¶
type TopDocumentsQueriesTopDocumentsPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TopDocumentsResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseTopDocumentsQueriesTopDocumentsPostResponse ¶
func ParseTopDocumentsQueriesTopDocumentsPostResponse(rsp *http.Response) (*TopDocumentsQueriesTopDocumentsPostResponse, error)
ParseTopDocumentsQueriesTopDocumentsPostResponse parses an HTTP response from a TopDocumentsQueriesTopDocumentsPostWithResponse call
func (TopDocumentsQueriesTopDocumentsPostResponse) ContentType ¶
func (r TopDocumentsQueriesTopDocumentsPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (TopDocumentsQueriesTopDocumentsPostResponse) GetBody ¶
func (r TopDocumentsQueriesTopDocumentsPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (TopDocumentsQueriesTopDocumentsPostResponse) GetJSON200 ¶
func (r TopDocumentsQueriesTopDocumentsPostResponse) GetJSON200() *TopDocumentsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (TopDocumentsQueriesTopDocumentsPostResponse) GetJSON422 ¶
func (r TopDocumentsQueriesTopDocumentsPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (TopDocumentsQueriesTopDocumentsPostResponse) Status ¶
func (r TopDocumentsQueriesTopDocumentsPostResponse) Status() string
Status returns HTTPResponse.Status
func (TopDocumentsQueriesTopDocumentsPostResponse) StatusCode ¶
func (r TopDocumentsQueriesTopDocumentsPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TopDocumentsRequest ¶
type TopDocumentsRequest struct {
// CollectionName The name of the collection.
CollectionName string `json:"collection_name"`
// Filter The query filter to apply. Please read [Metadata Filtering](/metadata-filtering) for more information. If not provided, then all documents will be searched.
Filter *StrJson `json:"filter,omitempty"`
// IncludeMetadata Whether or not to include the metadata in the top documents response. If not provided, then the default will be `False`.
IncludeMetadata *bool `json:"include_metadata,omitempty"`
// K The number of documents to return. If there are not enough documents matching your filters, then fewer may be returned. This number must be between 1 and 2048, inclusive.
K int `json:"k"`
// LatencyMode This option selects between our two latency modes. The higher latency mode takes longer, but can allow for more accurate responses. If desired, test both to customize your search experience for your particular use-case, or use the default of "low" and only swap if you need an additional improvement in search result quality.
LatencyMode *TopDocumentsRequestLatencyMode `json:"latency_mode,omitempty"`
// Query The natural language query to search with. This cannot exceed 4096 UTF-8 bytes. If `null`, then the sort will be undefined. The purpose of `null` is to do faster metadata filter searches without care for relevancy. Cost per query is unchanged.
Query *string `json:"query"`
// Reranker The reranker to use after initial retrieval. The default is `null`. You can find available model ids along with more information at [/models/rerank](/api-reference/models/rerank).
Reranker *string `json:"reranker,omitempty"`
}
TopDocumentsRequest defines model for TopDocumentsRequest.
type TopDocumentsRequestLatencyMode ¶
type TopDocumentsRequestLatencyMode string
TopDocumentsRequestLatencyMode This option selects between our two latency modes. The higher latency mode takes longer, but can allow for more accurate responses. If desired, test both to customize your search experience for your particular use-case, or use the default of "low" and only swap if you need an additional improvement in search result quality.
const ( TopDocumentsRequestLatencyModeHigh TopDocumentsRequestLatencyMode = "high" TopDocumentsRequestLatencyModeLow TopDocumentsRequestLatencyMode = "low" )
Defines values for TopDocumentsRequestLatencyMode.
func (TopDocumentsRequestLatencyMode) Valid ¶
func (e TopDocumentsRequestLatencyMode) Valid() bool
Valid indicates whether the value is a known member of the TopDocumentsRequestLatencyMode enum.
type TopDocumentsResponse ¶
type TopDocumentsResponse struct {
Results []DocumentRetrievalResponse `json:"results"`
}
TopDocumentsResponse defines model for TopDocumentsResponse.
type TopPagesQueriesTopPagesPostJSONRequestBody ¶
type TopPagesQueriesTopPagesPostJSONRequestBody = TopPagesRequest
TopPagesQueriesTopPagesPostJSONRequestBody defines body for TopPagesQueriesTopPagesPost for application/json ContentType.
type TopPagesQueriesTopPagesPostResponse ¶
type TopPagesQueriesTopPagesPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TopPagesResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseTopPagesQueriesTopPagesPostResponse ¶
func ParseTopPagesQueriesTopPagesPostResponse(rsp *http.Response) (*TopPagesQueriesTopPagesPostResponse, error)
ParseTopPagesQueriesTopPagesPostResponse parses an HTTP response from a TopPagesQueriesTopPagesPostWithResponse call
func (TopPagesQueriesTopPagesPostResponse) ContentType ¶
func (r TopPagesQueriesTopPagesPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (TopPagesQueriesTopPagesPostResponse) GetBody ¶
func (r TopPagesQueriesTopPagesPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (TopPagesQueriesTopPagesPostResponse) GetJSON200 ¶
func (r TopPagesQueriesTopPagesPostResponse) GetJSON200() *TopPagesResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (TopPagesQueriesTopPagesPostResponse) GetJSON422 ¶
func (r TopPagesQueriesTopPagesPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (TopPagesQueriesTopPagesPostResponse) Status ¶
func (r TopPagesQueriesTopPagesPostResponse) Status() string
Status returns HTTPResponse.Status
func (TopPagesQueriesTopPagesPostResponse) StatusCode ¶
func (r TopPagesQueriesTopPagesPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TopPagesRequest ¶
type TopPagesRequest struct {
// CollectionName The name of the collection.
CollectionName string `json:"collection_name"`
// Filter The query filter to apply. Please read [Metadata Filtering](/metadata-filtering) for more information. If not provided, then all documents will be searched.
Filter *StrJson `json:"filter,omitempty"`
// IncludeContent If set to true, then the content of all pages will be returned.
IncludeContent *bool `json:"include_content,omitempty"`
// IncludeMetadata Whether or not to include the document metadata in the response. If not provided, then the default will be `False`.
IncludeMetadata *bool `json:"include_metadata,omitempty"`
// K The number of pages to return. If there are not enough pages matching your filters, then fewer may be returned. This number must be between 1 and 1024, inclusive.
K int `json:"k"`
// LatencyMode This option selects between our two latency modes. The higher latency mode takes longer, but can allow for more accurate responses. If desired, test both to customize your search experience for your particular use-case, or use the default of "low" and only swap if you need an additional improvement in search result quality.
LatencyMode *TopPagesRequestLatencyMode `json:"latency_mode,omitempty"`
// Query The natural language query to search with. This cannot exceed 4096 UTF-8 bytes.
Query string `json:"query"`
}
TopPagesRequest defines model for TopPagesRequest.
type TopPagesRequestLatencyMode ¶
type TopPagesRequestLatencyMode string
TopPagesRequestLatencyMode This option selects between our two latency modes. The higher latency mode takes longer, but can allow for more accurate responses. If desired, test both to customize your search experience for your particular use-case, or use the default of "low" and only swap if you need an additional improvement in search result quality.
const ( TopPagesRequestLatencyModeHigh TopPagesRequestLatencyMode = "high" TopPagesRequestLatencyModeLow TopPagesRequestLatencyMode = "low" )
Defines values for TopPagesRequestLatencyMode.
func (TopPagesRequestLatencyMode) Valid ¶
func (e TopPagesRequestLatencyMode) Valid() bool
Valid indicates whether the value is a known member of the TopPagesRequestLatencyMode enum.
type TopPagesResponse ¶
type TopPagesResponse struct {
// DocumentResults The array of associated document information. Note how each result page has an associated document path. After deduplicating the document paths, this array will contain document info for each document path that is referenced by at least one page result.
DocumentResults []DocumentRetrievalResponse `json:"document_results"`
Results []PageRetrievalResponse `json:"results"`
}
TopPagesResponse defines model for TopPagesResponse.
type TopSnippetsQueriesTopSnippetsPostJSONRequestBody ¶
type TopSnippetsQueriesTopSnippetsPostJSONRequestBody = TopSnippetsRequest
TopSnippetsQueriesTopSnippetsPostJSONRequestBody defines body for TopSnippetsQueriesTopSnippetsPost for application/json ContentType.
type TopSnippetsQueriesTopSnippetsPostResponse ¶
type TopSnippetsQueriesTopSnippetsPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TopSnippetsResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseTopSnippetsQueriesTopSnippetsPostResponse ¶
func ParseTopSnippetsQueriesTopSnippetsPostResponse(rsp *http.Response) (*TopSnippetsQueriesTopSnippetsPostResponse, error)
ParseTopSnippetsQueriesTopSnippetsPostResponse parses an HTTP response from a TopSnippetsQueriesTopSnippetsPostWithResponse call
func (TopSnippetsQueriesTopSnippetsPostResponse) ContentType ¶
func (r TopSnippetsQueriesTopSnippetsPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (TopSnippetsQueriesTopSnippetsPostResponse) GetBody ¶
func (r TopSnippetsQueriesTopSnippetsPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (TopSnippetsQueriesTopSnippetsPostResponse) GetJSON200 ¶
func (r TopSnippetsQueriesTopSnippetsPostResponse) GetJSON200() *TopSnippetsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (TopSnippetsQueriesTopSnippetsPostResponse) GetJSON422 ¶
func (r TopSnippetsQueriesTopSnippetsPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (TopSnippetsQueriesTopSnippetsPostResponse) Status ¶
func (r TopSnippetsQueriesTopSnippetsPostResponse) Status() string
Status returns HTTPResponse.Status
func (TopSnippetsQueriesTopSnippetsPostResponse) StatusCode ¶
func (r TopSnippetsQueriesTopSnippetsPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TopSnippetsRequest ¶
type TopSnippetsRequest struct {
// CollectionName The name of the collection.
CollectionName string `json:"collection_name"`
// Filter The query filter to apply. Please read [Metadata Filtering](/metadata-filtering) for more information. If not provided, then all documents will be searched.
Filter *StrJson `json:"filter,omitempty"`
// IncludeDocumentMetadata If true, the `document_results` returns will additionally contain document metadata. This is false by default, as returning metadata can add overhead if the amount of data to return is large.
IncludeDocumentMetadata *bool `json:"include_document_metadata,omitempty"`
// K The number of snippets to return. If there are not enough snippets matching your filters, then fewer may be returned. This number must be between 1 and 128, inclusive.
K int `json:"k"`
// PreciseResponses Enable precise responses. Precise responses will have higher latency, but provide much more precise snippets. When `precise_responses` is set to `true`, the responses will average 200 characters. If set to `false`, the responses will average 2000 characters. The default is `false`.
PreciseResponses *bool `json:"precise_responses,omitempty"`
// Query The natural language query to search with. This cannot exceed 4096 characters (A single UTF-8 codepoint, is considered to be 1 character).
Query string `json:"query"`
// Reranker The reranker to use after initial retrieval. The default is `null`. You can find available model ids, along with more information, at [/models/rerank](/api-reference/models/rerank).
Reranker *string `json:"reranker,omitempty"`
}
TopSnippetsRequest defines model for TopSnippetsRequest.
type TopSnippetsResponse ¶
type TopSnippetsResponse struct {
// DocumentResults The array of associated document information. Note how each snippet has an associated document path. After deduplicating the document paths, this array will contain document info for each document path that is referenced by at least one snippet result.
DocumentResults []DocumentRetrievalResponse `json:"document_results"`
// Results The array of snippets returned by this endpoint. Each snippet result refers to a particular document path, and index range. Note that all documents, regardless of filetype, are converted into `UTF-8`-encoded strings. The `start_index` and `end_index` of a snippet refer to the range of characters in that string, that have been matched by this snippet.
Results []SnippetResponse `json:"results"`
}
TopSnippetsResponse defines model for TopSnippetsResponse.
type UpdateAPIKeyRequest ¶
type UpdateAPIKeyRequest struct {
// ApiKeyId The API key ID to update.
ApiKeyId openapi_types.UUID `json:"api_key_id"`
// Name New name for the API key.
Name *string `json:"name,omitempty"`
// OrganizationId The organization ID of the related api key.
OrganizationId openapi_types.UUID `json:"organization_id"`
// Permission New permission level for the API key.
Permission *DBAPIKeyPermission `json:"permission,omitempty"`
}
UpdateAPIKeyRequest defines model for UpdateAPIKeyRequest.
type UpdateApiKeyAdminUpdateApiKeyPostJSONRequestBody ¶
type UpdateApiKeyAdminUpdateApiKeyPostJSONRequestBody = UpdateAPIKeyRequest
UpdateApiKeyAdminUpdateApiKeyPostJSONRequestBody defines body for UpdateApiKeyAdminUpdateApiKeyPost for application/json ContentType.
type UpdateApiKeyAdminUpdateApiKeyPostResponse ¶
type UpdateApiKeyAdminUpdateApiKeyPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DefaultResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseUpdateApiKeyAdminUpdateApiKeyPostResponse ¶
func ParseUpdateApiKeyAdminUpdateApiKeyPostResponse(rsp *http.Response) (*UpdateApiKeyAdminUpdateApiKeyPostResponse, error)
ParseUpdateApiKeyAdminUpdateApiKeyPostResponse parses an HTTP response from a UpdateApiKeyAdminUpdateApiKeyPostWithResponse call
func (UpdateApiKeyAdminUpdateApiKeyPostResponse) ContentType ¶
func (r UpdateApiKeyAdminUpdateApiKeyPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateApiKeyAdminUpdateApiKeyPostResponse) GetBody ¶
func (r UpdateApiKeyAdminUpdateApiKeyPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateApiKeyAdminUpdateApiKeyPostResponse) GetJSON200 ¶
func (r UpdateApiKeyAdminUpdateApiKeyPostResponse) GetJSON200() *DefaultResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateApiKeyAdminUpdateApiKeyPostResponse) GetJSON422 ¶
func (r UpdateApiKeyAdminUpdateApiKeyPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (UpdateApiKeyAdminUpdateApiKeyPostResponse) Status ¶
func (r UpdateApiKeyAdminUpdateApiKeyPostResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateApiKeyAdminUpdateApiKeyPostResponse) StatusCode ¶
func (r UpdateApiKeyAdminUpdateApiKeyPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateDocumentDocumentsUpdateDocumentPostJSONRequestBody ¶
type UpdateDocumentDocumentsUpdateDocumentPostJSONRequestBody = UpdateDocumentRequest
UpdateDocumentDocumentsUpdateDocumentPostJSONRequestBody defines body for UpdateDocumentDocumentsUpdateDocumentPost for application/json ContentType.
type UpdateDocumentDocumentsUpdateDocumentPostResponse ¶
type UpdateDocumentDocumentsUpdateDocumentPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DefaultResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseUpdateDocumentDocumentsUpdateDocumentPostResponse ¶
func ParseUpdateDocumentDocumentsUpdateDocumentPostResponse(rsp *http.Response) (*UpdateDocumentDocumentsUpdateDocumentPostResponse, error)
ParseUpdateDocumentDocumentsUpdateDocumentPostResponse parses an HTTP response from a UpdateDocumentDocumentsUpdateDocumentPostWithResponse call
func (UpdateDocumentDocumentsUpdateDocumentPostResponse) ContentType ¶
func (r UpdateDocumentDocumentsUpdateDocumentPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateDocumentDocumentsUpdateDocumentPostResponse) GetBody ¶
func (r UpdateDocumentDocumentsUpdateDocumentPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateDocumentDocumentsUpdateDocumentPostResponse) GetJSON200 ¶
func (r UpdateDocumentDocumentsUpdateDocumentPostResponse) GetJSON200() *DefaultResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateDocumentDocumentsUpdateDocumentPostResponse) GetJSON422 ¶
func (r UpdateDocumentDocumentsUpdateDocumentPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (UpdateDocumentDocumentsUpdateDocumentPostResponse) Status ¶
func (r UpdateDocumentDocumentsUpdateDocumentPostResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateDocumentDocumentsUpdateDocumentPostResponse) StatusCode ¶
func (r UpdateDocumentDocumentsUpdateDocumentPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateDocumentRequest ¶
type UpdateDocumentRequest struct {
// CollectionName The name of the collection.
CollectionName string `json:"collection_name"`
// IndexStatus If the document is in the index_status of `parsing_failed or `indexing_failed`, then this endpoint allows you to update the index status to `not_parsed` and `not_indexed`, respectively. This allows the document to re-attempt to parse/index after failure.
IndexStatus *UpdateDocumentRequestIndexStatus `json:"index_status,omitempty"`
// Metadata If this field is provided, the given metadata json will replace the document's existing metadata json. In other words, if you want to add a new field, you will need to provide the entire metadata object (Both the original fields, and the new field).
Metadata *DocumentMetadataJson `json:"metadata,omitempty"`
// Path The filepath of the document that you are updating. A `404 Not Found` status code will be returned if no document with this path was found.
Path string `json:"path"`
}
UpdateDocumentRequest defines model for UpdateDocumentRequest.
type UpdateDocumentRequestIndexStatus ¶
type UpdateDocumentRequestIndexStatus string
UpdateDocumentRequestIndexStatus If the document is in the index_status of `parsing_failed or `indexing_failed`, then this endpoint allows you to update the index status to `not_parsed` and `not_indexed`, respectively. This allows the document to re-attempt to parse/index after failure.
const ( UpdateDocumentRequestIndexStatusNotIndexed UpdateDocumentRequestIndexStatus = "not_indexed" UpdateDocumentRequestIndexStatusNotParsed UpdateDocumentRequestIndexStatus = "not_parsed" )
Defines values for UpdateDocumentRequestIndexStatus.
func (UpdateDocumentRequestIndexStatus) Valid ¶
func (e UpdateDocumentRequestIndexStatus) Valid() bool
Valid indicates whether the value is a known member of the UpdateDocumentRequestIndexStatus enum.
type UpdateOrganizationAdminUpdateOrganizationPostJSONRequestBody ¶ added in v0.2.0
type UpdateOrganizationAdminUpdateOrganizationPostJSONRequestBody = UpdateOrganizationRequest
UpdateOrganizationAdminUpdateOrganizationPostJSONRequestBody defines body for UpdateOrganizationAdminUpdateOrganizationPost for application/json ContentType.
type UpdateOrganizationAdminUpdateOrganizationPostResponse ¶ added in v0.2.0
type UpdateOrganizationAdminUpdateOrganizationPostResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DefaultResponse
// JSON422 the response for an HTTP 422 `application/json` response
JSON422 *HTTPValidationError
}
func ParseUpdateOrganizationAdminUpdateOrganizationPostResponse ¶ added in v0.2.0
func ParseUpdateOrganizationAdminUpdateOrganizationPostResponse(rsp *http.Response) (*UpdateOrganizationAdminUpdateOrganizationPostResponse, error)
ParseUpdateOrganizationAdminUpdateOrganizationPostResponse parses an HTTP response from a UpdateOrganizationAdminUpdateOrganizationPostWithResponse call
func (UpdateOrganizationAdminUpdateOrganizationPostResponse) ContentType ¶ added in v0.2.0
func (r UpdateOrganizationAdminUpdateOrganizationPostResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateOrganizationAdminUpdateOrganizationPostResponse) GetBody ¶ added in v0.2.0
func (r UpdateOrganizationAdminUpdateOrganizationPostResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateOrganizationAdminUpdateOrganizationPostResponse) GetJSON200 ¶ added in v0.2.0
func (r UpdateOrganizationAdminUpdateOrganizationPostResponse) GetJSON200() *DefaultResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateOrganizationAdminUpdateOrganizationPostResponse) GetJSON422 ¶ added in v0.2.0
func (r UpdateOrganizationAdminUpdateOrganizationPostResponse) GetJSON422() *HTTPValidationError
GetJSON422 returns the response for an HTTP 422 `application/json` response
func (UpdateOrganizationAdminUpdateOrganizationPostResponse) Status ¶ added in v0.2.0
func (r UpdateOrganizationAdminUpdateOrganizationPostResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateOrganizationAdminUpdateOrganizationPostResponse) StatusCode ¶ added in v0.2.0
func (r UpdateOrganizationAdminUpdateOrganizationPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateOrganizationRequest ¶ added in v0.2.0
type UpdateOrganizationRequest struct {
// OrganizationId The organization ID to update.
OrganizationId openapi_types.UUID `json:"organization_id"`
// OverrideBpmFast Admin override: bytes per minute limit with latency: fast. Set to 0 to disable.
OverrideBpmFast *int `json:"override_bpm_fast,omitempty"`
// OverrideBpmSlow Admin override: bytes per minute limit with latency: slow. Set to 0 to disable.
OverrideBpmSlow *int `json:"override_bpm_slow,omitempty"`
// OverrideMaxBytesPerRequest Admin override: max bytes per request. Set to 0 to disable.
OverrideMaxBytesPerRequest *int `json:"override_max_bytes_per_request,omitempty"`
// SubscriptionTier Subscription tier to set.
SubscriptionTier *SubscriptionType `json:"subscription_tier,omitempty"`
// Zdr Whether zero data retention should be enabled.
Zdr *bool `json:"zdr,omitempty"`
}
UpdateOrganizationRequest defines model for UpdateOrganizationRequest.
type UsageCountersResponse ¶
type UsageCountersResponse struct {
AllTime UsageStats `json:"all_time"`
BillingCycle UsageStats `json:"billing_cycle"`
}
UsageCountersResponse defines model for UsageCountersResponse.
type UsageMetric ¶
type UsageMetric struct {
BillableUnits int `json:"billable_units"`
Bytes int `json:"bytes"`
Count int `json:"count"`
}
UsageMetric defines model for UsageMetric.
type UsageRequest ¶
type UsageRequest struct {
// AggregationWindow Aggregation granularity: minutely, hourly, or daily
AggregationWindow AggregationWindow `json:"aggregation_window"`
// CollectionNames Optional list of collection names to filter by. If None, returns data for all collections.
CollectionNames *[]string `json:"collection_names,omitempty"`
// EndTime End time for the usage query (inclusive) - Unix timestamp (seconds since epoch)
EndTime int `json:"end_time"`
// StartTime Start time for the usage query (inclusive) - Unix timestamp (seconds since epoch)
StartTime int `json:"start_time"`
}
UsageRequest defines model for UsageRequest.
type UsageStats ¶
type UsageStats struct {
Docs UsageMetric `json:"docs"`
Indexed UsageMetric `json:"indexed"`
Ocr UsageMetric `json:"ocr"`
Queries UsageMetric `json:"queries"`
}
UsageStats defines model for UsageStats.
type ValidationError ¶
type ValidationError struct {
Loc []ValidationError_Loc_Item `json:"loc"`
Msg string `json:"msg"`
Type string `json:"type"`
}
ValidationError defines model for ValidationError.
type ValidationErrorLoc0 ¶
type ValidationErrorLoc0 = string
ValidationErrorLoc0 defines model for ValidationError.Loc.0.
type ValidationErrorLoc1 ¶
type ValidationErrorLoc1 = int
ValidationErrorLoc1 defines model for ValidationError.Loc.1.
type ValidationError_Loc_Item ¶
type ValidationError_Loc_Item struct {
// contains filtered or unexported fields
}
ValidationError_Loc_Item defines model for ValidationError.loc.Item.
func (ValidationError_Loc_Item) AsValidationErrorLoc0 ¶
func (t ValidationError_Loc_Item) AsValidationErrorLoc0() (ValidationErrorLoc0, error)
AsValidationErrorLoc0 returns the union data inside the ValidationError_Loc_Item as a ValidationErrorLoc0
func (ValidationError_Loc_Item) AsValidationErrorLoc1 ¶
func (t ValidationError_Loc_Item) AsValidationErrorLoc1() (ValidationErrorLoc1, error)
AsValidationErrorLoc1 returns the union data inside the ValidationError_Loc_Item as a ValidationErrorLoc1
func (*ValidationError_Loc_Item) FromValidationErrorLoc0 ¶
func (t *ValidationError_Loc_Item) FromValidationErrorLoc0(v ValidationErrorLoc0) error
FromValidationErrorLoc0 overwrites any union data inside the ValidationError_Loc_Item as the provided ValidationErrorLoc0
func (*ValidationError_Loc_Item) FromValidationErrorLoc1 ¶
func (t *ValidationError_Loc_Item) FromValidationErrorLoc1(v ValidationErrorLoc1) error
FromValidationErrorLoc1 overwrites any union data inside the ValidationError_Loc_Item as the provided ValidationErrorLoc1
func (ValidationError_Loc_Item) MarshalJSON ¶
func (t ValidationError_Loc_Item) MarshalJSON() ([]byte, error)
func (*ValidationError_Loc_Item) MergeValidationErrorLoc0 ¶
func (t *ValidationError_Loc_Item) MergeValidationErrorLoc0(v ValidationErrorLoc0) error
MergeValidationErrorLoc0 performs a merge with any union data inside the ValidationError_Loc_Item, using the provided ValidationErrorLoc0
func (*ValidationError_Loc_Item) MergeValidationErrorLoc1 ¶
func (t *ValidationError_Loc_Item) MergeValidationErrorLoc1(v ValidationErrorLoc1) error
MergeValidationErrorLoc1 performs a merge with any union data inside the ValidationError_Loc_Item, using the provided ValidationErrorLoc1
func (*ValidationError_Loc_Item) UnmarshalJSON ¶
func (t *ValidationError_Loc_Item) UnmarshalJSON(b []byte) error